query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Apply a method to the files under a given directory and perhaps its subdirectories.
public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }", "public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) {\n\n\t\tFile[] files = dir.listFiles();\t\t\n\t\tfor(File f : files) {\n\t\t\tString lowercaseName = f.getName().toLowerCase();\n\t\t\tif(lowercaseName.indexOf(\"test\")!=-1)\n\t\t\t{\n\t\t\t\t/* we do not consider test files in our study */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if(f.isDirectory()){\n\t\t\t\t /* iterate over every directory */\n\t\t\t\t getSourceJavaFilesForOneRepository(f, searchSuffix, al);\t\t\n\t\t\t } else {\n\t\t\t\t /* returns the desired java files */\n\t\t\t\t if(searchSuffix.accept(dir, f.getName())){\n\t\t\t\t\t al.add(f);\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "public static void processDirectory(String directory) {\n processDirectory(new File(directory));\n }", "static void find(final File current,\n final Histogram class_use,\n final Histogram method_use) {\n if (current.isDirectory()) {\n for (File child:current.listFiles()){\n find(child, class_use, method_use);\n }\n } else if (current.isFile()) {\n String name = current.toString();\n if ( name.endsWith(\".zip\")\n || name.endsWith(\".jar\")\n || name.endsWith(\".rar\") // weird use of rar for zip, but ... used in case study.\n || name.endsWith(\".war\")\n ) {\n processZip(current, class_use, method_use);\n } else if (name.endsWith(\".class\")) {\n processClass(current, class_use, method_use);\n }\n } else {\n TextIo.error(\"While processing file `\" + current + \"` an error occurred.\");\n }\n }", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "public void serveFilesFromDirectory(File directory) {\n serveFilesFromDirectory(directory.getPath());\n }", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())) {\n\t\t\t\t\tstartFile = null;\n\t\t\t\t}\n\n\t\t\t\tif (startFile == null) {\n\t\t\t\t\tprocessFile(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void directorySearch(File dir, String target)\n\t{\n\t\tif(!(dir.isDirectory()))\n\t\t{\n\t\t\t//If file is not a directory, throw the exception.\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif(count == maxFiles)\n\t\t{\n\t\t\t//If count is equal to maxFiles, throw the exception.\n\t\t\t//If it doesn't then this will act as a base case to\n\t\t\t//the recursion. \n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Put all the sub directories in an array. \n\t\t\tFile[] file = dir.listFiles();\n\t\t\t\n\t\t\t//Print out the path and the file directory list \n\t\t\tSystem.out.println(dir.getPath() + \": \" + dir.listFiles());\n\t\t\t\n\t\t\t//Go through each of the file length\n\t\t\tfor(int i = 0; i < file.length; i++)\n\t\t\t{\n\t\t\t\t//Get the file name \n\t\t\t\tSystem.out.println(\" -- \" + file[i].getName());\n\t\t\t\t\n\t\t\t\t//If the file name is the target, then add it to the \n\t\t\t\t//stack and return\n\t\t\t\tif(file[i].getName().equals(target))\n\t\t\t\t{\n\t\t\t\t\t//If the item inside the file is the target.\n\t\t\t\t\tcount++;\n\t\t\t\t\tfileList.add(file[i].getPath());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//If its a directory, then recurse.\n\t\t\t\tif(file[i].isDirectory())\n\t\t\t\t{\n\t\t\t\t\tdirectorySearch(file[i], target);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (NullPointerException e)\n\t\t{\n\t\t\t//If the File[] is null then catch this exception.\n\t\t\treturn;\n\t\t}\n\t}", "String transcribeFilesInDirectory(String directoryPath);", "private static void buildDir (File dir) \n\t\tthrows Exception\n\t{\n\t\tFile[] contents = dir.listFiles();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tFile file = contents[i];\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tbuildDir(file);\n\t\t\t} else if (file.getName().endsWith(\".xml\")) {\n\t\t\t\tbuildFile(file);\n\t\t\t}\n\t\t}\n\t}", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "private void getAllFiles(File dir, List<File> fileList) throws IOException {\r\n File[] files = dir.listFiles();\r\n if(files != null){\r\n for (File file : files) {\r\n // Do not add the directories that we need to skip\r\n if(!isDirectoryToSkip(file.getName())){\r\n fileList.add(file);\r\n if (file.isDirectory()) {\r\n getAllFiles(file, fileList);\r\n }\r\n }\r\n }\r\n }\r\n }", "private void scanDirectory(final File directory) throws AnalyzerException {\n\t\tFile[] files = directory.listFiles();\n\t\tfor (File f : files) {\n\t\t\t// scan .class file\n\t\t\tif (f.isFile() && f.getName().toLowerCase().endsWith(\".class\")) {\n\t\t\t\tInputStream is = null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(f);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot read input stream from '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnew ClassReader(is).accept(scanVisitor,\n\t\t\t\t\t\t\tClassReader.SKIP_CODE);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot launch class visitor on the file '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot close input stream on the file '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// loop on childs\n\t\t\t\tif (f.isDirectory()) {\n\t\t\t\t\tscanDirectory(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}", "private static void rAddFilesToArray(File workingDirectory, ArrayList<File> result) {\n File[] fileList = workingDirectory.listFiles();\n if (fileList == null) return;\n for (File file : fileList) {\n String name = file.getName();\n int lastDotIndex = name.lastIndexOf('.');\n String ext = (lastDotIndex == -1) ? \"\" : name.substring(lastDotIndex + 1);\n if (file.isDirectory())\n rAddFilesToArray(file, result);\n if (!file.equals(remainderFile) && ext.equals(\"xml\")) {\n result.add(file);\n }\n }\n }", "private static void processRepository(File repo) {\n System.out.println(\"Processing repository: \" + repo);\n for (File fileOrDir : repo.listFiles()) {\n if (fileOrDir.isDirectory()) {\n processModule(fileOrDir);\n }\n }\n }", "public void parseFile(File dir) {\r\n\t\tFile[] files = dir.listFiles();\r\n\t\tfor(int i = 0; i < files.length; i++) {\r\n\t\t\tif(files[i].isDirectory()) {\r\n\t\t\t\tparseFile(files[i]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!files[i].exists()) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tString fileName = files[i].getName();\r\n\t\t\t\tif(fileName.toLowerCase().endsWith(\".json\")) {\r\n\t\t\t\t\twq.execute(new Worker(library, files[i]));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "public static void processPath(File path, FileFilter filter, FileProcessor processor) {\r\n if (path.isDirectory()) {\r\n // if path is a directory, look into it\r\n File[] directoryListing = path.listFiles(filter);\r\n if (directoryListing == null) {\r\n throw new IllegalArgumentException(\"Directory access problem for: \" + path);\r\n }\r\n for (File file : directoryListing) {\r\n processPath(file, filter, processor);\r\n }\r\n } else {\r\n // it's already passed the filter or was uniquely specified\r\n // if (filter.accept(path))\r\n processor.processFile(path);\r\n }\r\n }", "abstract protected void execute(String dir);", "public static void goThroughFilesForFolder(final File folder) throws Exception {\r\n\r\n\t\t/*\r\n\t\t * char[] filePath;\r\n\t\t// *Files.walk(Paths.get(\"E:/Studying/eclipse/workspace/Thesis/PMIDs\")).\r\n\t\t * Files.walk(Paths.get(\"E:/Studying/Box Sync/workspace/Thesis/PMIDs\")).\r\n\t\t * forEach(filePath -> { if (Files.isRegularFile(filePath)) {\r\n\t\t * System.out.println(filePath); } }\r\n\t\t */\r\n\t\t// /*\r\n\t\tfor (final File fileEntry : folder.listFiles()) {\r\n\t\t\tif (fileEntry.isDirectory()) {\r\n\t\t\t\tgoThroughFilesForFolder(fileEntry);\r\n\t\t\t} else {\r\n\t\t\t\tprocessFile(fileEntry);\r\n\t\t\t\t// System.out.println(fileEntry.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t// */\r\n\t}", "protected static Enumeration applyFilter(Stack stackDirs, FileFilter filter)\n {\n Vector vectFiles = new Vector();\n\n while (!stackDirs.isEmpty())\n {\n File dir = (File) stackDirs.pop();\n if (!dir.isDirectory())\n {\n throw new IllegalArgumentException(\"Illegal directory: \\\"\" + dir.getPath() + \"\\\"\");\n }\n\n File[] aFiles = dir.listFiles(filter);\n int cFiles = aFiles.length;\n for (int i = 0; i < cFiles; ++i)\n {\n vectFiles.addElement(aFiles[i]);\n }\n }\n\n return vectFiles.elements();\n }", "public void parseDirectory(File directory) throws IOException {\n this.parsedFiles.clear();\n File[] contents = directory.listFiles();\n for (File file : contents) {\n if (file.isFile() && file.canRead() && file.canWrite()) {\n String fileName = file.getPath();\n if (fileName.endsWith(\".html\")) {\n Document parsed;\n parsed = Jsoup.parse(file, \"UTF-8\");\n if (this.isWhiteBearArticle(parsed)) {\n HTMLFile newParsedFile = new HTMLFile(parsed, false);\n String name = file.getName();\n this.parsedFiles.put(name, newParsedFile);\n } else if (this.isMenuPage(parsed)) {\n //HTMLFile newParsedFile = new HTMLFile(parsed, false);\n //String name = file.getName();\n //this.parsedFiles.put(name, newParsedFile);\n }\n }\n }\n }\n }", "public static void traversal(File root, FileFilter filter, Action<File> action) {\n if (root == null || !root.exists() || !filter.accept(root)) return;\n if (root.isDirectory()) {\n final File[] files = root.listFiles();\n if (files != null) {\n for (File file : files) {\n traversal(file, filter, action);\n }\n }\n } else {\n action.call(root);\n }\n }", "@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tPath resolve = target.resolve(source.relativize(dir));\n\t\t\t\tFile resolve_file = resolve.toFile();\n\n\t\t\t\tif (resolve_file.exists() == false) {\n\t\t\t\t\tFiles.createDirectory(resolve);\n\t\t\t\t} else {\n\t\t\t\t\t// delete old data in sub-directories\n\t\t\t\t\t// without deleting the directory\n\t\t\t\t\tArrays.asList(resolve_file.listFiles()).forEach(File::delete);\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}", "private void recurseOverFolder(final File folder) {\n File[] files = folder.listFiles();\n if (files == null) {\n return;\n }\n\n // Check each path and recurse if it's a folder, handle if it's a file\n for (final File fileEntry : files) {\n if (fileEntry.isDirectory()) {\n recurseOverFolder(fileEntry);\n } else {\n handleFile(fileEntry);\n }\n }\n }", "@Override\r\n\tpublic String globFilesDirectories(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}", "private void fillAllImagesUnderDirectory(File directory) throws IOException {\n // get the list of all files (including directories) in the directory of interest\n File[] fileArray = directory.listFiles();\n assert fileArray != null;\n\n for (File file : fileArray) {\n // if the file is an image, then add it\n if (isImage(file)) {\n ImageFile imageFile = new ImageFile(file.getAbsolutePath());\n // if the image is already saved, reuse it\n if (centralController.getImageFileController().hasImageFile(imageFile)) {\n allImagesUnderDirectory\n .add(centralController.getImageFileController().getImageFile(imageFile));\n } else if (imagesInDirectory.contains(imageFile)) {\n allImagesUnderDirectory.add(imagesInDirectory.get(imagesInDirectory.indexOf(imageFile)));\n } else {\n allImagesUnderDirectory.add(imageFile);\n }\n } else if (file.isDirectory()) {\n fillAllImagesUnderDirectory(file);\n }\n }\n }", "public static List<File> listFilesRecurse(File dir, FileFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "public static List<File> listFilesRecurse(File dir, FilenameFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "List<File> list(String directory) throws FindException;", "@Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException {\n if(!matcher.matches(path.getFileName()) ||\n Math.abs(path.getFileName().hashCode() % DirectoryScanner.NUM_THREADS) != num) {\n return FileVisitResult.CONTINUE;\n }\n\n logStream.println(\"Visiting file: \" + root.relativize(path));\n\n Path dest = outRoot.resolve(root.relativize(path));\n\n //moving is faster than copying and deleting\n if(autoDelete) {\n Files.move(path, dest, StandardCopyOption.REPLACE_EXISTING);\n } else {\n Files.copy(path, dest, StandardCopyOption.REPLACE_EXISTING);\n }\n\n\n return FileVisitResult.CONTINUE;\n }", "@Override\n\tpublic void run() {\n\t\tif (!mainDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// inserisco il nome della cartella principale.\n\t\tproduceDirPath(mainDir.getName());\n\t\t\n\t\t// navigo ricorsivamente.\n\t\twalkDir(mainDir);\n\t}", "private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }", "static void bulkConvert(File folder, File destination)\n {\n if (folder == null)\n throw new IllegalArgumentException(\"folder cannot be null\");\n if (!folder.isDirectory())\n throw new IllegalArgumentException(\"folder is not a directory\");\n\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n bulkConvert(f, destination);\n continue;\n }\n\n String extension = f.getName().split(\"\\\\.\")[1];\n\n if (extension.toUpperCase().equals(\"DLIS\"))\n readFromDLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LIS\"))\n readFromLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LAS\"))\n readFromLAS(f, destination.getPath());\n }\n }", "@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (!this.sourceDirectory.equals(dir)) {\n this.currentTargetDirectory = this.currentTargetDirectory.getParent();\n }\n return FileVisitResult.CONTINUE;\n }", "private void getAllJarFiles(File dir, ArrayList fileList)\n\t{\n\t\tif (dir.exists() && dir.isDirectory())\n\t\t{\n\t\t\tFile[] files = dir.listFiles();\n\t\t\tif (files == null)\n\t\t\t\treturn;\n\n\t\t\tfor (int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tFile file = files[i];\n\t\t\t\tif (file.isFile())\n\t\t\t\t{\n\t\t\t\t\tif (file.getName().endsWith(\".jar\")) //$NON-NLS-1$\n\t\t\t\t\t\tfileList.add(file);\n\t\t\t\t}\n\t\t\t\telse if (file.isDirectory())\n\t\t\t\t{\n\t\t\t\t\tgetAllJarFiles(file, fileList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void updateFiles() {\n\t}", "public static List<Path> getPackageFiles(\n Path directory, boolean recursive, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(directory)) {\n List<Path> files = new ArrayList<>();\n\n for (Path filePath : stream) {\n // Capture all source files\n if (filePath.toString().endsWith(SRC_EXTENSION)) files.add(filePath);\n // Capture any package-info files\n else if (filePath.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(filePath, pkgDocs);\n // Recurse into subdirectories if desired\n else if (recursive && Files.isDirectory(filePath))\n files.addAll(getPackageFiles(filePath, true, pkgDocs));\n }\n return files;\n }\n }", "private void addStyles(String dir, boolean recurse) {\n File dirF = new File(dir);\n if (dirF.isDirectory()) {\n File[] files = dirF.listFiles();\n for (File file : files) {\n // If the file looks like a style file, parse it:\n if (!file.isDirectory() && (file.getName().endsWith(StyleSelectDialog.STYLE_FILE_EXTENSION))) {\n addSingleFile(file);\n }\n // If the file is a directory, and we should recurse, do:\n else if (file.isDirectory() && recurse) {\n addStyles(file.getPath(), recurse);\n }\n }\n }\n else {\n // The file wasn't a directory, so we simply parse it:\n addSingleFile(dirF);\n }\n }", "private static void traverse(Path path, ArrayList<Path> fileArray) {\r\n try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\r\n for (Path file : listing) {\r\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\r\n fileArray.add(file);\r\n } else if (Files.isDirectory(file)) {\r\n traverse(file, fileArray);\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Invalid path: \" + path);\r\n }\r\n }", "public boolean accept(File dir, String name);", "private static void processFontDirectory(File dir, ArrayList fonts) {\n if (!dir.exists()) {\n return;\n }\n if (processed.contains(dir)) {\n return;\n }\n processed.add(dir);\n\n File[] sources = dir.listFiles();\n if (sources == null) {\n return;\n }\n\n for (int j = 0; j < sources.length; j++) {\n File source = sources[j];\n\n if (source.getName().equals(\".\")) {\n continue;\n }\n if (source.getName().equals(\"slick/src/test\")) {\n continue;\n }\n if (source.isDirectory()) {\n processFontDirectory(source, fonts);\n continue;\n }\n if (source.getName().toLowerCase().endsWith(\".ttf\")) {\n try {\n if (statusListener != null) {\n statusListener.updateStatus(\"Processing \" + source.getName());\n }\n FontData data = new FontData(new FileInputStream(source), 1);\n fonts.add(data);\n\n String famName = data.getFamilyName();\n if (!families.contains(famName)) {\n families.add(famName);\n }\n\n boolean bo = data.getJavaFont().isBold();\n boolean it = data.getJavaFont().isItalic();\n\n if ((bo) && (it)) {\n bolditalic.put(famName, data);\n } else if (bo) {\n bold.put(famName, data);\n } else if (it) {\n italic.put(famName, data);\n } else {\n plain.put(famName, data);\n }\n } catch (Exception e) {\n if (DEBUG) {\n System.err.println(\"Unable to process: \" + source.getAbsolutePath() + \" (\" + e.getClass() +\n \": \" + e.getMessage() + \")\");\n }\n if (statusListener != null) {\n statusListener.updateStatus(\"Unable to process: \" + source.getName());\n }\n }\n }\n }\n }", "public File enterSubDir(String dir) {\n return enterSubDir(dir, getComparator());\n }", "private ArrayList<char[]> subdirectoriesToFiles(ArrayList<char[]> currentList, ArrayList<char[]> fullFileList) throws IOException {\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\telse if (file.isDirectory()){\n\t\t\t\t$.log(file.toString());\n\t\t\t\tsubdirectoriesToFiles(file.getAbsolutePath(), fullFileList);\n\t\t\t}\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "public static File[] listFilesInTree(File dir, FileFilter filter, boolean recordDirectories) {\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tlistFilesInTreeHelper(files, dir, filter, recordDirectories);\r\n\t\treturn (File[]) files.toArray(new File[files.size()]);\r\n\t}", "private void processBulk()\n {\n File inDir = new File(m_inDir);\n String [] fileList = inDir.list();\n \n for (int j=0; j<fileList.length; j++)\n {\n String file = fileList[j];\n if (file.endsWith(\".xml\"))\n {\n m_inFile = m_inDir + \"/\" + file;\n m_localeStr = Utilities.extractLocaleFromFilename(file);\n processSingle();\n }\n }\n }", "private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }", "@Override\n\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\tSystem.out.println(dir.toAbsolutePath());\n\t\tPath RelativizedPath = SourceRoot.relativize(dir);\n\t\tSystem.out.println(RelativizedPath.toAbsolutePath());\n\t\tPath ResolvedPath = TargetRoot.resolve(RelativizedPath);\n\t\tSystem.out.println(ResolvedPath.toAbsolutePath());\n\t\t\n\t\ttry {\n\t\t\tFiles.copy(dir,ResolvedPath,StandardCopyOption.REPLACE_EXISTING);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn FileVisitResult.SKIP_SUBTREE;\n\t\t}\n\t\t\n\t\t\n\t\t\ttry {\n\t\t\t\tFiles.deleteIfExists(dir);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\treturn FileVisitResult.CONTINUE;\n\t}", "private void findAssignmentFiles(ArrayList<File> files, String directory) {\n\n //---------- Step 1: find and uncompress zip files ----------\n if (bAutoUncompress) {\n ArrayList<File> compressedFiles = findFilesByExtension(directory, COMPRESSION_EXTENSIONS);\n for (File cFile : compressedFiles) {\n //uncompress each zip file\n String[] cmd = {\"unzip\", \"-u\", cFile.getAbsolutePath(), \"-d\", stripFileExtension(cFile.getAbsolutePath())};\n String cmdStr = \"unzip -u \\\"\" + cFile.getAbsolutePath() + \"\\\" -d \\\"\" + stripFileExtension(cFile.getAbsolutePath()) + \"\\\"\";\n console(cmdStr);\n\n try {\n Runtime r = Runtime.getRuntime();\n Process p = r.exec(cmd); //execute the unzip command\n //Process p = r.exec(\"unzip -u \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b.zip\\34 -d \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b\\34\");\n p.waitFor();\n } catch (Exception e) {\n console(\"[findAssignmentFiles()]\", e);\n }\n }\n }\n\n //---------- Step 2: find programming files in the directory ----------\n ArrayList<File> programmingFiles = findFilesByExtension(directory, PYTHON_AND_CPP_EXTENSIONS);\n if (programmingFiles.size() > 0) {\n files.addAll(programmingFiles);\n //if we found any files, we are done\n return;\n }\n\n //---------- Step 3: search for sub-directories ----------\n ArrayList<File> subDirs = getSubDirectories(directory, true);\n for (File sDir : subDirs) {\n //Step 4: recursively call findAssignmentFiles() if we find subdirectories\n findAssignmentFiles(files, sDir.toString());\n }\n\n //---------- Step 5 ----------\n //No assignment files found. This may be the end of the recursion.\n }", "public ArrayList<String> traverseFiles(File inputDir, ArrayList<String> Documents2 )\n\t{\n\t\tif (inputDir.isDirectory()) {\n\t\t\t//System.out.println(\"Checking for directory...\");\n\t String[] children = inputDir.list();\n\t for (int i = 0; children != null && i < children.length; i++) {\n\t traverseFiles(new File(inputDir, children[i]), Documents2);\n\t }\n\t }\n\t if (inputDir.isFile()) \n\t \t{ Documents2.add(inputDir.getAbsolutePath());}//change it if needed\n\t \n\t return Documents2;\n\t // System.out.println(Documents.size());\n\t}", "@Override\n public List<GEMFile> getLocalFiles(String directory) {\n File dir = new File(directory);\n List<GEMFile> resultList = Lists.newArrayList();\n File[] fList = dir.listFiles();\n if (fList != null) {\n for (File file : fList) {\n if (file.isFile()) {\n resultList.add(new GEMFile(file.getName(), file.getParent()));\n } else {\n resultList.addAll(getLocalFiles(file.getAbsolutePath()));\n }\n }\n gemFileState.put(STATE_SYNC_DIRECTORY, directory);\n }\n return resultList;\n }", "private static void recurseFiles(File file)\r\n throws IOException, FileNotFoundException\r\n {\r\n if (file.isDirectory()) {\r\n //Create an array with all of the files and subdirectories \r\n //of the current directory.\r\nString[] fileNames = file.list();\r\n if (fileNames != null) {\r\n //Recursively add each array entry to make sure that we get\r\n //subdirectories as well as normal files in the directory.\r\n for (int i=0; i<fileNames.length; i++){ \r\n \trecurseFiles(new File(file, fileNames[i]));\r\n }\r\n }\r\n }\r\n //Otherwise, a file so add it as an entry to the Zip file. \r\nelse {\r\n byte[] buf = new byte[1024];\r\n int len;\r\n //Create a new Zip entry with the file's name. \r\n\r\n\r\nZipEntry zipEntry = new ZipEntry(file.toString());\r\n //Create a buffered input stream out of the file \r\n\r\n\r\n//we're trying to add into the Zip archive. \r\n\r\n\r\nFileInputStream fin = new FileInputStream(file);\r\n BufferedInputStream in = new BufferedInputStream(fin);\r\n zos.putNextEntry(zipEntry);\r\n //Read bytes from the file and write into the Zip archive. \r\n\r\n\r\nwhile ((len = in.read(buf)) >= 0) {\r\n zos.write(buf, 0, len);\r\n }\r\n //Close the input stream. \r\n\r\n\r\n in.close();\r\n //Close this entry in the Zip stream. \r\n\r\n\r\n zos.closeEntry();\r\n }\r\n }", "private void addPackageDirFiles(WebFile aDir, List aList)\n{\n boolean hasNonPkgFile = false;\n for(WebFile child : aDir.getFiles())\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, aList);\n else hasNonPkgFile = true;\n if(hasNonPkgFile || aDir.getFileCount()==0) aList.add(aDir);\n}", "private static void showFiles(File[] files) {\n\t\t for (File file : files) {\r\n\t\t if (file.isDirectory()) {\r\n\t\t // System.out.println(\"Directory: \" + file.getName());\r\n\t\t showFiles(file.listFiles()); // Calls same method again.\r\n\t\t } else {\r\n\t\t // System.out.println(\"File: \" + file.getName());\r\n\t\t }\r\n\t\t }\r\n\t\t\r\n\t}", "public static ArrayList<Path> traverse(Path directory) {\r\n ArrayList<Path> filenames = new ArrayList<Path>();\r\n traverse(directory, filenames);\r\n return filenames;\r\n }", "public static void getAllFiles(File dir, List<File> fileList) {\n File[] files = dir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.endsWith(\".xml\") || name.endsWith(\".kml\");\n }\n });\n for (File file : files) {\n fileList.add(file);\n if (file.isDirectory()) {\n getAllFiles(file, fileList);\n }\n }\n }", "private static void joinFiles(String mainPath, ArrayList<File> oldFiles){\n FileFilter jsonFilter = new FileFilter() {\r\n public boolean accept(File path) {\r\n return path.getName().endsWith(\".json\");\r\n }\r\n };\r\n\r\n //contains all files in path\r\n File fileMain = new File(mainPath);\r\n File[] fileList = fileMain.listFiles();\r\n boolean checkedPath = false;\r\n\r\n if(fileList!=null){\r\n for(File fileTemp: fileList){\r\n //checkedPath makes sure JSON files are not cloned\r\n if(fileTemp.isFile() && checkedPath == false){\r\n //adds the JSON files found to arraylist\r\n File file = new File(mainPath);\r\n File[] jsonList = file.listFiles(jsonFilter);\r\n for(File temp: jsonList){\r\n oldFiles.add(temp);\r\n }\r\n checkedPath = true;\r\n }\r\n //if file found is a folder, recursively searches until JSON file is found\r\n else if(fileTemp.isDirectory()){\r\n joinFiles(fileTemp.getAbsolutePath(), oldFiles);\r\n }\r\n }\r\n }\r\n }", "public static void Java_tree(File dir, int depth, String sort_method, int initialDepth) {\n // TODO: print file tree\n File[] fileList = sortFileList(dir.listFiles(), sort_method);\n depth--;\n\n if (fileList != null && fileList.length != 0) {\n for (File file : fileList) {\n if (dir == currentDirectory) {\n System.out.println(file.getName());\n } else {\n String output = \"|-\" + file.getName();\n for (int i = 0; i < (initialDepth - depth - 1); i++) {\n output = \" \" + output;\n }\n System.out.println(output);\n }\n\n if (depth > 0 && file.isDirectory()) {\n Java_tree(file, depth, sort_method, initialDepth);\n }\n }\n }\n\n }", "private static Multimap<String, File> createMapOfFiles(File folder, Multimap<String, File> map) throws Exception {\n if (folder.exists()) {\n File[] allFiles = folder.listFiles();\n assert allFiles != null;\n for (File file : allFiles) {\n if (file.isDirectory()) {\n createMapOfFiles(file, map);\n } else {\n String name = normaliseFileName(file.getName());\n map.put(name, file);\n }\n }\n return map;\n } else\n throw new Exception(\"Tried to sort an directory that no longer exist\");\n }", "public static void main(String[] args) throws FileNotFoundException {\n Scanner input = new Scanner(System.in);\n files(input); // calls files method \n }", "private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }", "public interface IReadDirectory {\n\n /**\n * List all files existing in the given directory.\n * \n * @param directory\n * @return file list\n * @throws FindException\n */\n List<File> list(String directory) throws FindException;\n\n}", "protected void scandir( File dir, String vpath, boolean fast )\n throws TaskException\n {\n String[] newfiles = dir.list();\n\n if( newfiles == null )\n {\n /*\n * two reasons are mentioned in the API docs for File.list\n * (1) dir is not a directory. This is impossible as\n * we wouldn't get here in this case.\n * (2) an IO error occurred (why doesn't it throw an exception\n * then???)\n */\n throw new TaskException( \"IO error scanning directory \"\n + dir.getAbsolutePath() );\n }\n\n for( int i = 0; i < newfiles.length; i++ )\n {\n String name = vpath + newfiles[ i ];\n File file = new File( dir, newfiles[ i ] );\n if( file.isDirectory() )\n {\n if( isIncluded( name ) )\n {\n if( !isExcluded( name ) )\n {\n dirsIncluded.add( name );\n if( fast )\n {\n scandir( file, name + File.separator, fast );\n }\n }\n else\n {\n everythingIncluded = false;\n dirsExcluded.add( name );\n if( fast && couldHoldIncluded( name ) )\n {\n scandir( file, name + File.separator, fast );\n }\n }\n }\n else\n {\n everythingIncluded = false;\n dirsNotIncluded.add( name );\n if( fast && couldHoldIncluded( name ) )\n {\n scandir( file, name + File.separator, fast );\n }\n }\n if( !fast )\n {\n scandir( file, name + File.separator, fast );\n }\n }\n else if( file.isFile() )\n {\n if( isIncluded( name ) )\n {\n if( !isExcluded( name ) )\n {\n filesIncluded.add( name );\n }\n else\n {\n everythingIncluded = false;\n filesExcluded.add( name );\n }\n }\n else\n {\n everythingIncluded = false;\n filesNotIncluded.add( name );\n }\n }\n }\n }", "private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }", "protected Set<File> getDataFiles(File directory){\n\t\tSet<File> files = new HashSet<File>();\n\t\t\n\t\tfor(File file : directory.listFiles()){\n\t\t\tif(file.isDirectory()){\n\t\t\t\tfiles.addAll(this.getDataFiles(file));\n\t\t\t} else {\n\t\t\t\tif(file.getName().equals(DATA_FILE)){\n\t\t\t\t\tfiles.add(file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn files;\n\t}", "private static void loadImagesInDirectory(String dir){\n\t\tFile file = new File(Files.localize(\"images\\\\\"+dir));\n\t\tassert file.isDirectory();\n\t\n\t\tFile[] files = file.listFiles();\n\t\tfor(File f : files){\n\t\t\tif(isImageFile(f)){\n\t\t\t\tString name = dir+\"\\\\\"+f.getName();\n\t\t\t\tint i = name.lastIndexOf('.');\n\t\t\t\tassert i != -1;\n\t\t\t\tname = name.substring(0, i).replaceAll(\"\\\\\\\\\", \"/\");\n\t\t\t\t//Image image = load(f,true);\n\t\t\t\tImageIcon image;\n\t\t\t\tFile f2 = new File(f.getAbsolutePath()+\".anim\");\n\t\t\t\tif(f2.exists()){\n\t\t\t\t\timage = evaluateAnimFile(dir,f2,load(f,true));\n\t\t\t\t}else{\n\t\t\t\t\timage = new ImageIcon(f.getAbsolutePath());\n\t\t\t\t}\n\t\t\t\tdebug(\"Loaded image \"+name+\" as \"+f.getAbsolutePath());\n\t\t\t\timages.put(name, image);\n\t\t\t}else if(f.isDirectory()){\n\t\t\t\tloadImagesInDirectory(dir+\"\\\\\"+f.getName());\n\t\t\t}\n\t\t}\n\t}", "public void directoryChange( int type, Set fileSet );", "void setDirectory(File dir);", "public static Set<File> getFiles(File dir, final FileFilter filter) {\n // Get files in this folder\n File[] files = dir.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return !pathname.isDirectory() && filter.accept(pathname);\n }\n });\n \n Set<File> allFiles = new HashSet<>(files.length);\n //if (files != null) {\n allFiles.addAll(Arrays.asList(files));\n //}\n\n // Get files in sub directories\n File[] directories = dir.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isDirectory();\n }\n });\n \n //if (directories != null) {\n for (File directory : directories) {\n allFiles.addAll(getFiles(directory, filter));\n }\n //}\n\n return allFiles;\n }", "void processContentFiles(final File directoryToProcess, final String configId) {\r\n File[] files = directoryToProcess.listFiles();\r\n for (int fileIndex = 0; fileIndex < files.length; fileIndex++) {\r\n if (!(files[fileIndex].getName().equals(Constants.CONFIGURATION_FILE_NAME) || files[fileIndex]\r\n .getName().startsWith(\"successful_\"))) {\r\n try {\r\n storeContentToInfrastructure(directoryToProcess, configId, files, fileIndex);\r\n }\r\n catch (DepositorException e) {\r\n // FIXME give a message\r\n LOG.error(e.getMessage(), e);\r\n addToFailedConfigurations(configId);\r\n }\r\n }\r\n }\r\n }", "List<Path> getFiles();", "private static Vector addFiles(ZipOutputStream out, String target, String filter, boolean usePath, boolean recurse, Vector includeList) throws IOException {\r\n byte[] buf = new byte[1024];\r\n File[] fileList = null;\r\n File targetFile = new File(target);\r\n if (targetFile.isDirectory()) {\r\n fileList = targetFile.listFiles(); \r\n } else {\r\n fileList = new File[1];\r\n fileList[0] = new File(target);\r\n }\r\n if (fileList != null && fileList.length > 0) {\r\n for (int i=0; i<fileList.length; i++) {\r\n if (fileList[i].isFile()) {\r\n if (filter != null && filter.length() == 0) {\r\n if (!fileList[i].getName().endsWith(filter))\r\n continue;\r\n }\r\n FileInputStream in = new FileInputStream(fileList[i].getAbsolutePath());\r\n if (!usePath) {\r\n out.putNextEntry(new ZipEntry(fileList[i].getName()));\r\n } else {\r\n out.putNextEntry(new ZipEntry(fileList[i].getAbsolutePath()));\r\n }\r\n int len;\r\n while ((len = in.read(buf)) > 0) {\r\n out.write(buf, 0, len);\r\n }\r\n out.closeEntry();\r\n in.close();\r\n includeList.add(fileList[i].getAbsolutePath());\r\n } else if (fileList[i].isDirectory() && recurse) {\r\n includeList = ZipUtil.addFiles(out, fileList[i].getAbsolutePath(), filter, true, true, includeList);\r\n }\r\n }\r\n }\r\n return includeList;\r\n }", "public Vector getTypedFilesForDirectory(File dir) {\r\n\tboolean useCache = dir.equals(getCurrentDirectory());\r\n\r\n\tif(useCache && currentFilesFresh) {\r\n\t return currentFiles;\r\n\t} else {\r\n\t Vector resultSet;\r\n\t if (useCache) {\r\n\t\tresultSet = currentFiles;\r\n\t\tresultSet.removeAllElements();\r\n\t } else {\r\n\t\tresultSet = new Vector();\r\n\t }\r\n\t \r\n\t String[] names = dir.list();\r\n\r\n\t int nameCount = names == null ? 0 : names.length;\r\n\t for (int i = 0; i < nameCount; i++) {\r\n\t\tTypedFile f;\r\n\t\tif (dir instanceof WindowsRootDir) {\r\n\t\t f = getTypedFile(names[i]);\r\n\t\t} else {\r\n\t\t f = getTypedFile(dir.getPath(), names[i]);\r\n\t\t}\r\n\r\n\t\tFileType t = f.getType();\r\n\t\tif ((shownType == null || t.isContainer() || shownType == t)\r\n\t\t && (hiddenRule == null || !hiddenRule.testFile(f))) {\r\n\t\t resultSet.addElement(f);\r\n\t\t}\r\n\t }\r\n\r\n\t // The fake windows root dir will get mangled by sorting\r\n\t if (!(dir instanceof DirectoryModel.WindowsRootDir)) {\r\n\t\tsort(resultSet);\r\n\t }\r\n\r\n\t if (useCache) {\r\n\t\tcurrentFilesFresh = true;\r\n\t }\r\n\r\n\t return resultSet;\r\n\t}\r\n }", "public static void dir(String currentPath){}", "public static void main(String[] args) {\n\n File dir = new File(\"D:/test.txt\");\n FileFilter fr = (File f) -> f.isDirectory();\n File[] fs = dir.listFiles(fr);\n }", "public void serveFilesFromDirectory(String directoryPath) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n mImpl.serveFilesFromDirectory(directoryPath);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\n \"Failed to start serving files from \" + directoryPath + \": \" + e.toString());\n }\n }", "@Override\r\n public void dirToPath(String[] arr) {\n\r\n }", "public static Iterable<File> applyCwd(File cwd, Iterable<File> files) {\n if (files != null) {\n List<File> result = new ArrayList<File>();\n for (File f : files) {\n result.add(applyCwd(cwd, f));\n }\n return result;\n } else {\n return null;\n }\n }", "public CollectingFileToucher(String[] args)\n {\n super(args);\n mFiles = new ArrayList<File>();\n mFileFilter = new JavaSoftFileToucher(args);\n/*\n {\n public boolean accept(File inFile)\n {\n return true;\n }\n };\n*/\n }", "@Override\n public void removeDirectory(File directory, boolean recursive) throws FileNotFoundException, IOException {\n }", "private void readFiles(final File folder, final List<File> fileList) {\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tif (fileEntry.isDirectory()) {\n\t\t\t\treadFiles(fileEntry, fileList);\n\t\t\t} else {\n\t\t\t\tfileList.add(fileEntry);\n\t\t\t}\n\t\t}\n\t}", "private void processFolder(File folder) {\n \t\tFile[] subFolders = folder.listFiles(new FileFilter() {\n \t\t\t@Override\n \t\t\tpublic boolean accept(File pathname) {\n \t\t\t\treturn pathname.isDirectory();\n \t\t\t}\n \t\t});\n \t\tfor (File subFolder : subFolders){\n \t\t\tprocessFolder(subFolder); \n \t\t}\n \t\tPattern nameRegex = Pattern.compile(\"([\\\\d-]+)\\\\.(pdf|epub)\", Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);\n \t\tFile[] files = folder.listFiles();\n \t\tfor (File file : files) {\n \t\t\tlogger.info(\"Processing file \" + file.getName());\n \t\t\tprocessLog.addNote(\"Processing file \" + file.getName());\n \t\t\tif (file.isDirectory()) {\n \t\t\t\t//TODO: Determine how to deal with nested folders?\n \t\t\t\t//processFolder(file);\n \t\t\t} else {\n \t\t\t\t// File check to see if it is of a known type\n \t\t\t\tMatcher nameMatcher = nameRegex.matcher(file.getName());\n \t\t\t\tif (nameMatcher.matches()) {\n \t\t\t\t\tImportResult importResult = new ImportResult();\n \t\t\t\t\tString isbn = nameMatcher.group(1);\n \t\t\t\t\tString fileType = nameMatcher.group(2).toLowerCase();\n \t\t\t\t\timportResult.setBaseFilename(isbn);\n \t\t\t\t\tisbn = isbn.replaceAll(\"-\", \"\");\n \t\t\t\t\timportResult.setISBN(isbn);\n \t\t\t\t\timportResult.setCoverImported(\"\");\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Get the record for the isbn\n \t\t\t\t\t\tgetRelatedRecords.setString(1, \"%\" + isbn + \"%\");\n \t\t\t\t\t\tResultSet existingRecords = getRelatedRecords.executeQuery();\n \t\t\t\t\t\tif (!existingRecords.next()){\n \t\t\t\t\t\t\t//No record found \n \t\t\t\t\t\t\tlogger.info(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\tprocessLog.addNote(\"Could not find record for ISBN \" + isbn);\n \t\t\t\t\t\t}else{\n \t\t\t\t\t\t\tlogger.info(\"Found at least one record for \" + isbn);\n \t\t\t\t\t\t\tif (existingRecords.last()){\n \t\t\t\t\t\t\t\tif (existingRecords.getRow() >= 2){\n \t\t\t\t\t\t\t\t\tlogger.info(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Multiple records were found for ISBN \" + isbn);\n \t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t//We have an existing record\n \t\t\t\t\t\t\t\t\texistingRecords.first();\n \t\t\t\t\t\t\t\t\tString recordId = existingRecords.getString(\"id\");\n \t\t\t\t\t\t\t\t\tString accessType = existingRecords.getString(\"accessType\");\n \t\t\t\t\t\t\t\t\tString source = existingRecords.getString(\"source\");\n \t\t\t\t\t\t\t\t\tlogger.info(\" Attaching file to \" + recordId + \" accessType = \" + accessType + \" source=\" + source);\n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t// Copy the file to the library if it does not exist already\n \t\t\t\t\t\t\t\t\tFile resultsFile = new File(libraryDirectory + source + \"_\" + file.getName());\n \t\t\t\t\t\t\t\t\tif (resultsFile.exists()) {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Skipping file because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"File has already been copied to library\");\n \t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because it already exists in the library\");\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\tlogger.info(\"Importing file \" + file.getName());\n \t\t\t\t\t\t\t\t\t\t//Check to see if the file has already been added to the library.\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(1, file.getName());\n \t\t\t\t\t\t\t\t\t\tdoesItemExist.setString(2, recordId);\n \t\t\t\t\t\t\t\t\t\tResultSet existingItems = doesItemExist.executeQuery();\n \t\t\t\t\t\t\t\t\t\tif (existingItems.next()){\n \t\t\t\t\t\t\t\t\t\t\t//The item already exists\n \t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"skipped\" ,\"The file has already been aded as an eContent Item\");\n \t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(\"Skipping file \" + file.getName() + \" because has already been attached to this record\");\n \t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" copying the file to library source=\" + file + \" dest=\" + resultsFile);\n \t\t\t\t\t\t\t\t\t\t\t\t//Copy the pdf file to the library\n \t\t\t\t\t\t\t\t\t\t\t\tUtil.copyFile(file, resultsFile);\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\t//Add file to acs server\n \t\t\t\t\t\t\t\t\t\t\t\tboolean addedToAcs = true;\n \t\t\t\t\t\t\t\t\t\t\t\tif (accessType.equals(\"acs\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\"Adding file to the ACS server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\taddedToAcs = addFileToAcsServer(fileType, resultsFile, importResult);\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\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (addedToAcs){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//filename, acsId, recordId, item_type, addedBy, date_added, date_updated\n \t\t\t\t\t\t\t\t\t\t\t\t\tlong curTimeSec = new Date().getTime() / 1000;\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(1, resultsFile.getName());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(2, importResult.getAcsId());\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(3, recordId);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setString(4, fileType);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(5, -1);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(6, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\taddEContentItem.setLong(7, curTimeSec);\n \t\t\t\t\t\t\t\t\t\t\t\t\tint rowsInserted = addEContentItem.executeUpdate();\n \t\t\t\t\t\t\t\t\t\t\t\t\tif (rowsInserted == 1){\n \t\t\t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"success\", \"\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" file could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the database\");\n \t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\n \t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t\t}else{\n \t\t\t\t\t\t\t\t\t\t\t\t\tlogger.info(\" the file could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.addNote(file.getName() + \" could not be added to the acs server\");\n \t\t\t\t\t\t\t\t\t\t\t\t\tprocessLog.incErrors();\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\t\n \t\t\t\t\t\t\t\t\t\t\t\tif (importResult.getSatus(fileType).equals(\"failed\")){\n \t\t\t\t\t\t\t\t\t\t\t\t\t//If we weren't able to add the file correctly, remove it so it will be processed next time. \n \t\t\t\t\t\t\t\t\t\t\t\t\tresultsFile.delete();\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\t\n \t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\t\tlogger.error(\"Error copying file to record\", e);\n \t\t\t\t\t\t\t\t\t\t\t\timportResult.setStatus(fileType, \"failed\", \"Error copying file \" + e.toString());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error finding related records\", e);\n \t\t\t\t\t\timportResult.setStatus(\"pdf\", \"failed\", \"SQL error processing file \" + e.toString());\n \t\t\t\t\t}\n \t\t\t\t\timportResults.add(importResult);\n \t\t\t\t\t//Update that another file has been processed.\n \t\t\t\t\tprocessLog.incUpdated();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(1, processLog.getNumUpdates());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(2, processLog.getNumErrors());\n \t\t\t\t\t\tupdateRecordsProcessed.setLong(3, logEntryId);\n \t\t\t\t\t\tupdateRecordsProcessed.executeUpdate();\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t\tlogger.error(\"Error updating number of records processed.\", e);\n \t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tprocessLog.addNote(\" Skipping because the name is not an ISBN\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t}", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "void processFile(File file);", "@NonNull\n public static File[] listAllFiles(File directory) {\n if (directory == null) {\n return new File[0];\n }\n File[] files = directory.listFiles();\n return files != null ? files : new File[0];\n }", "public void listFilesFromDirectory(Path path, List<UpdateFile> updateFileList) {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {\n for (Path currentPath : stream)\n if (!Files.isDirectory(currentPath)) {\n UpdateFile updateFile = new UpdateFile();\n File file = currentPath.toFile();\n updateFile.setFilePath(cutPrefixFromFilePath(file.getPath()));\n updateFile.setLastModified(String.valueOf(file.lastModified()));\n updateFileList.add(updateFile);\n } else listFilesFromDirectory(currentPath, updateFileList);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void findAllFilesRecurse(File root, ArrayList<File> files, boolean recurse) {\n\t\tFile[] rootContents = root.listFiles();\n\t\tif (rootContents == null) {\n\t\t\tfiles.add(root);\n\t\t} else {\n\t\t\tfor (File f : rootContents) {\n\t\t\t\t// if it is a file or do not go deeper\n\t\t\t\tif (f.isFile() || !recurse) {\n\t\t\t\t\tfiles.add(f);\n\t\t\t\t} else if (recurse) { // directory\n\t\t\t\t\tfindAllFilesRecurse(f, files, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void resolveJarDirectory( final File directory, final boolean recursive, final Set<String> bag )\r\n throws IllegalArgumentException, ResolutionException {\r\n if ( !directory.exists() )\r\n throw new ResolutionException(\r\n \"Directory \\\"\" + directory + \"\\\" is referenced by \" + this.toString() + \" but does not exist.\" );\r\n if ( !directory.isDirectory() )\r\n throw new ResolutionException(\r\n \"Directory \\\"\" + directory + \"\\\" is referenced by \" + this.toString() + \" but not a directory.\" );\r\n\r\n for ( final File file : directory.listFiles( new FileFilter() {\r\n @Override\r\n public boolean accept( final File pathname ) {\r\n return ( recursive && pathname.isDirectory() ) || pathname.getName().toLowerCase().endsWith( \".jar\" );\r\n }\r\n } ) ) {\r\n if ( recursive && file.isDirectory() )\r\n resolveJarDirectory( file, recursive, bag );\r\n else\r\n bag.add( file.getAbsolutePath() );\r\n }\r\n }", "private void scanDirectory(final BulkImportSourceStatus status,\n final BulkImportCallback callback,\n final File sourceDirectory,\n final File directory,\n final boolean submitFiles)\n throws InterruptedException\n {\n // PRECONDITIONS\n if (sourceDirectory == null) throw new IllegalArgumentException(\"sourceDirectory cannot be null.\");\n if (directory == null) throw new IllegalArgumentException(\"directory cannot be null.\");\n\n // Body\n if (debug(log)) debug(log, \"Scanning directory \" + directory.getAbsolutePath() + \" for \" + (submitFiles ? \"Files\" : \"Folders\") + \"...\");\n \n status.setCurrentlyScanning(sourceDirectory.getAbsolutePath());\n \n final Pair<List<FilesystemBulkImportItem>, List<FilesystemBulkImportItem>> analysedDirectory = directoryAnalyser.analyseDirectory(sourceDirectory, directory);\n \n if (analysedDirectory != null)\n {\n final List<FilesystemBulkImportItem> directoryItems = analysedDirectory.getFirst();\n final List<FilesystemBulkImportItem> fileItems = analysedDirectory.getSecond();\n \n if (!submitFiles && directoryItems != null)\n {\n for (final FilesystemBulkImportItem directoryItem : directoryItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(directoryItem))\n {\n callback.submit(directoryItem);\n }\n }\n }\n\n if (submitFiles && fileItems != null)\n {\n for (final FilesystemBulkImportItem fileItem : fileItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(fileItem))\n {\n callback.submit(fileItem);\n }\n }\n }\n \n if (debug(log)) debug(log, \"Finished scanning directory \" + directory.getAbsolutePath() + \".\");\n \n // Recurse into subdirectories and scan them too\n if (directoryItems != null && directoryItems.size() > 0)\n {\n if (debug(log)) debug(log, \"Recursing into \" + directoryItems.size() + \" subdirectories of \" + directory.getAbsolutePath());\n \n for (final FilesystemBulkImportItem directoryItem : directoryItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(directoryItem))\n {\n final FilesystemBulkImportItemVersion lastVersion = directoryItem.getVersions().last(); // Directories shouldn't have versions, but grab the last one (which will have the directory file pointer) just in case...\n \n if (lastVersion.getContentFile() != null)\n {\n scanDirectory(status,\n callback,\n sourceDirectory,\n lastVersion.getContentFile(),\n submitFiles);\n }\n else\n {\n if (info(log)) info(log, \"Directory \" + directoryItem.getName() + \" is metadata only - scan will be skipped.\");\n }\n }\n }\n }\n else\n {\n if (debug(log)) debug(log, directory.getAbsolutePath() + \" has no subdirectories.\");\n }\n }\n }", "public static void main(String args[]) throws IOException {\n File file = new File(\"D:\\\\ExampleDirectory\");\r\n //List of all files and directories\r\n listOfFiles(file);\r\n }", "private static LinkedList<String> addAllSubDirs(File dir, LinkedList<String> list) {\n\t\tString [] dirListing = dir.list();\n\t\tfor (String subDirName : dirListing) {\n\t\t\tFile subdir = new File(dir.getPath() + System.getProperty(\"file.separator\") + subDirName);\n\t\t\tif (subdir.isDirectory()) {\n\t\t\t\tif (containsJavaFiles(subdir))\n\t\t\t\t\tlist.add(subdir.getPath());\n\t\t\t\tlist = addAllSubDirs(subdir, list);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "void moveFileToDirectoryWithConvertedFiles(String pathToFile);", "public static void Java_tree(File dir, int depth, String sort_method) {\n recursive_tree(dir, depth, sort_method, 1);\n }", "public interface FileObjectFilter {\n\n /** constant representing answer &quot;do not traverse the folder&quot; */\n public static final int DO_NOT_TRAVERSE = 0;\n /** constant representing answer &quot;traverse the folder&quot; */\n public static final int TRAVERSE = 1;\n /**\n * constant representing answer &quot;traverse the folder and all its direct\n * and indirect children (both files and subfolders)&quot;\n */\n public static final int TRAVERSE_ALL_SUBFOLDERS = 2;\n\n /**\n * Answers a question whether a given file should be searched.\n * The file must be a plain file (not folder).\n *\n * @return <code>true</code> if the given file should be searched;\n * <code>false</code> if not\n * @exception java.lang.IllegalArgumentException\n * if the passed <code>FileObject</code> is a folder\n */\n public boolean searchFile(FileObject file)\n throws IllegalArgumentException;\n\n /**\n * Answers a questions whether a given folder should be traversed\n * (its contents searched).\n * The passed argument must be a folder.\n *\n * @return one of constants {@link #DO_NOT_TRAVERSE},\n * {@link #TRAVERSE},\n * {@link #TRAVERSE_ALL_SUBFOLDERS};\n * if <code>TRAVERSE_ALL_SUBFOLDERS</code> is returned,\n * this filter will not be applied on the folder's children\n * (both direct and indirect, both files and folders)\n * @exception java.lang.IllegalArgumentException\n * if the passed <code>FileObject</code> is not a folder\n */\n public int traverseFolder(FileObject folder)\n throws IllegalArgumentException;\n\n}", "public void walkTree(File source, File target, int depth) throws Exception {\n depth++;\n boolean noTarget = (null == target);\n\n if (!source.canRead())\n Utils.rude(\"Cannot read from source directory \" + source);\n if (!noTarget && !target.canWrite())\n Utils.rude(\"Cannot write to target directory \" + target);\n\n if (source.isDirectory()) {\n File[] filesInDirectory = source.listFiles();\n for (int i = 0; i < filesInDirectory.length; i++) {\n File file = filesInDirectory[i];\n String name = file.getName();\n int dot = name.lastIndexOf('.');\n String ext = null;\n if (-1 != dot)\n ext = name.substring(dot + 1);\n\n if (file.isDirectory()) {\n File newTarget = null;\n if (!noTarget) {\n StringTokenizer st = new StringTokenizer(\n file.getPath(), \"\\\\/\");\n String newdir = null;\n while (st.hasMoreTokens())\n newdir = st.nextToken();\n String targetName = maybeAppendSeparator(target\n .toString());\n newTarget = new File(targetName + newdir);\n if (!newTarget.mkdir())\n Utils.rude(\"Failed to create target directory \"\n + newTarget);\n }\n\n // recurse\n walkTree(file, newTarget, depth);\n } else if (file.isFile()\n && (extensions == null || (!file.isHidden() && extensions\n .contains(ext)))) {\n // this is a file and we need to add trace into it !\n actor.actOnFile(file, target, depth);\n }\n }\n } else {\n actor.actOnFile(source, target, depth);\n }\n }" ]
[ "0.6369325", "0.60065687", "0.59395814", "0.59317446", "0.58556867", "0.5819506", "0.57662404", "0.57262784", "0.5695847", "0.5679379", "0.56604606", "0.5613325", "0.559833", "0.5545506", "0.5533572", "0.5515005", "0.54799944", "0.544683", "0.543856", "0.5432727", "0.5412891", "0.5408344", "0.5389609", "0.53828865", "0.53729373", "0.5372894", "0.53555113", "0.5351197", "0.5342066", "0.5318908", "0.52883", "0.5286811", "0.5285769", "0.52772635", "0.52730435", "0.5252301", "0.5236245", "0.52264434", "0.52020556", "0.51986176", "0.5182752", "0.5169625", "0.5166917", "0.5166328", "0.5156799", "0.51515424", "0.5138661", "0.513158", "0.5129344", "0.51275253", "0.5114937", "0.5089674", "0.50874895", "0.5082647", "0.50749105", "0.50701827", "0.5031453", "0.5028809", "0.5026504", "0.5019253", "0.50185114", "0.5017152", "0.5012255", "0.499645", "0.4982766", "0.49807027", "0.49672538", "0.49625072", "0.49528897", "0.4946839", "0.49383426", "0.49363932", "0.49362168", "0.49335757", "0.49280265", "0.49226743", "0.49210048", "0.49190596", "0.49124727", "0.4904986", "0.48841104", "0.48841017", "0.48810333", "0.48799562", "0.4867555", "0.48668006", "0.48649848", "0.48649848", "0.48649848", "0.4861858", "0.48544666", "0.48505488", "0.4840264", "0.4839163", "0.48381913", "0.48375276", "0.4837133", "0.48331946", "0.48305798", "0.48303986", "0.48301315" ]
0.0
-1
Apply a function to the files under a given directory and perhaps its subdirectories. If the path is a directory then only files within the directory (perhaps recursively) that satisfy the filter are processed. If the pathis a file, then that file is processed regardless of whether it satisfies the filter. (This semantics was adopted, since otherwise there was no easy way to go through all the files in a directory without descending recursively via the specification of a FileFilter.)
public static void processPath(File path, FileFilter filter, FileProcessor processor) { if (path.isDirectory()) { // if path is a directory, look into it File[] directoryListing = path.listFiles(filter); if (directoryListing == null) { throw new IllegalArgumentException("Directory access problem for: " + path); } for (File file : directoryListing) { processPath(file, filter, processor); } } else { // it's already passed the filter or was uniquely specified // if (filter.accept(path)) processor.processFile(path); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())) {\n\t\t\t\t\tstartFile = null;\n\t\t\t\t}\n\n\t\t\t\tif (startFile == null) {\n\t\t\t\t\tprocessFile(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static Collection<File> listFiles(File directory, FilenameFilter filter, boolean recurse) {\n\t\tVector<File> files = new Vector<File>();\n\t\tFile[] entries = directory.listFiles();\n\n\t\tfor (File entry : entries) {\n\t\t\tif (filter == null || filter.accept(directory, entry.getName()))\n\t\t\t\tfiles.add(entry);\n\t\t\tif (recurse && entry.isDirectory())\n\t\t\t\tfiles.addAll(listFiles(entry, filter, recurse));\n\t\t}\n\t\treturn files;\n\t}", "public static void traversal(File root, FileFilter filter, Action<File> action) {\n if (root == null || !root.exists() || !filter.accept(root)) return;\n if (root.isDirectory()) {\n final File[] files = root.listFiles();\n if (files != null) {\n for (File file : files) {\n traversal(file, filter, action);\n }\n }\n } else {\n action.call(root);\n }\n }", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "public abstract boolean doFilter(File file);", "public static void listOfFiles(File dirPath){\n\t\tFile filesList[] = dirPath.listFiles();\r\n \r\n\t\t// For loop on each item in array \r\n for(File file : filesList) {\r\n if(file.isFile()) {\r\n System.out.println(file.getName());\r\n } else {\r\n \t // Run the method on each nested folder\r\n \t listOfFiles(file);\r\n }\r\n }\r\n }", "public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) {\r\n processPath(path, new ExtensionFileFilter(suffix, recursively), processor);\r\n }", "public interface FileObjectFilter {\n\n /** constant representing answer &quot;do not traverse the folder&quot; */\n public static final int DO_NOT_TRAVERSE = 0;\n /** constant representing answer &quot;traverse the folder&quot; */\n public static final int TRAVERSE = 1;\n /**\n * constant representing answer &quot;traverse the folder and all its direct\n * and indirect children (both files and subfolders)&quot;\n */\n public static final int TRAVERSE_ALL_SUBFOLDERS = 2;\n\n /**\n * Answers a question whether a given file should be searched.\n * The file must be a plain file (not folder).\n *\n * @return <code>true</code> if the given file should be searched;\n * <code>false</code> if not\n * @exception java.lang.IllegalArgumentException\n * if the passed <code>FileObject</code> is a folder\n */\n public boolean searchFile(FileObject file)\n throws IllegalArgumentException;\n\n /**\n * Answers a questions whether a given folder should be traversed\n * (its contents searched).\n * The passed argument must be a folder.\n *\n * @return one of constants {@link #DO_NOT_TRAVERSE},\n * {@link #TRAVERSE},\n * {@link #TRAVERSE_ALL_SUBFOLDERS};\n * if <code>TRAVERSE_ALL_SUBFOLDERS</code> is returned,\n * this filter will not be applied on the folder's children\n * (both direct and indirect, both files and folders)\n * @exception java.lang.IllegalArgumentException\n * if the passed <code>FileObject</code> is not a folder\n */\n public int traverseFolder(FileObject folder)\n throws IllegalArgumentException;\n\n}", "public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) {\r\n processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor);\r\n }", "public static List<File> listFilesRecurse(File dir, FilenameFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "public static void processDirectory(File directory) {\n FlatFileProcessor processor = new FlatFileProcessor(directory);\n processor.processDirectory();\n }", "public static List<File> listFilesRecurse(File dir, FileFilter filter) {\n\t\treturn listFileRecurse(new ArrayList<File>(), dir, filter);\n\t}", "public static File[] listFilesInTree(File dir, FileFilter filter, boolean recordDirectories) {\r\n\t\tList<File> files = new ArrayList<File>();\r\n\t\tlistFilesInTreeHelper(files, dir, filter, recordDirectories);\r\n\t\treturn (File[]) files.toArray(new File[files.size()]);\r\n\t}", "Predicate<File> pass();", "interface Filter {\r\n public boolean apply(Filter file);\r\n}", "protected static Enumeration applyFilter(Stack stackDirs, FileFilter filter)\n {\n Vector vectFiles = new Vector();\n\n while (!stackDirs.isEmpty())\n {\n File dir = (File) stackDirs.pop();\n if (!dir.isDirectory())\n {\n throw new IllegalArgumentException(\"Illegal directory: \\\"\" + dir.getPath() + \"\\\"\");\n }\n\n File[] aFiles = dir.listFiles(filter);\n int cFiles = aFiles.length;\n for (int i = 0; i < cFiles; ++i)\n {\n vectFiles.addElement(aFiles[i]);\n }\n }\n\n return vectFiles.elements();\n }", "public static Enumeration applyFilter(String sFileSpec, boolean fRecurse)\n {\n // determine what the file filter is:\n // (1) the path or name of a file (e.g. \"Replace.java\")\n // (2) a path (implied *.*)\n // (3) a path and a filter (e.g. \"\\*.java\")\n // (4) a filter (e.g. \"*.java\")\n String sFilter = \"*\";\n String sDir = sFileSpec;\n File dir;\n\n // file spec may be a complete dir specification\n dir = new File(sDir).getAbsoluteFile();\n if (!dir.isDirectory())\n {\n // parse the file specification into a dir and a filter\n int of = sFileSpec.lastIndexOf(File.separatorChar);\n if (of < 0)\n {\n sDir = \"\";\n sFilter = sFileSpec;\n }\n else\n {\n sDir = sFileSpec.substring(0, ++of);\n sFilter = sFileSpec.substring(of);\n }\n\n // test the parsed directory name by itself\n dir = new File(sDir).getAbsoluteFile();\n if (!dir.isDirectory())\n {\n return null;\n }\n }\n\n // check filter, and determine if it denotes\n // (1) a specific file\n // (2) all files\n // (3) a subset (filtered set) of files\n Stack stackDirs = new Stack();\n FileFilter filter;\n\n if (sFilter.length() < 1)\n {\n sFilter = \"*\";\n }\n\n if (sFilter.indexOf('*') < 0 && sFilter.indexOf('?') < 0)\n {\n if (fRecurse)\n {\n // even though we are looking for a specific file, we still\n // have to recurse through sub-dirs\n filter = new ExactFilter(stackDirs, fRecurse, sFilter);\n }\n else\n {\n File file = new File(dir, sFilter);\n if (file.isFile() && file.exists())\n {\n return new SimpleEnumerator(new File[] {file});\n }\n else\n {\n return NullImplementation.getEnumeration();\n }\n }\n }\n else if (sFilter.equals(\"*\"))\n {\n filter = new AllFilter(stackDirs, fRecurse);\n }\n else\n {\n filter = new PatternFilter(stackDirs, fRecurse, sFilter);\n }\n\n stackDirs.push(dir);\n return applyFilter(stackDirs, filter);\n }", "public static void main(String[] args) throws IOException {\r\n\t\tPath path = Paths.get(userHome+\"/Files/questions/animals\");\r\n\t\tboolean myBoolean = Files.walk(path)\r\n\t\t\t\t// will not compile\r\n\t\t\t\t// filter expect a Predicate and not a BiPredicate\r\n\t\t\t\t// and isDirectory belongs to Files not to Path\r\n\t\t\t\t//.filter((p,a) -> a.isDirectory() && !path.equals(p))//w1\r\n\t\t\t\t.findFirst().isPresent();//w2\r\n\t\tSystem.out.println(myBoolean ? \"No Sub-directory\" : \"Has Sub-directory\");\r\n\t\t\t\t\r\n\t}", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "public static Set<File> getFiles(File dir, final FileFilter filter) {\n // Get files in this folder\n File[] files = dir.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return !pathname.isDirectory() && filter.accept(pathname);\n }\n });\n \n Set<File> allFiles = new HashSet<>(files.length);\n //if (files != null) {\n allFiles.addAll(Arrays.asList(files));\n //}\n\n // Get files in sub directories\n File[] directories = dir.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isDirectory();\n }\n });\n \n //if (directories != null) {\n for (File directory : directories) {\n allFiles.addAll(getFiles(directory, filter));\n }\n //}\n\n return allFiles;\n }", "public static void main(String[] args) {\n\n File dir = new File(\"D:/test.txt\");\n FileFilter fr = (File f) -> f.isDirectory();\n File[] fs = dir.listFiles(fr);\n }", "private ArrayList<File> getFilesInDirectory(String directoryPath, boolean omitHiddenFiles) {\n //---------- get all files in the provided directory ----------\n ArrayList<File> filesInFolder = new ArrayList<>();\n\n File folder = new File(directoryPath);\n for (File f : folder.listFiles()) {\n if (!f.isHidden() || !omitHiddenFiles)\n filesInFolder.add(f);\n }\n\n //sort the list of files\n Collections.sort(filesInFolder);\n return filesInFolder;\n }", "private static void traverse(Path path, ArrayList<Path> fileArray) {\r\n try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\r\n for (Path file : listing) {\r\n if (file.toString().toLowerCase().endsWith(\".txt\")) {\r\n fileArray.add(file);\r\n } else if (Files.isDirectory(file)) {\r\n traverse(file, fileArray);\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Invalid path: \" + path);\r\n }\r\n }", "String transcribeFilesInDirectory(String directoryPath);", "public static void zipFile(final Path path, final Path baseForName, final ZipOutputStream zio, \n\t\t\tfinal boolean recursive, final Predicate<Path> filter) throws IOException {\n\t\tif (Files.isRegularFile(path) && (filter == null || filter.test(path))) {\n\t\t\tString name = baseForName == null ? path.toString() : baseForName.relativize(path).toString() ;\n\t\t\tname = name.replace('\\\\', '/');\n\t\t\tfinal ZipEntry entry = new ZipEntry(name); \n\t\t\tzio.putNextEntry(entry);\n\t\t\tfinal byte[] buffer = new byte[4096];\n\t\t\tint length;\n\t\t\ttry (final InputStream in = Files.newInputStream(path)) {\n\t\t\t\twhile ((length = in.read(buffer)) >= 0) {\n\t\t\t\t\tzio.write(buffer, 0 , length);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!recursive || !Files.isDirectory(path))\n\t\t\treturn;\n\t\tFiles.walkFileTree(path, new java.nio.file.SimpleFileVisitor<Path>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tif (filter != null && Files.isDirectory(file)) {\n\t\t\t\t\tif (!filter.test(file))\n\t\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t\t}\n\t\t\t\tif (!Files.isRegularFile(file) || (filter != null && !filter.test(file)))\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t\tfinal Path relativeBase = baseForName != null ? baseForName : path;\n\t\t\t\tfinal Path relativePath = relativeBase.relativize(file);\n\t\t\t\tfinal ZipEntry entry = new ZipEntry(relativePath.toString().replace('\\\\', '/')); // TODO check\n\t\t\t\tzio.putNextEntry(entry);\n\t\t\t\tfinal byte[] buffer = new byte[4096];\n\t\t\t\tint length;\n\t\t\t\ttry (final InputStream in = Files.newInputStream(file)) {\n\t\t\t\t\twhile ((length = in.read(buffer)) >= 0) {\n\t\t\t\t\t\tzio.write(buffer, 0 , length);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n\t\t\t\tLoggerFactory.getLogger(ZipUtils.class).warn(\"File visit failed: {}\"\n\t\t\t\t\t\t+ \". {}\", file, exc.toString());\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public boolean accept(File dir, String name);", "FeatureHolder filter(FeatureFilter fc, boolean recurse);", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "@Override\n public boolean accept(File f) {\n if (f.isDirectory()) {\n return true;\n } else {\n for (ExtensionFileFilter filter : filters) {\n if (filter.accept(f)) {\n return true;\n }\n }\n }\n return false;\n }", "private static Vector addFiles(ZipOutputStream out, String target, String filter, boolean usePath, boolean recurse, Vector includeList) throws IOException {\r\n byte[] buf = new byte[1024];\r\n File[] fileList = null;\r\n File targetFile = new File(target);\r\n if (targetFile.isDirectory()) {\r\n fileList = targetFile.listFiles(); \r\n } else {\r\n fileList = new File[1];\r\n fileList[0] = new File(target);\r\n }\r\n if (fileList != null && fileList.length > 0) {\r\n for (int i=0; i<fileList.length; i++) {\r\n if (fileList[i].isFile()) {\r\n if (filter != null && filter.length() == 0) {\r\n if (!fileList[i].getName().endsWith(filter))\r\n continue;\r\n }\r\n FileInputStream in = new FileInputStream(fileList[i].getAbsolutePath());\r\n if (!usePath) {\r\n out.putNextEntry(new ZipEntry(fileList[i].getName()));\r\n } else {\r\n out.putNextEntry(new ZipEntry(fileList[i].getAbsolutePath()));\r\n }\r\n int len;\r\n while ((len = in.read(buf)) > 0) {\r\n out.write(buf, 0, len);\r\n }\r\n out.closeEntry();\r\n in.close();\r\n includeList.add(fileList[i].getAbsolutePath());\r\n } else if (fileList[i].isDirectory() && recurse) {\r\n includeList = ZipUtil.addFiles(out, fileList[i].getAbsolutePath(), filter, true, true, includeList);\r\n }\r\n }\r\n }\r\n return includeList;\r\n }", "public static void processDirectory(String directory) {\n processDirectory(new File(directory));\n }", "private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "public static void deleteFilesMatchingExpression(String path,\n \t\t\tString expression, boolean recurse) {\n \t\tdeleteFilesMatchingExpression(new File(path), expression, recurse);\n \t}", "public void serveFilesFromDirectory(File directory) {\n serveFilesFromDirectory(directory.getPath());\n }", "public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }", "public void process(Path path, int offset, List<String> groups) {\n String text = \"^\" + path.getName(offset).toString().replace('%', '*') + \"$\";\n Pattern pattern = Pattern.compile(text);\n File folder = ((offset == 0) ? absolutePath : absolutePath.resolve(path.subpath(0, offset))).toFile();\n if (folder.isDirectory()) {\n for (File file : folder.listFiles(new PatternFilter(pattern))) {\n List<String> values = new ArrayList<String>(groups);\n Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n for (int index = 0; index < matcher.groupCount(); index++) {\n values.add(matcher.group(index + 1));\n }\n }\n Path newPath =\n (offset == 0) ? Paths.get(file.getName()) : path.subpath(0, offset).resolve(Paths.get(file.getName()));\n if (offset + 1 < path.getNameCount())\n newPath = newPath.resolve(path.subpath(offset + 1, path.getNameCount()));\n\n if (offset + 1 >= path.getNameCount())\n matches.add(new PathMapper(absolutePath, newPath, values));\n else {\n process(newPath, offset + 1, values);\n }\n }\n }\n }", "public static File[] getFilesInDirectory(String path) {\n File f = new File(path);\n File[] file = f.listFiles();\n return file;\n }", "public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return CommandLineTool.matches(path.getName(), m_achPattern);\n }\n }", "void generateFileList(File node, FileFilter filter) {\n\n //add file only\n if (node.isFile()) {\n fileList.add(generateZipEntry(node.getAbsoluteFile().toString()));\n }\n\n if (node.isDirectory()) {\n File[] subNote = node.listFiles(filter);\n assert subNote != null;\n for (File file : subNote) {\n generateFileList(new File(node, file.getName()), filter);\n }\n }\n\n }", "File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }", "public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) {\n\n\t\tFile[] files = dir.listFiles();\t\t\n\t\tfor(File f : files) {\n\t\t\tString lowercaseName = f.getName().toLowerCase();\n\t\t\tif(lowercaseName.indexOf(\"test\")!=-1)\n\t\t\t{\n\t\t\t\t/* we do not consider test files in our study */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if(f.isDirectory()){\n\t\t\t\t /* iterate over every directory */\n\t\t\t\t getSourceJavaFilesForOneRepository(f, searchSuffix, al);\t\t\n\t\t\t } else {\n\t\t\t\t /* returns the desired java files */\n\t\t\t\t if(searchSuffix.accept(dir, f.getName())){\n\t\t\t\t\t al.add(f);\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "List<String> getFiles(String path, String searchPattern) throws IOException;", "public static List<Path> getPackageFiles(\n Path directory, boolean recursive, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException {\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(directory)) {\n List<Path> files = new ArrayList<>();\n\n for (Path filePath : stream) {\n // Capture all source files\n if (filePath.toString().endsWith(SRC_EXTENSION)) files.add(filePath);\n // Capture any package-info files\n else if (filePath.getFileName().toString().equals(PKG_INFO_FILE))\n processPackageInfo(filePath, pkgDocs);\n // Recurse into subdirectories if desired\n else if (recursive && Files.isDirectory(filePath))\n files.addAll(getPackageFiles(filePath, true, pkgDocs));\n }\n return files;\n }\n }", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "private void filter(TreeItem<FilePath> root, String filter, TreeItem<FilePath> filteredRoot) {\n\n for (TreeItem<FilePath> child : root.getChildren()) {\n\n TreeItem<FilePath> filteredChild = new TreeItem<>(child.getValue());\n filteredChild.setExpanded(true);\n\n filter(child, filter, filteredChild);\n\n if (!filteredChild.getChildren().isEmpty() || isMatch(filteredChild.getValue(),\n filter)) {\n filteredRoot.getChildren().add(filteredChild);\n }\n\n }\n }", "List<String> getFiles(String path) throws IOException;", "@Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException {\n if(!matcher.matches(path.getFileName()) ||\n Math.abs(path.getFileName().hashCode() % DirectoryScanner.NUM_THREADS) != num) {\n return FileVisitResult.CONTINUE;\n }\n\n logStream.println(\"Visiting file: \" + root.relativize(path));\n\n Path dest = outRoot.resolve(root.relativize(path));\n\n //moving is faster than copying and deleting\n if(autoDelete) {\n Files.move(path, dest, StandardCopyOption.REPLACE_EXISTING);\n } else {\n Files.copy(path, dest, StandardCopyOption.REPLACE_EXISTING);\n }\n\n\n return FileVisitResult.CONTINUE;\n }", "public void serveFilesFromDirectory(String directoryPath) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n mImpl.serveFilesFromDirectory(directoryPath);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\n \"Failed to start serving files from \" + directoryPath + \": \" + e.toString());\n }\n }", "public boolean accept( File directory , String name )\n\t{\n\t\t\t\t\t\t\t\t//\tFirst check if file name\n\t\t\t\t\t\t\t\t//\tis a directory. Always accept it\n\t\t\t\t\t\t\t\t//\tif so.\n\n\t\tFile possibleDirectory\t= new File( directory , name );\n\n\t\tif\t(\t( possibleDirectory != null ) &&\n\t\t\t\t( possibleDirectory.isDirectory() ) ) return true;\n\n\t\t\t\t\t\t\t\t//\tNo a directory. Accept the file only\n\t\t\t\t\t\t\t\t//\tif its extension is on the list of\n\t\t\t\t\t\t\t\t//\textensions allowed by this filter.\n\n\t\tfor ( int i = 0 ; i < extensions.length ; i++ )\n\t\t{\n\t\t\tif ( name.endsWith( extensions[ i ] ) ) return true;\n\t\t}\n\n\t\treturn false;\n\t}", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "public void directorySearch(File dir, String target)\n\t{\n\t\tif(!(dir.isDirectory()))\n\t\t{\n\t\t\t//If file is not a directory, throw the exception.\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif(count == maxFiles)\n\t\t{\n\t\t\t//If count is equal to maxFiles, throw the exception.\n\t\t\t//If it doesn't then this will act as a base case to\n\t\t\t//the recursion. \n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Put all the sub directories in an array. \n\t\t\tFile[] file = dir.listFiles();\n\t\t\t\n\t\t\t//Print out the path and the file directory list \n\t\t\tSystem.out.println(dir.getPath() + \": \" + dir.listFiles());\n\t\t\t\n\t\t\t//Go through each of the file length\n\t\t\tfor(int i = 0; i < file.length; i++)\n\t\t\t{\n\t\t\t\t//Get the file name \n\t\t\t\tSystem.out.println(\" -- \" + file[i].getName());\n\t\t\t\t\n\t\t\t\t//If the file name is the target, then add it to the \n\t\t\t\t//stack and return\n\t\t\t\tif(file[i].getName().equals(target))\n\t\t\t\t{\n\t\t\t\t\t//If the item inside the file is the target.\n\t\t\t\t\tcount++;\n\t\t\t\t\tfileList.add(file[i].getPath());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//If its a directory, then recurse.\n\t\t\t\tif(file[i].isDirectory())\n\t\t\t\t{\n\t\t\t\t\tdirectorySearch(file[i], target);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (NullPointerException e)\n\t\t{\n\t\t\t//If the File[] is null then catch this exception.\n\t\t\treturn;\n\t\t}\n\t}", "public void listFiles(String path) {\r\n String files;\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n\r\n if (listOfFiles[i].isFile()) {\r\n files = listOfFiles[i].getName();\r\n if (files.endsWith(\".png\") || files.endsWith(\".PNG\")\r\n || files.endsWith(\".gif\") || files.endsWith(\".GIF\")) {\r\n //System.out.println(files);\r\n pathList.add(path+\"\\\\\");\r\n fileList.add(files);\r\n }\r\n }\r\n \r\n else {\r\n listFiles(path+\"\\\\\"+listOfFiles[i].getName());\r\n }\r\n }\r\n }", "private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}", "public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return m_sFile.equalsIgnoreCase(path.getName());\n }\n }", "private void getAllFiles(File dir, List<File> fileList) throws IOException {\r\n File[] files = dir.listFiles();\r\n if(files != null){\r\n for (File file : files) {\r\n // Do not add the directories that we need to skip\r\n if(!isDirectoryToSkip(file.getName())){\r\n fileList.add(file);\r\n if (file.isDirectory()) {\r\n getAllFiles(file, fileList);\r\n }\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\n Path path = Paths.get(\"11\");\n Files.walkFileTree(path, new FileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n System.out.println(file.getFileName().toString());\n if (file.getFileName().toString().equals(\"5.txt\")) {\n System.out.println(\"Requested file is found\");\n return FileVisitResult.TERMINATE;\n }\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n return FileVisitResult.CONTINUE;\n }\n });\n }", "public boolean accept(File path)\n {\n if (path.isDirectory())\n {\n if (m_fPushDirs)\n {\n m_stackDirs.push(path);\n }\n return false;\n }\n else\n {\n return true;\n }\n }", "@Override\n\tpublic boolean accept(File p1)\n\t{\n\t\treturn p1.isDirectory()&&!p1.getName().startsWith(\".\");\n\t}", "public static void main(String[] args) {\n final FilenameFilter filter = new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.toLowerCase().endsWith(\".txt\");\n }\n };\n\n //use a lambda\n final FilenameFilter filterLambda1 = (File dir, String name) -> { return name.toLowerCase().endsWith(\".txt\");};\n\n //also you can not use the types anymore, let the compiler figure them out\n final FilenameFilter filterLambda2 = (dir, name) -> { return name.toLowerCase().endsWith(\".txt\"); };\n\n //lose the return and {}\n final FilenameFilter filterLambda3 = (dir, name) -> !dir.isDirectory()&&name.toLowerCase().endsWith(\".txt\");\n\n File homeDir = new File(System.getProperty(\"user.home\"));\n String[] files = homeDir.list(filterLambda3);\n for(String file:files){\n System.out.println(file);\n }\n\n }", "public void removeFiles(String filter)\n {\n for (String s : fileList) {\n if (!s.contains(filter)) {\n fileList.remove(s);\n }\n }\n }", "protected abstract HashMap<String, InputStream> getFilesByPath(\n\t\t\tfinal String path);", "private void scanDirectory(final File directory) throws AnalyzerException {\n\t\tFile[] files = directory.listFiles();\n\t\tfor (File f : files) {\n\t\t\t// scan .class file\n\t\t\tif (f.isFile() && f.getName().toLowerCase().endsWith(\".class\")) {\n\t\t\t\tInputStream is = null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(f);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot read input stream from '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnew ClassReader(is).accept(scanVisitor,\n\t\t\t\t\t\t\tClassReader.SKIP_CODE);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot launch class visitor on the file '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Cannot close input stream on the file '\"\n\t\t\t\t\t\t\t\t\t+ f.getAbsolutePath() + \"'.\", e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// loop on childs\n\t\t\t\tif (f.isDirectory()) {\n\t\t\t\t\tscanDirectory(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public List<File> getValues(final String term) throws IOException {\n {\r\n File file = new File(term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return children(file, fileFilter);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return children(parent, normalizedFilter(term));\r\n }\r\n }\r\n // case 2: relative path\r\n {\r\n for (File path : paths) {\r\n File file = new File(path, term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return toRelativeFiles(children(file, fileFilter), path);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return toRelativeFiles(children(parent, normalizedFilter(file.getAbsolutePath())), path);\r\n }\r\n }\r\n }\r\n return Collections.emptyList();\r\n }", "public static void searchForImageReferences(File rootDir, FilenameFilter fileFilter) {\n \t\tfor (File file : rootDir.listFiles()) {\n \t\t\tif (file.isDirectory()) {\n \t\t\t\tsearchForImageReferences(file, fileFilter);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tif (fileFilter.accept(rootDir, file.getName())) {\n \t\t\t\t\tif (MapTool.getFrame() != null) {\n \t\t\t\t\t\tMapTool.getFrame().setStatusMessage(\"Caching image reference: \" + file.getName());\n \t\t\t\t\t}\n \t\t\t\t\trememberLocalImageReference(file);\n \t\t\t\t}\n \t\t\t} catch (IOException ioe) {\n \t\t\t\tioe.printStackTrace();\n \t\t\t}\n \t\t}\n \t\t// Done\n \t\tif (MapTool.getFrame() != null) {\n \t\t\tMapTool.getFrame().setStatusMessage(\"\");\n \t\t}\n \t}", "private void recurseOverFolder(final File folder) {\n File[] files = folder.listFiles();\n if (files == null) {\n return;\n }\n\n // Check each path and recurse if it's a folder, handle if it's a file\n for (final File fileEntry : files) {\n if (fileEntry.isDirectory()) {\n recurseOverFolder(fileEntry);\n } else {\n handleFile(fileEntry);\n }\n }\n }", "@Override\r\n protected void addPath(File path, int depth) throws SAXException {\r\n List<ZipEntry> contents = new ArrayList<ZipEntry>();\r\n if (depth > 0) {\r\n ZipFile zipfile = null;\r\n try {\r\n zipfile = new ZipFile(path, Charset.forName(\"UTF-8\"));\r\n Enumeration<? extends ZipEntry> entries = zipfile.entries();\r\n while (entries.hasMoreElements()) contents.add((ZipEntry)entries.nextElement());\r\n } catch (ZipException e) {\r\n throw new SAXException(e);\r\n } catch (IOException e) {\r\n throw new SAXException(e);\r\n } finally {\r\n if (zipfile != null) {\r\n try {\r\n zipfile.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n } // finally\r\n } // if depth > 0\r\n startNode(DIR_NODE_NAME, path);\r\n processZipEntries(contents, \"\", depth);\r\n endNode(DIR_NODE_NAME);\r\n }", "private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }", "public static void goThroughFilesForFolder(final File folder) throws Exception {\r\n\r\n\t\t/*\r\n\t\t * char[] filePath;\r\n\t\t// *Files.walk(Paths.get(\"E:/Studying/eclipse/workspace/Thesis/PMIDs\")).\r\n\t\t * Files.walk(Paths.get(\"E:/Studying/Box Sync/workspace/Thesis/PMIDs\")).\r\n\t\t * forEach(filePath -> { if (Files.isRegularFile(filePath)) {\r\n\t\t * System.out.println(filePath); } }\r\n\t\t */\r\n\t\t// /*\r\n\t\tfor (final File fileEntry : folder.listFiles()) {\r\n\t\t\tif (fileEntry.isDirectory()) {\r\n\t\t\t\tgoThroughFilesForFolder(fileEntry);\r\n\t\t\t} else {\r\n\t\t\t\tprocessFile(fileEntry);\r\n\t\t\t\t// System.out.println(fileEntry.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\t// */\r\n\t}", "public javax.swing.filechooser.FileFilter getFileFilter();", "public DirectoryFileFilter() {\n\t\tthis(true);\n\t}", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "private static void joinFiles(String mainPath, ArrayList<File> oldFiles){\n FileFilter jsonFilter = new FileFilter() {\r\n public boolean accept(File path) {\r\n return path.getName().endsWith(\".json\");\r\n }\r\n };\r\n\r\n //contains all files in path\r\n File fileMain = new File(mainPath);\r\n File[] fileList = fileMain.listFiles();\r\n boolean checkedPath = false;\r\n\r\n if(fileList!=null){\r\n for(File fileTemp: fileList){\r\n //checkedPath makes sure JSON files are not cloned\r\n if(fileTemp.isFile() && checkedPath == false){\r\n //adds the JSON files found to arraylist\r\n File file = new File(mainPath);\r\n File[] jsonList = file.listFiles(jsonFilter);\r\n for(File temp: jsonList){\r\n oldFiles.add(temp);\r\n }\r\n checkedPath = true;\r\n }\r\n //if file found is a folder, recursively searches until JSON file is found\r\n else if(fileTemp.isDirectory()){\r\n joinFiles(fileTemp.getAbsolutePath(), oldFiles);\r\n }\r\n }\r\n }\r\n }", "@Override\r\n\tpublic String globFilesDirectories(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}", "private void processItem(FilePath path, final ChangelistBuilder builder)\r\n {\n if( VcsUtil.isFileForVcs( path, project, StarteamVcsAdapter.getInstance(project) ) )\r\n {\r\n if( path.isDirectory() )\r\n {\r\n processFolder( path, builder );\r\n iterateOverDirectories( path.getPath(), builder );\r\n }\r\n else\r\n processFile( path, builder );\r\n }\r\n }", "@Override\n\tpublic boolean accept(Path arg0) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tFileSystem fs = FileSystem.get(Conf);\n\t\t\tFileStatus stat = fs.getFileStatus(arg0);\n\t\t\tString filename=arg0.getName();\n\t\t\t\n\t\t\tif (stat.isDir())\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\n\t\t\tif (filename.equals(\"data\"))\n\t\t\t{\n\t\t\t\tif (stat.getLen()==0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Ignoring file:\"+ arg0.getName());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public static void deleteFilesMatchingExpression(File root,\n \t\t\tString expression, boolean recurse) {\n \t\tif (root != null) {\n \t\t\tif (root.isDirectory()) {\n \t\t\t\tFile[] files = root.listFiles();\n \t\t\t\tif (files != null) {\n \t\t\t\t\tfor (int i = 0; i < files.length; i++) {\n \t\t\t\t\t\tif (recurse && files[i].isDirectory()) {\n \t\t\t\t\t\t\tdeleteFilesMatchingExpression(files[i], expression,\n \t\t\t\t\t\t\t\t\trecurse);\n \t\t\t\t\t\t} else if (files[i].isFile()) {\n \t\t\t\t\t\t\tif (files[i].getName().matches(expression)) {\n \t\t\t\t\t\t\t\tfiles[i].delete();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public static Enumeration applyZipFilter(ZipFile zip, String sFileSpec, boolean fRecurse)\n {\n // determine what the file filter is:\n // (1) the path or name of a file (e.g. \"Replace.java\")\n // (2) a path (implied *.*)\n // (3) a path and a filter (e.g. \"/*.java\")\n // (4) a filter (e.g. \"*.java\")\n\n // file spec may be a complete dir specification\n String sFilter = \"*\";\n String sDir = sFileSpec;\n if (sDir.length() > 0 && sDir.charAt(0) == '/')\n {\n sDir = sDir.substring(1);\n }\n // we know it is a directory if it ends with \"/\" ... but if it\n // does not, it could still be a directory\n if (sDir.length() > 0 && sDir.charAt(sDir.length()-1) != '/')\n {\n ZipEntry file = zip.getEntry(sDir);\n if (file == null)\n {\n ZipEntry dir = zip.getEntry(sDir + '/');\n if (dir == null)\n {\n int ofSlash = sDir.lastIndexOf('/') + 1;\n if (ofSlash > 0)\n {\n sFilter = sDir.substring(ofSlash);\n sDir = sDir.substring(0, ofSlash);\n }\n else\n {\n // assume it is a file name\n if (fRecurse)\n {\n // search for that file name in all dirs\n sFilter = sDir;\n sDir = \"\";\n }\n else\n {\n // file not found\n return NullImplementation.getEnumeration();\n }\n }\n }\n else\n {\n sDir += '/';\n }\n }\n else\n {\n // if a dir is specified as part of the name or if it is\n // the root directory of the zip and directory recursion\n // is not specified, then it is an exact file match (not\n // a directory)\n if (sDir.indexOf('/') >= 0 || !fRecurse)\n {\n return new SimpleEnumerator(new Object[] {file});\n }\n\n // otherwise look for that file in all directories\n sFilter = sDir;\n sDir = \"\";\n }\n }\n\n // check filter, and determine if it denotes\n // (1) all files\n // (2) a subset (filtered set) of files\n // (3) a specific file\n ZipFilter filter;\n\n if (sFilter.length() < 1 || sFilter.equals(\"*\"))\n {\n filter = new ZipFilter(sDir, fRecurse);\n }\n else if (sFilter.indexOf('*') >= 0 || sFilter.indexOf('?') >= 0)\n {\n filter = new ZipPatternFilter(sDir, fRecurse, sFilter);\n }\n else\n {\n filter = new ZipExactFilter(sDir, fRecurse, sFilter);\n }\n\n // build an ordered list of the entries\n StringTable tbl = new StringTable();\n for (Enumeration enmr = zip.entries(); enmr.hasMoreElements(); )\n {\n ZipEntry entry = (ZipEntry) enmr.nextElement();\n if (filter.accept(entry))\n {\n tbl.put(entry.getName(), entry);\n }\n }\n return tbl.elements();\n }", "public static List<File> listFilesRecursive(File fileOrDirectory) {\n\t\t// null input = null output\n\t\tif(fileOrDirectory == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tList<File> result = new ArrayList<File>();\n\t\tif(!fileOrDirectory.isHidden()) {\n\t\t\tif(fileOrDirectory.isDirectory()) {\n\t\t\t\tfor (File aFile : fileOrDirectory.listFiles()) {\n\t\t\t\t\tresult.addAll(listFilesRecursive(aFile));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult.add(fileOrDirectory);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t// sort output\n\t\tCollections.sort(result, new Comparator<File>() {\n\t\t\t@Override\n\t\t\tpublic int compare(File o1, File o2) {\n\t\t\t\treturn o1.getAbsolutePath().compareTo(o2.getAbsolutePath());\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\treturn result;\n\t}", "public static void traverse(Path path, ArrayList<Path> paths) throws IOException {\n\t\tif (Files.isDirectory(path)) {\n\t\t\ttry (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {\n\t\t\t\tfor (Path file : listing) {\n\t\t\t\t\ttraverse(file, paths);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isTextFile(path)) {\n\t\t\tpaths.add(path);\n\t\t}\n\t}", "private static void findAllFilesRecurse(File root, ArrayList<File> files, boolean recurse) {\n\t\tFile[] rootContents = root.listFiles();\n\t\tif (rootContents == null) {\n\t\t\tfiles.add(root);\n\t\t} else {\n\t\t\tfor (File f : rootContents) {\n\t\t\t\t// if it is a file or do not go deeper\n\t\t\t\tif (f.isFile() || !recurse) {\n\t\t\t\t\tfiles.add(f);\n\t\t\t\t} else if (recurse) { // directory\n\t\t\t\t\tfindAllFilesRecurse(f, files, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void scanDirectory(final BulkImportSourceStatus status,\n final BulkImportCallback callback,\n final File sourceDirectory,\n final File directory,\n final boolean submitFiles)\n throws InterruptedException\n {\n // PRECONDITIONS\n if (sourceDirectory == null) throw new IllegalArgumentException(\"sourceDirectory cannot be null.\");\n if (directory == null) throw new IllegalArgumentException(\"directory cannot be null.\");\n\n // Body\n if (debug(log)) debug(log, \"Scanning directory \" + directory.getAbsolutePath() + \" for \" + (submitFiles ? \"Files\" : \"Folders\") + \"...\");\n \n status.setCurrentlyScanning(sourceDirectory.getAbsolutePath());\n \n final Pair<List<FilesystemBulkImportItem>, List<FilesystemBulkImportItem>> analysedDirectory = directoryAnalyser.analyseDirectory(sourceDirectory, directory);\n \n if (analysedDirectory != null)\n {\n final List<FilesystemBulkImportItem> directoryItems = analysedDirectory.getFirst();\n final List<FilesystemBulkImportItem> fileItems = analysedDirectory.getSecond();\n \n if (!submitFiles && directoryItems != null)\n {\n for (final FilesystemBulkImportItem directoryItem : directoryItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(directoryItem))\n {\n callback.submit(directoryItem);\n }\n }\n }\n\n if (submitFiles && fileItems != null)\n {\n for (final FilesystemBulkImportItem fileItem : fileItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(fileItem))\n {\n callback.submit(fileItem);\n }\n }\n }\n \n if (debug(log)) debug(log, \"Finished scanning directory \" + directory.getAbsolutePath() + \".\");\n \n // Recurse into subdirectories and scan them too\n if (directoryItems != null && directoryItems.size() > 0)\n {\n if (debug(log)) debug(log, \"Recursing into \" + directoryItems.size() + \" subdirectories of \" + directory.getAbsolutePath());\n \n for (final FilesystemBulkImportItem directoryItem : directoryItems)\n {\n if (importStatus.isStopping() || Thread.currentThread().isInterrupted()) throw new InterruptedException(Thread.currentThread().getName() + \" was interrupted. Terminating early.\");\n \n if (!filter(directoryItem))\n {\n final FilesystemBulkImportItemVersion lastVersion = directoryItem.getVersions().last(); // Directories shouldn't have versions, but grab the last one (which will have the directory file pointer) just in case...\n \n if (lastVersion.getContentFile() != null)\n {\n scanDirectory(status,\n callback,\n sourceDirectory,\n lastVersion.getContentFile(),\n submitFiles);\n }\n else\n {\n if (info(log)) info(log, \"Directory \" + directoryItem.getName() + \" is metadata only - scan will be skipped.\");\n }\n }\n }\n }\n else\n {\n if (debug(log)) debug(log, directory.getAbsolutePath() + \" has no subdirectories.\");\n }\n }\n }", "public boolean accept(File pathname)\n {\n return pathname.isDirectory();\n }", "private static void getAllFilesFromGivenPath(String path, List<String> fileNames) {\n try {\n DirectoryStream<Path> directoryStream = Files.newDirectoryStream(Paths.get(path));\n for (Path paths : directoryStream) {\n fileNames.add(paths.toString());\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "private void popFiles(String path) {\n\t\tFile dir = new File(path);\n\t\tFile[] list = dir.listFiles();\n\n\t\tfor (File file : list) {\n\t\t if (file.isFile()) {\n\t\t this.files.add(file.getName());\n\t\t }\n\t\t}\n\t}", "private static TreeFilter createPathFilter(Collection<String> paths) {\n\t\tList<TreeFilter> filters = new ArrayList<TreeFilter>(paths.size());\n\t\tfor (String path : paths) {\n\t\t\tif (path.length() == 0)\n\t\t\t\treturn null;\n\t\t\tfilters.add(PathFilter.create(path));\n\t\t}\n\t\tif (filters.size() == 1)\n\t\t\treturn filters.get(0);\n\t\treturn OrTreeFilter.create(filters);\n\t}", "@Override\n public boolean accept(File file) {\n if (file.isDirectory()) {\n return true;\n }\n return false;\n }", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public static List<File> goFolder(File file) {\n File[] files = file.listFiles();\n for (File f : files) {\n if (!f.isDirectory()) {\n if (isCondition(f)) {\n fileList.add(f);\n }\n } else {\n goFolder(f);\n }\n }\n return fileList;\n }", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}", "public boolean accept(File f) {\n\t if(f != null) {\n\t if(f.isDirectory()) {\n\t\t return true;\n\t }\n\t String extension = getExtension(f);\n\t if(extension != null && filters.get(getExtension(f)) != null) {\n\t\t return true;\n\t }\n\t }\n\t return false;\n }", "private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }", "public List listFiles(String path);", "@Override\n\tpublic List<File> getListing(File directory, FileFilter filter) {\n\t\tfileIconMap = new HashMap<>();\n\n\t\tif (directory == null) {\n\t\t\treturn List.of();\n\t\t}\n\t\tFile[] files = directory.listFiles(filter);\n\t\treturn (files == null) ? List.of() : List.of(files);\n\t}", "public void listFilesAndFilesSubDirectories(String directoryName) throws IOException{\n File directory = new File(directoryName);\n //get all the files from a directory\n System.out.println(\"List of Files and file subdirectories in: \" + directory.getCanonicalPath());\n File[] fList = directory.listFiles();\n for (File file : fList){\n if (file.isFile()){\n System.out.println(file.getAbsolutePath());\n } else if (file.isDirectory()){\n listFilesAndFilesSubDirectories(file.getAbsolutePath());\n }\n }\n }", "public void foreachDocumentinInputPath(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n File aInputPath = new File(_aParam.getInputPath());\n if (aInputPath.isDirectory())\n {\n // check a whole directory\n // a whole directory\n FileFilter aFileFilter = FileHelper.getFileFilter();\n traverseDirectory(aFileFilter, _aParam);\n }\n else\n {\n callEntry(_aParam.getInputPath(), _aParam);\n }\n }", "private static void processRepository(File repo) {\n System.out.println(\"Processing repository: \" + repo);\n for (File fileOrDir : repo.listFiles()) {\n if (fileOrDir.isDirectory()) {\n processModule(fileOrDir);\n }\n }\n }" ]
[ "0.6098271", "0.5833229", "0.5832562", "0.56595874", "0.55420315", "0.5496763", "0.5487928", "0.5475075", "0.54262376", "0.5393107", "0.538713", "0.53790647", "0.5347477", "0.5334595", "0.52863306", "0.5260179", "0.52025324", "0.51826924", "0.51641226", "0.51269376", "0.5094407", "0.5069635", "0.5037037", "0.49987626", "0.4988408", "0.4965199", "0.49647096", "0.49610186", "0.49569342", "0.49440184", "0.4938361", "0.49217537", "0.48959163", "0.48766753", "0.48738205", "0.48656422", "0.48511028", "0.48479083", "0.4819637", "0.4817102", "0.48123553", "0.48102096", "0.48099145", "0.4802143", "0.4739892", "0.47297835", "0.47216502", "0.4715247", "0.4711286", "0.4706046", "0.46784717", "0.46665037", "0.46602038", "0.46589282", "0.46559182", "0.46544367", "0.46289074", "0.46198902", "0.4618181", "0.4604369", "0.46037307", "0.45993075", "0.458173", "0.4575303", "0.45740768", "0.45724294", "0.4570805", "0.45528114", "0.4545613", "0.4539287", "0.45368856", "0.4535878", "0.4532007", "0.45272887", "0.45239446", "0.45173857", "0.4507975", "0.4493572", "0.44904062", "0.44818538", "0.44786134", "0.447228", "0.44641316", "0.4462866", "0.445923", "0.4458226", "0.44448465", "0.44446442", "0.44443646", "0.44264954", "0.44251698", "0.44251698", "0.44251698", "0.44196436", "0.44161147", "0.44146115", "0.441406", "0.44021624", "0.4399118", "0.43958384" ]
0.7327679
0
Compute the next random value using the logarithm algorithm. Requires a uniformlydistributed random value in [0, 1).
public float nextLog () { // Generate a non-zero uniformly-distributed random value. float u; while ((u = GENERATOR.nextFloat ()) == 0) { // try again if 0 } return (float) (-m_fMean * Math.log (u)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double random()\n {\n final int MAX_INT = 2147483647;\n int n = MAX_INT;\n \n // Just to ensure it does not return 1.0\n while(n == MAX_INT)\n \tn = abs (RAND.nextInt());\n \n return n * (1.0 / MAX_INT);\n }", "@Test\n public void testLogP() {\n System.out.println(\"logP\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(Math.log(0.027), instance.logp(0), 1E-7);\n assertEquals(Math.log(0.0567), instance.logp(1), 1E-7);\n assertEquals(Math.log(0.07938), instance.logp(2), 1E-7);\n assertEquals(Math.log(0.09261), instance.logp(3), 1E-7);\n assertEquals(Math.log(0.05033709), instance.logp(10), 1E-7);\n }", "public static double random() {\r\n return uniform();\r\n }", "public static double[] logSample(RealVector alpha, RandomGenerator rnd) {\n\t\tdouble[] theta = GammaDistribution.sample(alpha, rnd);\n\t\tDoubleArrays.logToSelf(theta);\n\t\tDoubleArrays.logNormalizeToSelf(theta);\n\t\treturn theta;\n\t}", "public static double[] logSample(double[] alpha, RandomGenerator rnd) {\n\t\tdouble[] theta = GammaDistribution.sample(alpha, rnd);\n\t\tDoubleArrays.logToSelf(theta);\n\t\tDoubleArrays.logNormalizeToSelf(theta);\n\t\treturn theta;\n\t}", "public static double uniform() {\r\n return random.nextDouble();\r\n }", "static public Long randomval() {\n Random rand = new Random();\n Long val = rand.nextLong() % p;\n return val;\n }", "public static double uniform() {\n return random.nextDouble();\n }", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public static double rand() {\n return (new Random()).nextDouble();\n }", "public static double genExp(double a) {\r\n\t\tdouble x = 1 - generator.nextDouble();\r\n\t\tdouble exp = -1 * Math.log(x) * a;\r\n\t\treturn exp;\r\n\r\n\t}", "public static double log(double a){ \n // migrated from jWMMG - the origin of the algorithm is not known.\n if (Double.isNaN(a) || a < 0) {\n return Double.NaN;\n } else if (a == Double.POSITIVE_INFINITY) {\n return Double.POSITIVE_INFINITY;\n } else if (a == 0) {\n return Double.NEGATIVE_INFINITY;\n }\n \n long lx;\n if (a > 1) {\n lx = (long)(0.75*a); // 3/4*x\n } else {\n lx = (long)(0.6666666666666666666666666666666/a); // 2/3/x\n }\n \n int ix;\n int power;\n if (lx > Integer.MAX_VALUE) {\n ix = (int) (lx >> 31);\n power = 31;\n } else {\n ix = (int) lx;\n power = 0;\n }\n \n while (ix != 0) {\n ix >>= 1;\n power++;\n }\n \n double ret;\n if (a > 1) {\n ret = lnInternal(a / ((long) 1<<power)) + power * LN_2;\n } else {\n ret = lnInternal(a * ((long) 1<<power)) - power * LN_2;\n }\n return ret;\n }", "public double logResult(double f) {\n double r;\n try {\n r = 20 * Math.log10(result(f));\n } catch (Exception e) {\n r = -100;\n }\n if (Double.isInfinite(r) || Double.isNaN(r)) {\n r = -100;\n }\n return r;\n }", "public double nextDouble(){\r\n\t\tlong rand = nextLong();\r\n\t\treturn (double)(rand & 0x000fffffffffffffL)/((double)0x000fffffffffffffL);\r\n\t}", "public static void logSampleToSelf(double[] alpha, RandomGenerator rnd) {\n\t\tGammaDistribution.sampleToSelf(alpha, rnd);\n\t\tDoubleArrays.logToSelf(alpha);\n\t\tDoubleArrays.logNormalizeToSelf(alpha);\n\t}", "public double sample_value() {\n checkHasParams();\n return -Math.log(Util.random()) / this.lambda;\n }", "public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}", "public static double random(double input){\n\t\treturn Math.random()*input;\n\t}", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public static double logarit(double value, double base) {\n\t\tif (base == Math.E)\n\t\t\treturn Math.log(value);\n\t\telse if (base == 10)\n\t\t\treturn Math.log10(value);\n\t\telse\n\t\t\treturn Double.NaN;\n\t\t\t\n\t}", "public double logZero(double x);", "private static double lg(double x) {\n return Math.log(x) / Math.log(2.0);\n }", "static double expon(double mean) {\n return -mean * Math.log(Math.random());\n }", "public static double sample_value(double lambda) {\n return -Math.log(Util.random()) / lambda;\n }", "static private float _log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tfloat f = 0f;\n \t\t//\n \t\tint appendix = 0;\n \t\twhile ((x > 0f) && (x <= 1f)) {\n \t\t\tx *= 2f;\n \t\t\tappendix++;\n \t\t}\n \t\t//\n \t\tx /= 2f;\n \t\tappendix--;\n \t\t//\n \t\tfloat y1 = x - 1f;\n \t\tfloat y2 = x + 1f;\n \t\tfloat y = y1 / y2;\n \t\t//\n \t\tfloat k = y;\n \t\ty2 = k * y;\n \t\t//\n \t\tfor (long i = 1; i < 10; i += 2) {\n \t\t\tf += k / i;\n \t\t\tk *= y2;\n \t\t}\n \t\t//\n \t\tf *= 2f;\n \t\tfor (int i = 0; i < appendix; i++) {\n \t\t\tf += FLOAT_LOGFDIV2;\n \t\t}\n \t\t//\n //\t\tlogger.info(\"exit _log\" + f);\n \t\treturn f;\n \t}", "public double getRandom(){\n\t\treturn random.nextDouble();\n\t}", "public static float nlog(float x) {\n if (x == 1) return 0;\n\n float agm = 1f;\n float g1 = 1 / (x * (1 << (DEFAULT_ACCURACY - 2)));\n float arithmetic;\n float geometric;\n\n for (int i = 0; i < 5; i++) {\n arithmetic = (agm + g1) / 2f;\n geometric = BAKSH_sqrt(agm * g1);\n agm = arithmetic;\n g1 = geometric;\n }\n\n return (PI / 2f) * (1 / agm) - DEFAULT_ACCURACY * LN2;\n }", "public static float log(float base, float arg) {\n return (nlog(arg)) / nlog(base);\n }", "public static double log(double x)\n\t{\n\t if (x < 1.0)\n\t return -log(1.0/x);\n\t \n\t double m=0.0;\n\t double p=1.0;\n\t while (p <= x) {\n\t m++;\n\t p=p*2;\n\t }\n\t \n\t m = m - 1;\n\t double z = x/(p/2);\n\t \n\t double zeta = (1.0 - z)/(1.0 + z);\n\t double n=zeta;\n\t double ln=zeta;\n\t double zetasup = zeta * zeta;\n\t \n\t for (int j=1; true; j++)\n\t {\n\t n = n * zetasup;\n\t double newln = ln + n / (2 * j + 1);\n\t double term = ln/newln;\n\t if (term >= LOWER_BOUND && term <= UPPER_BOUND)\n\t return m * ln2 - 2 * ln;\n\t ln = newln;\n\t }\n\t}", "public double getTimestamp() {\n switch (randomType) {\n case EXPONENT:\n return forArrive ? (-1d / LAMBDA) * Math.log(Math.random()) : (-1d / NU) * Math.log(Math.random());\n\n default:\n return 0;\n }\n }", "public float gaussianRandom() {\n\t\treturn (CCMath.constrain((float)nextGaussian() / 4,-1 ,1 ) + 1) / 2;\n\t}", "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}", "public static double random()\n {\n return _prng2.nextDouble();\n }", "public static int randomNext() { return 0; }", "public static final float log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tif (x == 1f) {\n \t\t\treturn 0f;\n \t\t}\n \t\t// Argument of _log must be (0; 1]\n \t\tif (x > 1f) {\n \t\t\tx = 1 / x;\n \t\t\treturn -_log(x);\n \t\t}\n \t\t;\n \t\t//\n \t\treturn _log(x);\n \t}", "static private float exact_log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tfloat f = 0f;\n \t\t//\n \t\tint appendix = 0;\n \t\twhile ((x > 0f) && (x <= 1f)) {\n \t\t\tx *= 2f;\n \t\t\tappendix++;\n \t\t}\n \t\t//\n \t\tx /= 2f;\n \t\tappendix--;\n \t\t//\n \t\tfloat y1 = x - 1f;\n \t\tfloat y2 = x + 1f;\n \t\tfloat y = y1 / y2;\n \t\t//\n \t\tfloat k = y;\n \t\ty2 = k * y;\n \t\t//\n \t\tfor (long i = 1; i < 50; i += 2) {\n \t\t\tf += k / i;\n \t\t\tk *= y2;\n \t\t}\n \t\t//\n \t\tf *= 2f;\n \t\tfor (int i = 0; i < appendix; i++) {\n \t\t\tf += FLOAT_LOGFDIV2;\n \t\t}\n \t\t//\n //\t\tlogger.info(\"exit _log\" + f);\n \t\treturn f;\n \t}", "public static double lg(double x) {\n return Math.log(x) / Math.log(2);\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "public static double fastRandomDouble(){\n\t\treturn rdm.nextDouble();\n\t\t//return rdm.nextDoubleFast();\n\t\t//return ((double)(fastRandomInt()) - ((double)Integer.MIN_VALUE)) / (-(Integer.MIN_VALUE * 2.0));\n\t}", "public double log(double d){\r\n\r\n\t\tif(d == 0){\r\n\t\t\treturn 0.0;\r\n\t\t} else {\r\n\t\t\treturn Math.log(d)/Math.log(2);\r\n\t\t}\r\n\r\n\t}", "private static final int calcLog (int value)\n {\n // Shortcut for uncached_data_length\n if (value <= 1023 )\n {\n return MIN_CACHE;\n }\n else\n {\n return (int)(Math.floor (Math.log (value) / LOG2));\n }\n }", "public float nextFloat(){\r\n\t\tint rand = nextInt();\r\n\t\treturn (float)(rand & 0x007fffff)/((float) 0x007fffff);\r\n\t}", "private static int getlog(int operand, int base) {\n double answ = Math.log(operand)/Math.log(base);\n if (answ == Math.ceil(answ)) {\n return (int)answ;\n }\n else {\n return (int)answ+1;\n }\n }", "public static int geometric( double p ) {\n // using algorithm given by Knuth\n return (int) Math.ceil( Math.log( uniform() ) / Math.log( 1.0 - p ) );\n }", "public static final BigInteger generateRandomNumber(int bitLength, Random random)\r\n\t{\r\n\t\tBigInteger base = ElGamalKeyParameters.TWO.pow(bitLength-1);\r\n\t\tBigInteger r = new BigInteger(bitLength-1, random); //random value in [0, 2^(bitLength-1)[ \r\n\t\treturn base.add(r);\r\n\t}", "public Double generateRandomDouble() {\n\t\tRandom rand = new Random(Double.doubleToLongBits(Math.random()));\n\t\treturn rand.nextDouble();\n\t}", "public float randomize() {\n return nextFloat(this.min, this.max);\n }", "public static int geometric(double[] parameters) {\r\n // using algorithm given by Knuth\r\n double p;\r\n p = parameters[0];\r\n return (int) Math.ceil(Math.log(uniform()) / Math.log(1.0 - p));\r\n }", "public double randomValue(){\n\t\treturn _randomValue() + _randomValue() + _randomValue();\n\t}", "int getRandom(int max);", "float getRandomValue(float min, float max)\r\n\t{\n\t\tRandom r = new Random(/*SEED!!!*/);\r\n\t\t//get a float between 0 and 1 then multiply it by the min/max difference.\r\n\t\tfloat num = r.nextFloat();\r\n\t\tnum = num * (max-min) + min;\r\n\t\treturn num;\r\n\t}", "public static double exponential( double lambda ) {\n return -Math.log( 1 - Math.random() ) / lambda;\n }", "private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }", "public static double nextGaussian(final RandomEventSource source) {\r\n double v1, v2, s;\r\n do {\r\n // Generates two independent random variables U1, U2\r\n v1 = 2 * source.nextDouble() - 1;\r\n v2 = 2 * source.nextDouble() - 1;\r\n s = v1 * v1 + v2 * v2;\r\n } while (s >= 1 || s == 0);\r\n final double norm = Math.sqrt(-2 * Math.log(s) / s);\r\n final double result = v1 * norm;\r\n // On 1,000,000 calls, this would usually yield about -5 minimum value,\r\n // and +5 maximum value. So we pretend the range is [-5.5,5.5] and normalize\r\n // it to [0,1], clamping if needed.\r\n final double normalized = (result + 5.5) / 11.0;\r\n return (normalized < 0) ? 0 : (normalized > BEFORE_ONE ? BEFORE_ONE\r\n : normalized);\r\n }", "private long nextLong(long n) {\n long bits;\n long val;\n do {\n bits = (rnd.nextLong() << 1) >>> 1;\n val = bits % n;\n } while (bits - val + (n - 1) < 0L);\n return val;\n }", "public static final BigInteger generateRandomNumber(BigInteger maxValue, Random random)\r\n\t{\r\n\t\tBigInteger testValue;\r\n\t\tdo{\r\n\t\t\ttestValue = new BigInteger(maxValue.bitLength(), random);\r\n\t\t}while(testValue.compareTo(maxValue) >= 0);\r\n\t\t\r\n\t\treturn testValue;\r\n\t}", "public double simulate(){\n\t\tdouble r = Math.sqrt(-2 * Math.log(Math.random()));\n\t\tdouble theta = 2 * Math.PI * Math.random();\n\t\treturn Math.exp(location + scale * r * Math.cos(theta));\n\t}", "public long getRandLong()\n {\n long lowerBound = 2000;\n long upperBound = 6000;\n Random r = new Random();\n \n long randLong = lowerBound + (long)(r.nextDouble()*(upperBound - lowerBound));\n return randLong;\n }", "public List<Float> randomLikelihood() {\n\t\tList<Float> likelihood = new ArrayList<Float>();\n\t\tlikelihood.add((float) getRandomInteger(-200, 0));\n\t\treturn(likelihood);\n\t}", "private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}", "private static int bernoulli(long result, long fractionOfExponent, double[][] exponentialDistribution)\n {\n\n /* *\n * Computes the Actual Bernoulli Parameter = exp (-t / f)\n * Yields A Fraction of 2^62, to Keep Only 62 Bits of Precision in This Implementation\n * */\n double bernoulliParameter = 4611686018427387904.0;\n\n for (long i = 0, j = fractionOfExponent; i < 3; i++, j >>= 5)\n {\n\n bernoulliParameter *= exponentialDistribution[(int)i][(int)(j & 31)];\n\n }\n\n /* Sample from Bernoulli of bernoulliParameter */\n return (int)(((result & 0x3FFFFFFFFFFFFFFFL) - Math.round(bernoulliParameter)) >>> 63);\n\n }", "public static double nextGaussian() {\n return randGen.nextGaussian();\n }", "@Override\r\n public Double getValue() {\r\n return Math.random()*Integer.MAX_VALUE;\r\n \r\n }", "static double randomDouble(int maxExponent) {\n double result = RANDOM_SOURCE.nextDouble();\n result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1));\n return RANDOM_SOURCE.nextBoolean() ? result : -result;\n }", "public static double sample(double a, double b, Random random) {\n assert (b > 0.0);\n return a - b * Math.log(random.nextDouble());\n }", "static int random(int mod)\n {\n Random rand = new Random();\n int l= (rand.nextInt());\n if(l<0)\n l=l*-1;\n l=l%mod;\n return l;\n }", "private int getPoisson() {\n\t\treturn (int) (-INCOMING_MY * Math.log(Math.random()));\n\t}", "private double lnGamma(double x) \n\t{\n\t\tdouble f = 0.0, z;\n\t\tif (x < 7) \n\t\t{\n\t\t\tf = 1;\n\t\t\tz = x - 1;\n\t\t\twhile (++z < 7)\n\t\t\t{\n\t\t\t\tf *= z;\n\t\t\t}\n\t\t\tx = z;\n\t\t\tf = -Math.log(f);\n\t\t}\n\t\tz = 1 / (x * x);\n\t\treturn\tf + (x - 0.5) * Math.log(x) - x + 0.918938533204673 +\n\t\t\t\t( ( ( -0.000595238095238 * z + 0.000793650793651 ) * z \n\t\t\t\t\t -0.002777777777778) * z + 0.083333333333333 ) / x;\n\t}", "public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }", "@Test\n public void whenInvokeThenReturnsLogarithmValues() {\n Funcs funcs = new Funcs();\n\n List<Double> expected = Arrays.asList(0D, 0.301D, 0.477D);\n List<Double> result = funcs.range(1, 3,\n (pStart) -> {\n double resultValue = Math.log10(pStart);\n resultValue = Math.rint(resultValue * 1000) / 1000;\n return resultValue;\n });\n\n assertThat(result, is(expected));\n }", "public double getLogProb(double value) {\n checkHasParams();\n if (value < 0) {\n return Double.NEGATIVE_INFINITY;\n } else {\n return logLambda - lambda * value;\n }\n }", "public long getValue() throws Exception {\n\n Random r = new Random();\n return (long)(r.nextFloat() * 100F);\n }", "private static double randomDouble(final Random rnd) {\n return randomDouble(Double.MIN_EXPONENT, Double.MAX_EXPONENT, rnd);\n }", "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "protected Random get_rand_value()\n {\n return rand;\n }", "@Override\r\n\tpublic Number getNext() {\r\n\t\tif(lambda==Double.POSITIVE_INFINITY){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Exponential.staticNextDouble(lambda);\r\n\t}", "private double generateRandomValue(int min, int max) {\n\t\tdouble number = (Math.random() * max * 100) / 100 + min;\n\t\treturn number;\n\t}", "public static int generateRandomNumber()\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt();\n\t}", "public static long randomFastLong() {\n return ThreadLocalRandom.current().nextLong();\n }", "public static float fastRandomFloat(){\n\t\treturn rdm.nextFloat();\n\t\t//return ((double)(fastRandomInt()) - ((double)Integer.MIN_VALUE)) / (-(Integer.MIN_VALUE * 2.0));\n\t}", "private double entropy(double x) {\r\n\t\tif (x > 0)\r\n\t\t\treturn -(x * (Math.log(x) / Math.log(2.0)));\r\n\t\telse\r\n\t\t\treturn 0.0;\r\n\t}", "private double randomLandau(double mu, double sigma, Random aRandom) {\n\t \n if (sigma <= 0) return 0;\n \n double res = mu + landau_quantile(aRandom.nextDouble(), sigma);\n return res;\n }", "public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\n }", "public double poisson(double alfa){\n double b = Math.exp(-alfa);\n\n int x = 0;\n\n double p=1;\n while(p > b){\n double u = rnd.getNextPseudoaleatoreo();\n p = p * u;\n x = x + 1;\n }\n\n return x;\n }", "public static double randomDouble() {\n return randomDouble(-Double.MAX_VALUE, Double.MAX_VALUE);\n }", "private void naturalLog()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.naturalLog ( );\n\t\t\tupdateText();\n\t\t}\n\t}", "public interface Random {\n /**\n * @return positive random value below q\n */\n BigInteger nextRandom(BigInteger q);\n }", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "public static double exp(double[] parameters) {\r\n double lambda;\r\n lambda = parameters[0];\r\n return -Math.log(1 - uniform()) / lambda;\r\n }", "public static int log(int n)\t\t\t\t\t\t\t\t\t\t// for a given n, compute log n by continually dividing n by 2 and counting the number of times\n\t{\n\t\tint count=0;\n\t\twhile(n>0) {\n\t\t\tcount++;\n\t\t\tn=n/2;\n\t\t}\n\t\treturn count;\n\t}", "private float randomPrice() {\n float price = floatRandom(this.maxRandomPrice);\n return price;\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }", "private static double randomGenerator(double min, double max) {\n return (double)java.lang.Math.random() * (max - min +1) + min;\n }", "public void roll(){\n currentValue = rand.nextInt(6)+1;\n }", "@SuppressWarnings(\"deprecation\")\n\t@Override\n public double calculateLogP() {\n logP = 0.0;\n // jeffreys Prior!\n if (jeffreys) {\n logP += -Math.log(getChainValue(0));\n }\n for (int i = 1; i < chainParameter.getDimension(); i++) {\n final double mean = getChainValue(i - 1);\n final double x = getChainValue(i);\n\n if (useLogNormal) {\n\t final double sigma = 1.0 / shape; // shape = precision\n\t // convert mean to log space\n\t final double M = Math.log(mean) - (0.5 * sigma * sigma);\n\t logNormal.setMeanAndStdDev(M, sigma);\n\t logP += logNormal.logDensity(x);\n } else {\n final double scale = mean / shape;\n gamma.setBeta(scale);\n logP += gamma.logDensity(x);\n }\n }\n return logP;\n }", "@Override\n public double calculateLogP() {\n\n double fastLogP = logLhoodAllGeneTreesInSMCTree(getInverseGammaMixture(),\n popPriorScaleInput.get().getValue(), false);\n\n if (debugFlag && numberofdebugchecks < maxnumberofdebugchecks) {\n double robustLogP = logLhoodAllGeneTreesInSMCTree(getInverseGammaMixture(),\n popPriorScaleInput.get().getValue(), true);\n if (Math.abs(fastLogP - robustLogP) > 1e-12) {\n System.err.println(\"BUG in calculateLogP() in PIOMSCoalescentDistribution\");\n throw new RuntimeException(\"Fatal STACEY error.\");\n\n }\n numberofdebugchecks++;\n }\n logP = fastLogP;\n return logP;\n }" ]
[ "0.6674715", "0.6560467", "0.63992447", "0.63967025", "0.6306545", "0.6300164", "0.62814176", "0.623324", "0.6229974", "0.6167474", "0.61558485", "0.6123276", "0.60354364", "0.5993805", "0.5955757", "0.5947465", "0.5928617", "0.5907119", "0.59045684", "0.59002733", "0.58827716", "0.5875694", "0.5851087", "0.5843877", "0.5812798", "0.5812487", "0.5802822", "0.57973975", "0.57870626", "0.5784507", "0.57704777", "0.5763331", "0.5761071", "0.57526726", "0.5741772", "0.5708031", "0.5706683", "0.5705392", "0.5692022", "0.5691509", "0.56719625", "0.56644046", "0.566386", "0.56625724", "0.5660556", "0.5652826", "0.564022", "0.5634122", "0.56330305", "0.56312215", "0.56197757", "0.56016123", "0.55955523", "0.5590073", "0.5588508", "0.5586022", "0.5585285", "0.5567864", "0.55665016", "0.5564925", "0.55510235", "0.5549209", "0.5525577", "0.55221283", "0.5513501", "0.55107594", "0.5488352", "0.54871625", "0.54853326", "0.5481801", "0.5464876", "0.54614335", "0.5458127", "0.54570067", "0.54527104", "0.54454464", "0.54409283", "0.54382807", "0.54374546", "0.54238874", "0.54115653", "0.5409313", "0.54072446", "0.53905344", "0.5384101", "0.53832036", "0.5372738", "0.53695047", "0.53623646", "0.53618306", "0.53546774", "0.5348038", "0.5347818", "0.5343702", "0.53371376", "0.5325828", "0.5324096", "0.5324078", "0.53212947", "0.5312089" ]
0.8298598
0
Compute the next random value using the von Neumann algorithm. Requires sequences of uniformlydistributed random values in [0, 1).
public float nextVonNeumann () { int n; int k = 0; float u1; // Loop to try sequences of uniformly-distributed // random values. for (;;) { n = 1; u1 = GENERATOR.nextFloat (); float u = u1; float uPrev = Float.NaN; // Loop to generate a sequence of random values // as long as they are decreasing. for (;;) { uPrev = u; u = GENERATOR.nextFloat (); // No longer decreasing? if (u > uPrev) { // n is even. if ((n & 1) == 0) { // return a random value return u1 + k; } // n is odd. ++k; // try another sequence break; } ++n; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}", "public static int uniform( int N ) {\n return random.nextInt( N + 1 );\n }", "public static int uniform(int N) {\r\n return random.nextInt(N);\r\n }", "int lanzar(int n){\n int result = (int) (Math.random()* 6) + 1;\r\n if(result !=n ) result = (int) (Math.random()* 6) + 1;\r\n return result;\r\n \r\n /*\r\n * int result = (int) (Math.random()*9)+1;\r\n * if (result > 0 && result < 7) return result;\r\n * else if(result > 6 && result < 9) return n;\r\n * else return (int) (Math.random()*6)+1;\r\n *\r\n *\r\n */\r\n }", "@Override\r\n\tpublic Number getNext() {\r\n\t\tif(lambda==Double.POSITIVE_INFINITY){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Exponential.staticNextDouble(lambda);\r\n\t}", "public static double random() {\r\n return uniform();\r\n }", "public float gaussianRandom() {\n\t\treturn (CCMath.constrain((float)nextGaussian() / 4,-1 ,1 ) + 1) / 2;\n\t}", "public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}", "public static int randomNext() { return 0; }", "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 }", "private double calculaz(double v) { //funcion de densidad de probabilidad normal\n double N = Math.exp(-Math.pow(v, 2) / 2) / Math.sqrt(2 * Math.PI);\n return N;\n }", "public static double URV() {\r\n\t\tRandom randomGenerator = new Random();\r\n\t\treturn randomGenerator.nextDouble();\r\n\t}", "public static double uniform() {\r\n return random.nextDouble();\r\n }", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "public float randomize() {\n return nextFloat(this.min, this.max);\n }", "public double poisson(double alfa){\n double b = Math.exp(-alfa);\n\n int x = 0;\n\n double p=1;\n while(p > b){\n double u = rnd.getNextPseudoaleatoreo();\n p = p * u;\n x = x + 1;\n }\n\n return x;\n }", "public List<Float> randomLikelihood() {\n\t\tList<Float> likelihood = new ArrayList<Float>();\n\t\tlikelihood.add((float) getRandomInteger(-200, 0));\n\t\treturn(likelihood);\n\t}", "public static double uniform() {\n return random.nextDouble();\n }", "public static double nextReverseLandau() {\n \n\t\tdouble a = 0.1; //Landau parameters: 0.1 gives a good realistic shape\n\t\tdouble b = 0.1;\n\t\tdouble mu = 0; //Most probable value\n\t\tdouble ymax = b/a*Math.exp(-0.5); // value of function at mu\n\t\tdouble x1,x2,y;\n\n\t\tdo {\n\t\t\tx1 = 4 * _random.nextDouble() - 2; // between -2.0 and 2.0 \n\t\t\ty = b/a*Math.exp(-0.5*((mu-x1)/a + Math.exp(-(mu-x1)/a)));\n\t\t\tx2 = ymax * _random.nextDouble();\n\t\t} while (x2 > y);\n \n\t\treturn x1;\n\t}", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "public static double nextDouble (RandomStream s, double alpha,\n double lambda, double delta) {\n return WeibullDist.inverseF (alpha, lambda, delta, s.nextDouble());\n }", "public double sample_value() {\n checkHasParams();\n return -Math.log(Util.random()) / this.lambda;\n }", "public float nextLog ()\n {\n // Generate a non-zero uniformly-distributed random value.\n float u;\n while ((u = GENERATOR.nextFloat ()) == 0)\n {\n // try again if 0\n }\n\n return (float) (-m_fMean * Math.log (u));\n }", "@Override\n public Z next() {\n if (mN <= 12068659184L) {\n final double best = mBest.doubleValue();\n while (true) {\n final double d = Math.tan(++mN);\n double frac = d % 1;\n if (frac < 0) {\n frac = 1 + frac;\n }\n if (frac > best) {\n mBest = CR.valueOf(frac);\n return Z.valueOf(mN);\n }\n }\n }\n\n // More careful searching\n while (true) {\n final CR tan = ComputableReals.SINGLETON.tan(CR.valueOf(++mN));\n CR frac = tan.subtract(CR.valueOf(tan.floor()));\n if (frac.signum() < 0) {\n frac = CR.ONE.add(frac);\n }\n if (frac.compareTo(mBest) > 0) {\n mBest = frac;\n return Z.valueOf(mN);\n }\n }\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public MarkovZero() {\n\t\tmyRandom = new Random();\n\t}", "private Vec3 calculateRandomValues(){\n\n Random rand1 = new Random();\n float randX = (rand1.nextInt(2000) - 1000) / 2000f;\n float randZ = (rand1.nextInt(2000) - 1000) / 2000f;\n float randY = rand1.nextInt(1000) / 1000f;\n\n return new Vec3(randX, randY, randZ).normalize();\n }", "public static double random()\n {\n final int MAX_INT = 2147483647;\n int n = MAX_INT;\n \n // Just to ensure it does not return 1.0\n while(n == MAX_INT)\n \tn = abs (RAND.nextInt());\n \n return n * (1.0 / MAX_INT);\n }", "@Test\n\tpublic void testPoisson() throws Exception {\n\t\tPoissonDistribution p = new PoissonDistributionImpl(1);\n\t\tRandom random = new Random();\n\t\tint[] counts = new int[500];\n\t\tfor (int i = 0; i < 10000; i++) {\n\t\t\tcounts[p.inverseCumulativeProbability(random.nextDouble()) + 1]++;\n\t\t}\n\t\tdouble delta = 0.03;\n\t\tassertEquals(0.367879, counts[0] / 10000d, delta);\n\t\tassertEquals(0.367879, counts[1] / 10000d, delta);\n\t\tassertEquals(0.183940, counts[2] / 10000d, delta);\n\t\tassertEquals(0.061313, counts[3] / 10000d, delta);\n\t\tassertEquals(0.015328, counts[4] / 10000d, delta);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.0) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.1) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.2) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.3) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.4) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.5) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.6) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.7) + 1, 0);\n\t\tassertEquals(2, p.inverseCumulativeProbability(0.8) + 1, 0);\n\t\tassertEquals(2, p.inverseCumulativeProbability(0.9) + 1, 0);\n\t\tassertEquals(3, p.inverseCumulativeProbability(0.95) + 1, 0);\n\t\tassertEquals(3, p.inverseCumulativeProbability(0.975) + 1, 0);\n\t\tassertEquals(4, p.inverseCumulativeProbability(0.99) + 1, 0);\n\n\t\t// Poisson dist with t = 0.86\n\t\tp = new PoissonDistributionImpl(0.86);\n\t\tcounts = new int[500];\n\t\tfor (int i = 0; i < 10000; i++) {\n\t\t\tcounts[p.inverseCumulativeProbability(random.nextDouble()) + 1]++;\n\t\t}\n\t\tdelta = 0.03;\n\t\tassertEquals(0.423162, counts[0] / 10000d, delta);\n\t\tassertEquals(0.363919, counts[1] / 10000d, delta);\n\t\tassertEquals(0.156485, counts[2] / 10000d, delta);\n\t\tassertEquals(0.044819, counts[3] / 10000d, delta);\n\t\tassertEquals(0.009645, counts[4] / 10000d, delta);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.0) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.1) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.2) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.3) + 1, 0);\n\t\tassertEquals(0, p.inverseCumulativeProbability(0.4) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.5) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.6) + 1, 0);\n\t\tassertEquals(1, p.inverseCumulativeProbability(0.7) + 1, 0);\n\t\tassertEquals(2, p.inverseCumulativeProbability(0.8) + 1, 0);\n\t\tassertEquals(2, p.inverseCumulativeProbability(0.9) + 1, 0);\n\t\tassertEquals(3, p.inverseCumulativeProbability(0.95) + 1, 0);\n\t\tassertEquals(3, p.inverseCumulativeProbability(0.975) + 1, 0);\n\t\tassertEquals(4, p.inverseCumulativeProbability(0.99) + 1, 0);\n\t}", "@Test\n public void genNeighStateProbability() {\n double[] metrics = new double[STATES.length * STATES.length];\n double sum = 0;\n Random rand = new Random();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (x == y) {\n metrics[i] = 0;\n } else {\n double d = Math.abs(rand.nextGaussian());//Math.exp(-Math.abs(STATES[x] - STATES[y]) / 3) * Math.abs(rand.nextGaussian());\n metrics[i] = d;\n sum += d;\n }\n }\n final double finalSum = sum;\n metrics = DoubleStream.of(metrics).map(d -> d / finalSum).toArray();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (metrics[i] > 0.01) {\n System.out.printf(\"%d:%d:%.4f\\n\", STATES[x], STATES[y], metrics[i]);\n }\n }\n }", "@Override\r\n\tpublic int computeNextVal(boolean prediction, Instance inst) {\n\t\treturn 0;\r\n\t}", "int randInt(int n) {\r\n return _randomSource.nextInt(n);\r\n }", "public static int poisson(double[] parameters) {\r\n // using algorithm given by Knuth\r\n // see http://en.wikipedia.org/wiki/Poisson_distribution\r\n double lambda;\r\n lambda = parameters[0];\r\n int k = 0;\r\n double p = 1.0;\r\n double L = Math.exp(-lambda);\r\n do {\r\n k++;\r\n p *= uniform();\r\n } while (p >= L);\r\n return k-1;\r\n }", "public void randomNumberTest() {\n //Generating streams of random numbers\n Random random = new Random();\n random.ints(5)//(long streamSize, double randomNumberOrigin, double randomNumberBound)\n .sorted()\n .forEach(System.out::println);\n /*\n -1622707470\n -452508309\n 1346762415\n 1456878623\n 1783692417\n */\n }", "public static int getRandom(int n){\n\t\treturn rg.nextInt(n); \n\t}", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "public int getRandomPositiveInt(){\r\n long gen = (a*seed+c)%m;\r\n seed = gen;\r\n return (int)gen;\r\n }", "static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }", "public double randomValue(){\n\t\treturn _randomValue() + _randomValue() + _randomValue();\n\t}", "public static double nextGaussian(final RandomEventSource source) {\r\n double v1, v2, s;\r\n do {\r\n // Generates two independent random variables U1, U2\r\n v1 = 2 * source.nextDouble() - 1;\r\n v2 = 2 * source.nextDouble() - 1;\r\n s = v1 * v1 + v2 * v2;\r\n } while (s >= 1 || s == 0);\r\n final double norm = Math.sqrt(-2 * Math.log(s) / s);\r\n final double result = v1 * norm;\r\n // On 1,000,000 calls, this would usually yield about -5 minimum value,\r\n // and +5 maximum value. So we pretend the range is [-5.5,5.5] and normalize\r\n // it to [0,1], clamping if needed.\r\n final double normalized = (result + 5.5) / 11.0;\r\n return (normalized < 0) ? 0 : (normalized > BEFORE_ONE ? BEFORE_ONE\r\n : normalized);\r\n }", "public double[] randv()\n\t{\n\t\tdouble p = a * (1.0 - e * e);\n\t\tdouble cta = Math.cos(ta);\n\t\tdouble sta = Math.sin(ta);\n\t\tdouble opecta = 1.0 + e * cta;\n\t\tdouble sqmuop = Math.sqrt(this.mu / p);\n\n\t\tVectorN xpqw = new VectorN(6);\n\t\txpqw.x[0] = p * cta / opecta;\n\t\txpqw.x[1] = p * sta / opecta;\n\t\txpqw.x[2] = 0.0;\n\t\txpqw.x[3] = -sqmuop * sta;\n\t\txpqw.x[4] = sqmuop * (e + cta);\n\t\txpqw.x[5] = 0.0;\n\n\t\tMatrix cmat = PQW2ECI();\n\n\t\tVectorN rpqw = new VectorN(xpqw.x[0], xpqw.x[1], xpqw.x[2]);\n\t\tVectorN vpqw = new VectorN(xpqw.x[3], xpqw.x[4], xpqw.x[5]);\n\n\t\tVectorN rijk = cmat.times(rpqw);\n\t\tVectorN vijk = cmat.times(vpqw);\n\n\t\tdouble[] out = new double[6];\n\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tout[i] = rijk.x[i];\n\t\t\tout[i + 3] = vijk.x[i];\n\t\t}\n\n\t\treturn out;\n\t}", "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }", "int randInt(int n) {\n return _randomSource.nextInt(n);\n }", "public Viseme getNextViseme();", "public interface Random {\n /**\n * @return positive random value below q\n */\n BigInteger nextRandom(BigInteger q);\n }", "private int getPoisson() {\n\t\treturn (int) (-INCOMING_MY * Math.log(Math.random()));\n\t}", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }", "static public Long randomval() {\n Random rand = new Random();\n Long val = rand.nextLong() % p;\n return val;\n }", "public void alphaBetaNuLambda(){\n double totalAlpha = 0.0;\n for (int k=0 ; k<K ; ++k){\n alpha[k] = alpha0 + N[k];\n totalAlpha = totalAlpha + alpha[k];\n beta[k] = beta0 + N[k];\n nu[k] = nu0 +N[k] + 1.0;\n }\n \n // calculate lambda tilde vector\n for (int k=0 ; k<K ; ++k){\n double sum = 0.0;\n for (int d=1 ; d<=X.getD() ; ++d){\n double v = (nu[k]+1.0-d)/2.0;\n sum = sum + Gamma.digamma(v);\n }\n lnLambdaTilde[k] = sum + Dln2 + Math.log(detW[k]);\n } \n }", "@Override\r\n public Double getValue() {\r\n return Math.random()*Integer.MAX_VALUE;\r\n \r\n }", "public static double sample_value(double lambda) {\n return -Math.log(Util.random()) / lambda;\n }", "int getRandom(int max);", "private double randomLandau(double mu, double sigma, Random aRandom) {\n\t \n if (sigma <= 0) return 0;\n \n double res = mu + landau_quantile(aRandom.nextDouble(), sigma);\n return res;\n }", "public int next() {\r\n\t\t// Get a random value\r\n\t\tint index = random.nextInt(values.length);\r\n\t\tint byteValue = values[index] + 128; // For an unsigned value\r\n\t\tint value = byteValue * 3;\r\n\t\t// If byteValue = 255 (max), then choose between 765000 and 799993\r\n\t\tif (byteValue == 255) {\r\n\t\t\tvalue += random.nextInt(800-765+1);\r\n\t\t}\r\n\t\t// Otherwise, choose between value and value + 2 (inc)\r\n\t\telse {\r\n\t\t\tvalue += random.nextInt(3);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public double alternatingSequence(int n)\r\n {\r\n double sum = 0;\r\n\r\n for (int i = 1; i <= n; i++)\r\n sum += Math.pow(-1, i - 1)/i;\r\n\r\n return sum;\r\n }", "public double[] randomBreitWigner(double a, double gamma, int n){\r\n double[] r = DatanRandom.ecuy(n);\r\n for(int i = 0; i < n; i++){\r\n r[i] = a + 0.5 * gamma * Math.tan(Math.PI * (r[i] - 0.5));\r\n }\r\n return r;\r\n }", "public NormalGen (RandomStream s) {\n this (s, 0.0, 1.0);\n }", "public float nextFloat(){\r\n\t\tint rand = nextInt();\r\n\t\treturn (float)(rand & 0x007fffff)/((float) 0x007fffff);\r\n\t}", "public void setMuNext (int value) {\r\n Mu_next = value;\r\n }", "public static double nextDouble (RandomStream s, double mu, double sigma) {\n return NormalDist.inverseF (mu, sigma, s.nextDouble());\n }", "private long nextLong(long n) {\n long bits;\n long val;\n do {\n bits = (rnd.nextLong() << 1) >>> 1;\n val = bits % n;\n } while (bits - val + (n - 1) < 0L);\n return val;\n }", "public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}", "int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "private static double pseudo_Alea(int N, int seed) {\n N = N + seed * 58900;\n N = (N << 13) ^ N;\n N = (N * (N * N * 15731 + 789221)) + 1376312589;\n return 1.0 - (N & 0x7fffffff) / 1073741824.0;\n }", "public double simulate(){\n\t\tdouble r = Math.sqrt(-2 * Math.log(Math.random()));\n\t\tdouble theta = 2 * Math.PI * Math.random();\n\t\treturn Math.exp(location + scale * r * Math.cos(theta));\n\t}", "public static int generatRandomPositiveNegitiveValue(int max , int min) {\n\t int ii = -min + (int) (Math.random() * ((max - (-min)) + 1));\n\t return ii;\n\t}", "private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}", "private int randomPushVelocityChange() {\n int result = pushVelocityChangeMin +\n random.nextInt(pushVelocityChangeMax - pushVelocityChangeMin + 1);\n \n return result;\n }", "@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }", "public static double nextGaussian() {\n return randGen.nextGaussian();\n }", "public RandomGenerator_Exponential(double lambda) {\r\n\t\tthis.lambda = lambda;\r\n\t}", "private double m9971g() {\n return (new Random().nextDouble() * 0.4d) - 22.4d;\n }", "public static void modifiedNussinov() {\r\n // Declare j\r\n int j;\r\n\r\n // Fill in DPMatrix\r\n for (int k = 0; k < sequence.length(); k++) {\r\n for (int i = 0; i < sequence.length()-1; i++) {\r\n // If bigger than allowed loop size\r\n if (k > minimumLoop - 1) {\r\n // Index is in bounds\r\n if ((i + k + 1) <= sequence.length()-1) {\r\n // Set j to i + k + 1\r\n j = i + k + 1;\r\n\r\n // Set min to max value\r\n double minimum = Double.MAX_VALUE;\r\n\r\n // Check for minimum\r\n minimum = Math.min(minimum, Math.min((DPMatrix[i + 1][j] ), (DPMatrix[i][j - 1] )) );\r\n\r\n // Adjust for pair scores\r\n if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 1) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 2);\r\n } else if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 2) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 3);\r\n }\r\n for (int l = i + 1; l < j; l++) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, (DPMatrix[i][l]) + (DPMatrix[l + 1][j]));\r\n }\r\n\r\n // Set the matrix value\r\n DPMatrix[i][j] = minimum;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Run the traceback\r\n String structure = structureTraceback();\r\n\r\n // Create file for writer\r\n File file = new File(\"5.o1\");\r\n\r\n // Create writer\r\n try {\r\n // Writer\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\r\n // Write sequence\r\n writer.write(sequence);\r\n writer.write('\\n');\r\n\r\n // Write MFE\r\n writer.write(Double.toString(DPMatrix[0][sequenceLength - 1]));\r\n writer.write('\\n');\r\n\r\n // Write structure\r\n writer.write(structure);\r\n\r\n // Close writer\r\n writer.close();\r\n\r\n } catch (IOException e) {\r\n // Print error\r\n System.out.println(\"Error opening file 5.o1\");\r\n }\r\n\r\n }", "float getRandomValue(float min, float max)\r\n\t{\n\t\tRandom r = new Random(/*SEED!!!*/);\r\n\t\t//get a float between 0 and 1 then multiply it by the min/max difference.\r\n\t\tfloat num = r.nextFloat();\r\n\t\tnum = num * (max-min) + min;\r\n\t\treturn num;\r\n\t}", "public static double uniform(double[] parameters) {\r\n double a, b;\r\n a = parameters[0];\r\n b = parameters[1];\r\n return a + uniform() * (b-a);\r\n }", "void resetSequential() {\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n }", "public static int poisson( double lambda ) {\n // using algorithm given by Knuth\n // see http://en.wikipedia.org/wiki/Poisson_distribution\n int k = 0;\n double p = 1.0;\n double L = Math.exp( -lambda );\n do {\n k++;\n p *= uniform();\n } while ( p >= L );\n \n return k-1;\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "@Test\n public void genRandom() {\n runAndWait(() -> genRandom(10_000, 500, 1), 32, 2000);\n runAndWait(() -> genRandom(10_000, 500, 100), 32, 2000);\n runAndWait(() -> genRandom(250_000, 4000, 50), 4, 5_000);\n }", "private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }", "Boolean getRandomize();", "public Random getRandomNumberGenerator() { return randomNumberGenerator; }", "public UniformVector(VectorN mn, VectorN mx, long seed){\n super(mn.length);\n mx.checkVectorDimensions(mn);\n this.min = new VectorN(mn);\n this.max = new VectorN(mx);\n if (seed > 0) seed = -seed;\n this.idum = seed;\n this.rn = new RandomNumber(this.idum); \n fillVector();\n }", "public void setToRandomValue(RandomGenerator a_numberGenerator) {\n // maps the randomly determined value to the current bounds.\n // ---------------------------------------------------------\n setAllele(new Float( (m_upperBound - m_lowerBound) *\n a_numberGenerator.nextFloat() + m_lowerBound));\n }", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "public static double nota(double maxNum) {\n return Math.random() * maxNum;\n// return notaAlta(maxNum);\n }", "public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}", "public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}", "public static float fastRandomFloat(){\n\t\treturn rdm.nextFloat();\n\t\t//return ((double)(fastRandomInt()) - ((double)Integer.MIN_VALUE)) / (-(Integer.MIN_VALUE * 2.0));\n\t}", "public static double predict(LinkedList<Double> series)\n\t{\n\t\tdouble nextValue = 0;\n\t\tdouble lastValue = 0;\n\t\tif (S0 == 0)\n\t\t{\n\t\t\tfor (int i=0; i<series.size()-1; i++)\n\t\t\t\tS0 += series.get(i);\n\t\t\tS0 /= series.size()-1;\t\n\t\t}\n\t\tlastValue = series.get(series.size()-1);\n\t\tnextValue = S0 + alpha * (lastValue - S0);\n\t\tS0 = nextValue;\n\t\treturn nextValue;\n\t}", "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 }", "static int randomDelta(int average)\n\t{\n\t\treturn rand.nextInt(4*average + 1) - 2*average;\n\t}", "public CellularAutomatonRNG()\n {\n this(DefaultSeedGenerator.getInstance().generateSeed(SEED_SIZE_BYTES));\n }" ]
[ "0.5933424", "0.58596486", "0.5767073", "0.5703027", "0.5655936", "0.55918765", "0.546833", "0.5429705", "0.5428329", "0.5407123", "0.5378094", "0.5350215", "0.53474814", "0.53419596", "0.5313867", "0.53107095", "0.5303999", "0.5276322", "0.5268558", "0.524724", "0.52329946", "0.5219463", "0.52168995", "0.51876163", "0.5175695", "0.51443374", "0.5143985", "0.51378715", "0.51334", "0.5113129", "0.5098098", "0.50974685", "0.5087469", "0.5084135", "0.50802207", "0.5074714", "0.50734335", "0.50710166", "0.5066696", "0.5041465", "0.50389475", "0.5025442", "0.50008166", "0.49992198", "0.4984576", "0.49803305", "0.4978526", "0.4974375", "0.4973719", "0.49732366", "0.49725866", "0.49672082", "0.4961583", "0.496105", "0.49429488", "0.49377814", "0.49328554", "0.4927731", "0.49235886", "0.49166584", "0.49148464", "0.4912464", "0.49028245", "0.4897877", "0.48907372", "0.48722956", "0.48679456", "0.48643684", "0.48547447", "0.48522088", "0.48387814", "0.4835841", "0.48190928", "0.4818613", "0.4809565", "0.4807723", "0.4796038", "0.47955447", "0.4786993", "0.47833654", "0.4782362", "0.47781184", "0.4777563", "0.47690356", "0.47669643", "0.4765584", "0.4764307", "0.47606385", "0.47599968", "0.47517636", "0.47479802", "0.47459427", "0.4745077", "0.47427756", "0.47418624", "0.47360665", "0.47319818", "0.47316018", "0.4726197", "0.47230273" ]
0.8398103
0
/ 21. Unique Binary Search Trees Given n, how many structurally unique BST's (binary search trees) that store values 1...n? Analysis Let count[i] be the number of unique binary search trees for i. The number of trees are determined by the number of subtrees which have different root node. For example, i=0, count[0]=1 //empty tree i=1, count[1]=1 //one tree i=2, count[2]=count[0]count[1] // 0 is root + count[1]count[0] // 1 is root i=3, count[3]=count[0]count[2] // 1 is root + count[1]count[1] // 2 is root + count[2]count[0] // 3 is root i=4, count[4]=count[0]count[3] // 1 is root + count[1]count[2] // 2 is root + count[2]count[1] // 3 is root + count[3]count[0] // 4 is root .. .. .. i=n, count[n] = sum(count[0..k]count[k+1...n]) 0 <= k < n1 Use dynamic programming to solve the problem.
private static int numTrees(int n) { int[] counts = new int[n + 2]; counts[0] = 1; counts[1] = 1; for (int i = 2; i <= n; i++) { for (int j = 0; j < i; j++) { counts[i] += counts[j] * counts[i - j - 1]; } } return counts[n]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numTrees(int n) {\n\n int[] count = new int[n + 1];\n\n count[0] = 1;\n count[1] = 1;\n count[2] = 2;\n\n if (count[n] != 0) return count[n];\n\n // Get from count[1] to count[n]\n // G(n) = ∑ i=1ton, G(i−1)⋅G(n−i)\n for (int j = 3; j <= n; j++) {\n int total = 0;\n for (int i = 1; i <= j; i++) {\n int llen = i - 1;\n int rlen = j - i;\n total += (count[llen] * count[rlen]);\n }\n count[j] = total;\n }\n\n return count[n];\n }", "public int countNodes(TreeNode root) {\n if (root == null) return 0;\n TreeNode l = root, r = root;\n int h = 0;\n while (l != null && r != null) {\n l = l.left; r = r.right;\n ++h;\n }\n if (l == null && r == null) return (1 << h) - 1; // # of nodes of a full binary tree is 2^h-1\n else return 1 + countNodes(root.left) + countNodes(root.right);\n }", "public int numTrees(int n) {\n if (n==0) return 1;\n int[] dp = new int[n+1];\n dp[0] = dp[1] = 1;\n for (int i=2;i<=n;i++) {\n for (int j=1;j<=i;j++) {\n dp[i] += dp[j-1] * dp[i-j];\n }\n }\n return dp[n];\n }", "public static int numTrees(int n){\n int[] dp = new int[n+1];\n dp[0] = 1;\n for (int i = 1; i <= n; i++){\n for (int j = 0; j < i; j++){\n dp[i] += dp[j] * dp[i-1-j];\n }\n }\n\n return dp[n];\n }", "public int numTrees(int n) {\n int[] dp = new int[n+1];\n dp[0] = 1;\n dp[1] = 1;\n for (int i=2; i<=n; i++) {\n for (int j=0; j<i; j++) {\n dp[i] = dp[i] + dp[j]*dp[i-j-1];\n }\n }\n \n return dp[n];\n }", "public int numTrees(int n) {\n long now = 1;\n for (int i = 0; i < n; i++) {\n now *= 2*n-i;\n now /= i+1;\n }\n return (int)(now/(n+1));\n }", "static int countSubtreesWithSumXUtil(Node root, int x)\n {\n int l = 0, r = 0;\n if(root == null) \n \treturn 0;\n l += countSubtreesWithSumXUtil(root.left, x);\n r += countSubtreesWithSumXUtil(root.right, x);\n if(l + r + root.data == x) \n \tcount++;\n if(ptr != root) \n \treturn l + root.data + r;\n return count;\n }", "private int countNodes(Node n) {\n int count = 1;\n if (n==null) return 0;\n\n for (int i = 0; i < n.getSubtreesSize(); i++) {\n count = count + countNodes(n.getSubtree(i));\n }\n\n return count;\n }", "private int countNodes(TreeNode root) {\n int count = 1;\n if (root.left != null) {\n count += countNodes(root.left);\n }\n if (root.right != null) {\n count += countNodes(root.right);\n }\n return count;\n }", "public static void main(String[] args) {\n Node root = new Node(5);\n root.left = new Node(1);\n root.right = new Node(5);\n root.left.left = new Node(5);\n root.left.right = new Node(5);\n root.right.right = new Node(5);\n\n System.out.println(countUnivalSubtrees(root));\n }", "public int numTrees(int n) {\n if(n == 0 || n == 1 || n == 2)\n return n;\n int[] c = new int[n + 1];\n c[2] = 2;\n c[3] = 5;\n for(int i = 4; i < n + 1; i++){\n for(int j = 2; j < i; j++)\n c[i] += 2 * (c[j]);\n }\n return c[n];\n }", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "private static int countUnivalSubtrees(Node root) {\n Set<Node> set = new HashSet<>();\n isUnivalNode(root, set);\n return set.size();\n }", "public int numTrees(int n) {\n int[] G = new int[n + 1];\n G[0] = 1;\n G[1] = 1;\n\n for (int i = 2; i <= n; ++i) {\n for (int j = 1; j <= i; ++j) {\n G[i] += G[j - 1] * G[i - j];\n }\n }\n return G[n];\n }", "public static int numTrees(int n) {\n return helper(1,n);\n }", "public int numTrees(int n) {\n if(n<=1)\n return 1;\n int[] dp = new int[n+1];\n dp[0] = 1;\n dp[1] = 1;\n dp[2] = 2;\n \n for(int i=3;i<=n;i++){\n int sum = 0;\n for(int a=0;a<i;a++){\n sum+=dp[0+a]*dp[i-1-a];\n }\n dp[i] = sum;\n //if i is odd then add the i/2 dp after you multiply by 2\n }\n return dp[n];\n }", "public static void main(String[] args) \n {\n Scanner input=new Scanner(System.in);\n int N=input.nextInt();\n int M=input.nextInt();\n int tree[]=new int[N];\n int count[]=new int[N];\n Arrays.fill(count,1);\n for(int i=0;i<M;i++)\n {\n int u1=input.nextInt();\n int v1=input.nextInt();\n tree[u1-1]=v1;\n count[v1-1]+=count[u1-1];\n int root=tree[v1-1];\n while(root!=0)\n {\n count[root-1]+=count[u1-1];\n root=tree[root-1];\n }\n }\n int counter=-1;\n for(int i=0;i<count.length;i++)\n {\n if(count[i]%2==0)\n counter++;\n }\n System.out.println(counter);\n }", "public int countNodes(TreeNode root) {\n int leftHeight = getLeftHeight(root);\n int rightHeight = getRightHeight(root);\n if (leftHeight == rightHeight) {\n return (1 << leftHeight) - 1;\n }\n return countNodes(root.left) + countNodes(root.right) + 1;\n }", "private int countNodes(BSTNode r) {\r\n \r\n // if the node is null, return 0\r\n if (r == null) {\r\n \r\n return 0;\r\n }\r\n \r\n // if node is NOT null, execute\r\n else {\r\n \r\n // initialize count to 1\r\n int countN = 1;\r\n \r\n // increment count for each child node\r\n countN += countNodes(r.getLeft());\r\n countN += countNodes(r.getRight());\r\n \r\n // return the count\r\n return countN;\r\n }\r\n }", "public static void main(String args[]) \r\n {\n BinaryTree tree = new BinaryTree();\r\n tree.root = new Node(20);\r\n tree.root.left = new Node(8);\r\n tree.root.right = new Node(22);\r\n tree.root.left.left = new Node(4);\r\n tree.root.left.right = new Node(12);\r\n tree.root.left.right.left = new Node(10);\r\n tree.root.left.right.right = new Node(14);\r\n \r\n System.out.println(\"No. of nodes in the tree is : \"+ nodeCount(tree.root));\r\n \r\n }", "private int nodeCount(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1+nodeCount(t.left)+nodeCount(t.right);\r\n\t\t}\r\n\t}", "private int countLeafs(TreeNode temp) {\n\t\tif (temp == null)\n\t\t\treturn 0;\n\t\tif (temp.left == null && temp.right == null)\n\t\t\treturn 1;\n\t\treturn countLeafs(temp.left) + countLeafs(temp.right);\n\t}", "public int numTrees(int n) {\n int[] table = new int[n+1];\n table[0] = 1;\n table[1] = 1;\n for (int i=2; i<=n ;i++) {\n for (int j=0; j<i; j++) {\n table[i] = table[i] + table[j] * table[i-j-1];\n }\n \n }\n \n return table[n];\n }", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static int sizeIterative(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint count = 0;\r\n\t\tQueue<Node> queue = new LinkedList<>();\r\n\t\tqueue.add(root);\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tNode temp = queue.poll();\r\n\t\t\tif (temp != null) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tqueue.add(temp.left);\r\n\t\t\t\tqueue.add(temp.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "private int countNodes(BTNode r)\r\n {\r\n if (r == null)\r\n return 0;\r\n else\r\n {\r\n int l = 1;\r\n l += countNodes(r.getLeft());\r\n l += countNodes(r.getRight());\r\n return l;\r\n }\r\n }", "private static int countNodes(TreeNode node) {\n if (node == null) {\n // Tree is empty, so it contains no nodes.\n return 0;\n } else {\n // Add up the root node and the nodes in its two subtrees.\n int leftCount = countNodes(node.left);\n int rightCount = countNodes(node.right);\n return 1 + leftCount + rightCount;\n }\n }", "public int treeSize(BinaryTreeNode root) {\n\t\tint size = 0;\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tBinaryTreeNode temp;\n\t\t\tQueue<BinaryTreeNode> q = new LinkedList<BinaryTreeNode>();\n\t\t\tq.add(root);\n\n\t\t\twhile (!q.isEmpty()) {\n\t\t\t\ttemp = q.poll();\n\t\t\t\tsize++;\n\t\t\t\tif (temp.getLeft() != null)\n\t\t\t\t\tq.add(temp.getLeft());\n\t\t\t\tif (temp.getRight() != null)\n\t\t\t\t\tq.add(temp.getRight());\n\t\t\t}\n\t\t}\n\t\treturn size;\n\t}", "private int _countEmpty(IntTreeNode root) {\r\n if (root == null) {\r\n return 1;\r\n } else {\r\n int leftNulls = _countEmpty(root.left);\r\n int rightNulls = _countEmpty(root.right);\r\n return leftNulls + rightNulls;\r\n }\r\n }", "int countSubtreesWithSumXUtil(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n\n int sum = ls + rs + root.data;\n\n // if tree's nodes sum == x\n if (sum == x) c++;\n return sum;\n }", "public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}", "public static int getNum(TreeNode root) {\n if (root == null) {\n return 0;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if (node.left != null) queue.offer(node.left);\n if (node.right != null) queue.offer(node.right);\n count++;\n }\n return count;\n }", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "public static void main(String[] args) {\n TreeNode t1 = new TreeNode(1);\n TreeNode t2 = new TreeNode(1);\n TreeNode t3 = new TreeNode(1);\n TreeNode t4 = new TreeNode(1);\n TreeNode t5 = new TreeNode(1);\n\n t1.left = t2;\n t1.right = t3;\n t2.left = t4;\n t2.right = t5;\n System.out.println(new CountCompleteTreeNodes().countNodes(t1));\n System.out.println(new CountCompleteTreeNodes().countNodesBinary(t1));\n }", "public Integer countBST() {\n\n if (root == null) return 0;\n try {\n Integer x = (Integer)root.element;\n } catch (NumberFormatException e) {\n System.out.println(\"count BST works only with comparable values, AKA Integers.\" + e);\n return 0;\n }\n return countBSTRecur(root);\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "public int countNodes(){\r\n \treturn count(root);\r\n }", "int countSubtreesWithSumX(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n // check if above sum is equal to x\n if ((ls + rs + root.data) == x) c++;\n return c;\n }", "public int countNodes(Node N) {\n if(N != null){\n int left = countNodes(N.getLeft());\n int right = countNodes(N.getRight());\n return left+right+1;\n } else {\n return 0;\n }\n }", "private static int utopianTree( int n )\n\t{\n\t\tint height = 1;\n\t\twhile( n > 0 )\n\t\t{\n\t\t\tif( n > 0 )\n\t\t\t{\n\t\t\t\theight *= 2;\n\t\t\t\tn--;\n\t\t\t}\n\t\t\tif( n > 0 )\n\t\t\t{\n\t\t\t\theight++;\n\t\t\t\tn--;\n\t\t\t}\n\t\t}\n\t\treturn height;\n\t}", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "public int countChildren(Nodo t) {\r\n int count = 0;\r\n if(t == null)\r\n return 0;\r\n if(t.getLeft() != null)\r\n count++;\r\n count += countChildren(t.getLeft());\r\n if(t.getRight() != null)\r\n count++;\r\n count += countChildren(t.getRight());\r\n return count;\r\n }", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//System.out.println(Integer.toBinaryString(31));\r\n\t\tint n = in.nextInt();\r\n\t\tint[] arr = new int[n];\r\n\t\tfor(int i = 0 ;i < n; i++) {\r\n\t\t\tarr[i] = in.nextInt();\r\n\t\t}\r\n\t\tArrays.sort(arr);\r\n\t\tint[] arr1 = new int[n];\r\n\t\tint co = 0;\r\n\t\tfor(int i = n- 1; i >= 0; i--) {\r\n\t\t\tarr1[co++] = arr[i];\r\n\t\t}\r\n\t\tString[] str = new String[n];\r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tstr[i] = Integer.toBinaryString(arr1[i]);\r\n\t\t}\r\n\t\tint[] countArr = new int[n];\r\n\t\tint[] countArr1 = new int[n];\r\n\t\tTreeSet<Integer> set = new TreeSet<Integer>(); \r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tcountArr[i] = 0;\r\n\t\t\tfor(int j = 0; j < str[i].length(); j++) {\r\n\t\t\t\tif(String.valueOf(str[i].charAt(j)).equals(\"1\")) {\r\n\t\t\t\t\tcountArr[i]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tset.add(countArr[i]);\r\n\t\t}\r\n\t\tint[] arrCpy = new int[set.size()];\r\n\t\tint ct = set.size() - 1;\r\n\t\tIterator<Integer> it = set.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tarrCpy[ct--] = it.next();\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrCpy.length; i++) {\r\n\t\t\tfor(int j = 0; j < n; j++) {\r\n\t\t\t\tif(arrCpy[i] == countArr[j]) {\r\n\t\t\t\t\tSystem.out.println(arr1[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int[] findFrequentTreeSum(TreeNode root) {\n\t\tif (root == null) {\n\t\t\treturn new int[0];\n\t\t}\n\t\tmap = new HashMap<>();\n\t\tmaxFreqCount = 0;\n\t\tdfs(root);\n\t\tList<Integer> list = new ArrayList<>();\n\t\tfor (Map.Entry<Integer, Integer> entry : map.entrySet()) {\n\t\t\tif (entry.getValue() == maxFreqCount) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t}\n\t\t}\n\t\tint[] res = new int[list.size()];\n\t\tint i = 0;\n\t\tfor (int sum : list) {\n\t\t\tres[i++] = sum;\n\t\t}\n\t\treturn res;\n\t}", "public int numTrees () { throw new RuntimeException(); }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "int size() \n { \n return size(root); \n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public static int sizeRecursive(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 1 + sizeRecursive(root.left) + sizeRecursive(root.right);\r\n\t}", "private static BigInteger singleTree(int n) {\n \tif (T[n] != null) {\n \t\treturn T[n];\n \t}\n \tBigInteger ret = BigInteger.ZERO;\n \tfor (int i = 1; i < n; i++) {\n \t\tret = ret.add(binomial(n, i).multiply(BigInteger.valueOf(n - i).pow(n - i))\n \t\t\t\t .multiply(BigInteger.valueOf(i).pow(i)));\n \t}\n \treturn T[n] = ret.divide(BigInteger.valueOf(n));\n }", "int sumRootToLeafNumbers();", "public int size() {\n if (root == null) return 0;\n if (root.left == null && root.right == null) return 1;\n else {\n int treeSize = 0;\n treeSize = size(root, treeSize);\n return treeSize;\n }\n }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "public int goodNodes (TreeNode root) {\n \n return goodNodes(root, -10000);\n \n }", "private void counting(MyBinNode<Type> r){\n if(r != null){\n this.nodes++;\n this.counting(r.left);\n this.counting(r.right);\n }\n }", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public void findNNodes(BSTNode<T> root)\n\t{\n\t\tArrayList<T> valueArray = new ArrayList<T>();\n\t\tBSTNode<T> obj = new BSTNode<T>();\n\t\tobj.inOrder(root,valueArray);\n\t\tSystem.out.print(valueArray);\n\t}", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "int height(TreeNode root) \n { \n if (root == null) \n return 0; \n else\n { \n /* compute height of each subtree */\n int lheight = height(root.left); \n int rheight = height(root.right); \n \n /* use the larger one */\n if (lheight > rheight) \n return(lheight+1); \n else return(rheight+1); \n } \n }", "public static void main(String[] args) {\n TreeNode<String> node1 = new TreeNode<>(\"1\");\r\n TreeNode<String> node2 = new TreeNode<>(\"2\");\r\n TreeNode<String> node3 = new TreeNode<>(\"3\");\r\n TreeNode<String> node4 = new TreeNode<>(\"4\");\r\n TreeNode<String> node5 = new TreeNode<>(\"5\");\r\n node1.setLeftNode(node2);\r\n node1.setRightNode(node3);\r\n node2.setLeftNode(node4);\r\n node2.setRightNode(node5);\r\n System.out.println(\"\\nLeaf count:\" + treeLeafs(node1)); // 4 5 3, count = 3\r\n }", "public int numberOfFullNodes() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfFullNodes(root);\r\n\t}", "public int solution(Tree T) {\n if(T==null)\n return 0;\n int minValue=T.x;\n \n dfs(T,minValue);\n return count;\n }", "int height(Node root)\n {\n if (root == null)\n return 0;\n else\n {\n /* compute height of each subtree */\n int lheight = height(root.left);\n int rheight = height(root.right);\n\n /* use the larger one */\n if (lheight > rheight)\n return(lheight+1);\n else return(rheight+1);\n }\n }", "public static void main(String[] args) {\n TreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n TreeNode node8 = new TreeNode(8);\n\n node1.left = node2;\n node2.left = node3;\n node3.left = node4;\n node4.left = node5;\n\n node2.right = node6;\n node6.left = node7;\n node7.right = node8;\n\n// int count = leaveCount(node1.left, 0);\n int count = leaveCountFast(node1.left);\n\n traverse(node1, 0, 5, -1000000);\n Main.print(count);\n }", "int height(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\telse {\n\t\t\t //compute height of each subtree \n\t\t\tint lheight = height(root.left);\n\t\t\tint rheight = height(root.right);\n\n\t\t\t// use the larger one \n\t\t\tif (lheight > rheight)\n\t\t\t\treturn (lheight + 1);\n\t\t\telse\n\t\t\t\treturn (rheight + 1);\n\t\t}\n\t}", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "public int getCount(Node root, int key){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(root.id == key){\n\t\t\treturn root.count;\n\t\t}\n\t\t\n\t\tif(key < root.id){\n\t\t\treturn getCount(root.left,key);\n\t\t}else{\n\t\t\treturn getCount(root.right,key);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tres = 0;\n\t\tNode root = new Node(1);\n\t\troot.left = new Node(2);\n\t\troot.left.left = new Node(1);\n\t\troot.left.right = new Node(2);\n\t\troot.right = new Node(-1);\n\t\troot.right.left = new Node(3);\n\t\troot.right.left.left = new Node(2);\n\t\troot.right.left.right = new Node(5);\n\n\t\tint k = 3;\n\t\tSystem.out.printf(\"No of paths with sum \" + \"equals to %d are: %d\\n\", k, printCount(root, k));\n\n\t}", "private int size(Node x) {\n if (x == null) return 0;\n return 1 + size(x.left) + size(x.right);\n }", "public int count(BinarySearchTreeNode<T> root, T start, T end) {\n if (root == null) {\n return 0;\n }\n if (root.getData().compareTo(start) >= 0 && root.getData().compareTo(end) <= 0) {\n return count(root.getLeft(), start, end) + count(root.getRight(), start, end) + 1;\n }\n if (root.getData().compareTo(start) < 0) {\n return count(root.getRight(), start, end);\n }\n return count(root.getLeft(), start, end);\n }", "public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }", "public static void main(String[] args) {\n\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(7);\n root.left.left = new TreeNode(5);\n root.left.left.left = new TreeNode(3);\n\n root.right = new TreeNode(15);\n root.right.right = new TreeNode(18);\n\n // this should print out 32\n System.out.println(rangeSumBST(root, 7, 15));\n\n\n }", "public static void main(String[] args) {\n System.out.println(\"..............Testing Balanced Tree..............\");\n {\n BST bst = BST.createBST();\n printPreety(bst.root);\n\n System.out.println(\"Testing Balanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(bst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing Balanced Tree Better way: \" + isBalanced_Better(bst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing Balanced Tree Using Memoization: \" + isBalanced_Memoization(bst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(bst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing UnBalanced Tree..............\");\n {\n BST unBalancedBst = BST.createUnBalancedBST();\n printPreety(unBalancedBst.root);\n\n System.out.println(\"Testing UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing UnBalanced Tree Better way: \" + isBalanced_Better(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(unBalancedBst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(unBalancedBst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing Another UnBalanced Tree..............\");\n {\n BST anotherUnbalanced = BST.createAnotherUnBalancedBST();\n printPreety(anotherUnbalanced.root);\n\n System.out.println(\"Testing another UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing another UnBalanced Tree Better way: \" + isBalanced_Better(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing another UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(anotherUnbalanced.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n }\n\n }", "public int my_leaf_count();", "public int size() \n\t {\n\t\t return size(root);\n\t }", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "public Integer count() {\n return this.bst.count();\n }", "private static void task1(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(i);\n//\t\t\t\tSystem.out.println(i);\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "public int goodNodes(TreeNode root) {\n helper(root, Integer.MIN_VALUE);\n return res;\n }", "private static int nodeDepthsIterativeQueue(Node root) {\n\t\tQueue<Level>q = new LinkedList<>();\n\t\tint result = 0;\n\t\tq.add(new Level(root, 0));\n\t\twhile(!q.isEmpty()) {\n\t\t\tLevel curr = q.poll();\n\t\t\tif(curr.root == null)\n\t\t\t\tcontinue;\n\t\t\tresult += curr.depth;\n\t\t\tSystem.out.println(curr.toString());\n\t\t\tq.add(new Level(curr.root.left, curr.depth + 1));\n\t\t\tq.add(new Level(curr.root.right, curr.depth + 1));\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // int m = sc.nextInt();\n int n = sc.nextInt();\n Tree[] tree = new Tree[n];\n for (int i = 0; i < n; i++) {\n tree[i] = new Tree(i + 1, sc.nextInt());\n }\n // System.out.println(Arrays.toString(tree));\n\n // Arrays.sort(tree,(a,b)->b.num-a.num);\n StringBuilder sb = new StringBuilder();\n int first = 0;\n\n boolean shibai = false;\n\n while (first < n) {\n while (first < n && tree[first].num == 0) {\n first++;\n }\n int idx = first + 1;\n out:\n while (idx < n) {\n while (idx < n && tree[idx].num == 0) {\n idx++;\n\n }\n while (idx < n && first < n && tree[idx].num > 0 && tree[first].num > 0) {\n\n sb.append(tree[first].type)\n .append(\" \")\n .append(tree[idx].type)\n .append(\" \");\n tree[idx].num--;\n tree[first].num--;\n if (tree[first].num == 0) {\n first++;\n break out;\n }\n }\n }\n// System.out.println(Arrays.toString(tree));\n// System.out.println(idx);\n if (idx > n - 1) {\n if (tree[first].num == 0) break;\n if (tree[first].num == 1) {\n sb.append(tree[first].type);\n break;\n } else {\n System.out.println(\"-\");\n shibai = true;\n break;\n }\n }\n }\n\n// while (true){\n// if(tree[0].num==1){\n// sb.append(tree[0].type);\n// break;\n// }\n// if(tree[1].num==0){\n// System.out.println(\"-\");\n// shibai=true;\n// break;\n// }\n// while (tree[1].num>0){\n// sb.append(tree[0].type).append(\" \").append(tree[1].type).append(\" \");\n// tree[0].num--;\n// tree[1].num--;\n// }\n// //System.out.println(sb.toString());\n// // System.out.println(Arrays.toString(tree));\n// // Arrays.sort(tree,(a,b)->b.num-a.num);\n//\n// }\n if (!shibai) {\n System.out.println(sb.toString());\n }\n\n\n }", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "private int countLeaves(BinNode node){\n if (node == null){\n return 0;\n } else {\n if (node.right == null && node.left == null){\n return 1;\n } else{\n return countLeaves(node.right) + countLeaves(node.left);\n }\n }\n\n }", "protected void updateSubtreeSize(BSTNode n) {\n\t\tn.size = 1;\n\n\t\tif (n.left != null)\n\t\t\tn.size += n.left.size;\n\n\t\tif (n.right != null)\n\t\t\tn.size += n.right.size;\n\t}", "public UnionFind(int n) {\n\troot = new int[n];\n\tfor (int i = 0; i < n; i++) \n\t root[i] = i;\n\t\n\tsize = new int[n];\n\tfor (int i = 0; i < n; i++) \n\t size[i] = 1;\n }", "public int size(){\n return size(root);\n }", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int solution(Tree T) {\n if(T == null)\n {\n return 0;\n\n }\n //Check if the tree has no children\n if(T.l == null && T.r == null)\n {\n return 0;\n }\n\n\n AtomicInteger leftSide = new AtomicInteger(0);\n AtomicInteger rightSide = new AtomicInteger(0);\n\n if(T.l != null) traverseTree(T.l, 0, true, leftSide);\n if(T.r != null) traverseTree(T.r, 0, false, rightSide);\n\n\n if(leftSide.intValue() > rightSide.intValue())\n {\n return leftSide.intValue();\n }\n else{\n return rightSide.intValue();\n }\n\n }", "public static void main(String[] args) throws QueueEmptyException {\n TreeNode<Integer>root=TreeUse.takeInput();\n System.out.println(count(root));\n\t}", "public static void main(String args[]){\n SimpleBST<Integer> t = new SimpleBST<Integer>();\n\n //build the tree / set the size manually\n //only for testing purpose\n Node<Integer> node = new Node<>(112);\n Node<Integer> node2 = new Node<>(330);\n node2 = new Node<>(440,node2,null);\n node = new Node<>(310,node,node2);\n t.root = node;\n t.size = 4;\n\n // Current tree:\n //\t\t\t 310\n // / \\\n // 112 440\n // /\n // 330\n\n\n //checking basic features\n if (t.root.data == 310 && t.contains(112) && !t.contains(211) && t.height() == 2){\n System.out.println(\"Yay 1\");\n }\n\n //checking more features\n if (t.numLeaves() == 2 && SimpleBST.findMax(t.root)==440\n && SimpleBST.findPredecessor(t.root) == 112){\n System.out.println(\"Yay 2\");\n }\n\n //toString and toArray\n if (t.toString().equals(\"112 310 330 440 \") && t.toArray().length==t.size()\n && t.toArray()[0].equals(310) && t.toArray()[1].equals(112)\n && t.toArray()[2].equals(440) && t.toArray()[3].equals(330) ){\n System.out.println(\"Yay 3\");\n //System.out.println(t.toString());\n }\n\n // start w/ an empty tree and insert to build the same tree as above\n t = new SimpleBST<Integer>();\n if (t.insert(310) && !t.insert(null) && t.size()==1 && t.height()==0\n && t.insert(112) && t.insert(440) && t.insert(330) && !t.insert(330)\n ){\n System.out.println(\"Yay 4\");\n }\n\n if (t.size()==4 && t.height()==2 && t.root.data == 310 &&\n t.root.left.data == 112 && t.root.right.data==440\n && t.root.right.left.data == 330){\n System.out.println(\"Yay 5\");\n }\n\n // more insertion\n t.insert(465);\n t.insert(321);\n t.insert(211);\n\n //\t\t\t 310\n // / \\\n // 112 440\n // \\ / \\\n // 211 330 465\n // /\n // 321\n\n\n\n //remove leaf (211), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 330 465\n // /\n // 321\n\n if (t.remove(211) && !t.contains(211) && t.size()==6 && t.height() == 3\n && SimpleBST.findMax(t.root.left) == 112){\n System.out.println(\"Yay 6\");\n }\n\n //remove node w/ single child (330), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 321 465\n\n if (t.remove(330) && !t.contains(330) && t.size()==5 && t.height() == 2\n && t.root.right.left.data == 321){\n System.out.println(\"Yay 7\");\n }\n\n //remove node w/ two children (440), after removal:\n //\t\t\t 310\n // / \\\n // 112 321\n // \\\n // 465\n\n if ((t.root!=null) && SimpleBST.findPredecessor(t.root.right) == 321 && t.remove(440) && !t.contains(440)\n && t.size()==4 && t.height() == 2 && t.root.right.data == 321){\n System.out.println(\"Yay 8\");\n }\n\n }", "static int findLargestSubtreeSum(Node root) {\n\t\t// If tree does not exist,\n\t\t// then answer is 0.\n\t\tif (root == null)\n\t\t\treturn 0;\n\n\t\t// Variable to store\n\t\t// maximum subtree sum.\n\t\tINT ans = new INT(-9999999, root);\n\n\t\t// Call to recursive function\n\t\t// to find maximum subtree sum.\n\t\tfindLargestSubtreeSumUtil(root, ans);\n\n\t\treturn ans.n.key;\n\t}", "int treeSize() {\n return\n memSize()\n + initializers.listSize()\n + updaters.listSize()\n + (optionalConditionExpression == null ? 0 : getExpression().treeSize())\n + (body == null ? 0 : getBody().treeSize()); }", "int height(Node root) {\n\t\tif (root == null)\n\t\t\treturn 0;\n\t\telse {\n\t\t\t/* compute height of each subtree */\n\t\t\tint lheight = height(root.left);\n\n\t\t\tint rheight = height(root.right);\n\n\t\t\t/* use the larger one */\n\t\t\tif (lheight > rheight) {\n\t\t\t\t//System.out.println(\"lheight : \" + lheight + \" rheight : \" + rheight + \" root data : \" + root.data);\n\t\t\t\treturn (lheight + 1);\n\t\t\t} else {\n\t\t\t\t//System.out.println(\"lheight : \" + lheight + \" rheight : \" + rheight + \" root data : \" + root.data);\n\t\t\t\treturn (rheight + 1);\n\t\t\t}\n\t\t}\n\t}", "int height(Node root) { return (root != null) ? Math.max(height(root.left), height(root.right)) + 1 : 0;}", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }" ]
[ "0.7206326", "0.68413526", "0.67393523", "0.6738624", "0.67245436", "0.67118245", "0.6687408", "0.6683837", "0.6642449", "0.6641784", "0.66084045", "0.6551716", "0.6539951", "0.65381515", "0.6495757", "0.6494071", "0.6464921", "0.64583033", "0.64283174", "0.6420229", "0.6419508", "0.6414257", "0.6365041", "0.63563496", "0.6315816", "0.6310565", "0.6295308", "0.62905097", "0.6270297", "0.62698364", "0.6258648", "0.62419975", "0.6238668", "0.61887354", "0.61779094", "0.6160555", "0.6143489", "0.6119492", "0.609556", "0.60444736", "0.60244036", "0.59482616", "0.5945299", "0.5943428", "0.5838268", "0.58257836", "0.58112544", "0.58054423", "0.577603", "0.5770161", "0.5762489", "0.5762489", "0.57554185", "0.5742997", "0.5739053", "0.57297564", "0.57136285", "0.5685129", "0.5673683", "0.56707305", "0.5660869", "0.5657618", "0.5649966", "0.563977", "0.56365556", "0.5628051", "0.55902046", "0.55837774", "0.55813", "0.55768216", "0.55728674", "0.55592185", "0.5558692", "0.555275", "0.55330354", "0.5526862", "0.55265903", "0.5519029", "0.55164707", "0.55076945", "0.55056065", "0.5502452", "0.54965115", "0.5488879", "0.5486883", "0.5475509", "0.5474186", "0.5468615", "0.5460707", "0.545597", "0.5446593", "0.544247", "0.5437864", "0.5426047", "0.5419733", "0.5409945", "0.5400731", "0.5393818", "0.5391684", "0.53909135" ]
0.6986128
1
/ 23. Path Sum II Given a binary tree and a sum, find all roottoleaf paths where each path's sum equals the given sum.
private static List<List<Integer>> pathSum(TreeNode root, int sum) { List<List<Integer>> result = new ArrayList<>(); if (root == null) { return result; } List<Integer> path = new ArrayList<>(); path.add(root.value); dfs(root, sum - root.value, result, path); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int pathSumFrom(TreeNode node, int sum){\n if(node == null){\n return 0;\n }\n if(node.val == sum){\n // if the val in node is equal to sum we have found a path (node only)\n // and we check if we can add more nodes to the left and the right\n return 1 + pathSumFrom(node.left, sum-node.val) + pathSumFrom(node.right, sum-node.val);\n }\n else{\n return pathSumFrom(node.left, sum-node.val) + pathSumFrom(node.right, sum-node.val);\n }\n }", "private boolean pathSum(TreeNode root, int i, int sum) {\n\t\tif(root==null)\n\t\t return false;\n\t\tif(root.left==null&&root.right==null)\n\t\t\treturn sum == (root.val + i);\n\t\treturn pathSum(root.left,root.val+i,sum)||pathSum(root.right,root.val+i,sum);\n\t}", "public boolean hasPathSum(TreeNode root, int sum) {\n if (root == null) {\n return false;\n }\n if (root.left == null && root.right == null) {\n return sum == root.val;\n }\n return hasPathSum(root.left, sum - root.val) || hasPathSum(root.right, sum - root.val);\n\n// 作者:LeetCode-Solution\n// 链接:https://leetcode-cn.com/problems/path-sum/solution/lu-jing-zong-he-by-leetcode-solution/\n// 来源:力扣(LeetCode)\n// 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。\n }", "public List <List <Integer>> pathSum (TreeNode root, int sum) {\n List <List <Integer>> result = new ArrayList <> ();\n pathSum (root, sum, new ArrayList <Integer> (), result);\n return result;\n }", "public static List<List<Integer>> findPathsOther(TreeNode root, int sum) {\n List<List<Integer>> allPaths = new ArrayList<>();\n List<Integer> onePath = new ArrayList<>();\n\n recursiveHelper(root, sum, onePath, allPaths);\n return allPaths;\n }", "public List<List<Integer>> pathSum(TreeNode root, int sum) {\n if(root==null)\n return res;\n dfs(root, sum, new ArrayList<Integer>());\n return res;\n }", "public boolean hasPathSum(TreeNode root, int sum) {\n if (null == root) {\n return false;\n }\n if (root.left == null && null == root.right) {\n return root.val == sum;\n }\n\n return hasPathSum(root.left, sum - root.val) || hasPathSum(root.right, sum - root.val);\n\n }", "public boolean hasPathSum (TreeNode root, int sum) {\n if (root == null)\n return false;\n if (root.val == sum && root.left == null && root.right == null)\n return true;\n else {\n return hasPathSum (root.left, sum - root.val) || hasPathSum (root.right, sum - root.val);\n }\n }", "public boolean hasPathSum(TreeNode root, int sum) {\n if(root == null){\n return false;\n }\n \n //if value of root is equal to the sum, if it is and no child, return true\n if(root.val == sum){\n if(root.left == null && root.right == null){\n return true;\n }\n }\n \n //all is not equal, then start to recursive to judge the left or right tree equal to sum-val\n return hasPathSum(root.left, sum-root.val) || hasPathSum(root.right, sum-root.val);\n }", "public static List<List<Integer>> findPaths(TreeNode root, int sum) {\n List<List<Integer>> allPaths = new ArrayList<>();\n List<TreeNode> onePath = new ArrayList<>();\n\n backtrackHelper(root, sum, onePath, allPaths);\n return allPaths;\n }", "public static int countPathsWithSumWithHashMap(BinaryTreeNode<Integer> root, int sum) {\n HashMap<Integer, Integer> runningSumsCount = new HashMap<>();\n return countPathsWithSumWithHashMapHelper(root, sum, 0, runningSumsCount);\n }", "public List<List<BinaryTreeNode>> getAllPathsWithSum(BinaryTreeNode root, int sum) {\n if (root == null) {\n return new ArrayList<List<BinaryTreeNode>>();\n }\n\n List<List<BinaryTreeNode>> results = getAllPathsWithSumForGivenNode(root, sum, 0, new ArrayList<BinaryTreeNode>());\n\n results.addAll(getAllPathsWithSum(root.getLeft(), sum));\n results.addAll(getAllPathsWithSum(root.getRight(), sum));\n\n return results;\n }", "public ArrayList<ArrayList<Integer>> pathSum(TreeNode n, int sum) {\t\t\t\r\n\t\t\r\n\t\t\tArrayList<ArrayList<Integer>> al = new ArrayList<ArrayList<Integer>>();\r\n\t\t\tif (n == null)\r\n\t\t\t\treturn al;\r\n\t\t\tpSum(n, sum, al);\r\n\t\t\t\r\n\t\t\treturn al;\r\n\t \r\n\t }", "static void k_paths(Node root, int k, HashMap<Integer, Integer> p, int sum) {\n\t\t// If root value and previous sum equal\n\t\t// to k then increase the count\n\t\tif (root != null) {\n\t\t\tif (root.data + sum == k) {\n\t\t\t\tres++;\n\t\t\t}\n\t\t\t// Add those values also which differs\n\t\t\t// by the current sum and root data by k\n\t\t\tres += p.get(sum + root.data - k) == null ? 0 : p.get(sum + root.data - k);\n\n\t\t\t// Insert the sum + root value in the map\n\t\t\tif (!p.containsKey(sum + root.data)) {\n\t\t\t\tp.put(sum + root.data, 0);\n\t\t\t}\n\t\t\tp.put(sum + root.data, p.get(sum + root.data) + 1);\n\n\t\t\t// Move to left and right trees\n\t\t\tk_paths(root.left, k, p, sum + root.data);\n\t\t\tk_paths(root.right, k, p, sum + root.data);\n\n\t\t\t// Remove the sum + root.data value\n\t\t\t// from the map if they are n not\n\t\t\t// required further or they do no\n\t\t\t// sum up to k in any way\n\t\t\tp.put(sum + root.data, p.get(sum + root.data) - 1);\n\t\t}\n\t}", "public static ArrayList<ArrayList<Integer>> pathSum_033(TreeNode root, int sum) {\n ArrayList<ArrayList<Integer>> resultList = new ArrayList<>();\n getPathSumResult(resultList, root, sum, new ArrayList<>());\n return resultList;\n }", "public static boolean hasPathSum_032(TreeNode root, int sum) {\n if (root == null) {\n return false;\n }\n\n if (sum == root.val && root.left == null && root.right == null) {\n return true;\n }\n\n return hasPathSum_032(root.left, sum - root.val) ||\n hasPathSum_032(root.right, sum - root.val);\n }", "public static int dfs(TreeNode root, int sum){\n\t\tif(root.left == null && root.right == null){\r\n\t\t\treturn 10*sum + root.val;\r\n\t\t\t//result.add(sum);\r\n\t\t}\r\n\t\tif(root.left != null && root.right == null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val);\r\n\t\t}\r\n\t\tif(root.right != null && root.left == null){\r\n\t\t\treturn dfs(root.right, 10*sum+root.val);\r\n\t\t}\r\n\t\t//if(root.left != null && root.right != null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val)+dfs(root.right, 10*sum+root.val);\r\n\t\t//}\r\n\t\t//for(int i = 0; i < result.size(); i++){\r\n\t\t\t//System.out.print( result.get(i) + \"->\");\r\n\t\t//}\r\n\t}", "private int dfs(TreeNode root, int sum) {\n if (root == null) return sum;\n int rsum = dfs(root.right, sum);\n root.val += rsum;\n return dfs(root.left, root.val);\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(5);\n root.right = new TreeNode(12);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(7);\n List<List<Integer>> result = pathSum(root, 22);\n for(List<Integer> i: result) {\n System.out.println(i);\n }\n }", "public boolean hasPathSum(TreeNode n, int sum) {\r\n\t\t\tif (n == null)\r\n\t\t\t\treturn false;\r\n\t\t\telse\r\n\t\t\t\treturn hasSum(n, sum);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t}", "private int dfs_my(TreeNode root, int sum) {\n if (root == null) return 0;\n int rsum = dfs(root.right, sum);\n int oval = root.val;\n root.val += sum + rsum;\n int lsum = dfs(root.left, root.val);\n return oval + lsum + rsum;\n }", "private Integer largestPath(BinaryNode node, Integer sum) {\n\n if (node == null) {\n return sum;\n } else {\n sum += (Integer)node.element;\n Integer sumR = largestPath(node.right, sum);\n Integer sumL = largestPath(node.left, sum);\n\n if (sumR > sumL) return sumR;\n else return sumL;\n }\n }", "private void printPathSumHelper(BinaryTreeNode<Integer> root, int curSum, String path, int k) {\n\n if (root == null) {\n return;\n }\n if (root.left == null && root.right == null) {\n curSum += root.data;\n if(curSum==k){\n System.out.println(path+root.data+\" \");\n }\n return;\n }\n printPathSumHelper(root.left,(curSum+root.data),(path+root.data+\" \"),k);\n printPathSumHelper(root.right,(curSum+root.data),(path+root.data+\" \"),k);\n }", "private static void findSum(Node node, int sum, int[] buffer, int level) {\n if (node == null)\n return;\n\n buffer[level] = node.value;\n int t = 0;\n for (int i = level; i >= 0; i--) {\n t += buffer[i];\n\n if (t == sum)\n print(buffer, i, level);\n }\n\n findSum(node.left, sum, buffer, level + 1);\n findSum(node.right, sum, buffer, level + 1);\n }", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "public static void pathToLeafFromRoot(Node node, String path, int sum, int lo, int hi){\n if(node == null){\n return;\n }\n if(node.left != null && node.right != null){\n pathToLeafFromRoot(node.left,path+node.data+\" \",sum+node.data,lo,hi);\n pathToLeafFromRoot(node.right,path+node.data+\" \",sum+node.data,lo,hi);\n }\n else if (node.left != null){\n pathToLeafFromRoot(node.left,path+node.data+\" \",sum+node.data,lo,hi);\n }\n else if (node.right != null){\n pathToLeafFromRoot(node.right,path+node.data+\" \",sum+node.data,lo,hi);\n }\n else{\n if((sum + node.data) <= hi && (sum + node.data) >= lo){\n System.out.println(path + node.data+\" \");\n }\n }\n }", "int sumRootToLeafNumbers();", "private static void findLevelSums(Node node, Map<Integer, Integer> sumAtEachLevelMap, int treeLevel){\n if(node == null){\n return;\n }\n //get the sum at current \"treeLevel\"\n Integer currentLevelSum = sumAtEachLevelMap.get(treeLevel);\n //if the current level was not found then we put the current value of the node in it\n //if it was was found then we add the current node value to the total sum currently present\n sumAtEachLevelMap.put(treeLevel, (currentLevelSum == null) ? node.data : currentLevelSum+node.data);\n \n //goes through all nodes in the tree\n findLevelSums(node.left, sumAtEachLevelMap, treeLevel+1);\n findLevelSums(node.right, sumAtEachLevelMap, treeLevel+1);\n \n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(-2);\n root.add(1);\n root.add(-3);\n\n List<List<Integer>> list = pathSum(root, -5);\n System.out.println(list.size());\n }", "static boolean isSumTree(Node root) {\n\t\t\n\t\tif ( root == null || isLeaf(root)) {\n\t\t\treturn true;\n\t\t}\n\t\tint ls;\n\t\tint rs;\n\t\t\n\t\tif ( isSumTree(root.left) && isSumTree(root.right)) {\n\t\t\t\n\t\t\tif ( root.left == null)\n\t\t\t\tls = 0;\n\t\t\telse if ( isLeaf(root.left)) {\n\t\t\t\tls = root.left.data;\n\t\t\t} else {\n\t\t\t\tls = 2 * root.left.data;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif ( root.right == null)\n\t\t\t\trs = 0;\n\t\t\telse if ( isLeaf(root.right)) {\n\t\t\t\trs = root.right.data;\n\t\t\t} else {\n\t\t\t\trs = 2 * root.right.data;\n\t\t\t}\n\t\t\t\n\t\t\treturn root.data == ( ls + rs);\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public void noOfPaths(TreeNode<Integer> treeNode, List<List<Integer>> resultList, int val) {\n if (treeNode == null)\n return;\n queue.add(treeNode.getData());\n noOfPaths(treeNode.getLeftNode(), resultList, val);\n noOfPaths(treeNode.getRightNode(), resultList, val);\n\n int sum = 0;\n for (int index = queue.size()-1; index >= 0; index--) {\n sum += queue.get(index);\n if (val == sum) {\n List<Integer> oneSet = new ArrayList<>();\n for (int tempIndex = index; tempIndex < queue.size(); tempIndex++) {\n oneSet.add(queue.get(tempIndex));\n }\n resultList.add(oneSet);\n }\n }\n queue.remove(treeNode.getData());\n }", "public int sumNumbers(TreeNode root) {\n int solution = 0;\n\n String currentPath = \"\";\n\n // execute a dfs to find the leaf nodes\n findLeafNodes(root, currentPath);\n\n // loop through all the paths, convert to int, add to solution\n for(String curr:rootToLeafs){\n // save the current string as an integer\n int currentVal = Integer.parseInt(curr);\n\n // add the current value to the solution\n solution+=currentVal;\n }\n\n // return the solution\n return solution;\n }", "public static int maxPathSum2(BTreeNode root) {\n\t\tMyResult result = new MyResult();\n\t\tauxPathSum2(root, 0, result);\n\t\treturn result.maxsum;\n\t}", "public int sumNumbers(TreeNode root) {\n // track the sum that we want to add\n int solution = 0;\n\n // execute a dfs to find the leaf nodes\n solution = findLeafNodes(root, solution);\n\n // return the solution\n return solution;\n }", "public int maxPathSum(TreeNode root) {\n helper(root); \n //run the function but don't use the final return value\n //only save the \"result\" when we run the function\n return result;\n }", "private void pruneRecur(BinaryNode node, Integer sum, Integer k) {\n\n if (node == null) return;\n else {\n sum += (Integer)node.element;\n if (largestPath(node.left, sum) >= k) {\n pruneRecur(node.left, sum, k);\n } else {\n node.left = null;\n }\n if (largestPath(node.right, sum) >= k) {\n pruneRecur(node.right, sum, k);\n } else {\n node.right = null;\n }\n }\n }", "public int maxPathSum(TreeNode root) {\n int maxSum[] = {Integer.MIN_VALUE};\n maxPathSum(root, maxSum);\n return maxSum[0] == Integer.MIN_VALUE ? 0 : maxSum[0];\n }", "public static void main(String[] args) {\n\t\tTreeNode treeNode1 = new TreeNode(1);\n\t\tTreeNode treeNode11 = new TreeNode(2);\n\t\tTreeNode treeNode12 = new TreeNode(4);\n\t\tTreeNode treeNode13 = new TreeNode(8);\n\t\tTreeNode treeNode14 = new TreeNode(6);\n\t\tTreeNode treeNode15 = new TreeNode(4);\n\t\tTreeNode treeNode16 = new TreeNode(4);\n\t\tTreeNode treeNode17 = new TreeNode(4);\n\t\tTreeNode treeNode18 = new TreeNode(4);\n\t\ttreeNode1.left = treeNode11;\n\t\ttreeNode1.right = treeNode12;\n\t\ttreeNode11.left = treeNode13;\n\t\ttreeNode11.right = treeNode14;\n\t\ttreeNode13.left = treeNode15;\n\t\ttreeNode13.right = treeNode16;\n\t\ttreeNode15.left = treeNode17;\n\t\ttreeNode17.right = treeNode18;\n\t\tSystem.out.println(hasPathSum(treeNode1, 8));\n\t}", "private static int findMinimumSumLevelInGivenTree(Node tree){\n Map<Integer, Integer> sumAtEachLevelMap = new HashMap<Integer, Integer>();\n \n //puts all level sums in map\n findLevelSums(tree, sumAtEachLevelMap, 1);\n \n // gets the level with least sum\n return getMinimumSumLevel(sumAtEachLevelMap);\n }", "public int maxPathSum(TreeNode root) {\n\t\t int[] max = new int[]{Integer.MIN_VALUE};\n\t\t helper(root,max);\n\t\t return max[0];\n\t }", "public int maxPathSum(TreeNode root) {\n\t\tint[] maxSum = new int[1];\n\t\tmaxSum[0] = Integer.MIN_VALUE;\n\t\tmaxPathSum(root, maxSum);\n\t\treturn maxSum[0];\n\t}", "public int maxPathSumHelper(TreeNode root) {\n\n if(root == null) {\n return 0;\n }\n\n int leftSum = maxPathSumHelper(root.left);\n int rightSum = maxPathSumHelper(root.right);\n\n // Compare leftSum + rool.val with rightSum + root.val to select which values to send further\n int maxTillNow = Math.max(leftSum + root.val, rightSum + root.val);\n \n // Check if the root value is greater than any of the path\n maxTillNow = Math.max(maxTillNow, root.val);\n \n //if root + left + root.val is greater than any of the max till now\n int tempMax = Math.max(maxTillNow, leftSum + rightSum + root.val);\n\n finalMax = Math.max(tempMax, finalMax);\n\n return maxTillNow;\n }", "public static void main(String[] args) {\n Node root = new Node(10);\n root.right = new Node(-3);\n root.right.right = new Node(11);\n\n Node l1 = root.left = new Node(5);\n l1.right = new Node(2);\n l1.right.right = new Node(1);\n\n l1.left = new Node(3);\n l1.left.right = new Node(-2);\n l1.left.left = new Node(3);\n\n int k = 7;\n List<Node> path = new ArrayList<>();\n findPath(root, 7, path); //O(n^2) in worst, O(nlogn) if tree is balanced.\n\n }", "public int minPathSum(int[][] grid) {\n if (grid==null || grid.length==0)\n return 0;\n int m = grid.length;\n int n = grid[0].length;\n for (int i=0; i<m; i++) {\n for (int j=0; j<n; j++) {\n if (i==0 && j==0)\n continue;\n int up = i > 0 ? grid[i-1][j] : Integer.MAX_VALUE;\n int left = j > 0 ? grid[i][j-1] : Integer.MAX_VALUE;\n grid[i][j] += (left > up ? up : left);\n }\n }\n return grid[m-1][n-1];\n }", "static boolean isSubsetSum(int set[], \n\t\t\t\t\t\t\tint n, int sum)\n\t{\n\t\tboolean dp[][] = new boolean[n + 1][sum + 1];\n\t\tfor(int i = 1; i <= sum; i++)\n\t\t dp[0][i] = false;\n\t\tfor(int i = 0; i <= n; i++)\n\t\t dp[i][0] = true;\n\t\t \n\t\tfor(int i = 1; i <= n; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t //System.out.println(i + \" \" + j);\n\t\t try {\n\t\t if(j >= set[i - 1])\n\t\t dp[i][j] = dp[i - 1][j] || dp[i - 1][j - set[i - 1]];\n\t\t else\n\t\t dp[i][j] = dp[i - 1][j];\n\t\t }\n\t\t catch(ArrayIndexOutOfBoundsException exception) {\n\t\t System.out.println(\"here\");\n\t\t System.out.println(i + \" \" + j);\n\t\t }\n\t\t }\n\t\t}\n\t\treturn dp[n][sum];\n\t}", "public static boolean tripletSum(int[] arr, int sum) {\n //first we will sort the array O(n*log(n)).\n\n Arrays.sort(arr);\n\n int currentSum;\n int left = 0;\n int right = arr.length - 1;\n\n HashSet<Integer> hashSet = new HashSet<>();\n\n //use the outer loop to fix an index of the array, i, as one of the pairs\n\n for (int i = 0; i < arr.length; i++) {\n\n currentSum = sum -arr[i];\n\n //this is the pair sum algorithm with an updated sum\n\n for (int j = 0; j < arr.length; j++) {\n if (left == i) {\n left++;\n }\n if (right == i) {\n right--;\n }\n if (hashSet.contains(arr[left] + arr[right])) {\n return true;\n } else {\n hashSet.add(currentSum - (arr[left] + arr[right]));\n if (arr[left] + arr[right] > currentSum) {\n right--;\n } else if (arr[left] + arr[right] < currentSum) {\n left++;\n } else {\n return true;\n }\n }\n if (left >= right) {\n break;\n }\n }\n\n left = 0;\n right = arr.length - 1;\n hashSet.clear();\n\n }\n return false;\n\n }", "public static void main(String args[]) {\n Node root = new Node(10);\n root.left = new Node(-2);\n root.right = new Node(7);\n root.left.left = new Node(8);\n root.left.right = new Node(-4);\n System.out.println(\"Following are the nodes \" +\n \"on maximum sum path\");\n int sum = maxSumPath(root);\n System.out.println();\n System.out.println(\"Sum of nodes is : \" + sum);\n }", "public static void main(String[] args) {\n\t\tTreeNode node1 = new TreeNode(5);\n\t\tTreeNode node2 = new TreeNode(4);\n\t\tTreeNode node3 = new TreeNode(8);\n\t\tTreeNode node4 = new TreeNode(11);\n\t\tTreeNode node5 = new TreeNode(13);\n\t\tTreeNode node6 = new TreeNode(4);\n\t\tTreeNode node7 = new TreeNode(7);\n\t\tTreeNode node8 = new TreeNode(2);\n\t\tTreeNode node9 = new TreeNode(1);\n\t\tTreeNode node10 = new TreeNode(5);\n\t\t\n\t\tnode1.left = node2;\n\t\tnode1.right = node3;\n\t\tnode2.left = node4;\n\t\tnode3.left = node5;\n\t\tnode3.right = node6;\n\t\tnode4.left = node7;\n\t\tnode4.right =node8;\n\t\tnode6.left = node10;\n\t\tnode6.right = node9;\n\t\t\n\t\tTreeNode node11 = new TreeNode(1);\n\t\tSystem.out.println(pathSum(node1,22));\n\n\t}", "public int maxPathSum(TreeNode root) {\n\t\tint[] globalMax = new int[] {Integer.MIN_VALUE};\r\n\t\thelper(root, globalMax);\r\n\t\treturn globalMax[0];\r\n\t}", "public static List<Integer> findMaxPath(TreeNode root) {\n List<Integer> maxSumPath = new ArrayList<>();\n List<Integer> onePath = new ArrayList<>();\n int[] maxSumArray = new int[1];\n maxSumArray[0] = 0;\n\n recursiveHelperMaxSum(root, 0, onePath, maxSumPath, maxSumArray);\n // System.out.println(maxSumPath);\n return maxSumPath;\n }", "static boolean subSetSumProblem(int[] arr,int sum){\n// init\n int n = arr.length;\n boolean[][] dp = new boolean[n+1][sum+1];\n\n for (int j = 0;j<=sum;j++){\n dp[0][j] = false;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = true;\n }\n\n for (int i = 1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] || dp[i-1][j-arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }", "public int minPathSum(int[][] grid) {\n\t\tint m = grid.length;\n\t\tint n = grid[0].length;\n\t\tif (n < m) {\n\t\t\tint[] dp = new int[n];\n\t\t\tdp[n-1] = grid[m-1][n-1];\n\t\t\tfor(int i = n-2; i >= 0; i--) {\n\t\t\t\tdp[i] = grid[m-1][i] + dp[i+1];\n\t\t\t}\n\t\t\tfor(int i = m-2; i >= 0; i--) {\n\t\t\t\tfor(int j = n-1; j >= 0; j--) {\n\t\t\t\t\tif(j == n-1) {\n\t\t\t\t\t\tdp[j] += grid[i][j];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdp[j] = grid[i][j] + Math.min(dp[j], dp[j+1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dp[0];\n\t\t} else {\n\t\t\tint[] dp = new int[m];\n\t\t\tdp[m-1] = grid[m-1][n-1];\n\t\t\tfor(int i = m-2; i >= 0; i--) {\n\t\t\t\tdp[i] = grid[i][n-1] + dp[i+1];\n\t\t\t}\n\t\t\tfor(int i = n-2; i >= 0; i--) {\n\t\t\t\tfor(int j = m-1; j >= 0; j--) {\n\t\t\t\t\tif(j == m-1) {\n\t\t\t\t\t\tdp[j] += grid[j][i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdp[j] = grid[j][i] + Math.min(dp[j], dp[j+1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dp[0];\n\t\t}\n\t}", "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 }", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "public int maxPathSum(TreeNode root) {\n helper(root);\n return max;\n }", "static int subArraySum(int arr[], int sum) {\n int n = arr.length;\n int curr_sum = arr[0], start = 0, i;\n\n // Pick a starting point\n for (i = 1; i <= n; i++) {\n // If curr_sum exceeds the sum, then remove the starting elements\n while (curr_sum > sum && start < i - 1) {\n curr_sum = curr_sum - arr[start];\n start++;\n }\n\n // If curr_sum becomes equal to sum, then return true\n if (curr_sum == sum) {\n int p = i - 1;\n System.out.println(\"Sum found between indexes \" + start\n + \" and \" + p);\n return 1;\n }\n\n // Add this element to curr_sum\n if (i < n)\n curr_sum = curr_sum + arr[i];\n\n }\n\n System.out.println(\"No subarray found\");\n return 0;\n }", "public static void main(String[] args) {\n\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(7);\n root.left.left = new TreeNode(5);\n root.left.left.left = new TreeNode(3);\n\n root.right = new TreeNode(15);\n root.right.right = new TreeNode(18);\n\n // this should print out 32\n System.out.println(rangeSumBST(root, 7, 15));\n\n\n }", "public static void findSubarrays(int[] arr, int sum)\n {\n for (int i = 0; i < arr.length; i++)\n {\n int sum_so_far = 0;\n \n // consider all sub-arrays starting from i and ending at j\n for (int j = i; j < arr.length; j++)\n {\n // sum of elements so far\n sum_so_far += arr[j];\n \n // if sum so far is equal to the given sum\n if (sum_so_far == sum) {\n print(arr, i, j);\n }\n }\n }\n }", "static boolean isSubsetSum(int set[], int n, int sum)\n\t {\n\t // The value of subset[i][j] will be true if there \n\t // is a subset of set[0..j-1] with sum equal to i\n\t boolean subset[][] = new boolean[n+1][sum+1];\n\t \n\t \n\t for(int i=1;i<=sum;i++)\n\t \tsubset[0][i]=false;\n\t \n\t for(int i=0;i<=n;i++)\n\t \tsubset[i][0]=true;\n\t \n\t \n\t\n\t for(int i=1;i<=n;i++) {\n\t \tfor(int j=1;j<=sum;j++) {\n\t \t\t\n\t \t\tsubset[i][j]=subset[i-1][j];\n\t \t\tif(subset[i][j] ==false && j>=set[i-1])\n\t \t\t\tsubset[i][j]=subset[i][j] || subset[i-1][j-set[i-1]];\n\t \t\t\n\t \t}\n\t }\n\t \t\n\t \t\n\t return subset[n][sum];\n\t }", "public int minPathSum(int[][] grid) {\n\t\treturn 0;\r\n }", "public int sumNumbers2(TreeNode root) {\n \n int sum = 0 ;\n int cur = 0 ;\n Stack<Pair<TreeNode, Integer>> stack = new Stack<>() ;\n stack.push(new Pair(root, 0)) ;\n \n while(!stack.empty()){\n \n Pair<TreeNode, Integer> p = stack.pop() ;\n root = p.getKey() ;\n cur = p.getValue() ;\n \n if(root != null){\n \n cur = cur * 10 + root.val ;\n \n if(root.left == null && root.right == null){\n sum += cur ;\n }else{\n stack.push(new Pair(root.left, cur)) ;\n stack.push(new Pair(root.right, cur)) ;\n }\n \n }\n \n \n }\n \n return sum ; \n \n \n }", "int subArraySum(int arr[], int n, int sum) \r\n { \r\n int curr_sum, i, j; \r\n \r\n // Pick a starting point \r\n for (i = 0; i < n; i++) \r\n { \r\n curr_sum = arr[i]; \r\n \r\n // try all subarrays starting with 'i' \r\n for (j = i + 1; j <= n; j++) \r\n { \r\n if (curr_sum == sum) \r\n { \r\n int p = j - 1; \r\n System.out.println(\"Sum found between indexes \" + i \r\n + \" and \" + p); \r\n return 1; \r\n } \r\n if (curr_sum > sum || j == n) \r\n break; \r\n curr_sum = curr_sum + arr[j]; \r\n } \r\n } \r\n \r\n System.out.println(\"No subarray found\"); \r\n return 0; \r\n }", "private static Pair<Integer, Integer> getMaxSumHelper(Node root) {\n\t\t\n\t\tif(root.left_ == null && root.right_ == null) {\n\t\t\treturn new Pair<Integer, Integer>(root.data_, 0);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> lp = null;\n\t\tif(root.left_ != null) {\n\t\t\tlp = getMaxSumHelper(root.left_);\n\t\t}\n\t\t\n\t\tPair<Integer, Integer> rp = null;\n\t\tif(root.right_ != null) {\n\t\t\trp = getMaxSumHelper(root.right_);\n\t\t}\n\t\t\n\t\treturn new Pair<Integer, Integer>(\n\t\t\t\tlp.getValue()+rp.getValue()+root.data_, \t// root inclusiveSum + sum of children exclusiveSum\n\t\t\t\tlp.getKey()+rp.getKey());\t\t\t\t\t// root exclusiveSum -> sum of children inclusiveSum\n\t\t\n\t}", "private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }", "static long journey(int[] path, int k) {\n calculateSumRecursive(path,k,0,0);\n return maxSum;\n }", "private static boolean findEqualSumBottomUp(int[] arr, int n, int sum) {\n boolean subset[][] = \n new boolean[sum+1][n+1]; \n \n // If sum is 0, then answer is true \n for (int i = 0; i <= n; i++) \n subset[0][i] = true; \n \n // If sum is not 0 and set is empty, \n // then answer is false \n for (int i = 1; i <= sum; i++) \n subset[i][0] = false; \n \n // Fill the subset table in botton \n // up manner \n for (int i = 1; i <= sum; i++) \n { \n for (int j = 1; j <= n; j++) \n { \n subset[i][j] = subset[i][j-1]; \n if (i >= arr[j-1]) \n subset[i][j] = subset[i][j] || \n subset[i - arr[j-1]][j-1]; \n } \n } \n \n // uncomment this code to print table \n /*for (int i = 0; i <= sum; i++) \n { \n for (int j = 0; j <= n; j++) \n System.out.print (subset[i][j]+\" \"); \n } */\n \n return subset[sum][n];\n\t}", "static int countOfSubsetsOfSum(int[] arr,int sum){\n int n = arr.length;\n int[][] dp = new int[n + 1][sum + 1];\n\n for (int j = 0;j<=sum; j++){\n dp[0][j] = 0;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }", "public int minPathSum(int[][] grid) {\n\t\treturn getMinPathSum(grid, grid.length - 1, grid[0].length - 1);\n\t}", "public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(-1);\n\t\troot.right = new TreeNode(-2);\n\t\troot.left = new TreeNode(-2);\n\t\tSolution s = new Solution();\n\t\tSystem.out.println(s.hasPathSum(root,-3));\n\t\t\n\t}", "static boolean findPath(BTNode root, int[] path, int k)\r\n{\r\n // base case\r\n if (root == null) return false;\r\n \r\n // Store this node in path vector. The node will be removed if\r\n // not in path from root to k\r\n path[0] = root.key;\r\n \r\n // See if the k is same as root's key\r\n if (root.key == k)\r\n return true;\r\n \r\n // Check if k is found in left or right sub-tree\r\n if ( (root.left != null && findPath(root.left, path, k)) ||\r\n (root.right != null && findPath(root.right, path, k)) )\r\n return true;\r\n \r\n // If not present in subtree rooted with root, remove root from\r\n // path[] and return false\r\n return false;\r\n}", "public int maxPathSum(TreeNode root) {\n int tempMax = maxPathSumHelper(root);\n return finalMax;\n }", "public static void main(String args[]) {\n MaxSumLeaves tree = new MaxSumLeaves();\n tree.root = new Node(-15);\n tree.root.left = new Node(5);\n tree.root.right = new Node(6);\n tree.root.left.left = new Node(-8);\n tree.root.left.right = new Node(1);\n tree.root.left.left.left = new Node(2);\n tree.root.left.left.right = new Node(6);\n tree.root.right.left = new Node(3);\n tree.root.right.right = new Node(9);\n tree.root.right.right.right = new Node(0);\n tree.root.right.right.right.left = new Node(4);\n tree.root.right.right.right.right = new Node(-1);\n tree.root.right.right.right.right.left = new Node(10);\n tree.maxPath(root);\n System.out.println(\"Max pathSum of the given binary tree is \"\n + tree.max);\n }", "public int sumNumbers(TreeNode root) {\n\t if(null == root) return 0;\n\t int bsum = 0;\n\t int tsum = 0;\n\t return sum (root, bsum, tsum);\n\t \n\t }", "public static int minPathSum(int[][] grid) {\n return 0;\n }", "public static int sumWays(int sum, int[] nums) {\n if (sum == 0)\n return 0;\n //find sum for all the numbers from 0- sum\n int[] sumCount = new int[sum + 1];\n for (int i = 0; i < sumCount.length; i++) {\n sumCount[i] = -1;\n }\n // assuming nums in sum are ordered\n // number of ways to sum the smallest number is num is 1.\n sumCount[nums[0]] = 1;\n for (int currSum = nums[0] + 1; currSum <= sum; currSum++) {\n int currSumCnt = 0;\n for (int i = 0; i < nums.length; i++) {\n // number of ways to sum the number nums[i] is sumCount[nums[i]]\n // number of ways to sum the number sum - nums[i] is sumCount[sum- nums[i]]\n int diff = currSum - nums[i];\n if ((diff > 0) && (diff < sum) && (sumCount[diff]) > 0) {\n currSumCnt += sumCount[diff];\n }\n }\n sumCount[currSum] = currSumCnt;\n }\n System.out.println(\"Num of ways: \");\n printArr(sumCount, \"Ways to get %d is %d\");\n return sumCount[sum];\n }", "public static boolean subsetSum(int[] A, int sum) {\n int n = A.length;\n\n // `T[i][j]` stores true if subset with sum `j` can be attained\n // using items up to first `i` items\n boolean[][] T = new boolean[n + 1][sum + 1];\n\n // if the sum is zero\n for (int i = 0; i <= n; i++) {\n T[i][0] = true;\n }\n\n // do for i'th item\n for (int i = 1; i <= n; i++) {\n // consider all sum from 1 to sum\n for (int j = 1; j <= sum; j++) {\n // don't include the i'th element if `j-A[i-1]` is negative\n if (A[i - 1] > j) {\n T[i][j] = T[i - 1][j];\n } else {\n // find the subset with sum `j` by excluding or including\n // the i'th item\n T[i][j] = T[i - 1][j] || T[i - 1][j - A[i - 1]];\n }\n }\n }\n\n // return maximum value\n return T[n][sum];\n }", "int maxPathSumHelper3(TreeNode root, int[] max){\n \tif (root.left == null && root.right == null){\n \t\tmax[0] = Math.max(max[0], root.val);\n \t\treturn root.val;\n \t}\n \tint value = root.val;\n \tint childMax = 0;\n \tif (root.left != null){\n \t\tint left = maxPathSumHelper3(root.left, max);\n \t\tif(left > 0){\n \t\t\tvalue += left;\n \t\t\tchildMax = Math.max(childMax, left);\n \t\t}\n \t}\n \t\n \tif (root.right != null){\n \t\tint right = maxPathSumHelper3(root.right, max);\n \t\tif (right > 0){\n \t\t\tvalue += right;\n \t\t\tchildMax = Math.max(childMax, right);\n \t\t}\n \t}\n \t\n \tmax[0] = Math.max(max[0], value);\n \treturn root.val + Math.max(0, childMax);\n \t \t\n }", "public boolean isSubSetSumProblem(int [] set, int n , int sum){\n\t\tif (sum == 0)\n\t\t\treturn true;\n\t\t\n\t\tif(n == 0 && sum != 0)\n\t\t\treturn false;\n\t\tif(set[n-1] > sum)\n\t\t\treturn isSubSetSumProblem(set, n-1, sum);\n\t\t\n\t\treturn isSubSetSumProblem(set, n-1, sum) || isSubSetSumProblem(set, n-1, sum-set[n-1]);\n\t}", "public static int findSubsequencesThatSumUpTo(int[] arr, int neededSum) {\n int total = 0;\n\n Set<Integer> set = new HashSet<>();\n\n int acc = 0;\n for (int i = 0; i < arr.length; i++) {\n acc += arr[i];\n set.add(acc);\n }\n\n for (Integer x: set) {\n if (x == neededSum) {\n total++;\n }\n\n int required = x + neededSum;\n if (set.contains(required)) {\n total++;\n }\n }\n\n return total;\n }", "public static void subArraySum(int[] input, int sum) {\n System.out.println(\"Evaluating: \");\n for(int i : input) {\n System.out.print(i + \" \");\n }\n System.out.println(\"\\nTarget Sum: \" + sum + \"\\n\");\n \n Map<Integer, Integer> subArrayMap = new HashMap<Integer, Integer>();\n for (int i : input) {\n int diff = sum - i;\n if (subArrayMap.containsKey(diff)) {\n System.out.println(\"Pair of subArray adding upto the sum: [\" + i + \", \" + diff + \"]\");\n return;\n }\n if (diff > 0) {\n subArrayMap.put(i, diff);\n }\n }\n \n }", "static int findLargestSubtreeSum(Node root) {\n\t\t// If tree does not exist,\n\t\t// then answer is 0.\n\t\tif (root == null)\n\t\t\treturn 0;\n\n\t\t// Variable to store\n\t\t// maximum subtree sum.\n\t\tINT ans = new INT(-9999999, root);\n\n\t\t// Call to recursive function\n\t\t// to find maximum subtree sum.\n\t\tfindLargestSubtreeSumUtil(root, ans);\n\n\t\treturn ans.n.key;\n\t}", "static INT findLargestSubtreeSumUtil(Node root, INT ans) {\n\t\t// If current node is null then\n\t\t// return 0 to parent node.\n\t\tif (root == null)\n\t\t\treturn new INT(0, null);\n\n\t\t// Subtree sum rooted\n\t\t// at current node.\n\t\tINT tmp = new INT(0, root);\n\t\tINT left = (INT)findLargestSubtreeSumUtil(root.left, ans);\n\t\tINT right = (INT)findLargestSubtreeSumUtil(root.right, ans);\n\t\ttmp.v = (int)(root.key + left.v + right.v) / maxDepth(root);\n\n\t\t// Update answer if current subtree\n\t\t// sum is greater than answer so far.\n\t\t\n\t\tif (tmp.v > ans.v ) {\n\t\t\tans.v = Math.max(ans.v, tmp.v);\n\t\t\tans.n = tmp.n;\n\t\t}\n\n\t\t// Return current subtree\n\t\t// sum to its parent node.\n\t\treturn new INT(root.key, root);\n\t}", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "int countSubtreesWithSumX(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n // check if above sum is equal to x\n if ((ls + rs + root.data) == x) c++;\n return c;\n }", "public static void main(String[] args) {\n\t\tBinaryTreeMaxPathSum bt = new BinaryTreeMaxPathSum();\n\t\t\n\t\tTreeNode node = bt.new TreeNode(35);\n\t\tnode.right = bt.new TreeNode(50);\n\t\tnode.left = bt.new TreeNode(25);\n\t\tnode.right.left = bt.new TreeNode(45);\n\t\tnode.left.right = bt.new TreeNode(30);\n\t\tnode.left.left = bt.new TreeNode(15);\n\t\tnode.right.right = bt.new TreeNode(65);\n\t\tnode.right.right.right = bt.new TreeNode(-100);\n\t\tnode.left.left.left = bt.new TreeNode(10);\n\t\tnode.right.left.left = bt.new TreeNode(50);\n\t\t/*\n\t\tTreeNode tree;\n\t\ttree = bt.new TreeNode(10);\n tree.left = bt.new TreeNode(2);\n tree.right = bt.new TreeNode(10);\n tree.left.left = bt.new TreeNode(20);\n tree.left.right = bt.new TreeNode(1);\n tree.right.right = bt.new TreeNode(-25);\n tree.right.right.left = bt.new TreeNode(3);\n tree.right.right.right = bt.new TreeNode(4);\n */\n\t\tSystem.out.println(node.data);\n\t\tSystem.out.println(bt.MaxPathSum(node));\n\t}", "boolean bruteForce(int A[], int sum) {\n\n\t\t// Fix the first element as A[i]\n\t\tfor (int i = 0; i < A.length - 2; i++) {\n\n\t\t\t// Fix the second element as A[j]\n\t\t\tfor (int j = i + 1; j < A.length - 1; j++) {\n\n\t\t\t\t// Now look for the third number\n\t\t\t\tfor (int k = j + 1; k < A.length; k++) {\n\t\t\t\t\tif (A[i] + A[j] + A[k] == sum) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}", "private static void findNumbers(int[] candidates, int sum,\n List<List<Integer>> res, List<Integer> r, int i) {\n if (sum < 0) {\n return;\n }\n\n // if we get exact answer\n if (sum == 0) {\n List<Integer> r2 = new ArrayList<>(r);\n if (!res.contains(r2)) {\n res.add(r2);\n }\n return;\n }\n\n // Recur for all remaining elements that have value smaller than sum.\n while (i < candidates.length - 1) {\n i++;\n\n // Till every element in the array starting from i which can contribute to the sum\n r.add(candidates[i]); // add them to list\n\n // recur for next numbers\n findNumbers(candidates, sum - candidates[i], res, r, i);\n\n // remove number from list (backtracking)\n r.remove(r.size() - 1);\n }\n }", "public static void printAllSums(final Node node, int k) {\n if (node == null) return;\n\n List<Integer> list = new ArrayList<Integer>();\n findSum(node, k, list);\n }", "public static void main(String[] args) {\n BinaryTreeNode root=new BinaryTreeNode(20);\n root.left=new BinaryTreeNode(8);\n root.right=new BinaryTreeNode(12);\n root.right.left=new BinaryTreeNode(3);\n root.right.right=new BinaryTreeNode(9);\n System.out.println(ChildrenSumProperty.sol(root));\n }", "int countSubtreesWithSumXUtil(Node root, int x) {\n if (root == null) return 0;\n\n // sum of nodes in the left subtree\n int ls = countSubtreesWithSumXUtil(root.left, x);\n\n // sum of nodes in the right subtree\n int rs = countSubtreesWithSumXUtil(root.right, x);\n\n\n int sum = ls + rs + root.data;\n\n // if tree's nodes sum == x\n if (sum == x) c++;\n return sum;\n }", "public static int searchTriplet(int[] arr, int targetSum) {\n\n Arrays.sort(arr); // need to make fiding number easier n * log(n) with qsort\n // we fix one value\n\n // internal array would have: value, left, right, target\n // when sum value+left+right.\n // if exactly target => return result\n // if > than target sum: move right pointer. Calculate absolute difference.\n // if < than target sum: move left pointers. Calculate absolute difference.\n // if at any point absolute difference becomes larger -> there is no point to continue iteratig\n // (^ how true if that?)\n // at the end of one cycle return absolute difference. If it is zero -> early exist,\n // if not, try again with different fixed number\n\n int smallestDifference = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length - 2; i++) {\n int left = i + 1;\n int right = arr.length - 1;\n\n while (left < right) {\n int diffWithTarget = targetSum - arr[i] - arr[left] - arr[right];\n if (diffWithTarget == 0) {\n return diffWithTarget;\n }\n\n if (Math.abs(diffWithTarget) < Math.abs(smallestDifference)) {\n smallestDifference = diffWithTarget;\n }\n\n if (diffWithTarget > 0) {\n left++;\n } else {\n right--;\n }\n }\n }\n return targetSum - smallestDifference;\n }", "static int countSubtreesWithSumXUtil(Node root, int x)\n {\n int l = 0, r = 0;\n if(root == null) \n \treturn 0;\n l += countSubtreesWithSumXUtil(root.left, x);\n r += countSubtreesWithSumXUtil(root.right, x);\n if(l + r + root.data == x) \n \tcount++;\n if(ptr != root) \n \treturn l + root.data + r;\n return count;\n }", "static int paths_usingRecursion(int[][] matrix) {\n\t\treturn paths(matrix, 0, 0);\n\t}", "private int calc(int x, int n, int i, int sum) {\n int ways = 0;\n\n // Calling power of 'i' raised to 'n'\n int p = (int) Math.pow(i, n);\n while (p + sum < x) {\n // Recursively check all greater values of i\n ways += calc(x, n, i + 1,\n p + sum);\n i++;\n p = (int) Math.pow(i, n);\n }\n\n // If sum of powers is equal to x\n // then increase the value of result.\n if (p + sum == x)\n ways++;\n\n // Return the final result\n return ways;\n }", "public static void main(String[] args) {\n TreeNode root = build(1, build(2, null, build(1)), build(3));\n System.out.println(new SumRootToLeaf().sum(root));\n }", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "public static TreeNode getSumTree2(){\n\t\tTreeNode t1 = new TreeNode(26);\n\t\tTreeNode t2 = new TreeNode(10);\n\t\tTreeNode t3 = new TreeNode(3);\n\t\tTreeNode t4 = new TreeNode(4);\n\t\tTreeNode t5 = new TreeNode(6);\n\t\tTreeNode t7 = new TreeNode(3);\n\t\tt1.left = t2;\n\t\tt1.right = t3;\n\t\tt2.left = t4;\n\t\tt2.right = t5;\n\t\tt3.right = t7;\n\t\treturn t1;\n\t}", "public Map<Integer, Integer> diagonalSum(TreeNode root) {\n Map<Integer, Integer> result = new HashMap<Integer, Integer>();\n\n Queue<DiagonalNode> queue = new LinkedList<DiagonalNode>();\n queue.offer(new DiagonalNode(root, 0));\n\n while (!queue.isEmpty()) {\n DiagonalNode dn = queue.poll();\n TreeNode node = dn.node;\n while (node != null) {\n int sum = result.containsKey(dn.level) ? result.get(dn.level) : 0;\n result.put(dn.level, sum + node.val);\n\n if (node.left != null) {\n queue.offer(new DiagonalNode(node.left, dn.level + 1));\n }\n\n node = node.right;\n }\n }\n }", "private static void helper(TreeNode root, int curSum, int curLen) {\n if (root == null) {\n if (maxLen < curLen) {\n maxLen = curLen;\n maxSum = curSum;\n } else if (maxLen == curLen && maxSum < curSum) {\n maxSum = curSum;\n }\n return;\n }\n\n // do this for left and right\n helper(root.left,curSum + root.val, curLen + 1);\n helper(root.right,curSum + root.val, curLen + 1);\n }", "public int sumRange(SegmentTreeNode root, int i, int j) {\n\t\tif (root == null) return 0;\n\t\t\n\t\tif (root.start == i && root.end == j) {\n\t\t\treturn root.sum;\n\t\t}\n\t\tint mid = root.start + (root.end - root.start) / 2;\n\t\tif (j <= mid) {\n\t\t\treturn sumRange(root.left, i, j);\n\t\t} else if (i > mid) {\n\t\t\treturn sumRange(root.right, i, j);\n\t\t} else {\n\t\t\treturn sumRange(root.left, i, mid) + sumRange(root.right, mid + 1, j);\n\t\t}\n\t}" ]
[ "0.7764504", "0.76382977", "0.7532619", "0.7503472", "0.75028443", "0.7479113", "0.746596", "0.7441352", "0.74351895", "0.7364985", "0.7252283", "0.7213647", "0.72034866", "0.7066611", "0.7064843", "0.7041113", "0.69406724", "0.6871405", "0.68482155", "0.6823677", "0.6780888", "0.6671003", "0.6529467", "0.6504992", "0.63868624", "0.6360263", "0.634218", "0.6249364", "0.6242486", "0.60538197", "0.5995834", "0.5955622", "0.5949323", "0.5889344", "0.5856595", "0.58007365", "0.57950103", "0.57809126", "0.57489264", "0.5658804", "0.5648251", "0.5634265", "0.56080985", "0.5592476", "0.5582344", "0.5570945", "0.5561467", "0.5559566", "0.5542826", "0.55304", "0.55199975", "0.5510428", "0.549254", "0.5482502", "0.5474949", "0.54718816", "0.54566264", "0.5453296", "0.54372704", "0.54321635", "0.54032326", "0.5393927", "0.5374508", "0.5370773", "0.5355721", "0.53424716", "0.5332915", "0.5332371", "0.5312141", "0.5307812", "0.52700466", "0.526526", "0.5263221", "0.5261605", "0.52605873", "0.5237805", "0.52277565", "0.5186009", "0.51859", "0.51552963", "0.5147654", "0.51464474", "0.5113934", "0.51075155", "0.5089443", "0.5083227", "0.5077325", "0.50673914", "0.5062638", "0.50532293", "0.5051272", "0.5043386", "0.50357103", "0.5001367", "0.4998137", "0.4993132", "0.49876836", "0.4985438", "0.49744976", "0.4973444" ]
0.8122209
0
constructor for the world
public World() { initWorld(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyWorld()\n {\n super(600, 400, 1);\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public GameWorld(){\r\n\t\t\r\n\t}", "public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }", "public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }", "public MyWorld()\n { \n super(1200, 600, 1); \n prepare();\n bienvenida();\n instrucciones();\n sonido();\n }", "public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }", "public WorldModel(){\t\n\t}", "public VolcanoWorld() {\n this(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n }", "public World (){\n\t\tpattern = new ShapePattern (PATTERN_SIZE);\n\t\tscroll = new ShapeScroll (SCROLL_SIZE);\n\t}", "@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1078, 672, 1); \n preparePlayer1();\n preparePlayer2();\n prepareTitle();\n //playmusic();\n }", "public MyAgent(World world)\n {\n w = world; \n }", "public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }", "public World(int width, int height)\n {\n this(width, height, AIR_EL);\n }", "public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }", "public MyWorld()\n { \n // Create a new world with 600x550 cells with a cell size of 1x1 pixels.\n super(600, 550, 1);\n // Set the order in which Actors are drawn on the screen in this World\n setPaintOrder ( Counter.class, HighScore.class, Fader.class);\n // Counter\n counter = new Counter (\"Score: \");\n addObject (counter, 50, 30);\n // Initialize the player\n player = new Player ();\n addObject (player, 300, 530); \n platforms = new Platform[10]; \n startingPlatform = new Platform();\n addObject (startingPlatform, 300, 550);\n // Loop through as many Meteors as there are on this level\n for (int i = 0; i < platforms.length; i++)\n {\n // Initialize a new Platform object for each spot in the array\n platforms[i] = new Platform ();\n // Add each platform at a random position anywhere on the X axis and at intervals of 15 on the Y axis\n addObject (platforms[i], Greenfoot.getRandomNumber(600), platformCounter);\n platformCounter = platformCounter - 55;\n }\n }", "protected abstract void initializeWorld();", "public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }", "public abstract World create(World world);", "World getWorld();", "public WorldState ()\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\n\t}", "public CrabWorld()\n {\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n musica=new GreenfootSound(\"Ufo-t-balt.mp3\");\n super(560,560, 1);\n }", "public void createWorld(){\n\n }", "public World() {\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tItemDefinition.load();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tNPCDefinition.load();\n\t\t\t\tNPCStyle.init();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tDegradeSystem.init();\n\t\t\t\tProjectileManager.init();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tShops.loadShopFile();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }", "public SideScrollingWorld()\n { \n // Create a new world with 640x480 cells with a cell size of 1x1 pixels.\n // Final argument of 'false' means that actors in the world are not restricted to the world boundary.\n // See: https://www.greenfoot.org/files/javadoc/greenfoot/World.html#World-int-int-int-boolean-\n super(VISIBLE_WIDTH, VISIBLE_HEIGHT, 1, false);\n\n // Set up the starting scene\n setup();\n\n // Game on\n isGameOver = false;\n\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public HealthyWorld()\n { \n // Create a new wolrd with 800x400 cells and a cell size of 1x1 pixels\n super(800, 400, 1);\n healthLevel = 10;\n time = 2000;\n showHealthLevel();\n showTime();\n // Create a kid in the middle of the screen\n Kid theKid = new Kid();\n this.addObject(theKid, 400, 350);\n }", "public World() {\n\t\tblockIDArray = new byte[WORLD_SIZE][WORLD_HEIGHT][WORLD_SIZE];\n\t\tentities\t = new ArrayList<Entity>();\n\t\trand\t\t = new Random();\n\t\t\n new GravityThread(this);\n\t\t\t\t\n\t\tgenerateWorld();\n\t}", "protected WorldController() {\n\t\tthis(new Rectangle(0,0,DEFAULT_WIDTH,DEFAULT_HEIGHT), \n\t\t\t\tnew Vector2(0,DEFAULT_GRAVITY));\n\t}", "public Universe()\n\t{\n\t\tthis.dimension = 3;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t}", "private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }", "public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "public World makeWorld() {\n World world = new World(1000, 1000);\n world.createEntity().addComponent(new CursorComponent());\n \n ProjectileSystem projectileSystem = new ProjectileSystem();\n world.addSystem(projectileSystem, 1);\n \n return world;\n }", "public World getWorld();", "public lv3()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //super(950, 600, 1); \n //prepare();\n prepare();\n stopped();\n started();\n }", "public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }", "public WorldData init()\n {\n WorldData startWorldData = new WorldData();\n model.appendWorldData(startWorldData);\n return startWorldData;\n }", "@Override\n public void world() {\n super.world();\n }", "public GameWorld()\n { super(3000, 1000, 1);\n planet[1][0]=new HomePlanet();\n planet[0][1]=new AlienPlanet();\n planet[0][2]=new AlienPlanet();\n planet[1][1]=new AlienPlanet();\n planet[1][2]=new AlienPlanet();\n prepare();\n \n }", "@Override\n\tpublic World getWorld() { return world; }", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public MyAgent(World world) {\n w = world;\n agent = new QLearningAgent();\n currentPosition = new Position(w.getPlayerX(), w.getPlayerY());\n }", "public World(String serviceName, Parser parser) throws MupeException {\r\n super(serviceName, parser);\r\n createWorldContent();\r\n }", "public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}", "public WorldGenGrassUnderbean()\n {\n }", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "private static WorldDescription createWorld() {\r\n \t\tWorldDescription world = new WorldDescription();\t \r\n \t\tworld.setPlaneSize(100);\t\t\r\n \t \tObstacleGenerator generator = new ObstacleGenerator();\r\n \t generator.obstacalize(obstacleType, world); // activate to add obstacles\r\n \t // world.setPlaneTexture(WorldDescription.WHITE_GRID_TEXTURE);\r\n \t\treturn world;\r\n \t}", "public MyWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n\n //could have as many RideLines as capasity dictates\n rides = new RideLines[MAX_RIDES];\n\n currentRide=0; //initially, we have 0 prisoners\n \n //Create a Load button at the top of the screen\n load = new LoadButton();\n addObject(load, 250, 20);\n \n //Create a Merge button at the top of the screen\n MergeButton merge = new MergeButton();\n addObject(merge, 350, 20);\n \n //Create a Sort By Name button at the top of the screen\n SortByName sortName = new SortByName();\n addObject(sortName, 450, 20);\n \n //Create a Sort by queue length at the top of the screen\n SortByLength sortLength = new SortByLength();\n addObject(sortLength, 600, 20);\n \n\n }", "public GameFrame(final World world) {\n this.world = world;\n }", "private GameWorld getGameWorld(){\n\t\tHashMap<String, Location> locations = new HashMap<String, Location>();\n\t\tHashMap<Avatar, Location> avatarLocations = new HashMap<Avatar, Location>();\n\t\tArrayList<Avatar> avatars = new ArrayList<Avatar>();\n\t\t\n\t\tLocation testLocation = new Location(\"Test Location\");\n\t\tAvatar testAvatar = new Avatar(\"Slim\", 1);\n\t\t\n\t\tlocations.put(\"testLocation\", testLocation);\n\t\tavatarLocations.put(testAvatar, testLocation);\n\t\tavatars.add(testAvatar);\n\t\t\n\t\treturn new GameWorld(locations, avatarLocations, avatars);\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n for( int i = 0; i < IMAGE_COUNT; i++)\n {\n images[i] = new GreenfootImage(\"frame_\" + i + \"_delay-0.06s.gif\");\n }\n \n setBackground(images [0]); \n \n }", "public Minus(Background myWorld)\n {\n super(myWorld);\n }", "private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSystem());\n world.setSystem(new RenderingSystem(camera, Color.WHITE));\n\n InputSystem inputSystem = new InputSystem();\n InputMultiplexer inputMultiplexer = new InputMultiplexer();\n inputMultiplexer.addProcessor(inputSystem);\n inputMultiplexer.addProcessor(new GestureDetector(inputSystem));\n Gdx.input.setInputProcessor(inputMultiplexer);\n world.setSystem(inputSystem);\n world.setSystem(new MoveCameraSystem(camera));\n\n world.initialize();\n }", "public World(int width, int height, World other)\n {\n this(width, height, other, AIR_EL);\n }", "public World(int width, int height, Element bgElement)\n { \n // construct parent\n\n super(width, height, TYPE_INT_ARGB);\n\n // get world parameters\n\n this.background = bgElement.getValue();\n this.width = width;\n this.height = height;\n\n // fill background \n\n fill(background);\n\n // get the pixel array for the world\n\n pixels = ((DataBufferInt)getRaster().getDataBuffer()).getData();\n \n // fill random index array with lots of random indicies\n\n xRndIndex = new int[RND_INDEX_CNT][getWidth()];\n for (int[] row: xRndIndex)\n for (int i = 0; i < row.length; ++i)\n row[i] = rnd.nextInt(row.length);\n }", "public OrchardGame() {\n\t\t\n\t}", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "public void setWorld(World world) {\n this.world = world;\n }", "public Location() {\n\t}", "public DouaneHal(World firstWorld){\n super(800, 400, 1);\n this.firstWorld = firstWorld;\n \n addObject(new Bericht(3), 400, 200);\n }", "public VirtualWorld(Node rootNode, AssetManager assetManager, ViewPort viewPort){\n sky = new Sky(rootNode, assetManager);\n water = new Water(rootNode, viewPort, assetManager);\n }", "public ShamWorld(WorldSettings settings) {\n super(null, name, null, settings, null);\n }", "public CubeEarth() {\n this(1, null);\n }", "public Wall(float x, float y, float width, float height, World world)\n {\n super(x,y,width, height);\n this.world = world;\n }", "public Weather() {\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "public UIMainWorld()\n { \n super(600, 400, 1); \n startScreen();\n }", "public WorldRenderer(WorldController worldController)\n {\n this.worldController = worldController;\n init();\n }", "public static World getWorld() {\n\t\treturn world;\n\t}", "public Location() {\r\n \r\n }", "public static World readWorld() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "public World(final BoundingBox bounds, final Peer peer) {\n \t\tmyVirtualWorldBounds = bounds;\n \t\tmyPeer = peer;\n \t\tmyPeer.addObserver(this);\n \t\t\n \t\tmyForces = new LinkedList<Force>();\n \t\tmyObjects = new LinkedList<PhysicalObject>();\n \t\t\n \t\t// TODO: Should this go here?\n \t\tmyScene = new BranchGroup();\n \t\tmyScene.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);\n \t\tmyScene.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);\n \t\t\n \t\tBoundingLeaf originLeaf = new BoundingLeaf(new BoundingSphere());\n \t\tmyScene.addChild(originLeaf);\n \t\t\n \t\tmyScene.addChild(createVirtualWorldBoundsShape());\n \t\t\n \t\taddLights();\n \t\taddHalfspaces();\n \t\t\n \t\tmyScene.compile();\n \t}", "public TileWorldUtil(int width, int height) {\n this.width = width;\n this.height = height;\n world = new TileType[width][height];\n clear();\n }", "public ClassTester()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(new NonScrollingBackground(\"Stage - 0.jpg\"),300,131);\n addObject(playerMage,35,170);\n addObject(new AbilityDisplayer(playerMage),125,268);\n }", "public static World getInstance() {\n\t\tif (world == null) {\n\t\t\tworld = new World();\n\t\t}\n\t\treturn world;\n\t}", "public Game() { \n // Create the new environment. Must be done in the same\n // method as the game loop\n env = new Env();\n \n // Sets up the camera\n env.setCameraXYZ(25, 50, 55);\n env.setCameraPitch(pitch);\n\n // Turn off the default controls\n env.setDefaultControl(false);\n\n // Make the room 50 x 50.\n env.setRoom(new Room());\n creatures = new ArrayList<Creature>();\n }", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "public static World getInstance() {\n return instance;\n }", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "@Override\n public void afterWorldInit() {\n }", "public levelTwo()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n prepare();\n }", "public Life() {\n super();\n\n initialiseStyle();\n initialiseEvents();\n }", "public static void main(String args[]) {\n BallWorld world = new BallWorld();\n }", "public World getWorld(String worldName);", "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }", "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", "public World getWorld () {\n\t\treturn world;\n\t}", "public Location() {\n }", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public GridWorld()\n\t{\n\t\tadd(grid = new Grid());\n\t\tfade = new Fade();\n\t\tfade.fadeIn();\n\t\tbackground.color().setAlpha(0.6f);\n\t}" ]
[ "0.80076045", "0.7922803", "0.78934425", "0.77442473", "0.77304244", "0.76869744", "0.76535165", "0.7619856", "0.7520145", "0.74819565", "0.7450172", "0.741644", "0.73763925", "0.73725253", "0.7333329", "0.7291844", "0.72617424", "0.725584", "0.7255125", "0.7225259", "0.72090524", "0.7204375", "0.72009635", "0.7193695", "0.7086786", "0.7046069", "0.69461197", "0.69372207", "0.6929956", "0.6924177", "0.69094473", "0.69056416", "0.6905298", "0.6905288", "0.6901464", "0.68887955", "0.6859031", "0.68437016", "0.6840422", "0.68239206", "0.6820441", "0.68127024", "0.68092775", "0.6807888", "0.67870265", "0.67514205", "0.6746228", "0.671613", "0.6714018", "0.67043865", "0.6695879", "0.66890407", "0.66819084", "0.6638", "0.66355693", "0.662822", "0.6614292", "0.6592264", "0.65848345", "0.657529", "0.6551735", "0.6542111", "0.65073764", "0.65073764", "0.6488618", "0.6486006", "0.6478097", "0.64621085", "0.6461199", "0.6458235", "0.64555395", "0.6451803", "0.64444166", "0.64229494", "0.6421398", "0.64152586", "0.6414725", "0.64110076", "0.6398638", "0.6374377", "0.63636404", "0.63430727", "0.63271356", "0.6326813", "0.6299514", "0.6292518", "0.62897706", "0.6287267", "0.62648493", "0.62598115", "0.6258596", "0.625289", "0.62504274", "0.624949", "0.62486035", "0.6242227", "0.624076", "0.6238323", "0.6236544", "0.6235465" ]
0.84650457
0
loops through each element in the grid and prints it's contents. It prints "[ ]" in place of null values
public void printGrid() { for(int i = 0; i < numRows; i++) { for(int j = 0; j < numColumns; j++) { if(grid[i][j] == null) { System.out.print("[ ]"); } else { System.out.print(grid[i][j]); } } System.out.println("\n"); } System.out.println("\n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printGrid()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}", "public void printGridAsChild()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tSystem.out.print( \"\\t\" );\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}", "public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }", "public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\n }\n }", "public void printGrid(){\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(Grid[i][j]+\" \"); \n\t\t\tSystem.out.println(); \n\t\t}\n\t}", "public void printGrid(){\n System.out.println(\"printing the grid\");\n for(int i=0;i<row_size;i++){\n for(int j = 0;j<col_size;j++){\n System.out.println(grid[i][j]);\n }\n }\n }", "@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }", "private void displayGrid() {\r\n System.out.print(this.grid);\r\n }", "private void printGrid(StateObservation stateObs) {\n\n ArrayList<Observation>[][] gameGrid = stateObs.getObservationGrid();\n System.out.println(\"rows \" + gameGrid.length + \" cols \" + gameGrid[0].length);\n\n System.out.println(\"------------------\");\n for (int i = 0; i < gameGrid[0].length; i++) { // cols\n for (int j = 0; j < gameGrid.length; j++) { // rows\n\n if (gameGrid[j][i].isEmpty()) {\n System.out.print(\". \");\n } else {\n for (Observation o : gameGrid[j][i]) {\n System.out.print(o.itype + \" \");\n }\n }\n }\n System.out.println();\n }\n System.out.println(\"------------------\");\n }", "void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }", "public void printBoard() {\n String value = \"\";\n renderBoard();\n System.out.println(\"\");\n // loop to print out values in rows and columns\n for (int i = 0; i < game.getRows(); i++) {\n for (int j = 0; j < game.getCols(); j++) {\n if (grid[i][j] == 0)\n value = \".\";\n else\n value = \"\" + grid[i][j];\n System.out.print(\"\\t\" + value);\n }\n System.out.print(\"\\n\");\n }\n }", "public void Print()\n\t{\n\t\tSystem.out.print(\"\\n_____GRID______\");\n\t\n\t\tfor(int x = 0; x < 9; x++)\n\t\t{\n\t\t\t\tif(x%3 == 0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tif(grid[x] !=0)\n\t\t\t\t{\n\t\t\t\t\tif(grid[x] == -1)\n\t\t\t\t\t\tSystem.out.print(\"|_\"+ \"O\" + \"_|\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\"|_\"+ \"X\" + \"_|\");\n\t\t\t\t}\n\t\t\t\telse // blank square\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"|_\"+ \" \" + \"_|\");\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "public void printGrid() {\n\t\tfor (int row = 0; row < ROWS; row++) {\n\t\t\tif (row % 3 == 0 && row != 0)\n\t\t\t\tSystem.out.println(\" |\\n ------------------------\");\n\t\t\telse if (row % 3 == 0)\n\t\t\t\tSystem.out.println(\" -------------------------\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\" | \");\n\t\t\tfor (int col = 0; col < COLUMNS; col++) {\n\t\t\t\tif (col % 3 == 0)\n\t\t\t\t\tSystem.out.print(\" | \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(grid[row][col]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" |\\n -------------------------\");\n\t}", "static void printGrid (int[][] G){\n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (G[i][j]==0){\n System.out.print(\"- \");\n } else System.out.print(G[i][j]+\" \");\n if ( j==3) System.out.print(\" \");\n if ( j==6) System.out.print(\" \");\n if ( j==9) System.out.print(\"\\n\");\n }\n if ( i==3) System.out.print(\"\\n\");\n if ( i==6) System.out.print(\"\\n\");\n }\n }", "public void printGrid(char[][] grid){\r\n\t\tSystem.out.println(grid[0][0] + \"|\" + grid[0][1] + \"|\" + grid[0][2] + \"|\" + grid[0][3] + \"|\" + grid[0][4] + \"|\" + grid[0][5] + \"|\" + grid[0][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[1][0] + \"|\" + grid[1][1] + \"|\" + grid[1][2] + \"|\" + grid[1][3] + \"|\" + grid[1][4] + \"|\" + grid[1][5] + \"|\" + grid[1][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[2][0] + \"|\" + grid[2][1] + \"|\" + grid[2][2] + \"|\" + grid[2][3] + \"|\" + grid[2][4] + \"|\" + grid[2][5] + \"|\" + grid[2][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[3][0] + \"|\" + grid[3][1] + \"|\" + grid[3][2] + \"|\" + grid[3][3] + \"|\" + grid[3][4] + \"|\" + grid[3][5] + \"|\" + grid[3][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[4][0] + \"|\" + grid[4][1] + \"|\" + grid[4][2] + \"|\" + grid[4][3] + \"|\" + grid[4][4] + \"|\" + grid[4][5] + \"|\" + grid[4][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[5][0] + \"|\" + grid[5][1] + \"|\" + grid[5][2] + \"|\" + grid[5][3] + \"|\" + grid[5][4] + \"|\" + grid[5][5] + \"|\" + grid[5][6]);\r\n\t}", "public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "void printGridToUser() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n int rows = this.getNumRows();\n int cols = this.getNumColumns();\n\n for (int r = 0; r < rows; r++) {\n\n for (int c = 0; c < cols; c++) {\n System.out.print(this.getString(r, c) + \", \");\n }\n\n System.out.println(\" \");\n }\n }", "public String printGrid() {\n String s = \"KEY: \\n- (sea) = no boat not shot\"\n + \"\\nM (miss) = no boat SHOT \"\n +\" \\nB (boat) = boat not shot\"\n + \"\\nH (hit) = boat SHOT\"\n + \"\\n***********************************************************\\n\";\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n s += decideLetter(grid[i][j]) + \"\\t\";\n }\n s += \"\\n\";\n }\n return s;\n }", "public void print() {\n\t\t\n\t\tfor (int j = 0; j < height(); j++) {\n\t\t\tfor (int i = 0; i < width(); i++) {\n\t\t\t\tSystem.out.printf(\"%3d \", valueAt(i, j));\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\t\n\t}", "void print() {\n for (int i = 0; i < 8; i--) {\n System.out.print(\" \");\n for (int j = 0; j < 8; j++) {\n System.out.print(_pieces[i][j].textName());\n }\n System.out.print(\"\\n\");\n }\n }", "public void printCells()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n System.out.println(\"Columns: \" + columns + \"Row: \" + rows + \" \" + cellGrid[columns][rows].isAlive());\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "private void boardPrint(){\t\t\n\t\tfor (int i=0;i<size;i++) {\n\t for (int j=0;j<size;j++) {\n\t System.out.print(\" ---- \");\n\t }\n\t System.out.println();\n\t for (int j=0;j<size;j++) {\n\t \tint value = (i*size) + j + 1;\n\t \tif(board[i][j] == '\\u0000'){\n\t \t\tif(value < 10)\n\t \t\t\tSystem.out.print(\"| \"+ value + \" |\");\n\t \t\telse\n\t \t\t\tSystem.out.print(\"| \"+ value + \" |\");\n\t \t}\n\t \telse\n\t \t\tSystem.out.print(\"| \"+ board[i][j] + \" |\");\n\t }\n\t System.out.println();\n\t }\n\n\t for (int i=0;i<size;i++){\n\t \tSystem.out.print(\" ---- \");\n\t }\n\t System.out.println();\n\t}", "void printGrid() {\n GridHelper.printGrid(hiddenGrid);\n }", "public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }", "private void printBoard() {\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n System.out.print(board[j][i] + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "public static void displayGrid(int grid[][])\n {\n for(int k = 0; k<10;k++)\n {\n System.out.print(k);\n }\n System.out.println();\n for (int i =0; i<10;i++)\n {\n for(int j = 0; j<10;j++)\n {\n if (grid[i][j]==1)\n System.out.print(\"#\");\n else \n System.out.print(\" \");\n }\n System.out.println(i);\n }\n }", "private void print_solution() {\n System.out.print(\"\\n\");\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n System.out.print(cells[i][j].getValue());\n }\n System.out.print(\"\\n\");\n }\n }", "public void printValues() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tfor (int j = 0; j < 7; j++) {\n\t\t\t\tlblCenter[i][j].setText(\"\" + array.getElement(i, j));\n\t\t\t}\n\t\t\ttfWest[i].setText(\"\" + leftCol.getElement(i));\n\t\t\ttfSouth[i].setText(\"\" + bottomRow.getElement(i));\n\t\t}\n\t}", "public void print() {\n\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n System.out.format(\"%.4f\", data[i][j]);\n if (j != this.cols - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n }", "public void displayBoard(char[][] grid) {\n System.out.println();\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println(\"---------------\");\n for (int row = 0; row < grid.length; row++) {\n System.out.print(\"|\");\n for (int col = 0; col < grid[0].length; col++) {\n System.out.print(grid[row][col]);\n System.out.print(\"|\");\n }\n System.out.println();\n System.out.println(\"---------------\");\n }\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println();\n }", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "public void print () \r\n\t{\r\n\t\tfor (int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\tif (index % 5 == 0) // print 5 columns\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\tSystem.out.print(array[index] + \"\\t\");\t// print next element\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString grid = \"\";\n\t\tfor (int i = 0; i < this.getNumRow(); i++) {\n\t\t\tgrid = grid + this.storage.get(i).toString() + \"\\n\";\n\t\t}\n\t\tSystem.out.println(grid);\n\t\treturn grid;\n\t}", "public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }", "public void printPieces()\n {\n\tint last = 1;\n\tfor(int i=0;i<unused.length;i++)\n\t {\n\t\tif(unused[i]!=null)\n\t\t {\n\t\t\tSystem.out.println(last + \". \" + unused[i]);\n\t\t\tlast++;\n\t\t }\n\t }\n }", "public void printBoard(){\n for(int r = 0; r < board.length; r++){\n for(int c = 0; c < board[0].length; c++){\n if(board[r][c].isMine()){\n System.out.print(\"X \");\n } else{\n System.out.print(board[r][c].getValue() + \" \");\n }\n }\n System.out.println();\n }\n }", "public String toString(){\n\t\tString board = \"\";\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tif(theGrid[i][j]){ //iterate through, if cell is alive, mark with *\n\t\t\t\t\tboard += \"*\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tboard += \" \"; //else, [space]\n\t\t\t\t}\n\t\t\t}\n\t\t\tboard += \"\\n\";//create a new line, to create the board\n\t\t}\n\t\treturn board; //return the board\n\t}", "@Override\n\tpublic String toString() {\n\t\tString result = \"-------------------\\n\";\n\t\tfor (Cell[] cellRow : board) {\n\t\t\tresult += \"|\";\n\t\t\tfor (Cell cell : cellRow) {\n\t\t\t\tresult += (cell.val == 0 ? \" \" : cell.val) + \"|\";\n\t\t\t}\n\t\t\tresult += \"\\n-------------------\\n\";\n\t\t}\n\t\treturn result += \"\\n\" + toTest();\n\t}", "public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}", "private void displayBoard(Board board)\n {\n for (int i = 0; i < size; i++)\n {\n System.out.print(\"|\");\n for (int j = 0; j < size; j++)\n \n System.out.print(board.array[i][j] + \"|\");\n System.out.println();\n }\n }", "public void print_board(){\n\t\tfor(int i = 0; i < size*size; i++){\n\t\t\tif(i%this.size == 0) System.out.println(); //just for divider\n\t\t\tfor(int j = 0; j < size*size; j++){\n\t\t\t\tif(j%this.size == 0) System.out.print(\" \"); //just for divider\n\t\t\t\tSystem.out.print(board[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printPuzzle() {\n\t\tSystem.out.print(\" +-----------+-----------+-----------+\\n\");\n\t\tString value = \"\";\n\t\tfor (int row = 0; row < puzzle.length; row++) {\n\t\t\tfor (int col = 0; col < puzzle[0].length; col++) {\n\t\t\t\t// if number is 0, print a blank\n\t\t\t\tif (puzzle[row][col] == 0) value = \" \";\n\t\t\t\telse value = \"\" + puzzle[row][col];\n\t\t\t\tif (col % 3 == 0)\n\t\t\t\t\tSystem.out.print(\" | \" + value);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + value);\n\t\t\t}\n\t\t\tif ((row + 1) % 3 == 0)\n\t\t\t\tSystem.out.print(\" |\\n +-----------+-----------+-----------+\\n\");\n\t\t\telse\n\t\t\t\tSystem.out.print(\" |\\n\");\n\t\t}\n\t}", "public void printBoard() {\n System.out.println(\"Updated board:\");\n for (int row = 0; row < size; row++) {\n for (int col = 0; col < size; col++) {\n\n System.out.print(grid[row][col] + \" \");\n\n }\n System.out.println(\"\");\n }\n }", "public void display() { \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tSystem.out.print(\"|\"); \r\n\t\t\tfor (int j=0; j<3; j++){ \r\n\t\t\t\tSystem.out.print(board[i][j] + \"|\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(); \r\n\t\t}\r\n\t\tSystem.out.println(); \r\n\t}", "public void print() {\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(m[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\n\t}", "public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }", "public void showGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n clientOutputStream.print(grid[i][j] + \" \");\n }\n clientOutputStream.println();\n }\n clientOutputStream.println();\n clientOutputStream.flush();\n }", "public String toString() {\n String result = \"\";\n result += \" \";\n // Column numbers\n for (int i = 0; i < numberOfColumns; i++) {\n result += (i % 10) + \" \";\n }\n result += \"\\n\";\n result += \" \";\n // Horizontal dividers\n for (int i = 0; i <= 2 * this.numberOfColumns - 2 ; i++) {\n result += HORI_DIVIDE;\n }\n result += \"\\n\";\n // Each horizontal line has the line number, a divider, and the safe data.\n for (int i = 0; i < numberOfRows; i++) {\n result += (i % 10);\n result += VERT_DIVIDE;\n for (int j = 0; j < numberOfColumns; j++) {\n result += grid[i][j];\n if (j != numberOfColumns - 1) {\n result += \" \";\n }\n }\n if (i != numberOfRows - 1) {\n result += \"\\n\";\n }\n }\n return result;\n }", "public void printBoard(){\n\t\tfor(int row = 0; row <9; row++)\n\t\t{\n\t\t\tfor(int column = row; column<25-row; column++)\n\t\t\t{\n\t\t\t\tBoard[row][column]='O';\n\t\t\t}\n\t\t}\n\t\tfor(int iteration_i = 0;iteration_i<9;iteration_i++){\n\t\t\tfor(int iteration_j=0;iteration_j<25;iteration_j++)\n\t\t\t{\t\n\t\t\t\tif (Board[iteration_i][iteration_j]=='\\u0000')\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(Board[iteration_i][iteration_j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "public void printBoard() {\n\t\tfor (int row=8; row>=0;row--){\n\t\t\tfor (int col=0; col<9;col++){\n\t\t\t\tSystem.out.print(boardArray[col][row]);\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "public void display() {\n\t\tfor (int i = 0; i < player.length; ++i) {\n\t\t\t// inserting empty line in every 3 rows.\n\t\t\tif (i % 3 == 0 && i != 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor (int j = 0; j < player[i].length; ++j) {\n\t\t\t\t// inserting empty space in every 3 columns.\n\t\t\t\tif (j % 3 == 0 && j != 0) {\n\t\t\t\t\tSystem.out.print(' ');\n\t\t\t\t}\n\t\t\t\tif (problem[i][j] == 0 && player[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"( )\");\n\t\t\t\t} else if (problem[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"(\" + player[i][j] + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"[\" + player[i][j] + \"]\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void print() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println();\n }\n }", "@Override\r\n public String toString() {\r\n StringBuilder res = new StringBuilder();\r\n for (int i=0 ; i<this.tiles.length ; i++) {\r\n if (i>0 && i%this.width == 0) {\r\n res.append(\"\\n\");\r\n }\r\n res.append(this.tiles[i]);\r\n }\r\n return res.toString();\r\n }", "public static void printBoard() {\n\t\tfor (int i = 0; i<3; i++) {\n\t\t\tSystem.out.println();\n\t\t\tfor (int j = 0; j<3; j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t\tSystem.out.print(\"| \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(board[i][j] + \" | \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "public String toString() {\n String boardString = \"\";\n for (int j = 0; j < nRows; j++) {\n String row = \"\";\n for (int i = 0; i < nCols; i++) {\n if (board[j][i] == null) {\n row = row + \"Empty \";\n } else {\n row = row + board[j][i].getType() + \" \";\n }\n }\n boardString = boardString + row + \"\\n\";\n }\n return boardString;\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n int cell = field[i][j];\n result.append(cell == 0 ? \"_\" : (cell == 1 ? \"X\" : \"O\")).append(\" \");\n }\n result.append(\"\\n\");\n }\n return result.toString();\n }", "public void print() {\r\n\r\n\t\tfor (int row=0; row<10; row++) \r\n\t\t{\r\n\t\t\tfor (int col=0; col<10; col++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+nums[row][col]); //separated by tabs\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}", "public void displayBoard() {\n newLine();\n for (int row = _board[0].length - 1; row >= 0; row -= 1) {\n String pair = new String();\n for (int col = 0; col < _board.length; col += 1) {\n pair += \"|\";\n pair += _board[col][row].abbrev();\n }\n System.out.println(pair + \"|\");\n newLine();\n }\n }", "public void printBoard() {\n System.out.println(\"---+---+---\");\n for (int x = 0; x < boardLength; x++) {\n for (int y = 0; y < boardWidth; y++) {\n char currentPlace = getFromCoordinates(x, y);\n System.out.print(String.format(\" %s \", currentPlace));\n\n if (y != 2) {\n System.out.print(\"|\");\n }\n }\n System.out.println();\n System.out.println(\"---+---+---\");\n }\n }", "public void printBoard() {\n\t\tfor (int colIndex = 0; colIndex < 4; colIndex++){\n\t\t\tfor (int rowIndex = 0; rowIndex < 4; rowIndex++){\n\t\t\t\tSystem.out.print(this.myBoard[colIndex][rowIndex] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void display(){\n \tfor(int i=0;i<size;i++){\n \tSystem.out.print(elements[i]+\" \");\n \t}\n\t}", "public void print(){\n\t\t\n\t\tfor(int i=0;i<maxindex;i++)\n\t\t{\n\t\t\tif(data[i] != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(data[i]+\"x\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "@Override\n\tpublic String toString(){\n\t\t// return a string of the board representation following these rules:\n\t\t// - if printed, it shows the board in R rows and C cols\n\t\t// - every cell should be represented as a 5-character long right-aligned string\n\t\t// - there should be one space between columns\n\t\t// - use \"-\" for empty cells\n\t\t// - every row ends with a new line \"\\n\"\n\t\t\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tfor (int i=0; i<numRows; i++){\n\t\t\tfor (int j =0; j<numCols; j++){\n\t\t\t\tPosition pos = new Position(i,j);\n\t\t\t\t\n\t\t\t\t// use the hash table to get the symbol at Position(i,j)\n\t\t\t\tif (grid.contains(pos))\n\t\t\t\t\tsb.append(String.format(\"%5s \",this.get(pos)));\n\t\t\t\telse\n\t\t\t\t\tsb.append(String.format(\"%5s \",\"-\")); //empty cell\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "@Override\n public String toString() {\n String[] output = new String[getHeight()];\n for (int row=0; row < getHeight(); row++) {\n StringBuilder builder = new StringBuilder();\n for (int col=0; col < getWidth(); col++) {\n Square current = getSquare(row, col);\n builder.append(getCharForSquare(current));\n }\n output[row] = builder.toString();\n }\n return String.join(\"\\n\", output);\n }", "public void showPuzzle() {\n\n for (int r = 0; r < numbers.length; r++) {\n for (int c = 0; c < numbers[r].length; c++) {\n System.out.print(numbers[r][c] + \"\\t\");\n }\n System.out.println();\n }\n }", "public void textDisplay() {\r\n //goes through array and if it is true then print out 1, if not then print out 0\r\n for (int y = 0; y < grid.length; y++) {\r\n for (int x = 0; x < grid[0].length; x++) {\r\n if (grid[y][x] == true) {\r\n System.out.print(1);\r\n } else {\r\n System.out.print(0);\r\n }\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "public void printCountGrid() {\n\n System.out.println(\"AI count grid :\");\n for (int i = this.boardSize.x - 1; i >= 0; i--) {\n for (int j = 0; j < this.boardSize.y; j++) {\n System.out.print(this.countGrid[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n }", "public void printBoard() {\n \tfor(int i = 7; i >= 0; i--) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tSystem.out.print(\"\"+getPiece(j, i).getColor().toString().charAt(0)+getPiece(j, i).getName().charAt(0)+\"\\t\");\n \t\t}\n \t\tSystem.out.println();\n \t}\n }", "private static void showBoard() {\n for (int i = 1; i < 10; i++) {\n for (int j = 1; j < 4; j++) {\n System.out.println(j + \".\" + board[i]);\n }\n\n }\n }", "public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }", "public void print() {\n int j = 1, k = 0;\n System.out.println(\"Heap contents:\");\n for (E item : heap) {\n System.out.print(item+\" \");\n k++;\n if (k >= j) {\n j = j << 1;\n k = 0;\n System.out.println(\"\");\n }\n }\n System.out.println(\"\");\n }", "public void show() {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < columnCount; j++)\n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "public void displayBoard()\n {\n System.out.println(\"\");\n System.out.println(\" Game Board \");\n System.out.println(\" ---------------------------------\");\n for (int i = 0; i < ROW; i++)\n {\n System.out.print(i+1 + \" | \");\n for (int j = 0; j < COL; j++)\n {\n //board[i][j] = \"A\";\n System.out.print(board[i][j].getPieceName() + \" | \");\n }\n System.out.println();\n }\n System.out.println(\" ---------------------------------\");\n\n System.out.println(\" a b c d e f g h \");\n }", "public void printG(){\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\t}", "@Override\n public String toString() {\n StringBuilder s = new StringBuilder();\n for (int i = 0; i < this.getHeight(); i++) {\n for (int j = 0; j < this.getWidth(); j++) {\n s.append(this.getEntry(j,i)).append(\" \");\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }", "public String toString() {\n String returnString = \"\";\n returnString = returnString + \"\\r\\n\";\n for (int i = 0; i < rows + 1; i++) {\n for (int j = 0; j < cols + 1; j++) {\n if (i == 0 && j == 0) {\n returnString = returnString + \" \";\n continue;\n }\n if (i == 0) {\n if (j > 0) {\n returnString = returnString + (j + \" \");\n }\n if (j == 8) {\n returnString = returnString + \"\\r\\n\";\n }\n } else {\n if (j > 0) {\n if (!isEmpty(i - 1, j - 1)) {\n returnString = returnString + (getBoard()[i - 1][j - 1] + \" \");\n } else {\n returnString = returnString + \" \";\n }\n }\n }\n if (j == 0) {\n returnString = returnString + (i + \" \");\n }\n\n }\n returnString = returnString + \"\\r\\n\";\n }\n return returnString;\n }", "public void printBoard() {\r\n // Print column numbers.\r\n System.out.print(\" \");\r\n for (int i = 0; i < BOARD_SIZE; i++) {\r\n System.out.printf(\" %d \", i+1);\r\n }\r\n System.out.println(\"\\n\");\r\n\r\n\r\n for (int i = 0; i < BOARD_SIZE; i++) {\r\n System.out.printf(\"%c %c \", 'A' + i, board[i][0].mark);\r\n\r\n for (int j = 1; j < BOARD_SIZE; j++) {\r\n System.out.printf(\"| %c \", board[i][j].mark);\r\n }\r\n\r\n System.out.println(\"\");\r\n\r\n if (i < BOARD_SIZE - 1) {\r\n System.out.print(\" \");\r\n for (int k = 1; k < BOARD_SIZE * 3 + BOARD_SIZE; k++) {\r\n System.out.print(\"-\");\r\n }\r\n System.out.println(\"\");\r\n }\r\n }\r\n System.out.println(\"\");\r\n }", "public void print() {\n\t\tcounter++;\n\t\tSystem.out.print(counter + \" \");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(squares[j][i].getValue());\n\t\t }\n\t\t System.out.print(\"//\");\n\t\t}\n\t\tSystem.out.println();\n }", "public void print(){\n for (int i=0; i<11; i++){\n for (int j=0; j<11; j++){\n //print 0-9s on the horizontal and vertical axis\n if (i == 0 & j==0) System.out.print(\" \");\n else if (i==0) System.out.print(\" \"+(j-1)+\" \");\n else if (j==0) System.out.print(\" \"+(i-1)+\" \");\n else{\n //print out ships and status\n Ship ship = ships[i-1][j-1];\n if(ship.isSunk()) System.out.print(\" x \");\n else if(ship.getShipType().equals(\"empty\") && ship.hit[1]) System.out.print(\" - \");\n else if(ship.getShipType().equals(\"empty\") && !ship.hit[1]) System.out.print(\" . \");\n else if(ship.isHorizontal() && ship.hit[j-1-ship.getBowColumn()]) System.out.print(\" S \");\n else if(ship.isHorizontal() && !ship.hit[j-1-ship.getBowColumn()]) System.out.print(\" . \");\n else if(!ship.isHorizontal() && ship.hit[i-1-ship.getBowRow()]) System.out.print(\" S \");\n else if(!ship.isHorizontal() && !ship.hit[i-1-ship.getBowRow()]) System.out.print(\" . \");\n }\n }\n System.out.print(\"\\n\");\n }\n }", "public void print(){\n for(int i=0; i<maze.length;i+=1) {\n for (int j = 0; j < maze[0].length; j += 1){\n if(i == start.getRowIndex() && j == start.getColumnIndex())\n System.out.print('S');\n else if(i == goal.getRowIndex() && j == goal.getColumnIndex())\n System.out.print('E');\n else if(maze[i][j]==1)\n System.out.print(\"█\");\n else if(maze[i][j]==0)\n System.out.print(\" \");\n\n\n }\n System.out.println();\n }\n }", "public void PrintBoard() {\n\tSystem.out.println(\"printing from class\");\n\t\tString[][] a = this.piece;\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 <- X axis\");\n\t\tSystem.out.println(\" +----------------+ \");\n\t\t\n\t\tfor (int i=0; i<8 ;i++) {\n\t\t\tSystem.out.print(i + \" |\");\n\t\t\tfor (int j=0; j<8;j++) {\n\t\t\t\t\n\t\tSystem.out.print(\"\" + a[i] [j] + \" \");\n\t\t\t\t\t} \n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t\tSystem.out.println(\" +----------------+ \");\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 \");\n\t\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\n\t\tString result = \"\";\n\n\t\tfor(Cell[][] dim : board) {\n\t\t\tfor(Cell[] row : dim) {\n\t\t\t\tfor(Cell col : row) {\n\t\t\t\t\tif(col== Cell.E)\n\t\t\t\t\t\tresult += \"-\";\n\t\t\t\t\telse\n\t\t\t\t\t\tresult += col;\t\n\t\t\t\t}\n\t\t\t\tresult += \"\\n\";\n\t\t\t}\n\t\t\tresult += \"\\n\";\n\t\t}\n\n//\t\tSystem.out.println(\"\\n***********\\n\");\n\t\treturn result;\n\n\t}", "private void printBoard() {\n\n for (int j=Board.getSize()-1; j >= 0; j--) {\n for (int i=0; i < Board.getSize(); i++) {\n // make sure indexes get printed for my pieces\n if (board.layout[i][j] == player) {\n //System.out.print(\" \"+ getPieceIndex(i,j)+ \" \");\n } else {\n System.out.print(\" \"+ board.layout[i][j]+ \" \");\n }\n }\n System.out.print(\"\\n\");\n\n }\n }", "public void printBoard()\n {\n // Print column numbers;\n System.out.print(\" \");\n for (int index = 0; index < columns; index++)\n System.out.print(\" \" + index);\n\n System.out.println();\n\n // Print the row numbers and the board contents.\n for (int index = 0; index < rows; index++)\n {\n System.out.print(index);\n\n for (int index2 = 0; index2 < columns; index2++)\n System.out.print(\" \" + board[index][index2]);\n\n System.out.println();\n }\n\n }", "public static void display(int[][] board) {\r\n\t\tfor (int i = 0; i < board.length; i++) {\r\n\t\t\tfor (int j = 0; j < board[0].length; j++)\r\n\t\t\t\tSystem.out.print(board[i][j] + \" \");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }", "@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < dimension; i++) {\r\n sb.append(rowToString(i)).append(\"\\n\");\r\n }\r\n //remove the last unnecessary carriage return from the string.\r\n return sb.toString().substring(0, sb.length() - 1);\r\n }", "public void printBoard() {\r\n\t\tif (getOpenTiles() != 0) {\r\n\t\t\tSystem.out.println(\"\\n\\nCurrent open tiles: \" + getOpenTiles() + \" | Total moves: \" + getMoves() + \" | Current board:\");\r\n\t\t}for (int i = 0; i < gameBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < gameBoard[i].length; j++) {\r\n\t\t\t\tif (gameBoard[i][j] != 0) {\r\n\t\t\t\t\tSystem.out.print(gameBoard[i][j]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}System.out.print(\" | \");\r\n\t\t\t}System.out.print(\"\\n--+\");\r\n\t\t\tfor (int k = 0; k < getSize(); k++) {\r\n\t\t\t\tSystem.out.print(\"---+\");\r\n\t\t\t}System.out.println();\r\n\t\t}\r\n\t}", "public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}", "public void print() {\n for (int i = 0; i < size; i++)\n System.out.print(elements[i] + \" \");\n System.out.println();\n }", "public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }" ]
[ "0.79695904", "0.7780036", "0.7741711", "0.76243246", "0.75901204", "0.7545004", "0.75059336", "0.7479323", "0.74427426", "0.73981625", "0.7372304", "0.7364328", "0.732571", "0.7215732", "0.71777844", "0.71481776", "0.7055", "0.7047973", "0.7035531", "0.7013264", "0.69765157", "0.6966273", "0.6955861", "0.6945272", "0.69402903", "0.693735", "0.68936974", "0.6886451", "0.6886272", "0.68808496", "0.6857624", "0.68512404", "0.6844474", "0.68274915", "0.6804249", "0.67780125", "0.6753559", "0.6718962", "0.6693167", "0.6688243", "0.66746986", "0.6672638", "0.66638035", "0.66540664", "0.6651194", "0.66462004", "0.6642127", "0.6623801", "0.6621655", "0.66196793", "0.6583782", "0.6572678", "0.6572419", "0.6559038", "0.6558457", "0.65581506", "0.6557266", "0.65568626", "0.65504414", "0.6545607", "0.6543083", "0.6539909", "0.6527779", "0.65235126", "0.6518315", "0.6517459", "0.65156287", "0.65105647", "0.6505875", "0.6499674", "0.6495791", "0.64671755", "0.64581347", "0.6455781", "0.64517397", "0.64485383", "0.64441514", "0.6439112", "0.64376414", "0.64371985", "0.6429713", "0.6425783", "0.6425702", "0.64241034", "0.6424045", "0.6422831", "0.6422215", "0.6415014", "0.6409691", "0.6409691", "0.6408836", "0.64080113", "0.6404227", "0.6400811", "0.63931775", "0.63925534", "0.63867617", "0.6384311", "0.63735425", "0.637246" ]
0.80836993
0
initialise the grid and place one of each species
public void initWorld() { grid = new Creature[numRows][numColumns]; //place a Species1 object in the top half of the grid int topRowInit = (int)(Math.random()*(numRows/2)); int topColInit = (int)(Math.random()*(numColumns)); grid[topRowInit][topColInit] = new Species1(this, topRowInit, topColInit); grid[topRowInit][topColInit].live(); //place a Species2 object in the bottom half of the grid int bottomRowInit = (int)(Math.random()*(numRows/2))+(numRows/2); int bottomColInit = (int)(Math.random()*(numColumns)); grid[bottomRowInit][bottomColInit] = new Species2(this, bottomRowInit, bottomColInit); grid[bottomRowInit][bottomColInit].live(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n grid6 = new Grid(100f, 250f, 200f, 6);\n grid7 = new Grid(100f, 350f, 200f, 7);\n grid8 = new Grid(100f, 50f, 300f, 8);\n grid9 = new Grid(100f, 150f, 300f, 9);\n grid10 = new Grid(100f, 250f, 300f, 10);\n grid11 = new Grid(100f, 350f, 300f, 11);\n grid12 = new Grid(100f, 50f, 400f, 12);\n grid13 = new Grid(100f, 150f, 400f, 13);\n grid14 = new Grid(100f, 250f, 400f, 14);\n grid15 = new Grid(100f, 350f, 400f, 15);\n\n /**\n * Adding grids from 0 to 15 to static ArayList of all grids\n */\n grids.clear();\n\n grids.add(grid0);\n grids.add(grid1);\n grids.add(grid2);\n grids.add(grid3);\n grids.add(grid4);\n grids.add(grid5);\n grids.add(grid6);\n grids.add(grid7);\n grids.add(grid8);\n grids.add(grid9);\n grids.add(grid10);\n grids.add(grid11);\n grids.add(grid12);\n grids.add(grid13);\n grids.add(grid14);\n grids.add(grid15);\n }", "public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Stage() {\n\n for (int i = 0; i < 20; i++) { // Generate the basic grid array\n ArrayList<Cell> cellList = new ArrayList<Cell>();\n cells.add(cellList);\n for (int j = 0; j < 20; j++) {\n cells.get(i).add(new Cell(10 + 35 * i, 10 + 35 * j));\n }\n }\n\n for (int i = 0; i < cells.size(); i++) { // Generate the list of environment blocks\n ArrayList<Environment> envList = new ArrayList<Environment>();\n environment.add(envList);\n for (int j = 0; j < cells.size(); j++) {\n int cellGenerator = (int) (Math.random() * 100) + 1;\n environment.get(i).add(generateCell(cellGenerator, cells.get(i).get(j)));\n }\n }\n\n grid = new Grid(cells, environment); // Initialise the grid with the generated cells array\n }", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }", "public void createGrid() {\r\n generator.generate();\r\n }", "public void randomInit() {\n Plain plain = new Plain(width + 2);\n grid = new Living[width + 2][width + 2];\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n int randomNum = (int) (Math.random() * 5);\n switch (randomNum) {\n case 0:\n grid[i][j] = new Badger(plain, i, j, 0);\n break;\n case 1:\n grid[i][j] = new Empty(plain, i, j);\n break;\n case 2:\n grid[i][j] = new Fox(plain, i, j, 0);\n break;\n case 3:\n grid[i][j] = new Grass(plain, i, j);\n break;\n case 4:\n grid[i][j] = new Rabbit(plain, i, j, 0);\n break;\n }\n }\n }\n }", "public void initializeGrid() {\n resetGrid(_lifeGrid);\n\n _lifeGrid[8][(WIDTH / 2) - 1] = 1;\n _lifeGrid[8][(WIDTH / 2) + 1] = 1;\n _lifeGrid[9][(WIDTH / 2) - 1] = 1;\n _lifeGrid[9][(WIDTH / 2) + 1] = 1;\n _lifeGrid[10][(WIDTH / 2) - 1] = 1;\n _lifeGrid[10][(WIDTH / 2)] = 1;\n _lifeGrid[10][(WIDTH / 2) + 1] = 1;\n\n }", "public GridPane initializeGridPane() {\n\t\tGridPane world = new GridPane();\n\t\t\n\t\tfor (int x = 0; x < this.columns; x++) {\n\t\t\tfor (int y = 0; y < this.rows; y++) {\n\t\t\t\tRectangle cellGUI = new Rectangle(this.widthOfCells - 1, this.heightOfCells - 1);\n\t\t\t\tcellGUI.setFill(Color.web(\"#FFFFFF\"));\t\t// White cell background color\n cellGUI.setStroke(Color.web(\"#C0C0C0\")); \t// Grey cell border color\n cellGUI.setStrokeWidth(1); \t\t\t\t\t// Width of the border\n\n world.add(cellGUI, x, y);\n this.cellGUIArray[x][y] = cellGUI;\n\n cellGUI.setOnMouseClicked((event) -> {\n \tthis.currentGeneration = this.simulation.getCurrentGeneration();\n for (int i = 0; i < columns; i++) {\n for (int j = 0; j < rows; j++) {\n if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 0) {\n this.currentGeneration[i][j] = 1;\n } else if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 1) {\n this.currentGeneration[i][j] = 0;\n }\n }\n }\n this.simulation.setCurrentGeneration(this.currentGeneration);\n });\n\t\t\t}\n\t\t}\n\t\treturn world;\n\t}", "public void drawGrid() {\r\n\t\tsetLayout(new GridLayout(getSize_w(), getSize_h()));\r\n\t\tfor (int i = 0; i < getSize_h(); i++) {\r\n\t\t\tfor (int j = 0; j < getSize_w(); j++) {\r\n\t\t\t\tcity_squares[i][j] = new Gridpanel(j, i);\r\n\t\t\t\tadd(city_squares[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initGrid() {\n m_emptyHexCount = 0;\n m_hexagons.clear();\n for (int i = 0; i < m_rowNum; i++) {\n ArrayList<Hexagon> tmp = new ArrayList<>();\n int maxColNum;\n if (i % 2 == 0)\n maxColNum = m_colNum;\n else\n maxColNum = m_colNum - 1;\n\n for (int j = 0; j < maxColNum; j++) {\n tmp.add(new Hexagon(m_app));\n m_emptyHexCount++;\n }\n m_hexagons.add(tmp);\n }\n }", "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", "private void initIslandGrid()\n {\n // Add the grid\n int rows = game.getNumRows();\n int columns = game.getNumColumns();\n // set up the layout manager for the island grid panel\n pnlIsland.setLayout(new GridLayout(rows, columns));\n // create all the grid square panels and add them to the panel\n // the layout manager of the panel takes care of assigning them to the\n // the right position\n for ( int row = 0 ; row < rows ; row++ )\n {\n for ( int col = 0 ; col < columns ; col++ )\n {\n pnlIsland.add(new GridSquarePanel(game, row, col));\n }\n }\n }", "private void initGhosts() {\n\t\tghosts[0] = new Ghost(maze, \"pinky\", Cell.positionOfCell(4, 1));\n\t\tghosts[1] = new Ghost(maze, \"blinky\", Cell.positionOfCell(4, 26));\n\t\tghosts[2] = new Ghost(maze, \"clyde\", Cell.positionOfCell(32, 1));\n\t\tghosts[3] = new Ghost(maze, \"inky\", Cell.positionOfCell(32, 26));\n\t\tghosts[4] = new Ghost(maze, \"orson\", Cell.positionOfCell(11, 1));\n\t\tghosts[5] = new Ghost(maze, \"spooky\", Cell.positionOfCell(11, 26));\n\t}", "public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }", "protected Ocean(){\n for (int i=0; i<10; i++){\n for (int j=0;j<10; j++){\n EmptySea empty = new EmptySea();\n ships[i][j] = empty;\n }\n }\n }", "private void initialize() {\r\n\t\tfor (int i = -1; i < myRows; i++)\r\n\t\t\tfor (int j = -1; j < myColumns; j++) {\r\n\t\t\t\tCell.CellToken cellToken = new Cell.CellToken(j, i);\r\n\r\n\t\t\t\tif (i == -1) {\r\n\t\t\t\t\tif (j == -1)\r\n\t\t\t\t\t\tadd(new JLabel(\"\", null, SwingConstants.CENTER));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tadd(new JLabel(cellToken.columnString(), null,\r\n\t\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\t} else if (j == -1)\r\n\t\t\t\t\tadd(new JLabel(Integer.toString(i), null,\r\n\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\telse {\r\n\t\t\t\t\tcellArray[i][j] = new CellsGUI(cellToken);\r\n\r\n\t\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t\t\t\t\tcellArray[i][j].addMouseListener(new MouseCellListener());\r\n\t\t\t\t\tcellArray[i][j].addKeyListener(new KeyCellListener());\r\n\t\t\t\t\tcellArray[i][j].addFocusListener(new FocusCellListener());\r\n\r\n\t\t\t\t\tadd(cellArray[i][j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t}", "public Grid() {\n super(); // create a new JPanel\n grid = new ArrayList<>(); // initialize a list containing the blocks\n \n setLayout(null); // format the component\n setFocusable(false);\n setBackground(Block.deadColor);\n addComponentListener(new java.awt.event.ComponentAdapter() { // detects when the window is resized to resize the grid\n @Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }\n });\n \n // provide a link to the grid to classes so that all instances have access to it\n PathFinder.setGrid(this);\n EscapeBlock.setGrid(this);\n Character.setGrid(this);\n \n }", "public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}", "@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }", "public void initGame() {\n\t\tfor (int i = 0; i < gameSize; i++) {\n\t\t\tfor (int j = 0; j < gameSize; j++) {\n\t\t\t\tgrid[i][j] = new GridNode(GridNode.NodeType.EMPTY);\n\t\t\t\tgridLocker[i][j] = -1;\n\t\t\t}\n\t\t}\n\n\t\t// Snakes are placed into start positions here\n\t\tfor (int i = 0; i < snakesList.size(); i++) {\n\t\t\tint x = (int) (Math.random() * 1000) % gameSize;\n\t\t\tint y = (int) (Math.random() * 1000) % gameSize;\n\t\t\tif (grid[x][y].nodeType == GridNode.NodeType.EMPTY) {\n\t\t\t\tSnake currentSnake = snakesList.get(i);\n\t\t\t\tgrid[x][y].SnakeID = currentSnake.snakeID;\n\t\t\t\tcurrentSnake.initalizeSnakeLocation(x, y, gameSize);\n\t\t\t\tgrid[x][y].nodeType = GridNode.NodeType.SNAKEHEAD;\n\t\t\t} else {\n\t\t\t\t// Every snake has to be allocated a spot so go back to the\n\t\t\t\t// index\n\t\t\t\t// of the snake to add and try again\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\t// Places some snake food randomly somewhere\n\t\tfor(int i = 0; i <4; i++) {\n\t\t\tplaceBonus();\n\t\t}\n\t}", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }", "void initializeGrid() {\n int maxBombs = GridHelper.getMaxBombs((int)Math.pow(hiddenGrid.length, 2.0)); // A: How many bombs CAN this have?\n bombsPlaced = 0; // B: How many bombs DOES this have?\n int cycleCap = randomCycleCap(); // C: Sets cycleCap to a randomly generated number between 0 and 15,\n int cycleCellCount = 0; // D: cycleCap starts at zero and goes up\n\n for (int i = 0; i < hiddenGrid.length; i++) {\n for (int j = 0; j < hiddenGrid[i].length; j++) {\n\n if (hiddenGrid[i][j] == null) {\n setCell(i, j, 0); // a: initializes the null value to 0\n }\n if((cycleCellCount == cycleCap) && (bombsPlaced < maxBombs)){\n placeBomb(i, j, -1); // a: turns this cell into a bomb, increments cells around it\n cycleCellCount = 0; // b: Restarts the 'cycle counter'\n cycleCap = randomCycleCap(); // c: Gives us a new number to 'count down' to, to place the next bomb\n } else{\n ++cycleCellCount; // a. Moves to the next cell in the 'cycle' having done nothing\n }\n }\n }\n System.out.println(\"Bombs placed: \" + bombsPlaced);\n }", "public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}", "@Override\n protected void populate()\n {\n for (int i = 0; i < getHeight(); i++)\n {\n add(new Tile(), 1, i);\n add(new Block(), 2, i);\n add(new Tile(), 3, i);\n }\n for (int i = 2; i < 5; i++)\n {\n add(new LightableTile(), 4, i);\n }\n }", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "private void createGrid() {\n String imageButtonID;\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n imageButtonID = \"painterImageButton_\" + i + j;\n\n //This step allows easy assignment of each imageButton with a nested loop\n int resID = this.getResources().getIdentifier(imageButtonID, \"id\", this.getPackageName());\n grid[i][j] = findViewById(resID);\n grid[i][j].setOnClickListener(this); //Response to each button click\n\n //Generate a random number to decide whether to put white or black here\n double x = Math.random() * 2;\n if (x < 1) {\n grid[i][j].setImageResource(R.drawable.black_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_black));\n } else if (x < 2) {\n grid[i][j].setImageResource(R.drawable.white_circle);\n grid[i][j].setContentDescription(getString(R.string.alien_painter_white));\n }\n\n }\n }\n\n //Make sure the grid isn't entirely black at the beginning\n grid[1][1].setImageResource(R.drawable.white_circle);\n grid[1][1].setContentDescription(\"white\");\n }", "private void initialize(int index) {\n\t\tthis.NW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.NE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.SW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMaxY());\n\t\tthis.SE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMaxY());\n\t\tswitch (this.type) {\n\t\tcase (TownTile.GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.WALL):\n\t\t\tthis.addImageWithBoundingBox(ResourceManager.getImage(DogWarriors.wallImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.SHRUB):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.worldImages[index]), \n\t\t\t\t\tnew Vector(0.0f, -16.0f));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.CAT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\t}\n\t}", "private void createGraphics() {\n\t\toppStatGrid = new GridPane();\n\t\toppStatGrid.setHgap(5);\n\t\tColumnConstraints columnOpp1 = new ColumnConstraints();\n\t\tcolumnOpp1.setMinWidth(gameScene.getWidth()*0.3);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnOpp2 = new ColumnConstraints();\n\t\tcolumnOpp2.setMinWidth(gameScene.getWidth()*0.3);\n\t\toppStatGrid.getColumnConstraints().addAll(columnOpp1,columnOpp2);\n\t\tRowConstraints rowOpp = new RowConstraints();\n\t\trowOpp.setMinHeight(gameScene.getHeight()*0.1);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\n\t\tlocStatGrid = new GridPane();\n\t\tlocStatGrid.setHgap(5);\n\t\tColumnConstraints columnLoc1 = new ColumnConstraints();\n\t\tcolumnLoc1.setMinWidth(gameScene.getWidth()*0.1);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnLoc2 = new ColumnConstraints();\n\t\tcolumnLoc2.setMinWidth(gameScene.getWidth()*0.3);\n\t\tlocStatGrid.getColumnConstraints().addAll(columnLoc1,columnLoc2);\n\t\tRowConstraints rowLoc2 = new RowConstraints();\n\t\trowLoc2.setMinHeight(gameScene.getHeight()*0.1);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\n\t\topponentName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\tlocalName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\topponentLevel.setFont(Font.font(defaultFont, 14));\n\t\tlocalLevel.setFont(Font.font(defaultFont, 14));\n\t\topponentHealth.setFont(Font.font(defaultFont, 14));\n\t\tlocalHealth.setFont(Font.font(defaultFont, 14));\n\n\t\topponentName.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localName, HPos.RIGHT);\n\t\topponentLevel.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalLevel.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localLevel, HPos.RIGHT);\n\t\topponentHealth.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalHealth.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localHealth, HPos.RIGHT);\n\n\t\topponentHealthBar = new Rectangle();\n\t\tlocalHealthBar = new Rectangle();\n\t\topponentHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\tlocalHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\topponentHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\tlocalHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\topponentHealthBar.setArcWidth(5);\n\t\topponentHealthBar.setArcHeight(5);\n\t\tlocalHealthBar.setArcWidth(5);\n\t\tlocalHealthBar.setArcHeight(5);\n\t\t/*NumberBinding oppHealthBind = gameScene.property\n\t\topponentHealthBar.prop*/\n\n\t\topponentHealthBar.setEffect(new Lighting());\n\t\tlocalHealthBar.setEffect(new Lighting());\n\n\t\topponentHealthBar.setFill(Color.DARKRED);\n\t\tlocalHealthBar.setFill(Color.DARKRED);\n\n\t\toppStatGrid.add(opponentName, 0, 0);\n\t\toppStatGrid.add(opponentLevel, 1, 0);\n\t\toppStatGrid.add(opponentHealthBar, 0, 1);\n\t\toppStatGrid.add(opponentHealth, 1, 1);\n\n\t\tlocStatGrid.add(localLevel, 0, 0);\n\t\tlocStatGrid.add(localName, 1, 0);\n\t\tlocStatGrid.add(localHealthBar, 1, 1);\n\t\tlocStatGrid.add(localHealth, 0, 1);\n\n\t\tAnchorPane.setTopAnchor(oppStatGrid, 10.0);\n\t\tAnchorPane.setLeftAnchor(oppStatGrid, 10.0);\n\n\t\tAnchorPane.setBottomAnchor(locStatGrid, 10.0);\n\t\tAnchorPane.setRightAnchor(locStatGrid, 10.0);\n\n\t\tthis.getChildren().addAll(oppStatGrid,locStatGrid);\n\t\t\n\t\toppPane = new Pane();\n\t\toppPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\toppPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tlocPane = new Pane();\n\t\tlocPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\tlocPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tAnchorPane.setBottomAnchor(locPane, 10.0);\n\t\tAnchorPane.setLeftAnchor(locPane, 10.0);\n\t\t\n\t\tAnchorPane.setTopAnchor(oppPane, 10.0);\n\t\tAnchorPane.setRightAnchor(oppPane, 10.0);\n\t\t\n\t\tthis.getChildren().addAll(locPane,oppPane);\n\t\t\n\n\t}", "public Player() { \n grid = new Cell[GRID_DIMENSIONS][GRID_DIMENSIONS]; //size of grid\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n grid[i][j] = new Cell(); //creating all Cells for a new grid\n }\n }\n \n fleet = new LinkedList<Boat>(); //number of boats in fleet\n for (int i = 0; i < NUM_BOATS; i++) {\n Boat temp = new Boat(BOAT_LENGTHS[i]); \n fleet.add(temp);\n }\n shipsSunk = new LinkedList<Boat>();\n }", "public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }", "private static List<GridEntity> setup(MainWindow mainWindow) {\n\t\tList<GridEntity> gridEntities = new ArrayList<GridEntity>();\n\n\t\tIconGrid iconGrid = new IconGrid(GRID_ROWS, GRID_COLS, mainWindow.getSize());\n\t\tmainWindow.addPanel(iconGrid);\n\t\ticonGrid.revalidate();\n\n\t\tJLabel label = iconGrid.getLabel(4, 3);\n\t\tRobot robot = new Robot(\"stitch\", iconGrid, 4, 3);\n\t\tlabel.setIcon(robot.getIcon(label.getSize()));\n\n\t\tmainWindow.revalidate();\n\n\t\tgridEntities.add(robot);\n\n\t\treturn gridEntities;\n\t}", "private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void populateGrid(Cell[][] populateGrid) {\n\n //Iterate through the grid and create dead cells at all locations\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n populateGrid[x][y] = new Cell(this, x, y, false);\n }\n }\n }", "public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }", "public RandomGrid() {\n random = new Random(System.currentTimeMillis());\n /*\n indexes = new LinkedList<>();\n for (int i = 0; i < 81; i++) {\n indexes.add(i);\n }\n numbers = new ArrayList<>(9);\n for (int i = 1; i <= 9; i++) {\n numbers.add(i);\n }\n Collections.shuffle(indexes, random);\n */\n grid = new int[9][9];\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n grid[i][j] = 0;\n }\n }\n subGrid = new SubGrid[3][3];\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n subGrid[i][j] = new SubGrid();\n }\n }\n }", "public Grid()\n {\n height = 4;\n\twidth = 4;\n\tcases = new Case[height][width];\n }", "public GameWorld()\n { super(3000, 1000, 1);\n planet[1][0]=new HomePlanet();\n planet[0][1]=new AlienPlanet();\n planet[0][2]=new AlienPlanet();\n planet[1][1]=new AlienPlanet();\n planet[1][2]=new AlienPlanet();\n prepare();\n \n }", "private void InitializeApp() {\n\n for (int y = 0; y < 11; y++) {\n for (int x = 0; x < 11; x++) {\n defendingGrid[x][y] = new GameCell();\n attackingGrid[x][y] = new GameCell();\n }\n }\n\n// attackingGrid[5][5].setMiss(true);\n// attackingGrid[5][6].setHit(true);\n// attackingGrid[5][7].setWaiting(true);\n// attackingGrid[5][7].setHasShip(true);\n\n }", "public Grid(FourInARow fur) {\n System.out.println(\"grid créer\");\n this.grid = new GridPane();\n this.p4 = fur;\n this.matrice = new Matrice(7, 7, this.p4);\n\n// File imgEm = new File(\"./img/tokenE.png\");\n// File imgEmptyD = new File(\"./img/tokenEDark.png\");\n// File imgRed = new File(\"./img/tokenR.png\");\n// File imgRedD = new File(\"./img/tokenRDark.png\");\n// File imgYellow = new File(\"./img/tokenY.png\");\n// File imgYellowD = new File(\"./img/tokenYDark.png\");\n\n this.placerImage();\n this.majAffichage();\n //this.greyColumn(0,false);\n }", "public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}", "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}", "public void initGrid(Game game) {\n\t\t\t\n\t\t\tint size = game.getBoard().size();\n\t\t\tcellLabels = new Matrix<JLabel>(size);\n\t\t\t\n\t\t\t\n\t\t\tleftPanel.removeAll();\n\t\t\tleftPanel.setLayout(new GridLayout(size,size));\n\t\t\t\n\t\t\tBorder border = BorderFactory.createLineBorder(Color.black,1);\n\t\t\tfor(int i = 0 ; i < cellLabels.size(); ++i) {\n\t\t\t\tfor(int j = 0 ; j < cellLabels.size() ; ++j) {\n\t\t\t\t\tJLabel curr_l = new JLabel(\"\");\n\t\t\t\t\t\n\t\t\t\t\tcurr_l.setBorder(border);\n\t\t\t\t\tcurr_l.setHorizontalAlignment(JLabel.CENTER);\n\t\t\t\t\tcellLabels.set(j, i, curr_l);\n\t\t\t\t\t\n\t\t\t\t\tJLabel label = cellLabels.get(j, i);\n\t\t\t\t\tlabel.setOpaque(true);\n\t\t\t\t\t\n\t\t\t\t\tleftPanel.add(label);\n\t\t\t\t\tCell curr = game.getBoard().get(j, i);\n\t\t\t\t\t\n\t\t\t\t\tlabel.setBackground(curr.color());\n\t\t\t\t\t\n\t\t\t\t\tif(curr.color() == Color.blue) {\n\t\t\t\t\t\tlabel.setText(curr.toString());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// We can't place a hunter on a corner because he could be blocked\n\t\t\t\t\tif((j == 1 && i == 1) || (j == cellLabels.size()-2 && i == 1) || (j == cellLabels.size()-2 && i == cellLabels.size()-2) ||(j == 1 && i == cellLabels.size()-2)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinal int i_inner = i;\n\t\t\t\t\tfinal int j_inner = j;\n\t\t\t\t\t\n\t\t\t\t\t// Set the listener to place hunters by clicking\n\t\t\t\t\tif(curr.color() == Color.blue || curr.color() == Color.gray) {\n\t\t\t\t\t\tlabel.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\t\tcontroller.addHunter(j_inner, i_inner);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t\tleftPanel.repaint();\n\t\t\tleftPanel.revalidate();\n\t\t\tthis.gridIsInit = true;\n\t\t\t\n\t\t\tframe.setEnable(\"play\",true);\n\t\t\tframe.setEnable(\"save\",true);\n\t\t\tframe.setEnable(\"round\",true);\n\t\t\tframe.setEnable(\"replay\",true);\n\n\t\t\tinitDataPanel(game);\n\t\t\t\n\t\t}", "private void initializeGrid() {\r\n if (this.rowCount > 0 && this.columnCount > 0) {\r\n this.cellViews = new Rectangle[this.rowCount][this.columnCount];\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n Rectangle rectangle = new Rectangle();\r\n rectangle.setX((double)column * CELL_WIDTH);\r\n rectangle.setY((double)row * CELL_WIDTH);\r\n rectangle.setWidth(CELL_WIDTH);\r\n rectangle.setHeight(CELL_WIDTH);\r\n this.cellViews[row][column] = rectangle;\r\n this.getChildren().add(rectangle);\r\n }\r\n }\r\n }\r\n }", "public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}", "public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }", "public void intializeGridBall() {\n\t\tint incWidth = DEFUALT_WIDTH /15;\t\n\t\t\n\t\tfor(int i = 0;i<gridBall.length;i++) {\t\t\t\n\t\t\tfor(int j = 0;j < gridBall[i].length;j++) {\n\t\t\t\tPoint2D point= new Point2D.Float();\n\t\t\t\tpoint.setLocation((incWidth*i)+(incWidth/2),(incWidth*j)+(incWidth/2));\n\t\t\t\tColor c = getRandomColor();\n\t\t\t\tgridBall[i][j] = new Ball(c,point);\n\t\t\t}\n\t\t}\n\t}", "public Grid ()\n {\n mGrid = new Move[3][3];\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(Player.NONE, row, column);\n }", "public void setAiGrid() {\n\t\taiGrid = new Grid(false);\n\t\tsetShips(aiGrid,aiBattleShipsList,0);//1\n\t}", "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 initializeGrid() {\n // 50 pixel first row for banner\n addPercentRows(root, 5);\n // second row takes up 100% of the remaining space\n addPercentRows(root, 95);\n // One column at 100% width\n addPercentColumns(root, 100);\n\n Label title = new Label(\"Mission Control\");\n title.setFont(new Font(\"Arial\", 22));\n title.setTextFill(Color.WHITE);\n\n GridPane contentGrid = new GridPane();\n // Only need one row as content will fill the entire vertical space\n addPercentRows(contentGrid, 100);\n\n // Need three columns, 1/6 column for nav, 2/3 for main content, 1/6 for warnings\n double sidePanelPercent = (1d / 6d) * 100d;\n double centerPanelPercent = (2d / 3d) * 100d;\n addPercentColumns(contentGrid, sidePanelPercent, centerPanelPercent, sidePanelPercent);\n\n\n addNodeToGrid(title, root, 0, 0, Pos.CENTER, Colours.PRIMARY_COLOUR, Insets.EMPTY);\n // NOTE:: This assumes that it is the only child added to root by this point to set ID.\n // If this is changed DynamicGuiTests will break.\n root.getChildren().get(0).setId(\"pnBanner\");\n\n addNodeToGrid(contentGrid, root, 1, 0);\n\n setupCenterPanel(contentGrid);\n setupRightHandSidePanel(contentGrid);\n setupLeftHandSidePanel(contentGrid);\n\n // Assert they are created - mainly to bypass Spot bugs issues.\n assert this.navigationView != null;\n assert this.graphView != null;\n assert this.informationView != null;\n }", "public void initialize() {\n\t\t// set seed, if defined\n\t\tif (randomSeed > Integer.MIN_VALUE) {\n\t\t\tapp.randomSeed(randomSeed);\n\t\t}\n\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = new Cell(\n\t\t\t\t\tapp,\n\t\t\t\t\tcellSize,\n\t\t\t\t\tcolors[(int)app.random(colors.length)],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\tc.position = PVector.add(offset, new PVector(x * cellSize, y * cellSize));\n\t\t\t\tcells[x + (y * gridX)] = c;\n\t\t\t\tnewCells[x + (y * gridX)] = c;\n\t\t\t}\n\t\t}\n\t}", "public RegularGrid() {\r\n }", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "public Grid() {\n }", "private void initEntities() {\n\t\tship = new ShipEntity(this,\"ship.gif\",370,550);\n\t\tentities.add(ship);\n\t\tscore = 0;\n\t\t// create a block of aliens (5 rows, by 12 aliens, spaced evenly)\n\t\talienCount = 0;\n\t\tfor (int row=0;row<5;row++) {\n\t\t\tfor (int x=0;x<12;x++) {\n\t\t\t\tEntity alien = new AlienEntity(this,\"alien.gif\",100+(x*50),(50)+row*30);\n\t\t\t\tentities.add(alien);\n\t\t\t\talienCount++;\n\t\t\t}\n\t\t}\n\t}", "public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }", "void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "private void init() {\r\n\r\n\t\tPlanetLayoutGenerator gen = new PlanetLayoutGenerator();\r\n\t\tint planetCount = 15;\r\n\t\tint width = 5, height = 5, depth = 5;\r\n\t\tint[][][] layout = gen.generate(width, height, depth, planetCount);\r\n\t\tfinal float minSize = 4, maxSize = 10;\r\n\t\tfinal float gap = (C.World.PlanetBoxSize - maxSize*width)/(width-1);\r\n\r\n\t\tTextureRegion textures[] = new TextureRegion[] {\r\n\t\t\tassets.planetNeptune,\r\n\t\t\tassets.planetSaturn,\r\n\t\t\tassets.planetEarth,\r\n\t\t};\r\n\t\tfloat x = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat y = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat z = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\r\n\t\tfor (int ix = 0; ix < width; ++ix) {\r\n\t\t\tfor (int iy = 0; iy < height; ++iy) {\r\n\t\t\t\tfor (int iz = 0; iz < depth; ++iz) {\r\n\t\t\t\t\tif (layout[ix][iy][iz] == 1) {\r\n\t\t\t\t\t\tTextureRegion tex = textures[(ix+iy+iz)%3];\r\n\t\t\t\t\t\tfloat size = MathUtils.random(minSize, maxSize);\r\n\r\n\t\t\t\t\t\tfactory.createPlanet(x+ix*(maxSize+gap), y+iy*(maxSize+gap), z+iz*(maxSize+gap), size, 0, tex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tEntity player = factory.createPlayerShip(0, 0, 5);\r\n\t\tplayerSystem.setPlayer(player);\r\n\r\n\t\tcollisions.relations.connectGroups(CollisionGroups.PLAYER_2D, CollisionGroups.PLANETS_2D);\r\n\t}", "void setGridX(int i);", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t\tLine(\"1-2\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\tBus(\"2\").\n\t\t\t\t\t\tControllableDemand(\"S\").\n\t\t\t\t\t\tLine(\"2-3\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\t\tBus(\"3\").\n\t\t\t\t\t\t\t\tLoad(\"L\").\n\t\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tLine(\"2-4\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\tBus(\"4\").\n\t\t\t\t\t\t\tDistributedSource(\"DG\").\n\t\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\tterminate().\n\t\t\tterminate().\n\t\tgrid();\n\t\t\n\t\t// x_0:\n\t\tLoad load = grid.getLoad(\"L\");\n\t\tControllableDemand storage = grid.getControllableDemand(\"S\");\n\t\tDistributedSource dg = grid.getDistributedSource(\"DG\");\n\t\tsetupUnits(load, storage, dg);\n\t\t\n\t\treturn grid;\n\t}", "public Grid() {\n\t\tthis.moveCtr = 0; \n\t\tlistOfSquares = new ArrayList<Square>();\n\t\t//populating grid array with squares\n\t\tfor(int y = 0; y < GridLock.HEIGHT; y++) {\n\t \tfor(int x = 0; x < GridLock.WIDTH; x++) { //square coordinates go from (0,0) to (5,5)\n\t \tSquare square;\n\t \t//Setting up a square which has index values x,y and the size of square.\n\t\t\t\t\tsquare = new Square(x, y, GridLock.SQUARE_SIZE, GridLock.SQUARE_SIZE); \n\t\t\t\t\tgrid[x][y] = square;\n\t\t\t\t\tlistOfSquares.add(square);\n\t \t\t\t\t\t\n\t \t\t}\n\t \t}\n \t\n }", "public GridWorld()\n\t{\n\t\tadd(grid = new Grid());\n\t\tfade = new Fade();\n\t\tfade.fadeIn();\n\t\tbackground.color().setAlpha(0.6f);\n\t}", "private void placeEnemyShips() {\n\t\tint s51 = (int) (Math.random() * 6); // mostly random numbers\n\t\tint s52 = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tpgrid[s51 + i][s52] = 1;\n\n\t\t// Places the ship of length 3\n\t\tint s31 = (int) (Math.random() * 10);\n\t\tint s32 = (int) (Math.random() * 8);\n\t\twhile (pgrid[s31][s32] == 1 || pgrid[s31][s32 + 1] == 1 // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\t\t|| pgrid[s31][s32 + 2] == 1) {\n\t\t\ts31 = (int) (Math.random() * 10);\n\t\t\ts32 = (int) (Math.random() * 8);\n\t\t}\n\t\tpgrid[s31][s32] = 1;\n\t\tpgrid[s31][s32 + 1] = 1;\n\t\tpgrid[s31][s32 + 2] = 1;\n\n\t\t// Places the ship of length 1\n\t\tint s21 = (int) (Math.random() * 10);\n\t\tint s22 = (int) (Math.random() * 9);\n\t\twhile (pgrid[s21][s22] == 1 || pgrid[s21][s22 + 1] == 1) { // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\ts21 = (int) (Math.random() * 10);\n\t\t\ts22 = (int) (Math.random() * 9);\n\t\t}\n\t\tpgrid[s21][s22] = 1;\n\t\tpgrid[s21][s22 + 1] = 1;\n\n\t}", "public SameGnomeFrame() {\n\t\tsetSize(DEFUALT_WIDTH,DEFUALT_WIDTH);\n\t\tintializeGridBall();\n\t\tgrid = new GridComponent(gridBall);\n\t\tadd(grid);\n\t\t\n\t}", "private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "private void placeAllShips()\n {\n \t\n \t//place 2 aircrafts\n \tfor(int n = 0; n < 2; n++){\n \trandomRow = rnd.nextInt(10); //get random integer from 0-9\n \trandomCol = rnd.nextInt(10);//get random integer from 0-9\n \trandomDir = rnd.nextInt(2);//get random integer from 0-1\n \twhile(!checkOverlap(randomRow,randomCol,AIRCRAFT_CARRIER_LENGTH)){ //check if random integers overlap existing ones\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \t//place aircraft if no overlap\n \tfor(int i = randomRow; i <randomRow + AIRCRAFT_CARRIER_LENGTH ; i++){\n \t\tfor(int j = randomCol; j < randomCol + AIRCRAFT_CARRIER_LENGTH; ++j){\n \t\t\tif(randomDir == DIRECTION_RIGHT)\n \t\t\t\tgrid[i][randomCol] = SHIP;\n \t\t\tif(randomDir == DIRECTION_DOWN)\n \t\t\t\tgrid[randomRow][j] = SHIP;\n \t\t\t}\n \t\t}\n \t}\n \t\n \t\n \t//place battleship\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,BATTLESHIP_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i <randomRow + BATTLESHIP_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + BATTLESHIP_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place destroyer\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,DESTROYER_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + DESTROYER_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + DESTROYER_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place submarine\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,SUBMARINE_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + SUBMARINE_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + SUBMARINE_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n \t//place patrol\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,PATROL_BOAT_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + PATROL_BOAT_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + PATROL_BOAT_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n }", "protected void placeRandomly ( Thing thing ) {\n\t\tfor ( ; true ; ) {\n\t\t\tint row = (int) (Math.random() * numrows_);\n\t\t\tint col = (int) (Math.random() * numcols_);\n\t\t\tif ( field_[row][col] == null ) {\n\t\t\t\tfield_[row][col] = thing;\n\t\t\t\tif ( thing instanceof Animal ) {\n\t\t\t\t\t((Animal) thing).setPosition(row,col);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}", "public Grid()\n {\n dest = new GridReference[2];\n dest[0] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.2));\n dest[1] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.8));\n //dest[2] = new GridReference(5,50);\n defaultStart = new GridReference((int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.5));\n defaultWalker = Walkers.WEIGHTED2;\n \n createField();\n \n walkers = new ArrayList<>();\n //addUnits(randDest(), randDest());\n /*for (int i = 0; i < grassPatches.length; i++)\n {\n System.out.println(i + \":\" + grassPatches[i]);\n }*/\n }", "public MyWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n\n //could have as many RideLines as capasity dictates\n rides = new RideLines[MAX_RIDES];\n\n currentRide=0; //initially, we have 0 prisoners\n \n //Create a Load button at the top of the screen\n load = new LoadButton();\n addObject(load, 250, 20);\n \n //Create a Merge button at the top of the screen\n MergeButton merge = new MergeButton();\n addObject(merge, 350, 20);\n \n //Create a Sort By Name button at the top of the screen\n SortByName sortName = new SortByName();\n addObject(sortName, 450, 20);\n \n //Create a Sort by queue length at the top of the screen\n SortByLength sortLength = new SortByLength();\n addObject(sortLength, 600, 20);\n \n\n }", "public void init(){\n\t\tfor (int x=0;x<7;x++){\n\t\t\ttop[x]=0;\n\t\t\tfor(int y=0;y<6;y++){\n\t\t\t\tgrid[x][y]=0;\n\t\t\t}\n\t\t}\n\t\tbufferImage= createImage(350,500);\n\t\tbufferGraphic= bufferImage.getGraphics();\n\t\tGraphics g = bufferGraphic;\n\t\tpaint(g);\n\t\t\n\t\taddMouseListener(new MouseInputAdapter() { \n\t\t\tpublic void mouseClicked(MouseEvent e) {\t\t\t\n\t\t\t\tGraphics g = bufferGraphic;\n\t\t\t\tint x=e.getX();\n\t\t\t\tint y=e.getY();\n\t\t\t\t\n\t\t\t\t//check for placement, check for winner\n\t\t\t\tif( y<=400 && y>=100){\n\t\t\t\t\t\tmarkspot(x);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\t\n\t}", "private void initBars()\n\t{\n\t\tfor (int i = 0; i < Constants.MAX_VALUE; i++)\n\t\t{\n\t\t\trows[i] = new Bar();\n\t\t\tcolumns[i] = new Bar();\n\t\t\tgrids[i] = new Bar();\n\t\t}\n\n\t\tfor (int rowIndex = 0; rowIndex < this.nodes.length; rowIndex++)\n\t\t{\n\t\t\tNode[] row = this.nodes[rowIndex];\n\t\t\tfor (int colIndex = 0; colIndex < row.length; colIndex++)\n\t\t\t{\n\t\t\t\tNode node = row[colIndex];\n\n\t\t\t\t// Make Rows\n\t\t\t\tthis.rows[rowIndex].nodes[colIndex] = node;\n\t\t\t\tnode.setRow(this.rows[rowIndex]);\n\n\t\t\t\t// Make Columns\n\t\t\t\tthis.columns[colIndex].nodes[rowIndex] = node;\n\t\t\t\tnode.setColumn(this.columns[colIndex]);\n\n\t\t\t\t// Make Grid\n\t\t\t\t// the index of Grid Array\n\t\t\t\tint gridIndex = colIndex / 3 + (rowIndex / 3) * 3;\n\n\t\t\t\t// the index of nodes array of one grid object\n\t\t\t\tint gridNodeIndex = colIndex % 3 + (rowIndex % 3) * 3;\n\t\t\t\tthis.grids[gridIndex].nodes[gridNodeIndex] = node;\n\t\t\t\tnode.setGrid(this.grids[gridIndex]);\n\t\t\t}\n\t\t}\n\t}", "public Sudoku() {\n\t\tgrid = new Variable[ROWS][COLUMNS];\n\t}", "public void init() {\n\t\tfor(int i = 0; i < roamingAliens; ++i) {\n\t\t\tAlien alien = new Alien(ColorUtil.MAGENTA, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) alien); \n\t\t}\n\t\tfor(int i = 0; i < roamingAstronauts; ++i) {\n\t\t\tAstronaut astronaut = new Astronaut(ColorUtil.GREEN, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) astronaut);\n\t\t}\n\t\tgameObject.add((Spaceship.getSpaceship()));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t\tthis.clearChanged();\n\t}", "protected void setInitialStates() {\n\n\t\tchar[][] states = gridConfig.getCellConfiguration();\n\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = simMap.get(states[i][j]).copy();\n\t\t\t\tinitializeCell(i, j, c);\n\t\t\t}\n\t\t}\n\t\troot.getChildren().add(pane);\n\t}", "public void init(GameContainer container) throws SlickException {\n\t\t\n\t\tswitch (species) {\n\t\tcase AQUA:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Aqua_1S_U.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Aqua_1S_D.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Aqua_1S_L.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Aqua_1S_R.png\", 25, 25);\n\t\t\tbreak;\n\t\tcase HERBA:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Terra_S1_U.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Terra_S1_D.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Terra_S1_L.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Terra_S1_R.png\", 25, 25);\n\t\t\tbreak;\n\t\tcase LITUS:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Up.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Down.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Left.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Right.png\", 25, 25);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Up.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Down.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Left.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Right.png\", 25, 25);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tup = new Animation(movmentUp, 200);\n\t\tdown = new Animation(movmentDown, 200);\n\t\tleft = new Animation(movmentLeft, 200);\n\t\tright = new Animation(movmentRight, 200);\n\t\t\n\t\tsprite = right;\n\t}", "private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }", "public void start() {\r\n for (int i = 0; i < gridSize; i++){\r\n increaseGridSize();\r\n }\r\n createRectangles();\r\n addRectanglesToGrid(grid, rectangles);\r\n Collections.shuffle(rectangles);\r\n setBoard();\r\n }", "private void layTiles() {\n board = new Tile[height][width];\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n layTile(new Tile(i, j));\n }\n }\n }", "private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tgrid[row][col] = EMPTY;\n \t\t}\n \t}\n }", "public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }", "public GridLocation(){ //of the grid at the moment\n charactersOccupiedTheLocation=new Object[4];\n }", "public void initializeMyCellGrid(AbstractXml myXml) {\n this.myXml = myXml;\n Map configMap = new HashMap<Point, CellState>();\n\n switch (myXml.getMyTitle()) {\n case \"Segregation\":\n setSegregation(configMap);\n break;\n case \"Game Of Life\":\n setGameOfLife(configMap);\n break;\n case \"Wa-Tor\":\n setWaTor(configMap);\n break;\n case \"Percolation\":\n setPercolation(configMap);\n break;\n case \"Fire\":\n setFire(configMap);\n break;\n case \"Ant Foraging\":\n setAnt(configMap);\n System.out.println(myXml.getMaxAnts());\n System.out.println(myXml.getEvaporation());\n System.out.println(myXml.getDiffusion());\n break;\n case \"Rock Paper Scissors\":\n cellGrid = new RockPaperScissorGrid(myXml.getCellGridRowNum(), myXml.getCellGridColNum(), myXml.getRate(), myXml.getPercentage());\n this.stateList = RockPaperScissorCell.STATES_LIST;\n }\n cellGrid.initializeGrids(initialConfigMap);\n cellGrid.assignNeighborsToEachCell();\n System.out.println(myXml.getCellGridColNum());\n }", "private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t}", "@Override\n\tprotected void placeStones(int numStones) {\n\n\t\tShape pitBounds = this.getShape();\n\t\tdouble pitW = pitBounds.getBounds().getWidth();\n\t\tdouble pitH = pitBounds.getBounds().getHeight();\n\t\t\n\n\t\tint stoneWidth = this.stoneIcon.getIconWidth();\n\t\tint stoneHeight = this.stoneIcon.getIconHeight();\n\n\t\t\t\n\t\tfor (int i = 0; i < numStones; i++){\n\t\t\tboolean locationFound = false;\n\t\t\tdo{\n\t\t\t\tfloat x = (float) Math.random();\n\t\t\t\tfloat y = (float) Math.random();\n\n\t\t\t\tx *= pitW;\n\t\t\t\ty *= pitH;\n\t\t\t\t\n\t\t\t\tEllipse2D.Float stoneBounds = new Ellipse2D.Float((float) (x+pitBounds.getBounds().getX()), (float) (y+pitBounds.getBounds().getY()), (float) (stoneWidth), (float) (stoneHeight));\n\n\t\t\t\tSystem.out.println(stoneBounds.getBounds());\n\t\t\t\tpitBounds.getBounds().setLocation(0, 0);\n\t\t\t\tArea pitArea = new Area(pitBounds);\n\t\t\t\tArea pendingStoneLocation = new Area(stoneBounds);\n\t\t\t\tArea intersectionArea = (Area) pitArea.clone();\n\t\t\t\tintersectionArea.add(pendingStoneLocation);\n\t\t\t\tintersectionArea.subtract(pitArea);\n\t\t\t\t\n\t\t\t\tif(intersectionArea.isEmpty() ){\n\t\t\t\t\tlocationFound = true;\n\t\t\t\t\tPoint2D p = new Point2D.Float((float) (x/pitW), (float) (y/pitH));\n\t\t\t\t\trelativeStoneLocations.add(p);\n\t\t\t\t\tSystem.out.println(p);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} while(!locationFound);\n\t\n\t\t}\n\t}", "public void populateRandomly(final EVGameState state)\n \t{\n \t\tfor (int i = 0; i < 6; i++) {\n \t\t\tfinal int width = MathUtils.getRandomIntBetween(32, 128);\n \t\t\tfinal int height = MathUtils.getRandomIntBetween(24, 72);\n \t\t\tfinal Point3D origin = getRandomSolarPoint(Math.max(width, height));\n \t\t\tfinal SolarSystem tSolar = SolarSystem.randomSolarSystem(width, height, origin, state);\n \t\t\taddSolarSystem(tSolar);\n \t\t}\n\t\tfor (int i = 0; i < 10; i++) {\n \t\t\tfinal SolarSystem ss1 = (SolarSystem) MathUtils.getRandomElement(aSolarSystems.values());\n \t\t\tfinal SolarSystem ss2 = (SolarSystem) MathUtils.getRandomElement(aSolarSystems.values());\n \t\t\tif (ss1.equals(ss2)) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tfinal Portal portal1 = new Portal(state.getNextPropID(), state.getNullPlayer(), ss1.getWormholeLocation(), ss1, ss2);\n \t\t\tfinal Portal portal2 = new Portal(state.getNextPropID() + 1, state.getNullPlayer(), ss2.getWormholeLocation(), ss2,\n \t\t\t\t\tss1);\n \t\t\tfinal Wormhole tempWorhmhole = new Wormhole(portal1, portal2, ss1.getPoint3D().distanceTo(ss2.getPoint3D()), state);\n \t\t\taddWormhole(tempWorhmhole, state);\n \t\t}\n \t}", "public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}", "public GridPane() {\n\t\t for (int i=0;i<MAX_X; i++) {\n\t\t\tfor (int j=0;j<MAX_Y;j++) {\n\t\t\t\tseed[i][j] = new Cell(i,j,false);\n\t\t\t}//end for j\n\t\t }//end for i\n\t\n\t \tdefaultBackground = getBackground();\n\t\n\t MatteBorder border = new MatteBorder(1, 1, 1, 1, Color.BLACK);\n\t \tthis.setBorder(border);\n\t \t\t\n\t\t addMouseListener(new MouseAdapter() {\n\t @Override\n\t public void mouseClicked(MouseEvent e) {\n\t \t int x1 = (int)(e.getX()/CELL_WIDTH);\n\t \t int y1 = (int)(e.getY()/CELL_WIDTH);\n\t \t if(seed[x1][y1].isAlive()) {\n\t \t\t seed[x1][y1].isAlive = false;\n\t \t }\n\t \t else {\n\t \t\t seed[x1][y1].isAlive = true;\n\t \t }\n//\t \t System.out.println(\"[\"+x1+\",\"+y1+\"]\");\n\t repaint();\n\t }\n\t });\n\t }", "static void neighborhood()\r\n { \r\n // Puts the earth in a world and the three different color turtles in that world\r\n earth = new World();\r\n turtle1 = new Turtle(earth);\r\n turtle1.setColor(Color.BLUE);\r\n turtle2 = new Turtle(earth);\r\n turtle2.setColor(Color.RED);\r\n turtle3 = new Turtle(earth);\r\n turtle3.setColor(Color.GREEN);\r\n house(100, 100, turtle1);\r\n house(250, 100, turtle2);\r\n house(400, 100, turtle3);\r\n\r\n }", "private void createGrid(int numRows) {\n // Creates a grid so that we can display the animation. We will see\n // other layout panes in the lectures.\n grid = new GridPane();\n\n // We need to create a 2D array of javafx Buttons that we will\n // add to the grid. The 2D array makes it much easier to change\n // the colour of the buttons in the grid; easy lookup using\n // 2D indicies. Note that we make this read-only for this display\n // onlt grid. If you go for flair marks, then I'd imagine that you\n // could create something similar that allows you to edits frames\n // in the footage.\n gridArray = new Button[numRows][numRows];\n Button displayButton = null;\n for (int row = 0; row < numRows; row++) {\n for (int col = 0; col < numRows; col++) { // The display is square\n displayButton = new Button();\n gridArray[row][col] = displayButton;\n displayButton.setDisable(true);\n grid.add(displayButton, col, row);\n }\n }\n\n // Create a scene to hold the grid of buttons\n // The stage will \"shrink wrap\" around the grid of buttons,\n // so we don't need to set its height and width.\n scene = new Scene(grid);\n stage.setScene(scene);\n scene.getStylesheets().add(Animator.class.getResource(\"styling.css\").toExternalForm());\n\n // Make it resizable so that the window shrinks to fit the scene grid\n stage.setResizable(true);\n stage.sizeToScene();\n // Raise the curtain on the stage!\n stage.show();\n // Stop the user from resizing the window\n stage.setResizable(false);\n }", "private void setGridPane(double sceneX, double sceneY) {\n gridPane = new GridPane();\n gridPane.setMinSize(200, sceneY);\n gridPane.setMaxSize(200, sceneY);\n gridPane.setAlignment(Pos.CENTER);\n\n gpLocations = new GridPane();\n gpLocations.setMaxSize(200, sceneY / 3);\n gpLocations.add(new Text(\"Location\"), 0, 0);\n gpLocations.add(new Text(\"\\tDistance (km)\"), 1, 0);\n\n for (int q = 0; q < locations.size(); q++) {\n gpLocations.add(new Text(locations.get(q).getName()), 0, q + 1);\n String dist = String.format(\"%.1f\", activeCar.getCurrentLocation().getDistanceToLocation(locations.get(q)));\n gpLocations.add(new Text(\"\\t\\t\" + dist), 1, q + 1);\n }\n\n gpCars = new GridPane();\n gpCars.setMaxSize(200, sceneY / 3);\n gpCars.add(new Text(\"Car\"), 0, 0);\n gpCars.add(new Text(\"\\tTime (hr)\"), 1, 0);\n\n for (int nums = 0; nums < cars.size(); nums++) {\n gpCars.add(new Text(Integer.toString(cars.get(nums).getIdentifier())), 0, nums + 1);\n String dist = String.format(\"%.1f\", cars.get(nums).getTime());\n gpCars.add(new Text(\"\\t\\t\" + dist), 1, nums + 1);\n }\n gridPane.add(gpLocations, 0, 1);\n gridPane.add(new Rectangle(200, 200, Color.TRANSPARENT), 0, 2);\n gridPane.add(gpCars, 0, 3);\n gridPane.add(new Rectangle(200, 200, Color.TRANSPARENT), 0, 3);\n gridPane.add(new Text(\"Active Car\\t\" + activeCar.getIdentifier() + \"\\t\" + activeCar.getEnd().getName()), 0, 5);\n\n gridPane.setLayoutX(sceneX - 300);\n\n this.getChildren().add(gridPane);\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public static void main(String[] args) {\n\n int gridWidth, gridHeight, humanNumber, goblinNumber, positionX, positionY, strength;\n ArrayList<Player> humanList = new ArrayList<>();\n ArrayList<Player> goblinList = new ArrayList<>();\n Scanner input = new Scanner(System.in);\n\n System.out.println(\" Welcome to Human vs. Goblin\");\n System.out.println();\n\n // Get the size of the grid\n System.out.print(\"Width of the grid (1-500): \");\n gridWidth = input.nextInt();\n if (gridWidth<1 || gridWidth>500) {\n gridWidth = 10; // In case input is wrong, set 10 as default;\n }\n\n System.out.print(\"Height of the grid (1-500): \");\n gridHeight = input.nextInt();\n if (gridHeight<1 || gridHeight>500)\n gridHeight = 10; // In case input is wrong, set 10 as default;\n\n // Init Grid\n World grid = new World(gridWidth, gridHeight);\n System.out.println();\n\n // Get the number of Players\n System.out.print(\"Number of human (0-\"+grid.getArea()+\"): \");\n humanNumber = input.nextInt();\n\n if (humanNumber<0 || humanNumber>grid.getArea()){\n humanNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n System.out.print(\"Number of goblin (0-\"+(grid.getArea())+\"): \");\n goblinNumber = input.nextInt();\n if (goblinNumber<0 || goblinNumber>grid.getArea()){\n goblinNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n Coordinates coordinates = new Coordinates(ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()), ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()));\n // Fill Grid with creatures\n for(int i=0;i<humanNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Human human = new Human(\"human\",strength,1, coordinates);\n humanList.add(human);\n\n } while (grid.addPlayer(positionX, positionY, humanList.get(i)));\n }\n for(int i=0;i<goblinNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Goblin goblin = new Goblin(\"goblin\",strength,1, coordinates);\n goblinList.add(goblin);\n\n } while (grid.addPlayer(positionX, positionY, goblinList.get(i)));\n }\n\n System.out.println();\n System.out.print(\"You have just created Human vs Goblin grid size of \"+grid.getSizeString()+\" \");\n System.out.println(\"with \"+humanNumber+\" humans and \"+goblinNumber+\" Goblins!\");\n System.out.println();\n Timer timer = new Timer();\n timer.schedule(new PlayGame(grid, timer),0,500);\n }", "public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }" ]
[ "0.7230912", "0.6898095", "0.67749304", "0.6753901", "0.6713398", "0.6683298", "0.66532373", "0.6580933", "0.656424", "0.656355", "0.6488846", "0.6469358", "0.6434851", "0.6429925", "0.6334116", "0.6314623", "0.6306989", "0.6279395", "0.62758756", "0.62498957", "0.62399876", "0.6232618", "0.6232099", "0.62274027", "0.6215705", "0.62106556", "0.61871064", "0.61806107", "0.6171765", "0.6166993", "0.6154388", "0.61447066", "0.61422247", "0.6132674", "0.61313796", "0.61054856", "0.60907215", "0.6072337", "0.6070694", "0.606217", "0.60602254", "0.6050337", "0.60371387", "0.60213643", "0.6018447", "0.60175335", "0.6009566", "0.6000845", "0.598153", "0.5972101", "0.5969436", "0.59534657", "0.5948354", "0.5947862", "0.5945327", "0.59360284", "0.59319574", "0.5923066", "0.5916275", "0.5911575", "0.590748", "0.5897983", "0.5896805", "0.58850765", "0.58835804", "0.58763134", "0.587545", "0.58700716", "0.58644897", "0.58565104", "0.58538866", "0.58357626", "0.5833687", "0.5826558", "0.58236355", "0.58066547", "0.58016163", "0.57979804", "0.5793971", "0.5792846", "0.57913274", "0.5787553", "0.5781188", "0.5774191", "0.5773717", "0.5768951", "0.5761372", "0.57579905", "0.5753347", "0.5750658", "0.5748022", "0.57476133", "0.5743154", "0.57417214", "0.57381034", "0.5736375", "0.5735997", "0.5735134", "0.5730392", "0.5728252" ]
0.72337556
0
sets the specified position in the grid to null
public void setGridNull(int row, int col) { grid[row][col] = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void positionCleared();", "public void reset() {\n position = 0;\n }", "public void resetPosition()\n {\n resetPosition(false);\n }", "@Override\n\tpublic void reset() {\n\t\tfor (int i = 0; i < _board.length; i++)\n for (int j = 0; j < _board[i].length; j++)\n \t_board[i][j] = null;\n\n\t\t_columnFull = new HashSet<Integer>();\n\t\t_lastPosition = new HashMap<Integer,Integer>();\n\t}", "void unsetControlPosition();", "public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}", "private void clearGrid() {\n\n }", "public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}", "private void resetPosition() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n if (!board[i][j]) {\n rowPos = i;\n columnPos = j;\n return;\n }\n }\n }\n }", "void clearCell(int x, int y);", "public void clear ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(row, column);\n Move.clear();\n }", "public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }", "public void removePawn(Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = new Empty();\n\t}", "public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "void unsetBeginPosition();", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "public void clear() {\n\t\tfor(int i=0;i<height;i++) {\n\t\t\tfor(int j=0;j<width;j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "public void clearGrid() {\n\t\tfor (int x = 0; x < grid.length; x++) {\n\t\t\tfor (int y = 0; y < grid[x].length; y++) {\n\t\t\t\tgrid[x][y] = EMPTY;\n\t\t\t}\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "public void clearFloor(Position pos) {\n\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setText(\"\");\n\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setBackground(Color.gray);\n\t\t}", "public void reset() {\n for (int r = 0; r < size; r++) {\n for (int c = 0; c < size; c++) {\n board[r][c] = null;\n }\n }\n }", "private static void clearGridPosition(int pos) {\n for (int f = 0; f < ColorFrames.FRAMES_DIM; ++f)\n clearGridPositionFrame(pos, f);\n }", "public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }", "public void reset()\n {\n // put your code here\n position = 0;\n order = \"\";\n set[0] = 0;\n set[1] = 0;\n set[2] = 0;\n }", "public static void clearXY()\r\n{\r\n\tx = 0;\r\n\ty = 0; \r\n\t\r\n}", "public void reset()\n {\n currentPosition = 0;\n }", "public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}", "public Builder clearPosition() {\n if (positionBuilder_ == null) {\n position_ = null;\n onChanged();\n } else {\n position_ = null;\n positionBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearPosition() {\n if (positionBuilder_ == null) {\n position_ = null;\n onChanged();\n } else {\n position_ = null;\n positionBuilder_ = null;\n }\n\n return this;\n }", "void clearOffset();", "public void clearGrid(){\n\t\tfor(int i = 0; i < rows; i++){//rows\n\t\t\tfor(int j = 0; j < columns; j++){//columns\n\t\t\t\ttheGrid[i][j] = false; //set to false\n\t\t\t}\n\t\t}\n\t}", "public void clear() {\n\t\tleftIndex = 0;\n\t\trightIndex = 0;\n\t}", "public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\t\tpos.yposbal = yposstruct;\r\n\t\tpos.hoek = Math.PI/2;\r\n\t\tpos.start = 0;\r\n\t\topgespannen = 0;\r\n\t\tpos.snelh = 0.2;\r\n\t\tbooghoek = 0;\r\n\t\tpos.geraakt = 0;\r\n\t\tgeraakt = 0;\r\n\t\t\r\n\t}", "private void clear(int a_x, int a_y)\n {\n int index = clickOnWaypoint(a_x,a_y);\n if(index != -1)\n {\n Vector2d v = m_waypoints.get(index);\n m_grid[(int)v.x][(int)v.y] = Map.NIL;\n m_waypoints.remove(index);\n frame.updateNumWaypoints(m_waypoints.size());\n }\n else\n {\n setBrush(a_x,a_y,Map.NIL);\n }\n }", "public static void reset(){\r\n\t\tx=0;\r\n\t\ty=0;\r\n\t}", "public void resetEmpty() {\n\t /*reset the mineField with no mines*/\n mineField = blankField(this.row, this.col);\n }", "public void clearCell( int index){\r\n boardCells[ index ].empty();\r\n }", "public void reset() {\n\t\t//reset player to 0\n\t\tplayer = 0;\n\t\t\n\t\tfor(int row = size - 1; row >= 0; row --)\n\t\t\tfor(int col = 0; col < size; col ++)\n\t\t\t\tfor(int dep = 0; dep < size; dep ++)\n\t\t\t\t\t//goes through all board positions and sets to -1\n\t\t\t\t\tboard[row][col][dep] = -1;\n\t}", "public void reset() {\r\n minX = null;\r\n maxX = null;\r\n minY = null;\r\n maxY = null;\r\n\r\n minIn = null;\r\n maxIn = null;\r\n\r\n inverted = false;\r\n }", "public void reset(){\n\t\tthis.setPosition(DEFAULT_X, DEFAULT_Y);\t\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(defaultWidth);\n\t\tspeed = 400;\n\t\tsetGlue(true);\n\t}", "public void resetGrid() {\n // reset all cells to dead\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n } \n // repaint so that the cells show up regardless of if the program has started or not\n repaint();\n }", "public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }", "public void clear() {\n\t\t\tsuper.clear();\n\t\t\tjgraph.getGraphLayoutCache().remove(nullnodes.toArray());\n\t\t\tnullnodes = new LinkedList<DefaultGraphCell>();\n\t\t}", "public void clearGotoFloor();", "public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}", "public void empty() {\n\t\tempty.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = empty;\n\t}", "public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }", "public void clearDomainMarks(){\n for (int i = 0 ; i < getBoardSize(); i++)\n for (int j = 0 ; j < getBoardSize(); j++){\n getPoint(i, j).setHolder(GoPlayer.UNKNOWN);\n }\n }", "protected void disappear() {\n grid.addTokenAt(null, positionX, positionY);\n }", "@Override\r\n\tpublic void reset() {\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].Clear();\r\n\t\t}\r\n\t\tcomputerTurn();\r\n\t\tcomputerTurn();\r\n\t\tfreeCells = rows_size*columns_size - 2;\r\n\t\ttakenCells = 2;\r\n\t}", "void unsetOffset();", "private void resetGrid() {\n ObservableList<Node> childrens = grid.getChildren();\n for (Node node : childrens) {\n Circle temp = (Circle) node;\n temp.setFill(Paint.valueOf(\"Black\"));\n }\n }", "public void clear(int x, int y){\n board[x][y].setText(\"\");\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void resetBoard() {\n for (int y = 0; y < length; y++) {\n for (int x = 0; x < width; x++) {\n grid[x][y].setBackground(null);\n grid[x][y].setEnabled(true);\n }\n }\n }", "void unsetOrganizationPositionList();", "public void removeScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}", "private void clearSheet() {\n row = null;\n cells = null;\n cellType = null;\n value = null;\n rowIndex = -1;\n }", "public void reset( )\n\t{\n\t\tint count = 1;\n\t\tthis.setMoves( 0 );\n\t\tfor( int i = 0; i < this.getSize(); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth(); j++ )\n\t\t\t{\n\t\t\t\tthis.setTile( count++, i, j );\n\t\t\t\tif( i == getSize( ) - 1 && j == getWidth( ) - 1 ) {\n\t\t\t\t\tthis.setTile( -1, i, j );\n\t\t\t\t\tlocationX = i;\n\t\t\t\t\tlocationY = j;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }", "public void resetGrid() {\n grid = new byte[grid.length];\n }", "private void clearGrid(){\n for (ImageView view: imageList) {\n view.setImageDrawable(null);\n view.setBackgroundColor(Color.TRANSPARENT);\n }\n }", "public void reset() {\n\t\tif (marker >= 0) {\n\t\t\tsetSize(marker);\n\t\t\tmarker = -1;\n\t\t}\n\t}", "void reset() {\n setVisible(false);\n myJumpedOver = false;\n }", "private void reset() {\n // Init-values\n for (int i = 0; i < cells.length; i++) {\n cells[i] = 0;\n }\n\n // Random colors\n for (int i = 0; i < colors.length; i++) {\n colors[i] = Color.color(Math.random(), Math.random(), Math.random());\n }\n\n // mid = 1.\n cells[cells.length / 2] = 1;\n\n // Clearing canvas\n gc.clearRect(0, 0, canvasWidth, canvasHeight);\n }", "public void clear() {\n sumX = 0d;\n sumXX = 0d;\n sumY = 0d;\n sumYY = 0d;\n sumXY = 0d;\n n = 0;\n }", "public void reset() {\n // corresponding function called in the Board object to reset piece\n // positions\n board.reset();\n // internal logic reset\n lastColor = true;\n gameOver = false;\n opponentSet = false;\n }", "public void Reset ( ) \r\n\t{\r\n\t\tcurrentCol = size / 2;\r\n\t\tcurrentRow = size / 2;\r\n\t\t\r\n\t\tint totalDistance;\r\n\t\tdo {\r\n\t\tint dist = size*size+1;\r\n\t\tmaze = new Room [size] [size];\r\n\t\tfor ( int row = 0; row < size; row++ )\r\n\t\t\tfor ( int col = 0; col < size; col++ )\r\n\t\t\t\tmaze [row] [col] = new Room ( dist);\r\n\t\ttotalDistance = CalcDistance();\r\n\t\t} while ( totalDistance >= size*size );\r\n\t\t\r\n\t\tmaze [currentRow] [currentCol].InsertWalker ( );\r\n\t}", "private void ensureEmpty(int row, int column)\n {\n // If the specified location in the grid is not empty,\n // remove whatever object is there.\n Location loc = new Location(row, column);\n if ( ! theGrid.isEmpty(loc) )\n theGrid.remove(theGrid.objectAt(loc));\n }", "private void clearField () {\n\t\t/* clear the field */\n\t\tfor ( int row = 0 ; row < getNumRows() ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < getNumCols() ; col++ ) {\n\t\t\t\tif ( row == 0 || col == 0 || row == getNumRows() - 1\n\t\t\t\t || col == getNumCols() - 1 ) {\n\t\t\t\t\tfield_[row][col] = new Bush();\n\t\t\t\t} else {\n\t\t\t\t\tfield_[row][col] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void reset() {\n\t\ttilePath.clear();\n\t}", "private void clear() {\r\n\t\tpstate.clear();\r\n\t\tdisplay.setLegend(\"\");\r\n\t\tship = null;\r\n\t}", "public void clearPieces(){\n for(int i =0; i<WIDTH;i++){\n for(int j = 0 ; j<HEIGHT;j++){\n piecesToSwap[i][j]=null;\n }\n }\n }", "public void reset() {\n\t\trabbitcount[1]=8;\n\t\trabbitcount[2]=8;\n\t\tpieces.clear();\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "private void clearGrid(GridPane gridPane) {\n gridPane.getChildren().clear();\n }", "public static void resetBoard()\n {\n for (int i = 0; i<BOARD_HEIGHT;i++) //Recorre las filas.\n {\n for (int j = 0; j <BOARD_WIDTH;j++) //Recorre las columnas.\n {\n boardPos[i][j]=0; //Resetea la casilla actual.\n }\n }\n }", "private void resetStateForGridTop() {\n // Reset mItemTops and mItemBottoms\n final int colCount = mColCount;\n if ((mItemTops == null || mItemTops.length != colCount) && colCount != COLUMN_COUNT_AUTO) {\n mItemTops = new int[colCount];\n mItemBottoms = new int[colCount];\n }\n if (mItemTops != null && mItemBottoms != null) {\n final int top = getPaddingTop();\n Arrays.fill(mItemTops, top);\n Arrays.fill(mItemBottoms, top);\n }\n\n // Reset the first visible position in the grid to be item 0\n mFirstPosition = 0;\n mRestoreOffset = 0;\n }", "public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }", "private void reset() {\n darkSquare.reset();\n lightSquare.reset();\n background.reset();\n border.reset();\n showCoordinates.setSelected(resetCoordinates);\n pieceFont.reset();\n }", "void reset() {\n setPosition(-(TILE_WIDTH * CYCLE), TOP_Y);\n mySequenceIndex = 0;\n setAnimatedTile(myAnimatedTileIndex, FRAME_SEQUENCE[mySequenceIndex]);\n }", "public void reset(){\n active = false;\n done = false;\n state = State.invisible;\n curX = 0;\n }", "public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }", "public void clear() {\r\n //This for loop assigns every value in the gameBoard array to -1\r\n //Using the Arrays.fill method and the for loop it fills in all sub arrays\r\n for (int i = 0; i < gameBoard.length; i++) {\r\n Arrays.fill(gameBoard[i], -1);\r\n }\r\n }", "@Override\n public void resetGrids() {\n view.clearGrid(false);\n\n // then remove non-given numbers\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n }\n }\n }\n\n // finally, display the givens on the view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n }\n }", "void unsetEndPosition();", "public void clear() {\n this.top = null;\n }", "private void clearBoard() {\n for (int i = 0; i < BOARD_HEIGHT * BOARD_WIDTH; ++i) {\n board[i] = Tetrominoe.NoShape;\n }\n }", "void clear() {\n _whoseMove = WHITE;\n _gameOver = false;\n\n for (int i = 0; i <= MAX_INDEX; i += 1) {\n set(i, BLACK);\n }\n for (int i : _initWhite) {\n set(i, WHITE);\n }\n set(12, EMPTY);\n _history.clear();\n\n setInitialDirection(MAX_INDEX);\n\n setChanged();\n notifyObservers();\n }", "private void unsetValidMoves() {\n\t\tcurrentPos.setFill(Paint.valueOf(\"Dodgerblue\"));\n\n\t\tif(l.upValid) {\n\t\t\ttmp=layout_Circle[l.y-1][l.x];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));\n\t\t}\n\n\t\tif(l.leftValid) {\n\t\t\ttmp=layout_Circle[l.y][l.x-1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));\n\t\t}\n\n\t\tif(l.rightValid) {\n\t\t\ttmp=layout_Circle[l.y][l.x+1];\n\t\t\ttmp.setFill(Paint.valueOf(\"Dodgerblue\"));}\n\t}", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "public final void Reset()\n\t{\n\t\t_curindex = -1;\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\tmarkCount = 0;\n\t}", "public Builder clearPositionX() {\n bitField0_ = (bitField0_ & ~0x00000040);\n positionX_ = 0D;\n onChanged();\n return this;\n }", "public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }", "public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}", "public void clear() {\n up = false;\n down = false;\n left = false;\n right = false;\n }", "public void erase()\n {\n this.top = null;\n }" ]
[ "0.7136943", "0.6943364", "0.6941786", "0.6832533", "0.67814", "0.6776531", "0.67545795", "0.67533314", "0.67248875", "0.6712512", "0.6707463", "0.6687182", "0.66533715", "0.6609509", "0.65943193", "0.65906465", "0.65825677", "0.6572439", "0.65699077", "0.6565561", "0.6532454", "0.65222853", "0.65004617", "0.6490102", "0.6477887", "0.64761645", "0.6458538", "0.6451717", "0.644727", "0.64368683", "0.64368683", "0.6435709", "0.6387058", "0.6384519", "0.63760173", "0.63747185", "0.6371754", "0.6358821", "0.6348378", "0.6347011", "0.6343051", "0.6316314", "0.63035744", "0.63017017", "0.62969744", "0.628337", "0.6280362", "0.6280158", "0.6267582", "0.6235542", "0.62261564", "0.6224573", "0.6215098", "0.6209447", "0.62006617", "0.6195086", "0.61918193", "0.6182246", "0.61624527", "0.6158128", "0.6135213", "0.61297995", "0.6109385", "0.61052996", "0.60848475", "0.608084", "0.60796493", "0.60757506", "0.6073499", "0.60615176", "0.60566556", "0.6053194", "0.6051837", "0.60511476", "0.60459954", "0.6034657", "0.60311604", "0.6028388", "0.60052776", "0.6004679", "0.5994486", "0.59924966", "0.5992494", "0.5991836", "0.59906524", "0.5988757", "0.5985702", "0.59837264", "0.59808636", "0.59808207", "0.5974701", "0.5968897", "0.596466", "0.5964365", "0.5962853", "0.59552735", "0.59519386", "0.5944951", "0.59393084", "0.5922982" ]
0.74491
0
adds an existing creature to the specified space on the grid
public void addCreature(Creature child, int row, int col) { grid[row][col] = child; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCreatureToRoom(String creature)\n\t{\n\t\tthingsInColumn.add(creature);\n\t\tupdateButtons();\n\t\t\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", creature\n\t\t\t\t\t\t, DisplayThree.getInstance().selectedRoomID);\n\t}", "public abstract void addCreature(Point p, BaseCreature critter);", "private static void spawn(Actor actor, ActorWorld world)\n {\n Random generator = new Random();\n int row = generator.nextInt(10);\n int col = generator.nextInt(10);\n Location loc = new Location(row, col);\n while(world.getGrid().get(loc) != null)\n {\n row = generator.nextInt(10);\n col = generator.nextInt(10);\n loc = new Location(row, col);\n }\n world.add(loc, actor);\n }", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "public void addSpaceStation()\n\t{\n\t\t//if a space station is already spawned, one will not be added\n\t\tif (gameObj[5].size() == 0)\n\t\t{\n\t\t\tgameObj[5].add(new SpaceStation());\n\t\t\tSystem.out.println(\"SpaceStation added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A space station is already spawned\");\n\t\t}\n\t}", "public void addToWorld(World world);", "public void addSpaceStation()\n\t{\n\t\t//if a space station is already spawned, one will not be added\n\n\t\tgameObj.add(new SpaceStation(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Space station added\");\n\t\tnotifyObservers();\n\t}", "public static void add(final GroundSpawn spawn) {\r\n spawn.init();\r\n }", "public void addPawn(Pawn pawn, Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = pawn;\n\t}", "public void addMine()\n {\n int randomRow = random.nextInt(rows);\n int randomColumn = random.nextInt(columns);\n Integer[] randomLocation = {randomRow, randomColumn};\n\n while (mineLocations.contains(randomLocation))\n {\n randomRow = random.nextInt(rows);\n randomColumn = random.nextInt(columns);\n randomLocation[0] = randomRow;\n randomLocation[1] = randomColumn;\n }\n\n mineLocations.add(randomLocation);\n }", "void spawnEntityAt(String typeName, int x, int y);", "@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}", "public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }", "public void Add (int row, int column) {\n if ((row < 0 || column < 0) || (row >= numberOfRows || column >= numberOfColumns) || (grid[row][column] == X || grid[row][column] == ZERO ||\n grid[row][column] == ONE || grid[row][column] == TWO ||\n grid[row][column] == THREE || grid[row][column] == FOUR ||\n grid[row][column] == LASER)) {\n message = \"Error adding laser at: (\" + row + \", \" + column + \")\";\n } else {\n grid[row][column] = LASER;\n RowOfLastPlacedLaser = row;\n ColumnOfLastPlacedLaser = column;\n // Set up a laser beam to the North direction until we reach a pillar, laser or the top\n for (int i = row - 1; i >= 0; i--) {\n if (grid[i][column] == X || grid[i][column] == ZERO ||\n grid[i][column] == ONE || grid[i][column] == TWO ||\n grid[i][column] == THREE || grid[i][column] == FOUR ||\n grid[i][column] == LASER) {\n break;\n } else {\n grid[i][column] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the South direction until we reach a pillar, laser or the bottom\n for (int i = row + 1; i < numberOfRows; i++) {\n if (grid[i][column] == X || grid[i][column] == ZERO ||\n grid[i][column] == ONE || grid[i][column] == TWO ||\n grid[i][column] == THREE || grid[i][column] == FOUR ||\n grid[i][column] == LASER) {\n break;\n } else {\n grid[i][column] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the West direction until we reach a pillar, laser or the left corner\n for (int i = column - 1; i >= 0; i--) {\n if (grid[row][i] == X || grid[row][i]== ZERO ||\n grid[row][i] == ONE || grid[row][i] == TWO ||\n grid[row][i] == THREE || grid[row][i] == FOUR ||\n grid[row][i] == LASER) {\n break;\n } else {\n grid[row][i] = LASER_BEAM;\n }\n }\n // Set up a laser beam to the East direction until we reach a pillar, laser or the right direction\n for (int i = column + 1; i < numberOfColumns; i++) {\n if (grid[row][i] == X || grid[row][i]== ZERO ||\n grid[row][i] == ONE || grid[row][i] == TWO ||\n grid[row][i] == THREE || grid[row][i] == FOUR ||\n grid[row][i] == LASER) {\n break;\n } else {\n grid[row][i] = LASER_BEAM;\n }\n }\n message = \"Laser added at: (\" + row + \", \" + column + \")\";\n }\n }", "public void addPiece(char col, double x,double y, int ID, double spe, double ang){\n if (col == 'w'){ //if drone recreate that drone\n Drone newPiece = new Drone(x,y);\n newPiece.setDirection(spe,ang);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n else if(col == 'g'){ //if obstacle recreate that obstacle\n Obstacle newPiece = new Obstacle(x, y);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n else if (col == 'o'){ //if bird recreate that bird\n Bird newPiece = new Bird(x,y);\n newPiece.setDirection(spe,ang);\n newPiece.setID(ID);\n drones.add(newPiece);\n }\n }", "public void addBomb() \n {\n if (Greenfoot.isKeyDown(\"space\"))\n getWorld().addObject(new Bomb(), getX(), getY()); \n //add a bomb at the place they press space \n }", "public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}", "public void addSpawners(Room room) {\n\t\tint shiftX = (map.chunkX * 16) - (map.room.length / 2) + 8;\n\t\tint shiftZ = (map.chunkZ * 16) - (map.room.length / 2) + 8;\n\t\t//for(Room room : rooms) {\t\t\t\n\t\t\t//DoomlikeDungeons.profiler.startTask(\"Adding to room \" + room.id);\n\t\t\tfor(Spawner spawner : room.spawners) {\n\t\t\t\t\tDBlock.placeSpawner(map.world, shiftX + spawner.x, spawner.y, shiftZ + spawner.z, spawner.mob);\n\t\t\t}\n\t\t\tfor(BasicChest chest : room.chests) {\n\t\t\t\tchest.place(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz, random);\n\t\t\t}\n\t\t\t//DoomlikeDungeons.profiler.endTask(\"Adding to room \" + room.id);\n\t\t//}\t\n\t}", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "public void addCharacterToRoom(AStarCharacter character)\r\n\t{\r\n\t\t// make sure the current character hasn't been created on the grid yet\r\n\t\tif(character.getUsername().equals(basicAvatarData.getUsername()) && !theGridView.getMyCharacter().getEmail().equals(basicAvatarData.getEmail()))\r\n\t\t{\r\n\t\t\t// it's the current player's character, so set their displayed pins\r\n\t\t\ttheGridView.setInventoryPinsWorn(character.getDisplayedPins());\r\n\t\t}\r\n\t\t\r\n\t\ttheGridView.addCharacterToRoom(character);\r\n\t}", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }", "public void add(WorldObject obj) {\n\troomList.add(obj);\n}", "private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }", "public static void addHabitant(ArrayList<House> houses, Human human)\n throws NoSpaceException{\n int i = 0;\n while (i < houses.size()){\n if(!houses.get(i).is_full()){\n houses.get(i).habitant.add(human);\n return;\n }\n else {\n i++;\n }\n }\n if (i==houses.size()){\n throw new NoSpaceException();\n }\n }", "private void placeEnemyShips() {\n\t\tint s51 = (int) (Math.random() * 6); // mostly random numbers\n\t\tint s52 = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tpgrid[s51 + i][s52] = 1;\n\n\t\t// Places the ship of length 3\n\t\tint s31 = (int) (Math.random() * 10);\n\t\tint s32 = (int) (Math.random() * 8);\n\t\twhile (pgrid[s31][s32] == 1 || pgrid[s31][s32 + 1] == 1 // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\t\t|| pgrid[s31][s32 + 2] == 1) {\n\t\t\ts31 = (int) (Math.random() * 10);\n\t\t\ts32 = (int) (Math.random() * 8);\n\t\t}\n\t\tpgrid[s31][s32] = 1;\n\t\tpgrid[s31][s32 + 1] = 1;\n\t\tpgrid[s31][s32 + 2] = 1;\n\n\t\t// Places the ship of length 1\n\t\tint s21 = (int) (Math.random() * 10);\n\t\tint s22 = (int) (Math.random() * 9);\n\t\twhile (pgrid[s21][s22] == 1 || pgrid[s21][s22 + 1] == 1) { // prevents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// overlaps\n\t\t\ts21 = (int) (Math.random() * 10);\n\t\t\ts22 = (int) (Math.random() * 9);\n\t\t}\n\t\tpgrid[s21][s22] = 1;\n\t\tpgrid[s21][s22 + 1] = 1;\n\n\t}", "public void addCreature(Creature creature)\n\t{\n\t\tfor (Pair<JuryType, Integer> pair : juries)\n\t\t{\n\t\t\tswitch (pair.x)\n\t\t\t{\n\t\t\tcase FOLLOWING:\n\t\t\t\tcreature.addJury(new Following(pair.y));\n\t\t\t\tbreak;\n\t\t\tcase JUMPING:\n\t\t\t\tcreature.addJury(new Jumping(pair.y));\n\t\t\t\tbreak;\n\t\t\tcase MOVING:\n\t\t\t\tcreature.addJury(new Moving(pair.y));\n\t\t\t\tbreak;\n\t\t\tcase VELOCITY:\n\t\t\t\tcreature.addJury(new Velocity(pair.y));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.err.println(\"This jury is not yet implemented.\");\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\tcreatures.add(creature);\n\t}", "int addCreature(Creature creature, float diffZ) throws NoSuchCreatureException, NoSuchPlayerException {\n/* 1840 */ if (this.inactive) {\n/* */ \n/* 1842 */ logger.log(Level.WARNING, \"AT 1 adding \" + creature.getName() + \" who is at \" + creature.getTileX() + \", \" + creature\n/* 1843 */ .getTileY() + \" to inactive tile \" + this.tilex + \",\" + this.tiley, new Exception());\n/* 1844 */ logger.log(Level.WARNING, \"The zone \" + this.zone.id + \" covers \" + this.zone.startX + \", \" + this.zone.startY + \" to \" + this.zone.endX + \",\" + this.zone.endY);\n/* */ } \n/* */ \n/* 1847 */ if (!creature.setNewTile(this, diffZ, false))\n/* */ {\n/* 1849 */ return 0;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1875 */ if (this.creatures == null)\n/* 1876 */ this.creatures = new HashSet<>(); \n/* 1877 */ for (Creature c : this.creatures) {\n/* */ \n/* 1879 */ if (!c.isFriendlyKingdom(creature.getKingdomId()))\n/* 1880 */ c.setStealth(false); \n/* */ } \n/* 1882 */ this.creatures.add(creature);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1905 */ creature.setCurrentVillage(this.village);\n/* */ \n/* 1907 */ creature.calculateZoneBonus(this.tilex, this.tiley, this.surfaced);\n/* */ \n/* 1909 */ if (creature.isPlayer()) {\n/* */ \n/* */ try {\n/* */ \n/* 1913 */ FaithZone z = Zones.getFaithZone(this.tilex, this.tiley, this.surfaced);\n/* 1914 */ if (z != null) {\n/* 1915 */ creature.setCurrentDeity(z.getCurrentRuler());\n/* */ } else {\n/* 1917 */ creature.setCurrentDeity(null);\n/* */ } \n/* 1919 */ } catch (NoSuchZoneException nsz) {\n/* */ \n/* 1921 */ logger.log(Level.WARNING, \"No faith zone here? \" + this.tilex + \", \" + this.tiley + \", surf=\" + this.surfaced);\n/* */ } \n/* */ }\n/* 1924 */ if (creature.getHighwayPathDestination().length() > 0 || creature.isWagoner()) {\n/* */ \n/* */ \n/* 1927 */ HighwayPos currentHighwayPos = null;\n/* 1928 */ if (creature.getBridgeId() != -10L) {\n/* */ \n/* 1930 */ BridgePart bridgePart = Zones.getBridgePartFor(this.tilex, this.tiley, this.surfaced);\n/* */ \n/* 1932 */ if (bridgePart != null)\n/* 1933 */ currentHighwayPos = MethodsHighways.getHighwayPos(bridgePart); \n/* */ } \n/* 1935 */ if (currentHighwayPos == null && creature.getFloorLevel() > 0) {\n/* */ \n/* 1937 */ Floor floor = Zones.getFloor(this.tilex, this.tiley, this.surfaced, creature.getFloorLevel());\n/* */ \n/* 1939 */ if (floor != null)\n/* 1940 */ currentHighwayPos = MethodsHighways.getHighwayPos(floor); \n/* */ } \n/* 1942 */ if (currentHighwayPos == null)\n/* 1943 */ currentHighwayPos = MethodsHighways.getHighwayPos(this.tilex, this.tiley, this.surfaced); \n/* 1944 */ if (currentHighwayPos != null) {\n/* */ \n/* */ \n/* */ \n/* 1948 */ Item waystone = getWaystone(currentHighwayPos);\n/* 1949 */ if (waystone == null)\n/* 1950 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)1)); \n/* 1951 */ if (waystone == null)\n/* 1952 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, -128)); \n/* 1953 */ if (waystone == null)\n/* 1954 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)64)); \n/* 1955 */ if (waystone == null)\n/* 1956 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)32)); \n/* 1957 */ if (waystone == null)\n/* 1958 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)2)); \n/* 1959 */ if (waystone == null)\n/* 1960 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)4)); \n/* 1961 */ if (waystone == null)\n/* 1962 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)16)); \n/* 1963 */ if (waystone == null) {\n/* 1964 */ waystone = getWaystone(MethodsHighways.getNewHighwayPosLinked(currentHighwayPos, (byte)8));\n/* */ }\n/* 1966 */ if (waystone != null && creature.getLastWaystoneChecked() != waystone.getWurmId())\n/* */ {\n/* 1968 */ if (creature.isWagoner()) {\n/* */ \n/* */ \n/* 1971 */ creature.setLastWaystoneChecked(waystone.getWurmId());\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1976 */ Node startNode = Routes.getNode(waystone.getWurmId());\n/* 1977 */ String goingto = creature.getHighwayPathDestination();\n/* 1978 */ if (startNode.getVillage() == null || creature.currentVillage != null || !startNode.getVillage().getName().equalsIgnoreCase(goingto)) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1985 */ creature.setLastWaystoneChecked(waystone.getWurmId());\n/* */ \n/* */ try {\n/* 1988 */ Village destinationVillage = Villages.getVillage(goingto);\n/* 1989 */ HighwayFinder.queueHighwayFinding(creature, startNode, destinationVillage, (byte)0);\n/* */ }\n/* 1991 */ catch (NoSuchVillageException e) {\n/* */ \n/* */ \n/* 1994 */ creature.getCommunicator().sendNormalServerMessage(\"Destination village (\" + goingto + \") cannot be found.\");\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ } \n/* 2001 */ return this.creatures.size();\n/* */ }", "public void add(Location loc, Evolver occupant)\n {\n occupant.putSelfInGrid(getGrid(), loc);\n }", "public void growCellAt(int row, int col) {\n\t\t// Complete this method\n\t\tgameGrid[row][col] = 1;\n\t}", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n } catch(IndexOutOfBoundsException e){\n MessageDisplayer.showMessage(\"The new LinkIndic didn't find a TerritoryHex at this position.\");\n this.destroy();\n }\n \n }", "protected void add_Character(Person new_guy, Location L, Integer I)\n\t{\n\t\tpeople_moving.put(new_guy, new move_place(L, I/2));\n\t}", "private void setGridElement (int row, int column, Player player)\n {\n mGrid[row][column] = new Move(player, row, column);\n }", "private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }", "void spawnItem(@NotNull Point point) {\n int anInt = r.nextInt(100) + 1;\n if (anInt <= 10)\n objectsInMap.add(new AmmoItem(point));\n else if (anInt <= 20)\n objectsInMap.add(new HealthItem(point));\n else if (anInt <= 30)\n objectsInMap.add(new ShieldItem(point));\n else if (anInt <= 40)\n objectsInMap.add(new StarItem(point));\n else if (anInt <= 45)\n objectsInMap.add(new LivesItem(point));\n }", "void place_character(Character character, Town town) throws IllegalStateException;", "public void addItem(Item toAdd) throws ImpossiblePositionException, NoSuchItemException {\n int itemX = (int) toAdd.getXyLocation().getX();\n int itemY = (int) toAdd.getXyLocation().getY();\n ArrayList<Item> rogueItems = getRogue().getItems();\n int itemFound = 0;\n if ((itemX >= getWidth() - 1) || (itemX <= 0) || (itemY >= getHeight() - 1)\n || (itemY <= 0) || !(roomDisplayArray[itemY][itemX].equals(\"FLOOR\"))) {\n throw new ImpossiblePositionException();\n } else {\n roomItems.add(toAdd);\n }\n for (Item singleItem : rogueItems) {\n if (toAdd.getId() == singleItem.getId()) {\n itemFound = 1;\n }\n }\n if (itemFound != 1) {\n throw new NoSuchItemException();\n }\n\n }", "public void addPosition(int diceNumber, int pawn){\n\t\tpawns[pawn-1].addPosition(diceNumber);\n\t}", "public void addNewPiece() {\n\t\t// creates a range from 1-7 to choose from each of the pieces\n\t\tint pieceChoice = (int) (Math.random()*7) + 1; \n\t\tif(pieceChoice == 1) {\n\t\t\tcurrentPiece = new TetrisI();\n\t\t}\n\t\telse if(pieceChoice == 2) {\n\t\t\tcurrentPiece = new TetrisJ();\n\t\t}\n\t\telse if(pieceChoice == 3) {\n\t\t\tcurrentPiece = new TetrisL();\n\t\t}\n\t\telse if(pieceChoice == 4) {\n\t\t\tcurrentPiece = new TetrisO();\n\t\t}\n\t\telse if(pieceChoice == 5) {\n\t\t\tcurrentPiece = new TetrisS();\n\t\t}\n\t\telse if(pieceChoice == 6) {\n\t\t\tcurrentPiece = new TetrisT();\n\t\t}\n\t\telse {\n\t\t\tcurrentPiece = new TetrisZ();\n\t\t}\n\t\tcurrentPiece.pieceRotation = 0;\n\t\tinitCurrentGP();\n\t}", "public void spawnEnemy(Location location) {\r\n\t\t\tlocation.addNpc((Npc) this.getNpcSpawner().newObject());\r\n\t\t}", "private void placeBomb() {\n\t\tint x = ran.nextInt(worldWidth);\n\t\tint y = ran.nextInt(worldHeight);\n\n\t\tif (!tileArr[x][y].hasBomb()) {\n\t\t\ttileArr[x][y].setBomb(true);\n\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, true);\n\t\t\tindex.removeFirst();\n\n\t\t} else {\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, false);\n\t\t\tindex.removeFirst();\n\t\t\tplaceBomb();\n\t\t}\n\n\t}", "private void enterRoom(Room room)\r\n \t{\r\n \t\tif(room.isFull())\r\n \t\t\treturn; // Cannot enter the room\r\n \t\tVector2i pos = room.addCharacter(this, true);\r\n \t\tif(pos == null)\r\n \t\t\treturn; // Cannot enter the room (but should not occur here)\r\n \t\tif(currentRoom != null)\r\n \t\t{\r\n \t\t\t// Quit the last room\r\n \t\t\troom.removeCharacter(this);\r\n \t\t}\r\n \t\tcurrentRoom = room;\r\n \t\tx = pos.x;\r\n \t\ty = pos.y;\r\n \t\t// Debug\r\n \t\tLog.debug(name + \" entered in the \\\"\" + room.getType().name + \"\\\"\");\r\n \t}", "public void addMonster(Monster monster,Room room) {\n\t\troom.addMonster(monster);\n\t}", "private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }", "private void createNewUnit()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int randomNumber = (int)Math.ceil(Math.random() * 8);\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player2.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player1.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player1.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player1.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player1.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player2.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player2.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player2.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player2.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();//set up information panel\r\n }", "public void add(Evolver occupant)\n {\n Location loc = getRandomEmptyLocation();\n if (loc != null)\n add(loc, occupant);\n }", "boolean resultingCellHasCreature(MazePoint point, Direction dir,\r\n CreatureType creatureType, int distance);", "public void initWorld()\n\t{\n\t\tgrid = new Creature[numRows][numColumns];\n\t\t\n\t\t//place a Species1 object in the top half of the grid\n\t\tint topRowInit = (int)(Math.random()*(numRows/2));\n\t\tint topColInit = (int)(Math.random()*(numColumns));\n\t\tgrid[topRowInit][topColInit] = new Species1(this, topRowInit, topColInit);\n\t\tgrid[topRowInit][topColInit].live();\n\t\t\n\t\t//place a Species2 object in the bottom half of the grid\n\t\tint bottomRowInit = (int)(Math.random()*(numRows/2))+(numRows/2);\t\t\n\t\tint bottomColInit = (int)(Math.random()*(numColumns));\t\t\t\t\n\t\tgrid[bottomRowInit][bottomColInit] = new Species2(this, bottomRowInit, bottomColInit);\n\t\tgrid[bottomRowInit][bottomColInit].live();\n\t\t\n\t}", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "@FXML\n public void addGym() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingGym(0, 0));\n \t/*\n int xpos = (int) (Math.random() * 600) + 100;\n World.getInstance().addEntityToWorld(new BuildingGym(xpos, 30));\n */\n }", "public boolean add(Space space){\n if(row.size()<8) {\n return row.add(space);\n }\n else{\n return false;\n }\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "public void addRandomTile()\n {\n int count = 0;\n //runs through row first, column second\n for ( int i=0; i < this.grid.length; i++) {\n for ( int j=0; j < this.grid[i].length; j++) {\n // checks to see if the value at the point in the grid is zero\n if ( this.grid[i][j] == 0 ) {\n //increases count to check how many of your tiles equal zero\n count++;\n }\n }\n } \n if ( count == 0 ) {\n // exits method if count is zero because there is nowhere to add a tile\n return;\n }\n int location = random.nextInt(count);\n int percent = 100;\n int value = random.nextInt(percent);\n int mostLikely = 2;\n int lessLikely = 4;\n count = -1;\n // runs through row first, column second\n for ( int i=0; i< this.grid.length; i++ ) {\n for ( int j=0; j< this.grid[i].length; j++ ) {\n if ( this.grid[i][j] == 0 ) {\n count++;\n // checks to see if your value for count is the same as the random\n // integer location\n if ( count == location ) {\n // 90% of the time, the random tile placed will be a two\n if ( value < TWO_PROBABILITY && value >=0 ) {\n this.grid[i][j] = mostLikely;\n }\n else {\n this.grid[i][j] = lessLikely;\n }\n }\n } \n }\n } \n }", "public void addMonster(Dragon mon){\n dragons.add(mon);\n }", "public void addPokemon(Pokemon p)\n\t{\n\t\t/* See if there is space in the player's party */\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] == null)\n\t\t\t{\n\t\t\t\tm_pokemon[i] = p;\n\t\t\t\tupdateClientParty(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t/* Else, find space in a box */\n\t\tfor(int i = 0; i < m_boxes.length; i++)\n\t\t\tif(m_boxes[i] != null)\n\t\t\t{\n\t\t\t\t/* Find space in an existing box */\n\t\t\t\tfor(int j = 0; j < m_boxes[i].getPokemon().length; j++)\n\t\t\t\t\tif(m_boxes[i].getPokemon(j) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_boxes[i].setPokemon(j, p);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* We need a new box */\n\t\t\t\tm_boxes[i] = new PokemonBox();\n\t\t\t\tm_boxes[i].setPokemon(0, p);\n\t\t\t\tbreak;\n\t\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public void addMonster(int type) {\n\t\t/* Choose a side */\n\t\tint r = _rand.nextInt(4000);\n\t\tfloat sx;\n\t\tfloat sy;\n\t\tif (r < 1000) {\n\t\t\t/* Left */\n\t\t\tsx = -32;\n\t\t\tsy = MathUtils.rndInt(getScreenHeight()+64)-32;\n\t\t} else if (r < 2000) {\n\t\t\t/* Top */\n\t\t\tsx = MathUtils.rndInt(getScreenWidth()+64)-32;\n\t\t\tsy = -32;\n\t\t} else if (r < 3000) {\n\t\t\t/* Right */\n\t\t\tsx = getScreenWidth();\n\t\t\tsy = MathUtils.rndInt(getScreenHeight()+64)-32;\n\t\t} else {\n\t\t\t/* Bottom */\n\t\t\tsx = MathUtils.rndInt(getScreenWidth()+64)-32;\n\t\t\tsy = getScreenHeight();\n\t\t}\n\t\t/* Select a type */\n\t\t_monsters.add(new Monster(animMonster, type, 1, sx, sy, 20f * (type+1)));\n\t\t\n\t}", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }", "public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}", "void addPiece(Piece piece);", "protected void putMonsters() {\n\t\tRandom rand = new Random();\n\t\tfor (int monsterCount = 0; monsterCount < 4; monsterCount++){\n\t\t\tint x, y;\n\t\t\tdo {\n\t\t\t\tx = rand.nextInt(xSize);\n\t\t\t\ty = rand.nextInt(ySize);\n\t\t\t} while((levelSetup[x][y] instanceof SimpleRoom) && (x == 0 & y == 0) && !levelSetup[x][y].hasItem());\n\t\t\tlevelSetup[x][y].putMonster(new BasicMonster());\n\t\t}\n\t}", "public void add(int column){\n\t\tif(turn == \"blue\"){\n\t\t\tboard.AddBlue(column);\n\t\t\t\n\t\t}else{\n\t\t\tboard.AddRed(column);\n\t\t}\n\t\tthis.changeTurn();\n\t}", "public void add(TeleportDestination warp) {\n\t\tremove(warp.getName());\n\t\tdestinations.add(warp);\n\t}", "private static void addEnemy( int team_a, int team_b )\r\n\t{\n\t\tENEMY_MAP[team_a-1][team_b-1] = true;\r\n\t\tENEMY_MAP[team_b-1][team_a-1] = true;\r\n\t}", "public GridPosition add(GridPosition delta) {\n return new GridPosition(posX + delta.getX(), posY + delta.getY());\n }", "public void movePawn(int row, int col, int newRow, int newCol, boolean isWhite) {\n removePawn(row, col);\n int rowDiff = newRow - row;\n int colDiff = newCol - col;\n if(FIELDS[newRow-1][newCol-1] == null) {\n //if there is no Pawn on the place where we want to move the pawn moves\n if (isWhite) {\n FIELDS[newRow - 1][newCol - 1] = new Pawn(true, false, newRow, newCol);\n } else {\n FIELDS[newRow - 1][newCol - 1] = new Pawn(false, false, newRow, newCol);\n }}\n else if((FIELDS[newRow-1][newCol-1]).IS_WHITE!= isWhite){\n //if there is opponent Pawn on the place where we want to move the pawn beat it (delete) and move one position more\n\n removePawn(newRow, newCol);\n if (isWhite) {\n FIELDS[newRow - 1 + rowDiff][newCol - 1 + colDiff] = new Pawn(true, false, newRow, newCol);\n } else {\n FIELDS[newRow - 1 + rowDiff][newCol - 1 + colDiff] = new Pawn(false, false, newRow, newCol);\n }\n\n }\n\n }", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "public void addItem(Item item, boolean moving, long creatureId, boolean starting) {\n/* 2186 */ if (this.inactive) {\n/* */ \n/* 2188 */ logger.log(Level.WARNING, \"adding \" + item.getName() + \" to inactive tile \" + this.tilex + \",\" + this.tiley + \" surf=\" + this.surfaced + \" itemsurf=\" + item\n/* 2189 */ .isOnSurface(), new Exception());\n/* 2190 */ logger.log(Level.WARNING, \"The zone \" + this.zone.id + \" covers \" + this.zone.startX + \", \" + this.zone.startY + \" to \" + this.zone.endX + \",\" + this.zone.endY);\n/* */ } \n/* */ \n/* */ \n/* 2194 */ if (item.hidden) {\n/* */ return;\n/* */ }\n/* 2197 */ if (this.isTransition && this.surfaced && !item.isVehicle()) {\n/* */ \n/* 2199 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 2201 */ logger.finest(\"Adding \" + item.getName() + \" to cave level instead.\");\n/* */ }\n/* 2203 */ boolean stayOnSurface = false;\n/* 2204 */ if (Zones.getTextureForTile(this.tilex, this.tiley, 0) != Tiles.Tile.TILE_HOLE.id)\n/* 2205 */ stayOnSurface = true; \n/* 2206 */ if (!stayOnSurface) {\n/* */ \n/* 2208 */ getCaveTile().addItem(item, moving, starting);\n/* */ \n/* */ return;\n/* */ } \n/* */ } \n/* 2213 */ if (item.isTileAligned()) {\n/* */ \n/* 2215 */ item.setPosXY(((this.tilex << 2) + 2), ((this.tiley << 2) + 2));\n/* 2216 */ item.setOwnerId(-10L);\n/* 2217 */ if (item.isFence())\n/* */ {\n/* 2219 */ if (isOnSurface()) {\n/* */ \n/* 2221 */ int offz = 0;\n/* */ \n/* */ try {\n/* 2224 */ offz = (int)((item.getPosZ() - Zones.calculateHeight(item.getPosX(), item.getPosY(), this.surfaced)) / 10.0F);\n/* */ }\n/* 2226 */ catch (NoSuchZoneException nsz) {\n/* */ \n/* 2228 */ logger.log(Level.WARNING, \"Dropping fence item outside zones.\");\n/* */ } \n/* 2230 */ float rot = Creature.normalizeAngle(item.getRotation());\n/* 2231 */ if (rot >= 45.0F && rot < 135.0F)\n/* */ {\n/* 2233 */ VolaTile next = Zones.getOrCreateTile(this.tilex + 1, this.tiley, this.surfaced);\n/* 2234 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex + 1, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, next\n/* 2235 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2237 */ else if (rot >= 135.0F && rot < 225.0F)\n/* */ {\n/* 2239 */ VolaTile next = Zones.getOrCreateTile(this.tilex, this.tiley + 1, this.surfaced);\n/* 2240 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley + 1, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, next\n/* 2241 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2243 */ else if (rot >= 225.0F && rot < 315.0F)\n/* */ {\n/* 2245 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, \n/* 2246 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ else\n/* */ {\n/* 2250 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, \n/* 2251 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ \n/* */ } \n/* */ }\n/* 2256 */ } else if (item.getTileX() != this.tilex || item.getTileY() != this.tiley) {\n/* */ \n/* 2258 */ putRandomOnTile(item);\n/* 2259 */ item.setOwnerId(-10L);\n/* */ } \n/* 2261 */ if (!this.surfaced)\n/* */ {\n/* 2263 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(this.tilex, this.tiley)))) {\n/* */ \n/* 2265 */ if (!(getSurfaceTile()).isTransition) {\n/* */ \n/* 2267 */ getSurfaceTile().addItem(item, moving, creatureId, starting);\n/* 2268 */ logger.log(Level.INFO, \"adding \" + item.getName() + \" in rock at \" + this.tilex + \", \" + this.tiley + \" \");\n/* */ } \n/* */ \n/* */ return;\n/* */ } \n/* */ }\n/* 2274 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2275 */ if (!starting && !item.getTemplate().hovers()) {\n/* 2276 */ item.updatePosZ(this);\n/* */ }\n/* 2278 */ if (this.vitems == null)\n/* 2279 */ this.vitems = new VolaTileItems(); \n/* 2280 */ if (this.vitems.addItem(item, starting)) {\n/* */ \n/* 2282 */ if (item.getTemplateId() == 726) {\n/* 2283 */ Zones.addDuelRing(item);\n/* */ }\n/* 2285 */ if (!item.isDecoration()) {\n/* */ \n/* 2287 */ Item pile = this.vitems.getPileItem(item.getFloorLevel());\n/* 2288 */ if (this.vitems.checkIfCreatePileItem(item.getFloorLevel()) || pile != null) {\n/* */ \n/* 2290 */ if (pile == null) {\n/* */ \n/* 2292 */ pile = createPileItem(item, starting);\n/* 2293 */ this.vitems.addPileItem(pile);\n/* */ } \n/* 2295 */ pile.insertItem(item, true);\n/* 2296 */ int data = pile.getData1();\n/* 2297 */ if (data != -1 && item.getTemplateId() != data) {\n/* */ \n/* 2299 */ pile.setData1(-1);\n/* 2300 */ pile.setName(pile.getTemplate().getName());\n/* 2301 */ String modelname = pile.getTemplate().getModelName().replaceAll(\" \", \"\") + \"unknown.\";\n/* */ \n/* 2303 */ if (this.watchers != null)\n/* */ {\n/* 2305 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 2306 */ ((VirtualZone)it.next()).renameItem(pile, pile.getName(), modelname);\n/* */ }\n/* */ }\n/* */ } \n/* 2310 */ } else if (this.watchers != null) {\n/* */ \n/* 2312 */ boolean onGroundLevel = true;\n/* 2313 */ if (item.getFloorLevel() > 0) {\n/* 2314 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2317 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2318 */ onGroundLevel = false;\n/* */ } \n/* 2320 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2324 */ if (vz.isVisible(item, this)) {\n/* 2325 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2327 */ } catch (Exception e) {\n/* */ \n/* 2329 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ }\n/* */ \n/* */ } \n/* */ } \n/* 2334 */ } else if (this.watchers != null) {\n/* */ \n/* 2336 */ boolean onGroundLevel = true;\n/* 2337 */ if (item.getFloorLevel() > 0) {\n/* 2338 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2341 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2342 */ onGroundLevel = false;\n/* */ } \n/* 2344 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2348 */ if (vz.isVisible(item, this)) {\n/* 2349 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2351 */ } catch (Exception e) {\n/* */ \n/* 2353 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ } \n/* 2357 */ if (item.isDomainItem()) {\n/* 2358 */ Zones.addAltar(item, moving);\n/* */ }\n/* 2360 */ if ((item.getTemplateId() == 1175 || item.getTemplateId() == 1239) && item\n/* 2361 */ .getAuxData() > 0)\n/* 2362 */ Zones.addHive(item, moving); \n/* 2363 */ if (item.getTemplateId() == 939 || item.isEnchantedTurret())\n/* 2364 */ Zones.addTurret(item, moving); \n/* 2365 */ if (item.isEpicTargetItem()) {\n/* 2366 */ EpicTargetItems.addRitualTargetItem(item);\n/* */ }\n/* 2368 */ if (this.village != null && item.getTemplateId() == 757)\n/* */ {\n/* 2370 */ this.village.addBarrel(item);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 2375 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2376 */ if (!item.deleted) {\n/* 2377 */ logger.log(Level.WARNING, \"tile already contained item \" + item.getName() + \" (ID: \" + item.getWurmId() + \") at \" + this.tilex + \", \" + this.tiley, new Exception());\n/* */ }\n/* */ } \n/* */ }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n World myWorld = getWorld();\n List<Crab> crabs = myWorld.getObjects(Crab.class);\n for(Crab c : crabs){\n // int y = Greenfoot.getRandomNumber(560);\n // int x = Greenfoot.getRandomNumber(560);\n //c.setLocation(x,y);\n // myWorld.removeObjects(crabs);\n }\n \n /*\n Crab c = new Crab();\n int y = Greenfoot.getRandomNumber(560);\n int x = Greenfoot.getRandomNumber(560);\n myWorld.addObject(c, x, y);\n */\n \n }\n}", "public void makeMove(Location loc)\n {\n if (loc == null)\n removeSelfFromGrid();\n else\n {\n int newDirection = getLocation().getDirectionToward(loc);\n Location nextLocation = getLocation().getAdjacentLocation(newDirection);\n Actor otherActor = getGrid().get(nextLocation);\n if(otherActor != null)\n {\n if(otherActor instanceof AbstractPokemon)\n {\n AbstractPokemon otherPokemon = (AbstractPokemon) otherActor;\n battle(otherPokemon);\n }\n else\n {\n PokemonTrainer otherTrainer = (PokemonTrainer) otherActor;\n battleTrainer(otherTrainer);\n }\n }\n if(getGrid() != null)\n moveTo(loc);\n }\n }", "private void placePiece() {\r\n pieces[numPieces] = getRandomPoint();\r\n Game.movePiece(new PositionData(-1,-1,Constants.PLAYER_A_ID), pieces[numPieces]);\r\n numPieces++;\r\n }", "private Room addRandomRoom(Random random) {\n int width = RandomUtils.uniform(random, MINROOMWIDTH, MAXROOMWIDTH);\n int height = RandomUtils.uniform(random, MINROOMHEIGHT, MAXROOMHEIGHT);\n int xCoordinate = RandomUtils.uniform(random, 0, size.width - width);\n int yCoordinate = RandomUtils.uniform(random, 0, size.height - height);\n Room newRoom = new Room(new Position(xCoordinate, yCoordinate), new Size(width, height));\n drawRoom(newRoom);\n return newRoom;\n }", "public boolean addPlayer(int pno){\n\t\t\n\t\t// Gets the coordinates of a non-wall and non-occupied space\n\t\tint[] pos = initiatePlayer(pno);\n\t\t\n\t\t// If a free space could not be found, return false and the client will be force quit\n\t\tif (pos == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Put the player into the HashMaps\n\t\tplayerPosition.put(pno, pos);\n\t\tcollectedGold.put(pno, 0);\n\t\t\n\t\treturn true;\n\t}", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void add(final double col, final double row, final Character.Type type) throws Exception;", "private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}", "public void addPerson(Person person){\n if (person.getCurrentFloor() != this.currentFloor){\n throw new IllegalArgumentException(\"Person with ID \" + person.getPersonID() +\n \" enters elevator with ID \" + this.ElevatorID + \" on wrong floor\");\n }\n if (!doorOpened) {\n throw new IllegalArgumentException(\"Person with ID \" + person.getPersonID() +\n \" wants to go to closed elevator with ID \" + this.ElevatorID);\n } else if (peopleInside.contains(person)) {\n throw new IllegalArgumentException(\"Person with ID \" + person.getPersonID() +\n \" is already in elevator with ID \" + this.ElevatorID);\n }\n peopleInside.add(person);\n\n }", "public void placeItemInRoomAtCoords(WorldItem item, int row, int column) {\n Point targetPoint = getPointAtLocation(row, column);\n targetPoint.setContainedItem(item);\n if (item instanceof FlammableItem) {\n flammableItemCount++;\n }\n }", "public void addNewJet() {\n\t\n\tSystem.out.println(\"Please enter the model of the JET in all CAPS:\");\n\tString modelsOfJets = kb.next();\n\tSystem.out.println(\"Please enter the speed of the JET in miles per hour (MPH):\");\n\tdouble speedMPH = kb.nextDouble();\n\tSystem.out.println(\"Please enter the price of the JET in dollars:\");\n\tdouble priceInDollars = kb.nextDouble();\n\tSystem.out.println(\"Please enter the range of the JET in miles:\");\n\tdouble rangeInMiles = kb.nextDouble();\n\t\n\tJet j = new Jet(modelsOfJets, speedMPH, priceInDollars, rangeInMiles);\n\t\n\thangar.addNewJetInHangar(j); // adds the jet to the hangar object (that has the jet array)\n\t\t}", "private void addSpawnsToList()\n\t{\n\t\tSPAWNS.put(1, new ESSpawn(1, GraciaSeeds.DESTRUCTION, new Location(-245790,220320,-12104), new int[]{TEMPORARY_TELEPORTER}));\n\t\tSPAWNS.put(2, new ESSpawn(2, GraciaSeeds.DESTRUCTION, new Location(-249770,207300,-11952), new int[]{TEMPORARY_TELEPORTER}));\n\t\t//Energy Seeds\n\t\tSPAWNS.put(3, new ESSpawn(3, GraciaSeeds.DESTRUCTION, new Location(-248360,219272,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(4, new ESSpawn(4, GraciaSeeds.DESTRUCTION, new Location(-249448,219256,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(5, new ESSpawn(5, GraciaSeeds.DESTRUCTION, new Location(-249432,220872,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(6, new ESSpawn(6, GraciaSeeds.DESTRUCTION, new Location(-248360,220888,-12448), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(7, new ESSpawn(7, GraciaSeeds.DESTRUCTION, new Location(-250088,219256,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(8, new ESSpawn(8, GraciaSeeds.DESTRUCTION, new Location(-250600,219272,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(9, new ESSpawn(9, GraciaSeeds.DESTRUCTION, new Location(-250584,220904,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(10, new ESSpawn(10, GraciaSeeds.DESTRUCTION, new Location(-250072,220888,-12448), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(11, new ESSpawn(11, GraciaSeeds.DESTRUCTION, new Location(-253096,217704,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(12, new ESSpawn(12, GraciaSeeds.DESTRUCTION, new Location(-253112,217048,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(13, new ESSpawn(13, GraciaSeeds.DESTRUCTION, new Location(-251448,217032,-12288), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(14, new ESSpawn(14, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(15, new ESSpawn(15, GraciaSeeds.DESTRUCTION, new Location(-251416,217672,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(16, new ESSpawn(16, GraciaSeeds.DESTRUCTION, new Location(-251416,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(17, new ESSpawn(17, GraciaSeeds.DESTRUCTION, new Location(-249752,217016,-12280), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(18, new ESSpawn(18, GraciaSeeds.DESTRUCTION, new Location(-249736,217688,-12296), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(19, new ESSpawn(19, GraciaSeeds.DESTRUCTION, new Location(-252472,215208,-12120), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(20, new ESSpawn(20, GraciaSeeds.DESTRUCTION, new Location(-252552,216760,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(21, new ESSpawn(21, GraciaSeeds.DESTRUCTION, new Location(-253160,216744,-12248), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(22, new ESSpawn(22, GraciaSeeds.DESTRUCTION, new Location(-253128,215160,-12096), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(23, new ESSpawn(23, GraciaSeeds.DESTRUCTION, new Location(-250392,215208,-12120), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(24, new ESSpawn(24, GraciaSeeds.DESTRUCTION, new Location(-250264,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(25, new ESSpawn(25, GraciaSeeds.DESTRUCTION, new Location(-249720,216744,-12248), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(26, new ESSpawn(26, GraciaSeeds.DESTRUCTION, new Location(-249752,215128,-12096), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(27, new ESSpawn(27, GraciaSeeds.DESTRUCTION, new Location(-250280,216760,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(28, new ESSpawn(28, GraciaSeeds.DESTRUCTION, new Location(-250344,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(29, new ESSpawn(29, GraciaSeeds.DESTRUCTION, new Location(-252504,216152,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(30, new ESSpawn(30, GraciaSeeds.DESTRUCTION, new Location(-252520,216792,-12248), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(31, new ESSpawn(31, GraciaSeeds.DESTRUCTION, new Location(-242520,217272,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(32, new ESSpawn(32, GraciaSeeds.DESTRUCTION, new Location(-241432,217288,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(33, new ESSpawn(33, GraciaSeeds.DESTRUCTION, new Location(-241432,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(34, new ESSpawn(34, GraciaSeeds.DESTRUCTION, new Location(-242536,218936,-12384), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(35, new ESSpawn(35, GraciaSeeds.DESTRUCTION, new Location(-240808,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(36, new ESSpawn(36, GraciaSeeds.DESTRUCTION, new Location(-240280,217272,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(37, new ESSpawn(37, GraciaSeeds.DESTRUCTION, new Location(-240280,218952,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(38, new ESSpawn(38, GraciaSeeds.DESTRUCTION, new Location(-240792,218936,-12384), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(39, new ESSpawn(39, GraciaSeeds.DESTRUCTION, new Location(-239576,217240,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(40, new ESSpawn(40, GraciaSeeds.DESTRUCTION, new Location(-239560,216168,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(41, new ESSpawn(41, GraciaSeeds.DESTRUCTION, new Location(-237896,216152,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(42, new ESSpawn(42, GraciaSeeds.DESTRUCTION, new Location(-237912,217256,-12640), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(43, new ESSpawn(43, GraciaSeeds.DESTRUCTION, new Location(-237896,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(44, new ESSpawn(44, GraciaSeeds.DESTRUCTION, new Location(-239560,215528,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(45, new ESSpawn(45, GraciaSeeds.DESTRUCTION, new Location(-239560,214984,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(46, new ESSpawn(46, GraciaSeeds.DESTRUCTION, new Location(-237896,215000,-12640), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(47, new ESSpawn(47, GraciaSeeds.DESTRUCTION, new Location(-237896,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(48, new ESSpawn(48, GraciaSeeds.DESTRUCTION, new Location(-239560,213640,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(49, new ESSpawn(49, GraciaSeeds.DESTRUCTION, new Location(-239544,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(50, new ESSpawn(50, GraciaSeeds.DESTRUCTION, new Location(-237912,212552,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(51, new ESSpawn(51, GraciaSeeds.DESTRUCTION, new Location(-237912,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(52, new ESSpawn(52, GraciaSeeds.DESTRUCTION, new Location(-237912,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(53, new ESSpawn(53, GraciaSeeds.DESTRUCTION, new Location(-239560,211400,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(54, new ESSpawn(54, GraciaSeeds.DESTRUCTION, new Location(-239560,211912,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(55, new ESSpawn(55, GraciaSeeds.DESTRUCTION, new Location(-241960,214536,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(56, new ESSpawn(56, GraciaSeeds.DESTRUCTION, new Location(-241976,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(57, new ESSpawn(57, GraciaSeeds.DESTRUCTION, new Location(-243624,213448,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(58, new ESSpawn(58, GraciaSeeds.DESTRUCTION, new Location(-243624,214520,-12512), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(59, new ESSpawn(59, GraciaSeeds.DESTRUCTION, new Location(-241976,212808,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(60, new ESSpawn(60, GraciaSeeds.DESTRUCTION, new Location(-241960,212280,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(61, new ESSpawn(61, GraciaSeeds.DESTRUCTION, new Location(-243624,212264,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(62, new ESSpawn(62, GraciaSeeds.DESTRUCTION, new Location(-243624,212792,-12504), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(63, new ESSpawn(63, GraciaSeeds.DESTRUCTION, new Location(-243640,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(64, new ESSpawn(64, GraciaSeeds.DESTRUCTION, new Location(-243624,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(65, new ESSpawn(65, GraciaSeeds.DESTRUCTION, new Location(-241976,209832,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(66, new ESSpawn(66, GraciaSeeds.DESTRUCTION, new Location(-241976,210920,-12640), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(67, new ESSpawn(67, GraciaSeeds.DESTRUCTION, new Location(-241976,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(68, new ESSpawn(68, GraciaSeeds.DESTRUCTION, new Location(-241976,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(69, new ESSpawn(69, GraciaSeeds.DESTRUCTION, new Location(-243624,208664,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(70, new ESSpawn(70, GraciaSeeds.DESTRUCTION, new Location(-243624,209192,-12640), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(71, new ESSpawn(71, GraciaSeeds.DESTRUCTION, new Location(-241256,208664,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(72, new ESSpawn(72, GraciaSeeds.DESTRUCTION, new Location(-240168,208648,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(73, new ESSpawn(73, GraciaSeeds.DESTRUCTION, new Location(-240168,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(74, new ESSpawn(74, GraciaSeeds.DESTRUCTION, new Location(-241256,207000,-12896), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(75, new ESSpawn(75, GraciaSeeds.DESTRUCTION, new Location(-239528,208648,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(76, new ESSpawn(76, GraciaSeeds.DESTRUCTION, new Location(-238984,208664,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(77, new ESSpawn(77, GraciaSeeds.DESTRUCTION, new Location(-239000,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(78, new ESSpawn(78, GraciaSeeds.DESTRUCTION, new Location(-239512,207000,-12896), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE}));\n\t\tSPAWNS.put(79, new ESSpawn(79, GraciaSeeds.DESTRUCTION, new Location(-245064,213144,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(80, new ESSpawn(80, GraciaSeeds.DESTRUCTION, new Location(-245064,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(81, new ESSpawn(81, GraciaSeeds.DESTRUCTION, new Location(-246696,212072,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(82, new ESSpawn(82, GraciaSeeds.DESTRUCTION, new Location(-246696,213160,-12384), new int[]{ENERGY_SEED_WIND,ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(83, new ESSpawn(83, GraciaSeeds.DESTRUCTION, new Location(-245064,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(84, new ESSpawn(84, GraciaSeeds.DESTRUCTION, new Location(-245048,210904,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(85, new ESSpawn(85, GraciaSeeds.DESTRUCTION, new Location(-246712,210888,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(86, new ESSpawn(86, GraciaSeeds.DESTRUCTION, new Location(-246712,211416,-12384), new int[]{ENERGY_SEED_DARKNESS,ENERGY_SEED_WATER}));\n\t\tSPAWNS.put(87, new ESSpawn(87, GraciaSeeds.DESTRUCTION, new Location(-245048,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(88, new ESSpawn(88, GraciaSeeds.DESTRUCTION, new Location(-245064,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(89, new ESSpawn(89, GraciaSeeds.DESTRUCTION, new Location(-246696,208456,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(90, new ESSpawn(90, GraciaSeeds.DESTRUCTION, new Location(-246712,209544,-12512), new int[]{ENERGY_SEED_FIRE,ENERGY_SEED_WIND,ENERGY_SEED_EARTH}));\n\t\tSPAWNS.put(91, new ESSpawn(91, GraciaSeeds.DESTRUCTION, new Location(-245048,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(92, new ESSpawn(92, GraciaSeeds.DESTRUCTION, new Location(-245048,207288,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(93, new ESSpawn(93, GraciaSeeds.DESTRUCTION, new Location(-246696,207304,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(94, new ESSpawn(94, GraciaSeeds.DESTRUCTION, new Location(-246712,207816,-12512), new int[]{ENERGY_SEED_DIVINITY,ENERGY_SEED_DARKNESS}));\n\t\tSPAWNS.put(95, new ESSpawn(95, GraciaSeeds.DESTRUCTION, new Location(-244328,207272,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(96, new ESSpawn(96, GraciaSeeds.DESTRUCTION, new Location(-243256,207256,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(97, new ESSpawn(97, GraciaSeeds.DESTRUCTION, new Location(-243256,205624,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(98, new ESSpawn(98, GraciaSeeds.DESTRUCTION, new Location(-244328,205608,-12768), new int[]{ENERGY_SEED_WATER,ENERGY_SEED_FIRE,ENERGY_SEED_WIND}));\n\t\tSPAWNS.put(99, new ESSpawn(99, GraciaSeeds.DESTRUCTION, new Location(-242616,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(100, new ESSpawn(100, GraciaSeeds.DESTRUCTION, new Location(-242104,207272,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(101, new ESSpawn(101, GraciaSeeds.DESTRUCTION, new Location(-242088,205624,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\tSPAWNS.put(102, new ESSpawn(102, GraciaSeeds.DESTRUCTION, new Location(-242600,205608,-12768), new int[]{ENERGY_SEED_EARTH,ENERGY_SEED_DIVINITY}));\n\t\t// Seed of Annihilation\n\t\tSPAWNS.put(103, new ESSpawn(103, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184519,183007,-10456), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(104, new ESSpawn(104, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184873,181445,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(105, new ESSpawn(105, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180962,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(106, new ESSpawn(106, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185321,181641,-10448), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(107, new ESSpawn(107, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184035,182775,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(108, new ESSpawn(108, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185433,181935,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(109, new ESSpawn(109, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183309,183007,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(110, new ESSpawn(110, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181886,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(111, new ESSpawn(111, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184009,180392,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(112, new ESSpawn(112, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183793,183239,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(113, new ESSpawn(113, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184245,180848,-10464), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(114, new ESSpawn(114, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-182704,183761,-10528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(115, new ESSpawn(115, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184705,181886,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(116, new ESSpawn(116, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184304,181076,-10488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(117, new ESSpawn(117, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183596,180430,-10424), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(118, new ESSpawn(118, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184422,181038,-10480), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(119, new ESSpawn(119, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184929,181543,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(120, new ESSpawn(120, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184398,182891,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(121, new ESSpawn(121, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182848,-10584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(122, new ESSpawn(122, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178104,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(123, new ESSpawn(123, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177274,182284,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(124, new ESSpawn(124, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177772,183224,-10560), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(125, new ESSpawn(125, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181532,180364,-10504), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(126, new ESSpawn(126, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181802,180276,-10496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(127, new ESSpawn(127, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,180444,-10512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(128, new ESSpawn(128, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177606,182190,-10600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(129, new ESSpawn(129, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-177357,181908,-10576), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(130, new ESSpawn(130, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178747,179534,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(131, new ESSpawn(131, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178429,179534,-10392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(132, new ESSpawn(132, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178853,180094,-10472), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(133, new ESSpawn(133, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181937,179660,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(134, new ESSpawn(134, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-180992,179572,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(135, new ESSpawn(135, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185552,179252,-10368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(136, new ESSpawn(136, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178913,-10400), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(137, new ESSpawn(137, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184768,178348,-10312), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(138, new ESSpawn(138, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-184572,178574,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(139, new ESSpawn(139, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185062,178913,-10384), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(140, new ESSpawn(140, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181397,179484,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(141, new ESSpawn(141, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-181667,179044,-10408), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(142, new ESSpawn(142, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-185258,177896,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(143, new ESSpawn(143, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183506,176570,-10280), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(144, new ESSpawn(144, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183719,176804,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(145, new ESSpawn(145, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183648,177116,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(146, new ESSpawn(146, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183932,176492,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(147, new ESSpawn(147, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183861,176570,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(148, new ESSpawn(148, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-183790,175946,-10240), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(149, new ESSpawn(149, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178641,179604,-10416), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(150, new ESSpawn(150, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-178959,179814,-10432), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(151, new ESSpawn(151, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176367,178456,-10376), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(152, new ESSpawn(152, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175845,177172,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(153, new ESSpawn(153, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-175323,177600,-10248), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(154, new ESSpawn(154, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174975,177172,-10216), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(155, new ESSpawn(155, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-176019,178242,-10352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(156, new ESSpawn(156, GraciaSeeds.ANNIHILATION_BISTAKON, new Location(-174801,178456,-10264), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(157, new ESSpawn(157, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185648,183384,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(158, new ESSpawn(158, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186740,180908,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(159, new ESSpawn(159, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185297,184658,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(160, new ESSpawn(160, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185697,181601,-15488), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(161, new ESSpawn(161, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186684,182744,-15536), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(162, new ESSpawn(162, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184908,183384,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(163, new ESSpawn(163, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185572,-15784), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(164, new ESSpawn(164, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185796,182616,-15608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(165, new ESSpawn(165, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184970,184385,-15648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(166, new ESSpawn(166, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185995,180809,-15512), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(167, new ESSpawn(167, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182872,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(168, new ESSpawn(168, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185624,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(169, new ESSpawn(169, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184486,185774,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(170, new ESSpawn(170, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186496,184112,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(171, new ESSpawn(171, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184232,185976,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(172, new ESSpawn(172, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184994,185673,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(173, new ESSpawn(173, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185733,184203,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(174, new ESSpawn(174, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185079,184294,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(175, new ESSpawn(175, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184803,180710,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(176, new ESSpawn(176, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186293,180413,-15528), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(177, new ESSpawn(177, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185352,182936,-15632), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(178, new ESSpawn(178, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184356,180611,-15496), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(179, new ESSpawn(179, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185375,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(180, new ESSpawn(180, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184867,186784,-15816), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(181, new ESSpawn(181, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180553,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(182, new ESSpawn(182, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180422,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(183, new ESSpawn(183, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181863,181138,-15120), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(184, new ESSpawn(184, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-181732,180454,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(185, new ESSpawn(185, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180684,180397,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(186, new ESSpawn(186, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-182256,180682,-15112), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(187, new ESSpawn(187, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,179492,-15392), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(188, new ESSpawn(188, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(189, new ESSpawn(189, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-186028,178856,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(190, new ESSpawn(190, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185224,179068,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(191, new ESSpawn(191, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185492,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(192, new ESSpawn(192, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185894,178538,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(193, new ESSpawn(193, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180619,178855,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(194, new ESSpawn(194, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180255,177892,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(195, new ESSpawn(195, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-185804,176472,-15336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(196, new ESSpawn(196, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184580,176370,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(197, new ESSpawn(197, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184308,176166,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(198, new ESSpawn(198, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-183764,177186,-15304), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(199, new ESSpawn(199, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180801,177571,-15144), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(200, new ESSpawn(200, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184716,176064,-15320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(201, new ESSpawn(201, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-184444,175452,-15296), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(202, new ESSpawn(202, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,177464,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(203, new ESSpawn(203, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-180164,178213,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(204, new ESSpawn(204, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-179982,178320,-15152), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(205, new ESSpawn(205, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176925,177757,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(206, new ESSpawn(206, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176164,179282,-15720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(207, new ESSpawn(207, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,177613,-15800), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(208, new ESSpawn(208, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175418,178117,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(209, new ESSpawn(209, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176103,177829,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(210, new ESSpawn(210, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175966,177325,-15792), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(211, new ESSpawn(211, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174778,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(212, new ESSpawn(212, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175692,178261,-15824), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(213, new ESSpawn(213, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-176038,179192,-15736), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(214, new ESSpawn(214, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175660,179462,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(215, new ESSpawn(215, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175912,179732,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(216, new ESSpawn(216, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175156,180182,-15680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(217, new ESSpawn(217, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182059,-15664), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(218, new ESSpawn(218, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-175590,181478,-15640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(219, new ESSpawn(219, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174510,181561,-15616), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(220, new ESSpawn(220, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174240,182391,-15688), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(221, new ESSpawn(221, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174105,182806,-15672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(222, new ESSpawn(222, GraciaSeeds.ANNIHILATION_REPTILIKON, new Location(-174645,182806,-15712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(223, new ESSpawn(223, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214962,182403,-10992), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(224, new ESSpawn(224, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-215019,182493,-11000), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(225, new ESSpawn(225, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211374,180793,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(226, new ESSpawn(226, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-211198,180661,-11680), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(227, new ESSpawn(227, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213097,178936,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(228, new ESSpawn(228, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213517,178936,-12712), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(229, new ESSpawn(229, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214105,179191,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(230, new ESSpawn(230, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-213769,179446,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(231, new ESSpawn(231, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-214021,179344,-12720), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(232, new ESSpawn(232, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210582,180595,-11672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(233, new ESSpawn(233, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-210934,180661,-11696), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(234, new ESSpawn(234, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207058,178460,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(235, new ESSpawn(235, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207454,179151,-11368), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(236, new ESSpawn(236, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207422,181365,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(237, new ESSpawn(237, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207358,180627,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(238, new ESSpawn(238, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207230,180996,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(239, new ESSpawn(239, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208515,184160,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(240, new ESSpawn(240, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207613,184000,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(241, new ESSpawn(241, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-208597,183760,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(242, new ESSpawn(242, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206710,176142,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(243, new ESSpawn(243, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206361,178136,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(244, new ESSpawn(244, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206178,178630,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(245, new ESSpawn(245, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205738,178715,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(246, new ESSpawn(246, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206442,178205,-12648), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(247, new ESSpawn(247, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206585,178874,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(248, new ESSpawn(248, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206073,179366,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(249, new ESSpawn(249, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206009,178628,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(250, new ESSpawn(250, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206155,181301,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(251, new ESSpawn(251, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206595,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(252, new ESSpawn(252, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181641,-12656), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(253, new ESSpawn(253, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206507,181471,-12640), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(254, new ESSpawn(254, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206974,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(255, new ESSpawn(255, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206304,175130,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(256, new ESSpawn(256, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206886,175802,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(257, new ESSpawn(257, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207238,175972,-12672), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(258, new ESSpawn(258, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,174857,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(259, new ESSpawn(259, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-206386,175039,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(260, new ESSpawn(260, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-205976,174584,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(261, new ESSpawn(261, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-207367,184320,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(262, new ESSpawn(262, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219002,180419,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(263, new ESSpawn(263, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,182790,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(264, new ESSpawn(264, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218853,183343,-12600), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(265, new ESSpawn(265, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186247,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(266, new ESSpawn(266, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218358,186083,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(267, new ESSpawn(267, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-217574,185796,-11352), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(268, new ESSpawn(268, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219178,181051,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(269, new ESSpawn(269, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220171,180313,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(270, new ESSpawn(270, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219293,183738,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(271, new ESSpawn(271, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219381,182553,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(272, new ESSpawn(272, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219600,183024,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(273, new ESSpawn(273, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219940,182680,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(274, new ESSpawn(274, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219260,183884,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(275, new ESSpawn(275, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219855,183540,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(276, new ESSpawn(276, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218946,186575,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(277, new ESSpawn(277, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219882,180103,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(278, new ESSpawn(278, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219266,179787,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(279, new ESSpawn(279, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178337,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(280, new ESSpawn(280, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,179875,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(281, new ESSpawn(281, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219716,180021,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(282, new ESSpawn(282, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219989,179437,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(283, new ESSpawn(283, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219078,178298,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(284, new ESSpawn(284, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218684,178954,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(285, new ESSpawn(285, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219089,178456,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(286, new ESSpawn(286, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-220266,177623,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(287, new ESSpawn(287, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219201,178025,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(288, new ESSpawn(288, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219142,177044,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(289, new ESSpawn(289, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219690,177895,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(290, new ESSpawn(290, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219754,177623,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(291, new ESSpawn(291, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218791,177830,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(292, new ESSpawn(292, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218904,176219,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(293, new ESSpawn(293, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218768,176384,-12584), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(294, new ESSpawn(294, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177626,-11320), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(295, new ESSpawn(295, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218774,177792,-11328), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(296, new ESSpawn(296, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219880,175901,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(297, new ESSpawn(297, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219210,176054,-12592), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(298, new ESSpawn(298, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219850,175991,-12608), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(299, new ESSpawn(299, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-219079,175021,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(300, new ESSpawn(300, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218812,174229,-11344), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\tSPAWNS.put(301, new ESSpawn(301, GraciaSeeds.ANNIHILATION_COKRAKON, new Location(-218723,174669,-11336), new int[]{ ENERGY_SEED_WATER, ENERGY_SEED_FIRE, ENERGY_SEED_WIND, ENERGY_SEED_EARTH, ENERGY_SEED_DIVINITY, ENERGY_SEED_DARKNESS }));\n\t\t//@formatter:on\n\t}", "public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public abstract void removeCreature(Point p);", "public boolean addWeapon(Weapon wp, int row, int col)\r\n\t{\r\n\t\tif(row < rows && row >= 0 && col < columns && col >= 0)\r\n\t\t\treturn cells[row][col].addWeapon(wp);\r\n\t\treturn false;\r\n\t}", "private void addNewRandomRabbit() {\n int countLimit = 10 * gridSize ^ 2;\n boolean foundFreeCell = false;\n int count = 0;\n while (!foundFreeCell && count < countLimit) {\n int x = (int) (Math.random() * gridSize);\n int y = (int) (Math.random() * gridSize);\n if (addNewRabbit(x, y)) {\n foundFreeCell = true;\n }\n count++;\n }\n }", "public void spawnFirstCreature(){\n\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\"))\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"antorc\"+spawnId);\n\t\t\n\t\t//Add new event into pool which will spawn the rest of the worms ( -1 because this method already spawned one )\n\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,spawnCount-1));\n\t}", "@Override\n public void commandAddTreasure(int treasureId, int questID, float x, float y) {\n\n }", "public void addEntity(Entity entity)\n {\n if (this.withinBounds(entity.getPosition()))\n {\n this.setOccupancyCell(entity.getPosition(), entity);\n this.entities.add(entity);\n }\n }", "public void addDrone()\r\n {\r\n if (droneTimer==0)\r\n {\r\n getWorld().addObject(new Drone(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n droneTimer =droneDelay;\r\n getWorld().addObject(new LightGunship(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n getWorld().addObject(new HeavyGunship(),(int)(Math.random()*(getWorld().getWidth()-50)+25),0);\r\n if(droneDelay >3)\r\n {\r\n droneDelay-=2;\r\n }\r\n }\r\n }", "private void createNewCity()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();\r\n }", "protected void placeRandomly ( Thing thing ) {\n\t\tfor ( ; true ; ) {\n\t\t\tint row = (int) (Math.random() * numrows_);\n\t\t\tint col = (int) (Math.random() * numcols_);\n\t\t\tif ( field_[row][col] == null ) {\n\t\t\t\tfield_[row][col] = thing;\n\t\t\t\tif ( thing instanceof Animal ) {\n\t\t\t\t\t((Animal) thing).setPosition(row,col);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void addEnemies() {\n\t\tred_ghost = new Enemy();\r\n\t\tthis.add(red_ghost);\r\n\t\tenemies.add(red_ghost);\r\n\t\t\r\n\t}", "private void addRandomAsteroid() {\n ThreadLocalRandom rng = ThreadLocalRandom.current();\n Point.Double newAsteroidLocation;\n //TODO: dont spawn on top of players\n Point.Double shipLocation = new Point2D.Double(0,0);\n double distanceX, distanceY;\n do { // Iterate until a point is found that is far enough away from the player.\n newAsteroidLocation = new Point.Double(rng.nextDouble(0.0, 800.0), rng.nextDouble(0.0, 800.0));\n distanceX = newAsteroidLocation.x - shipLocation.x;\n distanceY = newAsteroidLocation.y - shipLocation.y;\n } while (distanceX * distanceX + distanceY * distanceY < 50 * 50); // Pythagorean theorem for distance between two points.\n\n double randomChance = rng.nextDouble();\n Point.Double randomVelocity = new Point.Double(rng.nextDouble() * 6 - 3, rng.nextDouble() * 6 - 3);\n AsteroidSize randomSize;\n if (randomChance < 0.333) { // 33% chance of spawning a large asteroid.\n randomSize = AsteroidSize.LARGE;\n } else if (randomChance < 0.666) { // 33% chance of spawning a medium asteroid.\n randomSize = AsteroidSize.MEDIUM;\n } else { // And finally a 33% chance of spawning a small asteroid.\n randomSize = AsteroidSize.SMALL;\n }\n this.game.getAsteroids().add(new Asteroid(newAsteroidLocation, randomVelocity, randomSize));\n }", "public void registerCell(int xCord, int yCord, Cell cell) {\n grid[xCord][yCord] = cell;\n }", "public void addTileAtTheEnd(Tile tile);", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public void addDrone(char type) {\n boolean clash = true;\t\t//initialise clash to true\n double xVal = randomGenerator.nextInt(xSize); //find random location\n double yVal = randomGenerator.nextInt(ySize);\n\n while(clash) {\n if(getDroneAt(xVal, yVal) == null) { //keep trying till nothing in that space\n clash = false;\n }\n xVal = randomGenerator.nextInt(xSize);\t\t//random x less than width\n yVal = randomGenerator.nextInt(ySize);\t\t//random y less than height\n\n\n }\n\n if(type == 'd'){ //add piece of type drone to list\n Drone newPiece = new Drone(xVal, yVal);\n drones.add(newPiece);\n }\n else if(type == 'o'){ //add piece of type obstacle to list\n Obstacle newPiece = new Obstacle(xVal, yVal);\n drones.add(newPiece);\n }\n else if(type == 'b'){ //add piece of type bird to list\n Bird newPiece = new Bird(xVal, yVal);\n drones.add(newPiece);\n }\n }", "private boolean addTile(int tileRow, int tileCol, Palette.FillColor color, int width, int height) {\n\t\t\tif (tileRow + height > ROWS || tileCol + width > COLS)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// check if another tile exists in region\n\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++) {\n\t\t\t\t\tif (m_tileMap[r][c] != '0')\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean added = m_tiles.get(tileRow).add(new Board.Tile(tileCol, color, width, height));\n\t\t\tif (added) {\n\t\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++)\n\t\t\t\t\t\tm_tileMap[r][c] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn added;\n\t\t}" ]
[ "0.657055", "0.64317405", "0.6227635", "0.6199073", "0.61360216", "0.5945796", "0.58886147", "0.58839625", "0.58815825", "0.5864379", "0.58632267", "0.58523124", "0.58340585", "0.5815399", "0.5799922", "0.5784557", "0.57689244", "0.5744138", "0.57231236", "0.5714343", "0.5692758", "0.5691676", "0.5663888", "0.56618774", "0.5651097", "0.5650081", "0.5635814", "0.5620534", "0.5619129", "0.5599254", "0.55931515", "0.55316496", "0.5507939", "0.5494239", "0.54652774", "0.5453637", "0.5445037", "0.5443573", "0.54420847", "0.54261935", "0.5419032", "0.5418243", "0.5407693", "0.5400769", "0.5378774", "0.5375403", "0.5372399", "0.53675944", "0.5367494", "0.53662884", "0.5363801", "0.53625506", "0.5359462", "0.5359091", "0.5358052", "0.5342222", "0.5338806", "0.53315467", "0.53304476", "0.53191864", "0.53039", "0.52917147", "0.52912545", "0.5290115", "0.5276545", "0.52762294", "0.52675843", "0.52551156", "0.5254498", "0.5252816", "0.52523595", "0.5251958", "0.5250714", "0.52483135", "0.5237657", "0.5236531", "0.52356035", "0.52326596", "0.5228586", "0.52216554", "0.52213633", "0.52145463", "0.5213893", "0.5212431", "0.5207572", "0.52047074", "0.5203538", "0.51990694", "0.51988053", "0.5192958", "0.51909274", "0.51897323", "0.5189024", "0.5180886", "0.5177746", "0.51748544", "0.5173239", "0.51726896", "0.51692915", "0.5162443" ]
0.70505184
0
returns the grid object
public Creature[][] getGrid() { return grid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Grid grid() { return grid; }", "public abstract Grid<?> getGrid();", "public Grid getGrid() {\n return myGrid;\n }", "public Grid getGrid() {\n \t\treturn grid;\n \t}", "public GridPane getGrid(){\n\t\treturn myGrid;\n\t}", "com.ctrip.ferriswheel.proto.v1.Grid getGrid();", "public GridPane getGrid() {\n return grid;\n }", "protected BoardGrid getGrid() {\n return GameController.getInstance().getGrid();\n }", "public GridDisplay getGrid(){\n\t\treturn this.display.gridDisplay;\n\t\t//return this.grid;\n\t}", "public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}", "protected BattleGrid getGrid() {\n return grid;\n }", "public TetrisGrid getGrid()\r\n\t{\r\n\t\treturn grid;\r\n\t}", "public Cell[][] getGrid() {\n return grid;\n }", "public Grid getGrid()\n {\n \treturn puzzle;\n }", "public int[][] getGrid()\n {\n return grid;\n }", "@Override\n public Tile[][] getGrid() { return grid; }", "public GridAlg getGrid() {\n\t\treturn grid;\n\t}", "public CellGrid getCellGrid() {\n return cellGrid;\n }", "public Box[][] getGrid() {\n return this.grid;\n }", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t\tLine(\"1-2\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\tBus(\"2\").\n\t\t\t\t\t\tControllableDemand(\"S\").\n\t\t\t\t\t\tLine(\"2-3\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\t\tBus(\"3\").\n\t\t\t\t\t\t\t\tLoad(\"L\").\n\t\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tLine(\"2-4\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\tBus(\"4\").\n\t\t\t\t\t\t\tDistributedSource(\"DG\").\n\t\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\tterminate().\n\t\t\tterminate().\n\t\tgrid();\n\t\t\n\t\t// x_0:\n\t\tLoad load = grid.getLoad(\"L\");\n\t\tControllableDemand storage = grid.getControllableDemand(\"S\");\n\t\tDistributedSource dg = grid.getDistributedSource(\"DG\");\n\t\tsetupUnits(load, storage, dg);\n\t\t\n\t\treturn grid;\n\t}", "public Square[][] getGrid() {\n\t\treturn this.grid;\n\t}", "public Node createGrid() {\n\t\tGroup gridGroup = new Group();\n\t\tgridGroup.getChildren().addAll(buildXYPlane());\n\t\t/*\n\t\t * XXX extend the grid\n\t\t * \n\t\t * here it would be possible to extend the grid, e.g. with a graph\n\t\t * or another plane with a grid (XZ, YZ, ...).\n\t\t * \n\t\t * it would look like this:\n\t\t * gridGroup.getChildren().addAll(buildGraph());\n\t\t */\n\t\treturn gridGroup;\n\t}", "public final Paint getGridPaint() {\n return gridPaint;\n }", "public GridShape getGridShape() {\n \n // Ensure that we have a grid shape\n if(mGridShape == null) {\n \n // Create a grid shape\n mGridShape = new GridShape();\n \n // Ensure the grid is the correct size\n mGridShape.resize( getActualWidthInTiles(), getActualHeightInTiles() );\n mGridShape.setCellSize( getActualTileWidth(), getActualTileHeight() );\n \n // Update the color information\n for(int x = 0; x < getActualWidthInTiles(); x++) {\n for(int y = 0; y < getActualHeightInTiles(); y++) {\n \n PathTile tile = mPathTiles[ (y * getActualWidthInTiles()) + x];\n Color col;\n \n if(tile.blockAir() && tile.blockLand() && tile.blockSea()) {\n col = Color.BLACK();\n }else if(tile.blockAir()) { col = Color.BLUE(); }\n else if(tile.blockLand()) { col = Color.RED(); }\n else if(tile.blockSea()) { col = Color.GREEN(); }\n else {\n col = Color.WHITE();\n }\n \n col.setAlpha( 128 );\n \n mGridShape.setColor(x, y, col);\n \n }\n }\n \n }\n \n return mGridShape;\n }", "public Pane getPane() {\n return grid;\n }", "private Pane getGridPane ()\r\n {\r\n GridPane gridPane = new GridPane();\r\n \r\n int i = 0;\r\n for(Button b : this.buttons)\r\n {\r\n gridPane.add( b, i*(i+(int)b.getWidth()), 0);\r\n i++;\r\n }\r\n \r\n return gridPane;\r\n }", "public int getReuseGrid()\n {\n return this.reuseGrid;\n }", "public InventoryRange getGrid() {\n \t\treturn this.grid;\n \t}", "public static ArrayList<Grid> getGrids() {\n\n return grids;\n }", "public GridPane initializeGridPane() {\n\t\tGridPane world = new GridPane();\n\t\t\n\t\tfor (int x = 0; x < this.columns; x++) {\n\t\t\tfor (int y = 0; y < this.rows; y++) {\n\t\t\t\tRectangle cellGUI = new Rectangle(this.widthOfCells - 1, this.heightOfCells - 1);\n\t\t\t\tcellGUI.setFill(Color.web(\"#FFFFFF\"));\t\t// White cell background color\n cellGUI.setStroke(Color.web(\"#C0C0C0\")); \t// Grey cell border color\n cellGUI.setStrokeWidth(1); \t\t\t\t\t// Width of the border\n\n world.add(cellGUI, x, y);\n this.cellGUIArray[x][y] = cellGUI;\n\n cellGUI.setOnMouseClicked((event) -> {\n \tthis.currentGeneration = this.simulation.getCurrentGeneration();\n for (int i = 0; i < columns; i++) {\n for (int j = 0; j < rows; j++) {\n if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 0) {\n this.currentGeneration[i][j] = 1;\n } else if (this.cellGUIArray[i][j].equals(cellGUI) && this.currentGeneration[i][j] == 1) {\n this.currentGeneration[i][j] = 0;\n }\n }\n }\n this.simulation.setCurrentGeneration(this.currentGeneration);\n });\n\t\t\t}\n\t\t}\n\t\treturn world;\n\t}", "private Grid<Movimiento> createGrid() {\n\t\tgrid = new Grid<>();\n\t\tgrid.addThemeVariants(GridVariant.LUMO_NO_BORDER,GridVariant.LUMO_ROW_STRIPES);\n\t\t\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\n\t\tgrid.addComponentColumn(c -> new IconoMovimientoTarjeta(c))\n\t\t.setWidth(\"100px\").setHeader(\"Tarjeta\").setFlexGrow(1);\n\t\tgrid.addColumn(c -> c.getCantidad()+\" €\").setHeader(\"Cantidad\").setFlexGrow(1);\n grid.addColumn(c -> c.getConcepto()).setHeader(\"Concepto\").setFlexGrow(1);\n grid.addColumn(c -> dateFormat.format(c.getFecha())).setHeader(\"Fecha\").setWidth(\"125px\").setFlexGrow(0);\n \n return grid;\n\t}", "public RegularGrid() {\r\n }", "public int getGridColumns() \n { \n return gridColumns; \n }", "public Color getGridColor() {\n return this.gridColor;\n }", "public Grid2DByte getWeatherGrid() {\n if (useCache && (cacheId != null)) {\n try {\n @SuppressWarnings(\"unchecked\")\n ICache<IGrid2D> diskCache = CacheFactory.getInstance()\n .getCache(\"GFE\");\n\n return (Grid2DByte) diskCache.getFromCache(cacheId);\n } catch (CacheException e) {\n statusHandler.handle(Priority.ERROR,\n \"Unable to load data from GFE cache.\", e);\n }\n }\n\n return this.weatherGrid;\n }", "public int getGridRows() \n { \n return gridRows; \n }", "public Pawn[][] getBoardGrid() {\n\t\treturn boardGrid;\n\t}", "public Move getGridElement (int row, int column)\n {\n return mGrid[row][column];\n }", "@Deprecated\n\tprotected CellPaneGrid<T> getGrid() {\n\t\treturn grid;\n\t}", "public int[][] getRawGrid()\n\t{\n\t\treturn grid;\n\t}", "GridType createGridType();", "public List<Square> getSquareGrid();", "public Grid() {\n }", "private JTable getGridmapTable() {\n if (gridmapTable == null) {\n gridmapTable = new GridMapTable();\n }\n return gridmapTable;\n }", "public Grid() { //Constructs a new grid and fills it with Blank game objects.\r\n\t\tthis.grid = new GameObject[10][10];\r\n\t\tthis.aliveShips = new Ships[4];\r\n\t\tfor (int i = 0; i < this.grid.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.grid[i].length; j++) {\r\n\t\t\t\tthis.grid[i][j] = new Blank(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface Grid {\n /**\n * @name getCell\n * @desc Ritorna la cella specificata dai parametri.\n * @param {int} x - Rappresenta la coordinata x della cella.\n * @param {int} y - Rappresenta la coordinata y della cella.\n * @returns {Client.Games.Battleship.Types.Cell}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell getCell(int x, int y);\n /**\n * @name getHeigth\n * @desc Ritorna l'altezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getHeight();\n /**\n * @name getLength\n * @desc Ritorna la lunghezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getLength();\n /**\n * @name Equals\n * @desc Ritorna true se i grid sono uguali.\n * @returns {boolean}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public boolean equals(Grid grid);\n /**\n * @name getGrid\n * @desc Ritorna la la griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell [][] getCells();\n}", "public boolean getGrid(int x, int y){\n\t\treturn grid[x][y];\n\t}", "public Pane getView() {\n return gridPane;\n }", "public boolean isGrid() {\n return isGrid;\n }", "public ArrayList<MahjongSolitaireTile>[][] getTileGrid() \n { \n return tileGrid; \n }", "public GridGeometry getGridGeometry() {\r\n final String error = checkConsistency(image, gridGeometry.getGridRange());\r\n if (error != null) {\r\n throw new IllegalStateException(error);\r\n }\r\n return gridGeometry;\r\n }", "public Marble getCellGridMarket(int i, int j){\n return market.getCellGrid(i,j);\n }", "public List<Grid> getGrids() {\n\tList<Grid> grids = new ArrayList<Grid>();\n\tList<Line> currentLines = _path;\n\twhile(currentLines.size()>1) {\n\t Grid grid = new Grid();\n\t grids.add(grid);\n\t List<Line> nonOverlappingLines = grid.overlapping(currentLines);\n\t \t \n\t Double[] xs = grid.xs();\n\t Double[] ys = grid.ys();\n\t \n\t if (xs.length>3 && ys.length>3) {\n\t\tDouble minx = xs[0];\n\t\tDouble maxx = xs[xs.length-1];\n\t\t\n\t\tDouble miny = ys[0];\n\t\tDouble maxy = ys[ys.length-1];\n\t\t\n\t\tfor(int i=0; i<xs.length; i++) {\n\t\t System.out.println(\"Line: \" + xs[i].toString() + \",\" + miny.toString() + \",\" + xs[i].toString() + \",\" + maxy.toString());\n\t\t}\n\t\tfor(int i=0; i<ys.length; i++) {\n\t\t System.out.println(\"Line: \" + minx.toString() + \",\" + ys[i].toString() + \",\" + maxx.toString() + \",\" + ys[i].toString());\n\t\t}\n\t }\n\n\t currentLines = nonOverlappingLines;\n\t}\n\treturn grids;\n }", "public Cube[][] getCubeGrid() {\n return cubeGrid;\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public double[][] getM_grid() {\n return m_grid;\n }", "public GridSize getGridSize()\n {\n return this.gridSize.clone();\n }", "public void createGrid() {\r\n generator.generate();\r\n }", "private GridPane inicializarPanelGrid() {\n GridPane gridPane = new GridPane();\n\n // Position the pane at the center of the screen, both vertically and horizontally\n gridPane.setAlignment(Pos.CENTER);\n\n // Set a padding of 20px on each side\n gridPane.setPadding(new Insets(40, 40, 40, 40));\n\n // Set the horizontal gap between columns\n gridPane.setHgap(10);\n\n // Set the vertical gap between rows\n gridPane.setVgap(10);\n\n // Add Column Constraints\n // columnOneConstraints will be applied to all the nodes placed in column one.\n ColumnConstraints columnOneConstraints = new ColumnConstraints(100, 100, Double.MAX_VALUE);\n columnOneConstraints.setHalignment(HPos.RIGHT);\n\n // columnTwoConstraints will be applied to all the nodes placed in column two.\n ColumnConstraints columnTwoConstrains = new ColumnConstraints(200, 200, Double.MAX_VALUE);\n columnTwoConstrains.setHgrow(Priority.ALWAYS);\n\n gridPane.getColumnConstraints().addAll(columnOneConstraints, columnTwoConstrains);\n\n return gridPane;\n }", "public int getGridWidth() { return gridWidth; }", "private CTTblGrid getCTTblGrid(CTTbl cTTbl) {\r\n\t\tCTTblGrid grid = cTTbl.getTblGrid();\r\n\r\n\t\tif (grid == null) {\r\n\t\t\tgrid = cTTbl.addNewTblGrid();\r\n\t\t}\r\n\t\treturn grid;\r\n\t}", "public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "public Grid copyGrid() {\n Grid copy = new Grid(grid.length);\n System.arraycopy(grid, 0, copy.getGrid(), 0, grid.length);\n return copy;\n }", "public JRExporterGridCell[][] getGrid(JRPrintPage page) {\n JRHtmlExporterNature nature = JRHtmlExporterNature.getInstance(true);\n JRGridLayout layout =\n new JRGridLayout(\n nature,\n page.getElements(),\n jasperPrint.getPageWidth(),\n jasperPrint.getPageHeight(),\n globalOffsetX,\n globalOffsetY,\n null //address\n );\n return layout.getGrid();\n }", "public Grid() {\n\t\tthis.moveCtr = 0; \n\t\tlistOfSquares = new ArrayList<Square>();\n\t\t//populating grid array with squares\n\t\tfor(int y = 0; y < GridLock.HEIGHT; y++) {\n\t \tfor(int x = 0; x < GridLock.WIDTH; x++) { //square coordinates go from (0,0) to (5,5)\n\t \tSquare square;\n\t \t//Setting up a square which has index values x,y and the size of square.\n\t\t\t\t\tsquare = new Square(x, y, GridLock.SQUARE_SIZE, GridLock.SQUARE_SIZE); \n\t\t\t\t\tgrid[x][y] = square;\n\t\t\t\t\tlistOfSquares.add(square);\n\t \t\t\t\t\t\n\t \t\t}\n\t \t}\n \t\n }", "public String getGridName() {\n return gridName;\n }", "public JsonArray getGridInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"/wapi/v2.3/grid\");\r\n\t\tsb.append(\"?_return_type=json\");\r\n\t\t\r\n\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\r\n\t\tif (value == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// Change unescape-unicode\r\n\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\r\n\t\t// JsonArray Parser\r\n\t\treturn JsonUtils.parseJsonArray(value);\r\n\t}", "public int getGridX() {\r\n\t\treturn gridX;\r\n\t}", "@Override\r\n\tpublic DataGridI getDataGrid() {\r\n\t\t//\r\n\t\treturn this.dg;\r\n\t}", "public MazeRoom[][] generate() {\n\t\tgenerate(theGrid[0][0]);\n\t\treturn theGrid;\n\t}", "public Gridder()\n\t{\n grid = new Cell[MapConstant.MAP_X][MapConstant.MAP_Y];\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Cell(row, col);\n\n // Set the virtual walls of the arena\n if (row == 0 || col == 0 || row == MapConstant.MAP_X - 1 || col == MapConstant.MAP_Y - 1) {\n grid[row][col].setVirtualWall(true);\n }\n }\n }\n\t}", "public Grid generateGrid(){\n myGrid = new RectGrid();\n myStates = new HashMap<>();\n\n for(int row = 0; row < imageHeight; row++){\n for(int column = 0; column < imageWidth; column++){\n int color = myImage.getRGB(column, row);\n int blue = color & 0xff;\n int green = (color & 0xff00) >> 8;\n int red = (color & 0xff0000) >> 16;\n\n int stateValue = color*-1;\n System.out.println(stateValue);\n //int stateValue = Integer.parseInt(hex, 16);\n //System.out.println(stateValue);\n\n Cell myCell = new RPSCell();\n myCell.setState(stateValue);\n myGrid.placeCell(row, column, myCell);\n\n Color myColor = Color.rgb(red, green, blue);\n myStates.put(stateValue, myColor);\n }\n }\n return myGrid;\n }", "public RandomGrid() {\n random = new Random(System.currentTimeMillis());\n /*\n indexes = new LinkedList<>();\n for (int i = 0; i < 81; i++) {\n indexes.add(i);\n }\n numbers = new ArrayList<>(9);\n for (int i = 1; i <= 9; i++) {\n numbers.add(i);\n }\n Collections.shuffle(indexes, random);\n */\n grid = new int[9][9];\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n grid[i][j] = 0;\n }\n }\n subGrid = new SubGrid[3][3];\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n subGrid[i][j] = new SubGrid();\n }\n }\n }", "GridPanel create(GridDataModel model);", "public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }", "com.ctrip.ferriswheel.proto.v1.GridOrBuilder getGridOrBuilder();", "public CircularGridIterator<E> iteratorOverGrid() {\r\n\t\treturn new CircularGridIterator<E>(this);\r\n\t}", "public boolean getGrid(int x, int y) {\n\t\tif ((x < 0) || (x > width)) {\n\t\t\treturn true;\n\t\t} else if ((y < 0) || (y > height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn grid[x][y]; // YOUR CODE HERE\n\t\t}\n\t}", "public boolean getCreateGridLayer ()\n\t{\n\t\treturn mCreateGridLayer;\n\t\t\n\t}", "public GridCoord getCoord() {\n return coord;\n }", "@JSProperty(\"grid\")\n @Nullable\n ZAxisGridOptions getGrid();", "public List<Integer> getGridData() {\n List<Integer> newGrid = new ArrayList<>();\n newGrid.addAll(gridData);\n return newGrid;\n }", "public Grid ()\n {\n mGrid = new Move[3][3];\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(Player.NONE, row, column);\n }", "public GridPanel getCurrentGraphPanel()\n\t{\n\t\tfor (Component comp : this.getComponents()) {\n\t\t\tif (comp.isVisible()) {\n\t\t\t\treturn (GridPanel) comp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public JSONArray getGridData() {\r\n\t\t/*\r\n\t\t * Must be overridden\r\n\t\t */\r\n\t\treturn null;\r\n\t}", "public boolean getShowGrid() {\n\t\treturn this.showGrid;\n\t}", "public int getGridDimensions() {\n return GRID_DIMENSIONS;\n }", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "boolean hasGrid();", "public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}", "public GridWorld()\n\t{\n\t\tadd(grid = new Grid());\n\t\tfade = new Fade();\n\t\tfade.fadeIn();\n\t\tbackground.color().setAlpha(0.6f);\n\t}", "public Grid()\n {\n height = 4;\n\twidth = 4;\n\tcases = new Case[height][width];\n }", "private JTextField getGridIdentity() {\n if (gridIdentity == null) {\n gridIdentity = new JTextField();\n }\n return gridIdentity;\n }", "public interface GridView {\n\t// array list\n\tArrayList<Tile> getTiles();\n\tvoid setTiles(ArrayList<Tile> t);\n\tvoid addTile(Tile t);\n\t\n\t// position\n\tPosition[][] getPositions();\n\tvoid setPositions(Position[][] p);\n\tPosition position(int down, int across);\n\tint[] getIndex(Position p);\n\t\n\t// tiles\n\tGroundTile getGroundTile(int a, int b);\n\tItemTile getItemTile(int a, int b);\n\t\n\t// occupied\n\tboolean ocupied(int a, int b);\n\n}", "public abstract Regionlike getGridBounds();", "public Grid() {\n super(); // create a new JPanel\n grid = new ArrayList<>(); // initialize a list containing the blocks\n \n setLayout(null); // format the component\n setFocusable(false);\n setBackground(Block.deadColor);\n addComponentListener(new java.awt.event.ComponentAdapter() { // detects when the window is resized to resize the grid\n @Override\n public void componentResized(java.awt.event.ComponentEvent evt) {\n resizeGrid();\n }\n });\n \n // provide a link to the grid to classes so that all instances have access to it\n PathFinder.setGrid(this);\n EscapeBlock.setGrid(this);\n Character.setGrid(this);\n \n }", "private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}", "public DynamicGrid() {\n\t\t// constructor\n\t\t// create an empty table of 0 rows and 0 cols\n\t\tthis.storage = new DynamicArray<DynamicArray<T>>();\n\t}", "public Grid getEntrance(){\n\t\treturn getpos((byte)2);\n\t}" ]
[ "0.8363822", "0.8305082", "0.8151672", "0.81393576", "0.79964423", "0.79867935", "0.7881622", "0.78789634", "0.78473437", "0.7640073", "0.76293564", "0.75674075", "0.7543372", "0.74874204", "0.74234504", "0.7320592", "0.7235353", "0.71955395", "0.7159063", "0.7092262", "0.7014065", "0.6984325", "0.69579774", "0.6945685", "0.69323224", "0.6880765", "0.68018574", "0.6801346", "0.67420757", "0.6726769", "0.66891986", "0.6657595", "0.6654777", "0.6642109", "0.6639573", "0.66372365", "0.66123176", "0.658551", "0.6529119", "0.651796", "0.65140915", "0.6507361", "0.64909625", "0.64865494", "0.6483313", "0.64432067", "0.6424431", "0.6415177", "0.64116013", "0.64100325", "0.6394436", "0.6364466", "0.63426346", "0.63378567", "0.6335424", "0.6312875", "0.6295649", "0.62925833", "0.6282267", "0.6252383", "0.62476206", "0.6246605", "0.62394303", "0.6238281", "0.6224021", "0.62057275", "0.6202913", "0.6195964", "0.619475", "0.61859", "0.61784196", "0.61715454", "0.6167853", "0.61654323", "0.6159746", "0.61505955", "0.6121442", "0.6102587", "0.6073153", "0.6070204", "0.60677516", "0.60051996", "0.6004755", "0.5987174", "0.5979894", "0.5977453", "0.59734786", "0.5973429", "0.5956517", "0.5945357", "0.5929753", "0.5925434", "0.5921353", "0.5920042", "0.5915036", "0.5908664", "0.5904437", "0.5902683", "0.5889944", "0.58845365" ]
0.724835
16
Returns the world type. This is overridden by its subclasses
public abstract String getWorldType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getWorldTypeClass() {\n \t\treturn getMinecraftClass(\"WorldType\");\n \t}", "public String getWorldName() {\n\t\treturn world;\n\t}", "public String getWorld() {\r\n\t\treturn mainSpawn.getWorld().toString();\r\n\t}", "public World getWorld();", "public World getWorld() {\n return location.getWorld();\n }", "public Class<? extends BaseWorldModel> getWorldModelClass() {\n\t\tif(map != null && !map.isEmpty() ){\n\t\t\treturn map.get(\"WorldModel\");\n\t\t}else {\n\t\t\ttry {\n\t\t\t\treturn Class.forName(simulationConfig\n\t\t\t\t\t\t.getString(\"models.worldmodel\"), true, classLoader).asSubclass(BaseWorldModel.class);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t}", "public World getWorld(String worldName);", "public java.lang.String getMWNType() {\n return MWNType;\n }", "@NotNull\r\n World getWorld();", "World getWorld();", "public final World getWorld() {\n\t\treturn baseTile.getWorld();\n\t}", "public final World getWorld() {\n\t\treturn location.getWorld();\n\t}", "public World getWorld() {\n\t\treturn world;\n\t}", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "public static World getWorld() {\n\t\treturn world;\n\t}", "MachineType getType();", "public World getWorld () {\n\t\treturn world;\n\t}", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "public PlatformType getPlatformType();", "SpawnType getGameSpawnType();", "public ThingNode getWorld()\n {\n return world;\n }", "public World getWorld()\n {\n if (worldData == null)\n {\n return null;\n }\n\n return worldData.getWorld();\n }", "public Type type() {\n if (local() != null && local().squawkIndex() != -1) {\n return local().type();\n }\n else {\n return super.type();\n }\n }", "public GameData getWorld() {\r\n return world;\r\n }", "public static World getWorld(){\n Optional<World> worldOptional = Sponge.getServer().getWorld(\"world\");\n if(worldOptional.isPresent()){\n return worldOptional.get();\n }\n return null;\n }", "private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }", "public byte getWorldId()\r\n\t{\r\n\t\treturn mWorldId;\r\n\t}", "public World getWorld() {\n\t\treturn Bukkit.getWorld(world);\n\t}", "@Override\n\tpublic World getWorld() { return world; }", "public FreeColGameObjectType getType() {\n return this;\n }", "public World getWorld ( ) {\n\t\treturn invokeSafe ( \"getWorld\" );\n\t}", "SpawnType getLobbySpawnType();", "public long getWorldId() {\n return worldId_;\n }", "public String getMainType() {\n\t\treturn Material.getMaterial(this.properties.MAIN_TYPE).toString().replace(\"_\", \" \").toLowerCase();\n\t}", "public String getType() {\n\t\tif (isValid())\n\t\t\treturn \"FullHouse\";\n\t\treturn \"\";\n\t}", "public long getWorldId() {\n return worldId_;\n }", "public LocationType getLocationType() {\n\t\treturn locationType;\n\t}", "public LocationType getLocationType(){\n\t\treturn type;\n\t}", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public ObjectType getJVMType();", "String getTileType();", "public static World getWorld() {\n\t\treturn ModLoader.getMinecraftInstance().theWorld;\n\t}", "public static World readWorld() {\n\t\treturn null;\n\t}", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\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();", "public LightType type()\n\t{\n\t\treturn _type;\n\t}", "public String type();", "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();", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "public String getLocationType() {\n return locationType;\n }", "LocationType getLocationType() {\r\n\t\treturn type;\r\n\t}", "public String getWorldName() {\n\t\treturn MinecraftServer.getServer().worldServers[0].getSaveHandler()\n\t\t\t\t.getWorldDirectoryName();\n\t}" ]
[ "0.8076269", "0.6783247", "0.6728234", "0.6548943", "0.65171134", "0.6460011", "0.64590794", "0.6429828", "0.6424254", "0.6412896", "0.6411795", "0.64091647", "0.63989806", "0.6386867", "0.6386867", "0.63682705", "0.63538885", "0.6313823", "0.62457174", "0.62388045", "0.62388045", "0.6237473", "0.6220035", "0.62069124", "0.62033606", "0.6195737", "0.6172314", "0.61708736", "0.6170331", "0.6163597", "0.6162928", "0.6155201", "0.61437905", "0.61396945", "0.61313856", "0.6112768", "0.60977226", "0.6097625", "0.60931087", "0.6091354", "0.60903966", "0.608643", "0.608643", "0.6081508", "0.6077001", "0.6075818", "0.6066835", "0.60578984", "0.60578984", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.6024958", "0.60108584", "0.60018146", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.59984654", "0.5992274", "0.59903884", "0.5990031", "0.5985389" ]
0.838152
0
Construct with a table name
public BasicTable(String name) { setId(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TableDefinition(String tableName) {\n this.tableName = tableName;\n }", "String tableName2Name(String name);", "public DatabaseTable(String tableName) {\n this.tableName = tableName;\n }", "public TableCreation(Table table) {\n this.table = table;\n }", "TABLE createTABLE();", "public TwoTieredTable(String name) \n\t{\n\t\tthis.name = name;\n\t}", "FromTable createFromTable();", "String getTableName(String name);", "public TableName name();", "public PgTable(final String name) {\n this.name = name;\n }", "Table createTable();", "private static String makeTableBaseName(int number) {\n return \"bi_\" + Integer.toString(number);\n }", "String getTableName();", "public DatabaseTable(String tableName, String sequenceName) {\n this.tableName = tableName;\n this.sequenceName = sequenceName;\n }", "public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "private void createGetTableName(){\n //---------------------------------------------------------------------------\n buffer.append(\" /**\\n\");\n buffer.append(\" * <code>getTableName</code>\\n\");\n buffer.append(\" * <p>\\n\");\n buffer.append(\" * This method return the current tablename.\\n\");\n buffer.append(\" * </p>\\n\");\n buffer.append(\" * @author Booker Northington II\\n\");\n buffer.append(\" * @version 1.0\\n\");\n buffer.append(\" * @since 1.3\\n\");\n buffer.append(\" * @return tableName <code>String</code> the name \");\n buffer.append(\"of this table.\\n\");\n buffer.append(\" */\\n\");\n buffer.append(spacer);\n buffer.append(\" public String getTableName(){\\n\");\n buffer.append(spacer);\n buffer.append(\" return tableName;\\n\");\n buffer.append(\" }//getTableName() ENDS\\n\\n\");\n }", "TableInstance createTableInstance();", "tbls createtbls();", "public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public String getCreateTableString() {\n \t\treturn \"create table\";\n \t}", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public void setTableName(String name) {\n this.tableName = name;\n }", "String pvTableName();", "public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "public static Table buildTableFromCSV(String filePath,String tableName){\n\t\treturn new Table(tableName);\n\t}", "String getBaseTable();", "static String getTableName(Configuration conf) {\n String layout = conf.get(MRUtils.TABLE_LAYOUT_PROP,\n RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO.toString());\n String prefix = conf.get(MRUtils.TABLE_PREFIX_PROPERTY,\n RdfCloudTripleStoreConstants.TBL_PRFX_DEF);\n return RdfCloudTripleStoreUtils.layoutPrefixToTable(\n RdfCloudTripleStoreConstants.TABLE_LAYOUT.valueOf(layout), prefix);\n }", "public void createTable(String tableName) {\n //SQL Statement\n String query = \"call aTable\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Table \" + tableName + \" created--\");\n } catch (SQLException ex) {\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }", "public void createTable(String tableName) {\n db.execSQL(\"create table if not exists '\" + tableName.replaceAll(\"\\\\s\", \"_\") + \"' (\"\n + KEY_ROWID + \" integer primary key autoincrement, \"\n + KEY_QUESTION + \" string not null, \"\n + KEY_ANSWER + \" string not null);\");\n }", "public static String tableName(String baseName, AddressSpace space, long threadKey,\n\t\t\tint frameLevel) {\n\t\tif (space.isRegisterSpace()) {\n\t\t\tif (frameLevel == 0) {\n\t\t\t\treturn baseName + \"_\" + space.getName() + \"_\" + threadKey;\n\t\t\t}\n\t\t\treturn baseName + \"_\" + space.getName() + \"_\" + threadKey + \"_\" + frameLevel;\n\t\t}\n\t\treturn baseName + \"_\" + space.getName();\n\t}", "public void setTableName(String tmp) {\n this.tableName = tmp;\n }", "private static String getTableName(String baseName, boolean isCommunity, boolean isCollection, boolean isDistinct,\n boolean isMap) {\n // isDistinct is meaningless in relation to isCommunity and isCollection\n // so we bounce that back first, ignoring other arguments\n if (isDistinct) {\n return baseName + \"_dis\";\n }\n\n // isCommunity and isCollection are mutually exclusive\n if (isCommunity) {\n baseName = baseName + \"_com\";\n } else if (isCollection) {\n baseName = baseName + \"_col\";\n }\n\n // isMap is additive to isCommunity and isCollection\n if (isMap) {\n baseName = baseName + \"_dmap\";\n }\n\n return baseName;\n }", "public From table(String table) {\r\n\t\tString alias = null;\r\n\t\tif (table.toUpperCase()\r\n\t\t\t\t.contains(\" AS \"))\r\n\t\t\ttable = table.replaceAll(\"\\\\s+[Aa][Ss]\\\\s+\", \" \");\r\n\t\tfinal String[] parts = table.split(\"\\\\s+\");\r\n\t\tif (parts.length > 1) {\r\n\t\t\ttable = parts[0];\r\n\t\t\talias = parts[1];\r\n\t\t}\r\n\t\torigins.add(new FromOrigin().table(table)\r\n\t\t\t\t.alias(alias));\r\n\t\treturn this;\r\n\t}", "@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}", "public static QueryDelegate generateTableQuery(String tableName) {\n String FROM_QUERY = \" FROM \" + tableName;\n String SELECT_QUERY=\" SELECT * \" +\n FROM_QUERY;\n String COUNT_QUERY = \"SELECT count(*) \" + FROM_QUERY;\n String CONTAINS_QUERY = \"SELECT * FROM \" + tableName + \" WHERE id = ?\";\n\n return generateQueryDelegate(SELECT_QUERY, COUNT_QUERY, CONTAINS_QUERY);\n }", "public abstract String[] createTablesStatementStrings();", "public TableInfo (String tableName)\n\t\t{\n\t\t\tthis (tableName, null);\n\t\t}", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public Mytable() {\n this(DSL.name(\"mytable\"), null);\n }", "public Table withName(String name) {\n this.name = name;\n return this;\n }", "@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public void setTableName(String tableName) {\n this.tableName = tableName;\n }", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "TableId table();", "public DbTable(Db db, String name) {\n this(db, name, null, null);\n }", "int createTable(@Param(\"tableName\") String tableName);", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "public static SchemaTableBuilder tableBuilder(String schemaName, String tableName) {\n return new SchemaTableBuilderImpl(schemaName, tableName);\n }", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "public static String createSimpleCreateTableQuery(String tableName, String storageEngine, String selectQuery) {\n builder.setLength(0);\n builder.append(\"CREATE TABLE `\").append(tableName).append(\"` ENGINE = \").append(storageEngine).append(\" AS \");\n builder.append(selectQuery);\n return builder.toString();\n }", "TableOrAlias createTableOrAlias();", "String createNewTable(String name,\n String[] colNames, String[] colTypes) {\n\n try {\n if (tables.get(name) != null) {\n return \"ERROR: Table already exists\";\n\n }\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n return \"\";\n } catch (NullPointerException e) {\n return \"ERROR: Malformed Table\";\n } catch (IllegalArgumentException e) {\n return \"ERROR: Malformed Table\";\n }\n\n\n }", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "public String getTableNameString() {\n return tableName;\n }", "String jobTableName();", "private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }", "String getTempTableName(String name);", "public void setTableName(String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "public void setTableName(String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "public Table() {\n this.tableName = \"\";\n this.rows = new HashSet<>();\n this.columnsDefinedOrder = new ArrayList<>();\n }", "void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}", "public static String getActualTableName(String utableName)\n {\n String tn = (DBFactory.TableNameMap != null)? DBFactory.TableNameMap.get(utableName) : null;\n return (tn != null)? tn : utableName;\n }", "public String getTablename() {\n return tablename;\n }", "public interface TableCreator {\n\t\tpublic void createTable(SQLiteDatabase db, String tableName);\n\t}", "public abstract String getDatabaseTableName(String entityName);", "public TableId(String catalogName, String schemaName, String tableName) {\n this(catalogName, schemaName, tableName, null);\n }", "Table8 create(Table8 table8);", "protected String getTableName()\n {\n return immutableGetTableName();\n }", "public abstract void buildTable(PdfPTable table);", "String loadTable(String name) {\n\n\n String l;\n String[] line;\n String[] colNames;\n String[] colTypes;\n String[] values;\n\n\n try {\n\n if (tables.get(name) != null) {\n tables.remove(name);\n }\n FileReader fr = new FileReader(name + \".tbl\");\n BufferedReader bf = new BufferedReader(fr);\n\n\n if ((l = bf.readLine()) != null) {\n line = l.split(\"\\\\s*(,|\\\\s)\\\\s*\");\n } else {\n return \"ERROR: Empty Table\";\n }\n colNames = new String[line.length / 2];\n colTypes = new String[line.length / 2];\n\n int j = 0, k = 0;\n\n for (int i = 0; i < line.length; i += 1) {\n if (i % 2 == 0) {\n colNames[j] = line[i];\n j += 1;\n } else {\n colTypes[k] = line[i];\n k += 1;\n }\n\n }\n\n Table t = new Table(name, colNames, colTypes);\n tables.put(name, t);\n\n while ((l = bf.readLine()) != null) {\n values = l.split(\"\\\\s*(,)\\\\s*\");\n t.insertLastRow(values);\n }\n\n bf.close();\n return \"\";\n\n } catch (NullPointerException e) {\n return \"ERROR: \" + e;\n } catch (ArrayIndexOutOfBoundsException e) {\n return \"ERROR: \" + e;\n } catch (NumberFormatException e) {\n return \"ERROR: \" + e;\n } catch (IllegalArgumentException e) {\n return \"ERROR: \" + e;\n } catch (IOException e) {\n return \"ERROR: \" + e;\n } \n }", "private String createSEQTable() {\n\t\tStringBuffer buildSQL = new StringBuffer();\n\t\tbuildSQL.append(\" CREATE TABLE \" + DEFAULT_SEQUENCE_NAME + \" ( \");\n\t\tbuildSQL.append(\"id bigint(20) NOT NULL AUTO_INCREMENT, \");\n\t\tbuildSQL.append(\"prefix_value varchar(12) NOT NULL, \");\n\t\tbuildSQL.append(\"next_val int(11) NOT NULL, \");\n\t\tbuildSQL.append(\"increment int(11) NOT NULL, \");\n\t\tbuildSQL.append(\"PRIMARY KEY (id) \");\n\t\tbuildSQL.append(\") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\");\n\t\t// --log.debug(buildSQL.toString());\n\t\treturn buildSQL.toString();\n\t}", "Table getBaseTable();", "protected abstract void initialiseTable();", "@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}", "protected String getMonarchTableName(Table tbl) {\n // 1. If region name property is not provided use hive's table name.\n // 2. Use '_'(underscore) instead of '.'(dot) since gemfire\n // does not allow querying when region name contain dot.\n String tableName = tbl.getParameters().get(MonarchUtils.REGION);\n if (tableName == null) {\n tableName = tbl.getDbName() + \"_\" + tbl.getTableName();\n }\n return tableName;\n }", "@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}", "public TableId(String catalogName, String schemaName, String tableName) {\n this.catalogName = catalogName;\n this.schemaName = schemaName;\n this.tableName = tableName;\n assert this.tableName != null;\n this.id = tableId(this.catalogName, this.schemaName, this.tableName);\n }", "@Override\n protected String getTableNameForMetadata(String tableName) {\n return (tableName == null) ? IdentifierUtil.PERCENT :\n getTableNameForMetadata(DBIdentifier.newTable(tableName));\n }", "@Override\n public void createTable(final Connection _con, final String _table,\n final String _parentTable) throws SQLException {\n\n final Statement stmt = _con.createStatement();\n\n try {\n\n // create table itself\n final StringBuilder cmd = new StringBuilder();\n cmd.append(\"create table \").append(_table).append(\" (\")\n .append(\" ID bigint not null\");\n\n // autoincrement\n if (_parentTable == null) {\n cmd.append(\" generated always as identity (start with 1, increment by 1)\");\n }\n\n cmd.append(\",\")\n .append(\" constraint \").append(_table).append(\"_UK_ID unique(ID)\");\n\n // foreign key to parent sql table\n if (_parentTable != null) {\n cmd.append(\",\")\n .append(\"constraint \").append(_table).append(\"_FK_ID \")\n .append(\" foreign key(ID) \")\n .append(\" references \").append(_parentTable).append(\"(ID)\");\n }\n\n cmd.append(\")\");\n stmt.executeUpdate(cmd.toString());\n\n } finally {\n stmt.close();\n }\n }", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "Table getTable();", "private static String getCreateQuery(String tableName,String CSVHeader){\n\n\t\tString query=\"create table \"+tableName +\"(\";\n\t\tString columns[]=CSVHeader.split(\",\");\n\t\tfor(int i=0;i<columns.length-1;i++){\n\t\t\tquery+=columns[i]+\" string,\";\n\t\t}\n\t\tquery+=columns[columns.length-1]+\" string)\";\n\t\tquery+=\" row format delimited fields terminated by ',' stored as textfile\";\n\t\t// System.out.println(query);\n\t\treturn query;\n\t}", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "MultTable() //do not use the name of the constructor for the name of another method\n {}", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "String pvIDTableName();", "public void create_table(String table_name, List<String> attributes) {\n //throw error if table already exists\n if (get_table_names().contains(table_name) && !table_name.equals(\"relationship\")) {\n throw new RuntimeException(\"Table with this name already exists.\");\n }\n //throw error if no name is given\n if (table_name.isEmpty()) {\n throw new RuntimeException(\"Table name can not be empty.\");\n }\n //throw error if no attributes are given\n if (attributes.isEmpty()) {\n throw new RuntimeException(\"Table needs at least one attribute.\");\n }\n\n StringBuilder stringBuilder = new StringBuilder(\"create table if not exists \");\n stringBuilder.append(table_name);\n //autoincrement handles the correct incrementation of the primary key\n stringBuilder.append(\" (id integer primary key autoincrement, \");\n for (String attribute : attributes) {\n stringBuilder.append(attribute);\n stringBuilder.append(\" varchar, \"); //values are varchar since the user inputs text\n }\n stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length());\n stringBuilder.append(\")\");\n\n String sql = stringBuilder.toString();\n\n execute_statement(sql, false);\n }", "public String getName() {\n return tableName;\n }", "public void setTableName(final String tableName) {\r\n\t\tthis.tableName = tableName;\r\n\t}", "public TableDeclaration() {\n }" ]
[ "0.7044317", "0.69125944", "0.6896801", "0.685326", "0.68430156", "0.67998374", "0.6778999", "0.6746332", "0.67190385", "0.66138154", "0.65603566", "0.65575385", "0.65412253", "0.6479803", "0.6423794", "0.6406857", "0.64052457", "0.6299005", "0.62943333", "0.6242986", "0.6242882", "0.6219915", "0.62198746", "0.6215006", "0.6178511", "0.6173164", "0.61714894", "0.6158607", "0.6146067", "0.61411667", "0.6139984", "0.6139855", "0.6139687", "0.61349493", "0.61108506", "0.6106709", "0.60971016", "0.6068907", "0.60593534", "0.60546315", "0.6050868", "0.60480344", "0.60472554", "0.60419786", "0.6037417", "0.6030407", "0.60127354", "0.60127354", "0.60127354", "0.600938", "0.60075045", "0.60051304", "0.59968746", "0.5985371", "0.59756273", "0.5971629", "0.59575015", "0.5956071", "0.59554225", "0.5950081", "0.59395427", "0.59306294", "0.59270585", "0.59180224", "0.5899584", "0.5872906", "0.5872906", "0.5871515", "0.5871314", "0.5868604", "0.5854571", "0.5853611", "0.584124", "0.5829551", "0.5826158", "0.5825351", "0.5814622", "0.58088166", "0.5804482", "0.5790699", "0.5789842", "0.57868975", "0.57857996", "0.57776076", "0.5777138", "0.5776256", "0.5775894", "0.5773984", "0.57735896", "0.5763301", "0.57613933", "0.57581186", "0.5752558", "0.5748349", "0.5743052", "0.57305825", "0.57299423", "0.57281685", "0.57269365", "0.57268375" ]
0.62187886
23
TODO Autogenerated method stub
@Override public void run() { logger.info(" reg execute time {} ",System.nanoTime()); try { ipsService.reg(); } catch (Exception e) { // TODO Auto-generated catch block 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
/ public static final int isHitWall = 2; public static final int isHitByBullet = 2; public static final int NumEnergyLvl = 3; public static final int NumStates; public static final double FullAngle = 360.0; public static final double NormalizeFactor = 150.0; public static final int stateTable[][][][][][]; public static final double nnInputTable[][]; public static final int nnNumInputs; public static final boolean NORMALIZED = true; / state preprocessing / quantize energy level
public static double getEnergy(double energy) { double newEnergy; if (energy < 0 ) newEnergy = -1.0; if (energy < 40.0) newEnergy = -0.33; else if (energy >= 40.0 && energy < 80.0) newEnergy = 0.33; else newEnergy = 1.0; return newEnergy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "public double[] getState(){\n if (AgentType.Abstraction == SimpleExperiment.activeAgentType) {\n // Abstraction agent type\n return this.getCustomState();\n }\n else {\n // System.out.println(\"E[\" + marioEgoPos[0] + \",\" + marioEgoPos[1] + \"] F[\" + marioFloatPos[0] + \",\" + marioFloatPos[1] + \"]\");\n\n // other agent type\n double[] state = new double[10];\n\n // CLOSEST TWO ENEMIES\n state[0] = isMarioAbleToJump ? 1 : 0;\n state[1] = isMarioOnGround ? 1 : 0;\n state[2] = isMarioAbleToShoot ? 1 : 0;//marioMode;//\n float xdiff = marioFloatPos[0] - prevMarioPos[0];\n float ydiff = marioFloatPos[1] - prevMarioPos[1];\n state[3] = xdiff < 0 ? 0 : (xdiff == 0 ? 1 : 2);\n state[3] += 3*(ydiff < 0 ? 0 : (ydiff == 0 ? 1 : 2));\n\n state[4] = enemies(1, 0);\n state[5] = enemies(3, 1);\n state[6] = 0;//enemies(5, 3);\n\n state[7] = obstacle();\n\n int[] enemy = closestEnemy();\n if(Math.abs(enemy[0]) < 11 && Math.abs(enemy[1]) < 11){\n state[8] = enemy[0]+10;\n state[9] = enemy[1]+10;\n } else {\n state[8] = 21;\n state[9] = 21;\n }\n\n //state[10] = marioFloatPos[0];\n //state[11] = marioFloatPos[1];\n\n return state;\n }\n }", "private void buildOneToNInputs(StateObservation stateObs) {\n viewWidth = 5;\n viewHeight = 10;\n // cell options = empty, boundary, alien, missile, left window, right window\n numberCategories = 6;\n //*****************************\n\n int blockSize;\n int avatarColNumber;\n int numCells;\n int numGridRows, numGridCols;\n\n ArrayList<Observation>[][] gameGrid = stateObs.getObservationGrid();\n\n numGridRows = gameGrid[0].length;\n numGridCols = gameGrid.length;\n\n blockSize = stateObs.getBlockSize();\n\n // get where the player is\n avatarColNumber = (int) (stateObs.getAvatarPosition().x / blockSize);\n\n int colStart = avatarColNumber - (viewWidth / 2);\n int colEnd = avatarColNumber + (viewWidth / 2);\n\n // cell options = empty, boundary, alien, missile\n numCells = (viewWidth * numberCategories) * viewHeight;\n\n MLPOnetoNInputs = new double[numCells];\n\n int index = 0;\n\n for (int i = numGridRows - (viewHeight + 1); i < viewHeight; i++) { // rows\n for (int j = colStart; j <= colEnd; j++) { // rows\n\n if (j < 0) {\n // left outside game window\n MLPOnetoNInputs[index] = 1;\n } else if (j >= numGridCols) {\n // right outside game window\n MLPOnetoNInputs[index + 1] = 1;\n } else if (gameGrid[j][i].isEmpty()) {\n MLPOnetoNInputs[index] = 0;\n } else {\n for (Observation o : gameGrid[j][i]) {\n\n switch (o.itype) {\n case 3: // obstacle sprite\n MLPOnetoNInputs[index + 2] = 1;\n break;\n\n case 1: // user ship\n MLPOnetoNInputs[index + 3] = 1;\n break;\n\n case 9: // alien sprite\n MLPOnetoNInputs[index + 4] = 1;\n break;\n\n case 6: // missile\n MLPOnetoNInputs[index + 5] = 1;\n break;\n }\n }\n }\n index += numberCategories;\n }\n }\n }", "public SpaceHulkWorldModel(TiledMap map, int players)\r\n/* 49: */ {\r\n/* 50: 49 */ super(map);\r\n/* 51: 50 */ this.mission = false;\r\n/* 52: 51 */ this.reachablePlaces = 0;\r\n/* 53: 52 */ this.highlight = new int[getWidthInTiles()][getHeightInTiles()];\r\n/* 54: 53 */ this.walkable = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 55: 54 */ this.blocked = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 56: 55 */ this.finish = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 57: 56 */ this.door = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 58: 57 */ this.rock = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 59: 58 */ this.fire = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 60: 59 */ this.grass = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 61: 60 */ this.sand = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 62: */ \r\n/* 63: 62 */ this.reach = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 64: 64 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 65: 66 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 66: 69 */ this.walkable[x][y] = checkTileProperty(x, y, \"walkable\", \"true\");\r\n/* 67: */ }\r\n/* 68: */ }\r\n/* 69: */ }", "int nParametricStates();", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }", "public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}", "public MainFrame() {\n \n /*Integer a = 127;\n Integer b = 127;\n Integer c = 128;\n Integer d = 128;\n System.out.println(a==b);\n System.out.println(c==d);*/\n \n initComponents();\n net = new Hopfield(10, 12);\n net.init();\n net.learn();\n \n \n /*int[][] figure = new int[5][5];\n for (int i=0; i<5; i++)\n for (int j=0; j<5; j++)\n figure[i][j]=-1;\n \n figure[1][3]=1;*/\n \n /*int[][] figure = {\n {-1, -1, -1, -1, -1}, \n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1}};\n \n figure = net.identify(figure);\n \n for (int i=0; i<5; i++) {\n java.lang.System.out.println();\n for (int j=0; j<5; j++)\n java.lang.System.out.print(figure[i][j]>=0?\"+\"+figure[i][j]+\" \":figure[i][j]+\" \");\n }*/\n \n /*int[][] test_fig = new int[7][7];\n for (int i=0; i<7; i++)\n for (int j=0; j<7; j++)\n test_fig[i][j] = -1;\n test_fig[1][1] = 1;\n test_fig[2][2] = 1;\n test_fig[3][3] = 1;\n test_fig[4][4] = 1;\n test_fig[5][5] = 1;\n test_fig[6][6] = 1;\n test_fig[1][1] = 1;\n test_fig[3][4] = 1;\n test_fig[4][3] = 1;\n test_fig[4][1] = 1;\n \n java.lang.System.out.println(net.getWidth()+\" \"+net.getHeight());\n \n java.lang.System.out.println(\"\\nИзначально\");\n \n for (int i=0; i<7; i++) {\n for (int j=0; j<7; j++) {\n //java.lang.System.out.println(i+\" \"+j);\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(test_fig[i][j]==1?\"#\":\"_\");\n }\n }\n \n int[][] res = net.resize(test_fig, 7, 7);\n \n java.lang.System.out.println(\"\\n\\n\\nДо трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }\n \n res = net.identify(res);\n \n java.lang.System.out.println(\"\\n\\n\\nПосле трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }*/\n //net.test_old();\n //net.test();\n buttonGroup.add(rbuttonFonModel);\n buttonGroup.add(rbuttonPorogBit);\n buttonGroup.add(rbuttonPorogColor);\n buttonGroup.add(rbuttonPorogGrey);\n buttonGroup.add(rbuttonPorogColorSubstr);\n buttonGroup.add(rbuttonItog);\n //rbuttonFonModel.setSelected(true);\n //rbuttonPorogBit.setSelected(true);\n rbuttonItog.setSelected(true);\n model.setNet(net);\n }", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6900, \"inverted=true\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6901, \"inverted=true\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6902, \"inverted=true\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6903, \"inverted=true\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6904, \"inverted=true\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6905, \"inverted=true\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6906, \"inverted=true\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6907, \"inverted=true\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6908, \"inverted=true\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6909, \"inverted=true\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6910, \"inverted=true\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6911, \"inverted=true\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6912, \"inverted=true\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6913, \"inverted=true\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6914, \"inverted=true\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6915, \"inverted=true\", \"power=15\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6916, \"inverted=false\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6917, \"inverted=false\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6918, \"inverted=false\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6919, \"inverted=false\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6920, \"inverted=false\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6921, \"inverted=false\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6922, \"inverted=false\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6923, \"inverted=false\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6924, \"inverted=false\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6925, \"inverted=false\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6926, \"inverted=false\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6927, \"inverted=false\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6928, \"inverted=false\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6929, \"inverted=false\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6930, \"inverted=false\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6931, \"inverted=false\", \"power=15\"));\n }", "private void buildScaleInputs(StateObservation stateObs) {\n viewWidth = 5;\n viewHeight = 10;\n //*****************************\n\n int blockSize;\n int avatarColNumber;\n\n int numGridRows, numGridCols;\n\n ArrayList<Observation>[][] gameGrid;\n\n gameGrid = stateObs.getObservationGrid();\n numGridRows = gameGrid[0].length;\n numGridCols = gameGrid.length;\n\n blockSize = stateObs.getBlockSize();\n\n // get where the player is\n avatarColNumber = (int) (stateObs.getAvatarPosition().x / blockSize);\n\n // create the inputs\n MLPScaledInputs = new double[viewWidth * viewHeight];\n\n int colStart = avatarColNumber - (viewWidth / 2);\n int colEnd = avatarColNumber + (viewWidth / 2);\n\n int index = 0;\n\n for (int i = numGridRows - (viewHeight + 1); i < viewHeight; i++) { // rows\n\n for (int j = colStart; j <= colEnd; j++) { // rows\n if (j < 0) {\n // left outside game window\n MLPScaledInputs[index] = 1;\n } else if (j >= numGridCols) {\n // right outside game window\n MLPScaledInputs[index + 1] = 1;\n } else if (gameGrid[j][i].isEmpty()) {\n MLPScaledInputs[index] = 0;\n } else {\n for (Observation o : gameGrid[j][i]) {\n\n switch (o.itype) {\n case 3: // obstacle sprite\n MLPScaledInputs[index + 2] = 1;\n break;\n case 1: // user ship\n MLPScaledInputs[index + 3] = 1;\n break;\n case 9: // alien sprite\n MLPScaledInputs[index + 4] = 1;\n break;\n case 6: // missile\n MLPScaledInputs[index + 5] = 1;\n break;\n }\n }\n }\n index++;\n }\n }\n }", "private static int evalState(GameState state){\n Move m = state.getMove();\n int counter = 0;\n\n // return directly if we encouter win or loss\n if(m.isXWin()){\n return 10000;\n }\n else if(m.isOWin()){\n return -1;\n }\n\n Vector<Integer> points = new Vector<Integer>();\n points.setSize(state.BOARD_SIZE*2+2);\n int player;\n Collections.fill(points, 1);\n int scaling = 4;\n int value = 0;\n\n for(int row = 0; row < state.BOARD_SIZE; row ++){\n for(int col = 0; col < state.BOARD_SIZE; col ++){\n player = state.at(row, col);\n\n // add points to the vector, increase by a factor for every new entry\n if(player == 1){\n points.set(row, points.get(row)*scaling);\n points.add(state.BOARD_SIZE + col, points.get(state.BOARD_SIZE - 1 + col)*scaling);\n\n // if it's in the first diagonal\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, points.get(state.BOARD_SIZE*2)*scaling);\n }\n\n // checking other diagonal\n if(counter%state.BOARD_SIZE-1 == 0 && row+col != 0){\n points.add(state.BOARD_SIZE*2 + 1, points.get(state.BOARD_SIZE*2)*scaling);\n }\n }\n // if an enemy player is encoutered null the value of the row/col\n else if(player == 2){\n points.set(row, 0);\n points.set(state.BOARD_SIZE + col, 0);\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, 0);\n }\n if(counter%state.BOARD_SIZE-1 == 0){\n points.add(state.BOARD_SIZE*2 + 1, 0);\n }\n }\n counter++;\n }\n }\n\n // if we have nulled the point we don't count it for the value of the state\n for(Integer i: points){\n if(i > 1){\n value += i;\n }\n }\n //System.err.println(\"Value: \" + value);\n return value;\n }", "private double[] getCustomState() {\n double[] state = new double[this.stateLength];\n\n // *** YOUR CODE HERE **********************************************************************\n\n // *** END OF YOUR CODE ********************************************************************\n\n return state;\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15071, \"face=floor\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15072, \"face=floor\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15073, \"face=floor\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15074, \"face=floor\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15075, \"face=wall\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15076, \"face=wall\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15077, \"face=wall\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15078, \"face=wall\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15079, \"face=ceiling\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15080, \"face=ceiling\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15081, \"face=ceiling\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15082, \"face=ceiling\", \"facing=east\"));\n }", "public State (){\n for ( int i = 0 ; i < 5; i ++){\n philosopherNum[i] = i;\n currentState[i] = \"thinking\";\n conditions[i] = mutex.newCondition();\n }\n }", "public void SimulateLogic() {\n int ix;\n if (IPin[LT].getLevel() == 5) { // Lamp test\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = 5;\n }\n return;\n }\n if (IPin[BI].getLevel() == 5) { // Blank input\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = 0;\n }\n return;\n }\n if (IPin[LE].getLevel() == 5) { // Latch enable\n ActVal = 0;\n if (IPin[A].getLevel() == 5) ActVal += 1;\n if (IPin[B].getLevel() == 5) ActVal += 2;\n if (IPin[C].getLevel() == 5) ActVal += 4;\n if (IPin[D].getLevel() == 5) ActVal += 8;\n }\n\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = SegLev[ActVal] [ix];\n }\n }", "public void update()\n\t{\n\t\t//\tTHE WORLD HAS ENDED DO NOT EXECUTE FURTHER\n\t\tif( end )\n\t\t{\n\t\t\tsafeEnd = true;\n\t\t\treturn;\n\t\t}\n\n\t\t//Plot graphics\n\t\tif(plot){\n\t\t\thealthyFunction.show(infectedFunction, healthyFunction);\n\t\t\tbusFunction.show(infectedFunction, seasFunction, busFunction, colFunction, ellFunction, smpaFunction, lawFunction);\n\t\t\tplot = false;\n\t\t}\n\n\t\t//\tsafe point to manage human/zombie ratios\n\t\t//\tTODO: Modify infect to also switch zombies to humans\n\t\tinfect();\n\t\tgetWell();\n\t\taddFromQueue();\n\n\t\t//\tupdate all entities\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.update(zombiesPaused);\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.update(humansPaused);\n\t\t}\n\n\t\tif( zc!=zombies.size() || hc!=humans.size() )\n\t\t{\n\t\t\tzc = zombies.size();\n\t\t\thc = humans.size();\n\t\t\tSystem.out.println(zc+\"/\"+hc);\n\t\t}\n\n\t\t//Add points to our functions\n\t\thealthyFunction.add(time,humans.size());\n\t\tinfectedFunction.add(time,zombies.size());\n\t\tseascount = smpacount = ellcount = lawcount = buscount = colcount = 0;\n\t\tfor (int i = 0; i < humans.size(); i++) {\n\t\t\tEntity curr = humans.get(i);\n\t\t\tif (curr instanceof SEAS) {\n\t\t\t\tseascount++;\n\t\t\t} else if (curr instanceof SMPA) {\n\t\t\t\tsmpacount++;\n\t\t\t} else if (curr instanceof Elliot) {\n\t\t\t\tellcount++;\n\t\t\t} else if (curr instanceof Law) {\n\t\t\t\tlawcount++;\n\t\t\t} else if (curr instanceof Business) {\n\t\t\t\tbuscount++;\n\t\t\t} else if (curr instanceof Columbian) {\n\t\t\t\tcolcount++;\n\t\t\t}\n\t\t}\n\t\tbusFunction.add(time, buscount);\n\t\tcolFunction.add(time, colcount);\n\t\tellFunction.add(time, ellcount);\n\t\tlawFunction.add(time, lawcount);\n\t\tsmpaFunction.add(time, smpacount);\n\t\tseasFunction.add(time, seascount);\n\t\ttime++;\n\t}", "public void init(){\n hp = DEFAULT_MAX_HEALTH;\n bulletsFired = new ArrayList<>();\n initial_y = -1;\n\n //Sets the byte to identify the state of movement\n //For animation purposes in the renderer\n //0 = stationary\n //1 = jumping\n //2 = moving left\n //3 = jumping left\n //4 = right\n //5 = Jumping right\n //6 = crouching\n //8 = crouching left\n //10 = crouching right\n stateOfMovement = 0;\n }", "public void updateHandFeatures() {\r\n\t\tpoints_hc_low = this.p1view.points_hc_low + this.p2view.points_hc_low;\r\n\t\tpoints_hc_high = this.p1view.points_hc_high + this.p2view.points_hc_high;\r\n\t\tpoints_spade_low = this.p1view.points_spade_low + this.p2view.points_spade_low;\r\n\t\tpoints_spade_high = this.p1view.points_spade_high + this.p2view.points_spade_high; \r\n\t\tpoints_heart_low = this.p1view.points_heart_low + this.p2view.points_heart_low;\r\n\t\tpoints_heart_high = this.p1view.points_heart_high + this.p2view.points_heart_high; \r\n\t\tpoints_dia_low = this.p1view.points_dia_low + this.p2view.points_dia_low;\r\n\t\tpoints_dia_high = this.p1view.points_dia_high + this.p2view.points_dia_high; \t\t\r\n\t\tpoints_club_low = this.p1view.points_club_low + this.p2view.points_club_low;\r\n\t\tpoints_club_high = this.p1view.points_club_high + this.p2view.points_club_high; \r\n\t\t\t\t\r\n\t\tcontrols_low = this.p1view.controls_low + this.p2view.controls_low;\r\n\t\tcontrols_high = this.p1view.controls_high + this.p2view.controls_high;\r\n\t\tcontrols_spade_low = this.p1view.controls_spade_low + this.p2view.controls_spade_low;\r\n\t\tcontrols_spade_high = this.p1view.controls_spade_high + this.p2view.controls_spade_high; \r\n\t\tcontrols_heart_low = this.p1view.controls_heart_low + this.p2view.controls_heart_low;\r\n\t\tcontrols_heart_high = this.p1view.controls_heart_high + this.p2view.controls_heart_high; \r\n\t\tcontrols_dia_low = this.p1view.controls_dia_low + this.p2view.controls_dia_low;\r\n\t\tcontrols_dia_high = this.p1view.controls_dia_high + this.p2view.controls_dia_high; \t\t\r\n\t\tcontrols_club_low = this.p1view.controls_club_low + this.p2view.controls_club_low;\r\n\t\tcontrols_club_high = this.p1view.controls_club_high + this.p2view.controls_club_high; \r\n\t\t\r\n\t\thighCards_low = this.p1view.highCards_low + this.p2view.highCards_low;\r\n\t\thighCards_high = this.p1view.highCards_high + this.p2view.highCards_high;\r\n\t\thighCards_spade_low = this.p1view.highCards_spade_low + this.p2view.highCards_spade_low;\r\n\t\thighCards_spade_high = this.p1view.highCards_spade_high + this.p2view.highCards_spade_high; \r\n\t\thighCards_heart_low = this.p1view.highCards_heart_low + this.p2view.highCards_heart_low;\r\n\t\thighCards_heart_high = this.p1view.highCards_heart_high + this.p2view.highCards_heart_high; \r\n\t\thighCards_dia_low = this.p1view.highCards_dia_low + this.p2view.highCards_dia_low;\r\n\t\thighCards_dia_high = this.p1view.highCards_dia_high + this.p2view.highCards_dia_high; \t\t\r\n\t\thighCards_club_low = this.p1view.highCards_club_low + this.p2view.highCards_club_low;\r\n\t\thighCards_club_high = this.p1view.highCards_club_high + this.p2view.highCards_club_high; \r\n\t\t\r\n\t\thonors_low = this.p1view.honors_low + this.p2view.honors_low;\r\n\t\thonors_high = this.p1view.honors_high + this.p2view.honors_high;\r\n\t\thonors_spade_low = this.p1view.honors_spade_low + this.p2view.honors_spade_low;\r\n\t\thonors_spade_high = this.p1view.honors_spade_high + this.p2view.honors_spade_high; \r\n\t\thonors_heart_low = this.p1view.honors_heart_low + this.p2view.honors_heart_low;\r\n\t\thonors_heart_high = this.p1view.honors_heart_high + this.p2view.honors_heart_high; \r\n\t\thonors_dia_low = this.p1view.honors_dia_low + this.p2view.honors_dia_low;\r\n\t\thonors_dia_high = this.p1view.honors_dia_high + this.p2view.honors_dia_high; \t\t\r\n\t\thonors_club_low = this.p1view.honors_club_low + this.p2view.honors_club_low;\r\n\t\thonors_club_high = this.p1view.honors_club_high + this.p2view.honors_club_high; \r\n\t\t\r\n\t\taces = (this.p1view.aces != -1 && this.p2view.aces != -1) ? this.p1view.aces + this.p2view.aces : -1;\r\n\t\tace_spade = (this.p1view.ace_spade != -1 && this.p2view.ace_spade != -1) ? ((this.p1view.ace_spade == 1 || this.p2view.ace_spade == 1) ? 1 : 0): -1;\r\n\t\tking_spade = (this.p1view.king_spade != -1 && this.p2view.king_spade != -1) ? ((this.p1view.king_spade == 1 || this.p2view.king_spade == 1) ? 1 : 0): -1;\r\n\t\tqueen_spade = (this.p1view.queen_spade != -1 && this.p2view.queen_spade != -1) ? ((this.p1view.queen_spade == 1 || this.p2view.queen_spade == 1) ? 1 : 0): -1;\r\n\t\tjack_spade = (this.p1view.jack_spade != -1 && this.p2view.jack_spade != -1) ? ((this.p1view.jack_spade == 1 || this.p2view.jack_spade == 1) ? 1 : 0): -1;\r\n\t\tten_spade = (this.p1view.ten_spade != -1 && this.p2view.ten_spade != -1) ? ((this.p1view.ten_spade == 1 || this.p2view.ten_spade == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\taces = (this.p1view.aces != -1 && this.p2view.aces != -1) ? this.p1view.aces + this.p2view.aces : -1;\r\n\t\tkings = (this.p1view.kings != -1 && this.p2view.kings != -1) ? this.p1view.kings + this.p2view.kings : -1;\r\n\t\tqueens = (this.p1view.queens != -1 && this.p2view.queens != -1) ? this.p1view.queens + this.p2view.queens : -1;\r\n\t\tjacks = (this.p1view.jacks != -1 && this.p2view.jacks != -1) ? this.p1view.jacks + this.p2view.jacks : -1;\r\n\t\ttens = (this.p1view.tens != -1 && this.p2view.tens != -1) ? this.p1view.tens + this.p2view.tens : -1;\r\n\t\t\r\n\t\tace_spade = (this.p1view.ace_spade != -1 && this.p2view.ace_spade != -1) ? ((this.p1view.ace_spade == 1 || this.p2view.ace_spade == 1) ? 1 : 0): -1;\r\n\t\tking_spade = (this.p1view.king_spade != -1 && this.p2view.king_spade != -1) ? ((this.p1view.king_spade == 1 || this.p2view.king_spade == 1) ? 1 : 0): -1;\r\n\t\tqueen_spade = (this.p1view.queen_spade != -1 && this.p2view.queen_spade != -1) ? ((this.p1view.queen_spade == 1 || this.p2view.queen_spade == 1) ? 1 : 0): -1;\r\n\t\tjack_spade = (this.p1view.jack_spade != -1 && this.p2view.jack_spade != -1) ? ((this.p1view.jack_spade == 1 || this.p2view.jack_spade == 1) ? 1 : 0): -1;\r\n\t\tten_spade = (this.p1view.ten_spade != -1 && this.p2view.ten_spade != -1) ? ((this.p1view.ten_spade == 1 || this.p2view.ten_spade == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_heart = (this.p1view.ace_heart != -1 && this.p2view.ace_heart != -1) ? ((this.p1view.ace_heart == 1 || this.p2view.ace_heart == 1) ? 1 : 0): -1;\r\n\t\tking_heart = (this.p1view.king_heart != -1 && this.p2view.king_heart != -1) ? ((this.p1view.king_heart == 1 || this.p2view.king_heart == 1) ? 1 : 0): -1;\r\n\t\tqueen_heart = (this.p1view.queen_heart != -1 && this.p2view.queen_heart != -1) ? ((this.p1view.queen_heart == 1 || this.p2view.queen_heart == 1) ? 1 : 0): -1;\r\n\t\tjack_heart = (this.p1view.jack_heart != -1 && this.p2view.jack_heart != -1) ? ((this.p1view.jack_heart == 1 || this.p2view.jack_heart == 1) ? 1 : 0): -1;\r\n\t\tten_heart = (this.p1view.ten_heart != -1 && this.p2view.ten_heart != -1) ? ((this.p1view.ten_heart == 1 || this.p2view.ten_heart == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_dia = (this.p1view.ace_dia != -1 && this.p2view.ace_dia != -1) ? ((this.p1view.ace_dia == 1 || this.p2view.ace_dia == 1) ? 1 : 0): -1;\r\n\t\tking_dia = (this.p1view.king_dia != -1 && this.p2view.king_dia != -1) ? ((this.p1view.king_dia == 1 || this.p2view.king_dia == 1) ? 1 : 0): -1;\r\n\t\tqueen_dia = (this.p1view.queen_dia != -1 && this.p2view.queen_dia != -1) ? ((this.p1view.queen_dia == 1 || this.p2view.queen_dia == 1) ? 1 : 0): -1;\r\n\t\tjack_dia = (this.p1view.jack_dia != -1 && this.p2view.jack_dia != -1) ? ((this.p1view.jack_dia == 1 || this.p2view.jack_dia == 1) ? 1 : 0): -1;\r\n\t\tten_dia = (this.p1view.ten_dia != -1 && this.p2view.ten_dia != -1) ? ((this.p1view.ten_dia == 1 || this.p2view.ten_dia == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tace_club = (this.p1view.ace_club != -1 && this.p2view.ace_club != -1) ? ((this.p1view.ace_club == 1 || this.p2view.ace_club == 1) ? 1 : 0): -1;\r\n\t\tking_club = (this.p1view.king_club != -1 && this.p2view.king_club != -1) ? ((this.p1view.king_club == 1 || this.p2view.king_club == 1) ? 1 : 0): -1;\r\n\t\tqueen_club = (this.p1view.queen_club != -1 && this.p2view.queen_club != -1) ? ((this.p1view.queen_club == 1 || this.p2view.queen_club == 1) ? 1 : 0): -1;\r\n\t\tjack_club = (this.p1view.jack_club != -1 && this.p2view.jack_club != -1) ? ((this.p1view.jack_club == 1 || this.p2view.jack_club == 1) ? 1 : 0): -1;\r\n\t\tten_club = (this.p1view.ten_club != -1 && this.p2view.ten_club != -1) ? ((this.p1view.ten_club == 1 || this.p2view.ten_club == 1) ? 1 : 0): -1;\r\n\t\t\r\n\t\tnum_spade_low = this.p1view.num_spade_low + this.p2view.num_spade_low;\r\n\t\tnum_spade_high = this.p1view.num_spade_high + this.p2view.num_spade_high; \r\n\t\tnum_heart_low = this.p1view.num_heart_low + this.p2view.num_heart_low;\r\n\t\tnum_heart_high = this.p1view.num_heart_high + this.p2view.num_heart_high; \r\n\t\tnum_dia_low = this.p1view.num_dia_low + this.p2view.num_dia_low;\r\n\t\tnum_dia_high = this.p1view.num_dia_high + this.p2view.num_dia_high;\t\r\n\t\tnum_club_low = this.p1view.num_club_low + this.p2view.num_club_low;\r\n\t\tnum_club_high = this.p1view.num_club_high + this.p2view.num_club_high;\r\n\t\t\r\n\t\ttotal_points_sp_low = p1view.total_points_sp_low + p2view.total_points_sp_low;\r\n\t\ttotal_points_sp_high = p1view.total_points_sp_high + p2view.total_points_sp_high; \r\n\t\ttotal_points_he_low = p1view.total_points_he_low + p2view.total_points_he_low;\r\n\t\ttotal_points_he_high = p1view.total_points_he_high + p2view.total_points_he_high; \r\n\t\ttotal_points_di_low = p1view.total_points_di_low + p2view.total_points_di_low;\r\n\t\ttotal_points_di_high = p1view.total_points_di_high + p2view.total_points_di_high; \t\t\r\n\t\ttotal_points_cl_low = p1view.total_points_cl_low + p2view.total_points_cl_low;\r\n\t\ttotal_points_cl_high = p1view.total_points_cl_high + p2view.total_points_cl_high; \r\n\t\t\r\n\t\t// Hand(s) features done, now check invitation\r\n\t\tif(invited) {\r\n\t\t\tif(!this.player.getDeal().getAuction().getBidHistory().hasGameBeenBid()) {\r\n\t\t\t\tif(this.trumpDecided == BidSuit.NOTRUMP || trumpDecided == null) {\r\n\t\t\t\t\tif(this.points_hc_low >= 26)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t\ttrumpDecided = BidSuit.NOTRUMP;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint num_trump, points;\r\n\t\t\t\t\tpoints = this.points_hc_low;\r\n\t\t\t\t\tif(this.trumpDecided == BidSuit.SPADE) {\r\n\t\t\t\t\t\tnum_trump = this.num_spade_low;\r\n\t\t\t\t\t} else if(this.trumpDecided == BidSuit.HEART) {\r\n\t\t\t\t\t\tnum_trump = this.num_heart_low;\r\n\t\t\t\t\t} else if(this.trumpDecided == BidSuit.DIAMOND) {\r\n\t\t\t\t\t\tnum_trump = this.num_dia_low;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnum_trump = this.num_club_low;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(points + num_trump >= 33)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif(this.trumpDecided == BidSuit.NOTRUMP || trumpDecided == null) {\r\n\t\t\t\t\t// Pointless bidding, since game already bid\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint num_trump;\r\n\t\t\t\t\tif(this.trumpDecided == BidSuit.SPADE)\r\n\t\t\t\t\t\tnum_trump = this.num_spade_low;\r\n\t\t\t\t\telse if(this.trumpDecided == BidSuit.HEART)\r\n\t\t\t\t\t\tnum_trump = this.num_heart_low;\r\n\t\t\t\t\telse if(this.trumpDecided == BidSuit.DIAMOND)\r\n\t\t\t\t\t\tnum_trump = this.num_dia_low;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tnum_trump = this.num_club_low;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(num_trump >= 8)\r\n\t\t\t\t\t\tinvite_response = true;\r\n\t\t\t\t\telse invite_response = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "void updateSensors() {\n\t\tint visionDim = ninterface.affectors.getVisionDim();\n\t\tdouble distance;\n\n\t\t/* Update food vision variables. */\n\t\tfor (int i = 0; i < visionDim; i++) {\n\t\t\t/* Food sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_FOOD);\n\t\t\tninterface.affectors.vFood[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Ally sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_AGENT);\n\t\t\tninterface.affectors.vAlly[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Enemy sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_ENEMY);\n\t\t\tninterface.affectors.vEnemy[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Wall sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_WALL);\n\t\t\tninterface.affectors.vWall[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\t\t}\n\t}", "public void terrainStates(){\n \tif(statesPad.getRawButton(portButton)){terrainStates = portState;}\n \telse if(statesPad.getRawButton(chevellButton)){terrainStates = chevellState;}\n \telse if(statesPad.getRawButton(ballGrabButton)){terrainStates = ballGrabState;}\n \telse if(statesPad.getRawButton(driveStateButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(lowBarButton)){terrainStates = lowBarState;}\n \telse if(statesPad.getRawButton(roughButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(rockButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(moatButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(rampartButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(drawButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(sallyButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(statesPadDefault) || drivePad.getRawButton(defaultButton)){terrainStates = driveState;}\n \t\n \tswitch (terrainStates) {\n\t \tcase 1: \n\t \t\tport();\n\t \t\tSystem.out.println(\"HERE IN ONE\");\n\t break;\n\t \tcase 2:\t\n\t \t\tchevell();\n\t \t\tSystem.out.println(\"HERE IN TWO\");\n\t \tbreak;\n\t case 3:\n\t \troughT();\n\t \tSystem.out.println(\"HERE IN THREE\");\n\t \tbreak;\n\t case 4: \n\t \tmoat();\n\t \tSystem.out.println(\"HERE IN FOUR\");\n\t \tbreak;\n\t case 5:\n\t \trampart();\n \t\t\tSystem.out.println(\"HERE IN FIVE\");\n \t\t\tbreak;\n\t case 6: \n\t \tdrawBridge();\n \t\t\tSystem.out.println(\"HERE IN SIX\");\n \t\t\tbreak;\n\t case 7: \n\t \tsallyPort();\n \t\t\tSystem.out.println(\"HERE IN SEVEN\");\n \t\t\tbreak;\n\t case 8: \n\t \tlowBar();\n\t \tSystem.out.println(\"HERE IN EIGHT\");\n\t \tbreak;\n\t case 9: \n\t \trockWall();\n \t\t\tSystem.out.println(\"HERE IN NINE\");\n \t\t\tbreak;\n\t case 10: \n\t \tballGrab();\n\t\t\t\tSystem.out.println(\"HERE IN TEN\");\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tdrivingState();\n\t\t\t\tSystem.out.println(\"HERE IN TWELVE\");\n\t\t\t\tbreak;\n\t default: \n\t \t//reset all of the states\n\t \tportSwitch \t\t= 0;\n\t \tchevellSwitch\t= 0;\n\t \tballGrabSwitch\t= 0;\n\t \tdriveSwitch\t\t= 0;\n\t \tliftArm();\n\t \twheelArms();\n\t \tSystem.out.println(\"HERE IN DEFAULT\");\n \t}\n \tSystem.out.println(\"OUTSIDE THE SWITCH\");\n }", "public void initialize() {\r\n /**********************************/\r\n //this.numOfLives=new hitevent.Counter(START_NUM_LIVES);\r\n //this.blocksCounter = new hitevent.Counter(this.levelInformation.numberOfBlocksToRemove());\r\n //this.gui = new GUI(\"jumping\", WIDTH_SCREEN, HI_SCREEN);\r\n /*****************************************/\r\n //create new point to create the edges of the screen\r\n Point p1 = new Point(-5, 20);\r\n Point p2 = new Point(-5, -5);\r\n Point p3 = new Point(WIDTH_SCREEN - 20, -5);\r\n Point p4 = new Point(-5, HI_SCREEN - 15);\r\n //an array to the blocks of the edges\r\n Block[] edges = new Block[4];\r\n //create the adges of the screen\r\n Counter[] edgeCount = new Counter[4];\r\n edgeCount[0] = new Counter(1);\r\n edges[0] = new Block(new Rectangle(p1, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[0]);\r\n edgeCount[1] = new Counter(1);\r\n edges[1] = new Block(new Rectangle(p2, 25, HI_SCREEN + 20), Color.RED, edgeCount[1]);\r\n edgeCount[2] = new Counter(1);\r\n edges[2] = new Block(new Rectangle(p3, 25, HI_SCREEN + 20), Color.RED, edgeCount[2]);\r\n edgeCount[3] = new Counter(1);\r\n edges[3] = new Block(new Rectangle(p4, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[3]);\r\n\r\n //initilize the paddle\r\n initializePaddle();\r\n //sprite collection and game evnironment\r\n SpriteCollection sprite = new SpriteCollection();\r\n GameEnvironment game1 = new GameEnvironment();\r\n\r\n //add the Background of the level to the sprite collection\r\n this.addSprite(this.levelInformation.getBackground());\r\n //create score Indicator, lives Indicator and level name\r\n ScoreIndicator scoreIndicator1 = new ScoreIndicator(score);\r\n LivesIndicator livesIndicator1 = new LivesIndicator(numOfLives);\r\n LevelIndicator levelName = new LevelIndicator(this.levelInformation.levelName());\r\n\r\n game1.addCollidable((Collidable) this.paddle);\r\n sprite.addSprite((Sprite) this.paddle);\r\n sprite.addSprite((Sprite) scoreIndicator1);\r\n sprite.addSprite((Sprite) livesIndicator1);\r\n sprite.addSprite((Sprite) levelName);\r\n\r\n //add the paddle, score Indicator, lives Indicator and level name to the game\r\n this.paddle.addToGame(this);\r\n scoreIndicator1.addToGame(this);\r\n livesIndicator1.addToGame(this);\r\n levelName.addToGame(this);\r\n\r\n //initilize the Blocks\r\n initializeBlocks();\r\n\r\n }", "public long[] getState() {\n return new long[] {(long)Cg0, (long)Cg1, (long)Cg2,\n (long)Cg3, (long)Cg4, (long)Cg5};\n }", "public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }", "public void processStimulus(java.util.Enumeration en) {\n//\t\tSystem.out.println(\"physics\");\n// performPhysics();\n\n//\t\tSystem.out.println(\"behavior\");\n doEveryFrame();\n\n//\t\tobjHPindicator\n// hpAppear.setColoringAttributes(new ColoringAttributes(1.0f - (float) hitpoints / (float) maxHitpoints, (float) hitpoints / (float) maxHitpoints, 0.0f, ColoringAttributes.NICEST));\n\n// refreshPosition();\n\n if (isAlive()) {\n wakeupOn(w);\n } else {\n kill();\n }\n }", "private int computeState() {\n int state;\n if (corePd)\n state = 1; //power down state\n else\n state = 2; // core, e.g. crystal on state\n if (!corePd && !biasPd)\n state = 3; // crystal and bias on state\n if (!corePd && !biasPd && !fsPd)\n state = 4; // crystal, bias and synth. on\n if (!corePd && !biasPd && !fsPd && !rxtx && !rxPd)\n state = 5; // receive state\n if (!corePd && !biasPd && !fsPd && rxtx && !txPd)\n state = PA_POW_reg.getPower() + 6;\n return state;\n }", "public static void main(String[] args) {\n FastReader sc = new FastReader(System.in);\n int r = sc.nextInt();\n int c = sc.nextInt();\n int i, j;\n int[][] a = new int[r][c];\n for (i = 0; i < r; i++) {\n for (j = 0; j < c; j++) {\n a[i][j] = sc.nextInt();\n }\n }\n int ans = 0;\n int[] dx = { 1, -1, 0, 0 };\n int[] dy = { 0, 0, 1, -1 };\n String[] dir = {\"D\",\"U\",\"R\",\"L\"};\n for (i = 0; i < r; i++) {\n for (j = 0; j < c; j++) {\n if (a[i][j] == 0) {\n // cell can be used to place light\n for (int k = 0; k < 4; k++) {\n int x = dx[k] + i;\n int y = dy[k] + j;\n if (isValid(x, y, r, c) && actorPresent(a,i,j,r,c,dir[k])) {\n ans++;\n }\n\n }\n }\n }\n }\n System.out.println(ans);\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9244, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9245, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9246, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9247, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9248, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9249, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9250, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9251, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9252, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9253, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9254, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9255, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9256, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9257, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9258, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9259, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9260, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9261, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9262, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9263, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9264, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9265, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9266, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9267, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9268, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9269, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9270, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9271, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9272, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9273, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9274, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9275, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9276, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9277, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9278, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9279, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9280, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9281, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9282, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9283, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9284, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9285, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9286, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9287, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9288, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9289, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9290, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9291, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9292, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9293, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9294, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9295, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9296, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9297, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9298, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9299, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9300, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9301, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9302, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9303, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9304, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9305, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9306, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9307, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "private double evalState(LabyrinthGameState state) {\n double score = 0;\n\n //Assign Percentages of Score\n final double treasureValTotal = 80; //Based on number of treasures left\n final double nearTreasureValTotal = 15; //Based on proximity to treasure\n final double typeTileValTotal = 1; //Based on which tile you are on\n final double numberOfConnectionsValTotal = 4; //Based on how many places you can move\n\n double treasureVal = 0;\n double nearTreasureVal = 0;\n double typeTileVal = 0;\n double numberOfConnectionsVal = 0;\n\n //calculating your treasure points\n treasureVal = (6.0 - (double)(state.getPlayerDeckSize(\n Player.values()[playerNum])))/6.0*treasureValTotal;\n\n int [] yourPos = state.getPlayerLoc(Player.values()[playerNum]).getLoc();\n int [] treasurePos = state.findTreasureLoc(Player.values()[playerNum]);\n if (treasurePos[0] == -1) {\n nearTreasureVal = (10.0 - findDistance(yourPos, findHome()))\n / 10.0 * nearTreasureValTotal;\n } else {\n nearTreasureVal = (10.0 - findDistance(yourPos, treasurePos))\n / 10.0 * nearTreasureValTotal;\n }\n\n //calculating points for the type of tile it can end on\n switch (state.getPlayerLoc(Player.values()[playerNum]).getType()) {\n case STRAIGHT:\n typeTileVal = 5.0 / 10.0 * typeTileValTotal;\n break;\n case INTERSECTION:\n typeTileVal = typeTileValTotal;\n break;\n default:\n typeTileVal = 3.0 / 10.0 * typeTileValTotal;\n break;\n }\n\n //calculating points based on # of connections created\n numberOfConnectionsVal = ((double)generatePossibleMoveActions(state).size()\n /49.0*numberOfConnectionsValTotal);\n\n //calculating final score\n score = (treasureVal + nearTreasureVal +\n typeTileVal + numberOfConnectionsVal)/100.0;\n\n return score;\n }", "public void updateValues() {\n\t\tlightResistances = new float[width][height];\n\t\twalls = new boolean[width][height];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tlightResistances[x][y] = map[x][y].getLighting();\n\t\t\t\twalls[x][y] = map[x][y].isWall();\n\t\t\t}\n\t\t}\n\t}", "private void init_normal() {\n\t\t//data structure initialization\n\t\tthis.single_all_the_way = this.d > this.single_limit;\n\t\t//data structure initialization\n\n\t\tthis.relation = new int[d][d];\n\t\tthis.danced = new int[d][d];\n\t\tfor (int i = 0; i < d; ++i){\n\t\t\tfor (int j = 0; j < d; ++j) {\n\t\t\t\trelation[i][j] = -1;\n\t\t\t}\n\t\t}\n\n\n\t\tthis.connected = true;\n\t\tthis.pits = new Pit[normal_limit];\n\t\tthis.dancers = new Dancer[d];\n\t\tthis.stay_and_dance = new Point[d];\n\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tthis.stay_and_dance[i] = new Point(0,0);\n\t\t} \n\n\n\t\tdouble x = this.delta;\n\t\tdouble y = this.delta;\n\t\tdouble increment = 0.5 + this.delta;\n\t\tint i = 0;\n\t\tint old_i = -1;\n\t\tint sign = 1;\n\n\t\tdouble x_min = this.delta - safeDis;\n\t\tdouble x_max = this.room_side + safeDis;\n\t\tdouble y_min = this.delta;\n\t\tdouble y_max = this.room_side + safeDis;\n\n\t\t//create the pits in a spiral fashion\n\t\twhile(old_i != i){\n\t\t\t//go right\n\t\t\told_i = i;\n\t\t\twhile(x + safeDis < x_max){\n\t\t\t\tthis.pits[i] = new Pit(i,new Point(x,y));\n\t\t\t\ti++;\n\t\t\t\tx += increment;\n\t\t\t}\n\t\t\tx = this.pits[i-1].pos.x;\n\t\t\ty += increment;\n\t\t\tx_max = x;\n\n\t\t\t//go down\n\t\t\twhile(y + safeDis < y_max){\n\t\t\t\tthis.pits[i] = new Pit(i,new Point(x,y));\n\t\t\t\ti++;\n\t\t\t\ty += increment;\n\t\t\t}\n\t\t\ty = this.pits[i-1].pos.y; \n\t\t\tx -= increment;\n\t\t\ty_max = y;\n\n\t\t\t//go left\n\t\t\twhile(x - safeDis > x_min){\n\t\t\t\tthis.pits[i] = new Pit(i,new Point(x,y));\n\t\t\t\ti++;\n\t\t\t\tx -= increment;\n\t\t\t}\n\t\t\tx = this.pits[i-1].pos.x; \n\t\t\ty -= increment;\n\t\t\tx_min = x;\n\n\t\t\t//go up\n\t\t\twhile(y - safeDis > y_min){\n\t\t\t\tthis.pits[i] = new Pit(i,new Point(x,y));\n\t\t\t\ti++;\n\t\t\t\ty -= increment;\n\n\t\t\t}\n\t\t\ty = this.pits[i-1].pos.y;\n\t\t\tx += increment;\n\t\t\ty_min = y;\n\t\t}\n\n\t\t//put players in pits\n\t\tfor(int j = 0; j < d; j++){\n\t\t\tthis.dancers[j] = new Dancer(j,j);\n\t\t\tPoint my_pos = this.pits[j].pos;\n\t\t\tPoint partner_pos = j%2 == 0? getNext(this.pits[j]).pos : getPrev(this.pits[j]).pos;\n\t\t\tthis.dancers[j].next_pos = findNearestActualPoint(my_pos,partner_pos);\n\t\t}\n\t\tthis.state = 2;\n\n\t\tif(single_all_the_way) this.boredTime = 120;\n\t}", "public void onUsingTick(ItemStack stack, EntityLivingBase player, int count) {\n/* 108 */ List<EntityItem> stuff = EntityUtils.getEntitiesInRange(player.field_70170_p, player.field_70165_t, player.field_70163_u, player.field_70161_v, player, EntityItem.class, 10.0D);\n/* */ \n/* */ \n/* 111 */ if (stuff != null && stuff.size() > 0)\n/* */ {\n/* 113 */ for (EntityItem e : stuff) {\n/* 114 */ if (!e.field_70128_L) {\n/* */ \n/* 116 */ double d6 = e.field_70165_t - player.field_70165_t;\n/* 117 */ double d8 = e.field_70163_u - player.field_70163_u + (player.field_70131_O / 2.0F);\n/* 118 */ double d10 = e.field_70161_v - player.field_70161_v;\n/* 119 */ double d11 = MathHelper.func_76133_a(d6 * d6 + d8 * d8 + d10 * d10);\n/* 120 */ d6 /= d11;\n/* 121 */ d8 /= d11;\n/* 122 */ d10 /= d11;\n/* 123 */ double d13 = 0.3D;\n/* 124 */ e.field_70159_w -= d6 * d13;\n/* 125 */ e.field_70181_x -= d8 * d13 - 0.1D;\n/* 126 */ e.field_70179_y -= d10 * d13;\n/* 127 */ if (e.field_70159_w > 0.25D) e.field_70159_w = 0.25D; \n/* 128 */ if (e.field_70159_w < -0.25D) e.field_70159_w = -0.25D; \n/* 129 */ if (e.field_70181_x > 0.25D) e.field_70181_x = 0.25D; \n/* 130 */ if (e.field_70181_x < -0.25D) e.field_70181_x = -0.25D; \n/* 131 */ if (e.field_70179_y > 0.25D) e.field_70179_y = 0.25D; \n/* 132 */ if (e.field_70179_y < -0.25D) e.field_70179_y = -0.25D; \n/* 133 */ if (player.field_70170_p.field_72995_K) {\n/* 134 */ FXDispatcher.INSTANCE.crucibleBubble((float)e.field_70165_t + (player.field_70170_p.field_73012_v\n/* 135 */ .nextFloat() - player.field_70170_p.field_73012_v.nextFloat()) * 0.2F, (float)e.field_70163_u + e.field_70131_O + (player.field_70170_p.field_73012_v\n/* 136 */ .nextFloat() - player.field_70170_p.field_73012_v.nextFloat()) * 0.2F, (float)e.field_70161_v + (player.field_70170_p.field_73012_v\n/* 137 */ .nextFloat() - player.field_70170_p.field_73012_v.nextFloat()) * 0.2F, 0.33F, 0.33F, 1.0F);\n/* */ }\n/* */ } \n/* */ } \n/* */ }\n/* */ }", "private void decorateMountainsFloat(int xStart, int xLength, int floor, boolean enemyAddedBefore, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "@Override\n protected void setup(){\n /* if(\"red\".equals(contrast) && \"round\".equals(ShapeAgent.shape)){\n System.out.println(\"Detected \"+count +\" Microneurysms in input image\");\n \n\n }\n else if((\"light yellow\".equals(contrast) && \"round\".equals(ShapeAgent.shape)) || (\"yellow\".equals(contrast) && \"round\".equals(ShapeAgent.shape))){\n System.out.println(\"Detected \"+count +\" exudates in input image\");\n\n }\n else if((\"dark yellow\".equals(contrast) && \"round\".equals(ShapeAgent.shape)) || (\"yellow\".equals(contrast) && \"round\".equals(ShapeAgent.shape))){\n System.out.println(\"Detected \"+count +\" exudates in input image\");\n\n }\n else{\n System.out.println(\"Complecated situation appeared with count agent\");\n\n }*/\n \n if(((1.12<BrightnessAgent.contrast) && (3.12>BrightnessAgent.contrast)) && ShapeAgent.shape >=0.8){\n System.out.println(\"Detected \"+count +\" Microneurysms in input image\"); \n }\n else if(((3.12<BrightnessAgent.contrast) && (4.12>BrightnessAgent.contrast)) && ShapeAgent.shape < 0.8){\n System.out.println(\"Detected \"+count +\" exudates in input image\"); \n }\n else if(((3.12<BrightnessAgent.contrast) && (4.12>BrightnessAgent.contrast)) && ShapeAgent.shape >= 0.8){\n System.out.println(\"Detected \"+count +\" exudates in input image\"); \n }\n else{\n System.out.println(\"Complecated situation occured in shape identification\");\n }\n doDelete();\n}", "private final void segmentsFrameEffects() {\n\t\tif (alive) {\n\t\t\tint i;\n\t\t\t// Energy obtained through photosynthesis\n\t\t\tdouble photosynthesis = 0;\n\t\t\t_nChildren = 1;\n\t\t\t_indigo =0;\n\t\t\t_lowmaintenance =0;\n\t\t\tint fertility =0;\n\t\t\tint yellowCounter =0;\n\t\t\tint reproduceearly =0;\n\t\t\tdouble goldenage =0;\n\t\t\t_isfrozen =false;\n\t\t\tboolean trigger =false;\n\t\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\t\t// Manteniment\n\t\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\t\t// \tMovement\n\t\t\t\tcase CYAN:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tdx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEAL:\n\t\t\t\t\tif (_geneticCode.getPassive()) {\n\t\t\t\t\t\tif (_hasdodged == false) {\n\t\t\t\t\t\t\t_dodge =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\t} else \n\t\t\t\t\t if (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Photosynthesis\n\t\t\t\tcase SPRING:\n\t\t\t\t\t if (_geneticCode.getClockwise()) {\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t dtheta=Utils.between(dtheta-0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIME:\n\t\t\t\t\tif (trigger == false) {\n\t\t\t\t\t\ttrigger =true;\n\t\t\t\t\t if (_world.fastCheckHit(this) != null) {\n\t\t\t\t\t \t_crowded =true;\n\t\t\t\t\t } else {\n\t\t\t\t\t \t_crowded =false;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tif (_crowded == true) {\n\t\t\t\t\t photosynthesis += Utils.CROWDEDLIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphotosynthesis += Utils.LIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase JADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tphotosynthesis += Utils.JADE_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\t\tphotosynthesis += Utils.GREEN_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase FOREST:\n\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t\t\tphotosynthesis += Utils.BARK_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tphotosynthesis += Utils.GRASS_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase C4:\n\t\t\t\t\t_lowmaintenance += _m[i];\n\t\t\t\t\tphotosynthesis += Utils.C4_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// is a consumer\n\t\t\t\tcase RED:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase PINK:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with yellow segments have more children\n\t\t\t\tcase YELLOW:\n\t\t\t\t\tyellowCounter++;\n\t\t\t\t\tfertility += _m[i];\n\t\t\t\t break;\n\t\t\t\t// Experienced parents have more children\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif (_isaconsumer == false) {\n\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\tcase GRAY:\n\t\t\t\t\t\tcase LILAC:\n\t\t\t\t\t\tcase SPIKE:\n\t\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}}}\n\t\t\t\t\t if (_nTotalChildren >= 1 && _nTotalChildren < 5) {\n\t\t\t\t\t\t_nChildren = 2; \n\t\t\t\t\t} else if (_nTotalChildren >= 5 && _nTotalChildren < 14) {\n\t\t\t\t\t\t_nChildren = 3; \n\t\t\t\t\t} else if (_nTotalChildren >= 14 && _nTotalChildren < 30) {\n\t\t\t\t\t\t_nChildren = 4; \n\t\t\t\t\t} else if (_nTotalChildren >= 30 && _nTotalChildren < 55) {\n\t\t\t\t\t\t_nChildren = 5;\n\t\t\t\t\t} else if (_nTotalChildren >= 55 && _nTotalChildren < 91) {\n\t\t\t\t\t _nChildren = 6;\n\t\t\t\t\t} else if (_nTotalChildren >= 91 && _nTotalChildren < 140) {\n\t\t\t\t\t\t_nChildren = 7; \n\t\t\t\t\t} else if (_nTotalChildren >= 140) {\n\t\t\t\t\t\t_nChildren = 8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Auburn always has one real child if infected\n\t\t\t\tcase AUBURN:\n\t\t\t\t\t_isauburn =true;\n\t\t\t\t\t_lowmaintenance += _m[i] - (Utils.AUBURN_ENERGY_CONSUMPTION * _m[i]);\n\t\t\t\t\tif (_infectedGeneticCode != null && _nChildren == 1) {\n\t\t\t\t\t\t_nChildren = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with blond segments reproduce earlier\n\t\t\t\tcase BLOND:\n\t\t\t\t\treproduceearly += 3 + _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with indigo segments reduce the energy the new born virus receives\n\t\t\t\tcase INDIGO:\n\t\t\t\t\t_indigo += _m[i];\n\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Plague forces an organism to reproduce the virus\n\t\t\t\tcase PLAGUE:\n\t\t\t\t\t_isplague =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Coral transforms particles and viruses\n\t\t\t\tcase CORAL:\n\t\t\t\t\t_iscoral =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Mint immunity against infections\t\n\t\t\t\tcase MINT:\n\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\tif (_infectedGeneticCode != null && Utils.random.nextInt(Utils.IMMUNE_SYSTEM)<=_m[i] && useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Healing\n\t\t\t\tcase MAGENTA:\n\t\t\t\t _isregenerative =true;\n\t\t\t\t for (int j = 0; j < _segments; j++) {\n\t\t\t\t if ((_segColor[j] == Utils.ColorLIGHTBROWN) || (_segColor[j] == Utils.ColorGREENBROWN) || (_segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorBROKEN) || (_segColor[j] == Utils.ColorLIGHT_BLUE) || (_segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorDARKJADE) || (_segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\tif (Utils.random.nextInt(Utils.HEALING)<=_m[i] && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t _segColor[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}}}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKFIRE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<_geneticCode.getSymmetry() && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKJADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tif (Utils.random.nextInt(Utils.DARKJADE_DELAY * _geneticCode.getSymmetry() * _geneticCode.getSymmetry())<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorJADE; \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Normalize spike\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\t_segColor[i] = Utils.ColorSPIKE;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a killer\n\t\t\t\tcase SPIKE:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRAY:\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t _isakiller = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is poisonous\n\t\t\t\tcase VIOLET:\n\t\t\t\t\t_ispoisonous =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a freezer\n\t\t\t\tcase SKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is enhanced\n\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Energy transfer\n\t\t\t\tcase ROSE:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tif (_transfersenergy == false) {\n\t\t\t\t\t\t_transfersenergy =true;\n\t\t\t\t\t _lengthfriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getLength();\n\t\t\t\t\t _thetafriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getTheta();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Low maintenance\n\t\t\t\tcase DARK:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with gold segments live longer\n\t\t\t\tcase GOLD:\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tgoldenage += (_m[i]/Utils.GOLD_DIVISOR);\n\t\t\t\t\t_geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\tbreak;\n\t\t\t\t// is weakened\n\t\t\t\tcase LIGHTBROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tif (_remember) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\t_isenhanced =false;\n\t\t\t\t\t\t_isantiviral =false;\n\t\t\t\t\t\t_isregenerative =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MINT:\n\t\t\t\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MAGENTA:\n\t\t\t\t\t\t\t\t_isregenerative =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t _geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\t _remember =false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\t\tif (_isafreezer) {\n\t\t\t\t\t\t_isafreezer =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is frozen\n\t\t\t\tcase ICE:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tif (_isjade) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Restore abilities\n\t\t\t\tcase DARKLILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorLILAC;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorSKY;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorOLIVE;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Reset dodging\n\t\t\tif (_hasdodged == true) {\n\t\t\t\t_dodge =false;\n\t\t\t\t_hasdodged =false;\n\t\t\t}\n\t\t\t//Get sun's energy\n\t\t\tif (photosynthesis > 0) {\n\t\t\t\t_isaplant =true;\n\t\t\t _energy += _world.photosynthesis(photosynthesis);\t\t\t\n\t\t\t}\n\t\t\t// Calculate number of children\n\t\t\tif (fertility > 0) {\n\t\t\t\tif (_geneticCode.getSymmetry() != 3) {\n\t\t\t\t _nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 23);\n\t\t\t } else {\n\t\t\t \t_nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 34);\n\t\t\t }\n\t\t\t}\n\t\t\t// Calculate reproduction energy for blond segments\n\t\t\tif ((reproduceearly > 0) && (_infectedGeneticCode == null)) {\n\t\t\t\tif (_energy > _geneticCode.getReproduceEnergy() - reproduceearly + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)) {\n\t\t\t\t\tif ((!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif ((_energy >= 10) && (_growthRatio<16) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t_nChildren = 1;\n\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 10);\n\t\t\t\t\t reproduce();\n\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((_energy >= 30) && (_growthRatio==1) && (_timeToReproduce==0) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 30);\n\t\t\t\t\t\t reproduce();\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18656, \"facing=north\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18657, \"facing=north\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18658, \"facing=south\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18659, \"facing=south\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18660, \"facing=west\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18661, \"facing=west\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18662, \"facing=east\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18663, \"facing=east\", \"waterlogged=false\"));\n }", "public GameLogic() {\n this.display = createScreen();\n playerShipHealth = 30;\n enemyShipHealth = 20;\n playerShield = 1;\n enemyShield = 1;\n playerMissile = 10;\n enemyMissile = 5;\n\n isPlayerPilotDamaged = false;\n isPlayerGunLDamaged = false;\n isPlayerGunMDamaged = false;\n isPlayerShieldDamaged = false;\n isPlayerEngineDamaged = false;\n\n isEnemyPilotDamaged = false;\n isEnemyGunLDamaged = false;\n isEnemyGunMDamaged = false;\n isEnemyShieldDamaged = false;\n isEnemyEngineDamaged = false;\n\n playerEvasionPercent = .3;\n enemyEvasionPercent = .3;\n\n }", "public interface GameState {\r\n void init(boolean[][] cells);\r\n\r\n void tick();\r\n\r\n Collection<ICell> getCells();\r\n\r\n boolean isLifeExtinct();\r\n}", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "public double costNEX() {\r\n double diff=0;\r\n double intensity=0;\r\n \r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n\r\n this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n intensity = this.body2[x][y][z].radiationIntensity(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (intensity>0) {\r\n// LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n this.body2[x][y][z].addCurrentDosis(intensity);\r\n } \r\n diff += Math.pow((this.body2[x][y][z].getGoalDosis()-this.body2[x][y][z].getCurrentDosis()),2);\r\n// LogTool.print(\" diffdose \" + (Looper.body2[x][y][z].getGoalDosis()-Looper.body2[x][y][z].getCurrentDosis()),\"notification\");\r\n } \r\n }\r\n }\r\n return Math.sqrt(diff);\r\n// return Math.random();\r\n }", "public void initVariables() {\n\tif (CL_Initializer.headerTemplateFile == null) {\n\n\t if (ImageHeader.imageExists(CL_Initializer.inputFile)) {\n\t\tCL_Initializer.headerTemplateFile = CL_Initializer.inputFile;\n\t }\n\t else if (imageType == imageType.BEDPOSTX || imageType == imageType.BEDPOSTX_DYAD) {\n\n\t\tString bedpostxRoot = BedpostxTractographyImage.getBedpostxInputRoot(bedpostxDir);\n\t\tString ext = BedpostxTractographyImage.getBedpostxImageExtension(bedpostxRoot);\n\t\t\n\t\tCL_Initializer.headerTemplateFile = bedpostxRoot + \"dyads1\" + ext;\n\t \n\t }\n\t \n\t}\n\n\t\n if (CL_Initializer.headerTemplateFile != null) { \n logger.info(\"Defining input physical space from \" + CL_Initializer.headerTemplateFile);\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (CL_Initializer.voxelDims[0] > 0.0) { \n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (seedFile != null) {\n logger.info(\"Defining input physical space from seed file\");\n CL_Initializer.headerTemplateFile = seedFile;\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n \n\n\n xDataDim = CL_Initializer.dataDims[0];\n yDataDim = CL_Initializer.dataDims[1];\n zDataDim = CL_Initializer.dataDims[2];\n \n xVoxelDim = CL_Initializer.voxelDims[0];\n yVoxelDim = CL_Initializer.voxelDims[1];\n zVoxelDim = CL_Initializer.voxelDims[2];\n\n if (xVoxelDim == 0.0) {\n // failed to get a definition of input space from anywhere\n throw new LoggedException(\"Definition of input space required, use -header\");\n }\n\n\n voxelToPhysicalTrans = CL_Initializer.headerTemplate.getVoxelToPhysicalTransform();\n\n\n\tif (anisThresh > 0.0) {\n\t switch(imageType) {\n\t\t\n\t case DT : case MULTITENSOR : case BEDPOSTX : case BEDPOSTX_DYAD :\n\t\t// No problem since these input formats have anisotropy information built in\n\t\tbreak;\n\t\t\n\t default: \n\t\t\n\t\tif (anisMapFile == null) {\n\t\t throw new LoggedException(\"Input data does not contain anisotropy, anisotropy map (-anisfile) must be \" +\n\t\t\t\t\t \"supplied when -anisthresh is used\");\n\t\t}\n\t }\n\t}\n\n\n // no interpolation with FACT, by definition\n if (trackingAlgorithm == TrackingAlgorithm.FACT) {\n\n if (dataInterpolation != DataInterpolation.NEAREST_NEIGHBOUR) { \n logger.warning(\"Interpolation is not compatible with FACT tracking, using Euler tracker with step size \" + stepSize + \" mm\");\n }\n\n trackingAlgorithm = TrackingAlgorithm.EULER;\n }\n\n \n ran = new MTRandom(seed);\n \n \n // get seeds\n if (seedFile != null) {\n \n VoxelROI imageROIs = new VoxelROI(seedFile, CL_Initializer.headerTemplate);\n\n allROIs = imageROIs.getAllRegions();\n \n }\n else if (seedList != null) {\n allROIs = new RegionOfInterest[] {PointListROI.readPoints(seedList, CL_Initializer.headerTemplate)};\n }\n\telse {\n\t throw new LoggedException(\"No seed points specified\");\n\t}\n \n \n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public GlobalState() {\r\n\t\t//initialize ITANet location vector\r\n\t\tint ITACount = Model.getITACount();\r\n\t\tthis.locVec = new int[ITACount];\r\n\t\tfor (int i = 0; i < ITACount; i++){\r\n\t\t\tthis.locVec[i] = Model.getITAAt(i).getInitLoc();\r\n\t\t}\r\n\r\n\t\t//initialize interruption vector\r\n\t\tint interCount = Model.getInterCount();\r\n\t\tthis.interVec = new boolean[interCount];\r\n\t\tfor(int i = 0; i < interCount; i++){\r\n\t\t\tthis.interVec[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\tthis.cvMap = Model.getCVMap(); //share 'cvMap' with Model\r\n\t\tthis.srArray = Model.getSRArray();\t//share 'srArray' with Model \r\n\t\tthis.stack = new CPUStack();\r\n\t\tthis.switches = new IRQSwitch();\r\n\t}", "public void a(boolean paramBoolean)\r\n/* 143: */ {\r\n/* 144:162 */ this.d.a(this.e, this.f, this.g, \"random.explode\", 4.0F, (1.0F + (this.d.rng.nextFloat() - this.d.rng.nextFloat()) * 0.2F) * 0.7F);\r\n/* 145:163 */ if ((this.i < 2.0F) || (!this.b)) {\r\n/* 146:164 */ this.d.a(EnumParticleEffect.EXPLOSION_LARGE, this.e, this.f, this.g, 1.0D, 0.0D, 0.0D, new int[0]);\r\n/* 147: */ } else {\r\n/* 148:166 */ this.d.a(EnumParticleEffect.EXPLOSION_HUGE, this.e, this.f, this.g, 1.0D, 0.0D, 0.0D, new int[0]);\r\n/* 149: */ }\r\n/* 150: */ Iterator<BlockPosition> localIterator;\r\n/* 151:169 */ if (this.b) {\r\n/* 152:170 */ for (localIterator = this.j.iterator(); localIterator.hasNext();)\r\n/* 153: */ {\r\n/* 154:170 */ BlockPosition localdt = localIterator.next();\r\n/* 155:171 */ BlockType localatr = this.d.getBlock(localdt).getType();\r\n/* 156:173 */ if (paramBoolean)\r\n/* 157: */ {\r\n/* 158:174 */ double d1 = localdt.getX() + this.d.rng.nextFloat();\r\n/* 159:175 */ double d2 = localdt.getY() + this.d.rng.nextFloat();\r\n/* 160:176 */ double d3 = localdt.getZ() + this.d.rng.nextFloat();\r\n/* 161: */ \r\n/* 162:178 */ double d4 = d1 - this.e;\r\n/* 163:179 */ double d5 = d2 - this.f;\r\n/* 164:180 */ double d6 = d3 - this.g;\r\n/* 165: */ \r\n/* 166:182 */ double d7 = MathUtils.sqrt(d4 * d4 + d5 * d5 + d6 * d6);\r\n/* 167: */ \r\n/* 168:184 */ d4 /= d7;\r\n/* 169:185 */ d5 /= d7;\r\n/* 170:186 */ d6 /= d7;\r\n/* 171: */ \r\n/* 172:188 */ double d8 = 0.5D / (d7 / this.i + 0.1D);\r\n/* 173:189 */ d8 *= (this.d.rng.nextFloat() * this.d.rng.nextFloat() + 0.3F);\r\n/* 174:190 */ d4 *= d8;\r\n/* 175:191 */ d5 *= d8;\r\n/* 176:192 */ d6 *= d8;\r\n/* 177: */ \r\n/* 178:194 */ this.d.a(EnumParticleEffect.EXPLOSION_NORMAL, (d1 + this.e * 1.0D) / 2.0D, (d2 + this.f * 1.0D) / 2.0D, (d3 + this.g * 1.0D) / 2.0D, d4, d5, d6, new int[0]);\r\n/* 179:195 */ this.d.a(EnumParticleEffect.l, d1, d2, d3, d4, d5, d6, new int[0]);\r\n/* 180: */ }\r\n/* 181:198 */ if (localatr.getMaterial() != Material.air)\r\n/* 182: */ {\r\n/* 183:199 */ if (localatr.a(this)) {\r\n/* 184:200 */ localatr.a(this.d, localdt, this.d.getBlock(localdt), 1.0F / this.i, 0);\r\n/* 185: */ }\r\n/* 186:202 */ this.d.setBlock(localdt, BlockList.air.instance(), 3);\r\n/* 187:203 */ localatr.a(this.d, localdt, this);\r\n/* 188: */ }\r\n/* 189: */ }\r\n/* 190: */ }\r\n/* 191: */ BlockPosition localdt;\r\n/* 192:207 */ if (this.a) {\r\n/* 193:208 */ for (localIterator = this.j.iterator(); localIterator.hasNext();)\r\n/* 194: */ {\r\n/* 195:208 */ localdt = localIterator.next();\r\n/* 196:209 */ if ((this.d.getBlock(localdt).getType().getMaterial() == Material.air) && (this.d.getBlock(localdt.down()).getType().m()) && (this.c.nextInt(3) == 0)) {\r\n/* 197:210 */ this.d.setBlock(localdt, BlockList.fire.instance());\r\n/* 198: */ }\r\n/* 199: */ }\r\n/* 200: */ }\r\n/* 201: */ }", "public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n 62, 186,\n 32, 122,\n 57, 67,\n 98, 48,\n 160, 53,\n 207, 123,\n 193, 195,\n 62, 186\n }, width, height);\n\n info.physicsComponents(density, friction, restitution);\n\n info.collisionComponents(PLAYER_BODY, (short) (PLANET_BODY | PLAYER_BODY | COMET_BODY));\n\n createFixture(body, info);\n\n //corns\n info.vertexes = new float[]{\n 114, 49,\n 118, 33,\n 109, 19,\n 142, 13,\n 142, 26,\n 129, 33,\n 114, 49};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 191, 83,\n 207, 66,\n 215, 52,\n 219, 26,\n 241, 34,\n 232, 52,\n 219, 76,\n 191, 83};\n\n createFixture(body, info);\n\n //arms\n info.vertexes = new float[]{\n 61, 196,\n 23, 198,\n 3, 217,\n 21, 268,\n 61, 196};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 150, 229,\n 175, 285,\n 166, 316,\n 156, 330,\n 150, 229};\n\n createFixture(body, info);\n\n\n //legs\n info.vertexes = new float[]{\n 31, 332,\n 37, 370,\n 36, 401,\n 31, 416,\n 90, 418,\n 85, 403,\n 81, 374,\n 31, 332};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 107, 359,\n 102, 395,\n 106, 418,\n 161, 417,\n 144, 397,\n 107, 359,\n 152, 327};\n\n createFixture(body, info);\n\n\n //Belly\n info.vertexes = new float[]{\n 75, 219,\n 17, 283,\n 41, 346,\n 90, 364,\n 143, 330,\n 151, 280,\n 138, 227,\n 75, 219};\n\n createFixture(body, info);\n\n this.body.setGravityScale(0);\n this.body.setAngularDamping(0.7f);\n\n this.lost = false;\n }", "public static void main(String argv[]) {\n\n\tRandomIntGenerator rand = new RandomIntGenerator(5,10);\n\tRandomIntGenerator rand2 = new RandomIntGenerator(10,15);\n\tRandomIntGenerator rand3 = new RandomIntGenerator(1,2);\n\n\tint vertices = rand.nextInt();\n\tSystem.out.println(\"vertices=\"+vertices);\n\t\n\tRandomIntGenerator rand4 = new RandomIntGenerator(0,vertices-1);\n\n\tTrAnchor[] vertex = new TrAnchor[vertices];\n\tfor (int i=0;i<vertices;i++) {\n\t int t=rand3.nextInt();\n\t if (t==1) {\n\t\tvertex[i] = new Statename(\"S\"+i);\n\t } else if (t==2) {\n\t\tvertex[i] = new Conname(\"C\"+i);\n\t } else {\n\t\tvertex[i] = new UNDEFINED();\n\t }\n\t}\n\n\tint edges = rand2.nextInt();\n\tSystem.out.println(\"edges=\"+edges);\n\t\n\tTr[] transition = new Tr[edges];\n\tfor (int i=0;i<edges;i++) {\n\t int si = rand4.nextInt();\n\t int ti = rand4.nextInt();\n\t \n\t TrAnchor source = vertex[si];\n\t TrAnchor target = vertex[ti];\n\t transition[i] = new Tr(source,target,null);\n\t}\n\t \n\tSystem.out.println();\n\tSystem.out.println(\"Ausgabe:\");\n\n\tfor (int i=0;i<edges;i++) \n\t new PrettyPrint().start(transition[i]);\n\t\n\ttesc2.ProperMap properMap = new tesc2.ProperMap(vertex,transition);\n\n\tfor (int i=0;i<properMap.getHeight();i++) {\n\t System.out.print(properMap.getWidthOfRow(i));\n\t \n\t for (int j=0;j<properMap.getWidthOfRow(i);j++) {\n\t\tSystem.out.print(properMap.getElement(i,j)+\" \");\n\t }\n\t System.out.println();\n\t}\n\n\ttesc2.MapTransition[] mt = properMap.getMapTransitions();\n\tfor (int i=0;i<mt.length;i++)\n\t System.out.println(mt[i]);\n\n }", "private void initializeStatisticVariables(){\r\n\t\taverageFront9Score = 0;\r\n\t\taverageFront9PlusMinus = 0;\r\n\t\taverageBack9Score = 0;\r\n\t\taverageBack9PlusMinus = 0;\r\n fairways = 0;\r\n girs = 0;\r\n putts = 0;\r\n chips = 0;\r\n penalties = 0;\r\n\t\tnumberOfHoles = 0;\r\n\t\tnumberOfPar3Holes = 0;\r\n\t\tnumberOfPar4Holes = 0;\r\n\t\tnumberOfPar5Holes = 0;\r\n\t\talbatrossCount = 0;\r\n\t\teagleCount = 0;\r\n\t\tbirdieCount = 0;\r\n\t\tparCount = 0;\r\n\t\tbogeyCount = 0;\r\n\t\tdoubleBogeyCount = 0;\r\n\t\ttripleBogeyCount = 0;\r\n\t\tquadBogeyPlusCount = 0;\r\n par3Fairways = 0;\r\n par3Girs = 0;\r\n par3Putts = 0;\r\n par3Chips = 0;\r\n par3Penalties = 0;\r\n\t\tpar3EagleCount = 0;\r\n\t\tpar3BirdieCount = 0;\r\n\t\tpar3ParCount = 0;\r\n\t\tpar3BogeyCount = 0;\r\n\t\tpar3DoubleBogeyCount = 0;\r\n\t\tpar3TripleBogeyCount = 0;\r\n\t\tpar3QuadBogeyPlusCount = 0;\r\n par4Fairways = 0;\r\n par4Girs = 0;\r\n par4Putts = 0;\r\n par4Chips = 0;\r\n par4Penalties = 0;\r\n\t\tpar4AlbatrossCount = 0;\r\n\t\tpar4EagleCount = 0;\r\n\t\tpar4BirdieCount = 0;\r\n\t\tpar4ParCount = 0;\r\n\t\tpar4BogeyCount = 0;\r\n\t\tpar4DoubleBogeyCount = 0;\r\n\t\tpar4TripleBogeyCount = 0;\r\n\t\tpar4QuadBogeyPlusCount = 0;\r\n par5Fairways = 0;\r\n par5Girs = 0;\r\n par5Putts = 0;\r\n par5Chips = 0;\r\n par5Penalties = 0;\r\n\t\tpar5AlbatrossCount = 0;\r\n\t\tpar5EagleCount = 0;\r\n\t\tpar5BirdieCount = 0;\r\n\t\tpar5ParCount = 0;\r\n\t\tpar5BogeyCount = 0;\r\n\t\tpar5DoubleBogeyCount = 0;\r\n\t\tpar5TripleBogeyCount = 0;\r\n\t\tpar5QuadBogeyPlusCount = 0;\r\n clubs.clear();\r\n\t}", "@Override\n public void update(int bit)\n {\n this.mixer.update(bit);\n this.bpos = (this.bpos + 1) & 7;\n this.c0 = (this.c0 << 1) | bit;\n\n if (this.c0 > 255)\n { \n this.buffer[this.pos&MASK2] = (byte) this.c0;\n this.pos++;\n this.c4 = (this.c4 << 8) | (this.c0 & 0xFF);\n this.hash = (((this.hash*43707) << 4) + this.c4) & MASK1;\n final int shiftIsBinary = ((this.c4 >>> 31) | ((this.c4 & 0x00800000) >>> 23) | \n ((this.c4 & 0x00008000) >>> 15) | ((this.c4 & 0x80) >>> 7)) << 4;\n this.c0 = 1;\n\n // Select Neural Net\n this.mixer.setContext(this.c4 & 0x07FF);\n \n // Add contexts to NN\n this.addContext(this.c4 ^ (this.c4 & 0xFFFF));\n this.addContext(hash(C1, this.c4 << 24)); // hash with random primes\n this.addContext(hash(C2, this.c4 << 16)); \n this.addContext(hash(C3, this.c4 << 8));\n this.addContext(hash(C4, this.c4 & 0xF0F0F0F0));\n this.addContext(hash(C5, this.c4));\n this.addContext(hash(this.c4>>shiftIsBinary, \n (this.buffer[(this.pos-6)&MASK2]<<8)| (this.buffer[(this.pos-5)&MASK2]))); \n \n // Find match\n this.findMatch(); \n\n // Keep track of new match position\n this.hashes[this.hash] = this.pos;\n }\n\n // Add inputs to NN\n for (int i=this.ctxId-1; i>=0; i--)\n {\n if (this.cp[i] != 0)\n this.states[this.cp[i]] = STATE_TABLE[(this.states[this.cp[i]]<<1)|bit]; \n \n this.cp[i] = (this.ctx[i] + this.c0) & MASK3; \n this.mixer.addInput(SM[(i<<8)|this.states[this.cp[i]]]); \n }\n\n if (this.bpos == 7)\n this.ctxId = 0;\n \n if (this.matchLen > 0) \n this.addMatchContext();\n\n // Get prediction from NN\n int p = this.mixer.get();\n \n // Adjust with APM\n p = this.apm.get(bit, p, this.c0);\n this.pr = p + ((p - 2048) >>> 31); \n }", "LabState state();", "private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }", "public void init(int wdt, int hgt, Player player, List<Guard> guards, List<Item> treasures, Cell[][] cells, int wdtPortail, int hgtPortail);", "private void setup() {\n\t\tpopulateEntitiesLists();\n\t\t// rayHandler.setCombinedMatrix(batch.getProjectionMatrix());\n\t\tambientColor = Color.CLEAR;\n\t\tsetAmbientAlpha(.3f);\n\t\tfpsLogger = new FPSLogger();\n\t\tdynamicEntities = new ArrayList<DynamicEntity>();\n\t\tfont.getData().setScale(DEBUG_FONT_SCALE);\n\t}", "public interface Level {\r\n\tchar [][] tempLevel = {\r\n\t\t\t{'l','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m'},\r\n\t\t\t{'l','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m'},\r\n\t\t\t{'l','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m'},\r\n\t\t\t{'l','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m'},\r\n\t\t\t{'l','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m','m'}\r\n\t\t\t};\r\n\t\r\n\t//the method will print the state of the parking lot\r\n\tvoid printParking();\r\n\r\n}", "public int getStateOfMovement(){ return stateOfMovement; }", "void init_embedding() {\n\n\t\tg_heir = new int[50]; // handles up to 8^50 points\n\t\tg_levels = 0; // stores the point-counts at the associated levels\n\n\t\t// reset the embedding\n\n\t\tint N = m_gm.getNodeCount();\n\t\tif (areUsingSubset) {\n\t\t\tN = included_points.size();\n\t\t}\n\t\t\n\t\tm_embed = new float[N*g_embedding_dims];\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < g_embedding_dims; j++) {\n\t\t\t\tm_embed[i * (g_embedding_dims) + j] = ((float) (myRandom\n\t\t\t\t\t\t.nextInt(10000)) / 10000.f) - 0.5f;\n\t\t\t}\n\t\t}\n\n\t\t// calculate the heirarchy\n\t\tg_levels = fill_level_count(N, g_heir, 0);\n\t\tg_levels = 1;\n\t\t\n\t\t// generate vector data\n\n\t\tg_current_level = g_levels - 1;\n\t\tg_vel = new float[g_embedding_dims * N];\n\t\tg_force = new float[g_embedding_dims * N];\n\n\t\t// compute the index sets\n\n\t\tg_idx = new IndexType[N * (V_SET_SIZE + S_SET_SIZE)];\n\t\tfor (int i = 0; i < g_idx.length; i++) {\n\n\t\t\tg_idx[i] = new IndexType();\n\t\t}\n\n\t\tg_done = false; // controls the movement of points\n\t\tg_interpolating = false; // specifies if we are interpolating yet\n\n\t\tg_cur_iteration = 0; // total number of iterations\n\t\tg_stop_iteration = 0; // total number of iterations since changing\n\t\t\t\t\t\t\t\t// levels\n\t}", "public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.println(\"Seed value: \" + seed);\n\t\t}\n\t\trgen = new Random(seed);\n\t\n\t\t// Create empty scene\n\t\tobstacles = new Vector<Obstacle>();\n\t\tcritters = new Vector<Critter>();\n\t\n\t\t// ---------------\n\n // Create a couple of trees, one big and one smaller\n obstacles.addElement(new Tree(rgen, 5, 6, 4.5f, 0.4f, 0.0f, 0.0f));\n obstacles.addElement(new Tree(rgen, 4, 6, 2.5f, 0.15f, 8.0f, -5.0f));\n\n // Create a few rocks\n obstacles.addElement(new Rock(rgen, 4, 2, 2, 1));\n obstacles.addElement(new Rock(rgen, 3, 4, 8, 1));\n obstacles.addElement(new Rock(rgen, 3, 7, 2, 2));\n obstacles.addElement(new Rock(rgen, 2, -2.6, -9, 2));\n obstacles.addElement(new Rock(rgen, 4, -2, -3, 1));\n obstacles.addElement(new Rock(rgen, 3, -2, -1.11, 1));\n \n // Create the main bug\n mainBug = new Bug(rgen, 0.4f, -1, 1, 0.1f, 0.0f);\n critters.addElement(mainBug);\n \n // baby critters\n critters.addElement(new Bug(rgen, 0.1f, -5, 6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.15f, -7, -6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.2f, -8, 1, 0.1, 0.0f));\n \n //predator\n predator = new Predator(rgen, 0.3f, -9, 9, 0, 0);\n critters.addElement(predator);\n \n \n goal = new Point3d(rgen.nextDouble()*5, rgen.nextDouble()*5, 0);\n target = 0;\n\n\t\t// Reset computation clock\n\t\tcomputeClock = 0;\n }", "private void setup()\n {\n // TO STUDENTS: Add, revise, or remove methods as needed to define your own game's world\n //addLeftGround();\n //addFences();\n //addMetalPlateSteps();\n addClouds();\n addEnemy();\n addCoin();\n //addRightGround();\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n addHero();\n }", "public int getNumDiffuse() \n\t {return this.coinstate.numdiffuse;}", "@Override\n public void update(float tpf) {\n \n tempVec = this.player.getLocalTranslation();\n leftBound = tempVec.getX() - P.minLeftDistance;\n rightBound = tempVec.getX() + P.minRightDistance;\n lowerBound = tempVec.getY() - P.minDownDistance;\n \n \n for (Spatial spatial : getAllLevelObjects()) {\n if (isOutsideLevelBounds(spatial.getLocalTranslation())) {\n removeFromLevel(spatial);\n /* the background node (wall and window) acts as a checkpoint –\n * when it is removed, we know that we need more level\n */\n if (spatial.getName().equals(\"background\")) {\n generateNextChunk();\n //showLevelProgress();\n }\n }\n }\n int numLights = 0;\n for (Light light : this.gameNode.getLocalLightList()) {\n numLights++;\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n for (Light light : this.gameNode.getLocalLightList()) {\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition()) && !P.playerSpot.equals(light.getName())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n if(numLights >= 2) {\n InGameState.totalLightSources += numLights-1;\n }\n InGameState.lightSamples++;\n //System.out.println(\"-------------------LIGHTS: \" + numLights);\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16014, \"power=0\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16015, \"power=1\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16016, \"power=2\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16017, \"power=3\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16018, \"power=4\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16019, \"power=5\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16020, \"power=6\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16021, \"power=7\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16022, \"power=8\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16023, \"power=9\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16024, \"power=10\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16025, \"power=11\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16026, \"power=12\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16027, \"power=13\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16028, \"power=14\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16029, \"power=15\"));\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private void init() \n\t{\n\t\tgoalReached = false;\n\t\tGdx.input.setInputProcessor(this);\n\t\tcameraHelper = new CameraHelper();\n\t\tlives = Constants.LIVES_START;\n\t\tlivesVisual = lives;\n\t\ttimeLeftGameOverDelay = 0;\n\t\tinitLevel();\n\n\t}", "void state_START(){\r\n eccState = INDEX_START;\r\n}", "private void prepare()\n {\n //getWorld().removeObject(wrong_ant);\n<<<<<<< HEAD\n \n \n Label q1 = new Label (\"What is 20 x 0?\", 50);\n \n Label question1answera = new Label (\"0\", 35);\n Label question1answerb = new Label (\"20\", 35);\n Label question1answerc = new Label (\"1\", 35);\n Label question1answerd = new Label (\"2\", 35);\n \n q1.setFillColor(Color.BLACK);\n q1.setLineColor(Color.WHITE);\n addObject(q1, 300, 100);\n \n\n \n Ant ant = new Ant();\n addObject(ant,350,325);\n question1answera.setFillColor(Color.WHITE);\n question1answera.setLineColor(Color.BLACK);\n addObject(question1answera, 350,325);\n \n Wrong_ant wrong_ant = new Wrong_ant();\n addObject(wrong_ant,500,625);\n question1answerb.setFillColor(Color.WHITE);\n question1answerb.setLineColor(Color.BLACK);\n addObject(question1answerb, 500,625);\n \n Wrong_ant wrong_ant1 = new Wrong_ant();\n addObject(wrong_ant1,650,625);\n question1answerc.setFillColor(Color.WHITE);\n question1answerc.setLineColor(Color.BLACK);\n addObject(question1answerc, 650,625);\n \n Wrong_ant wrong_ant2 = new Wrong_ant();\n addObject(wrong_ant2,700,425);\n question1answerd.setFillColor(Color.WHITE);\n question1answerd.setLineColor(Color.BLACK);\n addObject(question1answerd, 700,425);\n \n Ground ground100 = new Ground();\n addObject(ground100, 700, 445);\n \n \n \n=======\n Wrong_ant wrong_ant = new Wrong_ant();\n addObject(wrong_ant,500,625);\n Ant ant = new Ant();\n addObject(ant,350,325);\n Wrong_ant wrong_ant1 = new Wrong_ant();\n addObject(wrong_ant1,650,625);\n Wrong_ant wrong_ant2 = new Wrong_ant();\n addObject(wrong_ant2,700,425);\n Ground ground100 = new Ground();\n addObject(ground100, 700, 445);\n>>>>>>> d7cbdd938f8ba43d2dbfc3e0fb0f8f0d05399bf0\n //wrong_ant.setLocation(712,374);\n //Wrong_ant wrong_ant2 = new Wrong_ant();\n //addObject(wrong_ant2,568,380);\n //wrong_ant2.setLocation(559,373);\n //Wrong_ant wrong_ant3 = new Wrong_ant();\n //addObject(wrong_ant3,600,600);\n //wrong_ant3.setLocation(680,215);\n //Ant ant = new Ant();\n //addObject(ant,500,625);\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n Wall wall2 = new Wall();\n addObject(wall2, 93, 373);\n Wall wall3 = new Wall();\n addObject(wall3, 153, 361);\n Wall wall4 = new Wall();\n addObject(wall4, 249, 347);\n Wall wall5 = new Wall();\n addObject(wall5, 306, 344);\n Wall wall6 = new Wall();\n addObject(wall6, 397, 335);\n Wall wall7 = new Wall();\n addObject(wall7, 501, 333);\n Wall wall8 = new Wall();\n addObject(wall8, 562, 338);\n Wall wall9 = new Wall();\n addObject(wall9, 428, 273);\n Wall wall10 = new Wall();\n addObject(wall10, 334, 273);\n Wall wall11 = new Wall();\n addObject(wall11, 207, 267);\n wall.setLocation(25, 376);\n wall2.setLocation(75, 376);\n wall3.setLocation(125, 376);\n wall4.setLocation(175, 376);\n wall11.setLocation(225, 376);\n wall5.setLocation(275, 376);\n wall10.setLocation(325, 376);\n P2 p2 = new P2();\n addObject(p2, 133, 321);\n wall6.setLocation(375, 376);\n wall9.setLocation(425, 376);\n wall7.setLocation(475, 376);\n wall8.setLocation(525, 376);\n Wall wall12 = new Wall();\n addObject(wall12, 584, 384);\n wall12.setLocation(575, 376);\n Wall wall13 = new Wall();\n addObject(wall13, 283, 331);\n wall13.setLocation(275, 326);\n Wall wall14 = new Wall();\n addObject(wall14, 346, 314);\n Wall wall15 = new Wall();\n addObject(wall15, 423, 310);\n Wall wall16 = new Wall();\n addObject(wall16, 346, 233);\n wall14.setLocation(325, 326);\n wall15.setLocation(375, 326);\n wall16.setLocation(425, 326);\n wall16.setLocation(325, 276);\n Wall wall17 = new Wall();\n addObject(wall17, 433, 283);\n wall17.setLocation(425, 276);\n Wall wall18 = new Wall();\n addObject(wall18, 433, 215);\n wall18.setLocation(425, 226);\n removeObject(wall17);\n Ground ground = new Ground();\n addObject(ground, 242, 315);\n ground.setLocation(235, 308);\n Ground ground2 = new Ground();\n addObject(ground2, 161, 314);\n Ground ground3 = new Ground();\n addObject(ground3, 100, 313);\n Ground ground4 = new Ground();\n addObject(ground4, 105, 275);\n ground2.setLocation(205, 319);\n ground3.setLocation(175, 331);\n ground4.setLocation(145, 343);\n p2.setLocation(80, 319);\n Wall wall19 = new Wall();\n addObject(wall19, 33, 332);\n wall19.setLocation(25, 326);\n Wall wall20 = new Wall();\n addObject(wall20, 31, 283);\n Wall wall21 = new Wall();\n addObject(wall21, 29, 220);\n Wall wall22 = new Wall();\n addObject(wall22, 39, 156);\n Wall wall23 = new Wall();\n addObject(wall23, 34, 100);\n Wall wall24 = new Wall();\n addObject(wall24, 43, 46);\n Wall wall25 = new Wall();\n addObject(wall25, 127, 122);\n wall20.setLocation(25, 276);\n wall21.setLocation(25, 226);\n wall22.setLocation(25, 176);\n wall23.setLocation(25, 126);\n wall24.setLocation(25, 76);\n wall25.setLocation(25, 25);\n wall24.setLocation(25, 75);\n wall23.setLocation(25, 125);\n wall22.setLocation(25, 175);\n wall21.setLocation(25, 225);\n wall20.setLocation(25, 275);\n wall19.setLocation(25, 326);\n wall.setLocation(25, 375);\n wall19.setLocation(25, 325);\n wall2.setLocation(75, 375);\n wall3.setLocation(125, 375);\n wall4.setLocation(175, 375);\n wall11.setLocation(225, 375);\n wall5.setLocation(275, 375);\n wall10.setLocation(325, 375);\n wall6.setLocation(375, 375);\n wall9.setLocation(425, 375);\n wall7.setLocation(475, 375);\n wall8.setLocation(525, 375);\n wall12.setLocation(575, 375);\n ground4.setLocation(145, 342);\n ground3.setLocation(175, 330);\n ground2.setLocation(205, 318);\n ground.setLocation(235, 307);\n wall13.setLocation(275, 325);\n wall14.setLocation(325, 325);\n wall15.setLocation(375, 325);\n wall16.setLocation(325, 275);\n wall18.setLocation(425, 225);\n Wall wall26 = new Wall();\n addObject(wall26, 569, 314);\n wall26.setLocation(575, 325);\n Wall wall27 = new Wall();\n addObject(wall27, 577, 273);\n Wall wall28 = new Wall();\n addObject(wall28, 572, 216);\n Wall wall29 = new Wall();\n addObject(wall29, 571, 158);\n Wall wall30 = new Wall();\n addObject(wall30, 560, 110);\n Wall wall31 = new Wall();\n addObject(wall31, 560, 66);\n Wall wall32 = new Wall();\n addObject(wall32, 555, 17);\n wall27.setLocation(575, 275);\n wall28.setLocation(575, 225);\n wall29.setLocation(575, 176);\n wall30.setLocation(575, 126);\n wall31.setLocation(575, 76);\n wall32.setLocation(575, 25);\n wall31.setLocation(575, 75);\n wall30.setLocation(575, 125);\n wall29.setLocation(576, 174);\n wall29.setLocation(575, 174);\n wall28.setLocation(575, 224);\n wall27.setLocation(575, 274);\n wall26.setLocation(575, 325);\n wall27.setLocation(575, 275);\n wall28.setLocation(575, 225);\n wall29.setLocation(575, 175);\n Wall wall33 = new Wall();\n addObject(wall33, 237, 63);\n wall33.setLocation(99, 29);\n wall33.setLocation(74, 25);\n wall33.setLocation(75, 25);\n Wall wall34 = new Wall();\n addObject(wall34, 166, 39);\n wall34.setLocation(125, 25);\n Wall wall35 = new Wall();\n addObject(wall35, 197, 37);\n wall35.setLocation(175, 24);\n wall35.setLocation(175, 25);\n Wall wall36 = new Wall();\n addObject(wall36, 227, 37);\n wall36.setLocation(225, 25);\n Wall wall37 = new Wall();\n addObject(wall37, 290, 63);\n wall37.setLocation(275, 25);\n Wall wall38 = new Wall();\n addObject(wall38, 340, 67);\n wall38.setLocation(325, 25);\n Wall wall39 = new Wall();\n addObject(wall39, 369, 79);\n wall39.setLocation(375, 25);\n Wall wall40 = new Wall();\n addObject(wall40, 458, 89);\n wall40.setLocation(425, 25);\n Wall wall41 = new Wall();\n addObject(wall41, 497, 87);\n wall41.setLocation(475, 25);\n Wall wall42 = new Wall();\n addObject(wall42, 497, 87);\n wall42.setLocation(525, 25);\n Wall wall43 = new Wall();\n addObject(wall43, 432, 182);\n wall43.setLocation(425, 175);\n Wall wall44 = new Wall();\n addObject(wall44, 426, 120);\n wall44.setLocation(425, 125);\n wall43.setLocation(475, 274);\n wall44.setLocation(525, 274);\n wall44.setLocation(525, 275);\n wall43.setLocation(475, 275);\n wall43.setLocation(475, 275);\n Wall wall45 = new Wall();\n addObject(wall45, 476, 212);\n wall45.setLocation(475, 225);\n removeObject(wall45);\n Wall wall46 = new Wall();\n addObject(wall46, 331, 230);\n wall46.setLocation(325, 225);\n Wall wall47 = new Wall();\n addObject(wall47, 334, 167);\n wall47.setLocation(325, 175);\n removeObject(wall46);\n Ground ground5 = new Ground();\n addObject(ground5, 342, 164);\n ground5.setLocation(335, 157);\n Ground ground6 = new Ground();\n addObject(ground6, 308, 159);\n wall47.setLocation(323, 173);\n wall47.setLocation(325, 175);\n Ground ground7 = new Ground();\n addObject(ground7, 316, 202);\n ground7.setLocation(330, 212);\n removeObject(ground7);\n ground6.setLocation(315, 157);\n Wall wall48 = new Wall();\n addObject(wall48, 325, 224);\n wall48.setLocation(325, 225);\n removeObject(wall48);\n removeObject(wall47);\n Wall wall49 = new Wall();\n addObject(wall49, 254, 182);\n wall49.setLocation(275, 175);\n Ground ground8 = new Ground();\n addObject(ground8, 289, 164);\n Ground ground9 = new Ground();\n addObject(ground9, 248, 167);\n ground8.setLocation(285, 157);\n ground9.setLocation(265, 157);\n ground9.setLocation(265, 157);\n removeObject(wall49);\n Ground ground10 = new Ground();\n addObject(ground10, 531, 236);\n ground10.setLocation(527, 226);\n ground10.setLocation(525, 226);\n ground10.setLocation(525, 225);\n Ground ground11 = new Ground();\n addObject(ground11, 515, 165);\n ground11.setLocation(525, 194);\n Ground ground12 = new Ground();\n addObject(ground12, 519, 159);\n ground12.setLocation(525, 159);\n ground11.setLocation(525, 193);\n ground12.setLocation(525, 158);\n ground12.setLocation(525, 157);\n ground11.setLocation(525, 192);\n Ground ground13 = new Ground();\n addObject(ground13, 497, 144);\n ground13.setLocation(491, 141);\n ground13.setLocation(495, 142);\n Ground ground14 = new Ground();\n addObject(ground14, 468, 124);\n ground14.setLocation(465, 127);\n Ground ground15 = new Ground();\n addObject(ground15, 432, 124);\n ground15.setLocation(435, 112);\n Ground ground16 = new Ground();\n addObject(ground16, 410, 114);\n ground16.setLocation(405, 98);\n Wall wall50 = new Wall();\n addObject(wall50, 365, 132);\n wall50.setLocation(369, 125);\n ground16.setLocation(405, 107);\n ground15.setLocation(435, 117);\n ground14.setLocation(465, 129);\n ground15.setLocation(435, 118);\n ground15.setLocation(435, 119);\n ground14.setLocation(465, 130);\n ground15.setLocation(435, 120);\n ground14.setLocation(465, 131);\n ground13.setLocation(495, 143);\n ground13.setLocation(495, 143);\n wall50.setLocation(375, 130);\n Ground ground17 = new Ground();\n addObject(ground17, 385, 113);\n ground17.setLocation(382, 107);\n ground17.setLocation(365, 107);\n Ground ground18 = new Ground();\n addObject(ground18, 387, 115);\n ground18.setLocation(386, 107);\n removeObject(ground17);\n Ground ground19 = new Ground();\n addObject(ground19, 368, 130);\n ground19.setLocation(365, 107);\n wall50.setLocation(351, 247);\n removeObject(wall50);\n Ground ground20 = new Ground();\n addObject(ground20, 297, 94);\n ground20.setLocation(323, 121);\n removeObject(ground20);\n Wall wall51 = new Wall();\n addObject(wall51, 232, 182);\n wall51.setLocation(222, 174);\n wall51.setLocation(225, 175);\n wall2.setLocation(25, 425);\n wall3.setLocation(25, 475);\n wall4.setLocation(25, 525);\n wall11.setLocation(25, 575);\n wall5.setLocation(25, 625);\n wall10.setLocation(25, 675);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(375, 375);\n wall6.setLocation(74, 675);\n wall9.setLocation(124, 675);\n wall6.setLocation(75, 675);\n wall9.setLocation(125, 675);\n wall7.setLocation(475, 375);\n wall7.setLocation(475, 375);\n wall7.setLocation(475, 375);\n wall7.setLocation(475, 375);\n wall7.setLocation(475, 375);\n wall7.setLocation(175, 675);\n wall8.setLocation(225, 675);\n wall12.setLocation(575, 375);\n wall12.setLocation(575, 375);\n wall12.setLocation(575, 375);\n wall12.setLocation(275, 675);\n wall26.setLocation(325, 675);\n wall43.setLocation(475, 275);\n wall27.setLocation(375, 675);\n wall28.setLocation(425, 675);\n wall29.setLocation(475, 675);\n wall30.setLocation(525, 675);\n wall31.setLocation(575, 675);\n Wall wall52 = new Wall();\n addObject(wall52, 634, 571);\n Wall wall53 = new Wall();\n addObject(wall53, 743, 590);\n Wall wall54 = new Wall();\n addObject(wall54, 709, 522);\n Wall wall55 = new Wall();\n addObject(wall55, 813, 540);\n Wall wall56 = new Wall();\n addObject(wall56, 862, 598);\n Wall wall57 = new Wall();\n addObject(wall57, 912, 528);\n Wall wall58 = new Wall();\n addObject(wall58, 974, 596);\n wall52.setLocation(625, 675);\n wall54.setLocation(709, 522);\n wall54.setLocation(675, 675);\n wall53.setLocation(725, 675);\n wall55.setLocation(775, 675);\n wall56.setLocation(825, 675);\n wall57.setLocation(875, 675);\n wall58.setLocation(925, 675);\n Wall wall59 = new Wall();\n addObject(wall59, 917, 608);\n wall59.setLocation(975, 675);\n Wall wall60 = new Wall();\n addObject(wall60, 953, 636);\n Wall wall61 = new Wall();\n addObject(wall61, 979, 580);\n Wall wall62 = new Wall();\n addObject(wall62, 925, 543);\n Wall wall63 = new Wall();\n addObject(wall63, 983, 504);\n Wall wall64 = new Wall();\n addObject(wall64, 925, 459);\n Wall wall65 = new Wall();\n addObject(wall65, 973, 406);\n Wall wall66 = new Wall();\n addObject(wall66, 919, 359);\n Wall wall67 = new Wall();\n addObject(wall67, 965, 308);\n Wall wall68 = new Wall();\n addObject(wall68, 916, 276);\n Wall wall69 = new Wall();\n addObject(wall69, 960, 223);\n Wall wall70 = new Wall();\n addObject(wall70, 916, 181);\n Wall wall71 = new Wall();\n addObject(wall71, 968, 153);\n Wall wall72 = new Wall();\n addObject(wall72, 915, 109);\n Wall wall73 = new Wall();\n addObject(wall73, 968, 63);\n wall73.setLocation(975, 25);\n wall73.setLocation(975, 25);\n wall72.setLocation(975, 75);\n wall71.setLocation(976, 125);\n wall70.setLocation(924, 181);\n wall71.setLocation(975, 125);\n wall70.setLocation(975, 175);\n wall69.setLocation(975, 225);\n wall68.setLocation(975, 275);\n wall67.setLocation(975, 325);\n wall66.setLocation(975, 375);\n wall65.setLocation(975, 425);\n wall64.setLocation(975, 475);\n wall63.setLocation(975, 525);\n wall63.setLocation(975, 525);\n wall61.setLocation(975, 575);\n wall60.setLocation(975, 625);\n wall62.setLocation(925, 25);\n Wall wall74 = new Wall();\n addObject(wall74, 879, 88);\n Wall wall75 = new Wall();\n addObject(wall75, 833, 35);\n Wall wall76 = new Wall();\n addObject(wall76, 789, 107);\n Wall wall77 = new Wall();\n addObject(wall77, 724, 28);\n Wall wall78 = new Wall();\n addObject(wall78, 690, 109);\n Wall wall79 = new Wall();\n addObject(wall79, 649, 39);\n wall79.setLocation(625, 25);\n wall78.setLocation(675, 25);\n wall77.setLocation(725, 24);\n wall77.setLocation(725, 25);\n wall76.setLocation(777, 22);\n wall76.setLocation(775, 25);\n wall75.setLocation(825, 25);\n wall74.setLocation(875, 25);\n wall13.setLocation(275, 625);\n wall14.setLocation(325, 625);\n wall15.setLocation(375, 625);\n wall16.setLocation(325, 575);\n ground.setLocation(235, 607);\n ground2.setLocation(205, 618);\n ground3.setLocation(175, 631);\n ground4.setLocation(145, 643);\n ground4.setLocation(145, 642);\n ground3.setLocation(175, 630);\n wall43.setLocation(433, 518);\n Wall wall80 = new Wall();\n addObject(wall80, 440, 612);\n wall80.setLocation(375, 575);\n wall43.setLocation(425, 525);\n wall80.setLocation(375, 475);\n wall18.setLocation(475, 525);\n wall18.setLocation(485, 525);\n wall43.setLocation(425, 525);\n wall80.setLocation(475, 575);\n wall18.setLocation(525, 575);\n wall44.setLocation(525, 525);\n wall51.setLocation(525, 475);\n wall44.setLocation(236, 337);\n ground10.setLocation(531, 417);\n wall44.setLocation(525, 425);\n ground10.setLocation(535, 407);\n ground10.setLocation(600, 482);\n wall51.setLocation(382, 377);\n wall44.setLocation(523, 469);\n wall51.setLocation(368, 434);\n wall44.setLocation(525, 525);\n ground10.setLocation(529, 428);\n wall44.setLocation(575, 575);\n wall51.setLocation(477, 476);\n wall44.setLocation(526, 437);\n wall51.setLocation(575, 575);\n wall44.setLocation(627, 425);\n Wall wall81 = new Wall();\n addObject(wall81, 681, 558);\n wall81.setLocation(625, 575);\n wall44.setLocation(625, 525);\n ground10.setLocation(626, 507);\n ground10.setLocation(625, 507);\n wall44.setLocation(625, 475);\n ground11.setLocation(625, 457);\n wall44.setLocation(624, 425);\n wall44.setLocation(625, 425);\n ground12.setLocation(625, 407);\n wall44.setLocation(404, 355);\n ground13.setLocation(595, 392);\n ground14.setLocation(565, 378);\n wall44.setLocation(555, 375);\n ground15.setLocation(536, 363);\n ground15.setLocation(533, 364);\n ground15.setLocation(535, 363);\n ground16.setLocation(505, 348);\n Wall wall82 = new Wall();\n addObject(wall82, 440, 341);\n wall82.setLocation(555, 325);\n Wall wall83 = new Wall();\n addObject(wall83, 469, 322);\n wall83.setLocation(505, 325);\n wall82.setLocation(455, 375);\n Wall wall84 = new Wall();\n addObject(wall84, 398, 381);\n wall84.setLocation(586, 220);\n wall83.setLocation(405, 375);\n ground18.setLocation(475, 333);\n wall44.setLocation(555, 375);\n wall44.setLocation(538, 455);\n ground18.setLocation(805, 539);\n ground18.setLocation(475, 348);\n wall44.setLocation(505, 375);\n wall82.setLocation(455, 375);\n ground16.setLocation(505, 357);\n ground15.setLocation(535, 369);\n ground14.setLocation(565, 380);\n ground14.setLocation(565, 381);\n ground15.setLocation(535, 370);\n ground18.setLocation(475, 357);\n wall82.setLocation(396, 421);\n ground18.setLocation(495, 357);\n wall44.setLocation(455, 375);\n wall82.setLocation(355, 375);\n ground5.setLocation(757, 587);\n ground5.setLocation(764, 642);\n ground19.setLocation(783, 642);\n wall82.setLocation(775, 621);\n ground19.setLocation(785, 642);\n ground5.setLocation(765, 642);\n wall82.setLocation(775, 610);\n ground19.setLocation(735, 638);\n ground5.setLocation(785, 642);\n ground19.setLocation(765, 642);\n wall82.setLocation(690, 585);\n ground6.setLocation(775, 627);\n ground9.setLocation(815, 642);\n ground8.setLocation(805, 627);\n p2.setLocation(100, 621);\n wall84.setLocation(925, 625);\n wall84.setLocation(441, 456);\n wall84.setLocation(355, 375);\n wall82.setLocation(675, 575);\n Wall wall85 = new Wall();\n addObject(wall85, 43, 46);\n wall85.setLocation(856, 618);\n wall85.turn(20);\n }", "public void setupTriangles(VrState state);", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6756, \"rotation=0\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6757, \"rotation=1\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6758, \"rotation=2\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6759, \"rotation=3\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6760, \"rotation=4\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6761, \"rotation=5\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6762, \"rotation=6\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6763, \"rotation=7\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6764, \"rotation=8\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6765, \"rotation=9\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6766, \"rotation=10\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6767, \"rotation=11\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6768, \"rotation=12\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6769, \"rotation=13\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6770, \"rotation=14\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6771, \"rotation=15\"));\n }", "static void bodyToSpace(double[] state, double[] vec) {\r\n // use q components for clarity\r\n double q0 = state[0], q1 = state[2], q2 = state[4], q3 = state[6];\r\n double v0 = (0.5-q2*q2-q3*q3)*vec[0]+(q1*q2-q0*q3)*vec[1]+(q1*q3+q0*q2)*vec[2];\r\n double v1 = (q1*q2+q0*q3)*vec[0]+(0.5-q1*q1-q3*q3)*vec[1]+(q2*q3-q0*q1)*vec[2];\r\n double v2 = (q1*q3-q0*q2)*vec[0]+(q2*q3+q0*q1)*vec[1]+(0.5-q1*q1-q2*q2)*vec[2];\r\n vec[0] = 2*v0;\r\n vec[1] = 2*v1;\r\n vec[2] = 2*v2;\r\n }", "public ME_Model() {\n _nheldout = 0;\n _early_stopping_n = 0;\n _ref_modelp = null;\n }", "private void initializeVariables() {\n rnd = new Random();\n\n pieceKind = rnd.nextInt() % 7;\n if(pieceKind < 0) pieceKind *= -1;\n pieceKind2 = rnd.nextInt() % 7;\n if(pieceKind2 < 0) pieceKind2 *= -1;\n\n piece = new Piece(pieceKind,this);\n newPiece();\n startedGame = true;\n\n for(i=0; i<276; i++) {\n modulo = i%12;\n if(modulo == 0 || modulo == 11 || i>251) {\n matrix[i] = 0; colMatrix[i] = true;\n } else {\n matrix[i] = -1; colMatrix[i] = false;\n }\n }\n\n for(i=0; i<5; i++) completeLines[i] = -1;\n for(i=0; i<4; i++) keybl.setMovTable(i, false);\n }", "private void default_init(){\n id = 0;\n xPos = 0;\n yPos = 0;\n hp = 100;\n name=\"\";\n character_id = 1;\n weapons = new ArrayList<>();\n weaponEntryTracker = new LinkedList<>();\n isJumping = false;\n isFalling = false;\n initial_y= -1;\n stateOfMovement = 0;\n for(int i = 0; i < 3; i++){\n this.weapons.add(new Pair<>(NO_WEAPON_ID, (short) 0));\n }\n this.weapons.set(0,new Pair<>(PISTOL_ID,DEFAULT_PISTOL_AMMO));\n currentWeapon = this.weapons.get(0);\n bulletsFired = new ArrayList<>();\n shootingDirection = 1;\n energy = 0;\n sprint = false;\n score = 0;\n roundsWon = 0;\n ready = false;\n audioHandler = new AudioHandler();\n }", "public void updateState() {\n\n // After each frame, the unit has a slight morale recovery, but only up to the full base morale.\n morale = Math.min(morale + GameplayConstants.MORALE_RECOVERY, GameplayConstants.BASE_MORALE);\n\n if (morale < GameplayConstants.PANIC_MORALE) {\n state = UnitState.ROUTING;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.ROUTING);\n }\n } else if (state == UnitState.ROUTING && morale > GameplayConstants.RECOVER_MORALE) {\n this.repositionTo(averageX, averageY, goalAngle);\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.MOVING);\n }\n }\n\n // Update the state of each single and the average position\n double sumX = 0;\n double sumY = 0;\n double sumZ = 0;\n int count = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateState();\n sumX += single.getX();\n sumY += single.getY();\n sumZ += single.getZ();\n count += 1;\n }\n averageX = sumX / count;\n averageY = sumY / count;\n averageZ = sumZ / count;\n\n // Updating soundSink\n soundSink.setX(averageX);\n soundSink.setY(averageY);\n soundSink.setZ(averageZ);\n\n // Update the bounding box.\n updateBoundingBox();\n\n // Update stamina\n updateStamina();\n }", "public MarkovDecisionProcess(int totalWorkloadLevel, int totalGreenEnergyLevel, int totalBatteryLevel, double prob[][][][], int maxTimeInterval) {\r\n\t\tthis.totalWorkloadLevel = totalWorkloadLevel;\r\n\t\tthis.totalGreenEnergyLevel = totalGreenEnergyLevel;\r\n\t\tthis.totalBatteryLevel = totalBatteryLevel;\r\n\t\tthis.prob = prob;\r\n\t\tthis.maxTimeInterval = maxTimeInterval;\r\n\t\t\r\n\t\t//Initial State, we set it at [0,0,0]\r\n\t\tinitialState = new State(0, 0, 0, 1, -999, -1);\r\n\t\tinitialState.setPath(initialState.toString());\r\n\t\t\r\n\t\tgrid = new State[maxTimeInterval][totalWorkloadLevel][totalGreenEnergyLevel][totalBatteryLevel]; \r\n\t\t\r\n\t\t//initialize the reward matix as all 0\r\n\t\trewardMatrix = new double[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tbatteryLevelMatrix = new int[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tactionMatrix = new String[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tfor(int i = 0; i < maxTimeInterval; i++) {\r\n\t\t\tfor(int j = 0; j < totalWorkloadLevel*totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalWorkloadLevel*totalGreenEnergyLevel; k++) {\r\n\t\t\t\t\trewardMatrix[i][j][k] = 0.0;\r\n\t\t\t\t\tbatteryLevelMatrix[i][j][k] = 0;\r\n\t\t\t\t\tactionMatrix[i][j][k] = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t//Initialize actions space, \r\n\t\tnumActions = totalWorkloadLevel * totalBatteryLevel;\r\n\t\t\r\n\t\tfor(int t =0; t < maxTimeInterval; t++) {\r\n\t\tfor(int i = 0; i < totalWorkloadLevel; i++) {\r\n\t\t\tfor(int j = 0; j < totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalBatteryLevel; k++) {\r\n\t\t\t\t\tgrid[t][i][j][k] = new State(i ,j, k, prob[t][i][j][k], 0.0, t);\r\n\t\t\t\t\tif( t == maxTimeInterval - 1) {\r\n\t\t\t\t\t\tgrid[t][i][j][k].setTerminate();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\t\r\n\t\treachableStates = new Vector(totalWorkloadLevel*totalGreenEnergyLevel*totalBatteryLevel);\r\n\t\t\t\r\n\t}", "double energy(T searchState);", "private boolean setVariables() {\r\n System.gc();\r\n\r\n String tmpStr;\r\n\r\n //do25D = image25D.isSelected();\r\n\r\n tmpStr = textNIterOpen.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersOpen = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textNIterOpen.requestFocus();\r\n textNIterOpen.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textKernelSizeOpen.getText();\r\n\r\n float max = (float) (image.getExtents()[0] * image.getFileInfo()[0].getResolutions()[0] / 5);\r\n\r\n // if ( max < 10 ) max = 10;\r\n if (textKernelSizeOpen.isEnabled() == true) {\r\n\r\n if (testParameter(tmpStr, 0, max)) {\r\n kernelSizeOpen = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textKernelSizeOpen.requestFocus();\r\n textKernelSizeOpen.selectAll();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n if (image.getNDims() == 2) {\r\n\r\n if (comboBoxKernelOpen.getSelectedIndex() == 0) {\r\n kernelOpen = AlgorithmMorphology2D.CONNECTED4;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 1) {\r\n kernelOpen = AlgorithmMorphology2D.CONNECTED12;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 2) {\r\n kernelOpen = AlgorithmMorphology2D.SIZED_CIRCLE;\r\n }\r\n } else if (image.getNDims() == 3) {\r\n\r\n if (comboBoxKernelOpen.getSelectedIndex() == 0) {\r\n kernelOpen = AlgorithmMorphology3D.CONNECTED6;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 1) {\r\n kernelOpen = AlgorithmMorphology3D.CONNECTED24;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 2) {\r\n kernelOpen = AlgorithmMorphology3D.SIZED_SPHERE;\r\n }\r\n }\r\n\r\n tmpStr = textNIterClose.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersClose = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textNIterClose.requestFocus();\r\n textNIterClose.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textErode.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersErode = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textErode.requestFocus();\r\n textErode.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textKernelSizeClose.getText();\r\n max = (float) (image.getExtents()[0] * image.getFileInfo()[0].getResolutions()[0] / 5);\r\n\r\n // if ( max < 10 ) max = 10;\r\n if (textKernelSizeClose.isEnabled() == true) {\r\n\r\n if (testParameter(tmpStr, 0, max)) {\r\n kernelSizeClose = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textKernelSizeClose.requestFocus();\r\n textKernelSizeClose.selectAll();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n if (image.getNDims() == 2) {\r\n\r\n if (comboBoxKernelClose.getSelectedIndex() == 0) {\r\n kernelClose = AlgorithmMorphology2D.CONNECTED4;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 1) {\r\n kernelClose = AlgorithmMorphology2D.CONNECTED12;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 2) {\r\n kernelClose = AlgorithmMorphology2D.SIZED_CIRCLE;\r\n }\r\n } else if (image.getNDims() == 3) {\r\n\r\n if (comboBoxKernelClose.getSelectedIndex() == 0) {\r\n kernelClose = AlgorithmMorphology3D.CONNECTED6;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 1) {\r\n kernelClose = AlgorithmMorphology3D.CONNECTED24;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 2) {\r\n kernelClose = AlgorithmMorphology3D.SIZED_SPHERE;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public static void setupGame()\n {\n final PhysicsSpace pSpace = PhysicsSpace.getPhysicsSpace( PhysicsSpace.BroadphaseTypes.AXIS_SWEEP_3 );\n\n // Create a DebugGameState\n // - override the update method to update/sync physics space\n PhysicsDebugGameState state = new PhysicsDebugGameState()\n {\n @Override\n public void update( float tpf )\n {\n super.update( tpf );\n pSpace.update( tpf );\n }\n };\n\n state.setText( \"A compound collision shape made from every primative\" );\n\n // Only render the physics bounds\n state.setDrawState( PhysicsDebugGameState.DrawState.Both );\n\n PhysicsNode compound = createCompoundCollisionShape();\n compound.setLocalTranslation( 0f, 0f, 0f );\n state.getRootNode().attachChild( compound );\n compound.updateRenderState();\n pSpace.add( compound );\n\n // The floor, which does not move (mass=0)\n PhysicsNode floor = new PhysicsNode( new Box( \"physicsfloor\", Vector3f.ZERO, 20f, 0.2f, 20f ), CollisionShape.ShapeTypes.BOX, 0 );\n floor.setLocalTranslation( new Vector3f( 0f, -6, 0f ) );\n state.getRootNode().attachChild( floor );\n floor.updateRenderState();\n pSpace.add( floor );\n\n // Add the gamestate to the manager\n GameStateManager.getInstance().attachChild( state );\n\n // Activate the game state, so we can see it\n state.setActive( true );\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }", "public void actionPerformed(ActionEvent ae ){\n Leaves leaves = (Leaves) array.get(13);\n leaves.rotateleafmore(1);\n Leaves leaves2 = (Leaves) array.get(14);\n leaves2.rotateleafmore(1);\n Leaves leaves3 = (Leaves) array.get(15);\n leaves3.rotateleafmore(1);\n //drops the Autumn leaves\n Leaf leaf = (Leaf) array.get(16);\n leaf.dropleaf(1);\n Leaf leaf2 = (Leaf) array.get(17);\n leaf2.dropleaf(1);\n Leaf leaf3 = (Leaf) array.get(18);\n leaf3.dropleaf(1);\n Leaf leaf4 = (Leaf) array.get(19);\n leaf4.dropleaf(1);\n Leaf leaf5 = (Leaf) array.get(20);\n leaf5.dropleaf(1);\n //Spins the Flowers\n Flowers flower = (Flowers) array.get(35);\n flower.FlowerSpin(1);\n Flowers flower2 = (Flowers) array.get(36);\n flower2.FlowerSpin(1);\n Flowers flower3 = (Flowers) array.get(37);\n flower3.FlowerSpin(1);\n Flowers flower4 = (Flowers) array.get(38);\n flower4.FlowerSpin(1);\n Flowers flower5 = (Flowers) array.get(39);\n flower5.FlowerSpin(1);\n Flowers flower6 = (Flowers) array.get(40);\n flower6.FlowerSpin(1);\n Flowers flower7 = (Flowers) array.get(41);\n flower7.FlowerSpin(1);\n Flowers flower8 = (Flowers) array.get(42);\n flower8.FlowerSpin(1);\n // makes the snow fall in a loop\n Snow snow = (Snow) array.get(21);\n snow.Falling(2);\n Snow snow1 = (Snow) array.get(22);\n snow1.Falling(2);\n Snow snow2 = (Snow) array.get(23);\n snow2.Falling(2);\n Snow snow3 = (Snow) array.get(24);\n snow3.Falling(2);\n Snow snow4 = (Snow) array.get(25);\n snow4.Falling(2);\n Snow snow5 = (Snow) array.get(26);\n snow5.Falling(2);\n Snow snow6 = (Snow) array.get(27);\n snow6.Falling(2);\n Snow snow7 = (Snow) array.get(28);\n snow7.Falling(2);\n Snow snow8 = (Snow) array.get(29);\n snow8.Falling(2);\n Snow snow9 = (Snow) array.get(43);\n snow9.Falling(2);\n Snow snow10 = (Snow) array.get(44);\n snow10.Falling(2);\n Snow snow11 = (Snow) array.get(45);\n snow11.Falling(2);\n Snow snow12 = (Snow) array.get(46);\n snow12.Falling(2);\n Snow snow13 = (Snow) array.get(47);\n snow13.Falling(2);\n Snow snow14 = (Snow) array.get(48);\n snow14.Falling(2);\n Snow snow15 = (Snow) array.get(49);\n snow15.Falling(2);\n Snow snow16 = (Snow) array.get(50);\n snow16.Falling(2);\n //rotates the rays of the sun\n Sun sun = (Sun) array.get(8);\n sun.spinRay(1);\n //moves the beach ball\n BeachBall beachball = (BeachBall) array.get(34);\n beachball.rotateandmove(2);\n //moves the bird down and up\n Bird bird = (Bird) array.get(33);\n bird.dropbird(1);\n //moves the bird up and down\n Bird bird1 = (Bird) array.get(32);\n bird1.upbird(1);\n // moves the cloud side to side\n Cloud cloud1 = (Cloud) array.get(30);\n cloud1.moveCloud(.5);\n Cloud cloud2 = (Cloud) array.get(31);\n cloud2.moveCloud(.5);\n Cloud cloud3 = (Cloud) array.get(52);\n cloud3.moveCloud(.5);\n Cloud cloud4 = (Cloud) array.get(53);\n cloud4.moveCloud(.5);\n Cloud cloud5 = (Cloud) array.get(54);\n cloud5.moveCloud(.5);\n Cloud cloud6 = (Cloud) array.get(55);\n cloud6.moveCloud(.5);\n Cloud cloud7 = (Cloud) array.get(56);\n cloud7.moveCloud(.5);\n Cloud cloud8 = (Cloud) array.get(57);\n cloud8.moveCloud(.5);\n //spins the autumn flowers\n AutumnLeaf leafA1 = (AutumnLeaf) array.get(58);\n leafA1.AutumnSpin(1);\n AutumnLeaf leafA2 = (AutumnLeaf) array.get(59);\n leafA2.AutumnSpin(1);\n AutumnLeaf leafA3 = (AutumnLeaf) array.get(60);\n leafA3.AutumnSpin(1);\n AutumnLeaf leafA4 = (AutumnLeaf) array.get(61);\n leafA4.AutumnSpin(1);\n //displays \"Pick a Tree\"\n Fonts font1 = (Fonts) array.get(51);\n font1.defaultText(5);\n //the conditions on what text to pick on specific MouseListeners\n if(fontBol == false){\n Fonts font = (Fonts) array.get(51);\n font.appear(5); \n \n }\n if(fontBolS == false){\n Fonts font = (Fonts) array.get(51);\n font.appearSpring(5); \n \n }\n if(fontBolA == false){\n Fonts font = (Fonts) array.get(51);\n font.appearAutumn(5); \n \n }\n if(fontBolW == false){\n Fonts font = (Fonts) array.get(51);\n font.appearWinter(5); \n \n }\n repaint();\n \n \n }", "private void initVariables() {\n neueLinien = 0;\n feldVoll = false;\n pause = false;\n nextAction = \"\";\n verloren = false;\n zoom = 0;\n bhfs = 0;\n\n timer = new Timer();\n timerS = new Timer();\n tageszeit = Stadtteil.NICHTS;\n strgPause = 500; // Timer-Rate\n\n hatBahnhof = new boolean[hoehe][breite];\n teile = new Stadtteil[hoehe][breite];\n bahnhoefe = new Bahnhof[hoehe][breite];\n linien = new Linie[20];\n\n for (int y = 0; y < hoehe; y++) {\n for (int x = 0; x < breite; x++) {\n hatBahnhof[y][x] = false;\n teile[y][x] = null;\n bahnhoefe[y][x] = null;\n }\n }\n\n for (int i = 0; i < linien.length; i++) {\n linien[i] = null;\n }\n\n String[] bhfNamenTmp = {\"Marienplatz\", \"Blumenstraße\", \"Graf Maxi von Krause Allee\",\n \"Nicolaiplatz\", \"Großer Imperator Felix Maurer Platz\", \"Christine Kaps Allee\",\n \"Felix der Hecker Platz\", \"Hofstraße\", \"Sonnenstraße\", \"Kirchplatz\",\n \"Javagasse\", \"Berglerweg\", \"Stiftstraße\", \"Unterberg\", \"Hauptstraße\",\n \"Feldweg\", \"Serviettenmarkt\", \"Kalterbach\", \"Bürgermeister Horst Bichler Straße\",\n \"Laaange Straße\", \"Weit-Weit-Weg\", \"Waschstraße\", \"Schnitzelstraße\",\n \"Platz des Bieres\", \"Alte Heide\", \"Baumhausen\", \"Geldweg\", \"Berg\", \"Hausen\",\n \"Schneiderei\", \"Alte Weberei\", \"Brauereigasse\", \"Färbergraben\", \"H-Brücke\",\n \"Sickergraben\", \"Turmstraße\", \"Schneckenbahn\", \"Rosengarten\", \"Humboldt-Platz\",\n \"Wurzelplatz\", \"Adlerstraße\", \"Flamingostraße\", \"Taubenweg\", \"Spechtweg\",\n \"Sperberstraße\", \"Schlosstraße\", \"Friedensstraße\", \"Sackgasse\", \"Platz der Partei\",\n \"Keksweg\", \"Börsenplatz\", \"Gleisweg\", \"Dateipfad\", \"Milchstraße\", \"Qwertzweg\",\n \"Holzweg\", \"Heringsberger Straße\", \"Ausfallstraße\", \"Bahnhofstraße\", \"Finkenweg\",\n \"Steinstraße\", \"Pfauenstraße\", \"Bergstraße\", \"Bürgersteig\", \"Schorlenplatz\",\n \"Saftladen\", \"Gullygasse\", \"Kassettenweg\", \"Egelstraße\", \"Wurmstraße\", \"Wasserweg\",\n \"{return null;}-Platz\", \"Rinderstraße\", \"Maulwurfstraße\", \"Eckpunkt\",\n \"Kleiberstraße\", \"Paragraphenweg\", \"Kabelbrücke\", \"Roter Weg\", \"Geisterbahn\",\n \"Gartenstraße\", \"Lilienstraße\", \"Pöppelstraße\", \"Stadtstraße\", \"Jägerweg\",\n \"Parrweg\", \"Bayerstraße\", \"Baderstraße\", \"Fichtenweg\", \"Birkenstraße\",\n \"Buchenweg\", \"Kastanienweg\", \"Kellergasse\", \"Himmelspforte\", \"Auberginenweg\",\n \"Jedermannsweg\", \"Ladenstraße\", \"Exilstraße\", \"Wegstraße\", \"Kepplerstraße\",\n \"Hammerweg\", \"Spitzweg\", \"Lötstraße\", \"Weinstraße\", \"Waldmeisterstraße\",\n \"Primelstraße\", \"Kamillenweg\", \"Balkenweg\", \"Farnweg\", \"Konfettiwerk\",\n \"Weckerwerk\", \"Kürbisstraße\", \"Pralinenallee\", \"Lindenstraße\", \"Autobahn\",\n \"Straße der Liebe\", \"Straße des Hass\", \"Zunftplatz\", \"Glaserviertel\", \"Gerberviertel\",\n \"Rotlichtviertel\", \"Platz der Arbeiter\", \"Fluchtweg\", \"Papierstraße\", \"Rennbahn\",\n \"Prangerviertel\", \"Henkerweg\", \"Peterplatz\", \"Staufenallee\", \"Besenallee\", \"Schaufelstraße\",\n \"Kugelbahn\", \"Genitivgasse\", \"Scharfe Kurve\", \"Ausweg\", \"Schulstraße\",\n \"Universität\", \"Bibliothek\", \"Rettungsweg\", \"Melinaplatz\", \"Zeigerkurve\",\n \"Südkurve\", \"Kurvenstraße\", \"Federweg\", \"Kreidebahn\", \"Dunkle Gasse\", \"Letzter Weg\",\n \"Zustellweg\", \"Unterer Marktplatz\", \"Oberer Marktplatz\", \"Sitzplatz\", \"Am Feld\",\n \"Oberweg\", \"Meyerstraße\", \"Frühlingsstraße\", \"Herbststraße\", \"Winterstraße\",\n \"Löwengrube\", \"Am Galgenberg\", \"Maistraße\", \"Februarstraße\", \"Augustusweg\",\n \"Kartoffelring\", \"Lederring\", \"Kohlstraße\", \"Museumstraße\", \"Zeppelinstraße\",\n \"Röhrenstraße\", \"Pixelstraße\", \"Herzogstraße\", \"Königsplatz\", \"Wallstraße\",\n \"Ohmstraße\", \"Schnorrerstraße\", \"Ackerstraße\", \"Winzergasse\", \"Panzerstraße\",\n \"Abtstraße\", \"Albrechtstraße\", \"Alte Allee\", \"Messeplatz\", \"Blütenanger\",\n \"Anhalterstraße\", \"Barabarenstraße\", \"Benediktinerstraße\", \"Bernsteinweg\",\n \"Poststraße\", \"Clemensstraße\", \"Delphinstraße\", \"Drosselweg\", \"Münchner Straße\",\n \"Berliner Straße\", \"Stuttgarter Straße\", \"Hamburger Straße\", \"Dresdner Straße\",\n \"Frankfurter Straße\", \"Bremer Straße\", \"Promenade\", \"Wiener Straße\", \"Berner Straße\",\n \"Bozen Ring\", \"Ehe Ring\", \"Kryptographenheim\", \"Blutweg\", \"Rosinenstraße\",\n \"Fassring\", \"Grüngarten\", \"Gärtnerstraße\", \"Kanzlerstraße\", \"Streicherholz\",\n \"Katzenweg\", \"Hundeweg\", \"Luxweg\", \"Gänsemarsch\", \"Marderweg\", \"Giraffenplatz\",\n \"Elephantenstraße\", \"Beuteltierstraße\", \"Schnabeltierstraße\", \"Mäuseweg\",\n \"Nashornstraße\", \"Schmetterlingsweg\", \"Wanzenweg\", \"Krokodilstraße\", \"Licht\",\n \"Hemdstraße\", \"Jeansstraße\", \"Hutstraße\", \"Regengasse\", \"Donnerweg\",\n \"Blitzstraße\", \"Schuhstraße\", \"Glücksleiter\", \"Kleestraße\", \"Anemonenstraße\",\n \"Rehweg\", \"Ameisenbärstraße\", \"Pandastraße\", \"Antilopenweg\", \"Analphabetenstraße\",\n \"Platz der Geometrie\", \"Volksstraße\", \"Bajuwarenstraße\", \"Ameisenstraße\",\n \"Apfelstraße\", \"Birnenstraße\", \"Pampelmusenstraße\", \"Melonenstraße\", \"Himbeerweg\",\n \"Brombeerweg\", \"Erdbeerweg\", \"Stinktierstraße\", \"Mangostraße\", \"Walnussstraße\",\n \"Sehr Seriöse Straße\", \"Wegweiser\", \"Balkonien\", \"Kolonie\", \"Busbahnhof\", \"Ungern\",\n \"Granatapfelweg\", \"Mühlenallee\", \"Platz des 30. Juni\", \"Sparschweinweg\", \"Sankt-Paul-Straße\",\n \"Silvesterstraße\", \"Taschenrechnerstraße\"};\n bhfNamen = new ArrayList<String>();\n for (int i = 0; i < bhfNamenTmp.length; i++) {\n bhfNamen.add(bhfNamenTmp[i]);\n }\n }", "@Override\n\tpublic double stateEvaluator(GameState s)\n\t{\r\n\t\tint count = 0;\n\t\tif (s.takenList[1] == 0)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse if(s.lastMove == 1)\r\n\t\t{\r\n\t\t\tfor (int i = 1; i < s.takenList.length ; i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.5;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isPrime(s.lastMove))\r\n\t\t{\r\n\t\t\tfor (int i = 1; i < s.takenList.length; i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0 && i % s.lastMove == 0) // i = 4, % 2\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.7;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn 0.7;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tint largestPrime = 2;\r\n\t\t\tfor (int i = 2; i < (s.lastMove/2); i++)\r\n\t\t\t{\r\n\t\t\t\tif (s.lastMove % i == 0 && isPrime(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tlargestPrime = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = largestPrime; i <= s.lastMove; i+= largestPrime)\r\n\t\t\t{\r\n\t\t\t\tif (s.takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\treturn -0.6;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\treturn 0.6;\r\n\t\t\t}\r\n\r\n\t\t}\n\t}", "public Awale(short size) {\r\n\tthis.listeners = new ArrayList<AwaleListener>();\r\n\tthis.currentSide = 0;\r\n\tthis.size = size;\r\n\tthis.territory = new short[2][size];\r\n\tthis.simulateTerritory = new short[2][size];\r\n\tArrays.fill(this.territory[0], INITIAL_SEEDS);\r\n\tArrays.fill(this.territory[1], INITIAL_SEEDS);\r\n\tthis.points = new short[2];\r\n }", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "public void Update()\r\n {\r\n /*\r\n else if(level == 2){\r\n list_star.add(new CollisionItem(refLink, 670, 360, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 250, 50, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 220, 120, 60, 20));\r\n\r\n\r\n /*list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 140, 104, 15));\r\n\r\n //list_static_element.add( new CollisionItem(refLink, 15, 250, 104, 15) );\r\n //list_static_element.add( new CollisionItem(refLink, 119, 250, 104, 15) );\r\n list_static_element.add(new CollisionItem(refLink, 223, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 743, 270, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 847, 270, 104, 15));\r\n\r\n\r\n //list_static_element.add( new CollisionItem(refLink, 0, 0, 960, 15) );\r\n //list_static_element.add( new CollisionItem(refLink, 0, 465, 960, 15) );\r\n\r\n\r\n ///incarca harta de start. Functia poate primi ca argument id-ul hartii ce poate fi incarcat.\r\n\r\n LoadWorld();\r\n\r\n return;\r\n }*/\r\n\r\n }", "protected abstract int numStates();", "State(int[][] startBoardState, int [][] goalBoardState){\n this.currentBoardState = startBoardState;\n this.goalBoardState = goalBoardState;\n this.g_cost = 0;\n this.parentState = null;\n }", "public void preCalculateCollisions(){\n for(int i = 0; i < ALL_POSSIBLE_STATES.length; i++){\n collisions[i] = new StateMapEntry();\n collisions[i].incomingState = ALL_POSSIBLE_STATES[i];\n collisions[i].resultingState = calculateAllPossibleOutboundStates(ALL_POSSIBLE_STATES[i], ALL_POSSIBLE_STATES);\n //collisions[i].print();\n }\n }", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "public void update()\n {\n // start from the bottom of the world\n\n for (int y = height - 1; y >= 0; --y)\n {\n // compute offset to this and next line\n\n int thisOffset = y * width;\n \n // are we at top or bottom?\n\n boolean atTop = y == 0;\n boolean atBot = y == height - 1;\n\n // process line in random order\n \n for (int x: xRndIndex[rnd.nextInt(RND_INDEX_CNT)])\n {\n // index of this pixel\n \n int ip = thisOffset + x;\n \n // value of this pixel\n\n int p = pixels[ip];\n\n // don't process inert matter\n\n if (p == AIR || p == ROCK || p == EARTH)\n continue;\n\n // are we on a left or right edge?\n\n boolean atLeft = x == 0;\n boolean atRight = x == width - 1;\n\n // indices of pixels around this particle\n\n int iuc = ip - width;\n int idc = ip + width;\n int idl = idc - 1;\n int idr = idc + 1;\n int il = ip - 1;\n int ir = ip + 1;\n\n // get pixels for each index\n\n int uc = atTop ? ROCK : pixels[iuc];\n int dc = atBot ? ROCK : pixels[idc];\n int dl = atBot || atLeft ? ROCK : pixels[idl];\n int dr = atBot || atRight ? ROCK : pixels[idr];\n int l = atLeft ? ROCK : pixels[il];\n int r = atRight ? ROCK : pixels[ir];\n \n // the following actions propogate elements around the\n // world, they do not conserve matter\n\n // if fire, propogate fire\n\n if (p == FIRE1 || p == FIRE2 || p == FIRE3 || \n p == FIRE4 || p == FIRE5 || p == FIRE6)\n {\n int[] burn = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n\n\n for (int ib: burn)\n {\n int b = pixels[ib];\n\t\t\t\t\t \n\t\t\t\t\t // fire burns plants and oil, makes steam out of water\n\t\t\t\t\t \n if ((b == PLANT || b == OIL || b == COLUMBINE) &&\n rnd.nextInt(FIRE_CHANCE_IN) == 0)\n pixels[ib] = FIRE1;\n else\n if (b == WATER)\n {\n pixels[ib] = STEAM;\n pixels[ip] = STEAM;\n\t\t\t\t\t\t pixels[iuc] = STEAM;\n p = STEAM;\n break;\n }\n }\n // move fire along\n\n if (p == FIRE1)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE2)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE3)\n {\n pixels[ip] = FIRE4;\n continue;\n }\n if (p == FIRE4)\n {\n pixels[ip] = FIRE5;\n continue;\n }\n if (p == FIRE5)\n {\n pixels[ip] = FIRE6;\n continue;\n }\n if (p == FIRE6)\n {\n pixels[ip] = AIR;\n continue;\n }\n }\n // if this is steam, evaporate into air\n\n if (p == STEAM)\n { pixels[ip] = AIR;\n continue;\n\t\t\t }\n\n // if this is an everything sucker\n\n if (p == AIR_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n pixels[it] = AIR;\n continue;\n }\n // if this is a water source\n\n if (p == WATER_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(WATER_CHANCE_IN) == 0)\n pixels[it] = WATER;\n continue;\n }\n // if this is a fire source\n\n if (p == OIL_SOURCE)\n {\n int[] targets = {atRight ? ip : ir,\n atLeft ? ip : il,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR)\n pixels[it] = OIL;\n continue;\n }\n // if this is a sand source\n\n if (p == SAND_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(SAND_CHANCE_IN) == 0)\n pixels[it] = SAND;\n continue;\n }\n // if this is a plant, propogate growth\n\n if (p == PLANT)\n {\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n int[] targets = {atLeft ? ip : il,\n atLeft || atTop ? ip : iul,\n atRight ? ip : ir,\n atRight || atTop ? ip : iur,\n atTop ? ip : iuc,\n atBot ? ip : idc,\n atBot || atLeft ? ip : idl,\n atBot || atRight ? ip : idr,\n };\n\t\t\t\t if (pixels[idl] == PLANT && pixels[idc] == PLANT && \n\t\t\t\t pixels[idr] == PLANT && pixels[ir] == PLANT && \n\t\t\t\t\t pixels[il] == PLANT && pixels[iuc] == WATER)\n\t\t\t\t\t pixels[ip] = COLUMBINE;\n for (int ix: targets)\n if (pixels[ix] == AIR)\n for (int it: targets)\n if (pixels[it] == WATER && rnd.nextInt(PLANT_CHANCE_IN) == 0)\n pixels[it] = PLANT;\n\t\t\t\t continue;\n }\n // if this is a flower\n\n if (p == COLUMBINE)\n\t\t\t {\n\t\t\t continue;\n\t\t\t }\n // if this is a fire source\n\n if (p == FIRE_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == PLANT || pixels[it] == OIL)\n pixels[it] = FIRE1;\n continue;\n }\n // all actions from this point on conserve matter\n // we only calculate the place to which this particle\n // will move, the the default is to do nothing\n\n int dest = NO_CHANGE;\n \n // if it's a oil\n\n if (p == OIL)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR)\n dest = idc;\n \n // if air on both sides below, pick one\n\n else if (dl == AIR && dr == AIR)\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // if it's water\n\n else if (p == WATER)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR || dc == OIL)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == OIL) && (dr == AIR || dr == OIL))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == OIL)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == OIL)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // all other elements behave like sand\n\n else\n {\n // if air underneath, go down\n \n if (dc == AIR || dc == WATER)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == WATER) && \n (dr == AIR || dr == WATER))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == WATER)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == WATER)\n dest = idr;\n }\n // if a change is requried, swap pixles\n\n try\n {\n if (dest != NO_CHANGE)\n {\n if (pixels[ip] == WATER_SOURCE)\n out.println(\"swap1 WS & \" + Element.lookup(pixels[dest]));\n if (pixels[dest] == WATER_SOURCE)\n out.println(\"swap2 WS & \" + Element.lookup(pixels[ip]));\n\n pixels[ip] = pixels[dest];\n pixels[dest] = p;\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n out.println(\" X: \" + x);\n out.println(\" Y: \" + y);\n out.println(\"Source: \" + Element.lookup(p));\n out.println(\"Source: \" + Element.lookup(pixels[ip]));\n out.println(\" Dest: \" + Element.lookup(pixels[dest]));\n \n }\n }\n }\n }", "public interface Model {\n /**\n * Generate a image of checker board pattern (8 X 8) of the given size.\n *\n * @param size the size of the image\n * @return the 3D array of the generated checkerboard.\n */\n int[][][] generateChecker(int size);\n\n /**\n * Generate a image if rainbow stripes (7 colors) with the given size.\n *\n * @param height the height of the image\n * @param width the width of the image\n * @param vOrH the stripes should be vertical of horizontal.\n * @return the 3D array of the generated rainbow stripes.\n */\n int[][][] generateRainbow(int height, int width, VOrH vOrH);\n\n /**\n * Generate the appropriate-sized flags of a country with the given ratio.\n *\n * @param ratio the given ratio of the flag.\n * @param country the country whose flag will be generated.\n * @return the 3D array of the generated flag.\n */\n int[][][] generateFlags(int ratio, String country);\n\n /**\n * Blur the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array of the blurred image\n */\n int[][][] blurImage(int[][][] imageArray, int height, int width);\n\n /**\n * Sharpen the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array the sharpened image\n */\n int[][][] sharpenImage(int[][][] imageArray, int height, int width);\n\n /**\n * Grey scale the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return 3D array of the greyscale image\n */\n int[][][] greyscaleImage(int[][][] imageArray, int height, int width);\n\n /**\n * Sepia- tone the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array of the sepia-tone image\n */\n int[][][] sepiaToneImage(int[][][] imageArray, int height, int width);\n\n /**\n * Dither the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return 3D array of the dithered image\n */\n int[][][] ditheringImage(int[][][] imageArray, int height, int width);\n\n /**\n * Mosaic the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image.\n * @param width the width of the image.\n * @param seedNum the number of seeds.\n * @return the 3D array of mosaic image.\n */\n int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);\n\n /**\n * Undo. Return a previous result before the operation.\n *\n * @return a previous result.\n * @throws EmptyStackException when there is no previous one.\n */\n int[][][] undo() throws EmptyStackException;\n\n /**\n * Redo. Return a previous result before an undo.\n *\n * @return a previous result before an undo.\n * @throws EmptyStackException when there is no previous one.\n */\n int[][][] redo() throws EmptyStackException;\n\n /**\n * Set the stacks for undo and redo. Add a new element to the undo stack, and clear the redo\n * stack.\n * @param add the image in 3D array to be added to the stack.\n */\n void setStack(int[][][] add);\n}", "private void initNature() {\n int N = 100;\n int MOD = 10;\n switch (nature) {\n case \"Hardy\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Lonely\": { natureStats = new Stats(0, N + MOD, N - MOD, N, N, N); break; }\n case \"Adamant\": { natureStats = new Stats(0, N + MOD, N, N - MOD, N, N); break; }\n case \"Naughty\": { natureStats = new Stats(0, N + MOD, N, N, N - MOD, N); break; }\n case \"Brave\": { natureStats = new Stats(0, N + MOD, N, N, N, N - MOD); break; }\n\n case \"Bold\": { natureStats = new Stats(0, N - MOD, N + MOD, N, N, N); break; }\n case \"Docile\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Impish\": { natureStats = new Stats(0, N, N + MOD, N - MOD, N, N); break; }\n case \"Lax\": { natureStats = new Stats(0, N, N + MOD, N, N - MOD, N); break; }\n case \"Relaxed\": { natureStats = new Stats(0, N, N + MOD, N, N, N - MOD); break; }\n\n case \"Modest\": { natureStats = new Stats(0, N - MOD, N, N + MOD, N, N); break; }\n case \"Mild\": { natureStats = new Stats(0, N, N - MOD, N + MOD, N, N); break; }\n case \"Bashful\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Rash\": { natureStats = new Stats(0, N, N, N + MOD, N - MOD, N); break; }\n case \"Quiet\": { natureStats = new Stats(0, N, N, N + MOD, N, N - MOD); break; }\n\n case \"Calm\": { natureStats = new Stats(0, N - MOD, N, N, N + MOD, N); break; }\n case \"Gentle\": { natureStats = new Stats(0, N, N - MOD, N, N + MOD, N); break; }\n case \"Careful\": { natureStats = new Stats(0, N, N, N - MOD, N + MOD, N); break; }\n case \"Quirky\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n case \"Sassy\": { natureStats = new Stats(0, N, N, N, N + MOD, N - MOD); break; }\n\n case \"Timid\": { natureStats = new Stats(0, N - MOD, N, N, N, N + MOD); break; }\n case \"Hasty\": { natureStats = new Stats(0, N, N - MOD, N, N, N + MOD); break; }\n case \"Jolly\": { natureStats = new Stats(0, N, N, N - MOD, N, N + MOD); break; }\n case \"Naive\": { natureStats = new Stats(0, N, N, N, N - MOD, N + MOD); break; }\n case \"Serious\": { natureStats = new Stats(0, N, N, N, N, N); break; }\n }\n }", "public void testLPState()\n \t{\n \t\tsolver.buildLPState();\n \t\tassertTrue(solver.hasLPState());\n \t\t\n \t\tfinal int nLPVars = solver.getNumberOfLPVariables();\n \t\tassertTrue(nLPVars >= 0);\n \t\t\n \t\tfinal double[] objective = solver.getObjectiveFunction();\n \t\tassertEquals(nLPVars, objective.length);\n \t\t\n \t\tint nVarsUsed = 0;\n \t\t\n \t\tfor (VariableBase var : model.getVariables())\n \t\t{\n \t\t\tSVariable svar = solver.getSolverVariable(var);\n \t\t\tassertSame(svar, solver.createVariable(var));\n \t\t\t\n \t\t\tDiscrete mvar = svar.getModelObject();\n \t\t\tassertSame(var, mvar);\n \t\t\tassertSame(solver, svar.getParentGraph());\n \t\t\t\n \t\t\t// Test do-nothing methods\n \t\t\tsvar.resetEdgeMessages(0);\n \t\t\tsvar.updateEdge(0);\n \t\t\tsvar.moveMessages(null, 0, 1);\n \t\t\tassertNull(svar.getInputMsg(0));\n \t\t\tassertNull(svar.getOutputMsg(0));\n \t\t\tassertNull(svar.createMessages(null));\n \t\t\tassertNull(svar.resetInputMessage(null));\n \t\t\t\n \t\t\tint lpVar = svar.getLPVarIndex();\n \t\t\tint nValidAssignments = svar.getNumberOfValidAssignments();\n \t\t\t\n \t\t\tif (var.hasFixedValue())\n \t\t\t{\n \t\t\t\t// Currently the converse is not true because model variables\n \t\t\t\t// do not currently check to see if there is only one non-zero input weight.\n \t\t\t\tassertTrue(svar.hasFixedValue());\n \t\t\t}\n \t\t\tif (svar.hasFixedValue())\n \t\t\t{\n \t\t\t\tassertFalse(svar.hasLPVariable());\n \t\t\t}\n \t\t\tif (svar.hasLPVariable())\n \t\t\t{\n \t\t\t\tassertTrue(lpVar >= 0);\n \t\t\t\tassertTrue(nValidAssignments > 1);\n \t\t\t\t++nVarsUsed;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tassertEquals(-1, lpVar);\n \t\t\t\tassertTrue(nValidAssignments <= 1);\n \t\t\t}\n \t\t\t\n \t\t\tdouble[] weights = mvar.getInput();\n \t\t\tdouble totalWeight = 0.0;\n \t\t\tfor (double w : weights)\n \t\t\t{\n \t\t\t\ttotalWeight += w;\n \t\t\t}\n \t\t\t\n \t\t\tfor (int i = 0, end = svar.getModelObject().getDomain().size(); i < end; ++i)\n \t\t\t{\n \t\t\t\tdouble w = mvar.getInput()[i];\n \t\t\t\tint lpVarForValue = svar.domainIndexToLPVar(i);\n \t\t\t\tint i2 = svar.lpVarToDomainIndex(lpVarForValue);\n \t\t\t\tif (lpVarForValue >= 0)\n \t\t\t\t{\n \t\t\t\t\tassertEquals(i, i2);\n\t\t\t\t\tassertEquals(Math.log(w), objective[lpVarForValue], 1e-6);\n \t\t\t\t}\n \t\t\t\tif (!svar.hasLPVariable() || mvar.getInput()[i] == 0.0)\n \t\t\t\t{\n \t\t\t\t\tassertEquals(-1, lpVarForValue);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor (Factor factor : model.getFactors())\n \t\t{\n \t\t\tSTableFactor sfactor = solver.getSolverFactor(factor);\n \t\t\tassertSame(sfactor, solver.createFactor(factor));\n \t\t\tassertSame(factor, sfactor.getModelObject());\n \t\t\tassertSame(solver, sfactor.getParentGraph());\n \t\t\t\n \t\t\t// Test do nothing methods\n \t\t\tsfactor.createMessages();\n \t\t\tsfactor.updateEdge(0);\n \t\t\tsfactor.resetEdgeMessages(0);\n \t\t\tsfactor.moveMessages(null, 0 , 1);\n \t\t\tassertNull(sfactor.getInputMsg(0));\n \t\t\tassertNull(sfactor.getOutputMsg(0));\n \t\t}\n \t\t\n \t\tfinal List<IntegerEquation> constraints = solver.getConstraints();\n \t\tassertNotNull(constraints);\n \n \t\tint nConstraints = solver.getNumberOfConstraints();\n \t\tint nVarConstraints = solver.getNumberOfVariableConstraints();\n \t\tint nMarginalConstraints = solver.getNumberOfMarginalConstraints();\n \t\tassertEquals(nConstraints, constraints.size());\n \t\tassertEquals(nConstraints, nVarConstraints + nMarginalConstraints);\n \t\tassertEquals(nVarsUsed, nVarConstraints);\n \t\t\n \t\t{\n \t\t\tMatlabConstraintTermIterator termIter = solver.getMatlabSparseConstraints();\n \t\t\tList<Integer> constraintTerms = new ArrayList<Integer>(termIter.size() * 3);\n \t\t\t\n \t\t\tIterator<IntegerEquation> constraintIter = constraints.iterator();\n \t\t\tfor (int row = 1; constraintIter.hasNext(); ++ row)\n \t\t\t{\n \t\t\t\tIntegerEquation constraint = constraintIter.next();\n \t\t\t\t\n \t\t\t\tint nExpectedTerms = -1;\n \t\t\t\tint lpVar = -1;\n \t\t\t\t\n \t\t\t\tif (row <= nVarConstraints)\n \t\t\t\t{\n \t\t\t\t\tLPVariableConstraint varConstraint = constraint.asVariableConstraint();\n \t\t\t\t\tassertNotNull(varConstraint);\n \t\t\t\t\tassertNull(constraint.asFactorConstraint());\n \t\t\t\t\t\n \t\t\t\t\tSVariable svar = varConstraint.getSolverVariable();\n \t\t\t\t\tassertTrue(svar.hasLPVariable());\n \t\t\t\t\t\n \t\t\t\t\tassertEquals(1, varConstraint.getRHS());\n \t\t\t\t\tnExpectedTerms = svar.getNumberOfValidAssignments();\n \t\t\t\t\t\n \t\t\t\t\tlpVar = svar.getLPVarIndex();\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tLPFactorMarginalConstraint factorConstraint = constraint.asFactorConstraint();\n \t\t\t\t\tassertNotNull(factorConstraint);\n \t\t\t\t\tassertNull(constraint.asVariableConstraint());\n \t\t\t\t\t\n \t\t\t\t\tSTableFactor sfactor = factorConstraint.getSolverFactor();\n \t\t\t\t\tlpVar = sfactor.getLPVarIndex();\n \t\t\t\t\t\n \t\t\t\t\tassertEquals(0, factorConstraint.getRHS());\n \t\t\t\t\tnExpectedTerms = sfactor.getNumberOfValidAssignments();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint[] lpvars = constraint.getVariables();\n \t\t\t\tassertEquals(constraint.size(), lpvars.length);\n \t\t\t\tassertEquals(0, constraint.getCoefficient(-1));\n \t\t\t\tassertEquals(0, constraint.getCoefficient(lpVar + nExpectedTerms));\n \t\t\t\tassertFalse(constraint.hasCoefficient(-1));\n \t\t\t\t\n \t\t\t\tassertTrue(lpVar >= 0);\n \n \t\t\t\tIntegerEquation.TermIterator constraintTermIter = constraint.getTerms();\n \t\t\t\tfor (int i = 0; constraintTermIter.advance(); ++i)\n \t\t\t\t{\n \t\t\t\t\tassertEquals(lpvars[i], constraintTermIter.getVariable());\n \t\t\t\t\tassertEquals(constraintTermIter.getCoefficient(), constraint.getCoefficient(lpvars[i]));\n \t\t\t\t\tassertTrue(constraint.hasCoefficient(lpvars[i]));\n \t\t\t\t\tconstraintTerms.add(row);\n \t\t\t\t\tconstraintTerms.add(constraintTermIter.getVariable());\n \t\t\t\t\tconstraintTerms.add(constraintTermIter.getCoefficient());\n \t\t\t\t}\n \t\t\t\tassertFalse(constraintTermIter.advance());\n \t\t\t}\n \t\t\t\n \t\t\tfor (int i = 0; termIter.advance(); i += 3)\n \t\t\t{\n \t\t\t\tassertEquals((int)constraintTerms.get(i), termIter.getRow());\n \t\t\t\tassertEquals(constraintTerms.get(i+1) + 1, termIter.getVariable());\n \t\t\t\tassertEquals((int)constraintTerms.get(i+2), termIter.getCoefficient());\n \t\t\t}\n \t\t\tassertFalse(termIter.advance());\n \t\t}\n \t\t\n \t\t\n \t\tif (expectedConstraints != null)\n \t\t{\n \t\t\tIterator<IntegerEquation> constraintIter = constraints.iterator();\n \t\t\tassertEquals(expectedConstraints.length, solver.getNumberOfConstraints());\n \t\t\tfor (int i = 0, end = expectedConstraints.length; i < end; ++i)\n \t\t\t{\n \t\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n \t\t\t\tIntegerEquation constraint = constraintIter.next();\n \t\t\t\tconstraint.print(new PrintStream(out));\n \t\t\t\tString actual = out.toString().trim();\n \n \t\t\t\tString expected = expectedConstraints[i].trim();\n \n \t\t\t\tif (!expected.equals(actual))\n \t\t\t\t{\n \t\t\t\t\tSystem.out.format(\"Constraint %d mismatch:\\n\", i);\n \t\t\t\t\tSystem.out.format(\"Expected: %s\\n\", expected);\n \t\t\t\t\tSystem.out.format(\" Actual: %s\\n\", actual);\n \t\t\t\t}\n \t\t\t\tassertEquals(expected, actual);\n \t\t\t}\n \t\t}\n \t\t\n \t\t// Test setting solution. A real solution will only use ones and zeros,\n \t\t// but we will use random values to make sure they are assigned correctly.\n \t\tdouble[] solution = new double[nLPVars];\n \t\tRandom rand = new Random();\n \t\tfor (int i = solution.length; --i>=0;)\n \t\t{\n \t\t\tsolution[i] = rand.nextDouble();\n \t\t}\n \t\tsolver.setSolution(solution);\n \t\tfor (VariableBase var : model.getVariables())\n \t\t{\n \t\t\tSVariable svar = solver.getSolverVariable(var);\n \t\t\tdouble[] belief = svar.getBelief();\n \t\t\tif (svar.hasFixedValue())\n \t\t\t{\n \t\t\t\tint vali = svar.getValueIndex();\n \t\t\t\tfor (int i = belief.length; --i>=0;)\n \t\t\t\t{\n \t\t\t\t\tif (i == vali)\n \t\t\t\t\t{\n \t\t\t\t\t\tassertEquals(1.0, belief[i], 1e-6);\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tassertEquals(0.0, belief[i], 1e-6);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tfor (int i = svar.getModelObject().getDomain().size(); --i>=0;)\n \t\t\t\t{\n \t\t\t\t\tint lpVar = svar.domainIndexToLPVar(i);\n \t\t\t\t\tif (lpVar < 0)\n \t\t\t\t\t{\n \t\t\t\t\t\tassertEquals(0, belief[i], 1e-6);\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tassertEquals(solution[lpVar], belief[i], 1e-6);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\tsolver.clearLPState();\n \t\tassertInitialState();\n \t}", "public static void checkUpdateProbabilityOnHORNRelations()\r\n\t{\r\n\t\tint[] base_relations = {1,2,4,8,16,32,64,128};\r\n\t\tint r1,r2,r3;\r\n\t\tint total = 0;\r\n\t\tint update = 0;\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\t r1 = base_relations[i];\r\n\t\t\tfor(int j = 1; j < 255; j++)\r\n\t\t\t{\r\n\t\t\t\tr2 = j;\r\n\t\t\t\tif(!MTS.BIMTS_H8.contains((Integer)r2))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t/*if(r2 == 1 || r2 == 2 || r2 == 4 || r2 == 8 || r2 == 16 || r2 == 32 || r2 == 64 || r2 == 128)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t*/\r\n\t\t\t\telse\r\n\t\t\t\tfor(int k = 1; k < 255; k++)\r\n\t\t\t\t{ \r\n\t\t\t\t\tr3 = k;\r\n\t\t\t\t\t//if(r3 == 1 || r3 == 2 || r3 == 4 || r3 == 8 || r3 == 16 || r3 == 32 || r3 == 64 || r3 == 128)\r\n\t\t\t\t\t\tif(!MTS.BIMTS_H8.contains((Integer)r3))\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\t\r\n\t\t\t\t\t\ttotal++;\r\n\t\t\t\t\t\tint new_r3 = CompositionTable.LookUpTable(r1, r2);\r\n\t\t\t\t\t\tif(new_r3 < r3)\r\n\t\t\t\t\t\t\tupdate++;\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}\r\n\t\tSystem.out.println((double)update/total);\r\n\t\t\t\t\r\n\t}", "public void step(){\n //System.out.println(\"step\");\n //display();\n Cell[][] copy = new Cell[world.length][world.length];\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n copy [r][c] = new Cell();\n copy[r][c].setState(world[r][c].isAlive());\n }\n }\n\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){ \n int n = getNumberOfLiveNeighbours(r,c);\n if(world[r][c].isAlive()){\n if(n<2||n>3){\n copy[r][c].setState(false);\n }\n }else{\n if(n==3){\n copy[r][c].setState(true);\n }\n }\n }\n }\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n world[r][c].setState(copy[r][c].isAlive());\n }\n }\n }", "public void mo3811g() {\n this.f1490s.mo3763i();\n this.f1491t.mo3763i();\n this.f1492u.mo3763i();\n this.f1493v.mo3763i();\n this.f1494w.mo3763i();\n this.f1495x.mo3763i();\n this.f1496y.mo3763i();\n this.f1497z.mo3763i();\n this.f1429D = null;\n this.f1461aj = 0.0f;\n this.f1430E = 0;\n this.f1431F = 0;\n this.f1432G = 0.0f;\n this.f1433H = -1;\n this.f1434I = 0;\n this.f1435J = 0;\n this.f1462ak = 0;\n this.f1463al = 0;\n this.f1464am = 0;\n this.f1465an = 0;\n this.f1438M = 0;\n this.f1439N = 0;\n this.f1440O = 0;\n this.f1441P = 0;\n this.f1442Q = 0;\n this.f1466ao = 0;\n this.f1467ap = 0;\n float f = f1425R;\n this.f1443S = f;\n this.f1444T = f;\n this.f1428C[0] = EnumC0282a.FIXED;\n this.f1428C[1] = EnumC0282a.FIXED;\n this.f1468aq = null;\n this.f1469ar = 0;\n this.f1470as = 0;\n this.f1472au = null;\n this.f1445U = false;\n this.f1446V = false;\n this.f1450Z = 0;\n this.f1452aa = 0;\n this.f1453ab = false;\n this.f1454ac = false;\n float[] fArr = this.f1455ad;\n fArr[0] = -1.0f;\n fArr[1] = -1.0f;\n this.f1451a = -1;\n this.f1473b = -1;\n int[] iArr = this.f1460ai;\n iArr[0] = Integer.MAX_VALUE;\n iArr[1] = Integer.MAX_VALUE;\n this.f1476e = 0;\n this.f1477f = 0;\n this.f1481j = 1.0f;\n this.f1484m = 1.0f;\n this.f1480i = Integer.MAX_VALUE;\n this.f1483l = Integer.MAX_VALUE;\n this.f1479h = 0;\n this.f1482k = 0;\n this.f1487p = -1;\n this.f1488q = 1.0f;\n ResolutionDimension nVar = this.f1474c;\n if (nVar != null) {\n nVar.mo3878b();\n }\n ResolutionDimension nVar2 = this.f1475d;\n if (nVar2 != null) {\n nVar2.mo3878b();\n }\n this.f1489r = null;\n this.f1447W = false;\n this.f1448X = false;\n this.f1449Y = false;\n }", "public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }" ]
[ "0.6555538", "0.65220076", "0.6103182", "0.59364116", "0.58352447", "0.5759297", "0.5735413", "0.57105994", "0.5692221", "0.56345403", "0.56138116", "0.55448955", "0.5536788", "0.54826355", "0.54826194", "0.54709", "0.5448453", "0.5435886", "0.543326", "0.54138064", "0.5386185", "0.5380135", "0.53724396", "0.53602546", "0.535859", "0.53553164", "0.53525215", "0.53277504", "0.53275603", "0.5325117", "0.53237444", "0.52812934", "0.5280275", "0.52784365", "0.52768767", "0.52598304", "0.52379054", "0.523743", "0.52198917", "0.5205089", "0.5201701", "0.5201411", "0.5198403", "0.51923144", "0.51860124", "0.5181401", "0.5178281", "0.5160694", "0.5143656", "0.51416934", "0.5135346", "0.51220846", "0.51100206", "0.5103763", "0.50947034", "0.5092996", "0.50924635", "0.5080192", "0.5078367", "0.5073353", "0.50720114", "0.5071265", "0.50667226", "0.50663865", "0.50650233", "0.50644034", "0.5062106", "0.5061705", "0.5049204", "0.50477326", "0.504671", "0.5034164", "0.502445", "0.5018439", "0.501507", "0.50106156", "0.50105745", "0.5010419", "0.50063187", "0.50009847", "0.4996934", "0.49962184", "0.49961326", "0.4991105", "0.49895674", "0.49857968", "0.49743867", "0.49740127", "0.49731573", "0.49686497", "0.49677244", "0.49596575", "0.49488372", "0.49448147", "0.49423027", "0.49389648", "0.493056", "0.4925964", "0.4924909", "0.49245593", "0.49197745" ]
0.0
-1
/ get robot headings in degrees; normalize to 45 deg precision
public static double getHeading(double heading) { double newHeading; if (heading >=0.0 && heading < 90.0) newHeading = -1.0; else if (heading >= 90.0 && heading < 180.0) newHeading = -0.33; else if (heading >= 180.0 && heading < 270.0) newHeading = 0.33; else if (heading >= 270.0 && heading < 360.0) newHeading = 1.0; else newHeading = -1.0; return newHeading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHeadingInDegrees(){\r\n double headingRadians = calculateHeadingRadians();\r\n return headingRadians * 180 / Math.PI;\r\n }", "float getHeading();", "float getHeading();", "float getHeading();", "private float getHeading() {\n Orientation anglesA = robot.imu.getAngularOrientation(\n AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return AngleUnit.DEGREES.normalize(\n AngleUnit.DEGREES.fromUnit(anglesA.angleUnit, anglesA.firstAngle));\n }", "double normalizeHeading(double h) {\n double nh = h;\n if( h>-180 && h<180 ) {\n } else if( h <= -180 ) {\n nh = h+360;\n } else if( h > 180 ) {\n nh = h-360;\n }\n return nh;\n }", "public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }", "public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }", "public double getHeading() {\n return imu.getAngularOrientation().firstAngle;\n }", "public double calculateHeadingRadians(){\r\n if(coordinateHistory.size() > 2){\r\n GPSCoordinate firstPoint = coordinateHistory.get(coordinateHistory.size() - 2);\r\n GPSCoordinate secondPoint = coordinateHistory.get(coordinateHistory.size() - 1);\r\n \r\n if(!firstPoint.compareTo(secondPoint)){\r\n double latA = firstPoint.getLatitude();\r\n double longA = firstPoint.getLongitude();\r\n double latB = secondPoint.getLatitude();\r\n double longB = secondPoint.getLongitude();\r\n\r\n double X = Math.cos(latB) * Math.sin(longB - longA);\r\n double Y = (Math.cos(latA) * Math.sin(latB)) - (Math.sin(latA) * Math.cos(latB) * Math.cos(longB - longA));\r\n\r\n headingRadians = - Math.atan2(X, Y);\r\n return headingRadians;\r\n }else{\r\n return headingRadians;\r\n }\r\n }else{\r\n return headingRadians;\r\n }\r\n }", "float getDir() {\n return degrees(_rotVector.heading());\n }", "public static double calculateHeading(double compassRadians, Location readFrom){\n GeomagneticField field = new GeomagneticField((float)readFrom.getLatitude(), (float)readFrom.getLongitude(), (float)readFrom.getHeight(), System.currentTimeMillis());\n float declination = field.getDeclination();\n return compassRadians + Math.toRadians(declination);\n }", "public Double getCompassHeading() {\n\t\treturn compassHeading;\n\t}", "double getHeadingDiff(double init_h) {\n double curr_h = getHeading();\n double diff_h = init_h - curr_h;\n if( diff_h>=360.0 ) diff_h -= 360.0;\n else if( diff_h<=-360.0 ) diff_h += 360.0;\n return diff_h ;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "double readImuHeading() {\n double h = -360.0;\n if( USE_IMU && imu_!=null && imu_init_ok_ ) {\n h = imu_.getAngularOrientation().firstAngle;\n }\n return h;\n }", "public float getHeading() {\n return heading_;\n }", "public double getRolledHeading() {\n double heading = 360.0 - getRawHeading();\n if (lastHeading < 100 && heading > 300) {\n rotationAmt--;\n } else if (heading < 100 && lastHeading > 300) {\n rotationAmt++;\n }\n lastHeading = heading;\n return heading + rotationAmt * 360.0;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "double readImu2Heading() {\n double h = -360.0;\n if( USE_IMU2 && imu2_!=null && imu2_init_ok_ ) {\n h = imu2_.getAngularOrientation().firstAngle;\n }\n return h;\n }", "public double headingTo(GeoPoint gp) {\n // Implementation hints:\n // 1. You may find the mehtod Math.atan2() useful when\n // implementing this method. More info can be found at:\n // http://docs.oracle.com/javase/8/docs/api/java/lang/Math.html\n //\n // 2. Keep in mind that in our coordinate system, north is 0\n // degrees and degrees increase in the clockwise direction. By\n // mathematical convention, \"east\" is 0 degrees, and degrees\n // increase in the counterclockwise direction.\n\n // I will put this point in the (0,0) and compute the atan2 on the\n // diifernce between them.\n checkRep();\n double x = (gp.latitude - this.latitude) * KM_PER_DEGREE_LATITUDE;\n double y = (gp.longitude - this.longitude) * KM_PER_DEGREE_LONGITUDE;\n double theta = Math.toDegrees(Math.atan2(x, y));\n theta = theta < 0 ? 360 + theta : theta;\n if (theta >= 0 && theta <= 90)\n return 90 - theta;\n return 360 - (theta - 90);\n }", "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "double getHeading() {\n if( CACHE_IMU_READING && loop_cnt_==last_imu_read_loop_id_ ) {\n // return the existing heading when getHeading() is called in the same loop\n return heading_ ;\n }\n\n heading_ = 0;\n if( USE_IMU && imu_!=null && imu_init_ok_ ) {\n imu_angles_ = imu_.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX); // acquiring angles are expensive, keep it minimal\n // IMU can automatically detect orientation, and return heading as first angle, 2020/01/25\n heading_ = AngleUnit.DEGREES.normalize(imu_angles_.firstAngle);\n last_imu_read_loop_id_ = loop_cnt_;\n } else if( USE_IMU2 && imu2_!=null && imu2_init_ok_ ) {\n // use IMU2 if IMU failed\n imu2_angles_ = imu2_.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n heading_ = AngleUnit.DEGREES.normalize(imu2_angles_.firstAngle);\n last_imu_read_loop_id_ = loop_cnt_;\n }\n return heading_;\n }", "public String getOrientation(){\n\n if(robot.getRotation()%360 == 0){\n return \"NORTH\";\n } else if(robot.getRotation()%360 == 90\n ||robot.getRotation()%360 == -270){\n return \"EAST\";\n } else if(robot.getRotation()%360 == 180\n ||robot.getRotation()%360 == -180){\n return \"SOUTH\";\n } else if(robot.getRotation()%360 == 270\n ||robot.getRotation()%360 == -90){\n return \"WEST\";\n } else\n\n errorMessage(\"Id:10T error\");\n return null;\n }", "private static double calcHeading(double angleA, double angleB) { \n\t\t\n\t\tdouble heading;\n\t\t\n\t\tif (angleA < angleB){\n\t\t\theading = 45 - (angleA + angleB) /2 ;\n\t\t}else {\n\t\t\theading = 225 - (angleA + angleB) /2 ;\t\n\t\t}\n\t\treturn heading;\n\t}", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientation().firstAngle;\n\n\t\t// Finally we calculate a computedTarget from the current angle heading.\n\t\tdata.PID.computedTarget = data.PID.headings[1] + (data.PID.IMURotations * 360);\n\n\t\t// Now we determine if we need to re-calculate the angles.\n\t\tif(data.PID.headings[0] > 300 && data.PID.headings[1] < 60) {\n\t\t\tdata.PID.IMURotations++; //rotations of 360 degrees\n\t\t\tcalculateAngles();\n\t\t} else if(data.PID.headings[0] < 60 && data.PID.headings[1] > 300) {\n\t\t\tdata.PID.IMURotations--;\n\t\t\tcalculateAngles();\n\t\t}\n\t\treturn data.PID.headings[1];\n\t}", "int getSensorRotationDegrees();", "@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}", "public interface DisplacementSensor {\n\n // return current heading reported by sensor, in degrees.\n // convention is positive angles CCW, wrapping from 359-0\n public float getDisp();\n\n}", "public void autonZeroHeading() {\n \tString direction = SmartDashboard.getString(\"Calibration_Orientation\", \"North\");\n \tswitch (direction) {\n \t\tdefault: zeroHeading();\n \t\t\tbreak;\n \t\tcase \"North\": zeroHeading(0.0);\n \t\t\tbreak;\n \t\tcase \"South\": zeroHeading(180.0);\n \t\t\tbreak;\n \t\tcase \"East\": zeroHeading(-90.0);\n \t\t\tbreak;\n \t\tcase \"West\": zeroHeading(90.0);\n \t\t\tbreak;\n \t\tcase \"-135\" : zeroHeading(135.0);\n \t\t\tbreak;\n \t}\n }", "public double getWidthInDeg();", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private short getHeadingAxe()\r\n\t{\r\n\t\t// Condition based on the angle change\r\n\t\tdouble difA = 0;\r\n\t\tshort movDir = 0;\r\n\r\n\t\t// Difference between the real and ideal angle\r\n\t\tdifA = Math.abs((this.pose.getHeading()/Math.PI*180) - Po_ExpAng);\r\n\t\t\r\n\t\t// Axe detection\r\n\t\tif ((Po_CORNER_ID % 2) == 0)\r\n\t\t{\r\n\t\t\t// Movement in x\r\n\t\t\tif (((Po_CORNER_ID == 0) && ((difA > 70) && (100*this.pose.getX() > 165))) || ((Po_CORNER_ID == 2) && ((difA > 70) && (100*this.pose.getX() < 160))) || ((Po_CORNER_ID == 4) && ((difA > 70) && (100*this.pose.getX() < 35))) || ((Po_CORNER_ID == 6) && ((difA > 70) && (100*this.pose.getX() < 5))))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t\tSound.beepSequenceUp();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Movement in y\r\n\t\t\tif (((Po_CORNER_ID == 1) && ((difA > 30) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 3) && ((difA > 70) && (100*this.pose.getY() < 45))) || ((Po_CORNER_ID == 5) && ((difA > 70) && (100*this.pose.getY() > 55))) || ((Po_CORNER_ID == 7) && (difA > 70) && (100*this.pose.getY() < 5)))\r\n\t\t\t//if (difA > 70)\r\n\t\t\t{\r\n\t\t\t\tmovDir = 0;\t\t\t// x direction\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmovDir = 1;\t\t\t// y direction\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (((Po_AxeP == 0) && (movDir == 1)) || ((Po_AxeP == 1) && (movDir == 0)))\r\n\t\t{\r\n\t\t\tif (Po_CORNER_ID < 7)\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = Po_CORNER_ID + 1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tPo_CORNER_ID = 0;\r\n\t\t\t\t\r\n\t\t\t\tif (this.parkingSlotDetectionIsOn)\r\n\t\t\t\t{\r\n\t\t\t\t\tPo_RoundF = 1;\t\t// Round finished, don't add any new parking slots\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPo_Corn = 1;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tPo_Corn = 0;\r\n\t\t}\r\n\t\t\r\n\t\tPo_AxeP = movDir;\r\n\t\t\r\n\t\tLCD.drawString(\"Corn_ID: \" + (Po_CORNER_ID), 0, 6);\r\n\t\t\r\n\t\treturn movDir;\r\n\t}", "private static double radToDeg(float rad)\r\n/* 30: */ {\r\n/* 31:39 */ return rad * 180.0F / 3.141592653589793D;\r\n/* 32: */ }", "EDataType getAngleDegrees();", "public double getHeadingError (Point p) {\n return Math.toDegrees(Math.atan2(getX() - p.getX(), getY() - p.getY()))\n - getAngle();\n }", "public String toString()\n {\n // If the direction is one of the compass points for which we have\n // a name, provide it; otherwise report in degrees. \n int regionWidth = FULL_CIRCLE / dirNames.length;\n if (dirInDegrees % regionWidth == 0)\n return dirNames[dirInDegrees / regionWidth];\n else\n return dirInDegrees + \" degrees\";\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public Heading(Double compassHeading) {\n\t\tthis.compassHeading = compassHeading;\n\t}", "public int heading() {\n\t\theading = heading + 5;\n\t\tif (heading >= 359) {\n\t\t\t//Setting the heading to 0\n\t\t\tsetHeading(0);\n\t\t}\n\t\t//Returning the heading\n\t\treturn heading;\n\t}", "public double getGyroInDeg(){\n return 0.0;//TODO:Pull gyro in radians and convert to degrees\n }", "public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }", "public double degrees() {\n return this.degrees;\n }", "public float calculateIdealHeading(double currentHeading, Vector2 target) {\n\t\tdouble delta_x = target.x() - position.x();\r\n\t\tdouble delta_y = target.y() - position.y();\r\n\t\tdouble idealAngle = Math.toDegrees(Math.atan(delta_x / delta_y));\r\n\t\treturn (float)idealAngle;\r\n\t}", "public void setHeading() {\n super.setHeading(getPrevious().getHeadingTo(this)); //The absolute angle position that robot needs to face to reach this position\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "int getStartRotationDegree();", "private static int degreesToTicks(double degrees){\r\n double temp = degrees * (1086 / 90);\r\n int ticks = (int)temp;\r\n return ticks;\r\n }", "private double rad2deg(double rad) {\r\n return (rad * 180.0 / Math.PI);\r\n }", "@Override\n\tpublic float getOrientation() {\n\t\treturn body.getAngle();\n\t}", "double getCalibratedLevelAngle();", "private double rad2deg(double rad) {\n return (rad * 180 / Math.PI);\n }", "@Deprecated\n public float getRobotAngle() {\n //There are a couple options here, they are as follows:\n // - gyro_board.getYaw() (Proccesed gyro data)\n // - gyro_board.getCompassHeading() (Proccessed compass data)\n // - gyro_board.getFusedHeading() (Combined compass and gyro data)\n\n float board_angle;\n if (gyro_board.isMagneticDisturbance()){\n board_angle = getGyroSensorAngle();\n } else {\n board_angle = getCompassCorrectedForAlliance();\n }\n\n return board_angle;\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "double getAngle();", "double getAngle();", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "@Override\n\t\t\tpublic double pidGet() {\n\t\t\t\tSmartDashboard.putNumber(\"value\", Robot.driveTrain.getRobotAngle());\n\t\t\t\treturn Robot.driveTrain.getRobotAngle();\n\t\t\t}", "public static float rad2deg(float rad) {return rad/D2R;}", "private static double degToRad(float deg)\r\n/* 25: */ {\r\n/* 26:32 */ return deg * 3.141592653589793D / 180.0D;\r\n/* 27: */ }", "@JsProperty(name = \"heading\")\n public native double heading();", "private double rad2deg(double rad) {\r\n return (rad * 180.0 / Math.PI);\r\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "private double rad2deg(double rad) {\r\n\t\t\treturn (rad * 180 / Math.PI);\r\n\t\t}", "public double getRotation();", "public float getInterpolatedHeading (float u) {\r\n\r\n float newHeading;\r\n \r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n\r\n newHeading = keyFrame[1].heading + \r\n ((keyFrame[2].heading - keyFrame[1].heading) * u);\r\n } else {\r\n\r\n newHeading = h0 + u * (h1 + u * (h2 + u * h3));\r\n\r\n }\r\n\r\n return newHeading;\r\n }", "public double getAngle();", "private double rad2deg(double rad) {\n return (rad * 180.0 / Math.PI);\n }", "private double rad2deg(double rad) {\n return (rad * 180.0 / Math.PI);\n }", "private static double rad2deg(double rad) {\r\n\t\treturn (rad * 180.0 / Math.PI);\r\n\t}", "public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "private static double rad2deg(double rad) {\n return (rad * 180.0 / Math.PI);\n }", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "private static double rad2deg(double rad) {\n return (rad * 180 / Math.PI);\n }", "private static double rad2deg(double rad) {\n return (rad * 180 / Math.PI);\n }", "private static double rad2deg(double rad) {\n return (rad * 180 / Math.PI);\n }", "public double getStartAngle();", "private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 - Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 + Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 90 - Math.abs(rotation);\r\n\t\t\trotation = 270 + rotation;\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY == 0)\r\n\t\t\trotation = 0;\r\n\t\telse if(tarX == 0 && tarY > 0)\r\n\t\t\trotation = 90;\r\n\t\telse if(tarX < 0 && tarY == 0)\r\n\t\t\trotation = 180;\r\n\t\telse if(tarX == 0 && tarY < 0)\r\n\t\t\trotation = 270;\r\n\t\t\r\n\t\treturn (rotation - 90);\r\n\t}", "@Override\n float luas() {\n float luas = (float) (Math.PI * r * r);\n System.out.println(\"Luas lingkaran adalah \" + luas);\n return luas;\n }", "private double rad2deg(double rad) {\n\t\treturn (rad * 180.0 / Math.PI);\n\t}", "@MavlinkFieldInfo(\n position = 9,\n unitSize = 2,\n description = \"Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX\"\n )\n public final int hdg() {\n return this.hdg;\n }", "public double getAngle() { return angle; }", "public Direction getCurrentHeading()\r\n\t{\r\n\t\treturn this.currentDirection;\r\n\t\t\r\n\t}", "public double getHeightInDeg();", "@Override\n protected void execute() {\n headingPID.setSetpoint(-angle); //should be -angle \n Robot.driveBase.DriveAutonomous();\n }", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public float getBaseHorizontalViewAngle() {\n \treturn mCamera.getParameters().getHorizontalViewAngle();\n }", "public int getHeading()\n\t{\n\t\treturn heading;\n\t}", "public double getHeadingAtTimeStamp(long timeStamp) {\n\n double heading = Double.NaN;\n\n try {\n if (timeStamp > m_gyroData.get(0).timeStamp) {\n\n heading = m_gyroData.get(0).angle;\n System.out.println(String.format(\n \"Couldn't determine heading from timeStamp %d, it's too young. Returned youngest heading of %f.\", timeStamp,\n heading));\n /*\n * We don't have data fresher than the timeStamp the caller is looking for; we\n * haven't acquired it yet. So just return the freshest heading we have.\n */\n return heading;\n }\n } catch (Exception e) {\n /*\n * We don't have ANY heading information. Just return NaN to the caller.\n */\n\n System.out.println(String.format(\n \"Couldn't return ANY heading for timestamp %d. No heading data has been added. (Did you call GyroDiary::add() periodically?)\",\n timeStamp));\n return Double.NaN;\n }\n\n try {\n if (timeStamp < m_gyroData.get(m_gyroData.size() - 1).timeStamp) {\n heading = m_gyroData.get(m_gyroData.size() - 1).angle;\n System.out.println(\n String.format(\"Couldn't determine heading from timeStamp %d, it's too old. Returned oldest heading of %f.\",\n timeStamp, heading));\n return heading;\n }\n } catch (Exception e) {\n /*\n * We don't have ANY heading information. Just return NaN to the caller.\n */\n System.out.println(String.format(\n \"Couldn't return ANY heading for timestamp %d. No heading data has been added. (Did you call GyroDiary::add() periodically?)\",\n timeStamp));\n return Double.NaN;\n }\n\n for (int index = 0; index < m_gyroData.size() - 1; ++index) {\n\n if (timeStamp <= m_gyroData.get(index).timeStamp) {\n\n /*\n * We've found two headings that are bracketing the timeStamp the caller asked\n * for. Perform a linear interpolation between these two headings to get the\n * best heading information we can generate.\n */\n double y0 = m_gyroData.get(index).angle;\n double y1 = m_gyroData.get(index + 1).angle;\n\n long x0 = m_gyroData.get(index).timeStamp;\n long x1 = m_gyroData.get(index + 1).timeStamp;\n\n try {\n heading = (y0 + (timeStamp - x0) * (y1 - y0) / (x1 - x0));\n } catch (Exception e) {\n heading = y0;\n\n System.out.println(String.format(\"Couldn't interpolate heading for timeStamp %d. Returned %f instead. %s\",\n timeStamp, heading, e.toString()));\n }\n\n }\n }\n return heading;\n }", "private static double rad2deg(double rad) {\n\t\treturn (rad * 180 / Math.PI);\n\t}", "double getCompass(double magnetic);", "private static double rad2deg(double rad) {\n\t\treturn (rad * 180.0 / Math.PI);\n\t}", "int getRotationDegrees() {\n return rotationDegrees;\n }" ]
[ "0.77920306", "0.7377073", "0.7377073", "0.7377073", "0.7325618", "0.7197416", "0.70059544", "0.6920228", "0.69150484", "0.6741817", "0.6709762", "0.6632816", "0.6599628", "0.6582139", "0.65589225", "0.65589225", "0.65478903", "0.6510513", "0.6510309", "0.6408565", "0.6394113", "0.6394113", "0.63434225", "0.6329583", "0.6310232", "0.6291505", "0.62096614", "0.61904263", "0.6189323", "0.6176324", "0.60961986", "0.607414", "0.6027295", "0.5970795", "0.5962032", "0.5927321", "0.5915092", "0.591178", "0.58939403", "0.58897716", "0.58665097", "0.58406436", "0.58143127", "0.5794167", "0.5788456", "0.5761246", "0.5758552", "0.5742611", "0.57399637", "0.5732594", "0.569123", "0.5686775", "0.56786805", "0.56753606", "0.56751657", "0.567305", "0.5656698", "0.5656324", "0.5646225", "0.5645503", "0.5645503", "0.56447667", "0.5643166", "0.56232625", "0.56161326", "0.5613601", "0.5612594", "0.5612377", "0.5611503", "0.56043464", "0.56008255", "0.55937153", "0.55773646", "0.55773646", "0.55739146", "0.55669224", "0.5563696", "0.55558676", "0.5548902", "0.5544942", "0.55422884", "0.55422884", "0.55422884", "0.55417013", "0.55388796", "0.5536807", "0.55306053", "0.55078375", "0.55065525", "0.5504046", "0.550222", "0.54882467", "0.5487349", "0.5484518", "0.54822797", "0.5482136", "0.54747355", "0.54706603", "0.54691577", "0.54688823" ]
0.66324776
12
/ linear quantization of distance
public static double getTargetDistance(double value) { double distance; if (value < 0) distance = -1.0; if (value >= 0 && value < 150) distance = -1.0; else if (value >= 150 && value < 300) distance = 0.0; else distance = 1.0; return distance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double distanceFrom(double x, double y);", "public abstract double calculateDistance(double[] x1, double[] x2);", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "double getDistance();", "public float getDistance();", "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }", "public double distance(double x, double y);", "double getDistance(Point p);", "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "private Distance(){}", "public abstract double GetDistance();", "public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}", "private double distFrom(double lat1, double lng1, double lat2, double lng2) {\n\t\tdouble dist = Math.pow(lat1 - lat2, 2) + Math.pow(lng1 - lng2, 2);\n\n\t\treturn dist;\n\t}", "void addDistance(float distanceToAdd);", "double getSquareDistance();", "public double distance(double[] vector1, double[] vector2) throws MetricException;", "T distance(S from, S to);", "private static double dist(Data d, Centroid c)\r\n \t{\r\n \t\treturn Math.sqrt(Math.pow((c.Y() - d.Y()), 2) + Math.pow((c.X() - d.X()), 2));\r\n \t}", "public abstract double distanceTo (Object object);", "public abstract double getDistance(T o1, T o2) throws Exception;", "double distanceSq (IPoint p);", "protected double minimumCostPerUnitDistance( ) {\n\t\treturn 0.0;\n\t}", "double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}", "public int distance(Coord coord1, Coord coord2);", "private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }", "public double distance(InputDatum datum, double[] vector) throws MetricException;", "public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);", "@Override\n public double distance(NumberVector o1, NumberVector o2) {\n double dt = Math.abs(o1.doubleValue(0) - o2.doubleValue(0));\n // distance value of earth coordinates in meter\n double dc = getDistance(o1.doubleValue(1), o1.doubleValue(2), o2.doubleValue(1), o2.doubleValue(2));\n return dt + dc;\n }", "public double distance(V a, V b);", "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "double distanceSq (double px, double py);", "public double distance(double[] vector, InputDatum datum) throws MetricException;", "private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }", "@Override\n public double similarity(double[] data1, double[] data2) {\n\t\tdouble distance;\n\t\tint i;\n\t\tif(MATHOD ==1){\n\t\t\t i = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += Math.pow(Math.abs(data1[i] - data2[i]), q);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tif(MATHOD ==2){\n\t\t\ti = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += ( Math.abs(data1[i] - data2[i]) )/( Math.abs(data1[i]) + Math.abs(data2[i]) );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tif(MATHOD ==3){\n\t\t\ti = 0;\n\t\t\tdistance = 0;\n\t\t\twhile (i < data1.length && i < data2.length) {\n\t\t\t\tdistance += Math.abs( (data1[i] - data2[i]) / ( 1 + data1[i] + data2[i]) );\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\treturn Math.pow(distance, 1 / q);\n }", "public double distance(){\n return DistanceTraveled;\n }", "public double distance(Customer i, Customer j);", "public abstract double distance(AbstractPoisson o2);", "private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}", "static private double dist(double[] a, double[] b) {\n\t\treturn new gov.pnnl.jac.geom.distance.Euclidean().distanceBetween(a, b);\n }", "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "double distance (double px, double py);", "private static final double l2Distance (final double[] p0,\n final double[] p1) {\n assert p0.length == p1.length;\n double s = 0.0;\n double c = 0.0;\n for (int i=0;i<p0.length;i++) {\n final double dp = p0[i] - p1[i];\n final double zi = dp*dp - c;\n final double t = s + zi;\n c = (t - s) - zi;\n s = t; }\n return Math.sqrt(s); }", "public abstract double getDistance(int[] end);", "private int calcDistance()\n\t{\n\t\tint distance = 0;\n\n\t\t// Generate a sum of all of the difference in locations of each list element\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tdistance += Math.abs(indexOf(unsortedList, sortedList[i]) - i);\n\t\t}\n\n\t\treturn distance;\n\t}", "public double computeDistance(Object o){\n \n if (o!=null && o.getClass()==this.getClass()){\n NDimensionalPoint newPoint = (NDimensionalPoint) o;\n if (newPoint.values.size()==values.size()){\n double dist = 0.0;\n for (int i=0;i<values.size();i++){\n dist+=Math.pow(newPoint.getValues().get(i) -values.get(i),2);\n }\n return Math.sqrt(dist);\n }else\n {\n return MAX_DIST;\n }\n }else{\n return MAX_DIST;\n }\n }", "public void setDistance(float dist);", "double getDistanceInMiles();", "protected float getDistance(float distance) {\r\n\t\treturn distance * parent.pixelsPerUnit;\r\n\t}", "double getDistance(int i, int j){\r\n\tdouble d = (coord[i][0]-coord[j][0])*(coord[i][0]-coord[j][0])+ (coord[i][1]-coord[j][1])*(coord[i][1]-coord[j][1]);\r\n\td = Math.sqrt(d);\r\n\treturn d;\r\n}", "double squaredDistanceTo(IMovingObject m);", "private float distance(double startLat, double startLon,\n double endLat, double endLon) {\n // Based on http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf\n // using the \"Inverse Formula\" (section 4)\n int MAXITERS = 20;\n // Convert lat/long to radians\n startLat *= Math.PI / 180.0;\n endLat *= Math.PI / 180.0;\n startLon *= Math.PI / 180.0;\n endLon *= Math.PI / 180.0;\n double a = 6378137.0; // WGS84 major axis\n double b = 6356752.3142; // WGS84 semi-major axis\n double f = (a - b) / a;\n double aSqMinusBSqOverBSq = (a * a - b * b) / (b * b);\n double L = endLon - startLon;\n double A = 0.0;\n double U1 = Math.atan((1.0 - f) * Math.tan(startLat));\n double U2 = Math.atan((1.0 - f) * Math.tan(endLat));\n double cosU1 = Math.cos(U1);\n double cosU2 = Math.cos(U2);\n double sinU1 = Math.sin(U1);\n double sinU2 = Math.sin(U2);\n double cosU1cosU2 = cosU1 * cosU2;\n double sinU1sinU2 = sinU1 * sinU2;\n double sigma = 0.0;\n double deltaSigma = 0.0;\n double cosSqAlpha = 0.0;\n double cos2SM = 0.0;\n double cosSigma = 0.0;\n double sinSigma = 0.0;\n double cosLambda = 0.0;\n double sinLambda = 0.0;\n double lambda = L; // initial guess\n for (int iter = 0; iter < MAXITERS; iter++) {\n double lambdaOrig = lambda;\n cosLambda = Math.cos(lambda);\n sinLambda = Math.sin(lambda);\n double t1 = cosU2 * sinLambda;\n double t2 = cosU1 * sinU2 - sinU1 * cosU2 * cosLambda;\n double sinSqSigma = t1 * t1 + t2 * t2; // (14)\n sinSigma = Math.sqrt(sinSqSigma);\n cosSigma = sinU1sinU2 + cosU1cosU2 * cosLambda; // (15)\n sigma = Math.atan2(sinSigma, cosSigma); // (16)\n double sinAlpha = (sinSigma == 0) ? 0.0 :\n cosU1cosU2 * sinLambda / sinSigma; // (17)\n cosSqAlpha = 1.0 - sinAlpha * sinAlpha;\n cos2SM = (cosSqAlpha == 0) ? 0.0 :\n cosSigma - 2.0 * sinU1sinU2 / cosSqAlpha; // (18)\n double uSquared = cosSqAlpha * aSqMinusBSqOverBSq; // defn\n A = 1 + (uSquared / 16384.0) * // (3)\n (4096.0 + uSquared *\n (-768 + uSquared * (320.0 - 175.0 * uSquared)));\n double B = (uSquared / 1024.0) * // (4)\n (256.0 + uSquared *\n (-128.0 + uSquared * (74.0 - 47.0 * uSquared)));\n double C = (f / 16.0) *\n cosSqAlpha *\n (4.0 + f * (4.0 - 3.0 * cosSqAlpha)); // (10)\n double cos2SMSq = cos2SM * cos2SM;\n deltaSigma = B * sinSigma * // (6)\n (cos2SM + (B / 4.0) *\n (cosSigma * (-1.0 + 2.0 * cos2SMSq) -\n (B / 6.0) * cos2SM *\n (-3.0 + 4.0 * sinSigma * sinSigma) *\n (-3.0 + 4.0 * cos2SMSq)));\n lambda = L +\n (1.0 - C) * f * sinAlpha *\n (sigma + C * sinSigma *\n (cos2SM + C * cosSigma *\n (-1.0 + 2.0 * cos2SM * cos2SM))); // (11)\n double delta = (lambda - lambdaOrig) / lambda;\n if (Math.abs(delta) < 1.0e-12) {\n break;\n }\n }\n float distance = (float) (b * A * (sigma - deltaSigma));\n return distance;\n }", "private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }", "private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }", "private static Double getDistance(Double lng1, Double lat1, Double lng2, Double lat2) {\n double radLat1 = lat1 * RAD;\n double radLat2 = lat2 * RAD;\n double a = radLat1 - radLat2;\n double b = (lng1 - lng2) * RAD;\n double s = 2 * Math.asin(Math.sqrt(\n Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));\n s = s * EARTH_RADIUS;\n s = Math.round(s * 10000) / 10000000.0;\n return s;\n }", "double distance (IPoint p);", "@Override\n\tpublic float getDistance(float[] fv1, float[] fv2) {\n\t\tif(settings.getMetric() == 1){\n\t\t\treturn getL1Distance(fv1, fv2);\n\t\t} else { //metric == 2\n\t\t\treturn getL2Distance(fv1, fv2);\n\t\t}\n\t\t\n\t\t\n\t}", "private static double calculaDistancia(double[] param1, double[] param2){\n\t\tdouble res1= Math.pow((param1[0]-param2[0]), 2);\n\t\tdouble res2= Math.pow((param1[1]-param2[1]), 2);\n\t\tdouble res3= Math.pow((param1[2]-param2[2]), 2);\n\t\tdouble res4= res1 + res2 + res3;\n\t\tdouble res5= res4/3;\n\t\tdouble res6= Math.sqrt(res5);\n\t\treturn res6;\n\t}", "private double distance (double lata, double lona, double latb, double lonb) { \r\n return Math.acos(Math.sin(lata)*Math.sin(latb)+Math.cos(lata)*Math.cos(latb)*Math.cos(lonb-lona))*6371;\r\n }", "public static double getEuclideanDistance(DblArray1SparseVector x, \r\n\t\t DblArray1SparseVector y) {\r\n if (x==null || y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"at least one arg null\");\r\n if (x.getNumCoords()!=y.getNumCoords()) \r\n\t\t\tthrow new IllegalArgumentException(\"args of different dimensions\");\r\n\t\tfinal int n = x.getNumCoords();\r\n double dist = 0.0;\r\n\t\tif (Double.compare(x.getDefaultValue(),y.getDefaultValue())==0) {\r\n\t\t\tfinal int xs_nz = x.getNumNonZeros();\r\n\t\t\tfinal int ys_nz = y.getNumNonZeros();\r\n\t\t\tfinal double defVal = x.getDefaultValue();\r\n\t\t\tint x_ind = 0;\r\n\t\t\tint y_ind = 0;\r\n\t\t\twhile (x_ind<xs_nz || y_ind<ys_nz) {\r\n\t\t\t\tint x_pos = x_ind < xs_nz ? x.getIthNonZeroPos(x_ind) : \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInteger.MAX_VALUE;\r\n\t\t\t\tint y_pos = y_ind < ys_nz ? y.getIthNonZeroPos(y_ind) :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInteger.MAX_VALUE;\r\n\t\t\t\tif (y_pos < x_pos) {\r\n\t\t\t\t\tdouble yi = y.getIthNonZeroVal(y_ind)-defVal;\r\n\t\t\t\t\tdist += yi*yi;\r\n\t\t\t\t\ty_ind++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (x_pos < y_pos) {\r\n\t\t\t\t\tdouble xi = x.getIthNonZeroVal(x_ind)-defVal;\r\n\t\t\t\t\tdist += xi*xi;\r\n\t\t\t\t\tx_ind++;\r\n\t\t\t\t}\r\n\t\t\t\telse { // x_pos==y_pos\r\n\t\t\t\t\tdouble xmyi = y.getIthNonZeroVal(y_ind)-x.getIthNonZeroVal(x_ind);\r\n\t\t\t\t\tdist += xmyi*xmyi;\r\n\t\t\t\t\tx_ind++;\r\n\t\t\t\t\ty_ind++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn Math.sqrt(dist);\r\n\t\t}\r\n for (int i=0; i<n; i++) {\r\n double xi = x.getCoord(i);\r\n double yi = y.getCoord(i);\r\n dist += (xi-yi)*(xi-yi);\r\n }\r\n return Math.sqrt(dist);\t\t\r\n\t}", "public double getMinimumDistance() { return minDistance; }", "Execution getClosestDistance();", "public double distance(InputDatum datum, InputDatum datum2) throws MetricException;", "private Double euclidean(LatitudeLongitude point1, LatitudeLongitude point2) {\n return Double.valueOf(Math.sqrt(Math.pow(point1.getLatitude() - point2.getLatitude(), 2)\n + Math.pow(point1.getLongitude() - point2.getLongitude(), 2)));\n }", "public double distance(InputDatum datum, DoubleMatrix1D vector) throws MetricException;", "private double d(Point a, Point b){\n\t\treturn Math.sqrt(Math.pow(b.getX()-a.getX(),2) + Math.pow(a.getY() - b.getY(), 2));\r\n\t}", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "private double findDistance(int[] pos1, int[] pos2) {\n return sqrt((pos1[0]-pos2[0])*(pos1[0]-pos2[0])+\n (pos1[1]-pos2[1])*(pos1[1]-pos2[1]));\n }", "public double getDistance () {\n return distance;\n }", "@SuppressLint(\"UseValueOf\")\n\tpublic static double distFrom(double lat1, double lng1, double lat2, double lng2) {\n\t double earthRadius = 3958.75;\n\t double dLat = Math.toRadians(lat2-lat1);\n\t double dLng = Math.toRadians(lng2-lng1);\n\t double a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n\t Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n\t Math.sin(dLng/2) * Math.sin(dLng/2);\n\t double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\t double dist = earthRadius * c;\n\n\t int meterConversion = 1609;\n\t \n\t return new Double(dist * meterConversion).doubleValue();\n\t }", "public double distance(double[] vector1, DoubleMatrix1D vector2) throws MetricException;", "@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }", "private int dist(int city1, int city2){\n\t\treturn this.getGraph().getWeight(city1, city2);\n\t}", "@Override\n public void visitConstant(ConstantExpression constantExpression) {\n distance += constantExpression.interpret(context);\n }", "public void setDistanceFunction(DistanceFunction distanceFunction);", "private double distance(DoubleMatrix1D vector, DoubleMatrix1D signal) {\n return getMetric().dissimilarity(vector, signal);\n }", "private static double distance(double lat1, double lat2, double lon1, double lon2,\n\t double el1, double el2) {\n\n\t final int R = 6371; // Radius of the earth\n\n\t Double latDistance = deg2rad(lat2 - lat1);\n\t Double lonDistance = deg2rad(lon2 - lon1);\n\t Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n\t + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2))\n\t * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n\t Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t double distance = R * c * 1000; // convert to meters\n\n\t double height = el1 - el2;\n\t distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\t return Math.sqrt(distance);\n\t}", "public float getDistance() {\r\n return distance;\r\n }", "public double distance(DoubleMatrix1D vector1, DoubleMatrix1D vector2) throws MetricException;", "public int rawDistance() {\r\n\t\tus.fetchSample(usData, 0); // acquire data\r\n\t\tdistance=(int) (usData[0] * 100.0);// extract from buffer, cast to int and add to total\r\n\t\t\t\r\n\t\treturn distance; \r\n\t}", "private double calculateDistance(Example first, Example second) {\n\t\tdouble distance = 0;\n\t\tfor (Attribute attribute : first.getAttributes()) {\n\t\t\tdouble diff = first.getValue(attribute) - second.getValue(attribute);\n\t\t\tdistance += diff * diff;\n\t\t}\n\t\treturn Math.sqrt(distance);\n\t}", "public double distance(Point p){\n\t\treturn (this.minus(p)).magnitude(); //creates a vector between the two points and measures its magnitude\n\t}", "public interface DistanceMeasure {\n\n /**\n * Euclidean distance algorithms to calculate the minium distance. This\n * algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistance(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = a[i] - b[i];\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Euclidean distance algorithms to calculate the minium distance by the\n * absolute methods which used to calculate the difference of two\n * coordinate. This algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistanceAbs(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = Math.abs(a[i] - b[i]);\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Check the two given double array has the same length.\n *\n * @param a given array of coordinates.\n * @param b given array of coordinates.\n * @throws IllegalArgumentException\n */\n default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }\n}", "public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }", "public float getDistance() {\n return distance;\n }", "public double distance(Cell1 a, Cell1 b) {\n\t\tint i, size;\n\t\tsize = b.points.length;\n\n\t\tif (a.points.length != size) {\n\t\t\tthrow new IllegalArgumentException(\"The band lengths are inconsistent.\");\n\t\t}\n\n\t\tdouble distanceFirst, distanceLast, distancesSum;\n\t\tdistanceFirst = VectorDouble.subtract(a.points[0], b.points[0]).norm();\n\t\tdistanceLast = VectorDouble.subtract(a.points[size - 1], b.points[size - 1]).norm();\n\t\tdistancesSum = 0;\n\n\t\tfor (i = 1; i < size - 1; i++) {\n\t\t\tdistancesSum += VectorDouble.subtract(a.points[i], b.points[i]).norm();\n\t\t}\n\n\t\tif ((distanceFirst > 0) || (distanceLast > 0)) {\n\t\t\treturn (distanceFirst + distanceLast + distancesSum) / size;\n\t\t} else {\n\t\t\treturn distancesSum / (size - 2);\n\t\t}\n\t}", "public double distance(DoubleMatrix1D vector, InputDatum datum) throws MetricException;", "protected double distance(Instance i, Instance j, InstanceAttributes atts) {\r\n\r\n\t\tboolean sameMVs = true;\r\n\t\tdouble dist = 0;\r\n\t\tint in = 0;\r\n\t\tint out = 0;\r\n\r\n\t\tfor (int l = 0; l < nentradas && sameMVs; l++) {\r\n\t\t\tAttribute a = atts.getAttribute(l);\r\n\r\n\t\t\tdireccion = a.getDirectionAttribute();\r\n\t\t\ttipo = a.getType();\r\n\t\t\tif (i.getInputMissingValues(l) != j.getInputMissingValues(l))\r\n\t\t\t\tsameMVs = false;\r\n\r\n\t\t\tif (tipo != Attribute.NOMINAL && !i.getInputMissingValues(in)) {\r\n\t\t\t\tdouble range = a.getMaxAttribute() - a.getMinAttribute();\r\n\t\t\t\t// real value, apply euclidean distance\r\n\t\t\t\tdist += ((i.getInputRealValues(in) - j.getInputRealValues(in)) / range)\r\n\t\t\t\t\t\t* ((i.getInputRealValues(in) - j.getInputRealValues(in)) / range);\r\n\t\t\t} else {\r\n\t\t\t\tif (!i.getInputMissingValues(in)\r\n\t\t\t\t\t\t&& i.getInputNominalValues(in) != j\r\n\t\t\t\t\t\t\t\t.getInputNominalValues(in))\r\n\t\t\t\t\tdist += 1;\r\n\t\t\t}\r\n\t\t\tin++;\r\n\t\t}\r\n\r\n\t\tif (sameMVs) {\r\n\t\t\treturn -1;\r\n\t\t} else\r\n\t\t\treturn Math.sqrt(dist);\r\n\t}", "private double dist(Integer unit1, Integer unit2, StateView newstate) {\n\t\t//Creating two arrays of size 2 to store the position of the 2 units\n\t\tint[] pos1 = new int[2];\n\t\tint[] pos2 = new int[2];\n\t\t//Extracting the positional data\n\t\tpos1[0] = newstate.getUnit(unit1).getXPosition();\n\t\tpos1[1] = newstate.getUnit(unit1).getYPosition();\n\t\tpos2[0] = newstate.getUnit(unit2).getXPosition();\n\t\tpos2[1] = newstate.getUnit(unit2).getYPosition();\n\t\t//Calculating the distance\n\t\tdouble dx = Math.abs(pos1[0] - pos2[0]);\n\t\tdouble dy = Math.abs(pos1[1] - pos2[1]);\n\t\tdouble distance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dy, 2.0));\n\t\treturn distance;\n\t}", "private double distance(Double[] e1, Double[] e2) {\n if(e1.length != e2.length)\n throw new IllegalArgumentException(\"e1 and e2 lie in two different dimensional spaces.\");\n\n double sum = 0.0;\n for(int i = 0; i < e1.length; ++i)\n sum += Math.pow(e1[i] - e2[i], 2);\n return Math.sqrt(sum);\n }", "static double distToLine(PointDouble p, PointDouble a, PointDouble b, PointDouble c) {\n // formula: c = a + u * ab\n Vec ap = vector(a, p), ab = vector(a, b);\n double u = dot(ap, ab) / squaredNorm(ab);\n c = translate(a, scale(ab, u)); // translate a to c\n return dist(p, c);\n }", "private double calculeDistanceLinaire(int[] tableauDeIntRandom) {\n double resultat = 0;\n for (int i = 0; i < tableauDeIntRandom.length; i++) {\n resultat += Math.abs(tableauDeIntRandom[i] - tableauDeIntRandom[(i + 1) % tableauDeIntRandom.length]);\n }\n return resultat;\n }", "private double getDistance(double initX, double initY, double targetX, double targetY) {\n\t\treturn Math.sqrt(Math.pow((initX - targetX), 2) + Math.pow((initY - targetY), 2));\n\t}", "private double calculateDis(double lata, double lona, double latb, double lonb){\n\t\tdouble lon2latRatio = Math.cos(lata * 3.14159 / 180.0);\n\t\tdouble milesperDegreeLat = 69.0;\n\t\tdouble milesperDegreeLon = milesperDegreeLat * lon2latRatio;\n\t\tdouble distance = 0.0;\n\t\tdistance = Math.sqrt((milesperDegreeLat * (latb - lata))\n\t\t\t\t* (milesperDegreeLat * (latb - lata))\n\t\t\t\t+ (milesperDegreeLon * (lonb - lona))\n\t\t\t\t* (milesperDegreeLon * (lonb - lona)));\n\t\treturn distance;\n\t}", "public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }", "public final double getDistanceSquared() {\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < position.length; i++)\n\t\t\tsum += position[i] * position[i] * calibration[i] * calibration[i];\n\t\treturn sum;\n\t}", "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "private double getSqEucDist(float[] arr1, float[] arr2, double minDist) {\n\t double dist = 0;\n\t for(int i: dimRngIndxDesc) {\n\t\t dist+= Math.pow(arr1[i]-arr2[i], 2);\n\t\t if(minDist!=-2 && dist>minDist)\n\t\t\t return -1;\n\t }\n\t return dist;\n }", "private float getDistance(SXRNode object)\n {\n float x = object.getTransform().getPositionX();\n float y = object.getTransform().getPositionY();\n float z = object.getTransform().getPositionZ();\n return (float) Math.sqrt(x * x + y * y + z * z);\n }", "public double getMaxSourceDistance();" ]
[ "0.651003", "0.6479325", "0.6478265", "0.6459637", "0.6372877", "0.633454", "0.6161142", "0.6099021", "0.6093956", "0.60865027", "0.60783607", "0.6019449", "0.59973705", "0.59505606", "0.5942718", "0.5919626", "0.59158045", "0.58816224", "0.58725595", "0.5867494", "0.5863139", "0.58569777", "0.5835045", "0.5798264", "0.57963234", "0.57917714", "0.5771778", "0.57653195", "0.5763173", "0.57522804", "0.57477546", "0.5743292", "0.57312226", "0.57124954", "0.571078", "0.5708072", "0.57058907", "0.57045835", "0.569537", "0.5677401", "0.56737214", "0.56664026", "0.56624424", "0.56599724", "0.56463015", "0.56385624", "0.5634125", "0.56261915", "0.5624745", "0.5619331", "0.5616146", "0.5614164", "0.56100976", "0.5601917", "0.55948806", "0.557684", "0.5574929", "0.5573778", "0.55711967", "0.5571121", "0.55634564", "0.55614936", "0.555889", "0.5555423", "0.55524755", "0.55512", "0.5549052", "0.55469364", "0.5540226", "0.5538039", "0.5524665", "0.5518843", "0.5516912", "0.5510072", "0.5497438", "0.5495727", "0.5481556", "0.5476113", "0.5473925", "0.5463488", "0.5461782", "0.5459683", "0.5448823", "0.5448431", "0.5446097", "0.5441493", "0.5441401", "0.5435558", "0.54279023", "0.5426599", "0.5426157", "0.5425507", "0.54250395", "0.5420075", "0.5417463", "0.5415475", "0.5414513", "0.5412605", "0.54099226", "0.5407817", "0.54054195" ]
0.0
-1
TODO Autogenerated method stub
private java.sql.Date convert(Date datet) { 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
Created by Developer Student Club Varshit Ratna(leader) Devaraj Akhil(Core team)
public interface OnClickAddressListener { /** * tell Activity what to do when address is clicked * * @param view */ void onClick(Address addr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private stendhal() {\n\t}", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }", "public void mo4359a() {\n }", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "public void mo38117a() {\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tempolye_details();\r\n\t\tempolye_id(2017,00,2117);\r\n\t\tSystem.out.println(empolye_post(\"Post : Junior Developer\"));\r\n\r\n\t\t \r\n\t}", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public String toString() {\r\n \t\treturn \"\\\"\" + _name + \"\\\" by \" + _creator;\r\n \t}", "private static void cajas() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\tCar myCar = new Car(\"그렌져\");\n\t\tCar yourCar = new Car(\"그렌져\");\n\t\tString bigyo ;\n\t\tDate date = new Date();\n\t\t\n\t\tif(myCar.equals(yourCar.getName()) == true) {\n\t\t\tbigyo = \"같다\";\n\t\t}\n\t\telse{\n\t\t\tbigyo = \"다르다\";\n\t\t}\n\t\t\n\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"MM-dd-YYYY\");\n\t\tString s = MessageFormat.format(\"내 차 [{0}], 니 차 [{1}] 로 {2}\", myCar.getName(), yourCar.getName(), bigyo);\n\t\tString s1 = MessageFormat.format(\"날짜: {0}, 자동차 모델 = {1}, 운전자(홍길동)\", sdf1.format(date), myCar.getName());\n\t\tSystem.out.println(s);\n\t\tSystem.out.println(s1);\n\n\t\tStringTokenizer token = new StringTokenizer(s1,\" =,()\");\n\t\t//문장에 있는 문자들을 문자단위로 구분하여 추출하려할때 쓰는 클래스 StringTokenizer.\n\t\t//StringTokenizer(구분할 문자열 변수명, \"조건들\");\n\t\t//조건들에는 공백문자도 포함하므로 조건과 조건 사이에 공백을 안써도 된다.\n\t\t//즉, 이 문장에서 구분 추출의 조건은 공백문자 / = / , / ( / ) 이다.\n\t\tSystem.out.println(token.countTokens());\n\t\t\n\t\twhile(token.hasMoreTokens()) {\n\t\t\tSystem.out.println(token.nextToken());\n\t\t}\n\t}", "void pramitiTechTutorials() {\n\t\n}", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }", "public static void main(String[] args) {\n Student ram = new Student();\n \n ram.setRollNumber(202);\n ram.setStudentName(\"Rakshitha\");\n ram.setMarkScored(-98);\n ram.setEmail(\"[email protected]\");\n \n \n System.out.println(ram.getMarkScored());\n \n Student shyam = new Student(203,\"Shyam\",97,\"[email protected]\");\n \n System.out.println(shyam.getStudentName());\n System.out.println(shyam.getMarkScored());\n\t}", "public void mo55254a() {\n }", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "private static void oneUserExample()\t{\n\t}", "public Pitonyak_09_02() {\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public static void main(String[] args) {\n\t\tPersonInfo person1 = new PersonInfo(\"Abc\", \"123456\", \"Chinese\");\r\n\t\tperson1.displayInfo();\r\n\t\t\r\n\t\tSystem.out.println(\" \");\r\n\t\t\r\n\t\tPersonInfo person2 = new PersonInfo(\"Shiyu\", \"00000000\", \"Nepalese\");\r\n\t\tperson2.displayInfo();\r\n\t\t\r\n\t\tSystem.out.println(\"Thuis is test change\");System.out.println(\"Thuis is test change\");System.out.println(\"Thuis is test change\");\r\n\t}", "public void mo1531a() {\n }", "public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Add a New Pharmacy\";\n\t\tiDartImage icoImage = iDartImage.PHARMACYUSER;\n\t\tbuildCompHeader(headerTxt, icoImage);\n\t}", "public static void main (String[] arg){\n\n Student student1 = new Student();\n Student student2 = new Student(12345,\"Anh\",\"Pham\");\n Student student3 = new Student(27485,\"New\",\"Student\");\n\n System.out.println(student1);\n System.out.println(student2);\n System.out.println(student3);\n\n //Test Student Group\n long groupCode = 123456;\n Student contactStudent = new Student(987654,\"HyHy\",\"Phan\");\n List<Student> studentList = new ArrayList<>();\n\n StudentGroup newGroup = new StudentGroup(groupCode, contactStudent, studentList);\n newGroup.getInfo();\n newGroup.addStudent(student2);\n newGroup.addStudent(student3);\n newGroup.getInfo();\n }", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSwotTaskDAOInterface swotTaskDAO = new SwotTaskDAO();\n//\t\tSwotActorDAOInterface swotActorDAO = new SwotActorDAO();\n//\t\t\n//\t\tSwotTask swotTask = swotTaskDAO.getSwotTaskByID(1);\n//\t\tList<SwotActor> swotActorList = swotTaskDAO.getAllTaskActors(swotTask);\n//\t\t\n//\t\tfor(SwotActor swotActor:swotActorList) {\n//\t\t\tSwotActorDAOInterface swotActorDAO = new SwotActorDAO();\n//\t\t\tList<SwotActorProperty> actorPropertyList = swotActorDAO.getAllActorPropertys(swotActor);\t\n//\t\t\tfor(SwotActorProperty actorProperty:actorPropertyList) {\t\t//删除属性\n//\t\t\t\tSwotPropertyDAOInterface swotPropertyDAO = new SwotPropertyDAO();\n//\t\t\t\tswotPropertyDAO.deletePropertyByID(actorProperty.getPropertyID());\n//\t\t\t}\t\n//\t\t\tswotActorDAO.deleteActorByID(swotActor.getActorID());\n//\t\t}\n//\t\tswotTaskDAO.deleteTaskByID(1);\n\t\t\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.set(2023, \t\t//年份自动多余,不知缘由\n \t\t1, 2, 0, 0, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n \n\t\tSwotTask swotTask = new SwotTask();\n\t\tswotTask.setTaskName(\"测试用例3\");\n\t\tswotTask.setArgueTime(calendar.getTime());\t\n\t\tswotTaskDAO.addTask(swotTask);\n//\n//\t\tSwotActor swotActor = new SwotActor();\n//\t\tswotActor.setActorName(\"参与者0\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor);\n//\t\t\n//\t\tSwotActor swotActor1 = new SwotActor();\n//\t\tswotActor1.setActorName(\"参与者1\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor1);\n\t\t\n\t\t\n//\t\tList<SwotTask> swotTaskssList = swotActorDAO.getSwotTaskByActorName(\"2\");\n//\t\tfor(SwotTask lists:swotTaskssList) {\n//\t\t\tSystem.out.println(lists.toString());\n//\t\t}\n\t\t\n\t//\tList<SwotActor> swotTasksList = swotActorDAO.getSwotActorByActorName(\"2\");\n//\t\tList<SwotTask> swotTaskList = swotTaskDAO.getAllSwotTasks();\n//\t\tfor(SwotTask lists:swotTaskList) {\n//\t\t\tSystem.out.println(lists.toString());\n//\t\t}\n//\t\t\n//\t\tSwotTask swotTask = swotTaskDAO.getSwotTaskByID(1);\n//\t\tSwotActor swotActor = new SwotActor();\n//\t\tswotActor.setActorName(\"22222\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor);\n\t\t\n\n\t}", "public final void mo51373a() {\n }", "public static void main(String[] args){\r\n Language myLang = new Language(\"Willish\", 5, \"Mars\", \"verb-noun-verb-adjective\");\r\n Mayan mayan = new Mayan(\"Ki'che'\", 2330000);\r\n SinoTibetan sino1 = new SinoTibetan(\"Chinese Tibetan\", 100000);\r\n SinoTibetan sino2 = new SinoTibetan(\"Tibetan\", 200000);\r\n ArrayList<Language> langList = new ArrayList<Language>();\r\n langList.add(myLang);\r\n langList.add(mayan);\r\n langList.add(sino1);\r\n langList.add(sino2);\r\n \r\n for (Language allLangs : langList){\r\n allLangs.getInfo();\r\n }\r\n }", "public static void main(String[] args) {\n\n\n String employeeName = \"Gurcu\";\n String companyName = \"Kucuk Holding\";\n int employeeId = 5;\n String jobTitle = \" CEO \";\n double salary = 100000.5;\n int ssn = 12345678;\n\n System.out.println(\"Employee Name: \"+employeeName);\n System.out.println(\"Company Name: \"+companyName);\n System.out.println(\"Employee Id :\" +employeeId );\n System.out.println(\"Job Title :\"+jobTitle);\n System.out.println(\"Social Security Number:\"+ssn);\n System.out.println(\"Salary:\"+salary);\n\n System.out.println(\"Employee Name:\"+employeeName + \"\\nCompany Name:\"+companyName +\n \"\\nEmployee ID: \" +employeeId + \"\\nJob Title: \" + jobTitle +\n \"\\nSalary:\"+ salary + \"\\nSnn:\" +ssn);\n\n System.out.println(\"==================================================\");\n\n String firstName = \"Zeynep\";\n String lastName = \"Dere\";\n\n System.out.println(\"Full Name: \" + firstName+\" \"+lastName);\n\n\n }", "private TMCourse() {\n\t}", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "public void mo12930a() {\n }", "Petunia() {\r\n\t\t}", "protected void mo6255a() {\n }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "CreationData creationData();", "public static void main(String[] args) {\n Student terrel = new Student(\"Terrel\", 50, 1, 4.0);\n\n// terrel.setName(\"Terrel\");\n// terrel.setGpa(4.0);\n\n System.out.println(terrel.getName() + \" \" + terrel.getNumberOfCredits() + \" \" +terrel.getGpa());\n }", "public static void main(String[] args) {\n\n byte minAge = 21;\n short averageSalery = 8650;\n int distanceBEarthMoon = 238855;\n long nationalDebt = 23050442180309L;\n float interestRate = 3.725f;\n double itemPrice = 49.99;\n boolean genderFemale = true;\n char nameInitials = 'F';\n\n System.out.println(\"Minimum legal age to purchase alcholo in USA is: \" + minAge);\n System.out.println(\"Average monthly salary of an automation engineer in NYC is: \" + averageSalery);\n System.out.println(\"Distance between Earth and Moon in miles is: \" + distanceBEarthMoon);\n System.out.println(\"The national debt of the United States in US dollars is: \" + nationalDebt);\n System.out.println(\"The interest rate in Chase bank is: \" + interestRate);\n System.out.println(\"store item price is : \" + itemPrice );\n System.out.println(\"is your gender female : \" + genderFemale);\n System.out.println(\"name initials : \" + nameInitials);\n\n\n }", "public void create() {\n\t\t\n\t}", "public static void main(String[] args) {\n \n\t\tInstructor instructor = new Instructor();\n\t\tinstructor.id=1;\n\t\tinstructor.firstName=\"ali\";\n\t\tinstructor.lastName=\"Veli\";\n\t\tinstructor.lessons=\"C#\";\n\t\tinstructor.phoneNumber=\"00000000000\";\n\t\tinstructor.email=\"[email protected]\";\n\t\tinstructor.password=\"1222\";\n\t\t\n\t\tStudent student = new Student();\n\t\tstudent.firstName =\"Oya\";\n\t\tstudent.lastName =\"deniz\";\n\n\t\t\n\t\t\n\t\tUserManager userManager = new UserManager();\n\t\tuserManager.add(student);\n\t\tuserManager.add(instructor);\n\t\tUser[] users = {instructor,student};\n\t\t\n\t\tuserManager.allList(users);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public static void main(String[] args) {\n\t\t\t\n\t\t Scanner sc = new Scanner(System.in);\n\t\t\tStudent sv1 = new Student(1,\"Le Huy Hoai\",5.2f,7.2f);\n\t\t\tStudent sv2 = new Student(2,\"Linh Tran\",7.2f,5.5f);\n\t\t\tStudent sv3 = new Student();\n\t\t\t\n\t\t\tSystem.out.println(\"Id sinh vien 3: \");\n\t\t\tsv3.setId(sc.nextInt());\n\t\t\tsc.nextLine();\n\t\t\tSystem.out.println(\"Ten sinh vien 3: \");\n\t\t\tsv3.setName(sc.nextLine());\n\t\t\t\n\t\t\tSystem.out.println(\"Diem ly thuyet sinh vien 3: \");\n\t\t\tsv3.setDiemLT(sc.nextFloat());\n\t\t\tSystem.out.println(\"Diem thuc hanh sinh vien 3: \");\n\t\t\tsv3.setDiemTH(sc.nextFloat());\n\t\t\t\n\t\t\tSystem.out.println(sv1);\n\t\t\tSystem.out.println(sv2);\n\t\t\tSystem.out.println(sv3);\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "public abstract String getCreator();", "private UsineJoueur() {}", "private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }", "public void mo6081a() {\n }", "public static void generateCode()\n {\n \n }", "public static void main(String[] args) { //this is main method, used for running the java\n System.out.println(\"Company Name: Amazon\");\n //print statemnets is used for priniting\n System.out.println(\"Employee Name: Javkhlantugs Jambaa\");\n System.out.println(\"Job Title: SDET\");\n System.out.println(\"Employee ID: 1992128\");\n System.out.println(\"Salary: $1500000\");\n\n\n }", "public static void main(String[] args) {\n\t\tDepartment department1 = new Department ();\n\t\tdepartment1.id = 1;\n\t\tdepartment1.name = \" Marketing \";\n\t\t\n\t\tDepartment department2 = new Department ();\n\t\tdepartment2.id = 2;\n\t\tdepartment2.name = \" Sale \";\n\t\t\n\t\tDepartment department3 = new Department ();\n\t\tdepartment3.id = 3;\n\t\tdepartment3.name = \" Bảo Vệ \";\n\t\t\n\t\t// add data position\n\t\tPosition position1 = new Position ();\n\t\tposition1.id = 1;\n\t\tposition1.name = PositionName.DEVELOPER;\n\t\t\n\t\tPosition position2 = new Position ();\n\t\tposition2.id = 2;\n\t\tposition2.name = PositionName.TEST;\n\t\t\n\t\tPosition position3 = new Position ();\n\t\tposition3.id = 3;\n\t\tposition3.name = PositionName.SCRUM_MASTER;\n\t\t\n\t\tPosition position4 = new Position ();\n\t\tposition4.id = 4;\n\t\tposition4.name = PositionName.PM;\n\t\t\n\t\t\n\t\t// add data Account\n\t\tAccount account1 = new Account() ;\n\t\taccount1.id = 1;\n\t\taccount1.email = \" [email protected] \";\n\t\taccount1.userName = \" thuong \";\n\t\taccount1.fullName = \" Nguyễn Văn Thưởng \";\n\t\taccount1.department = department2;\n\t\taccount1.position = position3;\n\t\taccount1.createDate = LocalDate.now();\n\t\t\n\t\tAccount account2 = new Account() ;\n\t\taccount2.id = 2;\n\t\taccount2.email = \" [email protected] \";\n\t\taccount2.userName = \" Hien \";\n\t\taccount2.fullName = \" Phan Vĩnh Hiển \";\n\t\taccount2.department = department1;\n\t\taccount2.position = position4;\n\t\taccount2.createDate = LocalDate.now();\n\t\t\n\t\tAccount account3 = new Account() ;\n\t\taccount3.id = 3;\n\t\taccount3.email = \" [email protected] \";\n\t\taccount3.userName = \" Thien \";\n\t\taccount3.fullName = \"Lưu Quang Thiện \";\n\t\taccount3.department = department3;\n\t\taccount3.position = position2;\n\t\taccount3.createDate = LocalDate.now();\n\t\t\n\t\tSystem.out.println(account1.toString());\n\t\t\n\t\t// add data Group\n\t\t\n\t\tGroup group1 = new Group ();\n\t\tgroup1.id = 1;\n\t\tgroup1.name = \"Cái Bang\";\n\t\tgroup1.account = account1;\n\t\tgroup1.createDate = LocalDate.now();\n\t\t\t\t\n\t\tGroup group2 = new Group ();\n\t\tgroup2.id = 2;\n\t\tgroup2.name = \"Nga Mi\";\n\t\tgroup2.account = account2;\n\t\tgroup2.createDate = LocalDate.now();\n\t\t\t\t\n\t\tGroup group3 = new Group ();\n\t\tgroup3.id = 3;\n\t\tgroup3.name = \"Thiếu Lâm\";\n\t\tgroup3.account = account3;\n\t\tgroup3.createDate = LocalDate.now();\n\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t// add data GroupAccount\n\t\tGroupAccount grAcc1 = new GroupAccount();\n\t\tgrAcc1.group = group1;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tPerson firstPerson = new Person();//instansiasi by reference variable\n\t\tPerson secondPerson = new Person(\"Rizalddi\", \"Rnensia\", \"Male\", \"Music, Food\", 21);//instansiasi by konstruktor\n\t\tPerson thirdPerson = new Person(\"Arul\", \"Aral\", \"Male\", \"soccer\", 30);//instansiasi by konstruktor\n\t\t\n\t\t\n\t\tfirstPerson.firstName\t= \"Rizaldi\";// instansiasi by reference variable\n\t\tfirstPerson.lastName\t= \"Rnensia\";\n\t\tfirstPerson.age\t\t\t= 29;\n\t\tfirstPerson.gender\t\t= \"Male\";\n\t\tfirstPerson.interest\t= \"Music, food, travel\";\n\t\t\n\t\tSystem.out.println(\"Orang ke 1 : \");\n\t\tfirstPerson.biodata();// instansiasi by method\n\t\tfirstPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 2 : \");\n\t\tsecondPerson.biodata();// instansiasi by method\n\t\tsecondPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 3 : \");\n\t\tthirdPerson.biodata();// instansiasi by method\n\t\tthirdPerson.greeting();\n\t\tthirdPerson.sayThanks();\n\t\t\n\t\tTeacher firstTeacher = new Teacher();\n\t\tfirstTeacher.firstName\t= \"asep\";\n\t\tfirstTeacher.lastName\t= \"Sutiawan\";\n\t\tfirstTeacher.age\t\t= 29;\n\t\tfirstTeacher.gender\t\t= \"Male\";\n\t\tfirstTeacher.interest\t= \"noodles\";\n\t\tfirstTeacher.subject\t= \"Math\";\n\t\t\n\t\tSystem.out.println(\"\\nGuru ke 1 : \");\n\t\tfirstTeacher.biodata();\n\t\tfirstTeacher.greeting();\n\n\t\tStudent firstStudent = new Student(\"Richa\", \"Fitria\", \"Female\", \"Makan\", 20);\n\t\t\n\t\tSystem.out.println(\"\\nMurid ke 1 : \");\n\t\tfirstStudent.biodata();\n\t\tfirstStudent.greeting();\n\t}", "public static void main(String[] args) {\n\r\n\t\t Hasta A = new Hasta.Builder(12345688,\"Ali\",\"Acar\")\r\n\t .yas(25)\r\n\t .Cinsiyet(\"Erkek\")\r\n\t .Adres(\"Akasya Acıbadem Ofis Kuleleri\\n A Blok 24. Kat No:127\\n Acıbadem İstanbul Turkey\")\r\n\t .HastaId(1)\r\n\t .MedeniHal(\"Evli\")\r\n\t .build();\r\n\r\n\t Hasta B = new Hasta.Builder(123456789,\"Kevser\", \"Köse\")\r\n\t .yas(22)\r\n\t .MedeniHal(\"Bekar\")\r\n\t .build();\r\n\r\n\t Hasta C = new Hasta.Builder(145236987,\"Merve\", \"Topal\")\r\n\t .yas(29)\r\n\t .build();\r\n\r\n\t System.out.println(A);\r\n\t System.out.println(B);\r\n\t System.out.println(C);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString name=\"Jhon\";\n\t\t\n\t\tSystem.out.println(name);\n\t\t\n\t\tSystem.out.println(\"The length of nameis= \"+name.length()); // string name.length = index sayisini verir yani 4 \n\t\t\n////////////////\n\t\t\n//****\t//2\n\t\t//Creating String with new key word\n\t\t\n\t\tString name1=new String(\"John1\");\n\t\t\n\t\tSystem.out.println(name1);\n\t\t\n/////////////////////\n\t\t\n//****\tStringin uzunlugunu bulma\n\t\t/* \n\t\t//\t.length() \n//\t\t *This method returns the length of this string. \n//\t\t *The length is equal to the number \n//\t\t *of 16-bit Unicode characters in the string. \n//\t\t */\n\n\t\t \n//**\t\n\t\tint name1Len=name1.length();\n\t\tSystem.out.println(\"The lenght of name1 is= \"+name1Len); // sonuc 5 cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\t\t\n\t\t\n\t\t\n//** \n\t\tString Str1 = new String(\"Welcome Student\");\n\t\tString Str2 = new String(\"Tutorials\" );\n\t\t\n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str1.length()); // 15 cikar\n\t\t \n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str2.length()); // 9 cikar\n\t\t\n////////////////////////\t\t\n\t\t\n//**** Lowercase yapma\t\n\t\t\n\t\t/*\n\t\t * toLowerCase();\n\t\t * This method converts all of the \n\t\t * characters in this String to lowercase \t\n\t\t */\n\t\t \n\t\tString str1=\"HelLo woRld\";\n\t\t\n\t\tSystem.out.println(\"Before:: \"+str1);\n\t\t\n\t\tstr1 = str1.toLowerCase();\n\t\t\n\t\tSystem.out.println(\"After:: \"+str1); // hello world cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\n//////////////////////////////////\n\n//****\t\tUppercase yapma\n\t\t/*\n\t\t * toUpperCase();\n\t\t * This method converts all of the characters in \n\t\t * this String to uppercase\n\t\t */\n\n//**\n\t\tString str3=\"Mohammad\";\n\t\t\n\t\tSystem.out.println(\"Before: \"+str3);\n\t\t\n\t\tstr3=str3.toUpperCase();\n\t\t\n\t\tSystem.out.println(\"After: \"+str3); // MOHAMMAD\n\t\t\n//**\n\t\t\n\t\tString Str = new String(\"Welcome on Board\");\n\t\t\t \n\t\tSystem.out.print(\"Return Value :\" );\n\t\t\n\t\tSystem.out.println(Str.toUpperCase() ); // WELCOME ON BOARD\n\t\t\n//////////////////////////////////////\t\t\n\t\t\n//****\n\t\t\n//\t\t.equalsIgnoreCase();\n\t\t\n//\t\tThis method does not care for capitalization and compare the\n//\t\tcontent only\n\t\t\n//\t\tThis method compares this String to another String, ignoring case\n//\t\tconsiderations. Two strings are considered equal ignoring case if\n//\t\tthey are of the same length, and corresponding characters in the\n//\t\ttwo strings are equal ignoring case.\n\t\t\n//**\t\n\t\tString str7=\"HElLo WoRld\";\n\t\tString str8 = \"HelLo WorLD\";\n\t\t\n\t\tSystem.out.println(str8.equalsIgnoreCase(str7)); //true\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void mo9848a() {\n }", "public static void main(String[] args) {\n \n \n \n Admin admin = new Admin();\n admin.setFirstName(\"Admin\");\n admin.setLastName(\"Admin\");\n admin.setEmail(\"[email protected]\");\n admin.setGender(\"Male\");\n admin.setUserName(\"admin\");\n admin.setPassword(\"7110eda4d09e062aa5e4a390b0a572ac0d2c0220\");\n admin.setPhoneNumber(\"514-999-0000\");\n //cl.setClientCard(new ClientCard(\"12-34-56\", DateTime.now(),cl));\n admin.saveUser();\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public static void listing5_14() {\n }", "private void kk12() {\n\n\t}", "@VTID(13)\r\n int getCreator();", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo21793R() {\n }", "public void mo3376r() {\n }", "public static void main(String[] args) {\n\t\tteam t = new team(\"빵그래\",20,17);\n\t\tt.showCur();\n\t\t/*\n\t\t * 객체배열\n\t\t * 1. 객체배열 크기선언\n\t\t * \t객체[] 객체배열 =new person[5]; //5개 person객체가 들어갈 수 있는 배열\n\t\t * 2. 객체배열 선언, 할당\n\t\t * ex)person[] p = {new person(\"하이맨\"),new person(\"하이맨2\"),new person(\"하이맨3\")}\n\t\t * 3. 객체배열의 통한 메서드 활용\n\t\t * for(int idx=0; idx<p.lenght;idx++){\n\t\t * \tp[idx].printAll(); //특정 배열 객체 내부에 있는 객체한개의 메서드 활용\n\t\t * }\n\t\t * for(person ps:p){\n\t\t * \tp.printAll();\n\t\t * \t}\n\t\t */\n\t\tteam[] tArray01 = new team[3];\n\t\ttArray01[0] = new team(\"두산베어즈\",21,18);\n\t\ttArray01[1] = new team(\"넥센자이언트\",19,18);\n\t\ttArray01[2] = new team(\"기아타이거\",17,14);\n\t\tfor(team tm:tArray01){\n\t\t\ttm.showCur();\n\t\t}\n\t\tteam[] tArray02 = {new team(\"LA다져스\",30,10),\n\t\t\t\t\t\t new team(\"요미우리 자이언츠\",5,27),\n\t\t\t\t\t\t new team(\"삼성라이온즈\",12,16),\t\t\t\n\t\t\t\t\t\t\t};\n\t\tfor(int idx=0; idx<tArray02.length;idx++){\n\t\t\ttArray02[idx].showCur();\n\t\t}\n\t\t\n\n}", "public void mo21795T() {\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "public static void main(String[] args) {\n\t\tStudent student=new Student();\n\t\tstudent.firstName=\"Kübra\";\n\t\tstudent.lastName=\"Dik\";\n\t\tstudent.courses=\"JAVA\";\n\t\tstudent.homework=\"3.hafta \";\n\t\tstudent.cardInformation=5879;\n\t\n\t\t\n\t\n\t\tInstructor instructor=new Instructor();\n\t\tinstructor.firstName=\"Engin\";\n\t\tinstructor.lastName=\"Demiroğ\";\n\t\tinstructor.certificate=\"PMP\";\n\t\tinstructor.cardInformation=1457;\n\t\t\n\t\tUserManager userManager=new UserManager();\n\t\t\n\t\t\n\t\tUser[]users= {student,instructor};\n\t\tuserManager.addMultiple(users);\n\t\tuserManager.addCardInformation(instructor);\n\t\tuserManager.deleteCardInformation(student);\n\t\tuserManager.addCourses(student);\n\t\t\n\t\tInstructorManager instructorManager=new InstructorManager();\n\t\tinstructorManager.addCertificate(instructor);\n\t\n\t\t\n\t\t\n\t\tStudentManager studentManager=new StudentManager();\n\t\tstudentManager.addHomework(student);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tTeacher []human = {new Teacher(\"小李\",\"数据通信\"),new Teacher(\"小赵\",\"计算机网络\"),\n\t\t\t\tnew Teacher(\"小钱\",\"计算国际组成原理\"),new Teacher(\"小舜\",\"数值分析\"),\n\t\t\t\tnew Teacher(\"小舜\",\"结构原理\"),new Teacher(\"小周\",\"英语\"),\n\t\t\t\tnew Teacher(\"小无\",\"汇编\"),new Teacher(\"小郑\",\"毛概\"),\t\n\t\t\t\tnew Teacher(\"小李\",\"计算机网络\"),new Teacher(\"小赵\",\"高等数学\"),\n\t\t\t\tnew Teacher(\"小钱\",\"人文教育\"),new Teacher(\"小舜\",\"历史\"),\n\t\t\t\tnew Teacher(\"小李\",\"人文教育\"),new Teacher(\"小舜\",\"人文教育\")\n\t\t};\n\t\t\n\t\tViceTeacher []vteacher = {new ViceTeacher(\"小李\"),new ViceTeacher(\"小李\"),\n\t\t\t\tnew ViceTeacher(\"小赵\"),new ViceTeacher(\"小钱\"),\n\t\t\t\tnew ViceTeacher(\"小舜\"),new ViceTeacher(\"小周\"),\n\t\t\t\tnew ViceTeacher(\"小无\"),new ViceTeacher(\"小郑\")};\n\t\t\n\t\tTime []ctime = new Time[human.length];\n\t\tfor(int i=0;i<ctime.length;i++) {\n\t\tctime[i] = new Time(human[i].getName(),human[i].getSubject());\n\t\t}\n\t\t\n\t\t//Time.dupCheck(ctime); \n\t\t//Time index;\n\t //index = dupCheck(ctime);\n\t\t\tTime.dupCheck(ctime); //若名字相同但时段冲突,only(时间)。时间段场次划分,即排后N天考试\n\t\t\t\n\t\t Sort.sort(ctime); //按时间段排序以便输出,貌似功能重复\n\t\t \n\t\t\n\t\tString newr[] = new String[ctime.length]; //副考官新数组 \n\t\tViceTeacher.setNum(vteacher); //教师名称数组赋对应的个数值 \n\t\tnewr=ViceTeacher.viceDupCheck(ctime, vteacher); //副考官添加与查重\n\t //ctime[]要换成total[]\n\t\t\n\t\tOutputer.output(newr);\n\t\t\n\t\t/*for(i=0;i<ctime.length;i++) { //总结果输出函数\n\t\tSystem.out.print(\"科目:\"+ctime[i].getMatchSubject()+\" 时间:\"+ctime[i].getTime()+\" 主考官:\"+ctime[i].getMatchName()+\" \");\n System.out.print(\"副考官:\"+newr[i]);\n System.out.println();}*/\n\t\t\n\t\t// TODO Auto-generated method stub\n\t}", "public void mo21785J() {\n }", "public Developer(String developerKey,int pId,String firstName, String lastName) {\r\n\tsuper(pId,firstName,lastName);\r\n\tthis.developerKey=developerKey;\r\n\t\r\n}", "public void createInfoForDeleteInfo(){\n List<String> usernameList=userService.getAllUsers().stream().map(User::getName).collect(Collectors.toList());\n List<String> liveNameList=liveLessonDao.getAllLiveLessonTable().stream().map(LiveLessonTable::getUsername).collect(Collectors.toList());\n for(String a:usernameList){\n if(!liveNameList.contains(a))\n createLiveLessonTableForSignUp(a);\n }\n }", "public static void main(String[] args) {\n\t\tshowInfo(\"홍길동\");\r\n\t\tshowInfo(\"김길동\"); //문자\r\n\t\t\r\n\t\tStudentInfo std = new StudentInfo(); // std 변수를 매개값으로받는\r\n\t\tstd.setStudentName(\"박소현\");\r\n\t\tshowInfo(std);\r\n\t\tstd.setEng(90);\r\n\t\tstd.setMath(95);\r\n\t\tshowInfo(std);\r\n\t\t\r\n\t\tStudentInfo[] stds = new StudentInfo[3]; // 배열을 매개값으로 받는\r\n\t\t\r\n\t\tstds[0] = new StudentInfo(\"김영호\", 77, 88);\r\n\t\tstds[1] = new StudentInfo(\"이영호\", 79, 89);\r\n\t\tstds[2] = new StudentInfo(\"박영호\", 72, 86);\r\n\t\tshowInfo(stds);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t\tEmployee sureshEmployee=new Employee();\n\t\tEmployee rameshEmployee=new Employee();\n\t\tEmployee dhineshEmployee=new Employee();\n\t\t\n\t\tList <Employee>employeeList=new ArrayList<Employee>();\n\t\tdhineshEmployee=rameshEmployee;\n\t\t\n\t\t\n\t\t\n\t\trameshEmployee.setDepartment(\"developer\");\n\t\trameshEmployee.setName(\"ramesh kumar\");\n\t\trameshEmployee.setEmployeeId(1001);\n\t\t\n\t\tsureshEmployee.setEmployeeId(1002);\n\t\tsureshEmployee.setName(\"suresh kumar\");\n\t\t\n\t\temployeeList.add(sureshEmployee);\n\t\temployeeList.add(dhineshEmployee);\n\t\temployeeList.add(rameshEmployee);\n\t\tSystem.out.println(employeeList);\n\t\t\n\t\tfor(int i=0;i<employeeList.size();i++){\n\t\t\tSystem.out.println(employeeList.get(i).getEmployeeId());\n\t\t}\n\t\n\t\tIterator iterator=employeeList.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\t\n\t\tfor(Employee e:employeeList){\n\t\t\tSystem.out.println(e.getEmployeeId());\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// structure /skelton/ frame + work\n\t\t// \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(Integer.toHexString(rameshEmployee.hashCode()));\n\t\t//System.out.println(rameshEmployee == sureshEmployee);\n\t\t//System.out.println(rameshEmployee == dhineshEmployee);\n\t\tSystem.out.println(rameshEmployee.equals(sureshEmployee));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// content \n\t\t\n\t//\tSystem.out.println(rameshEmployee.toString().hashCode());\n\t\t//System.out.println(sureshEmployee.hashCode());\n\t\t//System.out.println(dhineshEmployee.hashCode());\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args)\n {\n Card card1 = new Card( 1000 , \"Lynn\" , 5 , 10 );\n //Test 2 calling getName method to return the name of the card.\n Card card2 = new Card( 1001 , \"May\" , 3 , 30 );\n // Test 3 calling getluxury_Rating method to return the luxury_rating of the card. \n Card card3 = new Card( 1002 , \"Nils\" , 10 , 25 );\n //Test 4 calling getNumber_of_Credits method to return the noc of the card. \n Card card4 = new Card( 1003 , \"Olek\" , 2 , 12);\n \n System.out.println(card1.getCard_Id());\n System.out.println(card2.getName());\n System.out.println(card3.getluxury_Rating());\n System.out.println(card4.getNumber_of_Credits());\n // Calling upon setNumber_of_credits method\n System.out.println(card1.toString());\n card1.setNumber_of_credits(5); \n System.out.println(card1.toString());\n // Calling upon setLuxury_Rating method\n System.out.println(card2.toString());\n card2.setLuxury_Rating(10);\n System.out.println(card2.toString());\n // Calling upon setName method\n System.out.println(card3.toString());\n card3.setName(\"Mary\");\n System.out.println(card3.toString());\n // calling upon setcard_ID method \n System.out.println(card4.toString());\n card4.setcard_ID(1004);\n System.out.println(card4.toString());\n \n \n \n }", "Information createInformation();", "public void mo44053a() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "public static void main(String[] args) {\n\n\n String employeeName = \"Orkhan\";\n String companyName = \"Amazon\";\n int employeeID = 9;\n String jobTitle = \"QA\";\n double salary = 100000.5;\n int ssn = 123456789;\n // employee name : Orkhan\n\n System.out.println(\" Employee Name: \"+employeeName);\n System.out.println(\" Company Name: \"+companyName);\n System.out.println(\" Employee ID: \"+jobTitle);\n System.out.println(\" Salary: \"+salary);\n System.out.println(\" SSN: \"+ ssn);\n\n\n\n/*\nSystem.out.println(\"Employee Name: \" + employeeName + \"\\nCompany Name: \" + companyName + \"\\nEmployee ID: \" + salary + \"\\nSSN: \" + ssn);\n */\n\n System.out.println(\"==========================================================================================================================\");\n String FirstName = \"Yegana\";\n String LastName = \"Musayeva\";\n\n System.out.println(\"My full name is: \" + FirstName + \" \"+ LastName);\n\n\n\n // Full Name: Yegana Musayeva\n\n\n\n }", "public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public void mo21877s() {\n }", "public static void main(String[] args) {\n System.out.println(\"Hi Everyone\");\n //it is needed to be able to work with the team remotely\n System.out.println(\"I am happy to learn something new\");\n //i need to focus on practicing\n }", "private void _generateAStudent_a(int type, int index, String id) {\n writer_.addProperty(CS_P_NAME, _getRelativeName(type, index), false); \n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#name\", _getRelativeName(type, index), false);\t \t \t \t \n }\n writer_.addProperty(CS_P_MEMBEROF,\n _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#memberOf\", _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\t \t \t \t \n }\n writer_.addProperty(CS_P_EMAIL, _getEmail(type, index), false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#email\", _getEmail(type, index), false);\t \t \t \t \n }\n writer_.addProperty(CS_P_TELEPHONE, \"xxx-xxx-xxxx\", false);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#telephone\", \"xxx-xxx-xxxx\", false);\t \t \t \t \n }\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n Opgave3 u = new Opgave3(\"Anders \", \"\", \"Ulsted\");\n System.out.print(u.getFName());\n System.out.print(u.getMName());\n System.out.println(u.getLName());\n System.out.println(u.getInitials());\n System.out.println(u.getUsername());\n }", "public static void main(String[] args) {\n \n \n CuentaPatrimonioImpl cuentapatrimonio = new CuentaPatrimonioImpl();\n String CustomerNo=\"10124\";\n //11337\n //14086\n //10032\n //11337\n \n\n \n// jsonObjeto=fc01.FC01List2(CustomerNo);\n String cadena=cuentapatrimonio.ConsultaCuentasPatrimonio(CustomerNo);\n// System.out.println(str); \n \n// str2= fc01.FC01ACList(str);\n// System.out.println(str2); \n\n \n System.out.println(\"acá terminan la prueba : \" + new Date());\n System.out.println(cadena);\n \n \n \n }", "public void mo21794S() {\n }", "public static void main(String[] args) {\n\t\tPerson p1=new Person(\"Poe\", \"Monywa\");\r\n\t\tPerson p2=new Person(\"Phyo\", \"Yangon\");\r\n\t\tStudent stu=new Student(p1.name,p1.address,\"Foundation Level\",1,100000.0);\r\n\t\t\r\n\t\tStaff stf=new Staff(p2.name,p2.address,\"HH\",100000.0);\r\n\t\tSystem.out.println(\"Student Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stu.name+\"\\nAddress:\"+stu.address+\"\\nProgram:\"+stu.program+\"\\nYear:\"+stu.year+\"\\nFee:\"+stu.fee);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Staff Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stf.name+\"\\nAddress:\"+stf.address+\"\\nSchool:\"+stf.school+\"\\nPay:\"+stf.pay);\r\n\t}", "public static void main(String[] args) {\n\t\tHuman humanOne = new Human(\"Konovalov\", \"Anton\", 1991, true);\r\n\r\n\t\tStudent studentOne = new Student(\"One\", \"Arst\", 1992, true, \"It\", 3);\r\n\t\tStudent studentTho = new Student(\"Tho\", \"Adsart\", 1993, true, \"It\", 3);\r\n\t\tStudent studentThree = new Student(\"Three\", \"Adrt\", 1994, true, \"It\", 3);\r\n\t\tStudent studentFour = new Student(\"Four\", \"Agfrt\", 1995, true, \"It\", 3);\r\n\t\tStudent studentFive = new Student(\"Five\", \"Asrt\", 1996, true, \"It\", 3);\r\n\t\tStudent studentSix = new Student(\"Six\", \"Arrt\", 1997, false, \"It\", 3);\r\n\t\tStudent studentSeven = new Student(\"Seven\", \"Aeqrt\", 1998, true, \"It\", 3);\r\n\t\tStudent studentEight = new Student(\"Eight\", \"Aeqwrt\", 1999, true, \"It\", 3);\r\n\t\tStudent studentNine = new Student(\"Nine\", \"Areqt\", 1992, false, \"It\", 3);\r\n\t\tStudent studentTen = new Student(\"Ten\", \"Aeqrt\", 1993, true, \"It\", 3);\r\n\t\tStudent studentEleven = new Student(\"Eleven\", \"Aehrt\", 1991, true, \"It\", 3);\r\n\r\n\t\tGroup group = new Group();\r\n\t\ttry {\r\n\t\t\tgroup.add(studentOne);\r\n\t\t\tgroup.add(studentTho);\r\n\t\t\tgroup.add(studentThree);\r\n\t\t\tgroup.add(studentFour);\r\n\t\t\tgroup.add(studentFive);\r\n\t\t\tgroup.add(studentSix);\r\n\t\t\tgroup.add(studentSeven);\r\n\t\t\tgroup.add(studentEight);\r\n\t\t\tgroup.add(studentNine);\r\n\t\t\t// group.add(studentTen);\r\n\t\t\t// group.add(studentEleven);\r\n\t\t\t//group.addNewStudent();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error, more than 10 can not be created\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(group);\r\n//\t\tgroup.sort();\r\n//\t\tSystem.out.println(group);\r\n//\t\t\r\n//\t\tStudent [] arrayStudentArmy= group.goToArmy(group);\r\n//\t\tfor (Student student : arrayStudentArmy) {\r\n//\t\t\tSystem.out.println(student);\r\n//\t\t}\r\n\t\t\r\n\t\tgroup.fileSave();\r\n\t\t\r\n\t\tGroup groupFromFile=new Group();\r\n\t\tgroupFromFile.newGroupStudent();\r\n\t\tSystem.out.println(groupFromFile);\r\n\t\r\n\r\n\t}", "void kiemTraThangHopLi() {\n }", "FighterInfo() {\r\n\t}", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public static void main(String[] args) {\n StudInfo kevin = new StudInfo();\n \n kevin.setName(\"Kevin Wang\");\n kevin.setID(\"990141626\");\n \n Address kevinAddress = new Address();\n kevinAddress.setStreet(\"17 Nassau Drive\");\n kevinAddress.setCity(\"Great Neck\");\n kevinAddress.setState(\"NY\");\n kevinAddress.setZip(\"11021\");\n kevin.setAddress(kevinAddress);\n \n System.out.println(kevin);\n \n \n \n System.out.println(\"\\n\\n\\n\");\n \n \n \n // Shizune is obviously the best, she just had a bad route.\n StudInfo shizune = new StudInfo();\n \n shizune.setName(\"Shizune Hakamichi\");\n shizune.setID(\"666666666\");\n \n Address shizuneAddress = new Address();\n shizuneAddress.setStreet(\"Some large house\");\n shizuneAddress.setCity(\"Yamaku???\");\n shizuneAddress.setState(\"BI\");\n shizuneAddress.setZip(\"12345\");\n shizune.setAddress(shizuneAddress);\n \n System.out.println(shizune);\n }", "public void mo9233aH() {\n }" ]
[ "0.59330577", "0.58082205", "0.571709", "0.56589746", "0.56576574", "0.56576174", "0.56304455", "0.5617025", "0.55885416", "0.5587847", "0.5587585", "0.54966396", "0.5492586", "0.54869026", "0.546897", "0.5465409", "0.54605496", "0.5451478", "0.5444257", "0.5444257", "0.5444257", "0.5444257", "0.5444257", "0.5444257", "0.5444257", "0.5394008", "0.5393379", "0.53845304", "0.537523", "0.53674287", "0.5366437", "0.5363858", "0.53617275", "0.5358628", "0.53505105", "0.535033", "0.5350022", "0.5347741", "0.5347741", "0.5344672", "0.5338662", "0.5331151", "0.5319129", "0.53172725", "0.53153646", "0.5313222", "0.5306494", "0.5302747", "0.5302589", "0.5298075", "0.5297635", "0.52943766", "0.5285091", "0.5281999", "0.52732825", "0.5269563", "0.52652425", "0.52620006", "0.5259621", "0.52545357", "0.52508265", "0.5244378", "0.5244132", "0.5235674", "0.52350754", "0.5232406", "0.5230755", "0.5228205", "0.52255803", "0.52157557", "0.52132183", "0.5212486", "0.5209265", "0.5207263", "0.5200867", "0.5199536", "0.5194369", "0.5193231", "0.5190014", "0.5189033", "0.51887214", "0.51833427", "0.51829374", "0.51825553", "0.5181788", "0.51804507", "0.51792973", "0.517429", "0.51733285", "0.5173216", "0.5168739", "0.5165429", "0.51651084", "0.5163367", "0.5162234", "0.51615185", "0.5160984", "0.5155496", "0.5154113", "0.5153555", "0.51505864" ]
0.0
-1
tell Activity what to do when address is clicked
void onClick(Address addr);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAddressClicked(int position) {\n }", "private void onContactAddressClicked() {\n Uri geoLocation = Uri.parse(\"geo:0,0?q=\" +\n Uri.encode(this.contact.getStreet()) + \", \" +\n Uri.encode(Integer.toString(this.contact.getZip())) + \" \" +\n Uri.encode(this.contact.getCity()) + \", \" +\n Uri.encode(this.contact.getCanton())\n );\n Log.d(\"ShowContactActivity\", \"Parsed URI for Maps: \" + geoLocation.toString());\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(geoLocation);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View v) {\n if(returnResult == 999){ // No buttons has been clicked\n toast = Toast.makeText(MainActivity.this, \"Please press the \\\"ADDRESS\\\" button\", Toast.LENGTH_LONG);\n toast.show();\n }else if(returnResult == RESULT_CANCELED){ // Result from the second activity was empty\n toast = Toast.makeText(MainActivity.this, \"Invalid input, please click \\\"ADDRESS\\\" button\", Toast.LENGTH_LONG);\n toast.show();\n }else if(returnResult == RESULT_OK){ // Result from the second activity was non-empty\n // Start new activity with implicit intent that handles geo scheme for URI\n Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(\"geo:0,0?q=\" + Uri.encode(address)));\n startActivity(i);\n }\n }", "@Override \n\t public void onClick(DialogInterface dialog, int which) {\n\t \tIntent intent = new Intent(MyActivity.this,ConAddressChange.class);\n\t \t\n\t \tstartActivity(intent);\n\t \t\n\t }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tswitch (view.getId()) {\n\t\t\tcase R.id.ll_back1:\n\t\t\t\thideKeyBoard();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.tv_complete:// 完成1\n\t\t\t\thideKeyBoard();\n\t\t\t\tcommitAddressParams(false);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.tv_complete2:// 完成2\n\t\t\t\thideKeyBoard();\n\t\t\t\tcommitAddressParams(false);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.rl_delete:// 删除地址\n\t\t\t\tshowDelAddressDialog();\n\t\t\t\tbreak;\n\t\t\tcase R.id.rl_area:// 选择服务区域\n\t\t\t\thideKeyBoard();\n\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(AddressManageActivity.this,\n\t\t\t\t\t\tAddressSearchAreaActivity.class);\n\t\t\t\tstartActivityForResult(\n\t\t\t\t\t\tintent,\n\t\t\t\t\t\tAddressSearchAreaActivity.REQUEST_SELECT_ADDRESS_MANAGER);\n\t\t\t\t// rl_wheel.setVisibility(View.VISIBLE);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.tv_sex_man:// 男士\n\t\t\t\tchangeSexType(0);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.tv_sex_woman:// 女士\n\t\t\t\tchangeSexType(1);\n\t\t\t\tbreak;\n\t\t\tcase R.id.bt_shezhimoren:// 设为默认地址\n\t\t\t\thideKeyBoard();\n\t\t\t\tcommitAddressParams(true);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public interface OnClickAddressListener {\n /**\n * tell Activity what to do when address is clicked\n *\n * @param view\n */\n void onClick(Address addr);\n}", "public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n\n Bundle extras = getIntent().getExtras();\n mIntentString =(Address)extras.get(\"ADDRESS\");\n \n \n switch(position){\n case 4:{\n myIntent = new Intent(this, DCRRC.class);\n startActivity(myIntent);\n break;\n }\n \n }\n Toast.makeText(getApplicationContext(),mIntentString.getLocality(), Toast.LENGTH_SHORT).show();\n\n\n \n }", "@Override\n public void onPanelClicked(@NonNull Address address) {\n\n final Intent intent = new Intent();\n intent.putExtra(MapActivity.EXTRA_ADDRESS, address);\n\n if(getIntent() != null){\n intent.putExtra(MapActivity.EXTRA_STATE, getIntent().getIntExtra(EXTRA_STATE, MapFragmentState.UNKNOWN));\n }\n\n setResult(RESULT_OK, intent);\n finish();\n }", "public void onClick(View v) {\n\t\t\t\r\n\t\t\tLog.i(\"click\", \"click!\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tpopView.setVisibility(View.GONE); \r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = ActivityMain.HANDLER_MSG_WHAT_START_ROUTE;\r\n\t\t\t\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putInt(ActivityMain.BUNDLE_KEY_LATE6, focusItem.getPoint().getLatitudeE6());\r\n\t\t\tbundle.putInt(ActivityMain.BUNDLE_KEY_LONGE6, focusItem.getPoint().getLongitudeE6());\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\t\r\n\t\t\tActivityMain.handlerRef.sendMessage(msg);\r\n\r\n\t\t\tPrefProxy.Address address = (new PrefProxy()).new Address();\r\n\t\t\t\r\n\t\t\taddress.address = focusItem.getTitle();\r\n\t\t\t\r\n\t\t\taddress.late6 = focusItem.getPoint().getLatitudeE6();\r\n\t\t\t\r\n\t\t\taddress.longe6 = focusItem.getPoint().getLongitudeE6();\r\n\t\t\t\r\n\t\t\tPrefProxy.updateRecentAddress(context, address);\r\n\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.iv_address_to_home:\n\t\t\tIntent intent1 = new Intent();\n\t\t\tintent1.setClass(this, MainActivity.class);\n\t\t\tstartActivity(intent1);\n\t\t\tbreak;\n\t\tcase R.id.iv_address_return_mymarket:\n\t\t\tthis.finish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(MainActivity.this, AddressActivity.class);\n startActivityForResult(i,2);\n\n }", "@OnClick(R.id.btn_show_addresses)\n public void onClickBtnShowAddress(){\n mainPresenter.verificaEndereco();\n /* parte de codigo desncessario devido a implementacao do MVP\n verifica se há endereços cadastrados antes executar a activity\n if(lstAddresses.size() <= 0){\n Toast.makeText(MainActivity.this, \"Não há endereços cadastrados\", Toast.LENGTH_SHORT).show();\n }else{\n //abre a ShowAddressActivity enviando a lista de endereços\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }\n */\n\n }", "@OnClick(R.id.btn_add_address)\n public void onClickBtnAddAddress(){\n Intent openAddAddressActivity = new Intent(MainActivity.this, AddAddressActivity.class);\n startActivityForResult(openAddAddressActivity, RC_ADD_ADDRESS);\n }", "public void passAddress( ){\n\n Intent intent = new Intent(MapsActivity.this,ShoppingActivity.class);\n String address2=address;\n double latitude = mLastKnownLocation.getLatitude();\n double longitude = mLastKnownLocation.getLongitude();\n\n intent.putExtra(\"Address\", address2);\n intent.putExtra(\"Latitude\", latitude);\n intent.putExtra(\"Longitude\", longitude);\n startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n add_address_handler.sendMessage(msg);\n }", "@Override\n public void onClick(View view) {\n String geoUri = \"http://maps.google.com/maps?q=loc:\" + 18.5155346 + \",\" + 73.7836165 + \" (\" + \"Manyavar\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));\n mcontext.startActivity(intent);\n\n }", "@OnClick(R.id.fabAdd)\n void onClickAdd() {\n Intent addAddressIntent = new Intent(this, AddAddressActivity.class);\n startActivity(addAddressIntent);\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString addrDetails=getAddrDetail();\r\n\t\t\t\t\t\tLoger.i(\"youlin\",\"addrDetails-->\"+addrDetails);\r\n\t\t\t\t\t\tif(addrDetails!=null){\r\n\t\t\t\t\t\t\tAllFamilyDaoDBImpl curfamilyDaoDBImpl = new AllFamilyDaoDBImpl(PropertyRepairActivity.this);\r\n\t\t\t\t\t\t\tAllFamily currentFamily = curfamilyDaoDBImpl.getCurrentAddrDetail(addrDetails);\r\n\t\t\t\t\t\t\tLoger.i(\"youlin\",\"11111111111-->\"+currentFamily.getEntity_type()+\" \"+currentFamily.getPrimary_flag());\r\n\t\t\t\t\t\t\tif(currentFamily.getEntity_type()==1 && currentFamily.getPrimary_flag()==1){\r\n\t\t\t\t\t\t\t\tstartActivity(new Intent(PropertyRepairActivity.this,PropertyRepairAddActivity.class).addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT));\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tshowAddDialog();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tshowAddDialog();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n if (!mTrackingLocation) {\n iniciarLocal();\n //Intent it = new Intent(Intent.ACTION_WEB_SEARCH);\n //it.putExtra(SearchManager.QUERY, \"Lojas Geek próximas \"+ lastAdress);\n //startActivity(it);\n } else {\n pararLocal();\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 0;\n add_address_handler.sendMessage(msg);\n }", "@Override\n public void onClick(View v) {\n Intent r3page = new Intent(v.getContext(), No1ShipStreet.class);\n startActivity(r3page);\n }", "public interface OnAddressClickListener {\n void onAddressClick(String address);\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, PhoneSetActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n String label = response.body().getEventList().get(0).getEventName();\n String strUri = \"http://maps.google.com/maps?q=loc:\" + response.body().getEventList().get(0).getEventLatitude() + \",\" + response.body().getEventList().get(0).getEventLongitude() + \" (\" + label + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strUri));\n\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n startActivity(intent);\n\n\n }", "@Override\n public void onClick(View arg0) {\n gps = new GPSTracker(AddressBook_add.this);\n\n // check if GPS enabled\n if(gps.canGetLocation()){\n\n latitude = gps.getLatitude();\n longitude = gps.getLongitude();\n\n // \\n is for new line\n // Toast.makeText(getApplicationContext(), \"Your Location is - \\nLat: \" + latitude + \"\\nLong: \" + longitude, Toast.LENGTH_LONG).show();\n }else{\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gps.showSettingsAlert();\n }\n\n latitude = gps.getLatitude();\n longitude = gps.getLongitude();\n \n \n \n\n\n List <Address> list = null;\n try {\n list = gc.getFromLocation(latitude,longitude,1);\n if(list!=null) {\n\n Address address = list.get(0);\n String locality = address.getLocality();\n String sublocality = address.getSubLocality();\n Log.d(\"locality\", locality+\" \"+sublocality);\n Intent i = new Intent(AddressBook_add.this, AddCompleteAddress.class);\n Bundle extras = new Bundle();\n extras.putString(LOCALITY, locality);\n extras.putString(SUBLOCALITY, sublocality);\n i.putExtras(extras);\n\n startActivity(i);\n }else{\n\n Toast.makeText(gps, \"Try Again.!!!\", Toast.LENGTH_SHORT).show();\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n\n\n //Toast.makeText(getApplicationContext(),\"loca \" + locality + \"sublocal \" + sublocality , Toast.LENGTH_LONG).show();\n }", "@OnClick({R.id.address_img, R.id.address})\n void OnClickMap() {\n // Open location on map\n Intent mapIntent=new Intent(Intent.ACTION_VIEW);\n mapIntent.setData(Uri.parse(\"geo:0,0?q=\" + getString(R.string.latitude) + \",\"\n + getString(R.string.longitude)));\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0, 0?q=Animal+Shelter+near+me\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "public void onContactClick(View v){\n // Launch the Contact activity\n onAnyClick(Contact.class);\n }", "public void onCurrentStreetClick (View view) {\n buttonsWrapper.setVisibility(View.GONE);\n if(mCurrentLocation !=null && !fetchAddressRunning) {\n fetchAddressRunning = true;\n startFetchAddressIS();\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, ATM_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tAfAddress a = mAddresses.get(which);\n\t\t\t\t\t\t\t\tContentResolver resolver = mContext.getContentResolver();\n\t\t\t\t\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\t\t\t\t\tvalues.put(AfLocationsColumns.LATITUDE, a.latitude);\n\t\t\t\t\t\t\t\tvalues.put(AfLocationsColumns.LONGITUDE, a.longitude);\n\t\t\t\t\t\t\t\tvalues.put(AfLocationsColumns.TITLE, a.title);\n\t\t\t\t\t\t\t\tvalues.put(AfLocationsColumns.TITLE_DETAILED, a.title_detailed);\n\t\t\t\t\t\t\t\tresolver.insert(AfLocations.CONTENT_URI, values);\n\n\t\t\t\t\t\t\t\tgetLoaderManager().restartLoader(LOADER_ID,null,mCallbacks);\n\t\t\t\t\t\t\t\tgetListView().setSelection(getListView().getCount() - 1);\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(View arg0) {\n switch (arg0.getId()) {\n case R.id.r3:\n Intent loactionAcIntent = new Intent();\n loactionAcIntent.setClass(mContext, CrmVisitorFromGaodeMap.class);\n startActivityForResult(loactionAcIntent, 1015);\n break;\n\n case R.id.txt_comm_head_right:\n if (null != php_Address && !php_Address.equals(\"\") && postState && php_Lng != null && php_Lat != null) {\n\n // if(mAdapter.mPicList.size()>0){\n CustomDialog.showProgressDialog(mContext, \"签到中...\");\n postCustomerInfo();\n // }\n // else{\n // CustomToast.showShortToast(mContext, \"请上传照片\");\n // }\n\n } else {\n CustomToast.showShortToast(mContext, \"请选择签到位置\");\n }\n\n default:\n break;\n }\n }", "@Override\n public void onClick(View v) {\n if(Constants.haveConfirmed){\n Constants.haveConfirmed = false;\n setResult(Activity.RESULT_OK);\n finish();\n }else{\n Toast.makeText(MapChoosePointActivity.this,\"请先选择农田地址\",Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onClick(View v) {\n Intent activityIntent = new Intent(MainActivity.this, LocalList.class);\n// activityIntent.putExtra(\"reps\", getInfo(MainActivity.this, link));\n activityIntent.putExtra(\"zipcode\", zipcode.getText().toString());\n startActivity(activityIntent);\n }", "@Override\n public void onClick(View view) {\n\n Intent intent=new Intent(context, Message_and_Dial.class);\n intent.putExtra(\"Contact Name\", contact.get(position).toString());\n intent.putExtra(\"Phone Number\", contact_num.get(position).toString());\n context.startActivity(intent);\n\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "@Override\n public void onClick(View v) {\n Uri gmmIntentUri = Uri.parse(\"geo:37.7749,-122.4194\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\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}", "public void onItemClick (AdapterView av, View v, int arg2, long arg3)\r\n {\n String info = ((TextView) v).getText().toString();\r\n String address = info.substring(info.length() - 17);\r\n //send a message to the next activity to start it\r\n Intent i = new Intent(DeviceList.this, ManualMode.class);\r\n //change the activity\r\n i.putExtra(EXTRA_ADDRESS, address); //this will be received at ledControl (class) Activity\r\n startActivity(i);\r\n }", "@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tCityTownActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLatLng srclatlng = getIntent().getParcelableExtra(\"currentlatlng\");\n\t\t\t\tLatLng destlatlng = getIntent().getParcelableExtra(\"latlng\");\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + srclatlng.latitude + \",\"\n\t\t\t\t\t\t+ srclatlng.longitude + \"&daddr=\" + destlatlng.latitude + \",\" + destlatlng.longitude));\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View view) {\n String identification = etIdentification.getText().toString();\n String address = etAddress.getText().toString();\n Integer port = Integer.parseInt(etPort.getText().toString());\n\n launchChatActivity(identification, address, port);\n }", "@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (yelpObjs != null) {\n\t\t\t\t\tYelpObject obj = yelpObjs.get(mPager.getCurrentItem());\n\t\t\t\t\tif (mLocationListener.isCurrentLocation()) {\n\t\t\t\t\t\tLatLng currLoc = mLocationListener.getCurrentLocation();\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc.latitude + \",\"\n\t\t\t\t\t\t + currLoc.longitude + \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString currLoc = mLocationListener.getInputLocation().replace(' ', '+');\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc\n\t\t\t\t\t\t \t\t+ \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.iv_back2:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnaddok:\r\n\t\t\tSet<String> keys = MyApplication.maps.keySet();\r\n\t\t\tif(keys!=null&&keys.size()>0)\r\n\t\t\t{\r\n\t\t\t\tif(keys.contains(\"ShouHuoAddressActivity\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tActivity activity = MyApplication.maps.get(\"ShouHuoAddressActivity\");\r\n\t\t\t\t\tactivity.finish();\r\n\t\t\t\t} ;\r\n\t\t\t}\r\n\r\n\r\n\t\t\tif(TextUtils.isEmpty(tvName.getText().toString()))\r\n\t\t\t{\r\n\t\t\t\tsToast(\"收货人名不能为空\");\r\n\t\t\t}else if(spinner_sheng.getSelectedItemPosition()==0)\r\n\t\t\t{\r\n\t\t\t\tsToast(\"请选择省份\");\r\n\t\t\t}else if(spinner_shi.getSelectedItemPosition()==0)\r\n\t\t\t{\r\n\t\t\t\tsToast(\"请选择城市\");\r\n\t\t\t}else if(TextUtils.isEmpty(spinner.getText().toString()))\r\n\t\t\t{\r\n\t\t\t\tsToast(\"请输入详细地址\");\r\n\t\t\t}\r\n\t\t\telse if(TextUtils.isEmpty(et_kahao.getText().toString().trim()))\r\n\t\t\t{\r\n\t\t\t\tsToast(\"请输入手机号\");\r\n\t\t\t}else if(et_kahao.getText().toString().trim().toString().length()!=11)\r\n\t\t\t{\r\n\t\t\t\tsToast(\"手机号输入错误\");\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tMap<String, String> par = new HashMap<String, String>();\r\n\r\n\t\t\t\tif(!TextUtils.isEmpty(update)&&update.equals(\"yes\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tpar.put(\"id\", getIntent().getStringExtra(\"id\"));\r\n\t\t\t\t\tinterfaceName = \"member_address_modify\";\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tpar.put(\"id\", LoginUser.getInstantiation(getApplicationContext())\r\n\t\t\t\t\t\t\t.getLoginUser().getUserId());\r\n\t\t\t\t\tinterfaceName = \"member_address_add\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpar.put(\"consignee\", tvName.getText().toString().trim());\r\n\t\t\t\tpar.put(\"address\", spinner.getText().toString().trim());\r\n\t\t\t\tpar.put(\"province\",sslist.get(spinner_sheng.getSelectedItemPosition()).get(\"shengname\"));\r\n\t\t\t\tpar.put(\"city\", slist.get(spinner_shi.getSelectedItemPosition()).get(\"shengname\"));\r\n\t\t\t\tpar.put(\"wechat\", \"\");\r\n\t\t\t\tpar.put(\"mobile\", et_kahao.getText().toString().trim());\r\n\r\n\t\t\t\tHttpConnect.post(this, interfaceName, par, new Callback() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onResponse(Response arg0) throws IOException {\r\n\r\n\t\t\t\t\t\tJSONObject json = JSONObject.fromObject(arg0.body().string());\r\n\r\n\t\t\t\t\t\tif(json.getString(\"status\").equals(\"success\"))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tshopType = getIntent().getStringExtra(\"shopType\");\r\n\t\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\t\tshopType = \"3\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tIntent intent = new Intent(AddShouHuoAddressActivity.this,ShouHuoAddressActivity.class);\r\n\t\t\t\t\t\t\tintent.putExtra(\"shopType\",shopType);\r\n\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t}else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsToast(\"失败...\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Request arg0, IOException arg1) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tsToast(\"失败\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void onClick(View irrelevant)\n {\n Intent myIntent = new Intent(MainActivity.this, OptionsActivity.class);\n inputData = (EditText) findViewById(R.id.DataInput);\n String inputAddressString = inputData.getText().toString();\n\n // Create a bundle to pass in data to results activity\n Bundle infoBundle = new Bundle();\n infoBundle.putString(\"inputAddress\", inputAddressString);\n myIntent.putExtras(infoBundle);\n startActivity(myIntent);\n\n // Old code to show toast message of user input\n /*\n inputData = (EditText) findViewById(R.id.DataInput);\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.TOP| Gravity.LEFT, 0, 0);\n toast.makeText(MainActivity.this, inputData.getText(), toast.LENGTH_SHORT).show();\n */\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1073\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onClick(View v) {\n final Bundle extras = (mExtras == null) ? new Bundle() : mExtras;\n\n if (mQueryHandler != null) {\n if (mContactPhone != null) {\n extras.putString(EXTRA_URI_CONTENT, mContactPhone);\n mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP_AND_TRIGGER, extras,\n Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, mContactPhone),\n PHONE_LOOKUP_PROJECTION, null, null, null);\n } else if (mContactUri != null) {\n mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP_AND_TRIGGER, extras, mContactUri,\n PHONE_LOOKUP_PROJECTION, null, null, null);\n }\n }\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\t\tpublic void onClicked(final View me) {\r\n\t\t\t\tSDStreetNumber.this.setResult(SUBACTIVITY_RESULTCODE_UP_ONE_LEVEL);\r\n\t\t\t\tSDStreetNumber.this.finish();\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tif(checkNetworkState()){\n\t\t\t\t\t\tSearchUtil.getInstance().setSearchtype(serchtype);\n\t\t\t\t\t\tSearchUtil.getInstance().setCallbacklabel(label1);\n\t\t\t\t\t\tIntent intent=new Intent(mContext,SearchResultActivity.class);\n\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t((Activity) mContext).finish();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tToast.makeText(mContext, mContext.getResources().getString(R.string.Broken_network_prompt), 0).show();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getActivity(), ContactAdd.class);\n startActivityForResult(intent, 10001);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) \n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tcontext = this;\n\n\t\tsetContentView(R.layout.edit_address_activity);\n\n\t\tViewUtils.inject(this);\n\t\tbtn_save.setOnClickListener(clickListener_actionbar);\n\t\tactionbarInit();\n\t\tll_address.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(context, WheelActivity.class);\n\t\t\t\tintent.putExtra(\"type\", 4);\n\t\t\t\tstartActivityForResult(intent, 102);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + location.get(position).getAddress() + \", Madrid, Spain\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }", "public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView mTextViewId = view.findViewById(R.id.hidden_nearby_id);\n TextView mTextViewName = view.findViewById(R.id.text_nearby_name);\n TextView mTextViewAddress = view.findViewById(R.id.text_nearby_address);\n\n Intent intent = new Intent(LocateDoctorActivity.this, DoctorInfoActivity.class);\n\n //pass intent extra(doctorID)\n intent.putExtra(\"doctorId\", mTextViewId.getText().toString());\n intent.putExtra(\"doctorName\", mTextViewName.getText().toString());\n intent.putExtra(\"doctorAddress\", mTextViewAddress.getText().toString());\n startActivity(intent);\n\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1091\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Log.i(\"click\",\"\"+placesAdaptor.getItem(i).toString());\n //TODO: set intent if needed\n //hard code to geisel details page\n\n Intent intent = new Intent(getApplicationContext(),LandmarkDetailsActivity.class);\n intent.putExtra(\"placeName\", \"\"+placesAdaptor.getItem(i).toString());\n //hard code to geisel details page\n startActivity(intent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif(checkNetworkState()){\n\t\t\t\t\t\t\tSearchUtil.getInstance().setSearchtype(serchtype);\n\t\t\t\t\t\t\tSearchUtil.getInstance().setCallbacklabel(label2);\n\t\t\t\t\t\t\tIntent intent=new Intent(mContext,SearchResultActivity.class);\n\t\t\t\t\t\t\tmContext.startActivity(intent);\t\t\t\t\t\t\n\t\t\t\t\t\t\t((Activity) mContext).finish();\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tToast.makeText(mContext, mContext.getResources().getString(R.string.Broken_network_prompt), 0).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch(v.getId()){\r\n\t\t\tcase R.id.search_contact_title_back:\r\n\t\t\t\tsearch_contact.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = null,chooser = null;\n\t\t\t\tintent = new Intent(android.content.Intent.ACTION_VIEW);\n\t \t\t//For any Action\n\t \t\tintent.setData(Uri.parse(\"geo:27.961429,76.402788\"));\n\t \t\tchooser = Intent.createChooser(intent,\"MAPS Launch\");\n\t \t\tstartActivity(chooser);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t Uri.parse(\"http://maps.google.com/maps?saddr=\"+slat+\",\"+slong+\"&daddr=\"+dlat+\",\"+dlong));\n\t\t\t\t\tintent.setComponent(new ComponentName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\"));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\n\t\t\treturn;\n\t\t\t\t}catch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:103\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i=new Intent(EventDesc.this,suggestions.class);\n\t\t\t\ti.putExtra(NAME, bun.getString(NAME));\n\t\t\t\ti.putExtra(ID,bun.getString(ID));\n\t\t\t\tstartActivity(i);\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\t\n\t\t\t\tToast.makeText(c, \"Correct Address not available\", Toast.LENGTH_SHORT).show();\n\t\t\t/*\tIntent i = new Intent(SingleShop.this, Gallery.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\t*///\tFragmentTransaction ft =\t((ActionBarActivity)context).getSupportFragmentManager().beginTransaction().replace(R.id.frame_container, ft).commit();;\n\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(SettingsActivity.this,\n\t\t\t\t\t\tServerIPActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, Location.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:102\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onClick(View view) {\n String sms = \"FINDME location is \";\n if (LOCATION != null) {\n sms = sms + \"coordinates\" + \"*\" + LOCATION.latitude + \"*\" + LOCATION.longitude;\n }\n sendSms(\"0473848248\", sms);\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1407\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n String in =((TextView) view).getText().toString();\n String ad=in.substring((in.length())-17);\n Intent intent= new Intent(MainActivity.this,Connect.class);\n //new activity will recieve that\n intent.putExtra(EXTRA_ADDRESS,ad);\n //Bundle b= new Bundle();\n //b.putString(\"name\",\"sara\");\n //intent.putExtras(b);\n startActivity(intent);\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1071\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:101\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(final View v) {\r\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW,\r\n\t\t\t\t\t\tUri.parse(\"google.navigation:q=\" + data.getLatitude()+\",\"+data.getLongitude() ));\r\n\t\t\t\t\t\tv.getContext().startActivity(intent);\r\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:100\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(note_loc.this, Task.class);\n\t\t\tstartActivity(i);\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t.parse(\"http://maps.google.com/maps?f=d&daddr=\"\n\t\t\t\t\t\t\t\t+ lot.getLatitude() + \",\" + lot.getLongitude()\n\t\t\t\t\t\t\t\t+ \" (Lot \" + lot.getName() + \")\"));\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\t\"com.google.android.apps.maps\",\n\t\t\t\t\t\t\"com.google.android.maps.MapsActivity\"));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent i = new Intent(NewProfileActivity.this,\n\t\t\t\t\t\tTBDispContacts.class);\n\t\t\t\ti.putExtra(\"Edit\", \"true\");\n\t\t\t\ti.putExtra(\"Details\", \"false\");\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void sendDelivery(View view) {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"http://maps.google.com/maps?saddr=enter your location&daadr=enter your destination\"));\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n if (mListener == null || mRemovalDialogue.isShown()) return;\n if (TextUtils.isEmpty(mPhoneNumberString)) {\n // Copy \"superclass\" implementation\n mListener.onContactSelected(getLookupUri(), MoreContactUtils\n .getTargetRectFromView(\n mContext, PhoneFavoriteTileView.this));\n } else {\n // When you tap a frequently-called contact, you want to\n // call them at the number that you usually talk to them\n // at (i.e. the one displayed in the UI), regardless of\n // whether that's their default number.\n mListener.onCallNumberDirectly(mPhoneNumberString);\n }\n }", "@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tServiceAdditionActivity.setclass(\"busness\");\r\n\t\t\t\tstartActivity(new Intent(ServiceActivity.this,ServiceAdditionActivity.class));\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tServiceAdditionActivity.setclass(\"house\");\r\n\t\t\t\tstartActivity(new Intent(ServiceActivity.this,ServiceAdditionActivity.class));\r\n\t\t\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_queryaddress);\r\n\t\t\r\n\t\tmPhoneNum = (EditText) findViewById(R.id.editText_phone);\r\n\t\tfindViewById(R.id.btn_query).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tToast.makeText(QueryAddressActivity.this,\r\n\t\t\t\t\t\tgetAddress(mPhoneNum.getText().toString()),\r\n\t\t\t\t\t\tToast.LENGTH_LONG).\r\n\t\t\t\t\tshow();\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MakeSaleActivity.this,LocPopActivity.class);\n startActivityForResult(intent, REQUEST_CODE_POP_LOC);\n }", "@Override\n public void onClick(View v) {\n String label = \"Route for \" + namemark;\n String uriBegin = \"geo:\" + latl + \",\" + long1;\n String query = latl + \",\" + long1 + \"(\" + label + \")\";\n String encodedQuery = Uri.encode(query);\n String uriString = uriBegin + \"?q=\" + encodedQuery + \"&z=16\";\n Uri uri = Uri.parse(uriString);\n try {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);\n startActivity(intent);\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Update Your Google Map\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1031\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts(\"tel\", tv_desc.getText().toString(), null));\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent detailsActInt = new Intent(MainActivity.this, ContactDetailsActivity.class);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_name\", contactname);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_number\", callnumber);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_call_id\", contact_call_id);\n\t\t\t\tstartActivity(detailsActInt);\n\t\t\t\t//addCommentDialog(number);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n Intent email = new Intent(getApplicationContext(), email.class);\n startActivity(email);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n startActivity(intent);\n }", "@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.navigation:\n\t\t\tgotoBaiduMap();\n\t\t\tbreak;\n\t\tcase R.id.location:\n\t\t\tlocationIv.setEnabled(false);\n\t\t\tMapStatusUpdate msu = MapStatusUpdateFactory.zoomTo(15.0f);\n\t\t\tbaiduMap.setMapStatus(msu);\n\t\t\t// 设置定位监听器,其实是启动了定位\n\t\t\tLocationUtil.getInstance(_activity).startOneLocation(\n\t\t\t\t\tOneLocationListener);\n\n\t\t\tbreak;\n\t\tcase R.id.refresh:\n\n\t\t\tbreak;\n\t\tcase R.id.list:\n\t\t\tBundle playground = new Bundle();\n\t\t\tplayground.putInt(\"type\", type);\n\t\t\tif (isTest) {// 测试机构\n\t\t\t\tfinish();\n\t\t\t} else {\n\t\t\t\tif (isSwitch) {\n\t\t\t\t\tsetResult(RESULT_OK, playground);\n\t\t\t\t\tfinish();\n\t\t\t\t} else {\n\t\t\t\t\tplayground.putBoolean(\"isSwitch\", true);\n\t\t\t\t\tUIHelper.jumpForResult(_activity,\n\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class,\n\t\t\t\t\t\t\tplayground, 1006);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.search:\n\t\t\tif (!TextUtils.isEmpty(input.getText().toString()))\n\t\t\t\tsearch(input.getText().toString());\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@OnClick(R.id.rltContact)\n public void contact() {\n Intent cancel = new Intent(getApplicationContext(), ContactActivity.class);\n cancel.putExtra(\"status\", acceptDetailsModel.getStatus());\n cancel.putExtra(\"restaurantname\", acceptDetailsModel.getRestaurantName());\n cancel.putExtra(\"restaurantnumber\", acceptDetailsModel.getRestaurantMobileNumber());\n cancel.putExtra(\"eatername\", acceptDetailsModel.getEaterName());\n cancel.putExtra(\"eaternumber\", acceptDetailsModel.getEaterMobileNumber());\n startActivity(cancel);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 0);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}" ]
[ "0.7923698", "0.74883395", "0.73982275", "0.73935276", "0.7249004", "0.7161193", "0.7158809", "0.6964273", "0.6885226", "0.68795085", "0.6852385", "0.67803556", "0.67753595", "0.6761054", "0.67286634", "0.6710047", "0.66830194", "0.6665029", "0.6644342", "0.6613763", "0.6591211", "0.65884125", "0.6587634", "0.6573399", "0.6565457", "0.6553445", "0.6531102", "0.6527087", "0.6472229", "0.6472053", "0.6466538", "0.64616156", "0.6449825", "0.6449579", "0.6445226", "0.6433789", "0.64152205", "0.64139104", "0.6408642", "0.63929826", "0.6392272", "0.6389615", "0.6383876", "0.63774246", "0.6369778", "0.6367195", "0.6360041", "0.6356421", "0.6350671", "0.6320018", "0.6319146", "0.63076794", "0.6307304", "0.629653", "0.6278284", "0.62675405", "0.6266916", "0.62585866", "0.6251628", "0.62502134", "0.62479377", "0.6226321", "0.6226151", "0.6221901", "0.6221803", "0.6217879", "0.62163365", "0.621281", "0.62111974", "0.62070894", "0.6197675", "0.61957383", "0.61952645", "0.6191139", "0.6190164", "0.61848503", "0.6181068", "0.61778176", "0.6161824", "0.6160738", "0.6152867", "0.61528033", "0.61526793", "0.61522776", "0.6150493", "0.6149642", "0.61472136", "0.613684", "0.61344826", "0.6132868", "0.6129581", "0.61230654", "0.61208534", "0.61153525", "0.6115142", "0.6114458", "0.61128044", "0.6108998", "0.610496", "0.6101087" ]
0.73776734
4
Method that receives the enum and his content
public void setDescriptionClassConverter(Enum descriptionOftheClass) { this.nameOfEnumUsedOfTheClass = descriptionOftheClass.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "void visitEnumValue(EnumValue value);", "Enum getType();", "EnumListValue createEnumListValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue();", "public abstract Enum<?> getType();", "public interface BaseEnum {\n\n int getStatus();\n\n String getDesc();\n}", "public String getElement()\n {\n return \"enum\";\n }", "public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}", "public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }", "public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}", "public interface EnumParameter extends ParameterValue {\r\n}", "public interface MybatisStringTypeHandlerEnum {\n public String getString();\n}", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();", "EnumTypeDefinition createEnumTypeDefinition();", "boolean addEnum(EnumDefinition evd) throws ResultException, DmcValueException {\n// if (checkAndAdd(evd.getObjectName(),evd,enumDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(evd.getObjectName(),evd,enumDefs,\"enum value names\"));\n// throw(ex);\n// }\n \n \tenumDefinitions.add(evd);\n \n if (checkAndAddDOT(evd.getDotName(),evd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(evd.getObjectName(),evd,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n\n // Things get a little tricky here - although EnumDefinitions are enums, they get\n // turned into internally generated TypeDefinitions, so we don't add them to the\n // allDefs map as EnumDefinitions.\n TypeDefinition td = new TypeDefinition();\n td.setInternallyGenerated(true);\n td.setName(evd.getName());\n \n // The name of an enum definition is schema.enum.EnumDefinition\n // For the associated type, it will be schema.enum.TypeDefinition\n DotName typeName = new DotName((DotName) evd.getDotName().getParentName(),\"TypeDefinition\");\n// DotName nameAndTypeName = new DotName(td.getName() + \".TypeDefinition\");\n td.setDotName(typeName);\n// td.setNameAndTypeName(nameAndTypeName);\n\n td.setEnumName(evd.getName().getNameString());\n td.addDescription(\"This is an internally generated type to allow references to \" + evd.getName() + \" values.\");\n td.setIsEnumType(true);\n td.setTypeClassName(evd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + evd.getName());\n td.setPrimitiveType(evd.getDefinedIn().getSchemaPackage() + \".generated.enums.\" + evd.getName());\n td.setDefinedIn(evd.getDefinedIn());\n \n // Issue 4 fix\n if (evd.getNullReturnValue() != null)\n \ttd.setNullReturnValue(evd.getNullReturnValue());\n \n internalTypeDefs.put(td.getName(), td);\n \n // We add the new type to the schema's list of internally generated types\n evd.getDefinedIn().addInternalTypeDefList(td);\n \n // Add the type\n addType(td);\n\n if (evd.getObjectName().getNameString().length() > longestEnumName)\n longestActionName = evd.getObjectName().getNameString().length();\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addEnum(evd);\n \t}\n }\n\n return(true);\n }", "public Enum(String val) \n { \n set(val);\n }", "EnumRef createEnumRef();", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}", "public ServicesFormatEnum(){\n super();\n }", "private FunctionEnum(String value) {\n\t\tthis.value = value;\n\t}", "public void buildEnumSummary(XMLNode node, Content summaryContentTree) {\n String enumTableSummary =\n configuration.getText(\"doclet.Member_Table_Summary\",\n configuration.getText(\"doclet.Enum_Summary\"),\n configuration.getText(\"doclet.enums\"));\n String[] enumTableHeader = new String[] {\n configuration.getText(\"doclet.Enum\"),\n configuration.getText(\"doclet.Description\")\n };\n ClassDoc[] enums =\n packageDoc.isIncluded()\n ? packageDoc.enums()\n : configuration.classDocCatalog.enums(\n Util.getPackageName(packageDoc));\n enums = Util.filterOutPrivateClasses(enums, configuration.javafx);\n if (enums.length > 0) {\n packageWriter.addClassesSummary(\n enums,\n configuration.getText(\"doclet.Enum_Summary\"),\n enumTableSummary, enumTableHeader, summaryContentTree);\n }\n }", "@Test\n\tpublic void testEnumSize1BadInput() throws Exception {\n\t\tCategory category = program.getListing()\n\t\t\t\t.getDataTypeManager()\n\t\t\t\t.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tEnum enumm = createEnum(category, \"TestEnum\", 1);\n\t\tedit(enumm);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tassertNotNull(panel);\n\n\t\taddEnumValue();\n\n\t\twaitForSwing();\n\t\tDockingActionIf applyAction = getApplyAction();\n\t\tassertTrue(applyAction.isEnabled());\n\t\tassertTrue(panel.needsSave());\n\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\tassertEquals(\"New_Name\", model.getValueAt(0, NAME_COL));\n\t\tassertEquals(0L, model.getValueAt(0, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tString editName = \"New_Name_(1)\";\n\t\tassertEquals(editName, model.getValueAt(1, NAME_COL));\n\t\tassertEquals(1L, model.getValueAt(1, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tassertEquals(\"New_Name_(2)\", model.getValueAt(2, NAME_COL));\n\t\tassertEquals(2L, model.getValueAt(2, VALUE_COL));\n\n\t\tint row = getRowFor(editName);\n\n\t\teditValueInTable(row, \"0x777\");\n\n\t\trow = getRowFor(editName); // the row may have changed if we are sorted on the values col\n\t\tassertEquals(0x77L, model.getValueAt(row, VALUE_COL));\n\t}", "protected String getEnumeration()\n {\n return enumeration;\n }", "EEnum createEEnum();", "@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}", "@Override\n public String visit(EnumDeclaration n, Object arg) {\n return null;\n }", "@Test\n\tpublic void testNewEnumFromAction() throws Exception {\n\t\t// This test works differently that the others in that it uses the same path as the\n\t\t// GUI action to start the editing process.\n\t\t//\n\t\tDataTypeManager dtm = program.getListing().getDataTypeManager();\n\t\tfinal Category c = dtm.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tfinal DataTypeEditorManager editorManager = plugin.getEditorManager();\n\n\t\trunSwing(() -> editorManager.createNewEnum(c));\n\t\twaitForSwing();\n\n\t\tfinal EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\taddEntry(table, model, \"Purple\", 7);\n\t\tsetEditorEnumName(panel, \"Test.\" + testName.getMethodName());\n\n\t\tapply();\n\t}", "EnumValueDefinition createEnumValueDefinition();", "public interface CHANGED_TYPE {\r\n public static final int FEE = 1;\r\n public static final int GRACE_PERIOD = 2;\r\n }", "void setValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum value);", "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "public interface CodeEnum {\n int getCode();\n}", "java.util.List<resources.java.Complex.ComplexMessage.SimpleEnum> getSimpleEnumFieldList();", "@Test\n\tpublic void testEditExistingEnum2() throws Exception {\n\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tfinal JTable table = panel.getTable();\n\t\tfinal EnumTableModel model = (EnumTableModel) table.getModel();\n\t\taddEntry(table, model, \"Purple\", 7);\n\n\t\tapply();\n\n\t\tCategory cat =\n\t\t\tprogram.getListing().getDataTypeManager().getCategory(enummDt.getCategoryPath());\n\t\tEnum en = (Enum) cat.getDataType(\"Colors\");\n\t\tString[] names = en.getNames();\n\t\tassertEquals(4, names.length);\n\t\tassertEquals(7, en.getValue(\"Purple\"));\n\t}", "public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public interface CodeEnum {\n\n Integer getCode();\n}", "public interface CodeEnum {\n Integer getCode();\n}", "EnumLiteralExp createEnumLiteralExp();", "@Override\n\tpublic void visit(EnumSpecifier n) {\n\t\tif (n.getF0().getChoice() instanceof EnumSpecifierWithList) {\n\t\t\tEnumSpecifierWithList node = (EnumSpecifierWithList) n.getF0().getChoice();\n\t\t\tif (!node.getF1().present()) {\n\t\t\t\tStringBuilder newNodeString = new StringBuilder(\"enum\");\n\t\t\t\tnewNodeString.append(\" \" + Builder.getNewTempName(\"enum\"));\n\t\t\t\tnewNodeString.append(\" { \" + node.getF3().getInfo().getString() + \"} \");\n\t\t\t\tn.getF0().setChoice(FrontEnd.parseAlone(newNodeString.toString(), EnumSpecifierWithList.class));\n\t\t\t}\n\t\t}\n\t\tn.getF0().accept(this);\n\t}", "@Test\n public void testEnumFunctions() {\n assertEquals(3, Ack.values().length);\n assertEquals(Ack.OK, Ack.valueOf(\"OK\"));\n assertEquals(Ack.WARN, Ack.valueOf(\"WARN\"));\n assertEquals(Ack.ERROR, Ack.valueOf(\"ERROR\"));\n }", "private void handleEnumConstant(EnumDomainTypeBuilder enumType, Class<? extends Enum<?>> domainTypeClass, Enum<?> enumConstant, ServiceProvider serviceProvider, List<String> errors) {\n List<MetadataDefinition<?>> metadataDefinitions = getMetadataDefinitions(enumConstant.getClass().getAnnotation(Metadata.class), errors);\n Class<? extends Enum> constantClass = enumConstant.getClass();\n for (Map.Entry<Class<? extends Annotation>, List<DeclarativeMetadataProcessor<Annotation>>> entry : entityMetadataProcessors.entrySet()) {\n if (entry.getKey() == null) {\n for (DeclarativeMetadataProcessor<Annotation> processor : entry.getValue()) {\n MetadataDefinition<?> metadataDefinition = processor.process(constantClass, null, serviceProvider);\n if (metadataDefinition != null) {\n metadataDefinitions.add(metadataDefinition);\n }\n }\n } else {\n Annotation annotation = AnnotationUtils.findAnnotation(constantClass, entry.getKey());\n if (annotation != null) {\n for (DeclarativeMetadataProcessor<Annotation> processor : entry.getValue()) {\n MetadataDefinition<?> metadataDefinition = processor.process(constantClass, annotation, serviceProvider);\n if (metadataDefinition != null) {\n metadataDefinitions.add(metadataDefinition);\n }\n }\n }\n }\n }\n\n MetadataDefinition[] metadataDefinitionArray;\n if (metadataDefinitions.isEmpty()) {\n metadataDefinitionArray = EMPTY;\n } else {\n metadataDefinitionArray = metadataDefinitions.toArray(new MetadataDefinition[metadataDefinitions.size()]);\n }\n\n enumType.withValue(enumConstant.name(), metadataDefinitionArray);\n }", "private TipoDocumentoEnum(String descripcion,String codigo) {\r\n\t\tthis.descripcion=descripcion;\r\n\t\tthis.codigo=codigo;\r\n\t}", "public CustomMof14EnumLiteral createCustomMof14EnumLiteral();", "public static void main(String[] args) {\n\n for (OperateTypeEnum test : OperateTypeEnum.values()) {\n System.out.println(test.name()+\" \"+test.ordinal());\n }\n\n EnumMap<OperateTypeEnum, String> enumMap = new EnumMap<OperateTypeEnum, String>(OperateTypeEnum.class);\n enumMap.put(OperateTypeEnum.DELETE, \"dddddddddddddd\");\n enumMap.put(OperateTypeEnum.UPDATE, \"uuuuuuuuuuuuuu\");\n for (Map.Entry<OperateTypeEnum, String> entry : enumMap.entrySet()) {\n System.out.println(entry.getValue() + entry.getKey().getEnumDesc());\n }\n\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.of(OperateTypeEnum.DELETE);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.allOf(OperateTypeEnum.class);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.range(OperateTypeEnum.DELETE,OperateTypeEnum.UPDATE);\n EnumSet<OperateTypeEnum> enumSet = EnumSet.noneOf(OperateTypeEnum.class);\n enumSet.add(OperateTypeEnum.DELETE);\n enumSet.add(OperateTypeEnum.UPDATE);\n for (Iterator<OperateTypeEnum> it = enumSet.iterator(); it.hasNext();) {\n System.out.println(it.next().getEnumDesc());\n }\n for (OperateTypeEnum enumTest : enumSet) {\n System.out.println(enumTest.getEnumDesc() + \" ..... \");\n }\n\n EnumSet<OperateTypeEnum> enumSets = EnumSet.copyOf(enumSet);\n }", "Enumeration createEnumeration();", "private EnumApple(String desc){\n\t\tdescription = desc;\n\t}", "Rule EnumValue() {\n return Sequence(\n Identifier(),\n Optional(EnumConst()),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushEnumValueNode());\n }", "public void testCompletionOnEEnums() throws BadLocationException {\n \t\tsetUpIntentProject(\"completionTest\", INTENT_DOC_WITH_ENUMS_PATH);\n \t\teditor = openIntentEditor();\n \t\tdocument = editor.getDocumentProvider().getDocument(editor.getEditorInput());\n \t\tcontentAssistant = editor.getViewerConfiguration().getContentAssistant(editor.getProjectionViewer());\n \n \t\tICompletionProposal[] proposals = getCompletionProposals(112);\n \t\tassertEquals(4, proposals.length);\n \t\tString enumSuffix = \" value (of type CompilationStatusSeverity) - Default: WARNING - Set a simple value of type CompilationStatusSeverity\";\n \t\tassertEquals(\"'WARNING'\" + enumSuffix, proposals[0].getDisplayString());\n \t\tassertEquals(\"'ERROR'\" + enumSuffix, proposals[1].getDisplayString());\n \t\tassertEquals(\"'INFO'\" + enumSuffix, proposals[2].getDisplayString());\n \t\tassertEquals(\"'OK'\" + enumSuffix, proposals[3].getDisplayString());\n \t}", "private EnumOrdenacaoSituacao(Integer codigo, String descricao, String descricaoRelatorio) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t\tthis.descricaoRelatorio = descricaoRelatorio;\n\t}", "<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();", "private void encodeEnum(Encoder encoder, Enum type, int size) throws IOException {\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tlong[] keys = type.getValues();\n\t\tString metatype = \"uint\";\n\t\tfor (long key : keys) {\n\t\t\tif (key < 0) {\n\t\t\t\tmetatype = \"int\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tencoder.writeString(ATTRIB_METATYPE, metatype);\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, type.getLength());\n\t\tencoder.writeBool(ATTRIB_ENUM, true);\n\t\tfor (long key : keys) {\n\t\t\tencoder.openElement(ELEM_VAL);\n\t\t\tencoder.writeString(ATTRIB_NAME, type.getName(key));\n\t\t\tencoder.writeSignedInteger(ATTRIB_VALUE, key);\n\t\t\tencoder.closeElement(ELEM_VAL);\n\t\t}\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}", "private TipoFonteRendaEnum(Short codigo, String descricao) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t}", "public Registry registerEnum(EnumIO<?> eio, int id);", "@JsMethod\n // Pass through an enum value as if it were coming from and going to JavaScript.\n private static Object passThrough(Object o) {\n assertTrue(o instanceof String || o instanceof Double || o instanceof Boolean);\n return o;\n }", "private static Enum<?> getValue(Class<? extends Enum<?>> enumClass, String value)\n {\n return Enum.valueOf(enumClass.asSubclass(Enum.class), value);\n }", "@Test\n public void testCreationOfAccountWithEnum() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum();\n Assert.assertEquals(accountWithEnum.getAccountType(), AccountType.CHECKING);\n }", "@Ignore\n @Test(expected = IllegalArgumentException.class)\n public void require_that_illegal_enum_throws_exception() throws IOException {\n Slime slime = new Slime();\n Cursor root = slime.setObject();\n root.setString(\"enumval\", \"invalid\");\n InnerCNode def = new DefParser(\"simpletypes\", new StringReader(StringUtilities.implode(SimpletypesConfig.CONFIG_DEF_SCHEMA, \"\\n\"))).getTree();\n new ConfigFileFormat(def).encode(new ByteArrayOutputStream(), slime);\n }", "@DISPID(201)\r\n public void enumDone() {\r\n throw new UnsupportedOperationException();\r\n }", "EEnumLiteral createEEnumLiteral();", "public Enum(String name, String val) \n { \n super(name); \n set(val);\n }", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers.Enum getExchange();", "EnumConstant createEnumConstant();", "public interface KmipEnum {\n\n String name();\n\n Long getValue();\n}", "private Enums(String s, int j)\n\t {\n\t System.out.println(3);\n\t }", "public String createEnum(String type) {\n String strEnum = \"\";\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n strEnum = EnumFactory.enumStrings[i];\n break;\n }\n }\n if (type == PAGE && countKeys[i] == 1)\n return EnumFactory.PAGE_MAIN;\n return String.format(\"%s%d\", strEnum,countKeys[i]);\n }", "protected EnumSyntax[] getEnumValueTable() {\n/* 206 */ return (EnumSyntax[])myEnumValueTable;\n/* */ }", "public interface IItemDataEnum extends IStringSerializable{\n\t/**\n\t * This should return the unlocalized name of the sub item/block, without the mod ID or the item ID this is a sub item/block of\n\t * \n\t * @return\n\t */\n\tString getUnlocalizedName();\n\t\n\t/**\n\t * This should return the full unlocalized name for use in texture registry\n\t * \n\t * @return\n\t */\n\tString getTextureName();\n\t\n\t/**\n\t * Returns the meta value of the sub item/block\n\t * \n\t * @return\n\t */\n\tint getMeta();\n}", "public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }", "EnumOperationType getOperationType();", "@SuppressWarnings(\"unchecked\")\r\n public EnumByteConverter(final String theEnumType) {\r\n super((Class<E>) SystemUtils.forName(theEnumType));\r\n constants = init();\r\n }", "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "public static void main(String[] args) throws Exception {\n testEnum();\r\n }", "public void testGetEnumValue_differentCase() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"Value1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }", "@SuppressWarnings(\"unchecked\")\n private String toString(Object obj)\n {\n if (obj instanceof Enum)\n return ((Enum) obj).name();\n return obj.toString();\n\n }", "public void enumerators()\n {\n Month birthMonth; //create a variable type called birthMonth\n birthMonth = Month.MAY; //assign a value to birthMonth from the enum defined above\n int ordinalNum = birthMonth.ordinal();\n String getMonth = birthMonth.toString();\n \n if(birthMonth.equals(Month.NOV))\n {\n System.out.println(\"Turkey Month! \");\n }\n else\n {\n System.out.println(\"That's a good month! \");\n }\n System.out.println(birthMonth.valueOf(\"DEC\"));\n \n System.out.println(\"ordinal: \" + ordinalNum);\n \n System.out.println(\"getMonth is: \" + getMonth); //starts at 0\n \n }", "private EnumTipoPessoa(Integer codigo, String descricao) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t}", "@Test\n public void operator_enum() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(BasicTypeKind.VOID), typeOf(Enum.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!VOID\"));\n }", "public static void main(String arg[])\r\n\t {\n\t \r\n\t color ob=color.RED;\r\n\t \r\n\t // System.out.println(\"An Enumeration Object:\"+ob);\r\n\t \r\n\t System.out.println(\"Enumeration Objects Ordinal Values:\"+ob.ordinal());\r\n\t }", "public Enum() \n { \n set(\"\");\n }", "@com.exedio.cope.instrument.Generated\n\tprivate WrapEnumItem(final com.exedio.cope.ActivationParameters ap){super(ap);}", "@Test\r\n public void test2(){\n colorEnum = Color.GREEN;\r\n System.out.println(colorEnum);\r\n System.out.println(colorEnum.name());\r\n System.out.println(colorEnum.ordinal());\r\n System.out.println(colorEnum.toString());\r\n Color[] values = Color.values();\r\n System.out.println(Arrays.toString(values));\r\n }", "private SheetTraitEnum(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 void testListEnum() {\n \t\tList<RadioBand> enumValueList = Arrays.asList(RadioBand.values());\n\n\t\tList<RadioBand> enumTestList = new ArrayList<RadioBand>();\n\t\tenumTestList.add(RadioBand.AM);\n\t\tenumTestList.add(RadioBand.FM);\n\t\tenumTestList.add(RadioBand.XM);\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "@Override\n public void handle(ProductTypeEntity entity, UpdateAction action) {\n AddLocalizedEnumValue addLocalizedEnumValue = (AddLocalizedEnumValue) action;\n String attributeName = addLocalizedEnumValue.getAttributeName();\n LocalizedEnumValue value = addLocalizedEnumValue.getValue();\n\n entity.getAttributes().stream()\n .forEach(attribute -> {\n if (Objects.equals(attributeName, attribute.getName())) {\n LocalizedEnumAttributeType lenumAttribute = (LocalizedEnumAttributeType) attribute\n .getType();\n lenumAttribute.getValues().add(value);\n attribute.setType(lenumAttribute);\n }\n });\n\n }", "@Override\n public String visit(EnumConstantDeclaration n, Object arg) {\n return null;\n }", "public String asString() {\n\t\t\tString enumName;\n\t\t\tswitch(this) {\n\t\t\tcase INDEX:\n\t\t\t\tenumName = \"index\";\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tenumName = \"name\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tenumName = \"unsupported\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn enumName;\n\t\t}", "public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n \t\treturn \"Diamonds\";\n \tcase 4:\n \t\treturn \"Clubs\";\n \tcase 5:\n \t\treturn \"Spades\";\n \tcase 6:\n \t\treturn \"Twos\";\n \tcase 7:\n \t\treturn \"Threes\";\n \tcase 8:\n \t\treturn \"Fours\";\n \tcase 9:\n \t\treturn \"Fives\";\n \tcase 10:\n \t\treturn \"Sixes\";\n \tcase 11:\n \t\treturn \"Sevens\";\n \tcase 12:\n \t\treturn \"Eights\";\n \tcase 13:\n \t\treturn \"Nines\";\n \tcase 14:\n \t\treturn \"Tens\";\n \tcase 15:\n \t\treturn \"Jacks\";\n \tcase 16:\n \t\treturn \"Queens\";\n \tcase 17:\n \t\treturn \"Kings\";\n \tcase 18:\n \t\treturn \"Aces\";\n \tcase 19:\n \t\treturn \"Single Digit Primes\";\n \tcase 20:\n \t\treturn \"Pairs\";\n \tcase 21:\n \t\treturn \"Sum of Pairs\";\n \tcase 22:\n \t\treturn \"Incrementing Cards\";\n \tcase 23:\n \t\treturn \"Decrementing Cards\";\n \tdefault:\n \t\treturn \"\";\n \t}\n }", "@Test\n public void testClaimServTypCd() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setServTypeCdEnum,\n claim -> String.valueOf(claim.getServTypeCd()),\n FissBillClassification.BILL_CLASSIFICATION_INPATIENT_PART_A,\n \"1\")\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setServTypCdUnrecognized,\n claim -> String.valueOf(claim.getServTypeCd()),\n RdaFissClaim.Fields.servTypeCd,\n 1);\n }", "public void testEnumUsingToString() throws Exception\n {\n assertEquals(\"\\\"c2\\\"\", MAPPER.writeValueAsString(AnnotatedTestEnum.C2));\n }", "public interface SubsystemEnum {\n\n SubsystemBase getSubsystem();\n\n}", "@Override\n public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {\n Object result = null;\n reader.moveDown();\n // Get attributes and parameters\n String projectName = reader.getAttribute(\"project\");\n String type = reader.getAttribute(\"type\");\n String literal = reader.getAttribute(\"enum\");\n List<ModelInfo<Project>> list1 = VarModel.INSTANCE.availableModels().getModelInfo(projectName);\n ModelInfo<Project> model = list1.get(0);\n try {\n VarModel.INSTANCE.load(model);\n Project project = model.getResolved();\n String name = type + \".\" + literal;\n if (project != null) {\n try {\n Value eVal = ModelQuery.enumLiteralAsValue(project, name);\n if (eVal instanceof net.ssehub.easy.varModel.model.values.EnumValue) {\n result = new EnumValue((net.ssehub.easy.varModel.model.values.EnumValue) eVal);\n }\n } catch (ModelQueryException e) {\n logger.exception(e);\n } catch (IvmlException e) {\n logger.exception(e);\n }\n } else {\n logger.warn(\"Enum \" + name + \" not found! Project \" + projectName + \" was null\");\n }\n } catch (ModelManagementException e1) {\n logger.exception(e1);\n }\n reader.moveUp();\n return result;\n }", "EnumType(String p_i45705_1_, int p_i45705_2_, int p_i45705_3_, String p_i45705_4_, String p_i45705_5_) {\n/* */ this.field_176893_h = p_i45705_3_;\n/* */ this.field_176894_i = p_i45705_4_;\n/* */ this.field_176891_j = p_i45705_5_;\n/* */ }", "public void testValidEnums () {\t\n\t\tString example = \"AM\";\n\t\tRadioBand enumAm = RadioBand.valueForString(example);\n\t\texample = \"FM\";\n\t\tRadioBand enumFm = RadioBand.valueForString(example);\n\t\texample = \"XM\";\n\t\tRadioBand enumXm = RadioBand.valueForString(example);\n\n\t\tassertNotNull(\"AM returned null\", enumAm);\n\t\tassertNotNull(\"FM returned null\", enumFm);\n\t\tassertNotNull(\"XM returned null\", enumXm);\n\t}", "public void testGetEnumValue() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"VALUE1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }", "public interface EnumsKeyConstants {\n\n /*客户状态*/\n static final String CSTM_STATE = \"CSTM_STATE\";\n\n interface CSTMSTATE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*正常*/\n static final String NORMAL = \"01\";\n\n /*停用*/\n static final String BLOCKUP = \"02\";\n\n /*冻结*/\n static final String FROZEN = \"03\";\n }\n\n /*短信类型*/\n static final String SMS_TYPE = \"SMS_TYPE\";\n\n interface SMSTYPE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知*/\n static final String NOTICE = \"02\";\n\n /*营销*/\n static final String MARKETING = \"03\";\n\n /*未知*/\n static final String UNKNOWN = \"04\";\n }\n\n /*模板类型*/\n static final String SMODEL_TYPE = \"SMODEL_TYPE\";\n\n interface SMODELTYPE {\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知&订单*/\n static final String NOTICE = \"02\";\n }\n\n /*审核状态*/\n static final String AUDIT_STATE = \"AUDIT_STATE\";\n\n interface AUDITSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*审核中*/\n static final String ING = \"01\";\n\n /*审核通过*/\n static final String ED = \"02\";\n\n /*审核驳回*/\n static final String DF = \"03\";\n\n }\n\n /*运营商类型*/\n static final String OPERATOR_TYPE = \"OPERATOR_TYPE\";\n\n interface OPERATORTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*移动*/\n static final String MOBILE = \"01\";\n\n /*电信*/\n static final String TELECOM = \"02\";\n\n /*联通*/\n static final String UNICOM = \"03\";\n }\n\n /*通道状态*/\n static final String CHANNEL_STATE = \"CHANNEL_STATE\";\n\n interface CHANNELSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*可用*/\n static final String ENABLE = \"01\";\n\n /*禁用*/\n static final String DISABLE = \"02\";\n }\n\n /*短信发送状态*/\n static final String SMSSEND_STATE = \"SMSSEND_STATE\";\n\n interface SMSSENDSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*未知*/\n static final String UNKNOWN = \"03\";\n\n /*无效*/\n static final String INVALID = \"04\";\n\n /*其他*/\n static final String OTHER = \"05\";\n }\n\n /*短息接收状态*/\n static final String SMSDELIV_STATE = \"SMSDELIV_STATE\";\n\n interface SMSDELIVSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*收到*/\n static final String DELIV = \"01\";\n\n /*未收到*/\n static final String UNDELIV = \"02\";\n }\n\n /*批次单状态*/\n static final String BATCH_STATE = \"BATCH_STATE\";\n\n interface BATCHSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*等待发送*/\n static final String WAIT = \"01\";\n\n /*发送中*/\n static final String ING = \"02\";\n\n /*完成*/\n static final String FINISH = \"03\";\n\n /*已撤回*/\n static final String REVOKE = \"04\";\n\n /*已驳回*/\n static final String REJECT = \"05\";\n }\n\n /*适用范围类型*/\n static final String USEAGE_TYPE = \"USEAGE_TYPE\";\n\n interface USEAGETYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String PUB = \"01\";\n\n /*个人*/\n static final String PRI = \"02\";\n }\n\n /*是否发送*/\n static final String SMSSEND_CODE = \"SMSSEND_CODE\";\n\n interface SMSSENDCODE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*发送*/\n static final String SEND = \"01\";\n\n /*不发送*/\n static final String DESEND = \"02\";\n }\n\n /*短信数量增减类型*/\n static final String ACCOUNT_TYPE = \"ACCOUNT_TYPE\";\n\n interface ACCNTTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*充值*/\n static final String ADDITION = \"01\";\n\n /*消费*/\n static final String SUBTRACTION = \"02\";\n\n }\n\n /*充值单审核状态*/\n static final String RECHARGE_STATE = \"RECHARGE_STATE\";\n\n interface RECHARGESTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*确认中*/\n static final String COMFIRM = \"03\";\n\n /*已取消*/\n static final String CANCEL = \"04\";\n\n }\n\n /*手机号是否在黑名单中*/\n static final String REPLY_BLACK = \"REPLY_BLACK\";\n\n interface REPLYBLACK{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*不在黑名单中*/\n static final String NOTINT = \"01\";\n\n /*在黑名单中*/\n static final String INT = \"02\";\n\n\n }\n /*逻辑删除enable*/\n static final String DELETE_ENABLE = \"DELETE_ENABLE\";\n\n interface DELETEENABLE{\n\n /*已删除*/\n static final Integer DELETE = 0;\n\n /*未删除*/\n static final Integer UNDELE = 1;\n\n\n }\n /*适用范围 模板 通用,个人*/\n static final String SUIT_RANGE = \"SUIT_RANGE\";\n\n interface SUITRANGE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String COMMON = \"01\";\n\n /*个人*/\n static final String PERSONAL = \"02\";\n\n\n }\n\n /*使用場景 01 平台 , 02 接口*/\n static final String USE_TYPE = \"USE_TYPE\";\n\n interface USETYPE{\n\n /*平台*/\n static final String PLTFC = \"01\";\n\n /*接口*/\n static final String INTFC = \"02\";\n }\n\n /* 提醒类型 */\n static final String REMIND_TYPE = \"REMIND_TYPE\";\n\n interface REMINDTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 短信数量 */\n static final String SMS_NUM = \"01\";\n /* 发送频率*/\n static final String SEND_RATE = \"02\";\n }\n\n /* 阈值类型 */\n static final String THRESHOLD_TYPE = \"THRESHOLD_TYPE\";\n\n interface THRESHOLDTYPE {\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 小于 */\n static final String LESS_THAN = \"01\";\n /* 等于*/\n static final String EQUAL = \"02\";\n /* 大于*/\n static final String GREATER_THAN = \"03\";\n }\n\n /* 客户类型 */\n static final String CSTM_TYPE = \"CSTM_TYPE\";\n\n interface CSTMTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 个人 */\n static final String PERSON = \"01\";\n /* 企业*/\n static final String COMPANY = \"02\";\n }\n\n /* 支付状态 */\n static final String PAY_TYPE = \"PAY_TYPE\";\n\n interface PAYTYPE{\n /* 审核中 */\n static final String UNPAY = \"01\";\n /* 通过 */\n static final String PAY = \"02\";\n /* 驳回 */\n static final String REJECT = \"03\";\n /* 已取消 */\n static final String CANCEL = \"04\";\n }\n\n /* 任务状态 */\n static final String TASK_STATE = \"TASK_STATE\";\n\n interface TASKSTATE{\n /* 待发送 */\n static final String WAIT_SEND = \"01\";\n /* 已发送 */\n static final String SEND = \"02\";\n /* 成功 */\n static final String SUCCESS = \"03\";\n /* 失败 */\n static final String FAIL = \"04\";\n }\n\n /* 收款账户 */\n static final String PAY_ACCOUNT = \"PAY_ACCOUNT\";\n\n interface PAYACCOUNT{\n /* 个人账户 */\n static final String PRIVATE = \"01\";\n /* 对公账户 */\n static final String PUBLIC = \"02\";\n }\n\n}", "@Test\n\tpublic void testExternalValueAndNameUpdate() throws Exception {\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\tint transactionID = program.startTransaction(\"Test\");\n\t\tenummDt.add(\"Yellow\", 10);\n\t\tenummDt.add(\"Magenta\", 5);\n\n\t\t// note: this tests triggers a code path for updating the name that relies upon the name\n\t\t// being edited *after* new values are added above.\n\t\tString oldName = enummDt.getName();\n\t\tString newName = oldName + \"_updated\";\n\t\tenummDt.setName(newName);\n\t\tprogram.endTransaction(transactionID, true);\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tEnum en = getEnum(model);\n\n\t\tassertEquals(10, getValue(en, \"Yellow\"));\n\t\tassertEquals(5, getValue(en, \"Magenta\"));\n\t\tassertEquals(newName, en.getName());\n\t}" ]
[ "0.69990283", "0.66492903", "0.6470705", "0.6373605", "0.634149", "0.634149", "0.634149", "0.63247854", "0.62939024", "0.62729245", "0.6161062", "0.6148115", "0.61424065", "0.61390585", "0.6131945", "0.6123489", "0.61143315", "0.60973644", "0.6069129", "0.6015679", "0.60140544", "0.6013658", "0.6002974", "0.5994224", "0.5968016", "0.5957384", "0.5922376", "0.59208184", "0.59166664", "0.589314", "0.5885947", "0.58743966", "0.5864434", "0.5862845", "0.58523303", "0.58427984", "0.5821834", "0.58155626", "0.5812101", "0.5808054", "0.5799248", "0.5797899", "0.57814986", "0.5774634", "0.57666034", "0.5759049", "0.57568955", "0.5752565", "0.5736876", "0.573313", "0.5732374", "0.57187647", "0.5713673", "0.57108414", "0.5702051", "0.57015705", "0.5700719", "0.56867164", "0.5685656", "0.56819147", "0.56609035", "0.56510276", "0.5639802", "0.5620089", "0.56096536", "0.5605182", "0.56034154", "0.5603342", "0.56030893", "0.55840886", "0.5580241", "0.5578392", "0.55633163", "0.5560072", "0.55529237", "0.55470425", "0.5546969", "0.55451095", "0.55432653", "0.55430317", "0.554085", "0.5536225", "0.55277956", "0.5523741", "0.5514938", "0.55044365", "0.55022705", "0.54969466", "0.548756", "0.5486637", "0.54758817", "0.5474459", "0.5471658", "0.54712814", "0.54610324", "0.5440468", "0.5433346", "0.54329854", "0.5432743", "0.54296005", "0.54289675" ]
0.0
-1
Abstract method that will be implemented in the other classes that extends this class
public abstract double toBasicUnit(double unit);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract void abstractMethodToImplement();", "public abstract void mo70713b();", "public abstract void afvuren();", "public abstract void mo102899a();", "public abstract void mo56925d();", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public abstract void mo957b();", "abstract void geometryMethod();", "public abstract void mo27386d();", "public void setupAbstract() {\n \r\n }", "public abstract void mo30696a();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract void mh();", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "abstract int pregnancy();", "protected abstract void work();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo35054b();", "abstract void uminus();", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void doGeneralThings() {\n logger.debug(\"Overrided or implememted method - doGeneralThings!\");\n }", "public abstract void comes();", "@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "abstract public T doSomething();", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "public abstract void abstractone();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "abstract void sub();", "@Override\n\tprotected void interr() {\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "public abstract void mo27464a();", "public abstract void MussBeDefined();", "@Override\n\tprotected void getExras() {\n\n\t}", "public abstract void Do();", "public abstract void mo27385c();", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void method1();", "@Override\n\tpublic void some() {\n\t\t\n\t}", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public abstract void alimentarse();", "public abstract void operation();", "@Override\n\tvoid func() {\n\t\tSystem.out.println(\"Overriden Abstract Method\");\n\t}", "protected void doSomethingElse()\r\n {\r\n \r\n }", "@Override\n protected void getExras() {\n }", "public abstract void mo6549b();", "public abstract void mo4359a();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract String use();", "public abstract void mo3994a();", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public abstract void m15813a();", "public abstract Object mo26777y();", "@Override\n\tpublic void method2() {\n\t\tSystem.out.println(\"AbstractClass 추상메쏘드 method2()를 재정의(implement)\");\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "private abstract void privateabstract();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "public abstract void mo42329d();", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override\n public void memoria() {\n \n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}" ]
[ "0.70135", "0.6803733", "0.6749476", "0.67359585", "0.6697846", "0.6637227", "0.661667", "0.661667", "0.65362626", "0.6484564", "0.64317715", "0.6429563", "0.6401887", "0.6374649", "0.6333757", "0.63318753", "0.6317384", "0.630441", "0.6272851", "0.6272118", "0.6255981", "0.6255448", "0.625485", "0.6247432", "0.62420154", "0.6226088", "0.6205146", "0.6205146", "0.6205146", "0.619902", "0.61977947", "0.6191595", "0.6190563", "0.61823064", "0.61796373", "0.6174233", "0.61659545", "0.6154088", "0.6135737", "0.6130093", "0.6119358", "0.6118337", "0.60835534", "0.6082535", "0.6075253", "0.6072656", "0.60702485", "0.60582584", "0.6057467", "0.60497624", "0.6048808", "0.60384196", "0.6037315", "0.60331756", "0.6032154", "0.60292447", "0.60265154", "0.60204697", "0.6013123", "0.6007988", "0.6007852", "0.5989533", "0.5986844", "0.5986411", "0.59771866", "0.59741175", "0.5971127", "0.59696555", "0.5966752", "0.595865", "0.5949711", "0.5944189", "0.5941207", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.5930545", "0.59290326", "0.59283423", "0.5926811", "0.59259456", "0.59259456", "0.59259456", "0.59244186", "0.59217155", "0.5920674", "0.59151685", "0.5908093" ]
0.0
-1
Abstract method that will be implemented in the other classes that extends this class
public abstract double fromBasicUnit(double valueJTextInsert);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract void abstractMethodToImplement();", "public abstract void mo70713b();", "public abstract void afvuren();", "public abstract void mo102899a();", "public abstract void mo56925d();", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo957b();", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "abstract void geometryMethod();", "public abstract void mo27386d();", "public void setupAbstract() {\n \r\n }", "public abstract void mo30696a();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract void mh();", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "abstract int pregnancy();", "protected abstract void work();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo35054b();", "abstract void uminus();", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void doGeneralThings() {\n logger.debug(\"Overrided or implememted method - doGeneralThings!\");\n }", "public abstract void comes();", "@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "abstract public T doSomething();", "public abstract void abstractone();", "protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "abstract void sub();", "@Override\n\tprotected void interr() {\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "public abstract void mo27464a();", "public abstract void MussBeDefined();", "@Override\n\tprotected void getExras() {\n\n\t}", "public abstract void Do();", "public abstract void mo27385c();", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void method1();", "@Override\n\tpublic void some() {\n\t\t\n\t}", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public abstract void alimentarse();", "public abstract void operation();", "protected void doSomethingElse()\r\n {\r\n \r\n }", "@Override\n\tvoid func() {\n\t\tSystem.out.println(\"Overriden Abstract Method\");\n\t}", "@Override\n protected void getExras() {\n }", "public abstract void mo6549b();", "public abstract void mo4359a();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract String use();", "public abstract void mo3994a();", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public abstract void m15813a();", "public abstract Object mo26777y();", "@Override\n\tpublic void method2() {\n\t\tSystem.out.println(\"AbstractClass 추상메쏘드 method2()를 재정의(implement)\");\n\t}", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private abstract void privateabstract();", "public abstract void mo42329d();", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n public void memoria() {\n \n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}" ]
[ "0.701342", "0.6804414", "0.67500234", "0.6737024", "0.6697738", "0.6637755", "0.661806", "0.661806", "0.6538591", "0.6486208", "0.64339435", "0.6430364", "0.6402677", "0.6376188", "0.6333715", "0.6332605", "0.6317151", "0.6306278", "0.62724966", "0.62724936", "0.62561834", "0.6255876", "0.62552047", "0.62476784", "0.62436444", "0.62263393", "0.62050414", "0.62050414", "0.62050414", "0.62007433", "0.61977625", "0.6192815", "0.61925447", "0.618317", "0.618133", "0.61732286", "0.61673737", "0.61551607", "0.6136687", "0.6129821", "0.6120387", "0.6118673", "0.6083822", "0.608124", "0.6077058", "0.6072204", "0.60711384", "0.6058595", "0.60582626", "0.60505235", "0.60504824", "0.60393506", "0.6037724", "0.6036081", "0.6032929", "0.6029633", "0.6026532", "0.60214967", "0.60151905", "0.60085475", "0.60062265", "0.5991284", "0.5987754", "0.5987551", "0.59781253", "0.59750164", "0.5971941", "0.59707993", "0.59685624", "0.59594095", "0.5950102", "0.59447867", "0.59426105", "0.593133", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59292877", "0.59291285", "0.592897", "0.5925136", "0.59248835", "0.59248835", "0.59248835", "0.59225726", "0.59198993", "0.59142995", "0.5910336" ]
0.0
-1
Method that receives a name of a propertie of enum and get this propertie content and save in a list
public List<MeasureType> getDescriptionClassConverter() { List<MeasureType> list = Arrays.asList(MeasureType.valueOf(nameOfEnumUsedOfTheClass)); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.Enumeration getPropertyNames();", "java.util.List<resources.java.Complex.ComplexMessage.SimpleEnum> getSimpleEnumFieldList();", "EnumListValue createEnumListValue();", "public Object prop(String name, String type);", "public String prop(String name);", "List<? extends T> getPropertiesLike(String name);", "List<Object> getListProperty(Object name) throws JMSException;", "List<Property> givePropList(Kingdom kingdom) throws Exception;", "Collection<String> getStringListValue(int type);", "public abstract List toNameValueList();", "public List <String> getPropertyNames()\n{\n // Get list from PropertyNamesMap - load if not found\n List <String> list = _propertyNamesMap.get(getClass());\n if(list==null) {\n _propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }\n return list;\n}", "String get(String kind, String name, String property);", "public ConfigListDTO getListProperty(final String name) {\n \t\treturn listProperties.get(name);\n \t}", "public Iterator<String> listPropertyValue(String instance, String property)\r\n\t{\r\n\t\tOntResource ontI = obtainOntResource(instance);\r\n\t\tProperty prop = obtainOntProperty(property);\r\n\t\treturn new ToStringIterator<String>(ontI.listPropertyValues(prop));\r\n\t}", "public List<TLProperty> getElements();", "public <E extends Enum<E>> void addEnum(Class<E> enumeration, String propertySubName) {\n Map<Enum<?>, String> properties = new HashMap<>();\n for (E id : enumeration.getEnumConstants()) {\n String propertyName = propertySubName +\n \".\" +\n String.join(\"\", id.name().toLowerCase().split(\"_\"));\n properties.put(id, propertyName);\n }\n classProperties.put(enumeration, properties);\n }", "public List<PmPropertyBean> getProperties(Map paramter);", "@Override\n public List<LoanTypes> getLoanTypes(){\n AbstractFactory aFactory = ProducerFactory.getProducer();\n LoanTypes aLoanType = aFactory.getLoaType();\n\n loanTypesRepository.findAll().forEach((x) -> {\n aLoanType.type = x.type;\n });\n\n List<LoanTypes> result = new ArrayList<>();\n result.add(aLoanType);\n return result;\n }", "public static List<ListItem> retriveTypese() {\n\n List<ListItem> list = new ArrayList<ListItem>();\n for (E_逾期分类编码_SY status : E_逾期分类编码_SY.values()) {\n ListItem<String> element = new ListItem<String>(status.get编码(), status.get名称(), status.get名称());\n list.add(element);\n }\n\n return list;\n\n }", "public List<Object> getList( String name )\n {\n List<Object> values = null;\n if ( config != null )\n {\n values = config.getList( name );\n LOG.debug( \"getList name [{}]\", name );\n }\n else\n {\n String warn = \"getList invalid config, can't read prop [\" + name + \"]\";\n LOG.warn( warn );\n }\n return values;\n }", "public Prostor getProstor(String name){\r\n return mapa.get(name);\r\n }", "String getProperty(String name);", "@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}", "List<Type> getTypeList(String type);", "@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }", "public abstract List<PropertyType> getBuiltInProperties();", "public List<Property> properties(String name)\n\t{\n\t\treturn filter(p -> p.getName().equals(name) && p instanceof Property)\n\t\t\t\t.stream()\n\t\t\t\t\t.map(e -> (Property) e)\n\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public String getProperty(String name);", "public List<Object> getEnum() {\n\t\treturn enumField;\n\t}", "List<Property<?>> getProperties(ProjectEntity entity);", "public String getName() { return (String)get(\"Name\"); }", "abstract Object getXMLProperty(XMLName name);", "public List<PmPropertyLanguageBean> selectPropertyWithLanguages(Map Paramter);", "Object getProperty(String name);", "public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}", "public abstract List<BeanPropertyDefinition> findProperties();", "protected String getEnumeration()\n {\n return enumeration;\n }", "public abstract ArrayList<DtPropuesta> listarPropuestasPorCategoria(String nombreCat);", "public List<PersonAttributeType> getSavedPersonAttributeList(Integer pid){\n\t\tPersonService ps = Context.getPersonService();\n\t\tDeIdentifiedExportService d = Context.getService(DeIdentifiedExportService.class);\n\t\tList<String> list = d.getConceptsByCategoryByPid(\"PersonAttribute\", pid);\n\n\t\tList<PersonAttributeType> attributeTypeList = new Vector<PersonAttributeType>();\n\t\tfor(int i=0; i< list.size();i++){\n\t\t\tchar retval[] = list.get(i).toCharArray();\n\t\t\tfor(int j=0; j<retval.length; j+=2)\n\t\t\t{\n\t\t\t\tInteger t= Character.getNumericValue(retval[j]);\n\t\t\t\tattributeTypeList.add(ps.getPersonAttributeType(t));\n\n\t\t\t}\n\t\t}\n\t\treturn attributeTypeList;\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DropDownModel> getPropertyIdEdit(String proCat) {\n\n\t\tlogger.info(\"Method in Dao: getUserType starts\");\n\n\t\tList<DropDownModel> propertyTypeList = new ArrayList<DropDownModel>();\n\n\t\ttry {\n\t\t\tString value = \"SET @p_propertyCategory='\" + proCat + \"';\";\n\n\t\t\tList<Object[]> x = em.createNamedStoredProcedureQuery(\"AmenityItem\")\n\t\t\t\t\t.setParameter(\"actionType\", \"getPropertType\").setParameter(\"actionValue\", value).getResultList();\n\n\t\t\tfor (Object[] m : x) {\n\t\t\t\tDropDownModel dropDownModel = new DropDownModel(m[0], m[1]);\n\t\t\t\tpropertyTypeList.add(dropDownModel);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tlogger.info(\"Method in Dao: getUserType ends\");\n\n\t\treturn propertyTypeList;\n\t}", "String getPersonality();", "String getProperty();", "String getProperty();", "String getProperty();", "Object getTipo();", "public <T> T getProperty(String name, Class<T> type);", "java.lang.String getProperty();", "public String[] getPropertyNames();", "@Override\n @NoProxy\n @NoDump\n public List<BwXproperty> getXicalProperties(final String val) {\n List<BwXproperty> res = new ArrayList<>();\n List<BwXproperty> xs = getXproperties();\n if (xs == null) {\n return res;\n }\n\n for (BwXproperty x: xs) {\n if (x == null) {\n continue;\n }\n\n if (x.getName().equals(BwXproperty.bedeworkIcalProp)) {\n List<Xpar> xpars = x.getParameters();\n\n Xpar xp = xpars.get(0);\n if (xp.getName().equals(val)) {\n res.add(x);\n }\n }\n }\n\n return res;\n }", "public Object getProperty(String attName);", "protected boolean setEnum(String name, Object value, PropertyDescriptor pd, Object bean)\n throws IllegalAccessException, InvocationTargetException, NoSuchMethodException{\n\n assert (name != null);\n assert (value != null);\n assert (pd != null);\n assert (bean != null);\n\n boolean success = false;\n Class propertyType = pd.getPropertyType();\n\n\n try{\n pd.getWriteMethod().invoke(bean, Enum.valueOf(propertyType, value.toString()));\n success = true;\n }\n catch (IllegalArgumentException e){\n\n //check if the emum has a parse(String) method, and use it if it does.\n Method parseMethod = propertyType.getDeclaredMethod(\"parse\", String.class);\n Enum parsedEnum = (Enum) parseMethod.invoke(\n propertyType.getEnumConstants()[0], value);\n pd.getWriteMethod().invoke(bean, parsedEnum);\n success = true;\n }\n\n return success;\n }", "List<? extends T> getProperties();", "@SuppressWarnings(\"rawtypes\")\n public static String getProp(String varName) {\n if (varName == null)\n return \"\";\n varName = varName.toUpperCase().trim();\n for (Class<? extends Enum> c : CMProps.PROP_CLASSES) {\n if (CMath.s_valueOf(c, varName) != null) {\n if (c == Str.class)\n return p().getStr((Str) CMath.s_valueOf(c, varName));\n else if (c == Int.class)\n return \"\" + p().getInt((Int) CMath.s_valueOf(c, varName));\n else if (c == Bool.class)\n return \"\" + p().getBool((Bool) CMath.s_valueOf(c, varName));\n else if (c == ListFile.class)\n return \"\" + CMParms.toListString(CMProps.getListFileStringList((ListFile) CMath.s_valueOf(c, varName)));\n else if (c == StrList.class)\n return \"\" + CMParms.toListString(CMProps.getListVar((StrList) CMath.s_valueOf(c, varName)));\n else if (c == WhiteList.class)\n return \"\" + CMParms.toListString(p().whiteLists.get(CMath.s_valueOf(c, varName)));\n }\n }\n return p().getStr(varName, \"\");\n }", "protected abstract List<String> writeData(T property);", "public Properties getPropertyInfo(Properties list);", "public Iterator<String> getUserDefinedProperties();", "@Override\n public List<ModelPerson> selectparam(String name) {\n List<ModelPerson> result = null;\n JSONArray response = null;\n\n try {\n request = new HttpRequest(HTTP_URL_SELECTPARAM);\n request.configPostType( HttpRequest.MineType.VALUES );\n request.addParameter(\"name\", name);\n\n httpCode = request.post();\n\n if( httpCode == HttpURLConnection.HTTP_OK ) {\n response = request.getJSONArrayResponse();\n }\n\n // GSon을 사용하여 JSONArray을 List<ModelPerson> 으로 변환\n result = new Gson().fromJson( response.toString() , new TypeToken< List<ModelPerson> >(){}.getType() );\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public List<T> getAll(String name) {\n\t\tList<T> result = new ArrayList<T>();\n\t\tint sz = size();\n\t\tfor (int i = 0; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == n || (name != null && name.equals(n))) {\n\t\t\t\tresult.add(getVal(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }", "@SuppressWarnings(\"unchecked\")\n public List getList(String name)\n {\n Object v = getProperty(name);\n return (v == null) ? null : (List) v;\n }", "public List<PmPropertyBean> getPropertiesByModel(Map paramter);", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DropDownModel> getPropertyId() {\n\t\tList<DropDownModel> propertyNameList = new ArrayList<DropDownModel>();\n\n\t\ttry {\n\t\t\tList<Object[]> x = em.createNamedStoredProcedureQuery(\"AssignmentOfSeatingPlan\")\n\t\t\t\t\t.setParameter(\"actionType\", \"getPropertyId\")\n\t\t\t\t\t.setParameter(\"actionValue\", \"\")\n\t\t\t\t\t.getResultList();\n\n\t\t\tfor (Object[] m : x) {\n\t\t\t\tDropDownModel dropDownModel = new DropDownModel(m[0], m[1]);\n\t\t\t\tpropertyNameList.add(dropDownModel);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn propertyNameList;\n\t}", "String getValueName();", "ListValue createListValue();", "private static HashMap<String, Integer> getRelationTypeValues(String property) {\n HashMap<String, Integer> relationTypeKeyValue = new HashMap<String, Integer>();\n if(StringUtils.isEmpty(property)) {\n LOGGER.warn(\"Relationship Type enumeration is empty\");\n return relationTypeKeyValue;\n }\n String[] keyValues = property.split(\"/\");\n for(String keyValueStr : keyValues) {\n String[] nameValue = keyValueStr.split(\"=\");\n if(!ArrayUtils.isEmpty(nameValue) && nameValue.length == 2) {\n relationTypeKeyValue.put(nameValue[0], Integer.valueOf(nameValue[1]));\n }\n }\n return relationTypeKeyValue;\n }", "public String getPropertyTypeString(String name) {\n\t//initialize();\n\tProperty p = getProperty(name);\n\tif (p == null) {\n\t return null;\n\t} else {\n\t if (name.toLowerCase().contains(\"line\")) {\n\t\treturn \"Line\";\n\t }\n\t String typeString = p.getTypeName();\n\t typeString = typeString.substring(0, 1).toUpperCase() + typeString.substring(1).toLowerCase();\n\t return typeString;\n\t}\n }", "public static Hub<String> getNameValues(Class clazz, String propertyName) {\n\t\tOAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(clazz);\n\t\tOAPropertyInfo pi = oi.getPropertyInfo(propertyName);\n\t\tif (pi == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn pi.getNameValues();\n\t}", "public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }", "protected abstract String getFactPropertyType(Object property);", "public String getElement()\n {\n return \"enum\";\n }", "@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}", "public String get(final String name) {\r\n return (String) properties.get(name);\r\n }", "private List getList(Attribute attr){\n\t\tList retList;\n\t\tif(attr instanceof DiscreteAttribute){\n\t\t\tthis.labels = ChartF.getAxeLabels(attr);\n\t\t\tretList = getDisList((DiscreteAttribute)attr);\n\t\t} else {\n\t\t\tthis.labels = attr.getName();\n\t\t\tretList = getContList((ContinuousAttribute)attr);\n\t\t}\n\t\treturn retList;\n\t}", "public static ArrayList<String> getAvailPropNames(Persistence persistence, Provider propCat, PersistenceUnit pu) {\n\n List<String> propsList = getPropsNamesExceptGeneral(propCat);\n\n if (pu != null) {\n ArrayList<String> availProps = new ArrayList<>(propsList);\n if(pu.getProperties() != null) {\n for (int i = 0; i < pu.getProperties().sizeProperty2(); i++) {\n String propName = pu.getProperties().getProperty2(i).getName();\n if (!availProps.remove(propName)\n && availProps.contains(\"javax.persistence.\" + propName)) {\n availProps.remove(propName);\n }\n }\n }\n if(Persistence.VERSION_3_1.equals(persistence.getVersion())\n || Persistence.VERSION_3_0.equals(persistence.getVersion())) {\n availProps.replaceAll(s -> s.replace(PersistenceUnit.JAVAX_NAMESPACE, PersistenceUnit.JAKARTA_NAMESPACE));\n }\n return availProps;\n }\n\n return new ArrayList<String>();\n }", "@Override\r\n public List<Map<String, PrimitiveTypeProvider>> getAll() {\r\n ListenableFuture<PropertiesMessage> future = this.adampro.getProperties(\r\n EntityPropertiesMessage.newBuilder().setEntity(fromBuilder.getEntity()).build());\r\n int count = 1_000;\r\n PropertiesMessage propertiesMessage;\r\n try {\r\n propertiesMessage = future.get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n LOGGER.error(\"error in getAll: {}\", LogHelper.getStackTrace(e));\r\n return new ArrayList<>(0);\r\n }\r\n try {\r\n count = Integer.parseInt(propertiesMessage.getPropertiesMap().get(\"count\"));\r\n } catch (Exception e) {\r\n LOGGER.error(\"error in getAll: {}\", LogHelper.getStackTrace(e));\r\n }\r\n return preview(count);\r\n }", "public LightParameter(PropertyEnum propertyEnum, String value)\r\n\t{\r\n\t\tsuper(propertyEnum, value);\r\n\t}", "public String getTipo(){\r\n return tipo;\r\n }", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public String getTipo();", "public String getTipo();", "public List<Elemento> getElementosPorTipo(TipoElemento tipo) {\n ArrayList<Elemento> lista = new ArrayList<>();\n for (Elemento e : porNombre.values()) {\n if (e.getTipo().equals(tipo)) {\n lista.add(e);\n }\n }\n return lista;\n }", "public BeanListarParametro getBeanListarParametro();", "String getProperty(String property);", "public String getTipo(){\n return tipo;\n }", "public Object getProperty (String index) ;", "public List<ProgressConfigurationType> getConfigType(String type);", "public String getName(){\n return name;\n}", "ArrayList<PropertyMetadata> getProperties();", "String getName(){return this.name;}", "public static List<String> getProcessorNamePropertyConfigNames(NifiProperty property) {\n\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \"[\"+property.getProcessorName()+\"].\" + k)).collect(Collectors.toList());\n }", "public static List<String> getProcessorPropertyConfigNames(NifiProperty property) {\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \".\" +k)).collect(Collectors.toList());\n }", "public String getName() {\n return list;\n }", "@Override\n protected String getName() {return _parms.name;}", "Object getPerm(String name);", "public Object getProperty(QName name) {\n\t\tString n = getFullName(name);\n\t\tObject o = content.getProperty(n);\n\t\tLOGGER.debug(\"-------------- GETTING {} as {} --------------\", n, o);\n\t\treturn o;\n\t}", "public abstract String metadata(String property);", "public String getProperty();", "@Override\n public List<String> getEntityParameter(Group entity) {\n List<String> parameterList = new ArrayList<>();\n\n int adminId = entity.getAdminId();\n String adminIdValue = String.valueOf(adminId);\n parameterList.add(adminIdValue);\n\n String name = entity.getGroupName();\n parameterList.add(name);\n\n Date dateCreated = entity.getDateCreated();\n String dateCreatedValue = String.valueOf(dateCreated);\n parameterList.add(dateCreatedValue);\n\n String groupDescription = entity.getGroupDescription();\n parameterList.add(groupDescription);\n\n return parameterList;\n }" ]
[ "0.60069376", "0.57556844", "0.56122243", "0.5609019", "0.5603726", "0.55579245", "0.544558", "0.5429044", "0.54041994", "0.53488874", "0.5337485", "0.53354275", "0.5295668", "0.5286559", "0.5271891", "0.5257818", "0.5212411", "0.5201729", "0.5198224", "0.51799536", "0.5177988", "0.517745", "0.51700217", "0.5166247", "0.5152544", "0.5149409", "0.51345444", "0.5127093", "0.5108448", "0.51020074", "0.5100394", "0.50942665", "0.5092977", "0.5092409", "0.508448", "0.50624126", "0.5058325", "0.50478536", "0.50142014", "0.5013245", "0.49895197", "0.49828383", "0.49828383", "0.49828383", "0.49724773", "0.49678427", "0.49643755", "0.49638352", "0.49571973", "0.49495026", "0.49468637", "0.4937396", "0.49308085", "0.4915861", "0.49122557", "0.49086067", "0.49066103", "0.490041", "0.49003765", "0.48994172", "0.48816004", "0.4872258", "0.4872189", "0.48719385", "0.48719344", "0.4871072", "0.48634073", "0.48551503", "0.4854705", "0.4849363", "0.48453218", "0.48397008", "0.48330864", "0.48322612", "0.4831574", "0.48248306", "0.482052", "0.4817567", "0.48171502", "0.4807893", "0.48067725", "0.48067725", "0.48035213", "0.48025033", "0.4796534", "0.4789388", "0.4783051", "0.47770542", "0.47725216", "0.47719264", "0.476799", "0.47618672", "0.47596413", "0.4756551", "0.47542807", "0.47511587", "0.4748562", "0.47469234", "0.47426438", "0.47420725" ]
0.4757689
93
opening the browser and filling the text box
@BeforeClass public void method() { System.setProperty("webdriver.chrome.driver", "./driver/chromedriver.exe"); driver= new ChromeDriver(); driver.get("https://www.facebook.com"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); log = Logger.getLogger(Baseclass.class); // PropertyConfigurator.configure("log4j.properties"); DOMConfigurator.configure("log4j.xml"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t @WebTest\n\t public void DemoTest1() throws InterruptedException {\n\t Grid.driver().get(\"http://www.google.com/\");\n\t \n\t TextField field = new TextField(\"id=lst-ib\");\n\n\t //Thread will wait until TextFiled element present in the browser\n\t WebDriverWaitUtils.waitUntilElementIsPresent(field.getLocator());\n\n\t //Search for the string 'SeLion' in the text box\n\t field.type(\"Selenium\\n\");\n\t }", "public void openNSE() {\n\t\t\t this.open.getText();\r\n\t\t}", "public void openText() {\n\t\tString xml = xformsWidget.getXform();\n\t\tif (xml == null || xml.trim().length() == 0) {\n\t\t\tWindow.alert(LocaleText.get(\"emptyFormError\"));\n\t\t\tshowOpen();\n\t\t\treturn;\n\t\t}\n\t\txformsWidget.hideWindow();\n\t\ttry\n\t\t{\n\t\t\tcontroller.loadNewForm(xml);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tWindow.alert(LocaleText.get(\"error\") + \":\\n\\r\" + e.getMessage());\n\t\t}\n\t}", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "public static void main(String[] args) throws Exception {\n\t\t\t\tlaunchBrowser(\"ch\");\n\t\t\t\tThread.sleep(2000);\n\t\t\t\tRobot rb = new Robot();\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); //--> to type a letter A\n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_D); \n\t\t\t\trb.keyRelease(KeyEvent.VK_D);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_N); \n\t\t\t\trb.keyRelease(KeyEvent.VK_N);\n\t\t\t\trb.keyPress(KeyEvent.VK_1); \n\t\t\t\trb.keyRelease(KeyEvent.VK_1);\n\t\t\t\trb.keyPress(KeyEvent.VK_2); \n\t\t\t\trb.keyRelease(KeyEvent.VK_2);\n\t\t\t\trb.keyPress(KeyEvent.VK_3); \n\t\t\t\trb.keyRelease(KeyEvent.VK_3);\n\t\t\t\t//rb.keyPress(KeyEvent.VK_AT); \n\t\t\t\t//rb.keyRelease(KeyEvent.VK_AT);\n\t\t\t\trb.keyPress(KeyEvent.VK_G); \n\t\t\t\trb.keyRelease(KeyEvent.VK_G);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\trb.keyPress(KeyEvent.VK_A); \n\t\t\t\trb.keyRelease(KeyEvent.VK_A);\n\t\t\t\trb.keyPress(KeyEvent.VK_I); \n\t\t\t\trb.keyRelease(KeyEvent.VK_I);\n\t\t\t\trb.keyPress(KeyEvent.VK_L); \n\t\t\t\trb.keyRelease(KeyEvent.VK_L);\n\t\t\t\trb.keyPress(KeyEvent.VK_PERIOD); \n\t\t\t\trb.keyRelease(KeyEvent.VK_PERIOD);\n\t\t\t\trb.keyPress(KeyEvent.VK_C); \n\t\t\t\trb.keyRelease(KeyEvent.VK_C);\n\t\t\t\trb.keyPress(KeyEvent.VK_O); \n\t\t\t\trb.keyRelease(KeyEvent.VK_O);\n\t\t\t\trb.keyPress(KeyEvent.VK_M); \n\t\t\t\trb.keyRelease(KeyEvent.VK_M);\n\t\t\t\tThread.sleep(5000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_TAB);\n\t\t\t\trb.keyRelease(KeyEvent.VK_TAB);\n\t\t\t\tThread.sleep(2000);\n\t\t\t\trb.keyPress(KeyEvent.VK_ENTER);\n\t\t\t\trb.keyRelease(KeyEvent.VK_ENTER);\n\t\t\t\t\n\t\t\t\t//File upload test cases we used to do that --> \n\t\t\t\t//This will work on focus basis --> Recomended\n\t\t\t\t//No gurantee whether it is success or not\n\t\t\t\t// Always recomended we have to ask the developers to write elements/Automation supported codes\n\t\t\t\t\n\t\t\t\t//This is recomended but can be used in browser only\n\t\t\t\t//driver.findElement(By.xpath(\"//button[contains(text(),'Login to Account')]\")).sendKeys(keys.ENTER);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void textBoxSubmit() throws InterruptedException {\n\t\tdriver.get(\"http://www.google.com\");\n\t\tWebElement input = driver.findElement(By.name(\"q\"));\n\t\tinput.sendKeys(\"React\");\n\t\tThread.sleep(1000);\n\t\tinput.clear();\n\t\tThread.sleep(1000);\n\t\tinput.sendKeys(\"Angular\");\n\t\tThread.sleep(1000);\n\t\tinput.submit();\n\t}", "public void InsertText(String txt){\n driver.switchTo().frame(driver.findElement(IFRAMEID));\n WebElement inputBox = find(BOXID);\n inputBox.clear();\n inputBox.sendKeys(txt);\n\n }", "public void enterText(WebElement element,String value) {\nelement.sendKeys(value);\n\t}", "public void enterTextinTextbox(WebElement element, String text) {\n\n\t\telement.clear();\n\t\telement.sendKeys(text);\n\t}", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "public static void enterText(WebElement obj, String textVal, String objName) throws IOException{\r\n\t\tif(obj.isDisplayed()){\r\n\t\t\tobj.sendKeys(textVal);\r\n\t\t\tUpdate_Report(\"Pass\", \"enterText\", textVal+ \" is entered in \" + objName + \" field\");\r\n\t\t}else{\r\n\t\t\tUpdate_Report(\"Fail\", \"enterText\", objName + \" field is not displayed please check your application \");\r\n\t\t}\r\n\r\n\t}", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "public void enterAnswer(String text) {\n\t\ttextBox.clear();\n\t\ttextBox.sendKeys(text);\n\t}", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\tWebDriver driver=launchBrowser(\"http://www.seleniumframework.com/Practiceform/\");\r\n\tdriver.findElement(By.id(\"alert\")).click();\r\n\t\r\n\tAlert alert=driver.switchTo().alert();\r\n\tString alertText=alert.getText();\r\n\tSystem.out.println(alertText);\r\n\talert.accept();\r\n\t\r\n\tdriver.findElement(By.name(\"name\")).sendKeys(\"Selenium\");\r\n\t\r\n\tdriver.switchTo().frame(0);\r\n\t//adfasdfasdf\r\n\tdriver.switchTo().defaultContent();\r\n\t\r\n\t\r\n\t\r\n\t}", "@Test\n public void sendKeys() {\n page.textInput.sendKeys(\"coffee\");\n waiter.waitForElementAttributeEqualsString(page.textInput, \"value\", \"coffee\", driver);\n //type into a <textarea> element\n //before typing, the textarea element displays a hint, but not an actual text (in the 'placeholder' attribute)\n //therefore the getAttribute(\"value\") method call returns an empty String\n waiter.waitForElementAttributeEqualsString(page.textarea, \"value\", \"\", driver);\n page.textarea.sendKeys(\"1234567890\");\n //after typing, the text in the field will be \"1234567890\"\n waiter.waitForElementAttributeEqualsString(page.textarea, \"value\", \"1234567890\", driver);\n //type the same text again and the text in the field becomes \"12345678901234567890\"\n page.textarea.sendKeys(\"1234567890\");\n waiter.waitForElementAttributeEqualsString(page.textarea, \"value\", \"12345678901234567890\", driver);\n }", "public void requestFocus(){\n\t\tusername.requestFocusInWindow();\n\t}", "private void initialize() {\r\n\t\tfrmClient = new JFrame();\r\n\t\tfrmClient.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\tautoFillInUsername();\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\thReq.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tfrmClient.setResizable(false);\r\n\t\tfrmClient.setForeground(SystemColor.window);\r\n\t\tfrmClient.setTitle(\"Client\");\r\n\t\tfrmClient.setBackground(SystemColor.window);\r\n\t\tfrmClient.setBounds(100, 100, 528, 364);\r\n\t\tfrmClient.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setBackground(SystemColor.window);\r\n\t\tfrmClient.getContentPane().add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tgNameTextField = new JTextField();\r\n\t\tgNameTextField.setEditable(false);\r\n\t\tgNameTextField.setBounds(154, 11, 261, 20);\r\n\t\tpanel.add(gNameTextField);\r\n\t\tgNameTextField.setColumns(10);\r\n\t\t\r\n\t\tlblGivenname = new JLabel(\"Givenname\");\r\n\t\tlblGivenname.setBounds(36, 14, 67, 14);\r\n\t\tpanel.add(lblGivenname);\r\n\t\t\r\n\t\tlblSurname = new JLabel(\"Surname\");\r\n\t\tlblSurname.setBounds(36, 45, 67, 14);\r\n\t\tpanel.add(lblSurname);\r\n\t\t\r\n\t\tsNameTextField = new JTextField();\r\n\t\tsNameTextField.setEditable(false);\r\n\t\tsNameTextField.setBounds(154, 42, 261, 20);\r\n\t\tpanel.add(sNameTextField);\r\n\t\tsNameTextField.setColumns(10);\r\n\t\t\r\n\t\tuserInfos = new JTextArea();\r\n\t\tuserInfos.setFont(new Font(\"Monospaced\", Font.PLAIN, 10));\r\n\t\tuserInfos.setText(\"############# Infos will be displayed here ################\");\r\n\t\tuserInfos.setForeground(Color.WHITE);\r\n\t\tuserInfos.setToolTipText(\"\");\r\n\t\tuserInfos.setBackground(SystemColor.desktop);\r\n\t\tuserInfos.setEditable(false);\r\n\t\tuserInfos.setLineWrap(true);\t\t\r\n\t\tJScrollPane scroll = new JScrollPane (userInfos);\r\n\t\tscroll.setBounds(10, 212, 500, 112);\r\n\t\tpanel.add(scroll);\r\n\t\t\r\n\t\tlabel = new JLabel(\"E-Mail-Address\");\r\n\t\tlabel.setBounds(36, 76, 119, 14);\r\n\t\tpanel.add(label);\r\n\t\t\r\n\t\teMailTextField = new JTextField();\r\n\t\teMailTextField.setColumns(10);\r\n\t\teMailTextField.setBounds(154, 73, 261, 20);\r\n\t\tpanel.add(eMailTextField);\r\n\t\t\r\n\t\tbtnSubmitCertificateSigning = new JButton(\"Submit Certificate Signing Request\");\r\n\t\tbtnSubmitCertificateSigning.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tcreateCertificateSigningRequest();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmitCertificateSigning.setBackground(Color.WHITE);\r\n\t\tbtnSubmitCertificateSigning.setBounds(154, 101, 261, 23);\r\n\t\tpanel.add(btnSubmitCertificateSigning);\r\n\t\t\r\n\t\tlblTokenFromMail = new JLabel(\"Token from Mail\");\r\n\t\tlblTokenFromMail.setBounds(36, 153, 119, 14);\r\n\t\tpanel.add(lblTokenFromMail);\r\n\t\t\r\n\t\ttokenTextField = new JTextField();\r\n\t\ttokenTextField.setEditable(false);\r\n\t\ttokenTextField.setToolTipText(\"Format = XXXX-XXXX-XXXX-XXXX\");\r\n\t\ttokenTextField.setColumns(10);\r\n\t\ttokenTextField.setBounds(154, 150, 261, 20);\r\n\t\tpanel.add(tokenTextField);\r\n\t\t\r\n\t\tbtnSubmitToken = new JButton(\"Submit Token\");\r\n\t\tbtnSubmitToken.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tsendTokenToService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmitToken.setEnabled(false);\r\n\t\tbtnSubmitToken.setBackground(Color.WHITE);\r\n\t\tbtnSubmitToken.setBounds(154, 178, 261, 23);\r\n\t\tpanel.add(btnSubmitToken);\r\n\t\t\r\n\t}", "private void setLogin(String username) {\n\t\tif(username == null) {\n\t\t\treturn;\n\t\t}\n\t\tloginTextBox.sendKeys(username);\n\t}", "public void settxtUsername(String uname) {\n\t\tWebDriverWait wait = new WebDriverWait(ldriver, 25);\n\t\twait.until(ExpectedConditions.visibilityOf(txtUsername));\n\t\ttxtUsername.sendKeys(uname);\n\t}", "protected abstract void fillPromptText();", "public void open() {\n setWebDriver();\n }", "public static void enter(WebElement element, String value) {\r\n\t\ttry {\r\n\t\t\telement.sendKeys(value);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"WebElement not found \" + e);\r\n\t\t\tcontrolFlag = false;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void enterNameInAboutMe(String name) throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"Name Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"User Name\");\r\n\t\tUIActions.click(fileName,\"Name Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"User Name\");\r\n\t\tUIActions.clearTextBox(fileName,\"Name Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"User Name\");\r\n\t\tUIActions.enterValueInTextBox(name,fileName,\"Name Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"User Name\");\r\n\t\tUIActions.enterKey(Keys.TAB);\r\n\t\r\n\t}", "public void run() {\n txtSpclDate.requestFocus();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(108, 38, 86, 20);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(108, 106, 86, 20);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tJButton btnDisplay = new JButton(\"Display\");\r\n\t\tbtnDisplay.setBounds(258, 73, 89, 23);\r\n\t\tframe.getContentPane().add(btnDisplay);\r\n\t\tbtnDisplay.addActionListener(new ActionListener()\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tString get=textField.getText();\r\n\t\t\t\t\t\ttextField_1.setText(get);\r\n\t\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t});\r\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public static void main(String[] args) throws AWTException {\n\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ChromeDriver\\\\New\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.google.co.uk/\");\r\n\t\t\r\n\t\tWebElement searchbox=driver.findElement(By.name(\"q\"));\r\n\t\t//searchbox.sendKeys(Keys.SHIFT+ \"shirdi\" +Keys.ENTER);\r\n\t\t//2. \\n\r\n\t\t//searchbox.sendKeys(\"shirdi \\n\");\r\n\t\t//3. submit \r\n\t\t\r\n\t\tsearchbox.sendKeys(\"shirdi\");\r\n\t\t//searchbox.submit();\r\n\r\n\t\t//4. robot class\r\n\t\t\r\n\t\tRobot robot =new Robot();\r\n\t\trobot .keyPress(KeyEvent.VK_ENTER);\r\n\t\trobot.keyRelease(KeyEvent.VK_ENTER);\r\n\t\t\r\n\t}", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "private void aplicarTextPrompt() {\n TextPrompt textPrompt = new TextPrompt(\"jdbc:mysql://localhost:3306/mydb\", urlJTF);\n TextPrompt textPrompt1 = new TextPrompt(\"root\", usernameJTF);\n TextPrompt textPrompt2 = new TextPrompt(\"*********\", passwordJPF);\n }", "public void navigateToWeb() throws Exception {\n\n server.setCurrentItem(1, HOME_URL);\n\n // Navegate to HOME_URL address\n browser.navigate(HOME_URL);\n\n //Tihis command is uses to make visible in the desktop the page (IExplore issue)\n if (browserType.equals(\"IE\")) {\n client.clickOnCenter();\n client.pause(3000);\n }\n\n By lName = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[1]/td/div/input\");\n By dob = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[2]/td/div/input\");\n By accNumber = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[3]/td/div/input\");\n By sortCd = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[4]/td/div/input\");\n By pCode = By.xpath(\"/html/body/div/div/div[1]/form/table/tbody/tr[5]/td/div/input\");\n browser.textFieldSet(lName,lastName,true);\n browser.textFieldSet(dob,dateOfBirth,true);\n browser.textFieldSet(accNumber,accountNumber,true);\n browser.textFieldSet(sortCd,sortCode,true);\n browser.textFieldSet(pCode,postCode,true);\n\n browser.clickOnElement(By.xpath(\"/html/body/div/div/div[1]/form/div/input\"));\n\n By message = By.id(\"message\");\n\n boolean isMessageExists = browser.existsElement(message);\n\n if(!isMessageExists) {\n\n By tableId = By.id(\"customer\");\n WebElement table = browser.getElement(tableId);\n\n List<WebElement> th = table.findElements(By.tagName(\"th\"));\n\n int lastNamePos = 0;\n int postCodePos = 0;\n int dobPos = 0;\n int accountNoPos = 0;\n int sortCodePos = 0;\n\n for (int i = 0; i < th.size(); i++) {\n if (\"Last Name\".equalsIgnoreCase(th.get(i).getText())) {\n lastNamePos = i + 1;\n } else if (\"Date of Birth\".equalsIgnoreCase(th.get(i).getText())) {\n dobPos = i + 1;\n } else if (\"Account Number\".equalsIgnoreCase(th.get(i).getText())) {\n accountNoPos = i + 1;\n } else if (\"Sort Code\".equalsIgnoreCase(th.get(i).getText())) {\n sortCodePos = i + 1;\n } else if (\"Post Code\".equalsIgnoreCase(th.get(i).getText())) {\n postCodePos = i + 1;\n }\n }\n\n List<WebElement> lastNameElements = table.findElements(By.xpath(\"//tr/td[\" + lastNamePos + \"]\"));\n List<WebElement> dobElements = table.findElements(By.xpath(\"//tr/td[\" + dobPos + \"]\"));\n List<WebElement> accountElements = table.findElements(By.xpath(\"//tr/td[\" + accountNoPos + \"]\"));\n List<WebElement> sortCodeElements = table.findElements(By.xpath(\"//tr/td[\" + sortCodePos + \"]\"));\n List<WebElement> postCodeElements = table.findElements(By.xpath(\"//tr/td[\" + postCodePos + \"]\"));\n\n for (int i = 0; i < lastNameElements.size(); i++) {\n WebElement e = lastNameElements.get(i);\n if (e.getText().trim().equalsIgnoreCase(lastName)) {\n if (dobElements.get(i).getText().trim().equalsIgnoreCase(dateOfBirth)\n && accountElements.get(i).getText().trim().equalsIgnoreCase(accountNumber)\n && sortCodeElements.get(i).getText().trim().equalsIgnoreCase(sortCode)\n && postCodeElements.get(i).getText().trim().equalsIgnoreCase(postCode)) {\n resultMap.put(\"matchFound\", \"true\");\n break;\n }\n }\n }\n } else\n resultMap.put(\"matchFound\", \"false\");\n\n\n }", "private void sendTextInBox() {\n\t\tmodelAdapter.send(textFieldMessage.getText());\n\t textFieldMessage.setText(\"\");\n\t }", "public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }", "private void enterCriteriaToSerachField(String text) {\n WebElement searchField = findElementWithWait(By.id(\"gh-ac\"));\n searchField.clear();\n searchField.sendKeys(text);\n searchField.sendKeys(Keys.RETURN);\n }", "public String writeInInput(String object, String data) {\n logger.debug(\"Writing in text box\");\n logger.debug(\"Data: \" + data);\n try {\n String browser = CONFIG.getProperty(\"browserType\");\n WebElement ele = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))); // modified by mayank\n ele.clear();\n Thread.sleep(2000); // added by sdhamija, 11 Nov, 2013\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele, data);\n if (browser.equals(\"IE\")) {\n \tThread.sleep(3000);\n } \n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n // e.printStackTrace();\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getMessage();\n }\n return Constants.KEYWORD_PASS + \"--\" + data;\n\n }", "@BeforeTest\n\tpublic void openBrowser(){\n\t\t//initializing the firefox driver\n\t\tdriver =new FirefoxDriver();\n\t\t// accessing the webpage\n\t\tdriver.get(\"https://platform-stag.systran.net\");\n\t\t//setting the windows size in 1920*1080\n\t\tdriver.manage().window().setSize(new Dimension(1920,1080));\n\n\t\t// the imperative wait \n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t//accessing the from page of the webpage and clicking in the sign in button\n\t\tLocatorsInFrontPage locatorinfront=PageFactory.initElements(driver, LocatorsInFrontPage.class);\n\t\tlocatorinfront.signIn.click();\n\t\t// accessing the pop up sign in and choosing the log in with systran\t\n\t\tLocatorsInSigninPopUp signinpopup=PageFactory.initElements(driver, LocatorsInSigninPopUp.class);\n\t\tsigninpopup.continueWithSystran.click();\n\n\t\t// locating the username and password filling form\n\t\tLocatorsInSignInaccount locatorinSignIn=PageFactory.initElements(driver, LocatorsInSignInaccount.class);\n\t\tlocatorinSignIn.userName.sendKeys(\"[email protected]\");\n\t\tlocatorinSignIn.password.sendKeys(\"SESpassword\");\n\t\tlocatorinSignIn.signIn.click();\n\n\n\t}", "public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:[email protected]:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }", "@Test\n public void getText() {\n page.getTextTextarea.clear();\n waiter.waitForElementTextEqualsString(page.getTextTextarea, \"Predefined text\", driver);\n waiter.waitForElementAttributeEqualsString(page.getTextTextarea, \"value\", \"\", driver);\n\n //type text in the text area. getText() returns initial text. getAttribute(\"value\") returns newly typed text\n page.getTextTextarea.sendKeys(\"New text\");\n waiter.waitForElementTextEqualsString(page.getTextTextarea, \"Predefined text\", driver);\n waiter.waitForElementAttributeEqualsString(page.getTextTextarea, \"value\", \"New text\", driver);\n }", "public void enterTextInToInput(String xpath, String text) {\r\n WebElement input = webDriver.findElement(By.xpath(xpath));\r\n try {\r\n input.clear();\r\n input.sendKeys(text);\r\n logger.info(text + \" was inputed to input \");\r\n } catch (Exception e) {\r\n logger.error(\"Cannot work with input\");\r\n Assert.fail(\"Cannot work with input\");\r\n }\r\n\r\n\r\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public void setFocus() {\n \t\t// set initial focus to the URL text combo\n \t\turlCombo.setFocus();\n \t}", "public void enterBigText(String value) {\r\n\r\n\t\treportStep(\"About to enter the Big Text \" + value, \"INFO\");\r\n\r\n\t\tif(enterTextInChrome(appNotificationBigText,value)) {\r\n\r\n\t\t\treportStep(\"Successfully entered the BigText \" + value, \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\treportStep(\"Failed to enter the BigText \" + value, \"FAIL\");\r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws AWTException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"E:\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\t//driver.get(\"http://www.google.co.in\");\r\n\t\tdriver.get(\"http://www.leafground.com/pages/checkbox.html\");\r\n\t\t//Search elements\r\n\t\t\r\n\t\t//WebElement name=driver.findElement(By.name(\"q\"));\r\n\t\t//name.sendKeys(\"Tiruchy \\n\"); //Using SendKeys\r\n //name.sendKeys(\"Oracle\" +Keys.ENTER);\r\n\t\t//name.sendKeys(\"Pollachi\");\r\n\t\t//name.submit();\r\n\t\t/*Robot robot=new Robot();\r\n\t\trobot.keyPress(KeyEvent.VK_J);\r\n\t\trobot.keyRelease(KeyEvent.VK_J);\r\n\t\trobot.keyPress(KeyEvent.VK_A);\r\n\t\trobot.keyRelease(KeyEvent.VK_A);\r\n\t\trobot.keyPress(KeyEvent.VK_V);\r\n\t\trobot.keyRelease(KeyEvent.VK_V);\r\n\t\trobot.keyPress(KeyEvent.VK_A);\r\n\t\trobot.keyRelease(KeyEvent.VK_A);\r\n\t\trobot.keyPress(KeyEvent.VK_ENTER);\r\n\t\trobot.keyRelease(KeyEvent.VK_ENTER);*/\r\n\t\t\r\n\t\t//-------------------SendKeys Without Selenium--------------------------------------------\r\n\t\t\r\n\t\t// Robot class,sendkeys, activeElement\r\n\t\t\r\n\t\t/* JavascriptExecutor executor=(JavascriptExecutor) driver;\r\n\t\texecutor.executeScript(\"arguments[0].value='Pollachi'\", name); */\r\n\t\t\r\n\t\t/*driver.switchTo().activeElement();\r\n\t\tRobot robot=new Robot();\r\n\t\trobot.keyPress(KeyEvent.VK_J);\r\n\t\trobot.keyRelease(KeyEvent.VK_J);\r\n\t\trobot.keyPress(KeyEvent.VK_A);\r\n\t\trobot.keyRelease(KeyEvent.VK_A);\r\n\t\trobot.keyPress(KeyEvent.VK_V);\r\n\t\trobot.keyRelease(KeyEvent.VK_V);\r\n\t\trobot.keyPress(KeyEvent.VK_A);\r\n\t\trobot.keyRelease(KeyEvent.VK_A);\r\n\t\trobot.keyPress(KeyEvent.VK_ENTER);\r\n\t\trobot.keyRelease(KeyEvent.VK_ENTER); */\r\n\t\t\r\n\t\t//---------------select all check boxes------------\r\n\t\t\r\n\t\tList<WebElement> cb=driver.findElements(By.xpath(\"//input[@type='checkbox']\"));\r\n\t\tfor (WebElement element : cb) {\r\n\t\t\telement.click();\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void enterText(String objXpath, String enterValue, String objectName) throws IOException{\n\n\t\tif(driver.findElement(By.xpath(objXpath)).isDisplayed()){\n\t\t\tdriver.findElement(By.xpath(objXpath)).clear();\n\t\t\tdriver.findElement(By.xpath(objXpath)).sendKeys(enterValue);\n\n\t\t\tUpdate_Report( \"Pass\", \"enterText\", objectName + \" \"+ enterValue + \" is entered in \" + objectName + \" field\");\n\t\t}else{\n\t\t\tUpdate_Report( \"Fail\", \"enterText\", objectName + \" field does not exist in the application\");\n\t\t}\n\t}", "void open() throws FileNotFoundException, IOException{\r\n \r\n //Call setup to get global settings and check if this is the first run. \r\n File settings = new File(settingsPath);\r\n if (!settings.isDirectory()){\r\n //then this is the first run...call setup\r\n Setup firstrun = new Setup(this, ax);\r\n }else{\r\n //Get the settings from the file, if the file has dissappeared since\r\n //first setup, recreate.\r\n InputStream in = null;\r\n try {\r\n \r\n File sFile = new File(\"c:\\\\AE\\\\settings\\\\setting.txt\");\r\n if (!sFile.exists()){\r\n System.out.println(\"Creating Settings File with defaults.\");\r\n sFile.createNewFile();\r\n Writer w = new FileWriter(sFile);\r\n w.append(\"Password:password:Homepage:www.google.com:Runs:1\\n\");\r\n w.close();\r\n \r\n }\r\n in = new FileInputStream(\"c:/ae/settings/setting.txt\");\r\n } catch (FileNotFoundException fileNotFoundException) {\r\n System.out.println(\"File Not Found!\");\r\n }\r\n \r\n Scanner scanner = new Scanner(in);\r\n \r\n while (scanner.hasNext()){ \r\n \r\n String[] Settings = scanner.nextLine().split(\":\");\r\n password = Settings[1];\r\n setPassword(password);\r\n \r\n String homepage = Settings[3];\r\n System.out.println(homepage);\r\n setHome(homepage);\r\n \r\n in.close();\r\n \r\n }\r\n }\r\n //Ask for password until the correct password is entered.\r\n \r\n Password pw = new Password();\r\n \r\n do {pw.showDialog();}\r\n while (!(pw.pass.getText() == null ? password == null : pw.pass.getText().equals(password)));\r\n \r\n \r\n //Add the browser into the browser Pane\r\n \r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n \r\n ax.browserPane.add(\"Browser\", ax.browser.getComponent());\r\n \r\n \r\n }\r\n }); \r\n \r\n ///////////////////////////////////\r\n //Action listeners start here. //\r\n ///////////////////////////////////\r\n \r\n /**\r\n * Get the current page status and display in the statusLabel\r\n */\r\n ax.browser.addStatusListener(new StatusListener() {\r\n \r\n @Override\r\n public void statusChanged(final StatusChangedEvent event) {\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.statusLabel.setText(event.getStatusText());\r\n }\r\n });\r\n \r\n }\r\n });\r\n \r\n //Action Listener for homeButton\r\n ax.homeButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n try {\r\n ax.browser.navigate(getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.browser.waitReady();\r\n try {\r\n tokenString = (\"<Action Home>::\" + getHome() + delim);\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n } });\r\n \r\n //Action Listener Go to a new http web address\r\n ax.goButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }});\r\n \r\n\r\n \r\n \r\n //Browser tab and enter listener\r\n \r\n ax.browser.getComponent().addKeyListener(new KeyListener() {\r\n \r\n @Override\r\n public void keyTyped(KeyEvent ke) {\r\n \r\n }\r\n @Override\r\n public void keyPressed(KeyEvent ke) {\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent ke) {{\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Enter\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n } {\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_TAB){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Tab\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n }\r\n }\r\n \r\n }}\r\n });\r\n\r\n \r\n //Address Bar Enter Key listener, same as above but with Enter Key\r\n ax.addressBar.addKeyListener(new java.awt.event.KeyAdapter() {\r\n \r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady(); \r\n \r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n }\r\n }});\r\n \r\n //Search Bar Enter Key listener\r\n ax.searchField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){\r\n \r\n ax.browser.navigate(\"http://www.google.com/search?q=\" + ax.searchField.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Google_Search>::\" +ax.browser.getCurrentLocation() + delim);\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }\r\n }});\r\n \r\n //Action Listener Go Back\r\n ax.backButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goBack();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Back>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n \r\n \r\n }});\r\n \r\n //Action go forward\r\n ax.forwardButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goForward();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Forward>::\" + ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n }); \r\n \r\n }});\r\n \r\n /*Now we need to update the address bar when we go to a new page\r\n * \r\n * Change the navigation text, and most importantly, process clicks \r\n */\r\n \r\n ax.browser.addNavigationListener(new NavigationListener() {\r\n @Override\r\n public void navigationStarted(final NavigationEvent event) {\r\n documentElement.removeEventListener(\"click\", clickEventListener, false); \r\n documentElement.removeEventListener(\"change\", changeEventListener, false); \r\n documentElement.removeEventListener(\"focusin\", inEventListener, false); \r\n documentElement.removeEventListener(\"focusout\", outEventListener, false); \r\n \r\n }\r\n\r\n @Override\r\n public void navigationFinished(NavigationFinishedEvent event) {\r\n \r\n \r\n ax.addressBar.setText(event.getUrl());\r\n \r\n //set the webpage title on the tab\r\n //set the title in its own swing thread\r\n String checkTitle =ax.browser.getTitle();\r\n if (checkTitle.length() > 40){\r\n for (int i = 0; i<=checkTitle.length(); ++i){\r\n checkTitle = checkTitle.substring(0, 30);\r\n }\r\n \r\n \r\n }\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n }\r\n });\r\n \r\n \r\n \r\n document = ax.browser.getDocument();\r\n documentElement = (DOMElement) document.getDocumentElement();\r\n EventListener init = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n \r\n \r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n \r\n \r\n \r\n \r\n }\r\n };\r\n \r\n documentElement.addEventListener(\"load\",init,false);\r\n \r\n ((EventTarget) documentElement).addEventListener(\"click\", new EventListener() {\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n if (\"textarea\".equals(t.getNodeName().toLowerCase())){\r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n }\r\n \r\n }\r\n}, false);\r\n \r\n //Listener for element clicks\r\n \r\n clickEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n \r\n org.w3c.dom.events.MouseEvent event = (org.w3c.dom.events.MouseEvent) evt;\r\n \r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n \r\n String tagName = target.getNodeName().toLowerCase();\r\n \r\n if (tagName.equals(\"input\")){\r\n documentElement.addEventListener(\"keyup\", keyEventListener, false);\r\n \r\n }\r\n \r\n else {\r\n htmlEvent.processThis(ax, target, documentElement);\r\n }\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n \r\n //Looks for changes in text. \r\n keyEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n org.w3c.dom.events.Event event = (org.w3c.dom.events.Event) evt;\r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n System.out.println(\"target value: \"+ event.getType()); \r\n \r\n htmlEvent.processThis(ax, target, documentElement);\r\n \r\n \r\n }\r\n };\r\n changeEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n inEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n documentElement.addEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusin\", inEventListener, false);\r\n\r\n \r\n \r\n outEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n //Remove Listeners on focus out.\r\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusout\", outEventListener, false);\r\n\r\n\r\n \r\n \r\n }\r\n });\r\n \r\n //Navigate to our home screen and wait for it to be ready.\r\n ax.browser.navigate(getHome());\r\n ax.browser.waitReady();\r\n ax.conscriptPane.setVisible(false);\r\n \r\n //Get the history.\r\n /*\r\n HistoryListModel hlm = new HistoryListModel(ax);\r\n ax.HistoryCombo.setModel(hlm);\r\n */\r\n //Change the tab text to current page\r\n SwingUtilities.invokeLater(new Runnable() {\r\n \r\n @Override\r\n public void run() {\r\n \r\n //Setup the ax.browser tab, html tab and addressbar\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }\r\n });\r\n \r\n }", "public void inputText(WebElement element, String text) {\r\n\t\twaitForElement(element);\r\n\t\telement.clear();\r\n\t\telement.sendKeys(text);\r\n\t}", "void login() {\r\n\t\t// to show the window and the data input\r\n\t\td = new Dialog(f, true);\r\n\t\thost = new TextField(10);\r\n\t\ttf_name = new TextField(10);\r\n\t\td.setLayout(new GridLayout(3, 2));\r\n\t\td.add(new Label(\"host:\"));\r\n\t\td.add(host);\r\n\t\td.add(new Label(\"name:\"));\r\n\t\td.add(tf_name);\r\n\t\tButton b = new Button(\"OK\");\r\n\t\tb.addActionListener(new ActionListener() {\r\n\t\t\t// if the input is ended, then use the realLogin method to login the server\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\trealLogin(host.getText(), tf_name.getText());\r\n\t\t\t\td.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\td.add(b);\r\n\t\td.setResizable(true);\r\n\t\td.setSize(200, 150);\r\n\t\td.show();\r\n\t\t(new Thread(this)).start();\r\n\t}", "@Test\n public void enterTextInSearchField() {\n WebDriverWait wait = new WebDriverWait(driver, 5);\n\n // Afterwards, we need to inform WebDriver to wait until an expected condition is met\n // The ExpectedConditions class supplies many methods for dealing with scenarios that may occur before\n // executing the next Test Step\n }", "public void enterTextInToInput(WebElement input, String text) {\r\n try {\r\n input.clear();\r\n input.sendKeys(text);\r\n logger.info(text + \" was inputed to input \");\r\n } catch (Exception e) {\r\n logger.error(\"Cannot work with input\");\r\n Assert.fail(\"Cannot work with input\");\r\n }\r\n\r\n\r\n }", "public void enterValueInFormTextField(String locator,String data) throws InterruptedException{\n\t\ttry{\r\n\t\t\tThread.sleep(2000L);\r\n//\t\t\tdriver.findElement(By.xpath(prop.getProperty(locator))).sendKeys(data);\r\n\t\t\tgetElement(locator).sendKeys(data);\r\n\t\t\ttest.log(LogStatus.INFO, locator+\",\"+data+\"--> entered value in Form Text Field\");\r\n\t\t\tThread.sleep(2000L);\r\n\t\t}catch(Exception e){\r\n//\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\ttest.log(LogStatus.FAIL, locator+\",\"+data+\"--> unable to enter value in Form Text Field\");\r\n\t\t}\r\n\t}", "public void enterPassword(String pass_word)\n\t{\n\t\twaitForVisibility(pwd);\n\t\tpwd.clear();\n\t\tpwd.sendKeys(pass_word);\n\t}", "@When(\"^enter the value in the search selenuim text box$\")\n\tpublic void enter_the_value_in_the_search_selenuim_text_box() throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//input[@id='gsc-i-id1']\")).sendKeys(\"cucumber\");\n\t // throw new PendingException();\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlogininput_et.setText(TestCaseConstants.testAccount);\n\t\t\t\t\tpassword_et.setText(TestCaseConstants.testPwd);\n\t\t\t\t}", "public void inputText(String value) {\n getWrappedElement().clear();\n getWrappedElement().sendKeys(value);\n logger.debug(\"updated element {} with value {}\", getLocator(), value);\n }", "public void obgynLogin () {\r\n // Login as OBGYN\r\n attemptLogout();\r\n\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"tylerOBGYN\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n assertTextPresent( \"Welcome to iTrust2 - HCP\" );\r\n\r\n final WebDriverWait wait = new WebDriverWait( driver, 20 );\r\n wait.until( ExpectedConditions.titleContains( \"iTrust2: HCP Home\" ) );\r\n ( (JavascriptExecutor) driver )\r\n .executeScript( \"document.getElementById('OBGYNHCPDocumentObstetricsRecord').click();\" );\r\n final WebDriverWait wait2 = new WebDriverWait( driver, 20 );\r\n wait2.until( ExpectedConditions.titleContains( \"iTrust2: View Patient Obstetrics Records\" ) );\r\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\DR\\\\Desktop\\\\seli\\\\geckodriver.exe\");\r\n\t\tWebDriver d=new FirefoxDriver();\r\n\t\t\t\td.get(\"https://www.google.com/\");\r\nd.findElement(By.xpath(\".//*[@id='gs_htif0']\")).sendKeys(\"Sam\");\r\nd.findElement(By.xpath(\".//*[@id='tsf']/div[2]/div[3]/center/input[1]\")).click();\r\n\r\n\r\n\t}", "public void enterText(final By locator, String text){\n WebElement element = findElementClickable(locator);\n\t\ttry {\n \t \t\n if(text.contains(\"@\"))\n {\n element.clear();\n waitForElement(ExpectedConditions.refreshed(ExpectedConditions.visibilityOfElementLocated(locator)));\n String[] parts=text.split(\"@\");\n String selectAll = Keys.chord(Keys.CONTROL,Keys.ALT,\"2\");\n for(int i=0; i<parts.length;i++) {\n \tdriver.findElement(locator).sendKeys(parts[i]);\n\n if(i!=(parts.length-1)) {\n driver.findElement(locator).sendKeys(selectAll);\n\n }\n }\n\n }else {\n driver.findElement(locator).sendKeys(Keys.chord(Keys.CONTROL,\"a\"),text);\n }\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"Exception \"+ e +\" thrown while entering \"+text+\" using locator \"+locator);\n\t\t\n }\n\n\n\n }", "public void openUrlInBrowser(String URL) {}", "public void inputRandomEmailToTextbox() {\r\n\t\twaitElementVisible(driver, RegisterForm.EMAIL_TEXTBOX);\r\n\t\tString emailAddress = \"auto06\" + getTodayString(\"ddMMyyHHmmss\")+\"@lv.com\";\r\n\t\tsendKeyElement(driver,RegisterForm.EMAIL_TEXTBOX, emailAddress);\r\n\t}", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \n String str = FileChooserDemo.selectFile();\n if (str == null){\n \t\n }else{\n \ttext_field.setText(str);\n }\n }", "public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER);\n shell.setSize(450, 353);\n shell.setText(\"修改邮箱\");\n shell.setLayout(new FormLayout());\n\n Label lblNewLabel = new Label(shell, SWT.NONE);\n FormData fd_lblNewLabel = new FormData();\n fd_lblNewLabel.top = new FormAttachment(0, 31);\n fd_lblNewLabel.left = new FormAttachment(0, 50);\n lblNewLabel.setLayoutData(fd_lblNewLabel);\n lblNewLabel.setText(\"旧邮箱地址\");\n\n text = new Text(shell, SWT.BORDER);\n FormData fd_text = new FormData();\n fd_text.left = new FormAttachment(lblNewLabel, 62);\n fd_text.top = new FormAttachment(0, 31);\n text.setLayoutData(fd_text);\n\n Label label = new Label(shell, SWT.NONE);\n FormData fd_label = new FormData();\n fd_label.right = new FormAttachment(0, 126);\n fd_label.top = new FormAttachment(0, 99);\n fd_label.left = new FormAttachment(0, 50);\n label.setLayoutData(fd_label);\n label.setText(\"验证码\");\n\n text_1 = new Text(shell, SWT.BORDER);\n FormData fd_text_1 = new FormData();\n fd_text_1.left = new FormAttachment(text, 0, SWT.LEFT);\n fd_text_1.right = new FormAttachment(100, -47);\n fd_text_1.top = new FormAttachment(label, -3, SWT.TOP);\n text_1.setLayoutData(fd_text_1);\n\n Button button = new Button(shell, SWT.NONE);\n button.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n\n YanZhengma();\n\n }\n });\n FormData fd_button = new FormData();\n fd_button.right = new FormAttachment(100, -10);\n button.setLayoutData(fd_button);\n button.setText(\"获取验证码\");\n\n Button btnNewButton = new Button(shell, SWT.NONE);\n btnNewButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n try {\n changeEmail();\n } catch (BizException bizException) {\n bizException.printStackTrace();\n // SwtHelper.message(bizException.getMessage(),shell);\n }\n shell.dispose();\n\n\n }\n });\n FormData fd_btnNewButton = new FormData();\n fd_btnNewButton.right = new FormAttachment(0, 178);\n fd_btnNewButton.bottom = new FormAttachment(100, -10);\n fd_btnNewButton.left = new FormAttachment(0, 80);\n btnNewButton.setLayoutData(fd_btnNewButton);\n btnNewButton.setText(\"确认\");\n\n Button btnNewButton_1 = new Button(shell, SWT.NONE);\n btnNewButton_1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n shell.dispose();\n }\n });\n fd_text.right = new FormAttachment(btnNewButton_1, 0, SWT.RIGHT);\n fd_button.left = new FormAttachment(btnNewButton_1, 49, SWT.LEFT);\n FormData fd_btnNewButton_1 = new FormData();\n fd_btnNewButton_1.bottom = new FormAttachment(100, -10);\n fd_btnNewButton_1.right = new FormAttachment(100, -47);\n fd_btnNewButton_1.left = new FormAttachment(100, -157);\n btnNewButton_1.setLayoutData(fd_btnNewButton_1);\n btnNewButton_1.setText(\"返回\");\n\n Label label_1 = new Label(shell, SWT.NONE);\n FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(label, 49);\n fd_label_1.left = new FormAttachment(lblNewLabel, 0, SWT.LEFT);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"新邮箱地址\");\n\n text_2 = new Text(shell, SWT.BORDER);\n fd_button.top = new FormAttachment(text_2, 19);\n FormData fd_text_2 = new FormData();\n fd_text_2.left = new FormAttachment(text, 0, SWT.LEFT);\n fd_text_2.right = new FormAttachment(100, -47);\n fd_text_2.top = new FormAttachment(label_1, -3, SWT.TOP);\n text_2.setLayoutData(fd_text_2);\n\n text.setText(email);\n }", "public static void main(String[] args) {\n\t\tSystem.getProperty(\"webdriver.chrome.driver\",\"A:\\\\javaprograms\\\\Jacky\\\\basicselenium\\\\driver\\\\chromedriver.exe\");\nWebDriver driver=new ChromeDriver();\ndriver.get(\"https://www.facebook.com/\");\nWebElement txtUser = driver.findElement(By.id(\"email\"));\ntxtUser.sendKeys(\"hello\");\n\n\t}", "public void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 495, 335);\r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setTitle(\"VHS Store Ultra\");\r\n\t\tframe.setResizable(false);\r\n\r\n\t\tuserTxtField = new JTextField();\r\n\t\tuserTxtField.setColumns(10);\r\n\t\tuserTxtField.setBounds(380, 212, 89, 20);\r\n\t\tframe.getContentPane().add(userTxtField);\r\n\r\n\t\tJTextArea txtrAnvndarnam = new JTextArea();\r\n\t\ttxtrAnvndarnam.setText(\"Anv\\u00E4ndarnamn:\");\r\n\t\ttxtrAnvndarnam.setEditable(false);\r\n\t\ttxtrAnvndarnam.setBackground(SystemColor.menu);\r\n\t\ttxtrAnvndarnam.setBounds(266, 210, 108, 22);\r\n\t\t\r\n\t\tframe.getContentPane().add(txtrAnvndarnam);\r\n\r\n\t\tJTextArea txtrLsenord = new JTextArea();\r\n\t\ttxtrLsenord.setText(\"L\\u00F6senord:\");\r\n\t\ttxtrLsenord.setEditable(false);\r\n\t\ttxtrLsenord.setBackground(SystemColor.menu);\r\n\t\ttxtrLsenord.setBounds(298, 234, 76, 22);\r\n\t\tframe.getContentPane().add(txtrLsenord);\r\n\r\n\t\tpassField = new JPasswordField();\r\n\t\tpassField.setBounds(380, 236, 89, 20);\r\n\t\tframe.getContentPane().add(passField);\r\n\r\n\t\tJTextArea txtrMedlem = new JTextArea();\r\n\t\ttxtrMedlem.setText(\"Inte medlem?\");\r\n\t\ttxtrMedlem.setEditable(false);\r\n\t\ttxtrMedlem.setBackground(SystemColor.menu);\r\n\t\ttxtrMedlem.setBounds(10, 236, 106, 22);\r\n\t\tframe.getContentPane().add(txtrMedlem);\r\n\r\n\t\tmailTxtField = new JTextField();\r\n\t\tmailTxtField.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tmailTxtField.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tmailTxtField.setText(\"skriv in din mail\");\r\n\t\tmailTxtField.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tmailTxtField.setColumns(10);\r\n\t\tmailTxtField.setBounds(10, 262, 112, 23);\r\n\t\tframe.getContentPane().add(mailTxtField);\r\n\r\n\t\tlogButton = new JButton(\"Log in\");\r\n\t\tlogButton.setBounds(380, 262, 89, 23);\r\n\t\tframe.getContentPane().add(logButton);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel();\r\n\t\tlblNewLabel.setLocation(69, 11);\r\n\r\n\t\tImageIcon icon = new ImageIcon(\"img/vhs_logo.png\");\r\n\t\tlblNewLabel.setIcon(icon);\r\n\r\n\t\tlblNewLabel.setSize(326, 179);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\t JButton ansökButton = new JButton(\"Ansök\");\r\n\t\t\tansökButton.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tBufferedWriter bufferedWriter = null;\r\n\t\t\t\t\t \r\n\t\t\t\t\t try {\r\n\t\t\t\t\t \r\n\t\t\t\t\t FileWriter pw = new FileWriter(\"mail_list.txt\", true);\r\n\t\t\t\t\t \r\n\t\t\t\t\t documentFile = new File(\"mail_list.txt\");\r\n\t\t\t\t\t bufferedWriter = new BufferedWriter(pw);\r\n\t\t\t\t\t mailTxtField.write(pw);\r\n\t\t\t\t\t bufferedWriter.newLine();\r\n\t\t\t\t\t \r\n\t\t\t\t\t } catch (IOException e3) {\r\n\t\t\t\t\t e3.printStackTrace();\r\n\t\t\t\t\t } finally {\r\n\t\t\t\t\t try {\r\n\t\t\t\t\t if (bufferedWriter != null){\r\n\t\t\t\t\t bufferedWriter.close();\r\n\t\t\t\t\t }\r\n\t\t\t\t\t } catch (IOException ex) {\r\n\t\t\t\t\t ex.printStackTrace();\r\n\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tansökButton.setBounds(125, 262, 89, 23);\r\n\t\tframe.getContentPane().add(ansökButton);\r\n\r\n\t\tlogButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tString puname = userTxtField.getText();\r\n\t\t\t\tString ppaswd = passField.getText();\r\n\t\t\t\tph.readProperties(\"config_properties.txt\");\r\n\r\n\t\t\t\tif (puname.equals(\"123\") && ppaswd.equals(ph.getProperty(\"custPass\"))) {\r\n\t\t\t\t\tnew GUI_Customer();\r\n\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\t\r\n\t\t\t\t} else if (puname.equals(\"456\") && ppaswd.equals(ph.getProperty(\"staffPass\"))) {\r\n\t\t\t\t\tString magicPass = JOptionPane.showInputDialog(\"Please enter Admin-password\");\r\n\t\t\t\t\tnew GUI_StoreStaff(magicPass);\r\n\t\t\t\t\tframe.dispose();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Wrong Password / Username\");\r\n\t\t\t\t\tmailTxtField.setText(\"\");\r\n\t\t\t\t\tpassField.setText(\"\");\r\n\t\t\t\t\tmailTxtField.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.setVisible(true);\r\n\t}", "public static void testcase1() {\n \r\n \tMainclass method = new Mainclass();\r\n\t\tLocators Loc = new Locators();\r\n\t\tmethod.launchwebapp(\"https://google.com\");\r\n\t\tmethod.sendkeys(Loc.test, \"Java Test\");\r\n\t\tmethod.Gettext(Loc.signin);\r\n\t\tmethod.click(Loc.signin);\r\n\t\t//method.sendkeys(Loc.username, \"[email protected]\");\r\n\t\t//method.click(Loc.Submit);\r\n\t\t//method.sendkeys(Loc.Password, \"Password@123\");\r\n\t\t//method.click(Loc.Submit);\r\n\t\t//method.click(Loc.Loctest);\r\n\t\t//method.sendkeys(Loc.test, \"Test\");\r\n\t\t//String Actual = method.Gettext(Loc.signin);\r\n\t\t//String expected = \"sign in\";\r\n\t\t\r\n\t\t\r\n\t}", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "private void jMenuItem142ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem142ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "@Test\n\tpublic void cricLogin(){\n\t\tdriver.get(\"http://localhost:8080/CricWebApp/login.do\");\n\t\tdriver.manage().window().maximize(); \n\t\ttry {\n\t\t\tThread.sleep(4000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//driver.findElement(By.linkText(\"Sign Up\")).click();\n\t\tdriver.findElement(By.name(\"userName\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.tagName(\"input\")).click();\n\t\tdriver.findElement(By.xpath(\"/html/body/form/div[2]/table/tbody/tr[3]/td/input\")).click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdriver.close();\n\t\t\n\t}", "@Test\n\tpublic void Login()\n\t{\n\t\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\work\\\\chromedriver.exe\");\n\tWebDriver d = new ChromeDriver();\n\t\n\td.get(\"https://mail.rediff.com/cgi-bin/login.cgi\");\n\t\n\tRediffLoginPagePOF rl = new RediffLoginPagePOF(d);\n\trl.User().sendKeys(\"hello\");\n\trl.Password().sendKeys(\"hello\");\n\t//rl.Go().click();\n\trl.Home().click();\n\t\n\tRediffHomePage rh = new RediffHomePage(d);\n\trh.Searchtext().sendKeys(\"books\");\n\trh.Searchbtn().click();\n\tSystem.out.println(\"text1\");\n\tSystem.out.println(\"branch1\");\n\t\n\t\t\n\t\n\t\n\t}", "public void EnterUserName(String userame) {\n USERNAME_ELEMENT.sendKeys(userame); }", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "public void Accesscode_sendkeys(String Accesscode) throws InterruptedException\r\n\t{\r\n\t\ttry {\r\n\t\t//System.out.println(Accesscode);\r\n\t\tExplicitWait(OfferCode_textfeild);\r\n\t\tif(OfferCode_textfeild.isDisplayed())\r\n\t\t{\r\n\t\t\t//System.out.println(\"entring into accesscode\");\r\n\t\t\t//OfferCode_button.click();\r\n\t\t\tJavascriptexecutor(OfferCode_textfeild);\r\n\t\t\tOfferCode_textfeild.sendKeys(Accesscode);\r\n\t\t\tJavascriptexecutor(Checkavailability);\r\n\t\t\tThread.sleep(4000);\r\n\r\n\t\t\t//\tOfferCode_textfeild.sendKeys(Keys.ENTER);\r\n\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\t//System.out.println(\"Offercode \"+ Accesscode+\" placed successfully\");\r\n\t\t\ttest.log(Status.INFO, \"Offercode \"+ Accesscode+\" placed successfully\");\r\n\r\n\t\t\tThread.sleep(2000);\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"Accesscode text field is not displayed\");\r\n\t\t\tlogger.error(\"Accesscode text field is not displayed\");\r\n\t\t\ttest.log(Status.FAIL, \"Accesscode text field is not displayed\");\r\n\r\n\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static void Entertext(WebElement ele,String Textvalue, String ObjectName) {\n\t\tif (ele.isDisplayed())\n\t\t{\n\t\t\tele.sendKeys(Textvalue);\n\t\n\t\tSystem.out.println(Textvalue +\"has been successfully entered into\"+ ObjectName);\n\t\t\t//Logger.log(LogStatus.INFO, Textvalue+\"has been succesfully entered in to\" +ObjectName);\n\t\t\t}\n\t\t\telse\n\t\t\t{ System.out.println(\"Object is not displayed\");\n\t\t\t\t//Logger.log(LogStatus.ERROR, \"System is not display in the\"+ObjectName);\n\t\t\t}\t\n\t\t\n\t }", "public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}", "@When(\"^enter any value \\\"([^\\\"]*)\\\" in Sent to field$\")\npublic void enter_any_value_in_Sent_to_field(String arg1) throws Throwable \n{\n\t \n\tActions act = new Actions(driver);\n\t\n\tdriver.findElement(By.xpath(\"//input[@class='select2-search__field']\")).sendKeys(\"naveen\");\n Thread.sleep(2000);\n \n \n driver.findElement(By.xpath(\"//li[contains(text(),'naveen naveen')]\"));\n Thread.sleep(1000); \n \n \n\tact.sendKeys(Keys.RETURN).perform();\n Thread.sleep(3000);\n \n\tdriver.findElement(By.id(\"compose_message_title\")).sendKeys(\"Testing for Sending message\");\n\tThread.sleep(3000);\n\t\n\t\n\tdriver.findElement(By.cssSelector(\".cke_wysiwyg_frame\"));\n\tdriver.switchTo().frame(0);\n\twaitForElementToBeLoad(\"//body\");\n\tdriver.findElement(By.xpath(\"//body\")).click();\n\twaitForElementToBeLoad(\"//body/p\");\n\tdriver.findElement(By.xpath(\"//body/p\")).sendKeys(\"Hello Mr.Navven \\n This is for testing \\n From, \\n Ankita\");\n\tThread.sleep(3000);\n\tdriver.switchTo().defaultContent();\n\tThread.sleep(3000);\n\n \n}", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "private void myInit() {\n init_key();\n init_tbl_inventory();\n data_cols();\n focus();\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n jTextField1.grabFocus();\n }\n });\n\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public void openSpamPage() {\n WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()='COMPOSE']\")));\n inputSearch.clear();\n inputSearch.sendKeys(\"in:spam\");\n buttonSearch.click();\n }", "public HomePage() {\n this.tp7 = new TextPrompt( \"I'm Looking To Borrow...\", jTextField1);\n this.tp7.setShow(TextPrompt.Show.FOCUS_LOST);\n initComponents();\n }", "public String writeInInputWithSpace(String object, String data) {\n logger.debug(\"Writing in text box\");\n logger.debug(\"Data: \" + data);\n try {\n WebElement ele = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n ele.clear();\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,\" \"+data);\n return Constants.KEYWORD_PASS + \"--\" + data;\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n }\n \n\n }", "public String open() {\n\t\tUtilGUI.centerShell(DocFetcher.getInstance().getShell(), shell);\n\t\tshell.open();\n\t\twhile (! shell.isDisposed()) {\n\t\t\tif (! shell.getDisplay().readAndDispatch())\n\t\t\t\tshell.getDisplay().sleep();\n\t\t}\n\t\treturn answer;\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setForeground(Color.WHITE);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttextField = new JTextField(NUM_OF_CHARS);\n\t\ttextField.setBounds(127, 53, 215, 28);\n\t\ttextField.getDocument().addDocumentListener(this);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblSsid = new JLabel(\"SSID:\");\n\t\tlblSsid.setFont(new Font(\"BankGothic Md BT\", Font.BOLD | Font.ITALIC, 12));\n\t\tlblSsid.setBounds(34, 53, 56, 28);\n\t\tframe.getContentPane().add(lblSsid);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setFont(new Font(\"BankGothic Md BT\", Font.BOLD | Font.ITALIC, 12));\n\t\tlblPassword.setBounds(34, 108, 83, 14);\n\t\tframe.getContentPane().add(lblPassword);\n\t\t\n\t\tbtnHelp = new JButton(btn2name);\n\t\tbtnHelp.setFont(new Font(\"Gill Sans MT\", Font.BOLD, 11));\n\t\tbtnHelp.setBounds(126, 227, 89, 23);\n\t\tframe.getContentPane().add(btnHelp);\n\t\t\n\t\tbtnSet = new JButton(btn1name);\n\t\tbtnSet.setFont(new Font(\"Gill Sans MT\", Font.BOLD, 11));\n\t\tbtnSet.setBounds(335, 227, 89, 23);\n\t\tframe.getContentPane().add(btnSet);\n\t\t\n\t\tpasswordField = new JPasswordField(NUM_OF_CHARS);\n\t\tpasswordField.setBounds(127, 105, 215, 28);\n\t\tpasswordField.getDocument().addDocumentListener(this);\n\t\tframe.getContentPane().add(passwordField);\n\t\t\n\t\tJLabel lblHotwispot = DefaultComponentFactory.getInstance().createTitle(\"HotWiSpot\");\n\t\tlblHotwispot.setForeground(Color.DARK_GRAY);\n\t\tlblHotwispot.setFont(new Font(\"Harlow Solid Italic\", Font.BOLD, 16));\n\t\tlblHotwispot.setBounds(166, 11, 117, 31);\n\t\tframe.getContentPane().add(lblHotwispot);\n\t\t\n\t\ttextPane = new JTextPane();\n\t\ttextPane.setEditable(false);\n\t\ttextPane.setForeground(new Color(34, 139, 34));\n\t\ttextPane.setBackground(new Color(173, 216, 230));\n\t\ttextPane.setBounds(127, 161, 215, 55);\n\t\tframe.getContentPane().add(textPane);\n\t\t\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\n\t\tlblMessage.setFont(new Font(\"BankGothic Lt BT\", Font.BOLD | Font.ITALIC, 11));\n\t\tlblMessage.setBounds(116, 144, 76, 14);\n\t\tframe.getContentPane().add(lblMessage);\n\t\t\n\t\tJScrollBar scrollBar = new JScrollBar();\n\t\tscrollBar.setBounds(325, 161, 17, 55);\n\t\tframe.getContentPane().add(scrollBar);\n\t\t\n\t\tJScrollBar scrollBar_1 = new JScrollBar();\n\t\tscrollBar_1.setOrientation(JScrollBar.HORIZONTAL);\n\t\tscrollBar_1.setBounds(127, 202, 215, 14);\n\t\tframe.getContentPane().add(scrollBar_1);\n\t}", "public void run() {\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n }\n num2.startEditing();\n num2.requestFocus();\n }", "public void fillInLogin(String username, String password) {\n WebElement usernameField = driver.findElement(By.id(\"username\"));\n WebElement passwordField = driver.findElement(By.cssSelector(\"input[name=password]\"));\n WebElement loginButton = driver.findElement(By.xpath(\"//button[@type='submit']\"));\n\n // Sending username and password: tomsmith / SuperSecretPassword!\n usernameField.sendKeys(username);\n passwordField.sendKeys(password);\n\n // Clicking Login button\n loginButton.click();\n\n // 5 sec waiting\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 661, 454);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\\t\\t\\t\\t\\t\\t\\t\\t\\tWiki Crawler\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(93, 0, 424, 45);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(10, 76, 438, 45);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Search\\r\\n\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfinal String Url = textField.getText();\n\t\t\t\t//Url = textField.getText();\n\t\t\t\t//CrawlHyperlinks crawl = new CrawlHyperlinks();\n\t\t\t\t//WikiCrawlerUI crawl = new WikiCrawlerUI();\n\t\t\t\tt = new Thread(new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t//while(!t.interrupted())\n\t\t\t\t\t\tString countWord = textField_1.getText();\n\t\t\t\t\t\t\tDriverMain.mainThread(Url,countWord);\t\n\t\t\t\t\t\ttry {\n\t\t Thread.sleep(1000);\n\t\t } catch (InterruptedException e) {\n\t\t return;\n\t\t }\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\t//crawlPage(Url);\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(478, 75, 108, 45);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t//scroll = new JScrollPane (textArea, \n\t\t\t//\t JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\t//scroll.setBounds(0, 334, 605, -334);\n\t\t//scroll = new JScrollPane(textArea);\n\t\t//scroll.setBounds(0, 4, 13, -4);\n\t\t//scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t//frame.getContentPane().add(scroll);\n\t\t//frame.getContentPane().add(textArea);\n\t\ttextArea.setEditable(false);\n\t\ttextArea.setLineWrap(true);\n\t\tscrollPane = new JScrollPane(textArea);\n\t\tscrollPane.setBounds(10, 215, 412, 178);\n\t\tscrollPane.setVisible(true);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t//textArea = new JTextArea();\n\t\t//frame.getContentPane().add(textArea);\n\t\t//textArea.setEditable(false);\n\t\t//textArea.setLineWrap(true);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Enter Word to Count\");\n\t\tlblNewLabel_1.setBounds(10, 146, 180, 32);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(287, 146, 161, 32);\n\t\tframe.getContentPane().add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Word Count\\r\\n\");\n\t\tlblNewLabel_2.setBounds(478, 226, 108, 32);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(478, 280, 108, 32);\n\t\tframe.getContentPane().add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t//frame.getContentPane().add(new JScrollPane(textArea));\n\t}", "public void run() {\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n }\n num3.startEditing();\n num3.requestFocus();\n }", "public void fillForm() {\n\t\t// fills the name field with nameOfProject\n\t\tprojName.sendKeys(nameOfProject);\n\t\t// selects the first option from the 'Client partner' dropdown list\n\t\tSelect sel = new Select(clientList);\n\t\tsel.selectByIndex(1);\n\t\t// enters valid date data\n\t\tstartDate.sendKeys(\"06042018\");\n\t\tendDate.sendKeys(\"06052018\");\n\t}", "@Test\n public void flightSearch() {\n FirefoxDriver browser = openBrowser(\"http://www.hotwire.com/ \");\n\n //Go to Bundles option\n bundlesOption(browser);\n\n //Search for the SFO to LAX flight\n inputCities(browser, \"SFO\", \"LAX\");\n\n //Calculate the flight days\n //Departing next day\n //Returning 20 days after\n flightDays(browser);\n\n //Click the Find Deal button\n findDeal(browser);\n\n //Wait for the page to load until the results are displayed\n results(browser);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tIWorkbenchPage page = getPage();\n\t\t\t\t\tJasmineEditorInput input = new JasmineEditorInput(specRunner, name);\n\t\t\t\t\tpart.add(page.openEditor(input, ID));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\texception.add(e);\n\t\t\t\t}\n\t\t\t}", "private void newLabButton(){\n NewLabNameTextfield.setText(\"\");\n NewLabDialog.setVisible(true);\n NewLabNameTextfield.requestFocusInWindow();\n }", "public void initialChatWindow(String title)\r\n {\n frame = new JFrame(title);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n JScrollPane scrollPane = new JScrollPane(outputTextArea = new JTextArea());\r\n frame.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(inputTextArea = new JTextArea(), BorderLayout.SOUTH);\r\n frame.setSize(550,450);\r\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n int w = frame.getSize().width;\r\n int h = frame.getSize().height;\r\n int x = (dim.width-w)/2;\r\n int y = (dim.height-h)/2;\r\n frame.setLocation(x,y);\r\n frame.setVisible(true);\r\n\r\n inputTextArea.setLineWrap(true);\r\n inputTextArea.setWrapStyleWord(true);\r\n inputTextArea.requestFocus();\r\n inputTextArea.addKeyListener(this);\r\n outputTextArea.setEditable(false);\r\n outputTextArea.setLineWrap(true);\r\n outputTextArea.setWrapStyleWord(true);\r\n }" ]
[ "0.64369106", "0.6270882", "0.62475926", "0.6042262", "0.59618676", "0.59328717", "0.59045565", "0.5841921", "0.58026093", "0.580171", "0.57808113", "0.5772564", "0.5754585", "0.57492024", "0.57474834", "0.5745028", "0.57200176", "0.57054263", "0.5702063", "0.56617314", "0.5622342", "0.56203026", "0.5604019", "0.5582967", "0.557431", "0.5561566", "0.55598426", "0.5553435", "0.5549572", "0.5546125", "0.55369514", "0.5535356", "0.551892", "0.5515335", "0.5510232", "0.54957825", "0.5491699", "0.5490051", "0.5488997", "0.5486242", "0.54852074", "0.5480705", "0.54794705", "0.5478821", "0.5476053", "0.5456478", "0.54539835", "0.54367524", "0.5428589", "0.5418879", "0.5412381", "0.5410466", "0.5410149", "0.5402756", "0.5389516", "0.5388755", "0.5386764", "0.5376889", "0.53672767", "0.5367143", "0.53657913", "0.536549", "0.5361318", "0.53582853", "0.535772", "0.53552353", "0.53360987", "0.53360105", "0.53061986", "0.5302999", "0.53019536", "0.52904564", "0.5288121", "0.52875227", "0.5283501", "0.52746135", "0.52708954", "0.5270284", "0.526993", "0.5269798", "0.5266339", "0.52625096", "0.5262076", "0.52547616", "0.5251883", "0.5249454", "0.5249438", "0.524934", "0.5249318", "0.5246491", "0.52427036", "0.52419776", "0.5239959", "0.5233816", "0.5233448", "0.52316594", "0.5231391", "0.52253306", "0.52242833", "0.5219915", "0.52189213" ]
0.0
-1
travserve the input stream turning it into a one string
protected String traverseStream(InputStream stream){ Scanner input = new Scanner(stream); String res = ""; while(input.hasNext()){ res += input.next() + " "; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String ioStr(InputStream in) throws IOException {\n\t\t// Read input\n\t\tString str = new String();\n\t\tString next = null;\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\twhile ((next = reader.readLine()) != null) {\n\t\t\tstr += next + \"\\n\";\n\t\t}\n\t\tin.close();\n\n\t\t// Convert result accordingly\n\t\tif (str.length() > 1) {\n\t\t\treturn str.substring(0, str.length() - 1);\n\t\t}\n\t\treturn str;\n\t}", "private String inputStreamToString(InputStream is) {\n Scanner scanner = new Scanner(is);\n Scanner tokenizer = scanner.useDelimiter(\"\\\\A\");\n String str = tokenizer.hasNext() ? tokenizer.next() : \"\";\n scanner.close();\n return str;\n }", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "static String convertStreamToString(java.io.InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "static String convertStreamToString(java.io.InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "String read();", "String read();", "public String read();", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }", "private String read(InputStream in) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000);\n for (String line = r.readLine(); line != null; line = r.readLine()) {\n sb.append(line);\n }\n in.close();\n return sb.toString();\n }", "private String convertStreamToString(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder builder = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n return builder.toString();\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}", "public String readString() {\n byte[] byteForStream = new byte[1024];\n String message = \"\";\n\n mListener.onCarRunning();\n\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n message = new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n\n } catch (IOException e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n return message;\n }", "String readString();", "private static String readStr(InputStream stream, int length, boolean allowEof) throws IOException {\n byte[] b = new byte[length];\n int readBytes = stream.read(b);\n if (readBytes != length && !(allowEof && length == 0)) {\n throw new EOFException(\"Unexpected end of steam. Read bytes \" + readBytes + \"; required \" + length);\n }\n\n return new String(b, ENCODING);\n }", "private String streamToString(InputStream is) throws IOException {\n String str = \"\";\n \n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n \n try {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is));\n \n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n \n reader.close();\n } finally {\n is.close();\n }\n \n str = sb.toString();\n }\n \n return str;\n }", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return sb.toString();\n }", "private static String read(InputStream in) throws IOException {\n StringBuilder builder = new StringBuilder();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String line = null;\n while ((line = reader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n }", "private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }", "private String stringFromInputStream(InputStream instream) throws IOException {\n StringBuilder sb = new StringBuilder(\"\");\n if (instream == null) {\n logger.warn(\"Input stream is null.\");\n return sb.toString();\n }\n BufferedReader bufreader = new BufferedReader(new InputStreamReader(instream));\n String line = \"\";\n while ((line = bufreader.readLine()) != null) {\n sb.append(line);\n sb.append(LINE_SEPARATOR);\n }\n return sb.toString();\n }", "public static String convertStreamToString(InputStream is) {\n java.util.Scanner s = new java.util.Scanner(is).useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "public String StreamToString(InputStream is) {\r\n //Creamos el Buffer\r\n BufferedReader reader =\r\n new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n String line = null;\r\n try {\r\n //Bucle para leer todas las líneas\r\n //En este ejemplo al ser solo 1 la respuesta\r\n //Pues no haría falta\r\n while((line = reader.readLine())!=null){\r\n sb.append(line);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n //retornamos el codigo límpio\r\n return sb.toString();\r\n }", "private String eatLine( InputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "private String readIt(InputStream stream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream, \"iso-8859-1\"), 128);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n return sb.toString();\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public static String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(stream));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n }", "public static String readString() {\n return in.nextLine();\n }", "public String readString() throws IOException {\n return WritableUtils.readString(in);\n }", "private String getResponse(InputStream input) throws IOException {\n\t\ttry (BufferedReader buffer = new BufferedReader(new InputStreamReader(input))) {\n\t\t\treturn buffer.lines().collect(Collectors.joining(\"\\n\"));\n\t\t}\n\t}", "private StringBuilder inputStreamToString(InputStream is) {\n \t String line = \"\";\n \t StringBuilder total = new StringBuilder();\n \t \n \t // Wrap a BufferedReader around the InputStream\n \t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n \n \t // Read response until the end\n \t try {\n \t\t\twhile ((line = rd.readLine()) != null) { \n \t\t\t total.append(line); \n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t \n \t // Return full string\n \t return total;\n \t}", "InputStream synthesize(String phrase, OutputFormat fmt) throws IOException;", "private static String convertStreamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n try {\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n return sb.toString();\n \n }", "private static String readFromStream(InputStream inputStream) throws IOException {\n\n // Create a new empty string builder\n StringBuilder stringBuilder = new StringBuilder();\n\n // Create a bufferedReader that reads from the inputStream param\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,\n Charset.forName(\"UTF-8\")));\n\n // Create a string that is one line of the buffered reader\n String line = bufferedReader.readLine();\n\n while (line != null) {\n // Add line to stringBuilder\n stringBuilder.append(line);\n\n // Set line to the next line in buffered reader\n line = bufferedReader.readLine();\n }\n\n // Return string builder as a string\n return stringBuilder.toString();\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "private static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String readFromStream(InputStream inputStream) throws IOException {\n StringBuilder output = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n output.append(line);\n line = reader.readLine();\n }\n }\n return output.toString();\n }", "public String readString() {\n final int BUF_SIZE = 100;\n byte[] byteDest = new byte[BUF_SIZE];\n String ret = \"\";\n int num = BUF_SIZE;\n try {\n while (!ret.contains(\"\\r\")) {\n if ((num = in.read(byteDest)) > 0) {\n ret += new String(byteDest, 0, num);\n }\n }\n } catch (IOException e) {\n print(\"Error reading String from \" + portName);\n }\n print(\"Read :\" + ret + \":\");\n return ret;\n }", "protected String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n log.info(sb.toString());\n return sb.toString();\n }", "private static String convertStreamToString(InputStream is)\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try\n {\n while ((line = reader.readLine()) != null)\n {\n sb.append(line + \"\\n\");\n }\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n is.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n System.out.println(sb.toString());\n return sb.toString();\n }", "public String getOutput() {\r\n return innerStream.getString();\r\n }", "public static String convertStreamToString(InputStream is) {\n String line = \"\";\n StringBuilder total = new StringBuilder();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n try {\n while ((line = rd.readLine()) != null) {\n total.append(line);\n }\n } catch (Exception e) {\n\n }\n return total.toString();\n }", "private String readInput(java.net.Socket socket) throws IOException {\n BufferedReader bufferedReader =\n new BufferedReader(\n new InputStreamReader(\n socket.getInputStream()));\n char[] buffer = new char[700];\n int charCount = bufferedReader.read(buffer, 0, 700);\n String input = new String(buffer, 0, charCount);\n return input;\n }", "public static String acceptString() {\n\t\tString stringData = null;\r\n\t\tBufferedReader input = null;\r\n\t\ttry {\r\n\t\t\t// chaining the streams\r\n\t\t\tinput = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\t\t// reading data from the reader\r\n\t\t\tstringData = input.readLine();\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tSystem.out.println(\"Error in accepting data.\");\r\n\t\t} finally {\r\n\t\t\tinput = null;\r\n\t\t}\r\n\t\treturn stringData;\r\n\t}", "private String convertStreamToString(InputStream is) throws IOException {\r\n\t\tint bufSize = 8 * 1024;\r\n\t\tif (is != null) {\r\n\t\t\tWriter writer = new StringWriter();\r\n\r\n\t\t\tchar[] buffer = new char[bufSize];\r\n\t\t\ttry {\r\n\t\t\t\tInputStreamReader ireader = new InputStreamReader(is, \"UTF-8\");\r\n\t\t\t\tReader reader = new BufferedReader(ireader, bufSize);\r\n\t\t\t\tint n;\r\n\t\t\t\twhile ((n = reader.read(buffer)) != -1) {\r\n\t\t\t\t\twriter.write(buffer, 0, n);\r\n\t\t\t\t}\r\n\t\t\t\treader.close();\r\n\t\t\t\tireader.close();\r\n\t\t\t\treturn writer.toString();\r\n\t\t\t} catch (OutOfMemoryError ex) {\r\n\t\t\t\tLog.e(\"b2evo_android\", \"Convert Stream: (out of memory)\");\r\n\t\t\t\twriter.close();\r\n\t\t\t\twriter = null;\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"\";\r\n\t\t\t} finally {\r\n\t\t\t\tis.close();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "static String slurp(InputStream stream) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line).append(System.lineSeparator());\n }\n br.close();\n return sb.toString();\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n // building the string\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n // error occurred in the inputstream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n // error occurred closing input stream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n }\n }\n return sb.toString();\n }", "public String convertStreamToString(InputStream is) {\n try {\n if (is != null) {\n Writer writer = new StringWriter();\n\n char[] buffer = new char[1024];\n try {\n Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n int n;\n while ((n = reader.read(buffer)) != -1) {\n writer.write(buffer, 0, n);\n }\n } finally {\n is.close();\n }\n return writer.toString();\n } else {\n return \"\";\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Did not expect this one...\", e);\n }\n }", "private static String convertStreamToString(InputStream is) {\r\n\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tis.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public String convertStreamToString(InputStream instream) throws Exception {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(instream));\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = null;\n\n\t\t while ((line = reader.readLine()) != null) {\n\t\t \t\n\t\t sb.append(line);\n\t\t }\n\t\t instream.close();\n\t\t return sb.toString();\n\t\t \n\t\t}", "private static String convertStreamToString(InputStream is) {\n\t\tInputStreamReader isr = new InputStreamReader(is);\n BufferedReader reader = new BufferedReader(isr);\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n \tLog.e(TAG, e.getMessage(), e);\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n \n try {\n isr.close();\n } catch (IOException e) {\n \tLog.w(TAG, e.getMessage(), e);\n }\n }\n \n return sb.toString();\n }", "private String getResponseText(InputStream inStream) {\n return new Scanner(inStream).useDelimiter(\"\\\\A\").next();\n }", "public StringStream(String output) {\r\n\t\tthis.output = output.trim().replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\r\n\t}", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "public static String convertStreamToString(InputStream inputStream) {\n\n String result = \"\";\n try {\n\n Scanner scanner = new Scanner(inputStream, \"UTF-8\").useDelimiter(\"\\\\A\");\n if (scanner.hasNext()) {\n result = scanner.next();\n }\n inputStream.close();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n return result;\n }", "public String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n Reader reader = null;\n reader = new InputStreamReader(stream, \"UTF-8\");\n char[] buffer = new char[len];\n reader.read(buffer);\n return new String(buffer);\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 }", "public void processStreamInput() {\n }", "protected String readString(DataInput in) throws IOException {\n if (in.readBoolean())\n return (in.readUTF());\n return null;\n }", "public String responsetoString(InputStream in) throws IOException{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = null;\n\t\twhile((line = br.readLine())!= null){\n\t\t\tsb.append(line);\t\t\t\n\t\t}\n\t\tin.close();\n\t\treturn sb.toString();\n\t}", "private static String convertStreamToString(InputStream inputStream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public String readStream(InputStream in) {\n BufferedReader reader = null;\n StringBuffer data = new StringBuffer(\"\");\n try {\n reader = new BufferedReader(new InputStreamReader(in));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n data.append(line);\n }\n } catch (IOException e) {\n Log.e(\"Log\", \"IOException\");\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return data.toString();\n }", "private String _read(InputStream in, String enc) throws IOException\n {\n int ptr = 0;\n int count;\n \n while ((count = in.read(_readBuffer, ptr, _readBuffer.length - ptr)) > 0) {\n ptr += count;\n // buffer full? Need to realloc\n if (ptr == _readBuffer.length) {\n _readBuffer = Arrays.copyOf(_readBuffer, ptr + ptr);\n }\n }\n \n return new String(_readBuffer, 0, ptr, enc);\n }", "public String inputStreamToString(InputStream inputStreamFromServer) throws IOException{\r\n //create bufferedReader from inputStream\r\n BufferedReader bufferedReader = new BufferedReader(\r\n new InputStreamReader(inputStreamFromServer));\r\n\r\n //hold variables\r\n String inputLine;\r\n StringBuffer responseAsString = new StringBuffer();\r\n\r\n //reading with buffer\r\n while((inputLine = bufferedReader.readLine()) != null){\r\n responseAsString.append(inputLine);\r\n }\r\n\r\n return responseAsString.toString();\r\n\r\n }", "public static String convertStreamToString(InputStream is) {\n if (is == null) return null;\n Scanner s = new Scanner(is, \"UTF-8\").useDelimiter(\"\\\\A\");\n return s.hasNext() ? s.next() : \"\";\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException {\n BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));\n String line = \"\";\n String result = \"\";\n while((line = bufferedReader.readLine()) != null)\n result += line;\n\n inputStream.close();\n return result;\n\n }", "private static String readFromStream(InputStream inputStream) {\n StringBuilder outputString = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n try {\n String line = reader.readLine();\n while (line != null) {\n outputString.append(line);\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error reading line from reader, readFromStream() block\", e);\n }\n }\n return outputString.toString();\n }", "@Test\n public void testChunkedOutputToSingleString() throws Exception {\n final String response = target().path(\"test\").request().get(String.class);\n Assert.assertEquals(\"Unexpected value of chunked response unmarshalled as a single string.\", \"test\\r\\ntest\\r\\ntest\\r\\n\", response);\n }", "private String readString( InputStream stream ) throws IOException {\n char delimiter = (char) stream.read();\n buffer = new StringBuffer();\n while ( true ) {\n int c = stream.read();\n if ( c == delimiter ) {\n break;\n }\n else {\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n throw new TableFormatException(\n \"End of line within a string literal\" );\n case '\\\\':\n buffer.append( (char) stream.read() );\n break;\n case END:\n throw new TableFormatException(\n \"End of file within a string literal\" );\n default:\n buffer.append( (char) c );\n }\n }\n }\n return buffer.toString();\n }", "private StringBuilder inputStreamToString(InputStream is) {\n String rLine = \"\";\n StringBuilder answer = new StringBuilder();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n try {\n while ((rLine = br.readLine()) != null) {\n answer.append(rLine);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return answer;\n }", "public static String readIt(InputStream is) throws IOException {\n BufferedReader reader = null;\n reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n StringBuilder responseStrBuilder = new StringBuilder();\n String inputStr;\n while ((inputStr = reader.readLine()) != null) {\n responseStrBuilder.append(inputStr);\n }\n return responseStrBuilder.toString();\n }", "private String instream_to_contents() throws IOException {\n\thtmlrandom.seek(0);\n\tInputStream instream = Channels.newInputStream(htmlrandom.getChannel());\n\tStringBuilder result = new StringBuilder();\n\tint c;\n\twhile (-1 != (c = instream.read()))\n\t result.append((char)c);\n\treturn result.toString();\n }", "protected String convertStreamToString(InputStream is, String charset) {\n\t\tScanner s = new Scanner(is, charset);\n\t\ttry {\n\t\t\ts.useDelimiter(\"\\\\A\");\n\t\t\treturn s.hasNext() ? s.next() : \"\";\n\t\t} finally {\n\t\t\ts.close();\n\t\t}\n\t}", "private String InputStreamToString(InputStream in) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(in, IConstants.UTF8_ENCODING));\n } catch (UnsupportedEncodingException e1) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e1);\n }\n\n StringBuffer myStrBuf = new StringBuffer();\n int charOut = 0;\n String output = \"\"; //$NON-NLS-1$\n try {\n while ((charOut = reader.read()) != -1) {\n myStrBuf.append(String.valueOf((char) charOut));\n }\n } catch (IOException e) {\n LogUtil.logError(EntropyPlugin.PLUGIN_ID, e);\n }\n output = myStrBuf.toString();\n return output;\n }", "private String readString(InputStream in) throws IOException {\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in, \"iso-8859-1\"));\r\n\t\tString inputLine;\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\twhile ((inputLine = reader.readLine()) != null) {\r\n\t\t\tresponse.append(inputLine);\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn response.toString();\r\n\t}", "private static void bufferedReading2(String str) throws IOException {\n try (BufferedReader reader = new BufferedReader(new StringReader(str))) {\n String result = reader.lines().collect(Collectors.joining(System.lineSeparator()));\n System.out.println(result);\n }\n }", "public static String getAsString(InputStream is) {\n\t\treturn head(is, null);\n\t}", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "public static String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n \n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "private static String m658b(InputStream inputStream) {\n String str = \"\";\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n while (true) {\n String readLine = bufferedReader.readLine();\n if (readLine == null) {\n return str;\n }\n str = str + readLine + \"\\n\";\n }\n }", "private String getTextLineFromStream( InputStream is ) throws IOException {\n StringBuffer buffer = new StringBuffer();\n int b;\n\n \twhile( (b = is.read()) != -1 && b != (int) '\\n' ) {\n \t\tbuffer.append( (char) b );\n \t}\n \treturn buffer.toString().trim();\n }", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public static String from(Readable in) throws IOException {\n StringWriter out = new StringWriter();\n CharStreams.copy(in, out);\n return out.toString();\n }", "private static String convertStreamToString(InputStream is) {\r\n\t\t/*\r\n\t\t * To convert the InputStream to String we use the\r\n\t\t * BufferedReader.readLine() method. We iterate until the BufferedReader\r\n\t\t * return null which means there's no more data to read. Each line will\r\n\t\t * appended to a StringBuilder and returned as String.\r\n\t\t */\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\tString line = null;\r\n\t\ttry {\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n//\t\t\tLog.e(\"HTTP\", \"HTTP::convertStreamToString IOEX\",e);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tis.close();\r\n\t\t\t} catch (IOException e) {\r\n//\t\t\t\tLog.e(Constants.TAG, \"HTTP::convertStreamToString, finally catch IOEX\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String loadStream(InputStream in) throws IOException {\r\n\t\tInputStream is = in;\r\n\t\tint ptr = 0;\r\n\t\tis = new BufferedInputStream(is);\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\twhile ((ptr = is.read()) != -1) {\r\n\t\t\t\tbuffer.append((char) ptr);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}", "private String readToken( PushbackInputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n stream.unread( c );\n done = true;\n break;\n case ' ':\n case '\\t':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "private static String getStringFromInputStream(InputStream is) {\r\n\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n String line;\r\n try {\r\n\r\n br = new BufferedReader(new InputStreamReader(is));\r\n while ((line = br.readLine()) != null) {\r\n sb.append(line);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n\r\n return sb.toString();\r\n\r\n }", "protected static String convertStreamToString(InputStream is) {\r\n /*\r\n * To convert the InputStream to String we use the BufferedReader.readLine()\r\n * method. We iterate until the BufferedReader return null which means\r\n * there's no more data to read. Each line will appended to a StringBuilder\r\n * and returned as String.\r\n */\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n StringBuilder sb = new StringBuilder();\r\n \r\n String line = null;\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n sb.append(line + \"\\n\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n is.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n return sb.toString();\r\n }", "private static String convertInputStreamToString(InputStream inputStream) throws IOException{\t\t\t\t\t\t\t\t\t\n\n\t\tBufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\t\t\t\t\t\t\t\t\t\n\t\tString line = \"\";\t\t\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\t\t\n\t\twhile((line = bufferedReader.readLine()) != null)\t{\t\t\t\t\t\t\t\t\n\t\t\tresult += line;\t\t\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\t\t\n\n\t\tinputStream.close();\t\t\t\t\t\t\t\t\t\n\t\treturn result;\t\t\t\t\t\t\t\t\t\n\t}", "public void run() {\n int ch;\n\n try {\n while ((ch = is.read()) != -1) {\n sb.append((char) ch);\n }\n }\n catch (IOException e) {\n sb.append(\"IOException reading stream: \" + e.toString());\n }\n }", "private String next(int i) throws IOException {\r\n\t\tif(buffer!=null) {\r\n\t\t\tString s=buffer;\r\n\t\t\tbuffer=null;\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\tif (i==0) {\r\n\t\t\treturn in.readLine();\r\n\t\t} else return in2.readLine();\r\n\t}", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }", "private String readResult() throws IOException {\n return reader.readLine();\n }" ]
[ "0.65977615", "0.63918734", "0.6390402", "0.6335081", "0.6335081", "0.63111305", "0.63111305", "0.62723726", "0.626015", "0.6031905", "0.6031483", "0.6024277", "0.60187995", "0.60152334", "0.6005299", "0.5998809", "0.5991103", "0.5972585", "0.59606844", "0.5936938", "0.59112656", "0.59105825", "0.5906476", "0.587985", "0.5877171", "0.58310765", "0.58279", "0.58267754", "0.5802694", "0.57974917", "0.57731736", "0.57730645", "0.5770351", "0.57633054", "0.57564104", "0.5747302", "0.57402754", "0.57182986", "0.57056314", "0.57025826", "0.57004094", "0.56996274", "0.5676717", "0.56748194", "0.5670417", "0.5663434", "0.56611234", "0.5648857", "0.56446093", "0.564253", "0.5639014", "0.56304663", "0.5628005", "0.5625643", "0.5611581", "0.5609743", "0.55996114", "0.559667", "0.5589691", "0.5578156", "0.55759805", "0.55624235", "0.5558874", "0.55572116", "0.5553601", "0.55327106", "0.5530767", "0.55288255", "0.55278033", "0.55265415", "0.55215293", "0.5519301", "0.55141723", "0.55051404", "0.5494236", "0.54908", "0.5489344", "0.54849315", "0.54817444", "0.5473442", "0.5464408", "0.5459628", "0.544709", "0.54403526", "0.54251266", "0.5401023", "0.54007787", "0.53989726", "0.53957546", "0.5386283", "0.53719205", "0.53700125", "0.5366926", "0.53659874", "0.53642213", "0.5354126", "0.53499705", "0.53413606", "0.5327291", "0.53058064" ]
0.6661125
0
use native class must init lib first
@Test void testGetSet() { SqlClusterExecutor.initJavaSdkLibrary(null); SdkOption option = new SdkOption(); try { SQLRouterOptions co = option.buildSQLRouterOptions(); } catch (SqlException e) { Assert.assertTrue(e.getMessage().contains("empty zk")); } try { option.setClusterMode(false); StandaloneOptions co = option.buildStandaloneOptions(); } catch (SqlException e) { Assert.assertTrue(e.getMessage().contains("empty host")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native void classInitNative();", "private native String native_init();", "protected native void init();", "private static native void init();", "static native void classInitNative();", "private NativeSupport() {\n\t}", "public /*static*/ native void init();", "private static native boolean nativeClassInit();", "private static native long init();", "@VisibleForTesting\n public void initialize() {\n initializeNative();\n }", "public native void constructor();", "private NativeLibraryLoader() {\n }", "private static native long nativeInitialize(int arch, int mode) throws UnicornException;", "private static native int ptInitLibrary0(String lang);", "public static synchronized void initNativeLibs(android.content.Context r6) {\n /*\n r2 = org.telegram.messenger.NativeLoader.class;\n monitor-enter(r2);\n r0 = nativeLoaded;\t Catch:{ all -> 0x00d1 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r2);\n return;\n L_0x0009:\n net.hockeyapp.android.C2367a.m11720a(r6);\t Catch:{ all -> 0x00d1 }\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi-v7a\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00d4;\n L_0x0017:\n r0 = \"armeabi-v7a\";\n L_0x001a:\n r1 = \"os.arch\";\n r1 = java.lang.System.getProperty(r1);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x0023:\n r3 = \"686\";\n r1 = r1.contains(r3);\t Catch:{ Throwable -> 0x012b }\n if (r1 == 0) goto L_0x0130;\n L_0x002c:\n r0 = \"x86\";\n r1 = r0;\n L_0x0030:\n r0 = getNativeLibraryDir(r6);\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0036:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r4 = \"libtmessages.27.so\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r0 = r3.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x005f;\n L_0x0044:\n r0 = \"load normal lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x005b }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x005b }\n r3 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x005b }\n init(r0, r3);\t Catch:{ Error -> 0x005b }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x005b }\n goto L_0x0007;\n L_0x005b:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n L_0x005f:\n r3 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = r6.getFilesDir();\t Catch:{ Throwable -> 0x012b }\n r4 = \"lib\";\n r3.<init>(r0, r4);\t Catch:{ Throwable -> 0x012b }\n r3.mkdirs();\t Catch:{ Throwable -> 0x012b }\n r4 = new java.io.File;\t Catch:{ Throwable -> 0x012b }\n r0 = \"libtmessages.27loc.so\";\n r4.<init>(r3, r0);\t Catch:{ Throwable -> 0x012b }\n r0 = r4.exists();\t Catch:{ Throwable -> 0x012b }\n if (r0 == 0) goto L_0x009c;\n L_0x007c:\n r0 = \"Load local lib\";\n org.telegram.messenger.FileLog.m13725d(r0);\t Catch:{ Error -> 0x0095 }\n r0 = r4.getAbsolutePath();\t Catch:{ Error -> 0x0095 }\n java.lang.System.load(r0);\t Catch:{ Error -> 0x0095 }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x0095 }\n r5 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x0095 }\n init(r0, r5);\t Catch:{ Error -> 0x0095 }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x0095 }\n goto L_0x0007;\n L_0x0095:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r4.delete();\t Catch:{ Throwable -> 0x012b }\n L_0x009c:\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x012b }\n r0.<init>();\t Catch:{ Throwable -> 0x012b }\n r5 = \"Library not found, arch = \";\n r0 = r0.append(r5);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.append(r1);\t Catch:{ Throwable -> 0x012b }\n r0 = r0.toString();\t Catch:{ Throwable -> 0x012b }\n org.telegram.messenger.FileLog.m13726e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = loadFromZip(r6, r3, r4, r1);\t Catch:{ Throwable -> 0x012b }\n if (r0 != 0) goto L_0x0007;\n L_0x00b9:\n r0 = \"tmessages.27\";\n java.lang.System.loadLibrary(r0);\t Catch:{ Error -> 0x00cb }\n r0 = net.hockeyapp.android.C2367a.f7955a;\t Catch:{ Error -> 0x00cb }\n r1 = org.telegram.messenger.BuildVars.DEBUG_VERSION;\t Catch:{ Error -> 0x00cb }\n init(r0, r1);\t Catch:{ Error -> 0x00cb }\n r0 = 1;\n nativeLoaded = r0;\t Catch:{ Error -> 0x00cb }\n goto L_0x0007;\n L_0x00cb:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ all -> 0x00d1 }\n goto L_0x0007;\n L_0x00d1:\n r0 = move-exception;\n monitor-exit(r2);\n throw r0;\n L_0x00d4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"armeabi\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00e4;\n L_0x00df:\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x00e4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"x86\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x00f4;\n L_0x00ef:\n r0 = \"x86\";\n goto L_0x001a;\n L_0x00f4:\n r0 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = \"mips\";\n r0 = r0.equalsIgnoreCase(r1);\t Catch:{ Exception -> 0x0122 }\n if (r0 == 0) goto L_0x0104;\n L_0x00ff:\n r0 = \"mips\";\n goto L_0x001a;\n L_0x0104:\n r0 = \"armeabi\";\n r1 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0122 }\n r1.<init>();\t Catch:{ Exception -> 0x0122 }\n r3 = \"Unsupported arch: \";\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r3 = android.os.Build.CPU_ABI;\t Catch:{ Exception -> 0x0122 }\n r1 = r1.append(r3);\t Catch:{ Exception -> 0x0122 }\n r1 = r1.toString();\t Catch:{ Exception -> 0x0122 }\n org.telegram.messenger.FileLog.m13726e(r1);\t Catch:{ Exception -> 0x0122 }\n goto L_0x001a;\n L_0x0122:\n r0 = move-exception;\n org.telegram.messenger.FileLog.m13728e(r0);\t Catch:{ Throwable -> 0x012b }\n r0 = \"armeabi\";\n goto L_0x001a;\n L_0x012b:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x00d1 }\n goto L_0x00b9;\n L_0x0130:\n r1 = r0;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.messenger.NativeLoader.initNativeLibs(android.content.Context):void\");\n }", "private native String native_clinit();", "public native void initNativeCallback();", "private native static long init(long avi);", "private static void init() {\n __lib = new JnaGmpLib();\n }", "private native boolean initFromJNI(int port);", "private static native void initCachedClassMap();", "private static native int initSPIDevice();", "public native void initiate(String config);", "public static void init() {\r\n try {\r\n defaultImplementation = new LinkLayer_Impl_PC();\r\n } catch (IOException e) {\r\n Log.e(TAG, e, \"Failed in creating defaultImplementation!\");\r\n }\r\n }", "private native void nativeSurfaceInit(Object surface);", "protected void _init(){}", "public native static void jniinitMira(int miraVersion);", "Object getNative();", "@Override // com.oculus.vrshell.panels.AndroidPanelApp\n public long createNativeInstance() {\n return nativeCreateInstance(0, 0);\n }", "private static native long create_0();", "private void LoadNative()\n throws IOException {\n\n // local variables\n String LibraryName = \"NI gpib\";\n\n // return if the native library has already been loaded\n if (m_gpib32 != null) {\n // log already loaded\n m_Logger.log(Level.FINE, \"JNA: The library {0} was already loaded.\\n\", LibraryName);\n\n // return\n return;\n }\n\n // log some parameters\n // (done only once for this class and not for every instance)\n m_Logger.log(Level.CONFIG, \"EOT mode = {0}\\n\\t\"\n + \"Receive Termination = 0x{1}\\n\\t\"\n + \"Receive Buffer size = {2}\", new Object[]{\n Integer.toString(EOT_MODE), Integer.toHexString(RECEIVE_TERMINATION),\n Integer.toString(RECEIVE_BUFFER_SIZE)});\n\n\n // enable Java Virtual Machine crash protection\n if ( !Native.isProtected() ) {\n Native.setProtected(true);\n\n // check if VM crash protection is supported on the Platform\n if ( !Native.isProtected() ) {\n m_Logger.config(\"JNA: Java VM Crash Protection is not supported on this platform.\\n\");\n } else {\n m_Logger.config(\"JNA: Enabled Java VM Crash Protection.\\n\");\n }\n }\n\n\n // get library name\n if (Platform.isWindows()) {\n LibraryName = \"gpib-32.dll\";\n\n // get the additional search path\n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathWin\", \"\");\n\n // add additional search path\n NativeLibrary.addSearchPath(LibraryName, Path);\n\n } else if (Platform.isLinux()) {\n\n LibraryName = \"gpibapi\"; // libgpibapi.so\n \n // get the additional search path \n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathLinux\", \"\");\n \n // add additional search path\n NativeLibrary.addSearchPath(LibraryName, Path);\n\n } else if (Platform.isMac()) {\n\n // to load a Framework from a dir other than /System/Library/Frameworks/\n // it is necessary to specify the fully quantified path as LibraryName\n // as NativeLibrary.addSearchPath is not effective for Frameworks it seems\n\n // get the additional path\n String Path = m_iC_Properties.getPath(\"GPIB_NI.AdditionalLibraryPathMac\", \"/Library/Frameworks/NI488.framework/\");\n\n // add an additional search path to the LibraryName\n LibraryName = Path + \"NI488\";\n }\n \n\n // log platform name\n // see https://jna.dev.java.net/nonav/javadoc/index.html\n m_Logger.log(Level.FINE, \"JNA: Platform name = {0}\\n\",\n Integer.toString(Platform.getOSType()));\n\n\n try {\n // load the native library\n m_gpib32 = (gpib32) Native.loadLibrary(LibraryName, gpib32.class);\n\n // log success\n m_Logger.log(Level.FINE, \"JNA: Loaded library {0}.\\n\", LibraryName);\n\n } catch (UnsatisfiedLinkError ex) {\n String str = \"Could not load the native library for the NI/Agilent GPIB-USB controller.\\n\";\n str += \"Please ensure that the drivers are installed properly.\\n\";\n str += \"On WinXP, gpib-32.dll is typically installed in C:\\\\Windows\\\\System32.\\n\";\n str += \"On MacOS, the NI488 Framework is typically installed in /Library/Frameworks/.\\n\"\n + \"On Mac, it is necessary to run iC in 32 bit mode (-d32).\\n\";\n str += \"See Java Native Access (JNA) on how native libraries are loaded.\\n\\n\";\n str += \"Java Native Access' response:\\n\";\n str += ex.getMessage();\n\n m_Logger.severe(str);\n throw new IOException(str);\n }\n\n \n /* Set up access to the user variables (ibsta, iberr, ibcnt, ibcntl).\n * These are declared and exported by the 32-bit DLL. Separate copies\n * exist for each process that accesses the DLL. They are shared by\n * multiple threads of a single process. The variable names in the DLL\n * (Windows) have different names than the variables in the Framework (Mac) */\n try {\n // load variables on a Mac\n if (Platform.isMac()) {\n // ibsta\n Pointer dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibsta\");\n m_ibsta.setPointer(dummy);\n\n //iberr\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"iberr\");\n m_iberr.setPointer(dummy);\n\n // ibcnt\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibcnt\");\n m_ibcnt.setPointer(dummy);\n\n // ibcntl\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"ibcntl\");\n m_ibcntl.setPointer(dummy);\n\n } else { // load variables on Windows\n // ibsta\n Pointer dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibsta\");\n m_ibsta.setPointer(dummy);\n\n //iberr\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_iberr\");\n m_iberr.setPointer(dummy);\n\n // ibcnt\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibcnt\");\n m_ibcnt.setPointer(dummy);\n\n // ibcntl\n dummy = NativeLibrary.getInstance(LibraryName).getGlobalVariableAddress(\"user_ibcntl\");\n m_ibcntl.setPointer(dummy);\n }\n \n } catch (UnsatisfiedLinkError ex) {\n String str = \"Could not access the global variables in the native library for the NI/Agilent GPIB-USB controller.\\n\";\n str += \"Java Native Access' response:\\n\";\n str += ex.getMessage();\n\n m_Logger.severe(str);\n throw new IOException(str);\n }\n\n // it does not help to set the EOT mode here\n //m_gpib32.ibconfig(0, IbcEOT, NLend);\n \n\n /* When converting Java unicode characters into an array of char, the\n * default platform encoding is used, unless the system property \n * jna.encoding is set to a valid encoding. This property may be set to \n * \"ISO-8859-1\", for example, to ensure all native strings use that encoding.\n * \n * The charqacter encoding used by JNA is set in IcontrolView.myInit\n */\n \n }", "public ImageWriterService() {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n }", "public static void load()\n {\n\n try {\n System.loadLibrary(\"gnustl_shared\");\n System.loadLibrary(\"log\");\n System.loadLibrary(composeLibName(\"PocoFoundation\"));\n System.loadLibrary(composeLibName(\"PocoXML\"));\n System.loadLibrary(composeLibName(\"PocoJSON\"));\n System.loadLibrary(composeLibName(\"PocoUtil\"));\n System.loadLibrary(composeLibName(\"PocoData\"));\n System.loadLibrary(composeLibName(\"PocoDataSQLite\"));\n System.loadLibrary(\"HRFusion\");\n }\n catch(Error e)\n {\n Log.e(LOG_TAG, e.getMessage());\n throw e;\n }\n }", "private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }", "static void init() {}", "@Override\n public native boolean init(String blendFile, String configFile, String EtcPath);", "private void _init() {\n }", "private void init() throws ClassNotFoundException{\n }", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "public interface Native {\n\n}", "public static void init() {}", "private final void init() {\n\t\tam = new nativeAssetManager();\n\t\tam.addDefaultAssets();\n\t}", "private static native long create_0(int mode);", "private static native void initIDs();", "private static native void initIDs();", "private static native void initIDs();", "public JavaClassAsNativeDirectConstructorCallbackEnhancer(JavaClassAsNativeDirectConstructorCallbackImpl javaClass,EnhancerSharedContext ctx)\n {\n super(javaClass,ctx); \n }", "private native void CreateJNIObj(String device);", "private native static void initIDs();", "private native long nativeCreateDelegate();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "private native static void initSurface(long instance, long avi);", "private static native boolean open_1(long nativeObj, int device);", "private AWTBridge() {\n\t}", "public boolean init()\n {\n \n boolean retVal = init_0(nativeObj);\n \n return retVal;\n }", "public static void init() {\n if (!initialized) {\n try {\n System.loadLibrary(\"tensorflowlite_test_jni\");\n } catch (UnsatisfiedLinkError e) {\n System.loadLibrary(\"tensorflowlite_stable_test_jni\");\n }\n initTfLiteForTest();\n initialized = true;\n }\n }", "public void startLibrary();", "public void init() {}", "public void init() {}", "private native static int load_object(String componentFileName);", "public abstract void init() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException, RemoteReadException, InterruptedException;", "public native void initRendering();", "public native void initRendering();", "protected void init() {\n // to override and use this method\n }", "public native void Initialize(Surface surface);", "public void init() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t System.err.println(\"** Version mismatch - Java files don't match library version.\");\n\t\t System.exit(1);\n\t\t}\n\t\t\n\t\tString[] args = {\"--vanilla\"};\n\t\tre = new Rengine(args, false, new TextConsole());\n\t\t\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n if (!re.waitForR()) {\n System.out.println(\"Cannot load R\");\n return;\n }\n\t\t\n\t}", "private void init() {\n\n\t}", "protected void init(){\n }", "public void init();", "public void init();", "public void init();", "public void init();", "private void init() {\n }", "abstract public void init();", "public synchronized native static int open();", "public void fromNative() {\n fromNative(nativeType);\n }", "public static void init() {\n\n }", "protected abstract void init() throws Exception;", "private void loadNativesAndStart(final File nativeLib){\r\n displayMessage(\"Starting \" + subAppletDisplayName);\r\n\r\n // back to the EDT\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n if (osType != MAC_OS) { // borrowed from NativeLibLoader\r\n try {\r\n System.loadLibrary(\"jawt\");\r\n } catch (UnsatisfiedLinkError ex) {\r\n // Accessibility technologies load JAWT themselves; safe to continue\r\n // as long as JAWT is loaded by any loader\r\n if (ex.getMessage().indexOf(\"already loaded\") == -1) {\r\n displayError(\"Unabled to load JAWT\");\r\n throw ex;\r\n }\r\n }\r\n }\r\n // static linking\r\n try {\r\n System.load(nativeLib.getPath());\r\n } catch (UnsatisfiedLinkError ex) {\r\n // should be safe to continue as long as the native is loaded by any loader\r\n if (ex.getMessage().indexOf(\"already loaded\") == -1) {\r\n displayError(\"Unable to load \" + nativeLib.getName());\r\n throw ex;\r\n }\r\n }\r\n\r\n // disable JOGL loading form elsewhere\r\n //net.java.games.jogl.impl.NativeLibLoader.disableLoading();\r\n\r\n // start the subapplet\r\n startSubApplet();\r\n }\r\n });\r\n }", "private void _init() throws Exception {\n }", "private native void initialiseHandle(ArcomESS handle);", "private native void init (String configFile) throws IOException;" ]
[ "0.81232613", "0.811659", "0.80831915", "0.8058596", "0.8054389", "0.7795944", "0.7772397", "0.7744073", "0.75481284", "0.73224044", "0.7319526", "0.7299592", "0.69538146", "0.68750143", "0.67720723", "0.66792756", "0.6649773", "0.6594003", "0.65790856", "0.65737116", "0.64818054", "0.63536876", "0.6316692", "0.6306517", "0.62993395", "0.6247994", "0.6204212", "0.6192194", "0.6187263", "0.6185691", "0.61854", "0.6172071", "0.6170493", "0.61574477", "0.61515486", "0.61501557", "0.6095728", "0.60941887", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6088919", "0.6085528", "0.6063299", "0.60369587", "0.60177135", "0.6005551", "0.6005551", "0.6005551", "0.6004828", "0.60045725", "0.60014683", "0.59934103", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.5993071", "0.59858733", "0.5974432", "0.594368", "0.5939665", "0.59351546", "0.5927233", "0.5922466", "0.5922466", "0.59061885", "0.58966386", "0.5877829", "0.5877829", "0.5873441", "0.5860453", "0.586043", "0.5856913", "0.585503", "0.58537626", "0.58537626", "0.58537626", "0.58537626", "0.5851901", "0.584745", "0.5846933", "0.5827796", "0.5827093", "0.58152395", "0.580496", "0.5804712", "0.57923174", "0.5791532" ]
0.0
-1
return second type of critters
public Image spawnCriter(int waveLevel) { // TODO Auto-generated method stub if (waveLevel==2){ Image image1=new ImageIcon("res/Critter2.png").getImage(); return image1; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCriterionTypeValue();", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, searchObject.getProvince()).addAnd(SiteConfineArea.PROP_CITY,Operator.EQ,searchObject.getCity());\n if (searchObject.getStatus() != null) {\n if (searchObject.getStatus().equals(SiteConfineStatusEnum.USING.getCode())) {\n //使用中\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.GT, new Date());\n } else if (searchObject.getStatus().equals(SiteConfineStatusEnum.EXPIRED.getCode())) {\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.LT, new Date());\n }\n }\n criteria.addAnd(SiteConfineArea.PROP_SITE_ID,Operator.EQ,searchObject.getSiteId());\n return criteria;\n //endregion your codes 2\n }", "public TermCriteria get_term_crit()\n {\n \n TermCriteria retVal = new TermCriteria(get_term_crit_0(nativeObj));\n \n return retVal;\n }", "boolean hasCriterionType();", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "public FilterCriterion(String columnName, Object value, Object value2, FilterType type)\n {\n this.columnName = columnName;\n this.value = value;\n this.type = type;\n this.value2 = value2;\n }", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.IEQ,searchObject.getPlayerAccount());\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_IS_ACTIVE, Operator.EQ,searchObject.getIsActive()));\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.EQ,searchObject.getPlayerAccount()));\n\n return criteria;\n //endregion your codes 2\n }", "public TripSearchCriteria getCriteria(){\r\n\t\tname = jNameTrip.getText();\r\n\t\tdateLow = (Date) datePickerFrom.getModel().getValue();\r\n\t\tdateHigh = (Date) datePickerTo.getModel().getValue();\r\n\t\tpriceHigh = slider.getValue();\r\n\t\tpriceLow = 0;\r\n\t\tcategory = (String) categoryCombo.getSelectedItem();\r\n\t\tif (category == \"All Categories\") category = \"\";\r\n\t\tcriteria = new TripSearchCriteria(name,dateLow,dateHigh,priceLow,priceHigh,category,noGuests);\r\n\t\treturn criteria;\r\n\t\t\t\t}", "double getCritChance();", "boolean canCrit();", "CritPair createCritPair();", "protected abstract T criterion(Result r);", "public Critter getCritter() {\n\t\treturn critter;\n\t}", "public Filter condition();", "FilterCondition createFilterCondition(int clueNum);", "Conditions getConditions();", "public String getCriteriaType()\r\n\t{\r\n\t\treturn criteriaType;\r\n\t}", "@GET\n @Path(\"condition-two\")\n @ConditionNameBindings.ConditionalTwo\n public String getConditionTwo(@HeaderParam(ConditionalOneFilter.HEADER) String header,\n @HeaderParam(ConditionalTwoFilter.HEADER) String header1) {\n return \"[Conditional One Header]: \" + header + \" [Conditional Two Header]: \" + header1;\n }", "public Optimizer getOptimizedCriteria() {\r\n\r\n\t\tLog.d(\"Criteria\", \"Inside getOC:\" + isIntelligenceOverridden);\r\n\r\n\t\tif (!isIntelligenceOverridden) {\r\n\r\n\t\t\t/* BATTERY LEVEL - \"HIGH\" */\r\n\t\t\tif (batteryLevel > Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Test\", \"Entered High\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.HIGH);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.HIGH);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"MEDIUM\" */\r\n\t\t\telse if (batteryLevel > Constants.BATTERY_LEVEL.MEDIUM\r\n\t\t\t\t\t&& batteryLevel <= Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Entered Medium\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.MEDIUM);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.MEDIUM);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"LOW\" */\r\n\t\t\telse if (batteryLevel <= Constants.BATTERY_LEVEL.MEDIUM) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Checking Moderate Mode\");\r\n\t\t\t\tmModerateMode();\r\n\t\t\t}\r\n\t\t\tLog.d(\"Criteria\", \"Returning Op obj\");\r\n\t\t\treturn optimizer;\r\n\t\t}\r\n\r\n\t\tLog.d(\"Criteria\", \"Then continuing\");\r\n\t\tswitch (userScheme) {\r\n\t\tcase \"moderate\":\r\n\t\t\tLog.d(\"Test\", \"Entered Moderate\");\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\tcase \"lazy\":\r\n\t\t\tLog.d(\"Test\", \"Lazy\");\r\n\t\t\tmLazyMode();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn optimizer;\r\n\t}", "private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public HashMap<String, Shelter> getByRestriction(CharSequence gender, CharSequence age,\n CharSequence name){\n HashMap<String, Shelter> searchedList = shelters;\n if (!(gender == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String genderVal = shelter.getGender();\n if (!genderVal.contains(gender) && (genderVal.contains(\"Men\")\n || genderVal.contains(\"Women\"))){\n it.remove();\n }\n }\n }\n if (!(age == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String genderVal = shelter.getGender();\n if (!genderVal.contains(age) && (genderVal.contains(\"Children\")\n || genderVal.contains(\"Families w/ newborns\")\n || genderVal.contains(\"Young adults\"))){\n it.remove();\n }\n }\n }\n if (!(name == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String nameVal = shelter.getName();\n if (!nameVal.contains(name)){\n it.remove();\n }\n }\n }\n return searchedList;\n }", "public TypeList typeValide(TypeList t1, TypeList t2) {\n if(t1 != t2 || t1 == TypeList.ERREUR)\n return TypeList.ERREUR;\n switch(operateur) {\n case SUP:\n case INF:\n case SUPEG:\n case INFEG:\n if(t1 == TypeList.ENTIER)\n return TypeList.BOOLEEN;\n else\n return TypeList.ERREUR;\n case PLUS:\n case MOINS:\n case FOIS:\n case DIV:\n case NEG:\n if(t1 == TypeList.ENTIER)\n return TypeList.ENTIER;\n else\n return TypeList.ERREUR;\n case OU:\n case ET:\n case NON:\n if(t1 == TypeList.BOOLEEN)\n return TypeList.BOOLEEN;\n else\n return TypeList.ERREUR;\n case EG:\n case DIFF:\n //on est dans le cas (t1!=ERREUR) == (t2!=ERREUR), donc pas de probleme.\n return TypeList.BOOLEEN;\n default:\n return TypeList.ERREUR;\n }\n }", "com.google.ads.googleads.v6.resources.SharedCriterion getSharedCriterion();", "public RowSet getPermitTypeVO2() {\n return (RowSet)getAttributeInternal(PERMITTYPEVO2);\n }", "private void convertReqsInCriterions(){\n\t\tArrayList<Criterion> criteria = this.data.getCriteria();\n\t\t\n\t\tfor(Requirement req : this.data.getRequirements()){\n\t\t\tif(req.isCriterion()){\n\t\t\t\t//create new criterion\n\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\telse\n\t\t\t\t\t//this is a price requirement\n\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\n\t\t\t\tString[] msg = {crit.getName(), \"General\"};\n\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t}\n\t\t\t\t//get the criterion preference direction\n\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcriteria.add(crit);\n\t\t\t}\n\t\t}\n\t\tthis.data.setCriteria(criteria);\n\t\t\n\t\t//convert each serpiceTemplate requirements\n\t\tfor(ServiceTemplate template : this.data.getServiceTemplates()){\n\t\t\tArrayList<Criterion> templateCriteria = template.getCriteria();\n\t\t\tfor(Requirement req: template.getRequirements()){\n\t\t\t\tif(req.isCriterion()){\n\t\t\t\t\t//create new criterion\n\t\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\t\telse\n\t\t\t\t\t\t//this is a price requirement\n\t\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\t\n\t\t\t\t\tString[] msg = {crit.getName(), template.getType()};\n\t\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//get the criterion preference direction\n\t\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttemplateCriteria.add(crit);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemplate.setCriteria(templateCriteria);\n\t\t}\n\t}", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "Object getBest();", "public int NumCrits() {\n return 1;\n }", "public int getCriteria() {\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public static List<Critter> getInstances(String critter_class_name)\r\n throws InvalidCritterException {\r\n \t\r\n \t//get the class name of the critter\r\n \tString n = myPackage + \".\" + critter_class_name;\r\n \t\r\n \tList<Critter> critts = new ArrayList<Critter>();\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n\t\twhile (populationIter.hasNext()) { \r\n\t String position = populationIter.next();\r\n\t ArrayList<Critter> critterList = population.get(position);\r\n\t \r\n\t //get the instances of all critters that match the class name\r\n\t for(int j = 0; j < critterList.size(); j++) {\r\n\t \tCritter c = critterList.get(j);\r\n\t \tif(c.getClass().getName().equals(n)){\r\n\t \t\tcritts.add(c);\r\n\t \t}\r\n\t }\r\n\t\t}\r\n return critts;\r\n }", "List<Condition> composeFilterConditions(F filter);", "boolean hasSharedCriterion();", "ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "@Override\n public Criteria getCriteria() {\n\n //判断是否为精确到天的时间查询\n //情况一 点击分组查询查看该天的详情\n if (this.searchObject.getEndtime() == null && this.searchObject.getStarttime() != null){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n\n //情况二 在分组页面按时间搜索\n }else if (this.searchObject.getEndtime() != null && this.searchObject.getStarttime().equals(this.searchObject.getEndtime())){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n }\n\n Criteria criteria = Criteria.and(\n\n Criteria.add(ActivityPlayerApply.PROP_ID, Operator.EQ, this.searchObject.getId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_MESSAGE_ID, Operator.EQ, this.searchObject.getActivityMessageId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_ID, Operator.EQ, this.searchObject.getUserId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_NAME, Operator.EQ, this.searchObject.getUserName()),\n Criteria.add(ActivityPlayerApply.PROP_REGISTER_TIME, Operator.EQ, this.searchObject.getRegisterTime()),\n Criteria.add(ActivityPlayerApply.PROP_APPLY_TIME, Operator.EQ, this.searchObject.getApplyTime()),\n Criteria.add(ActivityPlayerApply.PROP_PLAYER_RECHARGE_ID, Operator.EQ, this.searchObject.getPlayerRechargeId()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.GE, this.searchObject.getStarttime()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.LE, this.searchObject.getEndtime()),\n Criteria.add(ActivityPlayerApply.PROP_PREFERENTIAL_VALUE, Operator.EQ, this.searchObject.getPreferentialValue()),\n Criteria.add(ActivityPlayerApply.PROP_ARTICLE, Operator.EQ, this.searchObject.getArticle()),\n Criteria.add(ActivityPlayerApply.PROP_IS_REALIZE, Operator.EQ, this.searchObject.getIsRealize()),\n Criteria.add(ActivityPlayerApply.PROP_RELATION_PLAYER_ID, Operator.EQ, this.searchObject.getRelationPlayerId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_CLASSIFY_KEY, Operator.EQ, this.searchObject.getActivityClassifyKey()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_TYPE_CODE, Operator.EQ, this.searchObject.getActivityTypeCode())\n );\n criteria.addAnd(ActivityPlayerApply.PROP_IS_DELETED, Operator.EQ, false);\n return criteria;\n }", "public Critter getCritter(int position){\n\t\treturn this.listOfCritters.get(position);\n\t}", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "public Criteria or() {\r\n Criteria criteria = createCriteriaInternal();\r\n oredCriteria.add(criteria);\r\n return criteria;\r\n }", "void criteria(Criteria criteria);", "void criteria(Criteria criteria);", "void criteria(Criteria criteria);", "void criteria(Criteria criteria);", "Food getByType(String type);", "public java.lang.Short getCriterionType() {\r\n return criterionType;\r\n }", "IRequirement or(IRequirement constraint);", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "public void abilityTwo() {\n if(map.getCurrentTurnHero().getAbilities().size() < 2){\n return;\n }\n ability(map.getCurrentTurnHero().getAbilities().get(1));\n }", "public static BookFilter either(final BookFilter b1, final BookFilter b2)\n {\n return new BookFilter()\n {\n public boolean test(Book book)\n {\n return b1.test(book) || b2.test(book);\n }\n };\n }", "private Criteria createFindByEntity(int type, int id) {\n return null;\t\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }", "public Criteria or() {\n Criteria criteria = createCriteriaInternal();\n oredCriteria.add(criteria);\n return criteria;\n }" ]
[ "0.55630535", "0.54695594", "0.5459366", "0.53821206", "0.53708315", "0.53689635", "0.5313161", "0.52098024", "0.50448114", "0.5009259", "0.49987376", "0.4995014", "0.49919182", "0.49876872", "0.49462843", "0.49291027", "0.49155596", "0.49003226", "0.48918745", "0.48840508", "0.48641595", "0.4845476", "0.48435217", "0.4818474", "0.47913352", "0.47765848", "0.4770918", "0.47473451", "0.47355375", "0.4732076", "0.47312567", "0.4728022", "0.47265446", "0.47207144", "0.4718745", "0.4715764", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117805", "0.47117746", "0.47117746", "0.47117746", "0.47117746", "0.47079363", "0.4687391", "0.46808836", "0.46807745", "0.46734527", "0.46653742", "0.46587098", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085", "0.46562085" ]
0.0
-1
Created by maplesod on 27/06/14.
public interface DeBruijnOptimiserArgs extends AssemblerArgs { GenericDeBruijnOptimiserArgs getDeBruijnOptimiserArgs(); void setDeBruijnOptimiserArgs(GenericDeBruijnOptimiserArgs args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "private void poetries() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void skystonePos4() {\n }", "@Override\n public void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void method_4270() {}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\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 einkaufen() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "public final void mo91715d() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void getExras() {\n }", "public void skystonePos6() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo21779D() {\n }", "private void m50367F() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n void init() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void mo6255a() {\n }", "public void m23075a() {\n }", "public abstract void mo70713b();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo6081a() {\n }" ]
[ "0.5968907", "0.58772194", "0.585529", "0.5740199", "0.5727219", "0.5727219", "0.57149947", "0.5697147", "0.56956106", "0.5673944", "0.5670786", "0.56332743", "0.5630023", "0.5624176", "0.5613447", "0.5608703", "0.56042147", "0.56010985", "0.5590161", "0.5569694", "0.5560574", "0.5560574", "0.5560574", "0.5560574", "0.5560574", "0.55459625", "0.5534099", "0.552009", "0.55140156", "0.551005", "0.55097586", "0.55004144", "0.54813373", "0.54745275", "0.5470904", "0.5470904", "0.5465609", "0.5464501", "0.54551655", "0.5451797", "0.5446008", "0.54280806", "0.54067993", "0.53944933", "0.5386044", "0.5386044", "0.5386044", "0.5386044", "0.5386044", "0.5386044", "0.5386044", "0.53858376", "0.538035", "0.53799254", "0.5378455", "0.5375687", "0.5375232", "0.5372274", "0.5372274", "0.5372274", "0.53684455", "0.53684455", "0.53684455", "0.53644073", "0.536353", "0.53559864", "0.53538334", "0.5352687", "0.5351089", "0.5351089", "0.5351089", "0.5348529", "0.53435844", "0.53422934", "0.53349125", "0.53299063", "0.5329841", "0.53249407", "0.53249407", "0.53249407", "0.53249407", "0.53249407", "0.53249407", "0.5323113", "0.5323103", "0.53189415", "0.5317612", "0.53175485", "0.5315228", "0.53131527", "0.53129005", "0.53103065", "0.5304602", "0.53039217", "0.53039217", "0.5300601", "0.52991205", "0.52871287", "0.52793247", "0.52649933", "0.52630395" ]
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int arg0) { 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
La interfaz que define los servicios que van a ofrecerse a los instrumentos formales de ensayos restringidos que tenemos en el sistema.
public interface RestrictedEssayActivityInstrumentService extends EssayActivityInstrumentService<RestrictedEssayActivityInstrument> { /** * La función encargada de cargar el DAO de los instrumentos formales de ensayos restringidos. * * @param restrictedEssayActivityInstrumentDao * el DAO de los instrumentos formales de ensayos restringidos. */ public void setRestrictedEssayActivityInstrumentDao(RestrictedEssayActivityInstrumentDao restrictedEssayActivityInstrumentDao); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}", "public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "protected abstract String getAtiempoServiceNameEnReversa();", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public void adicionarServicos() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Não existem hospedes cadastrados!\\n\");\n } else {\n\n System.err.println(\"Digite o cpf do hospede que deseja adicionar servicos:\");\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o indice i do objeo pessoa, pega o id da pessoa e compara com o id da pessoa digitada\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se a situaçao do contrato ainda está aberta para esse hospede\n\n System.err.println(\"O que deseja editar do contrato\\n\");\n //adicionar carro, trocar de quarto, adicionar conta de restaurante,\n //encerrar contrato\n\n System.err.println(\"Adicionar carro (1):\\nAdicionar restaurante (2):\\n\"\n + \"Adicionar horas de BabySitter (3):\\nAdicionar quarto(4):\\n\");\n int caso = verifica();\n switch (caso) {\n case 1://carro\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados!\\n\");\n } else {\n listarCarros();\n System.err.println(\"Digite o id do carro que deseja contratar:\\n\");\n int idCarro = verifica();\n\n for (int j = 0; j < carrosCadastrados.size(); j++) {\n if (carrosCadastrados.get(j).getId() == idCarro) {\n if (carrosCadastrados.get(j).isEstado()) {\n System.err.println(\"Esse carro já está cadastrado.\\n\");\n } else {\n hospedesCadastrados.get(i).getContrato().setCarros(carrosCadastrados.get(j));\n carrosCadastrados.get(j).setEstado(true);\n }\n }\n }\n }\n break;\n\n case 2://restaurante\n System.err.println(\"Digite o quanto deseja gastar no restaurente\\n\");\n double valorRestaurante = ler.nextDouble();\n// idd();\n// int idRestaurante = id;\n// Restaurante restaurante = new Restaurante(idRestaurante, valorRestaurante);\n hospedesCadastrados.get(i).getContrato().setValorRestaurante(valorRestaurante);\n break;\n case 3://babysitter\n System.err.println(\"Digite o tempo gasto no BabySytter em horas\\n\");\n double tempoBaby = ler.nextDouble();\n hospedesCadastrados.get(i).getContrato().setHorasBaby(tempoBaby);\n break;\n case 4://quartos\n\n if (quartosCadastrados.isEmpty()) {\n\n } else {\n System.err.println(\"Digite o numero do quarto que deseja contratar:\\n\");\n listarQuartos();\n int num = verifica();\n System.err.println(\"Digite a quantidade de dis que pretente alugar o quarto:\\n\");\n int dias = verifica();\n for (int j = 0; j < quartosCadastrados.size(); j++) {\n if (num == quartosCadastrados.get(j).getNumero()) {//verifica se o numero digitado é igual ao numero do quarto do laco\n if (quartosCadastrados.get(j).getEstado()) {//verifica se o estado do quarto está como true\n System.err.println(\"Este quarto já está cadastrado em um contrato\");\n } else {//se o estado tiver em true é porque o quarto ja está cadastrado\n\n hospedesCadastrados.get(i).getContrato().setQuartos(quartosCadastrados.get(j));\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setDias(dias);\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setEstado(true);//seta o estado do quarto como ocupado\n System.err.println(\"Quarto cadastrado!\\n\");\n }\n\n }\n\n }\n\n//remove all remove todas as pessoas com tal nome\t\n }\n break;\n\n }\n } else {\n System.err.println(\"O contrato deste Hospede encontra-se encerrado\");\n break;\n }\n }\n }\n }\n }", "public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public void conectarServicio(){\n\t\tIntent intent = new Intent(this,CalcularServicio.class);\n\t\tbindService(intent, mConexion, Context.BIND_AUTO_CREATE);\n\t\tmServicioUnido = true;\n\t}", "@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}", "public ControladorCatalogoServicios() {\r\n }", "@Remote\npublic interface IRClienteWSAXIS {\n\n /**\n * Realiza la invocacion con el WebService para realizar la registrar la financiacion y obtener el id del convenio\n * \n * @param financiacion\n * datos de la financiacion\n * @return Financiacion con el Numero de axis para Wla financiacion\n * @author julio.pinzon(2016-08-12)\n * @throws CirculemosNegocioException\n */\n public FinanciacionDTO registrarFinanciacion(FinanciacionDTO financiacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para anular la financiacion\n * \n * @param numeroFinanciacion\n * numero del convenio\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void anularFinanciacion(String numeroFinanciacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar la impugnacion de un comparendo\n * \n * @param comparendo\n * datos del comparendo\n * @param impugnacion\n * datos de la impugnacion\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void impugnarComparendo(ComparendoDTO comparendo, ProcesoDTO impugnacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del fallo sobre la impugnacion previa\n * \n * @param fallo\n * datos del fallo\n * @return Nuevo numero de factura\n * @author julio.pinzon(2016-08-17)\n * @param idProceso\n * @param comparendoDTO\n * @throws CirculemosNegocioException\n */\n public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del numero de coactivo de axis\n * \n * @param coactivoDTO\n * @return CoactivoDTO\n * @throws CirculemosNegocioException\n * @author Jeison.Rodriguez (2016-09-21)\n */\n public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;\n}", "public interface UmsatzService extends Service\n{\n\n public static final String KEY_ID = \"id\";\n public static final String KEY_KONTO_ID = \"konto_id\";\n public static final String KEY_GEGENKONTO_NAME = \"empfaenger_name\";\n public static final String KEY_GEGENKONTO_NUMMER = \"empfaenger_konto\";\n public static final String KEY_GEGENKONTO_BLZ = \"empfaenger_blz\";\n public static final String KEY_ART = \"art\";\n public static final String KEY_BETRAG = \"betrag\";\n public static final String KEY_VALUTA = \"valuta\";\n public static final String KEY_DATUM = \"datum\";\n public static final String KEY_ZWECK = \"zweck\";\n public static final String KEY_ZWECK_RAW = \"zweck_raw\";\n public static final String KEY_SALDO = \"saldo\";\n public static final String KEY_PRIMANOTA = \"primanota\";\n public static final String KEY_CUSTOMER_REF = \"customer_ref\";\n public static final String KEY_UMSATZ_TYP = \"umsatz_typ\";\n public static final String KEY_KOMMENTAR = \"kommentar\";\n public static final String KEY_GVCODE = \"gvcode\";\n\n\n /**\n * Liefert eine Liste der Umsaetze.\n * Jede Zeile entspricht einem Umsatz. Die einzelnen Werte sind durch Doppelpunkt getrennt.\n * @param text Suchbegriff.\n * @param von Datum im Format dd.mm.yyyy.\n * @param bis Datum im Format dd.mm.yyyy.\n * @return Liste der Konten.\n * @throws RemoteException\n */\n public String[] list(String text, String von, String bis) throws RemoteException;\n\n /**\n * Liefert eine Liste der Umsaetze.\n * ueber dem Hash koennen die folgenden Filter gesetzt werden:\n *\n * konto_id\n * art\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * id\n * id:min\n * id:max\n * saldo\n * saldo:min\n * saldo:max\n * valuta\n * valuta:min\n * valuta:max\n * datum\n * datum:min\n * datum:max\n * betrag\n * betrag:min\n * betrag:max\n * primanota\n * customer_ref\n * umsatz_typ (Name oder ID der Umsatz-Kategorie)\n * zweck\n *\n * Die Funktion liefer eine Liste mit den Umsaetzen zurueck\n * jeder Umsatz liegt als Map vor und enthält die folgenden\n * Elemente:\n *\n * id\n * konto_id\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * saldo\n * valuta\n * datum\n * betrag\n * primanota\n * customer_ref\n * umsatz_typ\n * zweck\n * kommentar\n * \n * @param options Map mit den Filter-Parametern.\n * @return Liste der Umsaetze.\n * @throws RemoteException\n */\n public List<Map<String,Object>> list(HashMap<String,Object> options) throws RemoteException;\n}", "@WebService(targetNamespace = \"http://publicar.uytubeLogica/\", name = \"WebServices\")\r\n@XmlSeeAlso({ObjectFactory.class, net.java.dev.jaxb.array.ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface WebServices {\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRRequest\", output = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRResponse\")\r\n public void cambiarPrivLDR(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/operacionPruebaRequest\", output = \"http://publicar.uytubeLogica/WebServices/operacionPruebaResponse\")\r\n public void operacionPrueba();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPublicasPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarDispUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanalArray listarCanalesPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtUsuario listarDatosUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioResponse\")\r\n public void seguirUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/valorarVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/valorarVideoResponse\")\r\n public void valorarVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n boolean arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray infoLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanal mostrarInfoCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaResponse\")\r\n public void agregarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtRequest\", output = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtInfoVideo verDetallesVideoExt(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/responderComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/responderComentarioResponse\")\r\n public void responderComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n DtFecha arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVisitaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVisitaResponse\")\r\n public void agregarVisita(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioResponse\")\r\n public void nuevoUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n DtFecha arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n byte[] arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n java.lang.String arg7,\r\n @WebParam(partName = \"arg8\", name = \"arg8\")\r\n java.lang.String arg8,\r\n @WebParam(partName = \"arg9\", name = \"arg9\")\r\n Privacidad arg9,\r\n @WebParam(partName = \"arg10\", name = \"arg10\")\r\n java.lang.String arg10\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarLoginRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarLoginResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarLogin(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularResponse\")\r\n public void nuevaListaParticular(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioResponse\")\r\n public void nuevoComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n DtFecha arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaResponse\")\r\n public void eliminarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionRequest\", output = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public java.lang.String getEstadoValoracion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCategoriasRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCategoriasResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCategoriaArray listarCategorias();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoHistorialArray listarVideoHistorial(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberListaReproduccionPropia(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarComentariosRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarComentariosResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtComentarioArray listarComentarios(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray obtenerDtsVideosListaReproduccionUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccion infoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/aniadirVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/aniadirVideoResponse\")\r\n public void aniadirVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n int arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n DtFecha arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n java.lang.String arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n DtCategoria arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n Privacidad arg7\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueLeSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray infoVideosCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioResponse\")\r\n public void bajaUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoAddVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoAddVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideo infoAddVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cargarDatosRequest\", output = \"http://publicar.uytubeLogica/WebServices/cargarDatosResponse\")\r\n public void cargarDatos();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioResponse\")\r\n public void dejarUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n}", "@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \t\n \t//aqui deberiamos haber combropado un mensaje de error si idCliente < 0 podriamos saber que ha habido error\n int idCliente = datos.almacenarFichero(nombreFichero,idSesionCliente);\n int idSesionRepo = datos.dimeRepositorio(idCliente);//sesion del repositorio\n Interfaz.imprime(\"Se ha agregado el fichero \" + nombreFichero + \" en el almacen de Datos\"); \n \n //Devolvemos la URL del servicioClOperador con la carpeta donde se guardara el tema\n DatosIntercambio di = new DatosIntercambio(idCliente , \"rmi://\" + direccionServicioClOperador + \":\" + puertoServicioClOperador + \"/cloperador/\"+ idSesionRepo);\n return di;\n }", "public void getServicios() {\n\t\tjs.executeScript(\"arguments[0].click();\", cuadradito);\n\t\tinputSearch.sendKeys(\"Servicio\");\n\t\tjs.executeScript(\"arguments[0].click();\", servicios);\n\t}", "@WebService(name = \"resaService\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ResaService {\n\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"verifEndResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResa\")\n @ResponseWrapper(localName = \"verifEndResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResaResponse\")\n public void verifEndResa();\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws Exception_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mailResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResa\")\n @ResponseWrapper(localName = \"mailResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResaResponse\")\n public void mailResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws Exception_Exception, FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservation\")\n @ResponseWrapper(localName = \"deleteReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservationResponse\")\n public void deleteReservation(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @param demandeurId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservation\")\n @ResponseWrapper(localName = \"newReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservationResponse\")\n public Reservation newReservation(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId,\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaById\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaById\")\n @ResponseWrapper(localName = \"getResaByIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByIdResponse\")\n public Reservation getResaById(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param demandeurId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.ReservationWS>\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByUserId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserId\")\n @ResponseWrapper(localName = \"getResaByUserIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserIdResponse\")\n public List<ReservationWS> getResaByUserId(\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.Reservation>\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByLivreId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreId\")\n @ResponseWrapper(localName = \"getResaByLivreIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreIdResponse\")\n public List<Reservation> getResaByLivreId(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId)\n throws FunctionalException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"startResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResa\")\n @ResponseWrapper(localName = \"startResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResaResponse\")\n public Reservation startResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n}", "public interface BonCommandeRS\n extends GenericService<BonCommande, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"envoye\")\n public BonCommande envoyer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"confirme\")\n public BonCommande confirmer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"reception\")\n public BonReception reception(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public BonCommande annuler(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"facture\")\n public BonCommande facture(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"imprime\")\n public List<BonCommande> imprimer(@Context HttpHeaders headers,BonCommande dmde);\n}", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "public void StartAllServices()\n\t{\n\t\tm_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here\n\t\t// bring up the heartbeat receiver\n\t\tm_oCommServ.StartHeartBeatRecvr();\n\t\t//breing up the file report recvr\n\t\tm_oCommServ.StartFileReportRecvr();\n\t}", "public Services() {\n this.indexes = new ArrayList<Integer>();\n// this.indexes.add(ServiceTypes.NOSERVICES.getValue());\n this.services = new ArrayList<String>();\n// this.services.add(ServiceTypes.NOSERVICES.getKey());\n }", "public void testDynamicServices() throws Exception\n {\n int freq = 65432198;\n int prognum = 10;\n int modformat = 16;\n ServiceHandle handle = sidb.getServiceByProgramNumber(freq, modformat, prognum);\n ServiceExt service = sidb.createService(handle);\n OcapLocator loc = (OcapLocator) service.getLocator();\n assertEquals(\"Frequency does not match\", freq, loc.getFrequency());\n assertEquals(\"Program Number does not match\", prognum, loc.getProgramNumber());\n assertEquals(\"Modulation Format does not match\", modformat, loc.getModulationFormat());\n assertEquals(\"SourceID is incorrect\", -1, loc.getSourceID());\n dumpService(service);\n log(\"*********************************************************\");\n\n // Now we're going to try to get an existing service using it's\n // freq/prog/mod.\n ServiceList sl = serviceSetup();\n if (sl.size() > 0)\n {\n // Just grab the first one off the list\n service = (ServiceExt) sl.getService(0);\n tune(service);\n ServiceDetailsHandle[] handles = null;\n try\n {\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n catch (SINotAvailableYetException ex)\n {\n synchronized (sial)\n {\n // Wait for the SIAcquiredEvent\n sial.wait();\n // Try again.. if it fails, it will jump out to the outer\n // catch\n handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n }\n }\n assertNotNull(\"No ServiceDetails available\", handles);\n assertTrue(\"Handles array has no data\", handles.length > 0);\n ServiceDetailsExt details = sidb.createServiceDetails(handles[0]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service, details.getService());\n TransportStreamExt ts = (TransportStreamExt) details.getTransportStream();\n freq = ts.getFrequency();\n prognum = details.getProgramNumber();\n modformat = ts.getModulationFormat();\n handle = sidb.getServiceByProgramNumber(freq, prognum, modformat);\n service = sidb.createService(handle);\n loc = (OcapLocator) service.getLocator();\n assertEquals(\"Frequency does not match\", freq, loc.getFrequency());\n assertEquals(\"Program Number does not match\", prognum, loc.getProgramNumber());\n assertEquals(\"Modulation Format does not match\", modformat, loc.getModulationFormat());\n assertEquals(\"SourceID is incorrect\", -1, loc.getSourceID());\n dumpService(service);\n }\n else\n {\n log(\"No Services available to test for dynamic service creation\");\n }\n log(\"*********************************************************\");\n\n // Try to get a service using an outrageous frequency\n freq = 1;\n prognum = 2;\n modformat = 8;\n try\n {\n sidb.getServiceByProgramNumber(freq, prognum, modformat);\n fail(\"Expected SIRequestInvalidException using 1 as frequency\");\n }\n catch (SIDatabaseException e)\n {\n // Expected\n }\n }", "public interface PortadorService {\n\n @POST(\"api/portador/login/auth\")\n Call<FazerLoginPortadorResponse> login(@Body FazerLoginPortador fazerLoginPortador);\n\n @POST(\"api/portador/login\")\n Call<CriarLoginResponse> criarLogin(@Body PortadorLogin portadorLogin);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<GetCredenciaisResponse> listaCredenciais(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/credencial/{idCredencial}/detalhes\")\n Call<Credencial> credencialDetalhes(\n @Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/portador/login/logout\")\n Call<ResponseBody> logout();\n\n @PUT(\"api/portador/login/trocar-email\")\n Call<ItsPayResponse> trocarEmail(@Body TrocarEmail trocarEmail, @Header(\"AuthorizationPortador\") String token);\n\n @PUT(\"api/portador/login/trocar-senha\")\n Call<ItsPayResponse> trocarSenha(@Body TrocarSenhaPortador trocarSenhaPortador, @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/login/{idProcessadora}/{idInstituicao}/buscar-email/{documento}\")\n Call<BuscarEmailResponse> buscarEmail(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Path(\"documento\") String documento,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/data_inicial/{dataInicial}/data_final/{dataFinal}\")\n Call<LinhaExtratoCredencial[]> extratoPeriodo(@Path(\"idCredencial\") long idCredencial,\n @Path(\"dataInicial\") String dataInicial,\n @Path(\"dataFinal\") String dataFinal,\n @Header(\"AuthorizationPortador\") String token);\n\n //{periodo} - Valores aceitos 15, 30 ou 45.\n @GET(\"api/portador/credencial/{idCredencial}/extrato/periodo/{periodo}\")\n Call<LinhaExtratoCredencial[]> extratoCredencial(@Path(\"idCredencial\") long idCredencial,\n @Path(\"periodo\") String periodo,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/plastico/abrir/mobile/{idPlastico}\")\n Call<ResponseBody> abrirPlastico(@Path(\"idPlastico\") long idPlastico,\n @Header(\"AuthorizationPortador\") String token);\n\n /**\n * @param portadorCredencialRequest a credencial deve ser criptografada com SHA512\n * @param token\n * @return\n */\n @POST(\"api/portador/credencial/info-portador\")\n Call<PortadorCredencial> getPortadorCredencial(@Body GetInfoPortadorCredencialRequest portadorCredencialRequest,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia\")\n Call<ResponseBody> transferenciaOutroCartao(@Body TransferenciaMesmaInstituicao request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/conta/transferencia/conta/corrente\")\n Call<ResponseBody> transferenciaContaCorrente(@Body TransferenciaContaCorrente request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/banco\")\n Call<Banco[]> listaBancos(@Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/gerar-linha-digitavel\")\n Call<BoletoCarga> gerarLinhaDigitavel(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/boleto/carga/enviar-boleto-email\")\n Call<ResponseBody> enviarBoletoEmail(@Body GerarBoletoCarga request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/virtual/conta/{idConta}\")\n Call<GetCredenciaisResponse> listaCartoesVirtuais(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/gerador/credencial\")\n Call<CredencialGerada> novoCartaoVirtual(@Body GerarCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/status-habilitacao/{idCredencial}\")\n Call<CredencialStatus> listaStatusHabilitacao(@Path(\"idCredencial\") long idCredencial,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-estado\")\n Call<ResponseBody> trocarEstado(@Body TrocarEstadoCredencialRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n\n @POST(\"api/portador/credencial/avisar-perda\")\n Call<ResponseBody> avisarPerda(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/avisar-roubo\")\n Call<ResponseBody> avisarRoubo(@Body AvisarPerdaOuRouboRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/portador/credencial/trocar-pin\")\n Call<Boolean> trocarSenhaCartao(@Body TrocarPinRequest request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/conta/buscar-tarifas/conta/{idConta}\")\n Call<GetPerfilTarifarioResponse> listaTarifas(@Path(\"idConta\") long idConta,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/portador/credencial/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/desbloqueadas\")\n Call<GetCredenciaisResponse> listaCredenciaisLoja(\n @Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProcessadora,\n @Path(\"idInst\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token\n );\n\n @GET(\"api/mktplace/portador/pedido/pessoa/{documento}/processadora/{idProcessadora}/instituicao/{idInstituicao}\")\n Call<Pedido[]> buscarPedidos(@Path(\"documento\") String documento,\n @Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/pedido/{idPedido}\")\n Call<PedidoDetalhe> buscarPedidoDetalhe(\n @Path(\"idPedido\") long idPedido,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parceiro-produto/{idProcessadora}/{idInstituicao}/\")\n Call<ArrayList<ParceiroResponse>> getParceiros(@Path(\"idProcessadora\") long idProcessadora,\n @Path(\"idInstituicao\") long idInstituicao,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/administrativo/imagem/sku/{idImagem}\")\n Call<ResponseBody> abrirImagemProduto(@Path(\"idImagem\") long idImagem,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/formas-envio/{idParceiro}/endereco/{idEndereco}\")\n Call<GetFormasEnvioResponse[]> getFormasEnvio(@Path(\"idParceiro\") long idParceiro,\n @Path(\"idEndereco\") long idEndereco,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/endereco/{documento}/pessoa/{tipoPessoa}/processadora/{idProc}/instituicao/{idInst}/status/{status}/\")\n Call<EnderecoPessoa[]> getEnderecoPortador(@Path(\"documento\") String documento,\n @Path(\"tipoPessoa\") long tipoPessoa,\n @Path(\"idProc\") long idProc,\n @Path(\"idInst\") long idInst,\n @Path(\"status\") long status,\n @Header(\"AuthorizationPortador\") String token);\n\n @POST(\"api/mktplace/portador/pedido\")\n Call<Integer> efetuarPedido(@Body FazerPedidoMKTPlace request,\n @Header(\"AuthorizationPortador\") String token);\n\n @GET(\"api/mktplace/portador/parcelas/{idParceiro}/valor/{valorCarrinho}\")\n Call<ParcelasResponse> getParcelamento(@Path(\"idParceiro\") long idParceiro,\n @Path(\"valorCarrinho\") double valorCarrinho,\n @Header(\"AuthorizationPortador\") String token);\n}", "@WebService(name = \"livros\", targetNamespace = \"http://servico.estoque.knight.com.br/\")\n@XmlSeeAlso({\n br.com.knight.estoque.servico.ObjectFactory.class,\n br.com.knight.estoque.servico.excecoes.ObjectFactory.class\n})\npublic interface Livros {\n\n\n /**\n * \n * @param usuario\n * @param parameters\n * @return\n * returns br.com.knight.estoque.servico.CriarLivroResponse\n * @throws UsuarioNaoAutorizadoException\n * @throws SOAPException_Exception\n */\n @WebMethod\n @WebResult(name = \"criarLivroResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"result\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n public CriarLivroResponse criarLivro(\n @WebParam(name = \"criarLivro\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"parameters\")\n CriarLivro parameters,\n @WebParam(name = \"usuario\", targetNamespace = \"http://servico.estoque.knight.com.br/\", header = true, partName = \"usuario\")\n Usuario usuario)\n throws SOAPException_Exception, UsuarioNaoAutorizadoException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivros\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivros\")\n @ResponseWrapper(localName = \"listarLivrosResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosResponse\")\n public List<Livro> listarLivros();\n\n /**\n * \n * @param tamanhoDaPagina\n * @param numeroDaPagina\n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(name = \"livro\", targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivrosPaginacao\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacao\")\n @ResponseWrapper(localName = \"listarLivrosPaginacaoResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacaoResponse\")\n public List<Livro> listarLivrosPaginacao(\n @WebParam(name = \"numeroDaPagina\", targetNamespace = \"\")\n int numeroDaPagina,\n @WebParam(name = \"tamanhoDaPagina\", targetNamespace = \"\")\n int tamanhoDaPagina);\n\n}", "private void limpiarDatos() {\n\t\t\n\t}", "public interface ControllcurveService extends Service<Controllcurve> {\n\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "public interface IServicio {\n\n\tpublic String operacion();\n}", "public static void main(String[] args) {\n CandidatoServices candidatoServices = new CandidatoServices();\n candidatoServices.consultarVagas();\n //teste de candidatar a vaga\n Candidato usuCandidato = new Candidato(1, \"123\", \"321\", 25, \"[email protected]\", \"senha465\", \"Leonardo\");\n ProcessoSeletivo processo = new ProcessoSeletivo(new ArrayList<Candidatura>(),new Vaga(\"analista\",2000,\n new Empresa(\"123\",\"rua dois\")),\"Processo 1\");\n candidatoServices.candidatarVaga(processo, usuCandidato);\n //teste de acompanhamento de processo seletivo\n candidatoServices.acompanharProcessoSeletivo(new Candidatura(usuCandidato,StatusCandidatura.EMPROCESSOSELETIVO),\n new Entrevista(\"10/10/2020\",\"Rua tres\",\"12:00\",usuCandidato), processo);\n\n //testes de servicos da agencia\n //teste de consultar os candidatos em cada processo seletivo\n AgenciaServices agenciaServices = new AgenciaServices();\n agenciaServices.consultarCandidatos();\n //teste de cadasatrar uma vaga\n agenciaServices.cadastrarVaga(new Vaga(\"designer\",5000,new Empresa(\"123\",\"rua dois\")), \"Processo final\");\n //teste de gerenciamento dos processos seletivos\n agenciaServices.gerenciarProcessoSeletivo();\n }", "private void startOtherServices() {\n Object obj;\n String str;\n String str2;\n boolean tuiEnable;\n TelephonyRegistry telephonyRegistry;\n VibratorService vibrator;\n InputManagerService inputManager;\n WindowManagerService wm;\n AlarmManagerService wm2;\n boolean safeMode;\n ILockSettings lockSettings;\n IConnectivityManager iConnectivityManager;\n INetworkManagementService iNetworkManagementService;\n IpSecService ipSecService;\n INetworkPolicyManager iNetworkPolicyManager;\n MediaRouterService mediaRouter;\n CountryDetectorService countryDetector;\n NetworkTimeUpdateService networkTimeUpdater;\n INetworkStatsService iNetworkStatsService;\n LocationManagerService location;\n Resources.Theme systemTheme;\n IpSecService ipSecService2;\n INetworkManagementService iNetworkManagementService2;\n IpSecService ipSecService3;\n IpSecService ipSecService4;\n INetworkPolicyManager iNetworkPolicyManager2;\n INetworkStatsService iNetworkStatsService2;\n IConnectivityManager iConnectivityManager2;\n IBinder iBinder;\n INotificationManager notification;\n IBinder iBinder2;\n MediaRouterService mediaRouter2;\n boolean hasFeatureFace;\n boolean hasFeatureIris;\n boolean hasFeatureFingerprint;\n MediaRouterService mediaRouter3;\n Class<SystemService> serviceClass;\n MediaRouterService mediaRouter4;\n Throwable e;\n ?? mediaRouterService;\n NetworkTimeUpdateService networkTimeUpdater2;\n Throwable e2;\n IBinder iBinder3;\n Throwable e3;\n IBinder iBinder4;\n Throwable e4;\n Throwable e5;\n Throwable e6;\n Throwable e7;\n Throwable e8;\n ?? r2;\n IBinder iBinder5;\n Throwable e9;\n Throwable e10;\n Throwable e11;\n IpSecService ipSecService5;\n Throwable e12;\n ?? create;\n Throwable e13;\n VibratorService vibrator2;\n RuntimeException e14;\n TelephonyRegistry telephonyRegistry2;\n ?? vibratorService;\n InputManagerService inputManager2;\n ?? r9;\n Context context = this.mSystemContext;\n INetworkStatsService iNetworkStatsService3 = null;\n WindowManagerService wm3 = null;\n IBinder iBinder6 = null;\n NetworkTimeUpdateService networkTimeUpdater3 = null;\n InputManagerService inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n inputManager3 = null;\n MmsServiceBroker mmsService = null;\n AlarmManagerService alarmManager = null;\n this.mHwRogEx = HwServiceFactory.getHwRogEx();\n boolean disableSystemTextClassifier = SystemProperties.getBoolean(\"config.disable_systemtextclassifier\", false);\n boolean disableNetworkTime = SystemProperties.getBoolean(\"config.disable_networktime\", false);\n boolean disableCameraService = SystemProperties.getBoolean(\"config.disable_cameraservice\", false);\n boolean disableSlices = SystemProperties.getBoolean(\"config.disable_slices\", false);\n boolean tuiEnable2 = SystemProperties.getBoolean(\"ro.vendor.tui.service\", false);\n boolean isEmulator = SystemProperties.get(\"ro.kernel.qemu\").equals(ENCRYPTED_STATE);\n boolean enableRms = SystemProperties.getBoolean(\"ro.config.enable_rms\", false);\n boolean enableIaware = SystemProperties.getBoolean(\"ro.config.enable_iaware\", false);\n boolean isChinaArea = \"CN\".equalsIgnoreCase(SystemProperties.get(\"ro.product.locale.region\", \"\"));\n boolean isWatch = context.getPackageManager().hasSystemFeature(\"android.hardware.type.watch\");\n boolean isArc = context.getPackageManager().hasSystemFeature(\"org.chromium.arc\");\n boolean enableVrService = context.getPackageManager().hasSystemFeature(\"android.hardware.vr.high_performance\");\n boolean isStartSysSvcCallRecord = \"3\".equals(SystemProperties.get(\"ro.logsystem.usertype\", \"0\")) && \"true\".equals(SystemProperties.get(\"ro.syssvccallrecord.enable\", \"false\"));\n if (Build.IS_DEBUGGABLE) {\n if (SystemProperties.getBoolean(\"debug.crash_system\", false)) {\n throw new RuntimeException();\n }\n }\n try {\n if (MAPLE_ENABLE) {\n try {\n Slog.d(TAG, \"wait primary zygote preload default resources\");\n ConcurrentUtils.waitForFutureNoInterrupt(this.mPrimaryZygotePreload, \"Primary Zygote preload\");\n Slog.d(TAG, \"primary zygote preload default resources finished\");\n this.mPrimaryZygotePreload = null;\n } catch (RuntimeException e15) {\n e14 = e15;\n str2 = \"false\";\n telephonyRegistry = null;\n vibrator2 = null;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n }\n }\n try {\n this.mZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$NlJmG18aPrQduhRqASIdcn7G0z8.INSTANCE, \"SecondaryZygotePreload\");\n traceBeginAndSlog(\"StartKeyAttestationApplicationIdProviderService\");\n ServiceManager.addService(\"sec_key_att_app_id_provider\", (IBinder) new KeyAttestationApplicationIdProviderService(context));\n traceEnd();\n traceBeginAndSlog(\"StartKeyChainSystemService\");\n this.mSystemServiceManager.startService(KeyChainSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSchedulingPolicyService\");\n ServiceManager.addService(\"scheduling_policy\", (IBinder) new SchedulingPolicyService());\n traceEnd();\n if (hasSystemServerFeature(\"telecomloader\")) {\n traceBeginAndSlog(\"StartTelecomLoaderService\");\n this.mSystemServiceManager.startService(TelecomLoaderService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"telephonyregistry\")) {\n traceBeginAndSlog(\"StartTelephonyRegistry\");\n if (HwSystemManager.mPermissionEnabled == 0) {\n r9 = new TelephonyRegistry(context);\n } else {\n HwServiceFactory.IHwTelephonyRegistry itr = HwServiceFactory.getHwTelephonyRegistry();\n if (itr != null) {\n r9 = itr.getInstance(context);\n } else {\n r9 = new TelephonyRegistry(context);\n }\n }\n ServiceManager.addService(\"telephony.registry\", (IBinder) r9);\n traceEnd();\n telephonyRegistry2 = r9;\n } else {\n telephonyRegistry2 = null;\n }\n try {\n traceBeginAndSlog(\"StartEntropyMixer\");\n this.mEntropyMixer = new EntropyMixer(context);\n traceEnd();\n this.mContentResolver = context.getContentResolver();\n traceBeginAndSlog(\"StartAccountManagerService\");\n this.mSystemServiceManager.startService(ACCOUNT_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartContentService\");\n this.mSystemServiceManager.startService(CONTENT_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"InstallSystemProviders\");\n this.mActivityManagerService.installSystemProviders();\n SQLiteCompatibilityWalFlags.reset();\n traceEnd();\n traceBeginAndSlog(\"StartDropBoxManager\");\n this.mSystemServiceManager.startService(DropBoxManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartVibratorService\");\n vibratorService = new VibratorService(context);\n } catch (RuntimeException e16) {\n e14 = e16;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7 = null;\n LocationManagerService location2 = null;\n CountryDetectorService countryDetector2 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n try {\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n } catch (Throwable e17) {\n reportWtf(\"starting StorageManagerService\", e17);\n }\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n try {\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n } catch (Throwable e18) {\n reportWtf(\"starting StorageStatsService\", e18);\n }\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config = wm.computeNewConfiguration(0);\n DisplayMetrics metrics = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics);\n context.getResources().updateConfiguration(config, metrics);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e19) {\n e14 = e19;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n telephonyRegistry = null;\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72 = null;\n LocationManagerService location22 = null;\n CountryDetectorService countryDetector22 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2);\n context.getResources().updateConfiguration(config2, metrics2);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n try {\n ServiceManager.addService(\"vibrator\", (IBinder) vibratorService);\n traceEnd();\n if (hasSystemServerFeature(\"dynamicsystem\")) {\n try {\n traceBeginAndSlog(\"StartDynamicSystemService\");\n try {\n ServiceManager.addService(\"dynamic_system\", (IBinder) new DynamicSystemService(context));\n traceEnd();\n } catch (RuntimeException e20) {\n e14 = e20;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722 = null;\n LocationManagerService location222 = null;\n CountryDetectorService countryDetector222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22);\n context.getResources().updateConfiguration(config22, metrics22);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e21) {\n e14 = e21;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222 = null;\n LocationManagerService location2222 = null;\n CountryDetectorService countryDetector2222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222);\n context.getResources().updateConfiguration(config222, metrics222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n if (!isWatch && hasSystemServerFeature(\"consumerir\")) {\n traceBeginAndSlog(\"StartConsumerIrService\");\n ServiceManager.addService(\"consumer_ir\", (IBinder) new ConsumerIrService(context));\n traceEnd();\n }\n try {\n traceBeginAndSlog(\"StartAlarmManagerService\");\n alarmManager = HwServiceFactory.getHwAlarmManagerService(context);\n if (alarmManager == null) {\n try {\n alarmManager = new AlarmManagerService(context);\n } catch (RuntimeException e22) {\n e14 = e22;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222 = null;\n LocationManagerService location22222 = null;\n CountryDetectorService countryDetector22222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222);\n context.getResources().updateConfiguration(config2222, metrics2222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n } catch (RuntimeException e23) {\n e14 = e23;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222 = null;\n LocationManagerService location222222 = null;\n CountryDetectorService countryDetector222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222);\n context.getResources().updateConfiguration(config22222, metrics22222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n try {\n this.mSystemServiceManager.startService(alarmManager);\n traceEnd();\n this.mActivityManagerService.setAlarmManager(alarmManager);\n traceBeginAndSlog(\"StartInputManagerService\");\n InputManagerService inputManager4 = HwServiceFactory.getHwInputManagerService().getInstance(context, null);\n if (inputManager4 == null) {\n inputManager2 = new InputManagerService(context);\n } else {\n inputManager2 = inputManager4;\n }\n try {\n traceEnd();\n traceBeginAndSlog(\"StartHwSysResManagerService\");\n if (enableRms || enableIaware) {\n try {\n this.mSystemServiceManager.startService(\"com.android.server.rms.HwSysResManagerService\");\n } catch (Throwable e24) {\n Slog.e(TAG, e24.toString());\n }\n }\n traceEnd();\n traceBeginAndSlog(\"StartWindowManagerService\");\n ConcurrentUtils.waitForFutureNoInterrupt(this.mSensorServiceStart, START_SENSOR_SERVICE);\n this.mSensorServiceStart = null;\n try {\n Slog.i(TAG, \"initial SystemService \" + Class.forName(\"android.os.SystemService\"));\n } catch (ClassNotFoundException e25) {\n Slog.i(TAG, \"initial SystemService fail because : \" + e25.getMessage());\n } catch (RuntimeException e26) {\n e14 = e26;\n str2 = \"false\";\n inputManager3 = inputManager2;\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222 = null;\n LocationManagerService location2222222 = null;\n CountryDetectorService countryDetector2222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222);\n context.getResources().updateConfiguration(config222222, metrics222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n telephonyRegistry = telephonyRegistry2;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator = vibratorService;\n try {\n WindowManagerService wm4 = WindowManagerService.main(context, inputManager2, !this.mFirstBoot, this.mOnlyCore, HwPolicyFactory.getHwPhoneWindowManager(), this.mActivityManagerService.mActivityTaskManager);\n try {\n if (this.mHwRogEx != null) {\n try {\n this.mHwRogEx.initRogModeAndProcessMultiDpi(wm4, context);\n } catch (RuntimeException e27) {\n e14 = e27;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n inputManager3 = inputManager2;\n }\n }\n ServiceManager.addService(\"window\", wm4, false, 17);\n ?? r8 = inputManager2;\n try {\n ServiceManager.addService(\"input\", (IBinder) r8, false, 1);\n traceEnd();\n traceBeginAndSlog(\"SetWindowManagerService\");\n this.mActivityManagerService.setWindowManager(wm4);\n traceEnd();\n traceBeginAndSlog(\"WindowManagerServiceOnInitReady\");\n wm4.onInitReady();\n traceEnd();\n SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$JQH6ND0PqyyiRiz7lXLvUmRhwRM.INSTANCE, START_HIDL_SERVICES);\n if (!isWatch && enableVrService) {\n traceBeginAndSlog(\"StartVrManagerService\");\n this.mSystemServiceManager.startService(VrManagerService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartInputManager\");\n r8.setWindowManagerCallbacks(wm4.getInputManagerCallback());\n r8.start();\n traceEnd();\n traceBeginAndSlog(\"DisplayManagerWindowManagerAndInputReady\");\n this.mDisplayManagerService.windowManagerAndInputReady();\n traceEnd();\n if (this.mFactoryTestMode == 1) {\n Slog.i(TAG, \"No Bluetooth Service (factory test)\");\n } else if (!context.getPackageManager().hasSystemFeature(\"android.hardware.bluetooth\")) {\n Slog.i(TAG, \"No Bluetooth Service (Bluetooth Hardware Not Present)\");\n } else {\n traceBeginAndSlog(\"StartBluetoothService\");\n this.mSystemServiceManager.startService(BluetoothService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"IpConnectivityMetrics\");\n this.mSystemServiceManager.startService(IpConnectivityMetrics.class);\n traceEnd();\n traceBeginAndSlog(\"NetworkWatchlistService\");\n this.mSystemServiceManager.startService(NetworkWatchlistService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"pinner\")) {\n traceBeginAndSlog(\"PinnerService\");\n ((PinnerService) this.mSystemServiceManager.startService(PinnerService.class)).setInstaller(this.installer);\n traceEnd();\n }\n traceBeginAndSlog(\"ZRHungServiceBridge\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.zrhung.ZRHungServiceBridge\");\n } catch (Throwable th) {\n Slog.e(TAG, \"Fail to begin and Slog ZRHungServiceBridge\");\n }\n traceEnd();\n traceBeginAndSlog(\"SignedConfigService\");\n SignedConfigService.registerUpdateReceiver(this.mSystemContext);\n traceEnd();\n if (!SystemProperties.get(\"ro.config.hw_fold_disp\").isEmpty() || !SystemProperties.get(\"persist.sys.fold.disp.size\").isEmpty()) {\n traceBeginAndSlog(\"HwFoldScreenManagerService\");\n try {\n this.mSystemServiceManager.startService(\"com.huawei.server.fsm.HwFoldScreenManagerService\");\n } catch (Throwable th2) {\n Slog.e(TAG, \"Failed to start HwFoldScreenManagerService.\");\n }\n traceEnd();\n }\n if (isWatch) {\n traceBeginAndSlog(\"HwWatchConnectivityService\");\n try {\n this.mSystemServiceManager.startService(\"com.huawei.android.server.HwWatchConnectivityServiceBridge\");\n } catch (Throwable th3) {\n Slog.e(TAG, \"Failed to start HwWatchConnectivityService.\");\n }\n traceEnd();\n }\n wm = wm4;\n inputManager = r8;\n wm2 = alarmManager;\n } catch (RuntimeException e28) {\n e14 = e28;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n inputManager3 = r8;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222 = null;\n LocationManagerService location22222222 = null;\n CountryDetectorService countryDetector22222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222);\n context.getResources().updateConfiguration(config2222222, metrics2222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e29) {\n e14 = e29;\n inputManager3 = inputManager2;\n wm3 = wm4;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222222 = null;\n LocationManagerService location222222222 = null;\n CountryDetectorService countryDetector222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222);\n context.getResources().updateConfiguration(config22222222, metrics22222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e30) {\n e14 = e30;\n inputManager3 = inputManager2;\n vibrator2 = vibrator;\n alarmManager = alarmManager;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222222 = null;\n LocationManagerService location2222222222 = null;\n CountryDetectorService countryDetector2222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222);\n context.getResources().updateConfiguration(config222222222, metrics222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e31) {\n e14 = e31;\n str2 = \"false\";\n inputManager3 = inputManager2;\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222222 = null;\n LocationManagerService location22222222222 = null;\n CountryDetectorService countryDetector22222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222);\n context.getResources().updateConfiguration(config2222222222, metrics2222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e32) {\n e14 = e32;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder722222222222 = null;\n LocationManagerService location222222222222 = null;\n CountryDetectorService countryDetector222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222);\n context.getResources().updateConfiguration(config22222222222, metrics22222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e33) {\n e14 = e33;\n str2 = \"false\";\n telephonyRegistry = telephonyRegistry2;\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n vibrator2 = vibratorService;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder7222222222222 = null;\n LocationManagerService location2222222222222 = null;\n CountryDetectorService countryDetector2222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222);\n context.getResources().updateConfiguration(config222222222222, metrics222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (RuntimeException e34) {\n e14 = e34;\n str2 = \"false\";\n tuiEnable = tuiEnable2;\n obj = \"\";\n str = \"0\";\n telephonyRegistry = null;\n vibrator2 = null;\n Slog.e(\"System\", \"******************************************\");\n Slog.e(\"System\", \"************ Failure starting core service\", e14);\n vibrator = vibrator2;\n wm2 = alarmManager;\n wm = wm3;\n inputManager = inputManager3;\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n }\n IBinder iBinder72222222222222 = null;\n LocationManagerService location22222222222222 = null;\n CountryDetectorService countryDetector22222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n wm.displayReady();\n traceEnd();\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n this.mPackageManagerService.performFstrimIfNeeded();\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n }\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222);\n context.getResources().updateConfiguration(config2222222222222, metrics2222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n safeMode = wm.detectSafeMode();\n if (safeMode) {\n this.mActivityManagerService.enterSafeMode();\n Settings.Global.putInt(context.getContentResolver(), \"airplane_mode_on\", 1);\n }\n IBinder iBinder722222222222222 = null;\n LocationManagerService location222222222222222 = null;\n CountryDetectorService countryDetector222222222222222 = null;\n lockSettings = null;\n if (this.mFactoryTestMode != 1) {\n traceBeginAndSlog(\"StartInputMethodManagerLifecycle\");\n if (InputMethodSystemProperty.MULTI_CLIENT_IME_ENABLED) {\n this.mSystemServiceManager.startService(MultiClientInputMethodManagerService.Lifecycle.class);\n } else {\n this.mSystemServiceManager.startService(InputMethodManagerService.Lifecycle.class);\n }\n if (isChinaArea) {\n try {\n Slog.i(TAG, \"Secure Input Method Service\");\n this.mSystemServiceManager.startService(\"com.android.server.inputmethod.HwSecureInputMethodManagerService$MyLifecycle\");\n } catch (Throwable e35) {\n reportWtf(\"starting Secure Input Manager Service\", e35);\n }\n }\n traceEnd();\n if (hasSystemServerFeature(\"accessibility\")) {\n traceBeginAndSlog(\"StartAccessibilityManagerService\");\n try {\n this.mSystemServiceManager.startService(ACCESSIBILITY_MANAGER_SERVICE_CLASS);\n } catch (Throwable e36) {\n reportWtf(\"starting Accessibility Manager\", e36);\n }\n traceEnd();\n }\n }\n traceBeginAndSlog(\"MakeDisplayReady\");\n try {\n wm.displayReady();\n } catch (Throwable e37) {\n reportWtf(\"making display ready\", e37);\n }\n traceEnd();\n if (this.mFactoryTestMode != 1 && !str.equals(SystemProperties.get(\"system_init.startmountservice\"))) {\n traceBeginAndSlog(\"StartStorageManagerService\");\n this.mSystemServiceManager.startService(STORAGE_MANAGER_SERVICE_CLASS);\n IStorageManager.Stub.asInterface(ServiceManager.getService(\"mount\"));\n traceEnd();\n traceBeginAndSlog(\"StartStorageStatsService\");\n this.mSystemServiceManager.startService(STORAGE_STATS_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartUiModeManager\");\n this.mSystemServiceManager.startService(UiModeManagerService.class);\n traceEnd();\n HwBootCheck.bootSceneEnd(101);\n HwBootFail.setBootTimer(false);\n if (!this.mOnlyCore) {\n traceBeginAndSlog(\"UpdatePackagesIfNeeded\");\n if (HwTvUtils.isBootTimeOpt()) {\n Slog.i(TAG, \"boottimeopt ignore dexopt\");\n } else {\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"dexopt\");\n this.mPackageManagerService.updatePackagesIfNeeded();\n } catch (Throwable th4) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"dexopt\");\n throw th4;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"dexopt\");\n }\n traceEnd();\n }\n traceBeginAndSlog(\"PerformFstrimIfNeeded\");\n try {\n this.mPackageManagerService.performFstrimIfNeeded();\n } catch (Throwable e38) {\n reportWtf(\"performing fstrim\", e38);\n }\n traceEnd();\n HwBootCheck.bootSceneStart(102, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n if (this.mFactoryTestMode != 1) {\n traceBeginAndSlog(\"StartLockSettingsService\");\n try {\n this.mSystemServiceManager.startService(LOCK_SETTINGS_SERVICE_CLASS);\n lockSettings = ILockSettings.Stub.asInterface(ServiceManager.getService(\"lock_settings\"));\n } catch (Throwable e39) {\n reportWtf(\"starting LockSettingsService service\", e39);\n }\n traceEnd();\n boolean hasPdb = !SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals(obj);\n boolean hasGsi = SystemProperties.getInt(GSI_RUNNING_PROP, 0) > 0;\n if (!hasPdb || hasGsi) {\n ipSecService2 = null;\n } else {\n traceBeginAndSlog(\"StartPersistentDataBlock\");\n ipSecService2 = null;\n this.mSystemServiceManager.startService(PersistentDataBlockService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"testharness\")) {\n traceBeginAndSlog(\"StartTestHarnessMode\");\n this.mSystemServiceManager.startService(TestHarnessModeService.class);\n traceEnd();\n }\n if (hasPdb || OemLockService.isHalPresent()) {\n traceBeginAndSlog(\"StartOemLockService\");\n this.mSystemServiceManager.startService(OemLockService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartDeviceIdleController\");\n this.mSystemServiceManager.startService(DeviceIdleController.class);\n traceEnd();\n traceBeginAndSlog(\"StartDevicePolicyManager\");\n this.mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class);\n traceEnd();\n if (!isWatch && hasSystemServerFeature(\"statusbar\")) {\n traceBeginAndSlog(\"StartStatusBarManagerService\");\n try {\n iBinder722222222222222 = HwServiceFactory.createHwStatusBarManagerService(context, wm);\n ServiceManager.addService(\"statusbar\", iBinder722222222222222);\n } catch (Throwable e40) {\n reportWtf(\"starting StatusBarManagerService\", e40);\n }\n traceEnd();\n }\n startContentCaptureService(context);\n startAttentionService(context);\n startSystemCaptionsManagerService(context);\n if (hasSystemServerFeature(\"appprediction\")) {\n traceBeginAndSlog(\"StartAppPredictionService\");\n this.mSystemServiceManager.startService(APP_PREDICTION_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartContentSuggestionsService\");\n this.mSystemServiceManager.startService(CONTENT_SUGGESTIONS_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"InitNetworkStackClient\");\n try {\n NetworkStackClient.getInstance().init();\n } catch (Throwable e41) {\n reportWtf(\"initializing NetworkStackClient\", e41);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNetworkManagementService\");\n try {\n iNetworkManagementService2 = NetworkManagementService.create(context);\n try {\n ServiceManager.addService(\"network_management\", iNetworkManagementService2);\n } catch (Throwable th5) {\n e13 = th5;\n }\n } catch (Throwable th6) {\n e13 = th6;\n iNetworkManagementService2 = null;\n reportWtf(\"starting NetworkManagement Service\", e13);\n iNetworkManagementService2 = iNetworkManagementService2;\n traceEnd();\n traceBeginAndSlog(\"StartIpSecService\");\n create = IpSecService.create(context);\n try {\n ServiceManager.addService(INetd.IPSEC_INTERFACE_PREFIX, (IBinder) create);\n ipSecService3 = create;\n } catch (Throwable th7) {\n e12 = th7;\n ipSecService5 = create;\n }\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n }\n if (!disableSystemTextClassifier) {\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n try {\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n } catch (Throwable th8) {\n e11 = th8;\n }\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n try {\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n } catch (Throwable th9) {\n e10 = th9;\n }\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n try {\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n } catch (Throwable th10) {\n e9 = th10;\n reportWtf(\"starting Service Discovery Service\", e9);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n try {\n ServiceManager.addService(\"serial\", iBinder4);\n } catch (Throwable th11) {\n e4 = th11;\n }\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager = this.mSystemServiceManager;\n Context context2 = this.mSystemContext;\n systemServiceManager.startService(new RoleManagerService(context2, new LegacyRoleResolutionPolicy(context2)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222);\n context.getResources().updateConfiguration(config22222222222222, metrics22222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification22 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n try {\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n } catch (Throwable th12) {\n e4 = th12;\n iBinder4 = null;\n Slog.e(TAG, \"Failure starting SerialService\", e4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2 = this.mSystemServiceManager;\n Context context22 = this.mSystemContext;\n systemServiceManager2.startService(new RoleManagerService(context22, new LegacyRoleResolutionPolicy(context22)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222);\n context.getResources().updateConfiguration(config222222222222222, metrics222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n try {\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n } catch (Throwable th13) {\n e3 = th13;\n Slog.e(TAG, \"Failure starting HardwarePropertiesManagerService\", e3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22 = this.mSystemServiceManager;\n Context context222 = this.mSystemContext;\n systemServiceManager22.startService(new RoleManagerService(context222, new LegacyRoleResolutionPolicy(context222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222);\n context.getResources().updateConfiguration(config2222222222222222, metrics2222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222 = this.mSystemServiceManager;\n Context context2222 = this.mSystemContext;\n systemServiceManager222.startService(new RoleManagerService(context2222, new LegacyRoleResolutionPolicy(context2222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n try {\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n } catch (Throwable th14) {\n e = th14;\n mediaRouter4 = mediaRouterService;\n }\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222);\n context.getResources().updateConfiguration(config22222222222222222, metrics22222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartIpSecService\");\n try {\n create = IpSecService.create(context);\n ServiceManager.addService(INetd.IPSEC_INTERFACE_PREFIX, (IBinder) create);\n ipSecService3 = create;\n } catch (Throwable th15) {\n e12 = th15;\n ipSecService5 = ipSecService2;\n reportWtf(\"starting IpSec Service\", e12);\n ipSecService3 = ipSecService5;\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n }\n if (!disableSystemTextClassifier) {\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222 = this.mSystemServiceManager;\n Context context22222 = this.mSystemContext;\n systemServiceManager2222.startService(new RoleManagerService(context22222, new LegacyRoleResolutionPolicy(context22222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222, metrics222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n if (hasSystemServerFeature(\"text\")) {\n traceBeginAndSlog(\"StartTextServicesManager\");\n ipSecService4 = ipSecService3;\n this.mSystemServiceManager.startService(TextServicesManagerService.Lifecycle.class);\n traceEnd();\n } else {\n ipSecService4 = ipSecService3;\n }\n if (!disableSystemTextClassifier) {\n traceBeginAndSlog(\"StartTextClassificationManagerService\");\n this.mSystemServiceManager.startService(TextClassificationManagerService.Lifecycle.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartNetworkScoreService\");\n this.mSystemServiceManager.startService(NetworkScoreService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartNetworkStatsService\");\n try {\n iNetworkStatsService3 = NetworkStatsService.create(context, iNetworkManagementService2);\n ServiceManager.addService(\"netstats\", iNetworkStatsService3);\n } catch (Throwable e42) {\n reportWtf(\"starting NetworkStats Service\", e42);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNetworkPolicyManagerService\");\n try {\n iNetworkPolicyManager2 = HwServiceFactory.getHwNetworkPolicyManagerService().getInstance(context, this.mActivityManagerService, iNetworkManagementService2);\n ServiceManager.addService(\"netpolicy\", iNetworkPolicyManager2);\n } catch (Throwable th16) {\n e11 = th16;\n iNetworkPolicyManager2 = null;\n reportWtf(\"starting NetworkPolicy Service\", e11);\n iNetworkPolicyManager2 = iNetworkPolicyManager2;\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\")) {\n }\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartConnectivityService\");\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222 = this.mSystemServiceManager;\n Context context222222 = this.mSystemContext;\n systemServiceManager22222.startService(new RoleManagerService(context222222, new LegacyRoleResolutionPolicy(context222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222, metrics2222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi\")) {\n traceBeginAndSlog(\"StartWifi\");\n this.mSystemServiceManager.startService(WIFI_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartWifiScanning\");\n this.mSystemServiceManager.startService(\"com.android.server.wifi.scanner.WifiScanningService\");\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.rtt\")) {\n traceBeginAndSlog(\"StartRttService\");\n this.mSystemServiceManager.startService(\"com.android.server.wifi.rtt.RttService\");\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.aware\")) {\n traceBeginAndSlog(\"StartWifiAware\");\n this.mSystemServiceManager.startService(WIFI_AWARE_SERVICE_CLASS);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.wifi.direct\")) {\n traceBeginAndSlog(\"StartWifiP2P\");\n this.mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.lowpan\")) {\n traceBeginAndSlog(\"StartLowpan\");\n this.mSystemServiceManager.startService(LOWPAN_SERVICE_CLASS);\n traceEnd();\n }\n if (!this.mPackageManager.hasSystemFeature(\"android.hardware.ethernet\") || this.mPackageManager.hasSystemFeature(\"android.hardware.usb.host\")) {\n traceBeginAndSlog(\"StartEthernet\");\n this.mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartConnectivityService\");\n try {\n iConnectivityManager2 = HwServiceFactory.getHwConnectivityManager().createHwConnectivityService(context, iNetworkManagementService2, iNetworkStatsService3, iNetworkPolicyManager2);\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n ServiceManager.addService(\"connectivity\", iConnectivityManager2, false, 6);\n iNetworkPolicyManager2.bindConnectivityManager(iConnectivityManager2);\n } catch (Throwable th17) {\n e10 = th17;\n iNetworkManagementService = iNetworkManagementService2;\n iNetworkStatsService2 = iNetworkStatsService3;\n iConnectivityManager2 = null;\n reportWtf(\"starting Connectivity Service\", e10);\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification22222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222 = this.mSystemServiceManager;\n Context context2222222 = this.mSystemContext;\n systemServiceManager222222.startService(new RoleManagerService(context2222222, new LegacyRoleResolutionPolicy(context2222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222, metrics22222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNsdService\");\n try {\n iBinder5 = NsdService.create(context);\n ServiceManager.addService(\"servicediscovery\", iBinder5);\n iBinder = iBinder5;\n } catch (Throwable th18) {\n e9 = th18;\n iBinder5 = null;\n reportWtf(\"starting Service Discovery Service\", e9);\n iBinder = iBinder5;\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification222222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n }\n if (hasSystemServerFeature(\"location\")) {\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222 = this.mSystemServiceManager;\n Context context22222222 = this.mSystemContext;\n systemServiceManager2222222.startService(new RoleManagerService(context22222222, new LegacyRoleResolutionPolicy(context22222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222, metrics222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSystemUpdateManagerService\");\n try {\n ServiceManager.addService(\"system_update\", (IBinder) new SystemUpdateManagerService(context));\n } catch (Throwable e43) {\n reportWtf(\"starting SystemUpdateManagerService\", e43);\n }\n traceEnd();\n traceBeginAndSlog(\"StartUpdateLockService\");\n try {\n ServiceManager.addService(\"updatelock\", (IBinder) new UpdateLockService(context));\n } catch (Throwable e44) {\n reportWtf(\"starting UpdateLockService\", e44);\n }\n traceEnd();\n traceBeginAndSlog(\"StartNotificationManager\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.notification.HwNotificationManagerService\");\n } catch (RuntimeException e45) {\n this.mSystemServiceManager.startService(NotificationManagerService.class);\n }\n SystemNotificationChannels.removeDeprecated(context);\n SystemNotificationChannels.createAll(context);\n INotificationManager notification2222222 = INotificationManager.Stub.asInterface(ServiceManager.getService(\"notification\"));\n traceEnd();\n traceBeginAndSlog(\"StartDeviceMonitor\");\n this.mSystemServiceManager.startService(DeviceStorageMonitorService.class);\n traceEnd();\n Slog.i(TAG, \"TUI Connect enable \" + tuiEnable);\n if (tuiEnable) {\n notification = notification2222222;\n try {\n ServiceManager.addService(\"tui\", (IBinder) new TrustedUIService(context));\n } catch (Throwable e46) {\n Slog.e(TAG, \"Failure starting TUI Service \", e46);\n }\n } else {\n notification = notification2222222;\n }\n if (hasSystemServerFeature(\"location\")) {\n traceBeginAndSlog(\"StartLocationManagerService\");\n try {\n HwServiceFactory.IHwLocationManagerService hwLocation = HwServiceFactory.getHwLocationManagerService();\n if (hwLocation != null) {\n r2 = hwLocation.getInstance(context);\n } else {\n r2 = new LocationManagerService(context);\n }\n try {\n ServiceManager.addService(\"location\", (IBinder) r2);\n location222222222222222 = r2;\n } catch (Throwable th19) {\n e8 = th19;\n location222222222222222 = r2;\n reportWtf(\"starting Location Manager\", e8);\n traceEnd();\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222 = this.mSystemServiceManager;\n Context context222222222 = this.mSystemContext;\n systemServiceManager22222222.startService(new RoleManagerService(context222222222, new LegacyRoleResolutionPolicy(context222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222, metrics2222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th20) {\n e8 = th20;\n reportWtf(\"starting Location Manager\", e8);\n traceEnd();\n if (hasSystemServerFeature(\"countrydetector\")) {\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222 = this.mSystemServiceManager;\n Context context2222222222 = this.mSystemContext;\n systemServiceManager222222222.startService(new RoleManagerService(context2222222222, new LegacyRoleResolutionPolicy(context2222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222, metrics22222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (hasSystemServerFeature(\"countrydetector\")) {\n traceBeginAndSlog(\"StartCountryDetectorService\");\n try {\n ?? countryDetectorService = new CountryDetectorService(context);\n try {\n ServiceManager.addService(\"country_detector\", (IBinder) countryDetectorService);\n countryDetector222222222222222 = countryDetectorService;\n } catch (Throwable th21) {\n e7 = th21;\n countryDetector222222222222222 = countryDetectorService;\n reportWtf(\"starting Country Detector\", e7);\n traceEnd();\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222 = this.mSystemServiceManager;\n Context context22222222222 = this.mSystemContext;\n systemServiceManager2222222222.startService(new RoleManagerService(context22222222222, new LegacyRoleResolutionPolicy(context22222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222, metrics222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th22) {\n e7 = th22;\n reportWtf(\"starting Country Detector\", e7);\n traceEnd();\n if (hasSystemServerFeature(\"timedetector\")) {\n }\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222222 = this.mSystemServiceManager;\n Context context222222222222 = this.mSystemContext;\n systemServiceManager22222222222.startService(new RoleManagerService(context222222222222, new LegacyRoleResolutionPolicy(context222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222, metrics2222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (hasSystemServerFeature(\"timedetector\")) {\n traceBeginAndSlog(\"StartTimeDetectorService\");\n try {\n try {\n this.mSystemServiceManager.startService(TIME_DETECTOR_SERVICE_CLASS);\n } catch (Throwable th23) {\n e6 = th23;\n }\n } catch (Throwable th24) {\n e6 = th24;\n reportWtf(\"starting StartTimeDetectorService service\", e6);\n traceEnd();\n if (!isWatch) {\n }\n if (context.getResources().getBoolean(17891453)) {\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222222 = this.mSystemServiceManager;\n Context context2222222222222 = this.mSystemContext;\n systemServiceManager222222222222.startService(new RoleManagerService(context2222222222222, new LegacyRoleResolutionPolicy(context2222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222, metrics22222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartSearchManagerService\");\n try {\n this.mSystemServiceManager.startService(SEARCH_MANAGER_SERVICE_CLASS);\n } catch (Throwable e47) {\n reportWtf(\"starting Search Service\", e47);\n }\n traceEnd();\n }\n if (context.getResources().getBoolean(17891453)) {\n traceBeginAndSlog(\"StartWallpaperManagerService\");\n this.mSystemServiceManager.startService(WALLPAPER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartAudioService\");\n if (isArc) {\n this.mSystemServiceManager.startService(AudioService.Lifecycle.class);\n iNetworkPolicyManager = iNetworkPolicyManager2;\n iConnectivityManager = iConnectivityManager2;\n } else {\n String className = context.getResources().getString(17039829);\n try {\n SystemServiceManager systemServiceManager3 = this.mSystemServiceManager;\n iNetworkPolicyManager = iNetworkPolicyManager2;\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(className);\n iConnectivityManager = iConnectivityManager2;\n try {\n sb.append(\"$Lifecycle\");\n systemServiceManager3.startService(sb.toString());\n } catch (Throwable th25) {\n e5 = th25;\n }\n } catch (Throwable th26) {\n e5 = th26;\n iConnectivityManager = iConnectivityManager2;\n reportWtf(\"starting \" + className, e5);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222222 = this.mSystemServiceManager;\n Context context22222222222222 = this.mSystemContext;\n systemServiceManager2222222222222.startService(new RoleManagerService(context22222222222222, new LegacyRoleResolutionPolicy(context22222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222, metrics222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th27) {\n e5 = th27;\n iNetworkPolicyManager = iNetworkPolicyManager2;\n iConnectivityManager = iConnectivityManager2;\n reportWtf(\"starting \" + className, e5);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n }\n traceBeginAndSlog(\"StartAdbService\");\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager22222222222222 = this.mSystemServiceManager;\n Context context222222222222222 = this.mSystemContext;\n systemServiceManager22222222222222.startService(new RoleManagerService(context222222222222222, new LegacyRoleResolutionPolicy(context222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222222, metrics2222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.broadcastradio\")) {\n traceBeginAndSlog(\"StartBroadcastRadioService\");\n this.mSystemServiceManager.startService(BroadcastRadioService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"dockobserver\")) {\n traceBeginAndSlog(\"StartDockObserver\");\n this.mSystemServiceManager.startService(DockObserver.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartWiredAccessoryManager\");\n try {\n inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context, inputManager));\n } catch (Throwable e48) {\n reportWtf(\"starting WiredAccessoryManager\", e48);\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.midi\")) {\n traceBeginAndSlog(\"StartMidiManager\");\n this.mSystemServiceManager.startService(MIDI_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartAdbService\");\n try {\n this.mSystemServiceManager.startService(ADB_SERVICE_CLASS);\n } catch (Throwable th28) {\n Slog.e(TAG, \"Failure starting AdbService\");\n }\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.usb.host\") || this.mPackageManager.hasSystemFeature(\"android.hardware.usb.accessory\") || isEmulator) {\n traceBeginAndSlog(\"StartUsbService\");\n this.mSystemServiceManager.startService(USB_SERVICE_CLASS);\n traceEnd();\n }\n if (!isWatch && hasSystemServerFeature(\"serial\")) {\n traceBeginAndSlog(\"StartSerialService\");\n iBinder4 = new SerialService(context);\n ServiceManager.addService(\"serial\", iBinder4);\n traceEnd();\n iBinder6 = iBinder4;\n }\n traceBeginAndSlog(\"StartHardwarePropertiesManagerService\");\n try {\n iBinder3 = new HardwarePropertiesManagerService(context);\n ServiceManager.addService(\"hardware_properties\", iBinder3);\n iBinder2 = iBinder3;\n } catch (Throwable th29) {\n e3 = th29;\n iBinder3 = null;\n Slog.e(TAG, \"Failure starting HardwarePropertiesManagerService\", e3);\n iBinder2 = iBinder3;\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n }\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager222222222222222 = this.mSystemServiceManager;\n Context context2222222222222222 = this.mSystemContext;\n systemServiceManager222222222222222.startService(new RoleManagerService(context2222222222222222, new LegacyRoleResolutionPolicy(context2222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n }\n if (!disableNetworkTime) {\n }\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222222, metrics22222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n traceBeginAndSlog(\"StartTwilightService\");\n this.mSystemServiceManager.startService(TwilightService.class);\n traceEnd();\n traceBeginAndSlog(\"StartColorDisplay\");\n this.mSystemServiceManager.startService(ColorDisplayService.class);\n traceEnd();\n traceBeginAndSlog(\"StartJobScheduler\");\n this.mSystemServiceManager.startService(JobSchedulerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartSoundTrigger\");\n this.mSystemServiceManager.startService(SoundTriggerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartTrustManager\");\n this.mSystemServiceManager.startService(TrustManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.backup\")) {\n traceBeginAndSlog(\"StartBackupManager\");\n this.mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.app_widgets\") || context.getResources().getBoolean(17891433)) {\n traceBeginAndSlog(\"StartAppWidgetService\");\n this.mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartRoleManagerService\");\n SystemServiceManager systemServiceManager2222222222222222 = this.mSystemServiceManager;\n Context context22222222222222222 = this.mSystemContext;\n systemServiceManager2222222222222222.startService(new RoleManagerService(context22222222222222222, new LegacyRoleResolutionPolicy(context22222222222222222)));\n traceEnd();\n traceBeginAndSlog(\"StartVoiceRecognitionManager\");\n this.mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);\n traceEnd();\n if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {\n traceBeginAndSlog(\"StartGestureLauncher\");\n this.mSystemServiceManager.startService(GestureLauncherService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartSensorNotification\");\n this.mSystemServiceManager.startService(SensorNotificationService.class);\n traceEnd();\n traceBeginAndSlog(\"StartContextHubSystemService\");\n this.mSystemServiceManager.startService(ContextHubSystemService.class);\n traceEnd();\n traceBeginAndSlog(\"setupHwServices\");\n HwServiceFactory.setupHwServices(context);\n traceEnd();\n traceBeginAndSlog(\"StartDiskStatsService\");\n try {\n ServiceManager.addService(\"diskstats\", new DiskStatsService(context));\n } catch (Throwable e49) {\n reportWtf(\"starting DiskStats Service\", e49);\n }\n traceEnd();\n traceBeginAndSlog(\"RuntimeService\");\n try {\n ServiceManager.addService(\"runtime\", new RuntimeService(context));\n } catch (Throwable e50) {\n reportWtf(\"starting RuntimeService\", e50);\n }\n traceEnd();\n if (this.mOnlyCore && context.getResources().getBoolean(17891452)) {\n traceBeginAndSlog(\"StartTimeZoneRulesManagerService\");\n this.mSystemServiceManager.startService(TIME_ZONE_RULES_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (!disableNetworkTime) {\n traceBeginAndSlog(\"StartNetworkTimeUpdateService\");\n try {\n networkTimeUpdater2 = new NewNetworkTimeUpdateService(context);\n try {\n Slog.d(TAG, \"Using networkTimeUpdater class=\" + networkTimeUpdater2.getClass());\n ServiceManager.addService(\"network_time_update_service\", networkTimeUpdater2);\n networkTimeUpdater3 = networkTimeUpdater2;\n } catch (Throwable th30) {\n e2 = th30;\n reportWtf(\"starting NetworkTimeUpdate service\", e2);\n networkTimeUpdater3 = networkTimeUpdater2;\n traceEnd();\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222222, metrics222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n } catch (Throwable th31) {\n e2 = th31;\n networkTimeUpdater2 = null;\n reportWtf(\"starting NetworkTimeUpdate service\", e2);\n networkTimeUpdater3 = networkTimeUpdater2;\n traceEnd();\n traceBeginAndSlog(\"CertBlacklister\");\n new CertBlacklister(context);\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n }\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config2222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics2222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics2222222222222222222222222222222);\n context.getResources().updateConfiguration(config2222222222222222222222222222222, metrics2222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes2222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n }\n traceBeginAndSlog(\"CertBlacklister\");\n try {\n new CertBlacklister(context);\n } catch (Throwable e51) {\n reportWtf(\"starting CertBlacklister\", e51);\n }\n traceEnd();\n if (hasSystemServerFeature(\"emergencyaffordance\")) {\n traceBeginAndSlog(\"StartEmergencyAffordanceService\");\n this.mSystemServiceManager.startService(EmergencyAffordanceService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartDreamManager\");\n this.mSystemServiceManager.startService(DreamManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"AddGraphicsStatsService\");\n ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, (IBinder) new GraphicsStatsService(context));\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.software.print\")) {\n traceBeginAndSlog(\"StartPrintManager\");\n this.mSystemServiceManager.startService(PRINT_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.companion_device_setup\")) {\n traceBeginAndSlog(\"StartCompanionDeviceManager\");\n this.mSystemServiceManager.startService(COMPANION_DEVICE_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n traceBeginAndSlog(\"StartRestrictionManager\");\n this.mSystemServiceManager.startService(RestrictionsManagerService.class);\n traceEnd();\n traceBeginAndSlog(\"StartMediaSessionService\");\n this.mSystemServiceManager.startService(MediaSessionService.class);\n traceEnd();\n if (this.mPackageManager.hasSystemFeature(\"android.hardware.hdmi.cec\")) {\n traceBeginAndSlog(\"StartHdmiControlService\");\n this.mSystemServiceManager.startService(HdmiControlService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.live_tv\") || this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n traceBeginAndSlog(\"StartTvInputManager\");\n this.mSystemServiceManager.startService(TvInputManagerService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.picture_in_picture\")) {\n traceBeginAndSlog(\"StartMediaResourceMonitor\");\n this.mSystemServiceManager.startService(MediaResourceMonitorService.class);\n traceEnd();\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.leanback\")) {\n traceBeginAndSlog(\"StartTvRemoteService\");\n this.mSystemServiceManager.startService(TvRemoteService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartMediaRouterService\");\n try {\n mediaRouterService = new MediaRouterService(context);\n ServiceManager.addService(\"media_router\", (IBinder) mediaRouterService);\n mediaRouter2 = mediaRouterService;\n } catch (Throwable th32) {\n e = th32;\n mediaRouter4 = null;\n reportWtf(\"starting MediaRouterService\", e);\n mediaRouter2 = mediaRouter4;\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n }\n if (hasFeatureIris) {\n }\n if (hasFeatureFingerprint) {\n }\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n BackgroundDexOptService.schedule(context);\n traceEnd();\n if (!isWatch) {\n }\n if (!isWatch) {\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n if (!isWatch) {\n }\n if (!disableSlices) {\n }\n if (!disableCameraService) {\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n }\n if (hasSystemServerFeature(\"helper\")) {\n }\n if (hasSystemServerFeature(\"mms\")) {\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n vibrator.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n wm.systemReady();\n traceEnd();\n if (safeMode) {\n }\n Configuration config22222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics22222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics22222222222222222222222222222222);\n context.getResources().updateConfiguration(config22222222222222222222222222222222, metrics22222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes22222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n while (r13 < r7) {\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }\n traceEnd();\n hasFeatureFace = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.face\");\n hasFeatureIris = this.mPackageManager.hasSystemFeature(\"android.hardware.biometrics.iris\");\n hasFeatureFingerprint = this.mPackageManager.hasSystemFeature(\"android.hardware.fingerprint\");\n if (!hasFeatureFace) {\n traceBeginAndSlog(\"StartFaceSensor\");\n mediaRouter3 = mediaRouter2;\n this.mSystemServiceManager.startService(FaceService.class);\n traceEnd();\n } else {\n mediaRouter3 = mediaRouter2;\n }\n if (hasFeatureIris) {\n traceBeginAndSlog(\"StartIrisSensor\");\n this.mSystemServiceManager.startService(IrisService.class);\n traceEnd();\n }\n if (hasFeatureFingerprint) {\n traceBeginAndSlog(\"StartFingerprintSensor\");\n try {\n HwServiceFactory.IHwFingerprintService ifs = HwServiceFactory.getHwFingerprintService();\n if (ifs != null) {\n Class<SystemService> serviceClass2 = ifs.createServiceClass();\n Slog.i(TAG, \"serviceClass doesn't null\");\n serviceClass = serviceClass2;\n } else {\n Slog.e(TAG, \"HwFingerPrintService is null!\");\n serviceClass = null;\n }\n if (serviceClass != null) {\n Slog.i(TAG, \"start HwFingerPrintService\");\n this.mSystemServiceManager.startService(serviceClass);\n } else {\n this.mSystemServiceManager.startService(FingerprintService.class);\n }\n Slog.i(TAG, \"FingerPrintService ready\");\n } catch (Throwable e52) {\n Slog.e(TAG, \"Start fingerprintservice error\", e52);\n }\n traceEnd();\n }\n if (hasFeatureFace || hasFeatureIris || hasFeatureFingerprint) {\n traceBeginAndSlog(\"StartBiometricService\");\n this.mSystemServiceManager.startService(BiometricService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartBackgroundDexOptService\");\n try {\n BackgroundDexOptService.schedule(context);\n } catch (Throwable e53) {\n reportWtf(\"starting StartBackgroundDexOptService\", e53);\n }\n traceEnd();\n if (!isWatch) {\n traceBeginAndSlog(\"StartDynamicCodeLoggingService\");\n try {\n DynamicCodeLoggingService.schedule(context);\n } catch (Throwable e54) {\n reportWtf(\"starting DynamicCodeLoggingService\", e54);\n }\n traceEnd();\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartPruneInstantAppsJobService\");\n try {\n PruneInstantAppsJobService.schedule(context);\n } catch (Throwable e55) {\n reportWtf(\"StartPruneInstantAppsJobService\", e55);\n }\n traceEnd();\n }\n traceBeginAndSlog(\"StartShortcutServiceLifecycle\");\n this.mSystemServiceManager.startService(ShortcutService.Lifecycle.class);\n traceEnd();\n if (hasSystemServerFeature(\"launcherapps\")) {\n traceBeginAndSlog(\"StartLauncherAppsService\");\n this.mSystemServiceManager.startService(LauncherAppsService.class);\n traceEnd();\n }\n if (hasSystemServerFeature(\"crossprofileapps\")) {\n traceBeginAndSlog(\"StartCrossProfileAppsService\");\n this.mSystemServiceManager.startService(CrossProfileAppsService.class);\n traceEnd();\n }\n traceBeginAndSlog(\"StartJankShieldService\");\n HwServiceFactory.addJankShieldService(context);\n traceEnd();\n location = location222222222222222;\n iNetworkStatsService = iNetworkStatsService2;\n ipSecService = ipSecService4;\n mediaRouter = mediaRouter3;\n countryDetector = countryDetector222222222222222;\n networkTimeUpdater = networkTimeUpdater3;\n } else {\n ipSecService = null;\n iNetworkPolicyManager = null;\n iConnectivityManager = null;\n location = null;\n iNetworkManagementService = null;\n iNetworkStatsService = null;\n mediaRouter = null;\n countryDetector = null;\n networkTimeUpdater = null;\n }\n if (!isWatch) {\n traceBeginAndSlog(\"StartMediaProjectionManager\");\n this.mSystemServiceManager.startService(MediaProjectionManagerService.class);\n traceEnd();\n }\n if (!disableSlices) {\n traceBeginAndSlog(\"StartSliceManagerService\");\n this.mSystemServiceManager.startService(SLICE_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (!disableCameraService) {\n traceBeginAndSlog(\"StartCameraServiceProxy\");\n this.mSystemServiceManager.startService(CameraServiceProxy.class);\n traceEnd();\n }\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.type.embedded\")) {\n traceBeginAndSlog(\"StartIoTSystemService\");\n this.mSystemServiceManager.startService(IOT_SERVICE_CLASS);\n traceEnd();\n }\n if (hasSystemServerFeature(\"helper\")) {\n traceBeginAndSlog(\"StartStatsCompanionService\");\n this.mSystemServiceManager.startService(StatsCompanionService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartIncidentCompanionService\");\n this.mSystemServiceManager.startService(IncidentCompanionService.class);\n traceEnd();\n if (safeMode) {\n this.mActivityManagerService.enterSafeMode();\n }\n }\n if (hasSystemServerFeature(\"mms\")) {\n traceBeginAndSlog(\"StartMmsService\");\n traceEnd();\n mmsService = (MmsServiceBroker) this.mSystemServiceManager.startService(MmsServiceBroker.class);\n }\n if (this.mPackageManager.hasSystemFeature(\"android.software.autofill\")) {\n traceBeginAndSlog(\"StartAutoFillService\");\n this.mSystemServiceManager.startService(AUTO_FILL_MANAGER_SERVICE_CLASS);\n traceEnd();\n }\n if (\"true\".equals(SystemProperties.get(\"bastet.service.enable\", str2))) {\n try {\n traceBeginAndSlog(\"StartBastetService\");\n this.mSystemServiceManager.startService(\"com.android.server.HwBastetService\");\n traceEnd();\n } catch (Throwable th33) {\n Slog.w(TAG, \"HwBastetService not exists.\");\n }\n }\n traceBeginAndSlog(\"StartClipboardService\");\n this.mSystemServiceManager.startService(ClipboardService.class);\n traceEnd();\n if (isStartSysSvcCallRecord) {\n traceBeginAndSlog(\"startSysSvcCallRecordService\");\n startSysSvcCallRecordService();\n traceEnd();\n }\n traceBeginAndSlog(\"AppServiceManager\");\n this.mSystemServiceManager.startService(AppBindingService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"MakeVibratorServiceReady\");\n try {\n vibrator.systemReady();\n } catch (Throwable e56) {\n reportWtf(\"making Vibrator Service ready\", e56);\n }\n traceEnd();\n traceBeginAndSlog(\"MakeLockSettingsServiceReady\");\n if (lockSettings != null) {\n try {\n lockSettings.systemReady();\n } catch (Throwable e57) {\n reportWtf(\"making Lock Settings Service ready\", e57);\n }\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseLockSettingsReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseSystemServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);\n traceEnd();\n traceBeginAndSlog(\"MakeWindowManagerServiceReady\");\n try {\n wm.systemReady();\n } catch (Throwable e58) {\n reportWtf(\"making Window Manager Service ready\", e58);\n }\n traceEnd();\n if (safeMode) {\n this.mActivityManagerService.showSafeModeOverlay();\n }\n Configuration config222222222222222222222222222222222 = wm.computeNewConfiguration(0);\n DisplayMetrics metrics222222222222222222222222222222222 = new DisplayMetrics();\n ((WindowManager) context.getSystemService(\"window\")).getDefaultDisplay().getMetrics(metrics222222222222222222222222222222222);\n context.getResources().updateConfiguration(config222222222222222222222222222222222, metrics222222222222222222222222222222222);\n systemTheme = context.getTheme();\n if (systemTheme.getChangingConfigurations() != 0) {\n systemTheme.rebase();\n }\n traceBeginAndSlog(\"MakePowerManagerServiceReady\");\n try {\n this.mPowerManagerService.systemReady(this.mActivityManagerService.getAppOpsService());\n } catch (Throwable e59) {\n reportWtf(\"making Power Manager Service ready\", e59);\n }\n traceEnd();\n traceBeginAndSlog(\"MakePGManagerServiceReady\");\n try {\n this.mPGManagerService.systemReady(this.mActivityManagerService, this.mPowerManagerService, location, wm2);\n } catch (Throwable e60) {\n reportWtf(\"making PG Manager Service ready\", e60);\n }\n traceEnd();\n traceBeginAndSlog(\"StartPermissionPolicyService\");\n this.mSystemServiceManager.startService(PermissionPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"MakePackageManagerServiceReady\");\n this.mPackageManagerService.systemReady();\n traceEnd();\n traceBeginAndSlog(\"MakeDisplayManagerServiceReady\");\n try {\n this.mDisplayManagerService.systemReady(safeMode, this.mOnlyCore);\n } catch (Throwable e61) {\n reportWtf(\"making Display Manager Service ready\", e61);\n }\n traceEnd();\n this.mSystemServiceManager.setSafeMode(safeMode);\n traceBeginAndSlog(\"StartDeviceSpecificServices\");\n String[] classes222222222222222222222222222222222 = this.mSystemContext.getResources().getStringArray(17236007);\n for (String className2 : classes222222222222222222222222222222222) {\n traceBeginAndSlog(\"StartDeviceSpecificServices \" + className2);\n try {\n this.mSystemServiceManager.startService(className2);\n } catch (Throwable e62) {\n reportWtf(\"starting \" + className2, e62);\n }\n traceEnd();\n }\n traceEnd();\n traceBeginAndSlog(\"StartBootPhaseDeviceSpecificServicesReady\");\n this.mSystemServiceManager.startBootPhase(SystemService.PHASE_DEVICE_SPECIFIC_SERVICES_READY);\n traceEnd();\n this.mActivityManagerService.systemReady(new Runnable(context, wm, safeMode, iConnectivityManager, iNetworkManagementService, iNetworkPolicyManager, ipSecService, iNetworkStatsService, location, countryDetector, networkTimeUpdater, inputManager, telephonyRegistry, mediaRouter, mmsService, enableIaware) {\n /* class com.android.server.$$Lambda$SystemServer$izZXvNBS1sgFBFNX1EVoO0g0o1M */\n private final /* synthetic */ Context f$1;\n private final /* synthetic */ CountryDetectorService f$10;\n private final /* synthetic */ NetworkTimeUpdateService f$11;\n private final /* synthetic */ InputManagerService f$12;\n private final /* synthetic */ TelephonyRegistry f$13;\n private final /* synthetic */ MediaRouterService f$14;\n private final /* synthetic */ MmsServiceBroker f$15;\n private final /* synthetic */ boolean f$16;\n private final /* synthetic */ WindowManagerService f$2;\n private final /* synthetic */ boolean f$3;\n private final /* synthetic */ ConnectivityService f$4;\n private final /* synthetic */ NetworkManagementService f$5;\n private final /* synthetic */ NetworkPolicyManagerService f$6;\n private final /* synthetic */ IpSecService f$7;\n private final /* synthetic */ NetworkStatsService f$8;\n private final /* synthetic */ LocationManagerService f$9;\n\n {\n this.f$1 = r4;\n this.f$2 = r5;\n this.f$3 = r6;\n this.f$4 = r7;\n this.f$5 = r8;\n this.f$6 = r9;\n this.f$7 = r10;\n this.f$8 = r11;\n this.f$9 = r12;\n this.f$10 = r13;\n this.f$11 = r14;\n this.f$12 = r15;\n this.f$13 = r16;\n this.f$14 = r17;\n this.f$15 = r18;\n this.f$16 = r19;\n }\n\n @Override // java.lang.Runnable\n public final void run() {\n SystemServer.this.lambda$startOtherServices$5$SystemServer(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8, this.f$9, this.f$10, this.f$11, this.f$12, this.f$13, this.f$14, this.f$15, this.f$16);\n }\n }, BOOT_TIMINGS_TRACE_LOG);\n }", "private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public interface CompraService {\n\n @POST(\"inicializar\")\n Call<StatusResponse> inicializar(@Body Credencial credencial);\n\n @POST(\"consultarProduto\")\n Call<StatusResponse> consultarProduto(@Body ConsultaProduto consultaProduto);\n\n @POST(\"consultarFormaPagamento\")\n Call<StatusResponse> consultarFormaPagamento(@Body ConsultaFormaPagamento consultaFormaPagamento);\n\n @POST(\"pedido\")\n Call<StatusResponse> pedido(@Body Compra compra);\n}", "@Autowired\n public MicroServiceStrategy(DisableAction desabilitarAcao\n ) {\n //Regras para entidade MicroService passadas dentro do construtor \n //Injetadas pelo Spring com a anotação @Autowired \n \n \n /* Criando uma lista para conter as regras de negocio de MicroService\n * quando a operacao for salvar\n */\n List<IStrategy> rnsSalvarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao salvar do MicroService */\n rnsSalvarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de MicroService\n * quando a operacao for alterar\n */\n List<IStrategy> rnsAlterarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao alterar do MicroService */\n rnsAlterarMicroService.add(desabilitarAcao);\n\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for alterar\n */\n List<IStrategy> rnsConsultarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao consultar do MicroService */\n rnsConsultarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for excluir\n */\n List<IStrategy> rnsExcluirMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao excluir do MicroService */\n rnsExcluirMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for visualizar\n */\n List<IStrategy> rnsVisualizarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao visualizar do MicroService */\n rnsVisualizarMicroService.add(desabilitarAcao);\n\n /* Criando uma lista para conter as regras de negocio de mainConfiguration\n * quando a operacao for desativar\n */\n List<IStrategy> rnsDesativarMicroService = new ArrayList<IStrategy>();\n /* Adicionando as regras a serem utilizadas na operacao desativar do MicroService */\n rnsDesativarMicroService.add(desabilitarAcao);\n\n /*\n * Adiciona a listra de regras na operacao salvar no mapa do MicroService \n */\n rnsMicroService.put(\"SALVAR\", rnsSalvarMicroService);\n /*\n * Adiciona a listra de regras na operacao alterar no mapa do MicroService \n */\n rnsMicroService.put(\"ALTERAR\", rnsAlterarMicroService);\n /*\n * Adiciona a listra de regras na operacao alterar no mapa do MicroService \n */\n rnsMicroService.put(\"CONSULTAR\", rnsConsultarMicroService);\n /*\n * Adiciona a listra de regras na operacao excluir no mapa do MicroService \n */\n rnsMicroService.put(\"EXCLUIR\", rnsExcluirMicroService);\n /*\n * Adiciona a listra de regras na operacao visualizar no mapa do MicroService \n */\n rnsMicroService.put(\"VISUALIZAR\", rnsVisualizarMicroService);\n /*\n * Adiciona a listra de regras na operacao desativar no mapa do MicroService \n */\n rnsMicroService.put(\"DESATIVAR\", rnsDesativarMicroService);\n\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public String darServicios(){\n return servicios;\n }", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "public ClienteServicio() {\n }", "public static int startAllServices() throws Throwable {\n\t\tint numServicesStarted = 0;\n\t\t\n\t\tlog.info(\"!!! Attempting to start API Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start API Service !!!\"); \n\t\tif (startApiService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Inventory Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Inventory Service !!!\");\n\t\tif (startInventoryService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Insurance Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Insurance Service !!!\");\n\t\tif (startInsuranceService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Enquiry Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Enquiry Service !!!\");\n\t\tif (startEnquiryService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t Runtime.getRuntime().addShutdownHook(new Thread() \n\t\t\t { \n\t\t\t public void run() \n\t\t\t { \n\t\t\t \ttry {\n\t\t\t \t\tlog.info(\"!!! Services Shutdown Hook is running !!!\");\n\t\t\t \t\t//System.out.println(\"!!! Services Shutdown Hook is running !!!\"); \n\t\t\t\t int servicesStopped = ServiceFactory.stopAllServices();\n\t\t\t\t log.info(\"!!! A total of \" + servicesStopped + \" services were shutdown !!!\");\n\t\t\t\t //System.out.println(\"!!! A total of \" + servicesStopped + \" services were shutdown !!!\"); \n\t\t\t \t} catch (Throwable ex) {\n\t\t\t \t\tex.printStackTrace();\n\t\t\t \t}\n\t\t\t } \n\t\t\t }); \n\t\t\t \n\t\t} catch (Throwable ex) {\n\t\t\tlog.error(\"!!! Error on Services Shutdown !!! : \" + ex.getMessage(), ex);\n\t\t\t//System.out.println(\"!!! Error on Services Shutdown !!! : \" + ex.getMessage());\n\t\t\t//ex.printStackTrace();\n\t\t}\n\n\t\treturn numServicesStarted;\n\t}", "public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "@WebService(name = \"CompeticionesWS\", targetNamespace = \"http://WebServices/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CompeticionesWS {\n\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataPartido seleccionarPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2)\n throws ExNoExisteCompeticion_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanEquipo\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanEquipo listarEquipos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listaJugadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarCompetencias(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugador\n * @throws ExNoExisteJugador_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugador seleccionarJugador(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteJugador_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataCompeticion\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataCompeticion verInfoCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarVerDetallesComp(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public String getImagePath(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void agregarCompeticionSesion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataPartidoComp\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataPartidoComp listarPartidos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n ListBeanFiltro arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.FloatArrayArray\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public FloatArrayArray obtenerDividendosResultadoExacto(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido verInfoPartidoFinalizado(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarDetallesPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarLigasDefinidas(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataEquipoLiga\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataEquipoLiga obtenerTablaDePosiciones(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean obtenerUltimosPartidosFinalizados(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean infoPartidosCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExDatosNoAsignados_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido listarJugadoresPorBando(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExDatosNoAsignados_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExNoExisteEquipo_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarJugEquipo(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteEquipo_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public boolean competicionEstaFinalizada(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarPencasDisponibles(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores getJugadoresCampeonato(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores get5MaxGoleadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n}", "public void service() {\n\t}", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}", "private WebServicesFabrica(){}", "public ArrayList<Servicio> cargarServicios() throws CaException {\n try {\n String strSQL = \"SELECT k_idservicio, f_fycentrada, f_fycsalida, q_valorapagar, k_idvehiculo FROM servicio\";\n Connection conexion = ServiceLocator.getInstance().tomarConexion();\n PreparedStatement prepStmt = conexion.prepareStatement(strSQL);\n ResultSet rs = prepStmt.executeQuery();\n while (rs.next()) {\n Servicio servicio1 = new Servicio();\n servicio1.setK_idservicio(rs.getInt(1));\n servicio1.setF_fycentrada(rs.getString(2));\n servicio1.setF_fycsalida(rs.getString(3));\n servicio1.setQ_valorapagar(rs.getInt(4));\n servicio1.setK_idvehiculo(rs.getInt(5));\n\n servicios.add(servicio1);\n }\n } catch (SQLException e) {\n throw new CaException(\"ServicioDAO\", \"No pudo recuperar el servicio\" + e.getMessage());\n }finally {\n ServiceLocator.getInstance().liberarConexion();\n }\n return servicios;\n }", "public void atualizarStatusSolicitacaoServicoSara() {\n\t\tList<SolicitacaoServico> solicitacoes = new ArrayList<>();\n\t\ttry {\n\t\tgetSolicitacaoServicoDAO().beginTransaction();\n\t\tsolicitacoes = getSolicitacaoServicoDAO().getSolicitacaoServicoNaoFinalizadas();\n\t\tgetSolicitacaoServicoDAO().closeTransaction();\n\t\t\n\t\tfor(SolicitacaoServico s : solicitacoes) {\n\t\t\tif(s.getStatusServicos() != StatusServicos.CRIA_OS_SARA) {\n\t\t\tString status = getSolicitacaoServicoDAO().getStatusServerSara(s.getSolicitacao().getNumeroATI(), s.getOS());\n\t\t\tif(status.equals(\"OS_GERADA\")) {\n\t\t\t\ts.setStatusServicos(StatusServicos.OS_GERADA);\n\t\t\t}else \n\t\t\t\tif(status.equals(\"OS_INICIADA\")) {\n\t\t\t\t\ts.setStatusServicos(StatusServicos.OS_INICIADA);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\tif(status.equals(\"FINALIZADO\")) {\n\t\t\t\t\t\ts.setStatusServicos(StatusServicos.FINALIZADO);\n\t\t\t\t\t}\n\t\t\tgetDAO().beginTransaction();\n\t\t\talterar(s.getSolicitacao(), \"Alteração de Status do serviço\",s.getSolicitacao().getUltResponsavel());\n\t\t\tgetDAO().commitAndCloseTransaction();\n\t\t\t}\n\t\t\n\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n protected void reconfigureService() {\n }", "public void setIdPtoServicio(String idPtoServicio);", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }", "public static void main(String[] argv)\r\n {\r\n //Fazer isto depois para múltiplos web services\r\n InsulinDoseCalculator service = null;\r\n try {\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://liis-lab.dei.uc.pt:8080/Server?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs12.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs18.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();14\r\n service = new InsulinDoseCalculatorService(new URL(\"http://localhost:9000/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://vm-sgd17.dei.uc.pt:80/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n } catch (MalformedURLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n //InsulinDoseCalculator service = new InsulinDoseCalculatorService().getInsulinDoseCalculatorPort();\r\n menu(service);\r\n }", "private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }", "public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}", "@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}", "@Override\n\tpublic String listarClientes() throws MalformedURLException, RemoteException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \tString lista = datos.listaClientes();\n \treturn lista;\n \t\n\t}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"RadiologyService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[4];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"requestAppointment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"orderRadiologyExamination\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"getOrderStatus\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"makePayment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"TerminalServiceXmlService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[11];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directOrderStateQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getTerminalCardType\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalReturnCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"qqCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectSrvInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForDay\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectAreaInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForMonth\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[9]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDownLoadCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[10]=__operation;\n \n \n }", "public ServiceCompte() {\n\t\tsuper();\n\t}", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "public Collection<Service> createServices();", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getServiciosDeAlojamiento() {\n\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\n\t\t\tList<ServicioDeAlojamiento> serviciosDeAlojamiento;\n\t\t\tserviciosDeAlojamiento = tm.getAllServiciosDeAlojamiento();\n\t\t\treturn Response.status(200).entity(serviciosDeAlojamiento).build();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t}", "List<Service> services();", "public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}", "protected void initializeServices() throws Exception {\n String fileName = this.getClass().getSimpleName() + \"Output.csv\";\r\n outputFile = new File(fileName); // located in current run dir \r\n getOutputFile().delete(); // delete any previous version\r\n \r\n // Configure system properties for Velo to work properly (can also be provided as runtime args)\r\n System.setProperty(\"logfile.path\", \"./velo.log\");\r\n if(repositoryPropertiesFile == null) {\r\n System.setProperty(\"repository.properties.path\", \"./repository.properties\");\r\n } else {\r\n System.setProperty(\"repository.properties.path\", repositoryPropertiesFile.getAbsolutePath()); \r\n }\r\n \r\n // Initialize the spring container\r\n if(cmsServicesFile == null && tifServicesFile == null) {\r\n SpringContainerInitializer.loadBeanContainerFromClasspath(null);\r\n \r\n } else {\r\n List<String> beanFilePaths = new ArrayList<String>();\r\n if(cmsServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + cmsServicesFile.getAbsolutePath());\r\n }\r\n if(tifServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + tifServicesFile.getAbsolutePath());\r\n }\r\n SpringContainerInitializer.loadBeanContainerFromFilesystem(beanFilePaths.toArray(new String[beanFilePaths.size()]));\r\n }\r\n \r\n // set the service classes\r\n securityManager = CmsServiceLocator.getSecurityManager();\r\n resourceManager = CmsServiceLocator.getResourceManager();\r\n searchManager = CmsServiceLocator.getSearchManager();\r\n notificationManager = CmsServiceLocator.getNotificationManager();\r\n \r\n if(tifServicesFile != null) {\r\n jobLaunchService = TifServiceLocator.getJobLaunchingService();\r\n codeRegistry = TifServiceLocator.getCodeRegistry();\r\n machineRegistry = TifServiceLocator.getMachineRegistry();\r\n scriptRegistry = TifServiceLocator.getScriptRegistry();\r\n jobConfigService = TifServiceLocator.getJobConfigService();\r\n veloWorkspace = TifServiceLocator.getVeloWorkspace();\r\n }\r\n \r\n \r\n securityManager.login(username, password);\r\n\r\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "public interface ViewPeriodeModalRS extends GenericService<ViewPeriodeModal, Long> {\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"pdf\")\n\tpublic Response buildPdfReport(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"vir\")\n\tpublic Response virementsalaire(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"cai\")\n\tpublic Response caissesalaire(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"pret\")\n\tpublic Response retenuesSalaires(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"pie\")\n\tpublic Response pieceBancaire(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"bi/pdf\")\n\tpublic Response buildPdfReportbi(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"bi/vir\")\n\tpublic Response virementsalairebi(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"bi/cai\")\n\tpublic Response caissesalairebi(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"bi/ret\")\n\tpublic Response retenuesSalairesbi(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t@PUT\n\t@Produces({ \"application/pdf\" })\n\t@Consumes({MediaType.APPLICATION_JSON})\n\t@Path(\"bi/pie\")\n\tpublic Response pieceBancairebi(ViewPeriodeModal entity, @Context HttpHeaders headers);\n\t\n\t\n\n}", "interface ServicesService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkus\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/availableSkus\")\n Observable<Response<ResponseBody>> listAvailableSkus(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body AvailableSkuRequest availableSkuRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusByResourceGroup\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus\")\n Observable<Response<ResponseBody>> listAvailableSkusByResourceGroup(@Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body AvailableSkuRequest availableSkuRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateAddressMethod\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress\")\n Observable<Response<ResponseBody>> validateAddressMethod(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidateAddress validateAddress, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateInputsByResourceGroup\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs\")\n Observable<Response<ResponseBody>> validateInputsByResourceGroup(@Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidationRequest validationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateInputs\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs\")\n Observable<Response<ResponseBody>> validateInputs(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidationRequest validationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services regionConfiguration\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\")\n Observable<Response<ResponseBody>> regionConfiguration(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body RegionConfigurationRequest regionConfigurationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusNext\" })\n @GET\n Observable<Response<ResponseBody>> listAvailableSkusNext(@Url String nextUrl, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusByResourceGroupNext\" })\n @GET\n Observable<Response<ResponseBody>> listAvailableSkusByResourceGroupNext(@Url String nextUrl, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }", "public static void main(String[] args){\n try{\n // El servidor se registra en RMI\n IP = args[0];\n IPBroker = args[1];\n\n Registry registryA = LocateRegistry.getRegistry();\n\n ServerAInterface sA = new ServerA();\n\n ServerAInterface stub = (ServerAInterface) UnicastRemoteObject.exportObject(sA,0);\n\n System.setProperty(\"java.rmi.server.hostname\",IP);\n registryA.rebind(\"//\"+IP+\":ServerA\",stub);\n System.out.println(\"Servidor A registrado correctamente.\");\n\n // Obtenemos el Broker\n Registry registry = LocateRegistry.getRegistry(IPBroker);\n ServicesBrokerInterface s = (ServicesBrokerInterface) registry.lookup(\"//\"+IPBroker+\":ServicesBroker\");\n\t\n Scanner teclado = new Scanner(System.in);\n boolean finalizar = false;\n String entrada = \"\";\n\t\t\t\n while (!finalizar) {\n System.out.println(\"\\n--------------------------------------\\n\");\n System.out.println(\"LISTA DE SERVICIOS DEL SERVIDOR B:\\n\" +\n \" - Nombre: introducir_libro; Parametros: String nombreLibro; Return: Void \\n\" +\n \" - Nombre: lista_libros; Parametros: none; Return: ArrayList<String> \\n\");\n\n System.out.println(\"¿Que desea hacer? \\n\"+\n \" 1 - Introducir libro\\n\"+\n \" 2 - Obtener lista de libros\\n\");\n System.out.print(\"Accion: \");\n entrada = teclado.nextLine();\n\n if (entrada.equals(\"1\")) {\n System.out.println(\"Introduzca el titulo del libro que desea almacenar:\");\n System.out.print(\"Titulo:\");\n entrada = teclado.nextLine();\n System.out.println(s.ejecutar_servicio(\"introducir_libro\", entrada));\n } else if (entrada.equals(\"2\")) {\n System.out.println(s.ejecutar_servicio(\"lista_libros\",\"\"));\n } else System.out.println(\"Accion no existente.\");\n }\n\n }catch (RemoteException e){\n System.out.println(e);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Es necesario pasar como parametro la IP del servidor donde se hostea el registro RMI y la IP del Broker.\");\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){\n Intent inicioServicio = new Intent(this,ServicioPomodoro.class);\n inicioServicio.setAction(\"intentIniciar\");\n inicioServicio.putExtra(\"intervaloPomodoro\", pomodoro);\n inicioServicio.putExtra(\"intervaloDescansoCorto\", corto);\n inicioServicio.putExtra(\"intervaloDescansoLargo\", largo);\n startService(inicioServicio);\n tiempo.setBase(SystemClock.elapsedRealtime());\n tiempo.start();\n controlCronometro();\n }", "public interface APIService {\n\n @POST(\"login.php\")\n Call<ResponseLogin> iniciosesion(@Body Cuenta cuenta);\n\n @POST(\"registrarEmpresa.php\")\n Call<PostResponse> registerEmpresa(@Body Cuenta cuenta);\n\n @GET(\"mostrarProyecto.php\")\n Call<ResponseProyecto> getProyectos(@Query(\"id_empresa\") String id);\n\n @GET(\"InfoEmpresa.php\")\n Call<ResponseEmpresa> getEmpresa(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarProyecto.php\")\n Call<ResponseRegistrarProyecto> registerProyecto(@Body Proyecto proyecto);\n\n @POST(\"registrarDocumento.php\")\n Call<ResponseEntregable> registerEntregable(@Body EntregableP entregableP);\n\n @GET(\"mostrarDoc.php\")\n Call<ResponseMostrarEntregable> getEntregables(@Query(\"id_proyecto\") int id);\n\n @POST(\"registrarPersonal.php\")\n Call<PostResponse> registerPersonal(@Body Personal personal);\n\n @GET(\"mostrarPersonal.php\")\n Call<ResponsePersonal> getPersonal(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarHistorial.php\")\n Call<PostResponse> registerHistorial(@Body Historial historial);\n\n @GET(\"mostrarHistorial.php\")\n Call<ResponseHistorial> getHistorial(@Query(\"id_proyecto\") int id);\n\n @GET(\"mostrarPerLibres.php\")\n Call<ResponsePersonalFree> getPersonalFree(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarEquipoP.php\")\n Call<PostResponse> registerEquipo(@Body RegisterEquipo equipo);\n\n @GET(\"mostrarEquipoP.php\")\n Call<ResponseMostrarEquipo> getEquipo(@Query(\"id_proyecto\") int id);\n\n @GET(\"{entregable}\")\n @Streaming\n Call<ResponseBody> downloadFile(@Path(\"entregable\")String entregable);\n\n @POST(\"asignarJefe.php\")\n Call<PostResponse> asignarJefe(@Body Jefe jefe);\n\n @POST(\"proyectoEndFake.php\")\n Call<PostResponse> finishProyecto(@Body Proyecto proyecto);\n\n @POST(\"ModidTipo.php\")\n Call<PostResponse> updateTipo(@Body Jefe jefe);\n\n @GET(\"reporteJson.php\")\n Call<ResponseReportes> getReportes(@Query(\"idEmpresa\") String id);\n\n @POST(\"LoginEmJefe.php\")\n Call<ResponseUser> signIn(@Body Cuenta cuenta);\n\n @GET(\"ProyectoMostrarID.php\")\n Call<ResponseProyecto> getProject(@Query(\"idProyecto\") String id);\n\n\n}", "protected abstract String getATiempoServiceName();", "public interface ProcesoMSGEliminarBuzonMensajeService extends Service {\n\n\t/**\n\t * Proceso que realiza la eliminacin del buzon de mensajes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarEliminarBuzonMensaje(Map criteria);\n\n}", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "Fog_Services createFog_Services();", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}", "public ArrayList<Consulta> recuperaAllServicios() {\r\n\t\treturn servicioConsulta.recuperaAllServicios();\r\n\t}", "private void initService() {\r\n\t}", "public WebService_Detalle_alquiler_factura() {\n }", "public interface ITempSeatScheduleService extends IService<TssTempSeatSchedule> {\n\n boolean resetTepIdAndSeatNumInTemp(List<String> readyDelIds);\n\n boolean copyToMainTableByTeId(String mainExId);\n\n boolean removeByTeId(String mainExId);\n}", "@Override\n\tpublic List<String> listarFicherosCliente(int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\t\t\n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \tInterfaz.imprime(\"La lista de ficheros de la sesion: \" + idSesionCliente + \" ha sido enviada\");\n return datos.listarFicherosCliente(idSesionCliente);\n \n\t}", "private void loadComponentServices(ServiceVO service){\n\t\tfor(ComponentServiceVO compSrvc : service.getComponents()){\n\t\t\tif(\"Y\".equals(compSrvc.getEnabled())){\n\t\t\t\tif(\"Y\".equals(compSrvc.getEnabledUddi())){\n\t\t\t\t\t//get web services information from UDDI\n\t\t\t\t\tlogger.debug(\"Cargando información del Servicio {0} - {0} vía UDDI -> {0}\", service.getId(), service.getDescription(), \n\t\t\t\t\t\tgetWSInformationFromUDDI(compSrvc));\n\t\t\t\t}else if(\"N\".equals(compSrvc.getEnabledUddi())){\n\t\t\t\t\t//get web services information from WSDL\n\t\t\t\t\tMap<String, String> wsdlValues = getWSInformationFromWSDL(compSrvc.getUddiWsdl(), compSrvc.getPortTypeName(), compSrvc.getMethodName());\n\t\t\t\t\t//set all values to object\n\t\t\t\t\tsetWsdlValues(wsdlValues, compSrvc);\n\t\t\t\t\tlogger.debug(\"Cargando información del Servicio {0} - {0} vía WSDL -> {0}\", compSrvc.getId(), compSrvc.getDescription(),\n\t\t\t\t\t\t!wsdlValues.isEmpty());\n\t\t\t\t}else{\n\t\t\t\t\tlogger.error(\"Opción {0} de WSDL_UDDI no reconocida\", compSrvc.getEnabledUddi());\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tlogger.debug(\"El servicio (Salida) {0} está deshabilitado, no se ha cargado la configuración de WSDL y UDDI\");\n\t\t\t}\n\t\t}\n\t}", "public interface SerService {\n\n List<SService> findwithPageInfo(Integer pageNo, Integer pageSize);\n\n PageInfo<SService> getPageInfo(Integer pageSize);\n\n SService findById(Integer id);\n\n void modi(SService sService);\n\n void add(SService sService, String samePasswd);\n\n void setStateS(Integer id);\n\n void delS(Integer id);\n\n\n List<SService> findS(String osUsername, String unixHost, String status, Integer accountId);\n\n void updateCost(SService sService);\n}", "public void fetchServices() {\n serviciosTotales.clear();\n for (String serviceId : serviceList) {\n databaseServiceReference.child(serviceId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Servicio servicioTemp = dataSnapshot.getValue(Servicio.class);\n serviciosTotales.add(servicioTemp);\n servicesAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n\n\n }", "@RemoteServiceRelativePath(\"service\")\npublic interface DekorTradeService extends RemoteService {\n\n\tUserSer getUser(String user, String password)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer, LoginExceptionSer;\n\n\tvoid setPassword(String user, String password)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FelhasznaloSer> getFelhasznalo() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tFelhasznaloSer addFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tFelhasznaloSer updateFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString setFelhasznaloJelszo(String rovidnev)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tFelhasznaloSer removeFelhasznalo(FelhasznaloSer felhasznaloSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tJogSer updateJog(String rovidnev, JogSer jogSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<JogSer> getJog(String rovidnev) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<GyartoSer> getGyarto() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tGyartoSer addGyarto(GyartoSer szallitoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tGyartoSer updateGyarto(GyartoSer szallitoSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tGyartoSer removeGyarto(GyartoSer szallitoSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tVevoSer addVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tVevoSer updateVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tString setVevoJelszo(String rovidnev) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tVevoSer removeVevo(VevoSer vevoSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<VevoSer> getVevo() throws Exception, SQLExceptionSer;\n\n\tList<CikkSer> getCikk(int page, String fotipus, String altipus,\n\t\t\tString cikkszam) throws IllegalArgumentException, SQLExceptionSer;\n\n\tCikkSer addCikk(CikkSer cikkSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkSer updateCikk(CikkSer cikkSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkSer removeCikk(CikkSer ctorzsSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltSer> getRendelt(String vevo) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeltcikk(String rovidnev, String rendeles)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tSzinkronSer szinkron() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString teljesszinkron() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString initUploadFileStatus() throws IllegalArgumentException;\n\n\tUploadSer getUploadFileStatus() throws IllegalArgumentException;\n\n\tList<String> getKep(String cikkszam, String szinkod)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString removeKep(String cikkszam, String szinkod, String rorszam)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CikkfotipusSer> getCikkfotipus() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tCikkfotipusSer addCikkfotipus(CikkfotipusSer rcikkfotipusSe)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkfotipusSer updateCikkfotipus(CikkfotipusSer cikkfotipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CikkaltipusSer> getCikkaltipus(String fokod)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkaltipusSer addCikkaltipus(CikkaltipusSer cikktipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkaltipusSer updateCikkaltipus(CikkaltipusSer cikktipusSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tCikkSelectsSer getCikkSelects() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<KosarSer> getKosarCikk(String elado, String vevo, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tVevoKosarSer getVevoKosar(String elado, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString addKosar(String elado, String vevo, String menu, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString removeKosar(String elado, String vevo, String menu, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tKosarSer addKosarCikk(KosarSer kosarSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tKosarSer removeKosarCikk(KosarSer kosarSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString importInternet(String elado, String vevo, String rendeles)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString createCedula(String elado, String vevo, String menu)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CedulaSer> getCedula(String vevo, String menu, String tipus)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<CedulacikkSer> getCedulacikk(String cedula, String tipus)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString cedulaToKosar(String elado, String vevo, String menu, String tipus, String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tString kosarToCedula(String elado, String vevo, String menu, String tipus, String ujtipus, String cedula,\n\t\t\tDouble befizet, Double befizeteur, Double befizetusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getFizetes() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tZarasEgyenlegSer getElozoZaras() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tString createZaras(String penztaros, Double egyenleghuf, Double egyenlegeur,\n\t\t\tDouble egyenlegusd, Double kivethuf, Double kiveteur, Double kivetusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getZarasFizetes(String zaras)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<ZarasSer> getZaras() throws IllegalArgumentException, SQLExceptionSer;\n\n\tString createTorlesztes(String penztaros, String vevo, Double torleszthuf,\n\t\t\tDouble torleszteur, Double torlesztusd)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getTorlesztesek() throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<FizetesSer> getTorlesztes(String cedula)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<FizetesSer> getHazi() throws IllegalArgumentException, SQLExceptionSer;\n\n\tFizetesSer addHazi(FizetesSer fizetesSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendelesSzamolt(String status)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeles(String status, String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tList<RendeltcikkSer> getMegrendelt(String status, String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer updateRendeltcikk(RendeltcikkSer rendeltcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer megrendeles(RendeltcikkSer rendeltcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<BeszallitottcikkSer> getBeszallitottcikk(String cikkszam,\n\t\t\tString szinkod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tBeszallitottcikkSer addBeszallitottcikk(\n\t\t\tBeszallitottcikkSer beszallitottcikkSer)\n\t\t\tthrows IllegalArgumentException, SQLExceptionSer;\n\n\tList<RaktarSer> getRaktar(int page, String fotipus, String altipus,\n\t\t\tString cikkszam) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRaktarSer updateRaktar(String rovancs,String userId,RaktarSer raktarSer) throws IllegalArgumentException,\n\t\t\tSQLExceptionSer;\n\n\tList<RendeltcikkSer> getRendeles(String vevo) throws IllegalArgumentException, SQLExceptionSer;\n\n\tList<EladasSer> getEladas(String cikkszam, String sznikod) throws IllegalArgumentException, SQLExceptionSer;\n\n\tRendeltcikkSer removeRendeles(RendeltcikkSer rendeltcikkSer) throws IllegalArgumentException, SQLExceptionSer;\n\n}", "public interface FactoryOrderDetailService {\n\n List<SchedulingDomain> schedulingInfo(Integer factId,Integer soId);\n List<ProductionDetailDomain> productionDetailInfo(Integer factId,Integer soId);\n List<ProductionReportDomain> productionReportInfo(Integer factId,Integer soId);\n List<CompletionDomain> completionInfo(Integer factId,Integer soId);\n List<ProductionRecordDomain> productionRecordInfo();\n\n List<FactoryCapacityDomain> capaTypes();\n}", "public WsmAtualizacaoSim getServicosWsmByIccid(String iccid)\r\n\t{\r\n\t\t// Nova instancia do Gerenciador de Servicos WSM\r\n\t\tWsmServiceManagerJni gerenciadorServicos = new WsmServiceManagerJni();\r\n\t\t\r\n\t\t// Nova instancia da lista que ira receber os servicos relacionados\r\n\t\t// ao simcard em questao\r\n\t\tWsmServiceList listaDeServicos = new WsmServiceList();\r\n\t\tWsmSimcardIdentifier simId = getIdentificadorSimcardByIccid(iccid);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Grava no LOG uma entrada DEBUG\r\n\t\t\tlogger.debug(\"Iniciando a selecao dos servicos para o simcard \" + iccid);\r\n\t\t\t\r\n\t\t\t// Realiza a consulta dos servicos do simcard na plataforma OTA\r\n\t\t\t// atraves do WSM com o Status indeterminado, para que todos os\r\n\t\t\t// servicos sejam selecionados, independente da situacao de cada um\r\n\t\t\tlistaDeServicos = gerenciadorServicos.getServices(simId, WsmEvent.STATUS_UNDETERMINED);\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tWsmError erro = gerenciadorServicos.getError();\r\n\t\t\tlogger.error(\"Erro na selecao dos servicos do assinante \" + iccid + \": \" + erro.getErrorDescription());\r\n\t\t}\r\n\t\t\r\n\t\t// Cria um objeto que contera todos os objetos servicos\r\n\t\t// individualmente em suas respectivas listas. Inicia um\r\n\t\t// contador para varrer os servicos da lista completa\r\n\t\tWsmAtualizacaoSim resultado = new WsmAtualizacaoSim();\r\n\t\tresultado.setIccid(iccid);\r\n\t\t\r\n\t\t// Move o cursor da lista de servicos para o primeiro servico\r\n\t\tlistaDeServicos.moveToFirst();\r\n\t\tint qtdeDeServicos = listaDeServicos.getCount();\r\n\t\tlogger.debug(\"Quantidade de servicos para o simcard \" + iccid + \": \" + qtdeDeServicos);\r\n\t\t\r\n\t\t// Varre a lista de todos os servicos para selecionar cada\r\n\t\t// servico e o colocar em sua respectiva lista no resultado\r\n\t\tfor (int i = 1; i <= qtdeDeServicos; i++)\r\n\t\t{\r\n\t\t\t// Seleciona o proximo servico da lista completa\r\n\t\t\tWsmService servicoWSM = listaDeServicos.getNext();\r\n\t\t\t// Cria uma nova instancia do objeto WsmServico\r\n\t\t\tWsmServico wsmServico = new WsmServico();\r\n\t\t\t\r\n\t\t\t// Seta os valores necessarios para uma possivel atualizacao\r\n\t\t\twsmServico.setIdGrupo(servicoWSM.getParentGroupId());\r\n\t\t\twsmServico.setIdServico(servicoWSM.getId());\r\n\t\t\twsmServico.setStatusServico(servicoWSM.getStatus());\r\n\t\t\t\r\n\t\t\t// Considerando o status do servico com relacao ao simcard,\r\n\t\t\t// cada servico sera incluido em sua lista no resultado\r\n\t\t\tswitch(wsmServico.getStatusServico())\r\n\t\t\t{\r\n\t\t\t\t// Status INDETERMINADO\r\n\t\t\t\t// Para os servicos com esse status nada sera feito\r\n\t\t\t\tcase WsmService.STATUS_UNDETERMINED:\r\n\t\t\t\t{\r\n\t\t\t\t\tresultado.addServicoStatusIndeterminado(wsmServico);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t// Status DISPONIVEL\r\n\t\t\t\t// Servicos que nao estao no simcard, mas podem\r\n\t\t\t\t// ser inseridos no mesmo\r\n\t\t\t\tcase WsmService.STATUS_AVAILABLE:\r\n\t\t\t\t{\r\n\t\t\t\t\tresultado.addServicoDisponivel(wsmServico);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t// status PENDENTE\r\n\t\t\t\t// Servicos com alguma pendencia ou que estao sendo\r\n\t\t\t\t// baixados para o simcard\r\n\t\t\t\tcase WsmService.STATUS_PENDING:\r\n\t\t\t\t{\r\n\t\t\t\t\tresultado.addServicoPendente(wsmServico);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t// status NO SIMCARD\r\n\t\t\t\t// Servicos que estao atualmente no simcard\r\n\t\t\t\tcase WsmService.STATUS_ONSIM:\r\n\t\t\t\t{\r\n\t\t\t\t\tresultado.addServicoNoSimcard(wsmServico);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.error(\"Status do servico invalido.\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Retorno do resultado\r\n\t\treturn resultado;\r\n\t}", "public interface MovilizerDistributionService {\n\n // ---------------------------------------------------------------------- Webservice interaction\n\n /**\n * Set systemd Id and password for the request and erases the replies from next response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareUploadRequest(Long systemId, String password, MovilizerRequest request);\n\n /**\n * Set systemd Id and password for the request and set the number of replies replies from next\n * response.\n *\n * @param systemId the system id to be set in the request.\n * @param password the password to be set in the request.\n * @param numResponses the number of responses to receive in the response.\n * @param request request to be modified for upload.\n * @return the same request entered in the method parameters but with the credentials and number\n * of replies changed.\n * @since 12.11.1.0\n */\n MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request);\n\n /**\n * Perform a synchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return the response coming from the cloud with the corresponding acknowledgements, errors,\n * replies and datacontainers.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @since 12.11.1.0\n */\n MovilizerResponse getReplyFromCloudSync(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 15.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request);\n\n /**\n * Perform an asynchronous request the Movilizer cloud.\n *\n * @param request request to be used in the call.\n * @param connectionTimeoutInMillis connection timeout to be used in the call.\n * @param receiveTimeoutInMillis receive timeout to be used in the call.\n * @return A completable future with the response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @since 12.11.2.2\n */\n CompletableFuture<MovilizerResponse> getReplyFromCloud(MovilizerRequest request,\n Integer connectionTimeoutInMillis,\n Integer receiveTimeoutInMillis);\n\n /**\n * Indicate if the response java instance has errors.\n *\n * @param response the response to be analyzed.\n * @return true in case response has errors else false.\n * @since 12.11.1.3\n */\n Boolean responseHasErrors(MovilizerResponse response);\n\n /**\n * Generate a string with errors.\n *\n * @param response the response that contains the errors.\n * @return string represantion of the errors to use in messages.\n * @since 12.11.1.3\n */\n String responseErrorsToString(MovilizerResponse response);\n\n /**\n * Send all files that has .mxml extension in a folder and subfolders collecting all cloud\n * responses.\n *\n * @param folder to walk for the request files.\n * @return a list with all the cloud responses.\n * @since 15.11.1.5\n */\n List<MovilizerResponse> batchUploadFolderSync(Path folder);\n\n // ----------------------------------------------------------------------------- Document upload\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.0\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(InputStream documentInputStream, String filename,\n long systemId, String password, String documentPool,\n String documentKey, String language, String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform a synchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return the upload response with the results of the upload\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see UploadResponse\n * @since 12.11.1.2\n */\n UploadResponse uploadDocumentSync(Path documentFilePath, long systemId, String password,\n String documentPool, String documentKey, String language,\n String ackKey, Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the input stream.\n *\n * @param documentInputStream the input stream containing the blob/document to upload.\n * @param filename the name of the file for the document.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(InputStream documentInputStream,\n String filename, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n /**\n * Perform an asynchronous blob upload to the Movilizer Cloud given the path to a file.\n *\n * @param documentFilePath the path to the document file to upload.\n * @param systemId the system id where the document is going to be uploaded to.\n * @param password the password of the system id where the document is going to be uploaded to.\n * @param documentPool the document pool of the document.\n * @param documentKey the document key for the document.\n * @param language the language of the document.\n * @param ackKey the acknowledge key for the document.\n * @param connectionTimeoutInMillis timeout of the request.\n * @return a future with the upload response.\n * @throws MovilizerWebServiceException when there's connection or file access problems.\n *\n * @see CompletableFuture\n * @see UploadResponse\n * @since 15.11.2.2\n */\n CompletableFuture<UploadResponse> uploadDocument(Path documentFilePath, long systemId,\n String password, String documentPool,\n String documentKey, String language,\n String ackKey,\n Integer connectionTimeoutInMillis);\n\n // ----------------------------------------------------------------------------------- XML utils\n\n /**\n * Read a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) and creates a java object instance of the class indicated.\n *\n * @param elementString string value of the serialization of the object.\n * @param movilizerElementClass class of the Movilizer object to create from the string.\n * @param <T> Movilizer object class\n * @return the java instance parsed from the string.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);\n\n /**\n * Print a Movilizer element from the webservice name space (MovilizerMovelet, MovilizerReply,\n * etc...) to string.\n *\n * @param movilizerElement java instance of the Movilizer element.\n * @param movilizerElementClass class of the Movilizer element to use.\n * @param <T> Movilizer object class\n * @return XML string representation for the Movilizer element given.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there are parsing\n * problems.\n * @since 12.11.1.3\n */\n <T> String printMovilizerElementToString(final T movilizerElement,\n final Class<T> movilizerElementClass);\n\n // ------------------------------------------------------------------------------ File XML utils\n\n /**\n * Read and parses a Movilizer Request file (.mxml) from the file system.\n *\n * @param filePath path to the request file.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n MovilizerRequest getRequestFromFile(Path filePath);\n\n /**\n * Read and parses a Movilizer Request from the given String.\n *\n * @param requestString non null string with a valid xml request.\n * @return the java instance parsed from the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * string problems.\n * @since 12.11.1.1\n */\n MovilizerRequest getRequestFromString(String requestString);\n\n /**\n * Persist a request java instance to a file.\n *\n * @param request the request to be persisted.\n * @param filePath the path to the file.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException when there's parsing or\n * file access problems.\n * @since 12.11.1.0\n */\n void saveRequestToFile(MovilizerRequest request, Path filePath);\n\n /**\n * Generate a string from a request java instance.\n *\n * @param request the request to be transformed into string.\n * @return the string representation of the request.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String requestToString(MovilizerRequest request);\n\n /**\n * Generate a string from a response java instance.\n *\n * @param response the response to be transformed into string.\n * @return the string representation of the response.\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerXMLException if there's parsing\n * problems.\n * @since 12.11.1.0\n */\n String responseToString(MovilizerResponse response);\n\n // ------------------------------------------------------------------------------ MAF Management\n\n /**\n * Read a file into an MAF source file for latter source uploading.\n *\n * @param sourceFile file to read\n * @return MafSource with the source and the metadata\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles reading the file.\n * @see com.movilizer.mds.webservice.models.maf.MafEventScript\n * @see com.movilizer.mds.webservice.models.maf.MafLibraryScript\n * @see com.movilizer.mds.webservice.models.maf.MafGenericScript\n * @since 15.11.2.1\n */\n MafSource readSource(File sourceFile);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param source file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, MafSource source);\n\n /**\n * Deploy a MAF source to the cloud.\n *\n * @param systemId where to deploy the file\n * @param password for the system id given\n * @param token for MAF access\n * @param sourceFile file to upload\n * @return MafResponse with the result of the operation\n * @throws com.movilizer.mds.webservice.exceptions.MovilizerMAFManagementException when having\n * troubles uploading the file.\n * @see com.movilizer.mds.webservice.models.maf.communications.MafEventResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafLibraryResponse\n * @see com.movilizer.mds.webservice.models.maf.communications.MafGenericResponse\n * @since 15.11.2.1\n */\n MafResponse deploySourceSync(long systemId, String password, String token, File sourceFile);\n}", "public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}", "public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }", "public interface SeService extends PubService {\n\t/**\n\t * 查询项目日志列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayNote(Map<String,String> m , Page p);\n\tpublic DataTableBean querySeDayNote(DataTableBean dtb);\n\t/**\n\t * 保存项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void saveSeDayNote(SeDayNote obj) ;\n\t/**\n\t * 更新项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void updateSeDayNote(SeDayNote obj);\n\t/**\n\t * 根据主键查询项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayNote querySeDayNoteById(java.lang.String pk);\n\t/**\n\t * 删除项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除项目日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayNoteByIds(String ids);\n\t\n\t/**\n\t * 查询矩阵属性列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceKey(Map<String,String> m , Page p);\n\t/**\n\t * 用于ajax查找某个矩阵树功能\n\t * Method Description : ########\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List traceFileter(String key);\n\t/**\n\t * 保存矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void saveSeTraceKey(SeTraceKey obj) ;\n\t/**\n\t * 更新矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void updateSeTraceKey(SeTraceKey obj);\n\t/**\n\t * 根据主键查询矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceKey querySeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 删除矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵属性对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceKeyByIds(String ids);\n\t/**\n\t * 查询某矩阵下的属性集合\n\t * @param traceId 矩阵ID \n\t * @param proType 属性类型 CLOB:大文本 STRING:非大文本字段 ALL:全部\n\t * @return 矩阵属性集合\n\t */\n\tpublic List queryTracePros(String traceId,String proType);\n\t/**\n\t * 保存矩阵属性\n\t * @param traceId 矩阵ID\n\t * @param params 矩阵属性集合\n\t */\n\tpublic void saveTracePros(String traceId,List<Map<String,String>> params);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 矩阵属性对象\n\t */\n\tpublic SeTraceKey queryTraceKeyByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值\n\t */\n\tpublic String queryTraceValueByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值对象 \n\t */\n\tpublic Object queryTraceValueObjByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 拷贝矩阵属性\n\t * @param sourceTraceId 源矩阵ID\n\t * @param targetTraceId 目标矩阵ID\n\t */\n\tpublic void copyTracePro(String sourceTraceId,String targetTraceId);\n\t\n\t/**\n\t * 属性继承\n\t * @param traceId 矩阵ID\n\t * @param direction 继承方向 U:继承父节点 D:覆盖子孙节点\n\t */\n\tpublic void traceProExtend(String traceId,String direction);\n\t\n\t/**\n\t * 根据矩阵ID查询矩阵对象\n\t * @param nodeId 矩阵ID\n\t * @return 矩阵对象\n\t */\n\tpublic SeRequirementTrace queryNodeById(String nodeId);\n\t\n\t/**\n\t * 查询矩阵记事列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceNote(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 我的矩阵遗留备忘\n\t * Method Description : ########\n\t * @param dtb\n\t * @return\n\t */\n\tpublic DataTableBean queryMySeTraceNote(DataTableBean dtb);\n\t/**\n\t * 查询遗留备忘具体内容\n\t * Method Description : ########\n\t * @param noteId 遗留备忘ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceNote(String noteId);\n\t/**\n\t * 保存矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void saveSeTraceNote(SeTraceNote obj) ;\n\t/**\n\t * 保存(或落实保存) 遗留备忘\n\t * Method Description : ########\n\t * @param id 遗留备忘ID\n\t * @param content 描述\n\t * @param status 1:保存并落实 0:仅保存\n\t */\n\tpublic void saveSeTraceNoteContent(String id,String content,String status,String modifier) ;\n\t/**\n\t * 更新矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void updateSeTraceNote(SeTraceNote obj);\n\t/**\n\t * 根据主键查询矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceNote querySeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 删除矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵记事对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceNoteByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRisk(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeRisk(SeRisk obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeRisk(SeRisk obj);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeRisk querySeRiskById(java.lang.String pk);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRiskById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRiskByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUser(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统用户(在岗)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUser(String projectId);\n\t/**\n\t * 查询系统用户(全部)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUserForAll(String projectId);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeUser(SeUser obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeUser(SeUser obj);\n\t/**\n\t * 验证用户名密码\n\t * @param userName 用户名\n\t * @param password 密码\n\t * @return 成功返回success 否则返回错误代码\n\t */\n\tpublic String validateUserAndPassword(String userName,String password);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserById(java.lang.String pk);\n\t/**\n\t * 根据用户账号查询用户对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserByAccount(String account);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserByIds(String ids);\n\t/**\n\t * 查询项目信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectInfo(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取项目信息选项\n\t * @return\n\t */\n\tpublic List querySeProjectOptions();\n\t/**\n\t * 保存项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void saveSeProjectInfo(SeProjectInfo obj) ;\n\t/**\n\t * 更新项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void updateSeProjectInfo(SeProjectInfo obj);\n\t/**\n\t * 根据主键查询项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectInfo querySeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 删除项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 批量删除项目信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectInfoByIds(String ids);\n\t\n\t/**\n\t * 查询项目人员信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMapProjectUser(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void saveSeMapProjectUser(SeMapProjectUser obj) ;\n\t/**\n\t * 更新项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void updateSeMapProjectUser(SeMapProjectUser obj);\n\t/**\n\t * 根据主键查询项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeMapProjectUser querySeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 删除项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目人员信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMapProjectUserByIds(String ids);\n\t\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List queryUserLogForEdit(Map<String,String> m,Page p );\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic DataGrid queryUserLog(Map<String,String> m,Page p );\n\t/**\n\t * 更新日志\n\t * @param log\n\t */\n\tpublic void updateUserLog(SePersonLog log);\n\t/**\n\t * 创建空白日志\n\t */\n\tpublic SePersonLog createBlankUserLog();\n\t/**\n\t * 删除用户日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePersonLogById(java.lang.String pk);\n\t/**\n\t * 批量删除用户日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePersonLogByIds(String ids);\n\t\n\t/**\n\t * 工作日志关联任务\n\t * @param logIds 日志ID 多个ID用\",\"隔开\n\t * @param taskId 任务ID\n\t * @return 成功返回SUCCESS 失败返回原因\n\t */\n\tpublic String linkTaskForLog(String logIds,String taskId);\n\t/**\n\t * 查询公共组件列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySePubModule(Map<String,String> m , Page p);\n\t/**\n\t * 保存公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void saveSePubModule(SePubModule obj) ;\n\t/**\n\t * 更新公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void updateSePubModule(SePubModule obj);\n\t/**\n\t * 根据主键查询公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic SePubModule querySePubModuleById(java.lang.String pk);\n\t/**\n\t * 删除公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePubModuleById(java.lang.String pk);\n\t/**\n\t * 批量删除公共组件对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePubModuleByIds(String ids);\n\t/**\n\t * 查询待办任务列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceTask(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 保存待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void saveSeTraceTask(SeTraceTask obj) ;\n\t/**\n\t * 更新待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void updateSeTraceTask(SeTraceTask obj);\n\t/**\n\t * 用于ajax更新矩阵任务\n\t * Method Description : ########\n\t * @param id 任务ID\n\t * @param obj 更新的对象\n\t * @param nullProperties 置空的属性\n\t * @return 成功返回SUCCESS 否则返回错误原因\n\t */\n\tpublic String updateSeTraceTaskForAjax(String id,SeTraceTask obj, Object[] nullProperties);\n\t/**\n\t * 更新任务进度\n\t * Method Description : ########\n\t * @param taskId 任务ID\n\t * @param process 进度\n\t */\n\tpublic void updateProcessOfTraceTask(String taskId,Integer process);\n\t/**\n\t * 根据主键查询待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceTask querySeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 删除待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 批量删除待办任务对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceTaskByIds(String ids);\n\t\n\t/**\n\t * 个人任务转日志\n\t * @param userIds 人员ID,多个人员用\",\"隔开\n\t * @param taskId 任务ID\n\t * @param date 日期\n\t * @param workLoad 时长(小时)\n\t */\n\tpublic void transformATaskToLog(String userIds,String taskId,String date,Float workLoad);\n\t\n\t/**\n\t * 查询人员奖惩记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUserRewardAmerce(Map<String,String> m , Page p);\n\t/**\n\t * 保存人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void saveSeUserRewardAmerce(SeUserRewardAmerce obj) ;\n\t/**\n\t * 更新人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void updateSeUserRewardAmerce(SeUserRewardAmerce obj);\n\t/**\n\t * 根据主键查询人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeUserRewardAmerce querySeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 删除人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 批量删除人员奖惩记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserRewardAmerceByIds(String ids);\n\t\n\t/**\n\t * 用户视图获取任务信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryTaskListForUserView(Map<String,String> m , Page p);\n\t/**\n\t * 用户视图获取备忘信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryNoteListForUserView(Map<String,String> m , Page p);\n\tpublic List queryLogListForUserView(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取所有节点信息 用于ztree simple data\n\t * @param rootId 根节点ID\n\t * @return 所有节点列表\n\t */\n\tpublic List queryAllSeTrace(String rootId);\n\t\n\t\n\tpublic List seCountWorkLoadGetData(Map<String,String> m );\n\tpublic List seCountTaskGetData(Map<String,String> m );\n\tpublic List seCountTraceGetData(Map<String,String> m );\n\t\n\tpublic List seCountWorkLoadOfDay(Map<String,String> m);\n\t\n\tpublic DataTableBean seCountWorkLoadGetDataForBootstrap(DataTableBean dtb );\n\tpublic DataTableBean seCountTaskGetDataForBootstrap(DataTableBean dtb );\n\t\n\t\n\t\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefect(Map<String,String> m , Page p);\n\t\n\tpublic DataTableBean queryMySeTraceDefect(DataTableBean dtb);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefect(SeTraceDefect obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefect(SeTraceDefect obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefect querySeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectByIds(String ids);\n\t\n\t/**\n\t * 查询某缺陷的图片信息\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceDefect(String defectId);\n\t/**\n\t * 更新缺陷状态\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @param status 状态\n\t * @param userId 操作用户\n\t * @param desc 描述\n\t */\n\tpublic void updateTraceDefectStatus(String defectId,String status,String userId,String desc);\n\t/**\n\t * 查询问题修改状态历史列表\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic List queryTraceDefectStatusList(String defectId);\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefectRepair(Map<String,String> m , Page p);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefectRepair(SeTraceDefectRepair obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefectRepair(SeTraceDefectRepair obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefectRepair querySeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectRepairByIds(String ids);\n\t\n\t/**\n\t * 查询我的项目\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMyProject(String userId);\n\t/**\n\t * 给某个矩阵任务派工\n\t * @param traceTaskId 矩阵任务ID\n\t * @param userIds 人员ID 多个人员用\",\"隔开\n\t * @return\n\t */\n\tpublic String assignOperator(String traceTaskId,String userIds);\n\t/**\n\t * 查询系统角色列表(jsp管理界面使用)\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRoleForList(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统角色列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRole(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void saveSeRole(SeRole obj) ;\n\t/**\n\t * 更新系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void updateSeRole(SeRole obj);\n\t/**\n\t * 根据主键查询系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic SeRole querySeRoleById(java.lang.String pk);\n\t/**\n\t * 删除系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRoleById(java.lang.String pk);\n\t/**\n\t * 批量删除系统角色对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRoleByIds(String ids);\n\t\n\t/**\n\t * 查询用户系统/项目 角色\n\t * Method Description : ########\n\t * @param projectId 如果是null或空字符串则查询系统角色 否则查询项目角色\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryUserRole(String projectId,String userId);\n\t/**\n\t * 保存用户角色\n\t * Method Description : ########\n\t * @param projectId 项目ID(有则是保存项目角色否则为系统角色)\n\t * @param userId 用户ID\n\t * @param roleCodes 角色CODE\n\t * @return 成功返回SUCCESS\n\t */\n\tpublic String saveUserRole(String projectId,String userId,String roleCodes);\n\t/**\n\t * \t获取登录用户信息\n\t * Method Description : ########\n\t * @param userAccount 用户账号\n\t * @return\n\t */\n\tpublic LoginUserInfo createLoginUserInfo(String userAccount);\n\t\n\t/**\n\t * 查询系统菜单列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMenu(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统菜单\n\t * @param obj 系统菜单对象\n\t * @param parentId 父节点ID,如果增加根节点请设置为空\n\t */\n\tpublic void saveSeMenu(SeMenu obj,String parentId) ;\n\t/**\n\t * 更新系统菜单\n\t * @param obj 系统菜单对象\n\t */\n\tpublic void updateSeMenu(SeMenu obj);\n\t/**\n\t * 根据主键查询系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic SeMenu querySeMenuById(java.lang.String pk);\n\t/**\n\t * 查询菜单列表-treegrid\n\t * Method Description : ########\n\t * @param m 查询条件\n\t * @param id 父节点ID(查询子节点用)\n\t * @param p 分页信息(只有第一级节点才使用) 当id参数有值的时候该参数无效\n\t * @return\n\t */\n\tpublic List querySeMenuForDataGrid(String id, Page p);\n\t/**\n\t * 查询菜单列表-ztree\n\t * Method Description : ########\n\t * @return\n\t */\n\tpublic List querySeMenuForZtree();\n\t/**\n\t * 根据MenuID查询树形代码\n\t * @param menuId 菜单ID\n\t * @return\n\t */\n\tpublic String queryTreeCodeById(String menuId);\n\t/**\n\t * 根据树形代码查询菜单\n\t * @param treeCode 树形代码\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuByTreeCode(String treeCode);\n\t/**\n\t * 查询某节点的父节点\n\t * Method Description : ########\n\t * @param id 子节点ID\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuOfParent(String id);\n\t/**\n\t * 删除系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMenuById(java.lang.String pk);\n\t/**\n\t * 批量删除系统菜单对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMenuByIds(String ids);\n\t/**\n\t * 查询权限字典列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeAuth(Map<String,String> m , Page p);\n\t/**\n\t * 保存权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void saveSeAuth(SeAuth obj) ;\n\t/**\n\t * 更新权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void updateSeAuth(SeAuth obj);\n\t/**\n\t * 根据主键查询权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic SeAuth querySeAuthById(java.lang.String pk);\n\t/**\n\t * 删除权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeAuthById(java.lang.String pk);\n\t/**\n\t * 批量删除权限字典对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeAuthByIds(String ids);\n\t/**\n\t * 查询某角色的权限\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryAuthOfRole(String roleCode);\n\t/**\n\t * 查询某角色的菜单\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryMenuOfRole(String roleCode);\n\t/**\n\t * 保存角色与权限关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param authCodes 权限CODE 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveAuthOfRole(String roleCode,String authCodes);\n\t/**\n\t * 保存角色与菜单关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param menuIds 菜单ID 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveMenuOfRole(String roleCode,String menuIds);\n\t/**\n\t * 某人在某项目中是否有某权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @param authCode 权限CODE\n\t * @return 有权限返回YES 无权限返回NO\n\t */\n\tpublic String hasAuth(String userId,String projectId,String authCode);\n\t/**\n\t * 某人在某项目中的权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @return Map<authCode,YES>\n\t */\n\tpublic Map<String,String> queryAuth(String userId,String projectId);\n\t/**\n\t * 查询某人的菜单\n\t * Method Description : ########\n\t * @param userId 用户\n\t * @param parentCode 父节点CODE,例如查询第一级目录则为root\n\t * @param level 菜单等级 如果是查询全部子菜单则为null即可\n\t * @param onlyLeaf 是否只查询叶子节点 1:是 其他值:否\n\t * @return\n\t */\n\tpublic List<MenuBean> queryMenuOfUser(String userId,String parentCode , Integer level,String onlyLeaf);\n\t/**\n\t * 查询用户权限\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryAuthOfUser(String userId);\n\t/**\n\t * 查询用户菜单\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMenuOfUser(String userId);\n\t/**\n\t * 查询会议列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeeting(Map<String,String> m , Page p);\n\t/**\n\t * 查询会议列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询风险列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeRiskForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询公共模块列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySePubModuleForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 保存会议\n\t * @param obj 会议对象\n\t */\n\tpublic void saveSeMeeting(SeMeeting obj) ;\n\t/**\n\t * 更新会议\n\t * @param obj 会议对象\n\t */\n\tpublic void updateSeMeeting(SeMeeting obj);\n\t/**\n\t * 根据主键查询会议对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeeting querySeMeetingById(java.lang.String pk);\n\t/**\n\t * 删除会议对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingById(java.lang.String pk);\n\t/**\n\t * 批量删除会议对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingByIds(String ids);\n\t\n\t/**\n\t * 查询会议记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeetingRecord(Map<String,String> m , Page p);\n\t/**\n\t * 保存会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void saveSeMeetingRecord(SeMeetingRecord obj) ;\n\t/**\n\t * 更新会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void updateSeMeetingRecord(SeMeetingRecord obj);\n\t/**\n\t * 根据主键查询会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeetingRecord querySeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 删除会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 批量删除会议记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingRecordByIds(String ids);\n\t/**\n\t * 查询会议要点\n\t * Method Description : ########\n\t * @param meetingCode 会议CODE\n\t * @param classify 条目分类\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingRecordForMetting(String meetingCode,String classify);\n\t/**\n\t * 查询项目文档列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectDoc(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void saveSeProjectDoc(SeProjectDoc obj) ;\n\t/**\n\t * 更新项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void updateSeProjectDoc(SeProjectDoc obj);\n\t/**\n\t * 根据主键查询项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectDoc querySeProjectDocById(java.lang.String pk);\n\t/**\n\t * 删除项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectDocById(java.lang.String pk);\n\t/**\n\t * 根据附件Id删除文档\n\t * Method Description : ########\n\t * @param attachId 附件ID\n\t */\n\tpublic void deleteSeProjectDocByAttachId(java.lang.String attachId);\n\t/**\n\t * 批量删除项目文档对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectDocByIds(String ids);\n\t\n\t/** 查询个人天计划列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayPlan(Map<String,String> m , Page p);\n\t/**\n\t * 保存个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void saveSeDayPlan(SeDayPlan obj) ;\n\t/**\n\t * 更新个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void updateSeDayPlan(SeDayPlan obj);\n\t/**\n\t * 根据主键查询个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayPlan querySeDayPlanById(java.lang.String pk);\n\t/**\n\t * 删除个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayPlanById(java.lang.String pk);\n\t/**\n\t * 批量删除个人天计划对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayPlanByIds(String ids);\n\t/**\n\t * 查询天计划-portal\n\t * @param dtb \n\t */\n\tpublic DataTableBean queryDayPlanForIndexPlugin(DataTableBean dtb);\n\t/**\n\t * 快速保存天计划条目\n\t * Method Description : ########\n\t * @param planContent 计划内容\n\t * @param userId 用户ID\n\t * @return 条目ID\n\t */\n\tpublic String saveSimpleSeDayPlan(String dayPlanId,String planContent,String userId);\n\t\n}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "Service newService();", "public interface BancoService {\n public void realizarOperacao();\n}" ]
[ "0.7244236", "0.6548779", "0.6546034", "0.63242114", "0.629107", "0.62621254", "0.6256427", "0.62449294", "0.61991096", "0.6160477", "0.6080748", "0.60012627", "0.5991961", "0.59887004", "0.597873", "0.596069", "0.5942735", "0.5941592", "0.5935085", "0.59095204", "0.5895371", "0.5894433", "0.5882742", "0.5870599", "0.5859936", "0.5854425", "0.5853683", "0.5835218", "0.5833421", "0.58056056", "0.5802714", "0.57982296", "0.5779809", "0.57756144", "0.5745177", "0.57446414", "0.5735228", "0.5730666", "0.5730351", "0.572881", "0.57278275", "0.5719692", "0.5718653", "0.5718653", "0.57066995", "0.5704088", "0.5701955", "0.5700911", "0.5695027", "0.5670369", "0.56679296", "0.5657502", "0.5657323", "0.5655071", "0.5654803", "0.5649542", "0.56403804", "0.56399417", "0.56388617", "0.5632392", "0.56239146", "0.56238437", "0.56208766", "0.56089604", "0.56061655", "0.5604734", "0.5604127", "0.56014496", "0.55968434", "0.5593258", "0.55925643", "0.55918366", "0.55916715", "0.55851495", "0.55849296", "0.5578527", "0.55770993", "0.5569842", "0.55675536", "0.5563918", "0.55571395", "0.5553176", "0.5544966", "0.55438644", "0.5543248", "0.554119", "0.5538256", "0.55367184", "0.55336916", "0.55335563", "0.5529122", "0.5517625", "0.55175894", "0.551758", "0.5516881", "0.55154175", "0.54998016", "0.5496531", "0.54939973", "0.5492308", "0.54912215" ]
0.0
-1
/ access modifiers changed from: protected
public boolean decodeForConnectwb(int startIndex, int mediaPrefixLength) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "private PropertyAccess() {\n\t\tsuper();\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 gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "private TMCourse() {\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public abstract String mo118046b();" ]
[ "0.73744047", "0.7040692", "0.692117", "0.69076973", "0.6844561", "0.68277687", "0.68048066", "0.6581614", "0.653803", "0.6500888", "0.64905626", "0.64905626", "0.6471316", "0.64376974", "0.64308083", "0.64308083", "0.642771", "0.6424499", "0.6419003", "0.64083034", "0.64053965", "0.6399863", "0.6398998", "0.6397645", "0.6377549", "0.63728356", "0.63699985", "0.6366876", "0.6353238", "0.63333476", "0.63253313", "0.6324922", "0.6324922", "0.63058454", "0.62785864", "0.6270248", "0.62499714", "0.62234515", "0.6220762", "0.6211659", "0.620336", "0.61937845", "0.618126", "0.6174812", "0.6157212", "0.61370605", "0.6121414", "0.61183035", "0.61175376", "0.6100111", "0.6091379", "0.6091379", "0.60856384", "0.6083921", "0.60691255", "0.6068961", "0.60650575", "0.6054537", "0.60455734", "0.6045201", "0.6033711", "0.60293764", "0.6024115", "0.6017829", "0.60143995", "0.60133785", "0.60101455", "0.5994944", "0.59942245", "0.599371", "0.59915304", "0.59905994", "0.59837806", "0.5983637", "0.59662336", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.596418", "0.596418", "0.59599984", "0.5955761", "0.5953097", "0.5947849", "0.5944442", "0.59390324", "0.5931905", "0.59317887", "0.59311014", "0.5930125", "0.5928699", "0.5925024", "0.59242857", "0.5923635", "0.59224457", "0.5920236", "0.5919085", "0.5918472" ]
0.0
-1
checks the validity of employee ID
private boolean validityChecker(TextField employeeId) { String empid = employeeId.getValue(); int length = empid.length(); if (empid.matches(".*[A-Za-z].*") || length < minLength || length> maxLength) return false; if(!isNew){ if (EmployeeDAO.getEmployee(empid) == null) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean validateEmployeeId(String employeeId);", "public boolean validateEmployeeID() {\n if (employeeID.length() - 1 != 6) {\n return false;\n }\n else if (employeeID.toCharArray()[2] != '-') {\n return false;\n }\n else if (Character.isLetter(employeeID.toCharArray()[0] & employeeID.toCharArray()[1])) {\n return true;\n }\n else if (Character.isDigit(employeeID.toCharArray()[3] & employeeID.toCharArray()[4]\n & employeeID.toCharArray()[5] & employeeID.toCharArray()[6])) {\n return true;\n }\n else{\n return false;\n }\n }", "public static boolean empidValidate(String emp_id){\n if(emp_id.matches(\"\\\\p{IsAlphabetic}{2}-\\\\d{4}\"))\n return true;\n\n else {\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n return false;\n }\n\n }", "private boolean isValidEmployeeIds(List<Employee> employees) {\n //all employee Ids must be positive integer value\n if (employees.stream().mapToInt(Employee::getEmployeeId)\n .anyMatch(employeeId -> employeeId<=0))\n // if any id is <= 0 then the list is not valid\n return false;\n\n //EmployeeId must be unique\n long idCount = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .count();\n long idDistinctCount = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .distinct().count();\n // if both are equal then the ids are already unique\n return idCount == idDistinctCount;\n }", "public Employeedetails checkEmployee(String uid);", "public abstract boolean isValidID(long ID);", "public static String verifyEmployeeID(String employeeID) {\r\n\r\n if (employeeID.matches(\"^[0-9]*$\")) {\r\n try {\r\n int employeeId = Integer.parseInt(employeeID);\r\n } catch (Exception e) {\r\n System.err.println(e.getMessage());\r\n return null;\r\n }\r\n\r\n }\r\n return employeeID;\r\n }", "private void validateEmployee(final TimeEntryDto timeEntryDto, final BindingResult result) {\n\t\tif (timeEntryDto.getEmployeeId() == null) {\n\t\t\tresult.addError(new ObjectError(\"employee\", \"Employee not informed.\"));\n\t\t\treturn;\n\t\t}\n\n\t\tLOGGER.info(\"Validating employee id {}: \", timeEntryDto.getEmployeeId());\n\t\tfinal Optional<Employee> employee = this.employeeService.findById(timeEntryDto.getEmployeeId());\n\t\tif (!employee.isPresent()) {\n\t\t\tresult.addError(new ObjectError(\"employee\", \"Employee not found. Nonexistent ID.\"));\n\t\t}\n\t}", "public void setEmployeeID(int employeeID)\n {\n if(employeeID<=9999&&employeeID>=1000)\n {\n this.employeeID = employeeID;\n }else\n {\n System.out.println(\"The Employee ID should be of 4 digits only.\");\n \n }\n }", "public boolean validateID() {\n\t\tif (this.id == null || this.id.length() < 1)\n\t\t\treturn false;\n\t\ttry {\n\t\t\tInteger.parseInt(this.id);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void isEmployee(String username) throws ValidationException {\n\t\ttry {\n\t\t\temployeeService.getEmployeeId(username);\n\t\t} catch (ServiceException e) {\n\t\t\tthrow new ValidationException(INVALIDEMPLOYEE);\n\t\t}\n\t}", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "private boolean isValidManagerIds(List<Employee> employees) {\n // if an employee's manager id refers to his own employee id, then this is invalid\n if (employees.stream().filter(e -> e.getEmployeeId().equals(e.getManagerId())).count()!=0)\n return false;\n\n List<Integer> employeeIds = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .boxed().collect(Collectors.toList());\n List<Integer> managerIds = employees.stream()\n .filter(Employee::hasManager)\n .mapToInt(Employee::getManagerId).distinct()\n .boxed().collect(Collectors.toList());\n //check if there's a manager id that is not one of the employees\n return employeeIds.containsAll(managerIds);\n }", "public void isValidEmployee(Employee employee) throws ValidationException, ServiceException {\n\t\tNumberValidator.isValidEmployeeId(employee.getEmployeeId());\n\t\tNumberValidator.isValidMobileNumber(employee.getMobileNumber());\n\t\tStringValidator.isValidName(employee.getName());\n\t\tStringValidator.isValidEmail(employee.getEmail());\n\t\tStringValidator.isValidPassword(employee.getPassword());\n\t\tStringValidator.isValidUsername(employee.getUsername());\n\t\tInteger id = employeeService.exists(employee.getEmployeeId());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Employee Id already exists\");\n\t\t}\n\t\tid = employeeService.exists(employee.getMobileNumber());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Mobile Number already exists\");\n\t\t}\n\t\tid = employeeService.exists(employee.getEmail());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Email Id already exists\");\n\t\t}\n\t\tDateValidator.isValidJoinedDate(employee.getJoinedDate());\n\t}", "public void setId(long id) throws InvalidIdException {\n// System.out.println(\"Id passed is: \" + id);\n // Check if the ID is within range\n if(id >= MINIMUM_ID_NUMBER && id <= MAXIMUM_ID_NUMBER) {\n \n // Set this value to the attribtue\n this.id = id;\n } else { // If not\n \n // Then throw error and display error message.\n throw new InvalidIdException(\"Employee ID must be between \" + \n MINIMUM_ID_NUMBER + \" and \" + MAXIMUM_ID_NUMBER);\n } \n }", "public void setEmployeeid(long employeeid)\n {\n this.employeeid = employeeid;\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isSetEmployeeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EMPLOYEEID_ISSET_ID);\n }", "public boolean isEveryIdValid()\n {\n return(idValidation.size()==0);\n }", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public boolean employeeIdPresent(int employeeId) {\n\n \tif (employeeService.employeeIdPresent(employeeId)) {\n return true;\n } else {\n \t return false;\n \t}\n }", "private boolean checkId() {\n int sum = 0;\n int id;\n\n try\n {\n id = Integer.parseInt(ID.getText().toString());\n }\n catch (Exception e)\n {\n return false;\n }\n\n if (id >= 1000000000)\n return false;\n\n for (int i = 1; id > 0; i = (i % 2) + 1) {\n int digit = (id % 10) * i;\n sum += digit / 10 + digit % 10;\n\n id=id/10;\n }\n\n if (sum % 10 != 0)\n return false;\n\n return true;\n }", "public void setEmployeeId(long employeeId) {\n this.employeeId = employeeId;\n }", "@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e.getMessage());\n\n\t\t}\n\t}", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "int getEmployeeId();", "@Test\n\tpublic void searhEmpIdtoAddress() {\n\t\tEmployee employee = employeeService.searhEmpIdtoAddress();\n\t\tAssert.assertEquals(id.intValue(), employee.getId().intValue());\n\t\n\t}", "public static boolean verifyId(long id) {\n \n boolean isTrue = true;\n \n if(id >= MINIMUM_ID_NUMBER && id <= MAXIMUM_ID_NUMBER) {\n return isTrue;\n } else {\n isTrue = false;\n \n return isTrue;\n } \n }", "public int getEmployeeId() {\r\n\t\r\n\t\treturn employeeId;\r\n\t}", "public void setEmployeeId(long employeeId);", "private void checkforEIDMismatch(Person person)\n\t\t\tthrows PersonIdServiceException {\n\t\tlog.debug(\"Checking for EID mismatch...\");\n\t\ttry {\n\t\t\tMap eidmap = new HashMap();\n\t\t\tString problemDomain = null;\n\t\t\tfor (Iterator i = person.getPersonIdentifiers().iterator(); i\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tPersonIdentifier pi = (PersonIdentifier) i.next();\n\t\t\t\tString domain = pi.getAssigningAuthority().getNameSpaceID();\n\t\t\t\tString corpId = pi.getCorpId();\n\t\t\t\tString updatedCorpId = pi.getUpdatedCorpId();\n\n\t\t\t\tif (eidmap.containsKey(domain)) {\n\t\t\t\t\tString eid = (String) eidmap.get(domain);\n\t\t\t\t\tif (updatedCorpId != null) {\n\t\t\t\t\t\tif (!eid.equals(updatedCorpId)) {\n\t\t\t\t\t\t\tlog.debug(\"EID mismatch found for:\\n\" + \"Domain: \"\n\t\t\t\t\t\t\t\t\t+ domain + \"\\n\" + \"EID1: \" + eid + \"\\n\"\n\t\t\t\t\t\t\t\t\t+ \"EID2: \" + updatedCorpId);\n\t\t\t\t\t\t\tproblemDomain = domain;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!eid.equals(corpId)) {\n\t\t\t\t\t\t\tlog.debug(\"EID mismatch found for:\\n\" + \"Domain: \"\n\t\t\t\t\t\t\t\t\t+ domain + \"\\n\" + \"EID1: \" + eid + \"\\n\"\n\t\t\t\t\t\t\t\t\t+ \"EID2: \" + corpId);\n\t\t\t\t\t\t\tproblemDomain = domain;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tString veid = (updatedCorpId != null) ? updatedCorpId\n\t\t\t\t\t\t\t: corpId;\n\t\t\t\t\tif (veid != null) {\n\t\t\t\t\t\teidmap.put(domain, veid);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (problemDomain != null) {\n\t\t\t\t// check to see if we care about this problemDomain\n\t\t\t\tif (!getEIDDomains().contains(problemDomain)) {\n\t\t\t\t\tlog\n\t\t\t\t\t\t\t.debug(\"EID mismatch exists but alerting is not configured for domain: \"\n\t\t\t\t\t\t\t\t\t+ problemDomain);\n\t\t\t\t} else {\n\t\t\t\t\tString description = \"Multiple EID attributes exist for single CDE person\";\n\t\t\t\t\tif (!new ReviewQueue().exists(description, person)) {\n\t\t\t\t\t\tPersonReview r = new PersonReview();\n\t\t\t\t\t\tr.setDescr(description);\n\t\t\t\t\t\tr.setDomainId(problemDomain);\n\t\t\t\t\t\tr.setUserId(\"System\");\n\t\t\t\t\t\tr.addPerson(person);\n\t\t\t\t\t\tsubmitReview(r);\n\t\t\t\t\t\tlog.debug(\"EID mismatch PersonReview sent. Domain: \"\n\t\t\t\t\t\t\t\t+ problemDomain);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog\n\t\t\t\t\t\t\t\t.debug(\"EID mismatch exists but is already recorded in Review Queue\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlog.debug(\"No EID mismatch found\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.error(e, e);\n\t\t\tthrow new PersonIdServiceException(e.getMessage());\n\t\t}\n\t}", "private boolean CheckID(String id) {\n\t\tif ((!id.matches(\"([0-9])+\") || id.length() != 9) && (!id.matches(\"S([0-9])+\") || id.length() != 10)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "public static Integer safeToUse(Integer empID) {\n\n if (IDFactory.setOfAssignedIDs.contains(empID) || empID <= 0){\n empID = IDFactory.generateID();\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n\n else {\n IDFactory.setOfAssignedIDs.add(empID);\n return empID;\n }\n }", "static boolean verifyID(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif((c <= 'Z' && c >= 'A') || (c >= 'a' && c <= 'z')) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c >= '0' && c <= '9' || c == '_' || c == '-') //is digit or _ or -\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn id.length() > 0;\r\n\t}", "public void setEmployeeId(String employeeId) {\n this.employeeId = employeeId;\n }", "private void validate(Long equipmentId,Long id) throws Exception {\n\t\tif(equipmentId == -1){\n\t\t\tthrow new Exception(\"未选择设备!\");\n\t\t}else{\n\t\t\tif(this.isBlankId(id)){\n\t\t\t\tRepairPlan bean = this.getService().loadByEquipment(equipmentId, \"MAINTAIN\");\n\t\t\t\tif(bean != null){\n\t\t\t\t\tthrow new Exception(\"重复保养记录!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public long getEmployeeId() {\n\t\treturn employeeId;\n\t}", "public boolean validateEmployeePackage() {\n\t\treturn this.validateID() && this.validateFirstName() && this.validateLastName();\n\t}", "public int getEmployeeId() {\n return employeeId_;\n }", "public int getEmployeeId() {\n return employeeId_;\n }", "private void checkID(int ID)\r\n {\r\n if(student_IDs.contains(ID))\r\n {\r\n throw new IllegalArgumentException(\"There is already a student that exists with this ID: \" + ID);\r\n }\r\n }", "public void setEmpID(String _empID) {\r\n this.empID = _empID;\r\n }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public int getEmployeeId() {\r\n\t\treturn employeeId;\r\n\t}", "public int getEmployeeId() {\n\t\treturn employeeId;\n\t}", "boolean isValid(String candidateOid);", "public void setEmployeeId(long employeeId) {\n\t\tthis.employeeId = employeeId;\n\t}", "public void setEmployeeId(int employeeId) {\r\n\t\r\n\t\tthis.employeeId = employeeId;\r\n\t}", "private Optional<Entry> checkId(final Long eid) {\n Optional<Entry> result = Optional.empty();\n if (eid != null) {\n final Entry existing = this.dao.findOne(eid);\n if (existing != null\n && Objects.equals(\n existing.getUser().getId(),\n SecurityUtils.actualUser().getId()\n )\n ) {\n result = Optional.of(existing);\n }\n if (!result.isPresent()) {\n AbstractException.throwEntryIdNotFound(eid);\n }\n }\n return result;\n }", "public Long getEmployeeId() {\r\n\t\treturn employeeId;\r\n\t}", "@Override\n\tpublic boolean ifEmp(int eid, String passwd) {\n\t\treturn eb.ifEmp(eid, passwd);\n\t}", "public boolean isEmployee(int employeeId) throws ValidationException {\n\t\ttry {\n\t\t\temployeeService.getEmployee(employeeId);\n\t\t\treturn true;\n\t\t} catch (ServiceException e) {\n\t\t\t// ServiceException is handled as ValidationException since no employee is\n\t\t\t// present for given id\n\t\t\tthrow new ValidationException(e, INVALIDEMPLOYEE);\n\t\t}\n\t}", "private DataWrapper isEduValid(Long fid, Long eid) {\n Education edu = founderService.getEdu(eid);\n if (edu == null || edu.getFounderId() != fid) {\n return new DataWrapper(\n ErrorCodeEnum.BIZ_DATA_NOT_FOUND,\n String.format(\n \"The founder (ID=%d) has no education experience (ID=%d).\",\n fid, eid));\n }\n return isFounderValid(fid);\n }", "static boolean verifyIDRelaxed(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif(Character.isLetterOrDigit(c)) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ' || c == '_' || c == '-')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn id.length() > 0;\r\n\t}", "public boolean checkUserId() {\n if (userIdEditText.getText().toString().isEmpty()) {\n userIdContainer.setError(getString(R.string.error_user_id));\n } else {\n userIdContainer.setError(null);\n }\n return !userIdEditText.getText().toString().isEmpty();\n }", "public boolean removeEmployee(int empID){\n log.debug(\"Inside removeEmployee Method.\");\n String deleteSQL;\n\n log.debug(\"User entered only employeeID, removing employee by ID\");\n deleteSQL = \"DELETE FROM employeeDetails where empID = \" + empID;\n\n if(database.updateDatabase(deleteSQL)){\n removeEmployeeAvailability(empID);\n log.debug(\"Successfully removed employee, returning to controller.\");\n return true;\n }\n log.debug(\"Failed to removed employee, returning to controller.\");\n return false;\n }", "public static boolean isValidId(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public static boolean isValidId(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public long getEmployeeId();", "private void validateId(String id) {\n if (!id.matches(\"[0-9]+\")) {\n throw new IllegalArgumentException(\"Invaild Tweet Id\");\n }\n return;\n }", "@Override\r\n\tpublic int idcheck(String loginId) {\n\t\treturn dao.idcheck(loginId);\r\n\t}", "@Test\r\n\tpublic void testSetGetIdInvalid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setId(idInvalid);\r\n\t\tassertEquals(idInvalid, doctor.getId());\r\n\r\n\t}", "public void setEmpId(int parseInt) {\n\t\t\n\n\n\t\t\n\t}", "public String getEmployeeId() {\n return employeeId;\n }", "public String getEmployeeId() {\n return employeeId;\n }", "public long getEmployeeId() {\n return employeeId;\n }", "@Test\n\tpublic void validEmailIdIsTested() throws InValidEmailException {\n\t\tString emailId = \"[email protected]\";\n\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailId Format\");\n\t\tassertTrue(isValidMail);\n\t}", "@Test\r\n\tpublic void testGetEmployee() {\n\t\tTransaction test=new Transaction(null, null, 0, null, null, null, null, null);\r\n\t\t\r\n\t\tassertEquals(test.getID(),null); \r\n\t\t\r\n\t}", "@Override\r\n\tpublic int emailcheck(String email) {\n\t\treturn dao.idcheck(email);\r\n\t}", "public abstract boolean verifyIdAnswers(String firstName, String lastName, String address, String city, String state, String zip, String ssn, String yob);", "@Override\n\tpublic long getEmployeeId() {\n\t\treturn _userSync.getEmployeeId();\n\t}", "@GetMapping(\"/employebyid/{empId}\")\n\t public ResponseEntity<Employee> getEmployeeById(@PathVariable int empId)\n\t {\n\t\tEmployee fetchedEmployee = employeeService.getEmployee(empId);\n\t\tif(fetchedEmployee.getEmpId()==0)\n\t\t{\n\t\t\tthrow new InvalidEmployeeException(\"No employee found with id= : \" + empId);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn new ResponseEntity<Employee>(fetchedEmployee,HttpStatus.OK);\n\t\t}\n }", "public Boolean verifyBusinessID(int id, int count){\n //checks that number entered is more than 0 and less than max\n return !(id > count || id <= 0);\n }", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "private boolean employeeDataIsOk(RoleAndSeniority ras, EmployeeDto newEmpDto) {\n\t\tif(employeeSalaryInTheCorrectRange(ras, newEmpDto.getSalary()) && employeeSsnValid(newEmpDto)\n\t\t\t\t&& employeeNameValid(newEmpDto) && employeeDobValid(newEmpDto)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void test() {\n\t\tlong firstID = UIDGen.getInstance().getNextId();\n\t\tint n = 100;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tUIDGen.getInstance().getNextId();\n\t\t}\n\t\tlong currentID = UIDGen.getInstance().getNextId();\n\t\tassertEquals(currentID, firstID + n + 1);\n\n\t\t// expect a IDInvalidException exception for using and\n\t\t// external id that has already been used\n\t\tlong exteranlId = currentID;\n\t\tThrowable caught = null;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tcaught = t;\n\t\t}\n\t\tassertNotNull(caught);\n\t\tassertSame(IDInvalidException.class, caught.getClass());\n\n\t\t// push an external id that is not used and expect no exception\n\t\texteranlId = currentID + 2;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tfail();\n\t\t}\n\n\t\t// expect an exception as we put the same id again\n\t\texteranlId = currentID;\n\t\tcaught = null;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tcaught = t;\n\t\t}\n\t\tassertNotNull(caught);\n\t\tassertSame(IDInvalidException.class, caught.getClass());\n\n\t\t// must skip currentID + 2 as it was defined as an external id\n\t\tassertEquals(UIDGen.getInstance().getNextId(), currentID + 1);\n\t\tassertEquals(UIDGen.getInstance().getNextId(), currentID + 3);\n\t}", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "@Override\n\tpublic boolean activeEmployeeCheck(int empid) {\n\t\tString status = null;\n\t\tboolean isActive=true;\n\t\t\n\t\tEmployee emp = employeeRepository.findByEmployeeId(empid);\n\t\tstatus = emp.getStatus();\n\t\tif(status.equalsIgnoreCase(\"A\")) //comparing with active flag \"A\" from employee table\n\t\t\t\tisActive=true;\t\n\t\t\telse\n\t\t\t\tisActive=false;\n\t\t//System.out.println(\"isActive\"+isActive);\n\t\treturn isActive;\n\t}", "public boolean employeeExists() {\n\t\tResultSet r = super.query(\"SELECT \" + C.COLUMN_ID + \" FROM \" + C.TABLE_EMPLOYEE\n\t\t\t\t+ \" WHERE \" + C.COLUMN_ID + \"=\" + this.getID() + \" LIMIT 1\");\n\t\tif (r == null)\n\t\t\treturn false;\n\t\ttry {\n\t\t\tsuper.setRecentError(null);\n\t\t\treturn r.first();\n\t\t} catch (SQLException e) {\n\t\t\tsuper.setRecentError(e);\n\t\t\treturn false;\n\t\t}\n\t}", "public int getEmployeeID() {\r\n return employeeID;\r\n }", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "@Test\r\n\tpublic void testSetGetIdValid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setId(idValid);\r\n\t\tassertEquals(idValid, doctor.getId());\r\n\t}" ]
[ "0.81442904", "0.7906389", "0.7006047", "0.69918764", "0.69238776", "0.6854009", "0.6752947", "0.6724079", "0.671482", "0.6639675", "0.6520555", "0.64777744", "0.64686626", "0.64302486", "0.63918734", "0.6364111", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.63376886", "0.6324498", "0.62251854", "0.618362", "0.6174035", "0.6107961", "0.60495704", "0.6025064", "0.6007097", "0.6004527", "0.598336", "0.59460247", "0.59422284", "0.59418", "0.59403926", "0.5930949", "0.5922294", "0.5900875", "0.58987087", "0.5897694", "0.5887459", "0.5883714", "0.58793145", "0.5878704", "0.58647007", "0.5837519", "0.5837116", "0.5836883", "0.58357376", "0.5831556", "0.5830672", "0.58237743", "0.58075595", "0.58053535", "0.58023244", "0.5790609", "0.5776854", "0.5775394", "0.5772235", "0.57634556", "0.57583904", "0.57583904", "0.57581687", "0.5754704", "0.5744826", "0.5742569", "0.5726943", "0.57258964", "0.57258964", "0.57252514", "0.5717447", "0.5717211", "0.5704809", "0.5694641", "0.56912625", "0.5688625", "0.5687165", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56833243", "0.56797445", "0.5679243", "0.5675523", "0.5671816", "0.5655769", "0.56445813", "0.56252605", "0.5616951" ]
0.7968055
1
Marshal Java class to XML
public void createFirstXmlFile(ArrayList<Entry> entityList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "public void dump( Result out ) throws JAXBException;", "public String marshal (Object obj) throws Exception {\n Class thisClass = obj.getClass();\n XmlDescriptor desc = (XmlDescriptor)classList.get(thisClass.getName());\n if (desc == null) {\n\t\t\t//Debugger.trace (\"Class \" + thisClass.getName () + \" not found..\"\n\t\t\t//\t\t\t\t, Debugger.SHORT);\n return reflectMarshal (obj); // if no descriptor class - try to use relection to marshal.\n\t\t}\n return this.marshal(obj, new MarshalContext (outFormat), desc.xmlName);\n }", "public abstract OMElement serialize();", "Element toXML();", "@Override\n public void toXml(XmlContext xc) {\n\n }", "void marshal(Object obj);", "String toXML() throws RemoteException;", "public String toXML() {\n return null;\n }", "public static void main(String[] args) throws JAXBException {\r\n User u = new User(\"a\", \"b\");\r\n System.out.printf(\"name:%s password:%s\\n\", u.name, u.password);\r\n String xml = serialization.Serializer.serialize(u);\r\n System.out.println(xml);\r\n u = serialization.Serializer.deSerialize(xml, User.class);\r\n System.out.printf(\"name:%s password:%s\\n\", u.name, u.password);\r\n }", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public String toXML() {\n return null;\n }", "public String toXml() {\n\t\treturn(toString());\n\t}", "public static String toXml(@SuppressWarnings(\"rawtypes\") Class jaxbClass, Object element) throws JAXBException {\n\t\tMarshaller marshaller = JAXBContext.newInstance(jaxbClass).createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tmarshaller.marshal(element, baos);\n\t\treturn baos.toString();\n\t}", "public byte[] marshall();", "void writeObj(MyAllTypesFirst myFirst, StrategyI xmlStrat);", "public abstract StringBuffer toXML();", "public String toXml() throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tMarshaller m = jc.createMarshaller();\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tm.marshal(this, sw);\r\n\t\treturn sw.toString();\r\n\t}", "public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}", "public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }", "public Element marshall()\n {\n Element element = new Element(getQualifiedName(), Namespaces.NS_ATOM);\n if( type != null )\n {\n Attribute typeAttribute = new Attribute(\"type\", type.toString());\n element.addAttribute(typeAttribute);\n }\n \n if( content != null )\n\t {\n\t\t element.appendChild(content);\n\t }\n\t return element;\n }", "public abstract StringBuffer toXML ();", "Object yangAugmentedInfo(Class classObject);", "Object yangAugmentedInfo(Class classObject);", "private void jaxbObjectToXML(Object object, Writer outputWriter) throws JAXBException {\r\n \r\n JAXBContext context = JAXBContext.newInstance(object.getClass());\r\n Marshaller marshaller = context.createMarshaller();\r\n \r\n // for pretty-print XML in JAXB\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r\n // Marshaller.JAXB_ENCODING exemplo: \"ISO-8859-1\" apenas para referência\r\n marshaller.setProperty(Marshaller.JAXB_ENCODING, CHAR_ENCODING);\r\n \r\n // write to System.out for debugging (TODO: REMOVE THIS LINE IN THE FUTURE)\r\n //marshaller.marshal(object, System.out);\r\n \r\n // write to file\r\n marshaller.marshal(object, outputWriter);\r\n \r\n }", "@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "public static String toXml(Object root) {\n Class clazz = Reflections.getUserClass(root);\n return toXml(root, clazz, null, true);\n }", "public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }", "public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}", "private static void writeAsXml(Object o, Writer writer) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(o.getClass());\n \n Marshaller xmlConverter = jaxb.createMarshaller();\n xmlConverter.setProperty(\"jaxb.formatted.output\", true);\n xmlConverter.marshal(o, writer);\n }", "@Override\r\n\tpublic void serializar() {\n\r\n\t}", "public static String toXml(Object root, String encoding) {\n Class clazz = Reflections.getUserClass(root);\n return toXml(root, clazz, encoding, true);\n }", "XClass getElementClass();", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}", "public void serialize() {\n\t\t\n\t}", "public interface PrideXmlMarshaller {\n\n <T extends PrideXmlObject> String marshall(T object);\n\n <T extends PrideXmlObject> void marshall(T object, OutputStream os);\n\n <T extends PrideXmlObject> void marshall(T object, Writer out);\n\n <T extends PrideXmlObject> void marshall(T object, XMLStreamWriter writer);\n}", "public static String xmlMarshall(Object obj) throws Exception {\n\t\tStringWriter writer = null;\n\t\ttry {\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(obj.getClass());\n\t\t\tMarshaller marshaller = jaxbContext.createMarshaller();\n\t\t\twriter = new StringWriter();\n\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_ENCODING, \"UTF-8\");\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(obj, writer);\n\t\t\tString result = writer.toString();\n\t\t\treturn result;\t\t\n\t\t}finally {\n\t\t\tif (writer != null)\n\t\t\t\twriter.close();\n\t\t}\t\t\n\t}", "public void testSerialize() {\n System.out.println(\"serialize and toString\"); // NOI18N\n \n document.getTransactionManager().writeAccess(new Runnable() {\n public void run() {\n DesignComponent comp = document.createComponent(FirstCD.TYPEID_CLASS);\n \n document.setRootComponent(comp);\n String result = comp.readProperty(FirstCD.PROPERTY_TEST).getValue().toString(); // NOI18N\n assertNotNull(result);\n }\n });\n \n }", "public void buildClassTree() {\n\t\twriter.writeClassTree();\n\t}", "public static void main(String[] args) throws JAXBException {\r\n User u1 = new User(\"a\", \"b\");\r\n User u2 = new User(\"1\", \"2\");\r\n List<User> us = new ArrayList<>();\r\n us.add(u1);\r\n us.add(u2);\r\n Users u = new Users(us);\r\n for (User x : u) {\r\n System.out.printf(\"name:%s password:%s\\n\", x.name, x.password);\r\n }\r\n String xml = serialization.Serializer.serialize(u);\r\n System.out.println(xml);\r\n u = serialization.Serializer.deSerialize(xml, Users.class);\r\n for (User x : u) {\r\n System.out.printf(\"name:%s password:%s\\n\", x.name, x.password);\r\n }\r\n }", "interface Convertable<T> {\n\n String toXml();\n\n T toObj();\n\n}", "public static String toXMLString(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n\r\n String pkgName = obj.getClass().getPackage().getName();\r\n try {\r\n if (!entityMarshallers.containsKey(pkgName)) {\r\n JAXBContext jc = JAXBContext.newInstance(pkgName);\r\n entityMarshallers.put(pkgName, jc.createMarshaller());\r\n entityMarshallerLock.put(pkgName, new Object());\r\n }\r\n\r\n StringWriter sw = new StringWriter();\r\n Marshaller marshaller = entityMarshallers.get(pkgName);\r\n Object locker = entityMarshallerLock.get(pkgName);\r\n\r\n synchronized (locker) {\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Configuration.getBoolean(Constant.CONFIG_KEY.PCM_XML_PRETTY_PRINT));\r\n marshaller.marshal(obj, sw);\r\n }\r\n\r\n return sw.toString();\r\n\r\n } catch (Exception e) {\r\n Logger.defaultLogger.error(e.getMessage(), e);\r\n }\r\n return \"\";\r\n }", "public <T> String SerializeXml(T obj, String pathToRoot){\n this.lastPath = pathToRoot + obj.getClass().getSimpleName().toLowerCase() + \"_object-\" + Math.abs(new Random().nextLong()) + \".xml\";\n\n XmlMapper xmlMapper = new XmlMapper();\n xmlMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n xmlMapper.registerModule(new JavaTimeModule());\n xmlMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n\n File file = new File(this.lastPath);\n\n try {\n file.createNewFile();\n xmlMapper.writeValue(file, obj);\n System.out.println(xmlMapper.writerWithDefaultPrettyPrinter().writeValueAsString(obj));\n return xmlMapper.writeValueAsString(obj);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "private static Serializer getSerializer() {\n\t\tConfiguration config = new Configuration();\n\t\tProcessor processor = new Processor(config);\n\t\tSerializer s = processor.newSerializer();\n\t\ts.setOutputProperty(Property.METHOD, \"xml\");\n\t\ts.setOutputProperty(Property.ENCODING, \"utf-8\");\n\t\ts.setOutputProperty(Property.INDENT, \"yes\");\n\t\treturn s;\n\t}", "protected abstract ArrayList<Element> _toXml_();", "@Override\n public void marshal(T object, XMLStreamWriter output,\n AttachmentMarshaller am) throws JAXBException {\n try {\n output.flush();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n SAX2StaxContentHandler handler = new SAX2StaxContentHandler(output);\n if (object instanceof DataObject) {\n serializeDataObject((DataObject) object, new SAXResult(handler),\n am);\n return;\n }\n\n try {\n String value = serializePrimitive(object, javaType);\n String prefix = output.getPrefix(xmlTag.getNamespaceURI());\n //TODO, this is a hack, seems to be wrong. why should namespace returned is \"\"?\n if (xmlTag.getNamespaceURI().equals(\"\")) {\n output.writeStartElement(\"\", xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n// } else if (prefix == null) {\n// output.writeStartElement(xmlTag.getNamespaceURI(), xmlTag.getLocalPart());\n } else {\n output.writeStartElement(prefix, xmlTag.getLocalPart(), xmlTag.getNamespaceURI());\n output.writeNamespace(prefix, xmlTag.getNamespaceURI());\n }\n output.writeCharacters(value);\n output.writeEndElement();\n } catch (XMLStreamException e) {\n throw new SDODatabindingException(e);\n }\n }", "void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);", "private void dumpClassBytesToFile ()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int lastSlash =\n\t\t\t\tclassInternalName.lastIndexOf('/');\n\t\t\tfinal String pkg =\n\t\t\t\tclassInternalName.substring(0, lastSlash);\n\t\t\tfinal Path tempDir = Paths.get(\"debug\", \"jvm\");\n\t\t\tfinal Path dir = tempDir.resolve(Paths.get(pkg));\n\t\t\tFiles.createDirectories(dir);\n\t\t\tfinal String base = classInternalName.substring(lastSlash + 1);\n\t\t\tfinal Path classFile = dir.resolve(base + \".class\");\n\t\t\tFiles.write(classFile, stripNull(classBytes));\n\t\t}\n\t\tcatch (final IOException e)\n\t\t{\n\t\t\tInterpreter.log(\n\t\t\t\tInterpreter.loggerDebugJVM,\n\t\t\t\tLevel.WARNING,\n\t\t\t\t\"unable to write class bytes for generated class {0}\",\n\t\t\t\tclassInternalName);\n\t\t}\n\t}", "@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}", "@SuppressWarnings( { \"incomplete-switch\", \"rawtypes\", \"unchecked\" } )\n XmlElement objectToXml(Object o)\n {\n ElementType type = m_simpleTypes.get(o.getClass());\n if (type != null)\n {\n switch (type)\n {\n case REAL:\n return new XmlElement(\"real\", o.toString());\n case INTEGER:\n return new XmlElement(\"integer\", o.toString());\n case TRUE:\n return new XmlElement(((Boolean) o).booleanValue() ? \"true\" : \"false\");\n case DATE:\n return new XmlElement(\"date\", m_dateFormat.format((Date) o));\n case STRING:\n return new XmlElement(\"string\", (String) o);\n case DATA:\n return new XmlElement(\"data\", base64encode((byte[]) o));\n }\n }\n if (o instanceof Map)\n {\n return toXmlDict((Map) o);\n }\n else if (o instanceof List)\n {\n return toXmlArray((List) o);\n }\n else throw new RuntimeException(\"Cannot use \" + o.getClass() + \" in plist.\");\n }", "protected abstract void toXml(PrintWriter result);", "@Override\r\n\tpublic String getXmlClassTag() {\r\n\t\treturn xmlClassTag;\r\n\t}", "@Override\r\n\tpublic String getXmlClassTag() {\r\n\t\treturn xmlClassTag;\r\n\t}", "public static String toXml(Object root, Class clazz, String encoding, boolean isNeedFragment) {\n String retXML = \"\";\n try {\n StringWriter writer = new StringWriter();\n createMarshaller(clazz, encoding, isNeedFragment).marshal(root, writer);\n retXML = writer.toString().replace(\"\\n\", \"\");\n retXML = retXML.replace(\"<resData/>\", \"<resData></resData>\");\n retXML = retXML.replace(\"<resDatas/>\", \"<resDatas></resDatas>\");\n return retXML;\n } catch (JAXBException e) {\n throw Exceptions.unchecked(e);\n }\n }", "@SneakyThrows(value = {JAXBException.class, IOException.class})\n\tpublic static <T> String java2Xml(T t, String encoding) {\n\t\tMarshaller marshaller = createMarshaller(t, encoding);\n\n\t\tStringWriter stringWriter = new StringWriter();\n\t\tmarshaller.marshal(t, stringWriter);\n\t\tString result = stringWriter.toString();\n\t\tstringWriter.close();\n\n\t\treturn result;\n\t}", "public java.lang.String getXml();", "abstract org.apache.xmlbeans.XmlObject getXmlObject();", "public byte[] serialize();", "public interface Parser {\n Object getObject(String name, Class c) throws JAXBException;\n\n void saveObject(String name, Object o) throws JAXBException;\n}", "public interface JavaWriter \r\n{\r\n /**\r\n * Abstract method that takes a WSDLHolder\r\n * and returns back the Java representation.\r\n * The Java representation is returned as\r\n * a SerializedHolder array. Each element\r\n * of the array is a SerializedHolder that\r\n * contains the byte[] representing the Java\r\n * class and the name of the file in the file\r\n * system to write to.\r\n */\r\n public SerializedHolder[] toJava(WSDLHolder wsdl, Options options)\r\n throws JavaHolderException, IOException, WSDLException;\r\n \r\n}", "@Test\n public void testMarshal() throws Exception {\n TypeXMLAdapter adapter = new TypeXMLAdapter();\n Assert.assertEquals(currentType.toString(), adapter.marshal(currentType));\n }", "void toXml(OutputStream out, boolean format) throws IOException;", "public JAXBHandle(JAXBContext context, Class<C> contentClass) {\n super();\n setResendable(true);\n if (context == null) {\n throw new IllegalArgumentException(\n \"null JAXB context for converting classes\"\n );\n }\n super.setFormat(Format.XML);\n this.context = context;\n this.contentClass = contentClass;\n }", "@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}", "public JAXBConverter() {\n\t}", "public static void setGeneratedMarshallingClass(String className) {\n generatedMarshallingClass = className;\n }", "static <T> T printLogAndReturn(Object obj) throws JAXBException {\n StringWriter writer = new StringWriter();\n // create JAXBContext which will be used to update writer\n JAXBContext context = JAXBContext.newInstance(obj.getClass());\n // marshall or convert jaxbElement containing student to xml format\n context.createMarshaller().marshal(obj, writer);\n // print XML string representation of Student object\n System.out.println(writer.toString());\n return (T) obj;\n }", "ObjectElement createObjectElement();", "@Override\n\tpublic void marshal(Object arg0, HierarchicalStreamWriter arg1, MarshallingContext arg2) {\n\n\t}", "@Override\n\tpublic String toXMLString(Object arg0) {\n\t\treturn null;\n\t}", "private XmlHelper() {}", "@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}", "@Override\r\n\tpublic String marshalSC(E19 cs) throws JAXBException {\n\t\t\r\n\r\n\t\tJAXBElement<E19> element = scFactory.createE23(cs);\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tscMarshaller.marshal(element, sw);\r\n\t\tString xml = sw.toString();\r\n\t\treturn xml;\r\n\t}", "@Test\n public void serialSimpleTest(){\n\n byte b = 1;\n Object obj = new SimpleObject(1, 1.0, 1f, b);\n Document document = Serializer.serialize(obj);\n assertNotNull(document);\n\n assertNotNull(document.getRootElement());\n Element rootElement = document.getRootElement();\n assertTrue(rootElement.getName().equals(\"serialized\"));\n assertNotNull(rootElement.getChildren());\n\n List objList = rootElement.getChildren();\n assertNotNull(objList);\n assertNotNull(objList.get(0));\n\n Element objElement = (Element) objList.get(0);\n assertTrue(objElement.getName().equals(\"object\"));\n assertNotNull(objElement.getAttribute(\"class\"));\n assertNotNull(objElement.getAttribute(\"id\"));\n assertNull(objElement.getAttribute(\"length\"));\n assertEquals(\"0\", objElement.getAttributeValue(\"id\"));\n assertNotNull(objElement.getChildren());\n\n\n List objContents = objElement.getChildren();\n for (int i =0; i < objContents.size(); i++){\n Element contentElement = (Element) objContents.get(i);\n assertEquals(null, contentElement.getAttributeValue(\"declaringclass\"));\n assertNotNull(contentElement.getValue());\n\n if(contentElement.getName().equals(\"simpleInt\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleDouble\")))\n assertEquals(\"1.0\", contentElement.getValue());\n if(contentElement.getName().equals(\"simpleFloat\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleByte\")))\n assertEquals(\"1\", contentElement.getValue());\n }\n }", "public static void generateMarshalling(String codeFile) {\n \n // Perform generator setup\n installPredefinedTypes();\n initializeCodeGenerator();\n \n // Check on type references\n if (!checkTypeReferences())\n return;\n\n // Create the output file\n FileWriter str = null;\n try {\n str = new FileWriter(codeFile);\n }\n catch (IOException e) {\n Log.error(\"Exception opening generated file: \" + e.getMessage());\n }\n int indent = 0;\n // Put out the file header\n writeLine(str, indent, \"package multiverse.server.marshalling;\");\n writeLine(str, 0, \"\");\n writeLine(str, indent, \"import java.io.*;\");\n writeLine(str, indent, \"import java.util.*;\");\n writeLine(str, indent, \"import multiverse.server.util.*;\");\n writeLine(str, indent, \"import multiverse.server.network.*;\");\n writeLine(str, indent, \"import multiverse.msgsys.*;\");\n writeLine(str, indent, \"import multiverse.server.plugins.*;\");\n writeLine(str, indent, \"import multiverse.server.objects.*;\");\n writeLine(str, indent, \"import multiverse.server.math.*;\");\n writeLine(str, indent, \"import multiverse.server.plugins.WorldManagerClient.ObjectInfo;\");\n // Need a bunch more imports\n writeLine(str, 0, \"\");\n \n writeLine(str, indent, \"public class \" + generatedMarshallingClass + \" extends MarshallingRuntime {\");\n indent++;\n\n // Generate the sorted map\n ArrayList<MarshallingPair> sortedList = new ArrayList<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Short n = entry.getValue().typeNum;\n if (n <= lastBuiltinTypeNum)\n continue;\n if (supportsMarshallable(className))\n continue;\n sortedList.add(new MarshallingPair(className, n));\n }\n // This fails - - I don't know why\n //Collections.sort((List)sortedList);\n \n // Iterate over the non-primitive types, assembling the\n // generation code\n for (MarshallingPair entry : sortedList) {\n String name = entry.getClassKey();\n Class<?> c = lookupClass(name);\n Short n = entry.getTypeNum();\n int flagBitCount = 0;\n LinkedList<Field> fields = getValidClassFields(c);\n // The list of the indexes of fields to be null-tested\n LinkedList<Integer> nullTestedFields = new LinkedList<>();\n int index = -1;\n for (Field f : fields) {\n index++;\n Class<?> fieldType = getFieldType(f);\n // Primitive types don't require flag bits\n if (typeIsPrimitive(fieldType))\n continue;\n String fieldName = f.getName();\n Short fieldTypeNum = getTypeNumForClass(fieldType);\n if (fieldTypeNum == null) {\n Log.error(\"Field \" + fieldName + \" of type \" + c +\n \" has a type for which there is no encode/decode support\");\n }\n else {\n // Only the primitive types don't have null tests, at\n // least for now\n if (fieldTypeNum < firstPrimitiveAtomicTypeNum || fieldTypeNum > lastPrimitiveAtomicTypeNum) {\n nullTestedFields.add(index);\n flagBitCount++;\n }\n }\n }\n // We generate marshalling for this type\n // Put out the static class header\n String className = getSimpleClassName(c);\n writeLine(str, indent, \"public static class \" + className + \"Marshaller implements Marshallable {\");\n indent++;\n generateToBytesMarshalling(c, n, str, indent, fields, nullTestedFields, flagBitCount);\n generateParseBytesMarshalling(c, n, str, indent);\n generateAssignBytesMarshalling(c, n, str, indent, fields, nullTestedFields, flagBitCount);\n indent--;\n writeLine(str, indent, \"}\");\n writeLine(str, 0, \"\");\n try {\n str.flush();\n }\n catch (IOException e) {\n Log.info(\"Could not flush output file!\");\n }\n }\n writeLine(str, indent, \"public static void initialize() {\");\n indent++;\n for (MarshallingPair entry : sortedList) {\n String className = entry.getClassKey();\n Short n = entry.getTypeNum();\n writeLine(str, indent, \"addMarshaller((short)\" + n + \", new \" + className + \"Marshaller());\");\n }\n indent--;\n writeLine(str, indent, \"}\");\n indent--;\n writeLine(str, indent, \"}\");\n try {\n str.close();\n }\n catch (IOException e) {\n Log.info(\"Could not close output file!\");\n }\n }", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n out.writeAttribute(\"id\", getId());\n out.writeAttribute(\"accelerator\", getKeyStrokeText(getAccelerator()));\n\n out.writeEndElement();\n }", "public <E extends ModelSerializable> void outSpringXml(SQL sql, Class<E> klass) throws SQLException {\n\t\tString pn = klass.getPackage().getName();\n\t\tString name = klass.getSimpleName();\n\t\tString filePath = outPath + \"/\" + pn.replaceAll(\"[.]\", \"/\");\n\t\tString fileName = \"/\" + \"spring-\" + firstDown(name) + \".xml\";\n\n\t\tFile file = new File(filePath, fileName);\n\t\tif (file.exists())\n\t\t\tfile.mkdirs();\n\t\t// doRun(file, eList, klass);\n\t}", "@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "public static void main(String[] args) throws Exception {\n JAXBContext jc = JAXBContext.newInstance(\"example.java.xml.parser.jaxb.rootelement\");\n Marshaller marshaller = jc.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n \n // Create Domain Objects\n AddressType billingAddress = new AddressType();\n billingAddress.setStreet(\"1 Any Street\");\n Customer customer = new Customer();\n customer.setBillingAddress(billingAddress);\n \n // Marshal Customer\n marshaller.marshal(customer, System.out);\n \n // Marshal Billing Address\n ObjectFactory objectFactory = new ObjectFactory();\n JAXBElement<AddressType> je = objectFactory.createBillingAddress(billingAddress);\n marshaller.marshal(je, System.out);\n }", "protected abstract Element toXmlEx(Document doc);", "public <T> String simplePayloadConversionConvert(Class<T> theClass, T payload) {\n try {\n// context = JAXBContext.newInstance(theClass);\n// Marshaller m = context.createMarshaller();\n// m.marshal(payload, writer);\n String header = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\";\n return header + xstream.toXML(payload);\n //} catch (JAXBException e) {\n }catch(Exception e){\n e.printStackTrace();\n return \"\";\n }\n\n //return writer.toString();\n }", "public String toXml() throws JAXBException {\n JAXBContext jc = JAXBContext.newInstance(TimeModel.class);\n Marshaller marshaller = jc.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n StringWriter out = new StringWriter();\n marshaller.marshal(this, out);\n return out.toString();\n }", "public XmlAdaptedPerson() {}", "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.DEFAULT_STYLE);\n }", "DsmlClass createDsmlClass();", "@Override protected void outputLocalXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"FLOAT\");\n}", "public Element toXMLElement() {\n return null;\n }", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "public Object wrap(Class jaxbClass, String jaxbClassName, ArrayList<String> childNames, Map<String, Object> childObjects) throws JAXBWrapperException;", "String serialize();", "public String toString() {\n\n String str = super.toString() + \"; descriptor for class: \";\n\n //-- add class name\n if (_class != null)\n str += _class.getName();\n else\n str += \"[null]\";\n\n //-- add xml name\n str += \"; xml name: \" + _xmlName;\n\n return str;\n }", "@Override\r\n public String toString() {\r\n return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.SIMPLE_STYLE);\r\n }", "public void buildClassTagInfo() {\n\t\twriter.writeClassTagInfo();\n\t}", "public String toXml() {\n StringWriter outputStream = new StringWriter();\n try {\n PrintWriter output = new PrintWriter(outputStream);\n try {\n output.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n toXml(output);\n return outputStream.toString();\n }\n catch (Exception ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n finally {\n output.close();\n }\n }\n finally {\n try {\n outputStream.close();\n }\n catch (IOException ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n }\n }", "public XMLEncoder xmlEncoder(OutputStream out) {\n return configure(new XMLEncoder(out));\n }" ]
[ "0.6701854", "0.6701854", "0.6701854", "0.6559732", "0.6359991", "0.62992924", "0.6176248", "0.6085531", "0.60474044", "0.59837914", "0.5967397", "0.592494", "0.59177417", "0.5916553", "0.589345", "0.58803385", "0.58753836", "0.5854263", "0.5846886", "0.5827165", "0.58057284", "0.5787005", "0.57743", "0.57517266", "0.57352877", "0.57352877", "0.573282", "0.57210237", "0.57049024", "0.56935674", "0.5663875", "0.5663788", "0.5659921", "0.56477785", "0.5636857", "0.5613508", "0.55718434", "0.55718434", "0.5553545", "0.5547926", "0.55438673", "0.5507549", "0.54969364", "0.54919374", "0.5485903", "0.54851896", "0.54790854", "0.54693794", "0.5465188", "0.54574645", "0.5451869", "0.5445071", "0.5417902", "0.54177904", "0.5416507", "0.54148185", "0.54148185", "0.5410949", "0.53974307", "0.5395113", "0.53645396", "0.53562963", "0.53548336", "0.53540456", "0.5348479", "0.5339458", "0.53381085", "0.53268456", "0.5325609", "0.5319838", "0.5318367", "0.53047997", "0.5280784", "0.5278292", "0.5277676", "0.526918", "0.5253736", "0.52490205", "0.5237453", "0.51982707", "0.5197787", "0.5192104", "0.51799536", "0.5179129", "0.5173686", "0.51728773", "0.51684946", "0.5162741", "0.51519936", "0.51519936", "0.5149481", "0.5141799", "0.51362073", "0.5107446", "0.51040465", "0.5095849", "0.5093402", "0.5092143", "0.5089117", "0.5082552", "0.5074815" ]
0.0
-1
Transform XML to other use XLST
public void transformToSecondXml();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "Element toXML();", "@Override\n public void toXml(XmlContext xc) {\n\n }", "public abstract String toXML();", "public abstract String toXML();", "public abstract String toXML();", "private String transform(PropBagEx xml) throws Exception {\n TransformerFactory tFactory = TransformerFactory.newInstance();\n StringReader strXSLT = new StringReader(data.getXslt());\n Transformer oTransformer = tFactory.newTransformer(new StreamSource(strXSLT));\n\n StringReader strReader = new StringReader(xml.toString());\n StreamSource oInput = new StreamSource(strReader);\n\n StringWriter strWriter = new StringWriter();\n StreamResult oOutput = new StreamResult(strWriter);\n\n // Transform!!\n oTransformer.transform(oInput, oOutput);\n strReader.close();\n\n // We don't actuallly have to close this. See javadoc!\n // strWriter.close ();\n\n return strWriter.toString();\n }", "public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }", "public static Node transform(Node xmlXML, Node xmlXSL, Node xmlResult)\r\n throws TransformerConfigurationException,\r\n TransformerException \r\n \r\n {\r\n DOMResult domResult = xmlResult == null \r\n ? new DOMResult()\r\n : new DOMResult(xmlResult);\r\n return transform(xmlXML, xmlXSL, domResult); \r\n }", "protected abstract Element toXmlEx(Document doc);", "public static Node transform(Node xmlXML, Node xmlXSL, DOMResult xmlResult)\r\n throws TransformerConfigurationException,\r\n TransformerException \r\n \r\n {\r\n TransformerFactory factory = TransformerFactory.newInstance();\r\n Transformer transformer = factory.newTransformer(new DOMSource(xmlXSL));\r\n //?? In Java 5.0, using Apache Xalan for transformations, when the \r\n //?? following are in the CLASSPATH:\r\n //?? C:\\Apps\\Apache\\xalan-j_2_7_1\\xercesImpl.jar\r\n //?? C:\\Apps\\Apache\\xalan-j_2_7_1\\xml-apis.jar \r\n //?? this call to newTransformer() writes warnings and errors to \r\n //?? stdout, and doesn't throw an exception on warnings. \r\n //??\r\n //?? For errors, the stdout text looks like:\r\n //?? ERROR: 'Unsupported XSL element 'xxxsort'.'\r\n //?? FATAL ERROR: 'Could not compile stylesheet'\r\n //?? and the value of TransformerConfigurationException.getMessage() \r\n //?? is simply:\r\n //?? Could not compile stylesheet\r\n //?? instead of:\r\n //?? javax.xml.transform.TransformerConfigurationException: \r\n //?? javax.xml.transform.TransformerException: \r\n //?? javax.xml.transform.TransformerException: \r\n //?? xsl:xxxsort is not allowed in this position in the stylesheet!\r\n //??\r\n //?? For warnings, the stdout text looks like:\r\n //?? Compiler warnings:\r\n //?? Illegal attribute 'cxxxase-order'.\r\n //?? and no exception is thrown instead of it throwing \r\n //?? TransformerConfigurationException:\r\n //?? with the value of TransformerConfigurationException.getMessage() \r\n //?? being: \r\n //?? javax.xml.transform.TransformerConfigurationException: \r\n //?? javax.xml.transform.TransformerException: \r\n //?? javax.xml.transform.TransformerException: \r\n //?? \"cxxxase-order\" attribute is not allowed on the xsl:sort element!\r\n //?? \r\n //?? When xalan.jar precedes them in the CLASSPATH:\r\n //?? C:\\Apps\\Apache\\xalan-j_2_7_1\\xalan.jar\r\n //?? C:\\Apps\\Apache\\xalan-j_2_7_1\\xercesImpl.jar\r\n //?? C:\\Apps\\Apache\\xalan-j_2_7_1\\xml-apis.jar \r\n //?? there is no exception on errors either, and the stdout text looks\r\n //?? like:\r\n //?? D:\\Fred\\bristle\\javaapps\\xmltrans\\Testing\\Actual\\dummy.xsl; \r\n //?? Line #0; Column #0; xsl:xxxsort is not allowed in this position \r\n //?? in the stylesheet!\r\n //?? or:\r\n //?? D:\\Fred\\bristle\\javaapps\\xmltrans\\Testing\\Actual\\dummy.xsl; \r\n //?? Line #0; Column #0; \"cxxxase-order\" attribute is not allowed \r\n //?? on the xsl:sort element!\r\n //??\r\n //?? Should find a better parser perhaps.\r\n //??\r\n transformer.transform(new DOMSource(xmlXML), xmlResult);\r\n return xmlResult.getNode();\r\n }", "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "public void exportXML() throws Exception{\n\t\t \n\t\t try {\n\n\t // create DOMSource for source XML document\n\t\t Source xmlSource = new DOMSource(convertStringToDocument(iet.editorPane.getText()));\n\t\t \n\t\t JFileChooser c = new JFileChooser();\n\t\t\t\t\n\t\t\t\tint rVal = c.showSaveDialog(null);\n\t\t\t\tString name = c.getSelectedFile().getAbsolutePath() + \".xml\";\n\t \n\t File f = new File(name);\n\t \n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\n\t\t // create StreamResult for transformation result\n\t\t Result result = new StreamResult(new FileOutputStream(f));\n\n\t\t // create TransformerFactory\n\t\t TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n\t\t // create Transformer for transformation\n\t\t Transformer transformer = transformerFactory.newTransformer();\n\t\t transformer.setOutputProperty(\"indent\", \"yes\");\n\n\t\t // transform and deliver content to client\n\t\t transformer.transform(xmlSource, result);\n\t\t \n\t\t }\n\t\t }\n\t\t // handle exception creating TransformerFactory\n\t\t catch (TransformerFactoryConfigurationError factoryError) {\n\t\t System.err.println(\"Error creating \" + \"TransformerFactory\");\n\t\t factoryError.printStackTrace();\n\t\t } // end catch 1\n\t\t \t catch (TransformerException transformerError) {\n\t\t System.err.println(\"Error transforming document\");\n\t\t transformerError.printStackTrace();\n\t\t } //end catch 2 \n\t\t \t catch (IOException ioException) {\n\t\t ioException.printStackTrace();\n\t\t } // end catch 3\n\t\t \n\t }", "org.apache.xmlbeans.XmlString xgetTarget();", "private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }", "org.apache.xmlbeans.XmlString xgetContent();", "public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "abstract void toXML(StringBuilder xml, int level);", "public static void main(String[] args) throws SAXException, IOException, ParserConfigurationException {\n\t\tcheckwithnodesxmltoexcel excl= new checkwithnodesxmltoexcel();\n\t\texcl.xmltoexcelfile();\n\n\t}", "private void transformToXml(Document doc) {\r\n try {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer trans = tf.newTransformer();\r\n trans.transform(new DOMSource(doc),new StreamResult(new File(\"./evidence.xml\")));\r\n } catch (TransformerException e) {\r\n System.err.println(\"Transformation failed\");\r\n }\r\n }", "@SuppressWarnings({ \"resource\", \"unused\" })\n\tpublic static void main(String[] args) throws IOException, JDOMException, TransformerException {\n\n\t\tWorkbook wb = new XSSFWorkbook();\n\t\tCreationHelper ch = wb.getCreationHelper();\n\t\tSheet sh = wb.createSheet(\"MySheet\");\n\t\tCellStyle cs1 = wb.createCellStyle();\n\t\tCellStyle cs2 = wb.createCellStyle();\n\t\tDataFormat df = wb.createDataFormat();\n\t\tFont f1 = wb.createFont();\n\t\tFont f2 = wb.createFont();\n\n\t\tf1.setFontHeightInPoints((short) 12);\n\t\tf1.setColor(IndexedColors.RED.getIndex());\n\t\tf1.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\n\t\tf2.setFontHeightInPoints((short) 10);\n\t\tf2.setColor(IndexedColors.BLUE.getIndex());\n\t\tf2.setItalic(true);\n\n\t\tcs1.setFont(f1);\n\t\tcs1.setDataFormat(df.getFormat(\"#,##0.0\"));\n\n\t\tcs2.setFont(f2);\n\t\tcs2.setBorderBottom(cs2.BORDER_THIN);\n\t\tcs2.setDataFormat(df.getFormat(\"text\"));\n\t\t\n\t\tFile myFile = new File(\"recipe.xml\");\n\t\t\ntry{\n\t\t\t\n\t\t\t\n\t\t\n//\t\t\tSystem.out.println(doc.getRootElement().getValue());\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\t\t\n\t\t\n\t\n\t\t\nSAXBuilder sb = new SAXBuilder();\nDocument doc = sb.build(myFile);\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tRow r = sh.createRow(i);\n\t\t\tCell c2 = r.createCell(i);\n\t\t\tc2.setCellStyle(cs2);\n\t\t\t\n\t\t\tList<Element> children = doc.getRootElement().getChildren();\n\t\t\tSystem.out.println(children.size());\n\t\t\t\tc2.setCellValue(children.get(i).getChildText(\"Title\"));\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tFileOutputStream outf = new FileOutputStream(\"src/RecipesXSL.xlsx\");\n\t\twb.write(outf);\n\t\toutf.close();\n\t\tSystem.out.println(\"WbSaved\");\n\t}", "public abstract StringBuffer toXML ();", "org.apache.xmlbeans.XmlString xgetLastrunresult();", "private Document xsltTransformGetFeature(String gml, String xsltURL) {\r\n Debug.debugMethodBegin( this, \"xsltTransformGetFeature\" );\r\n\r\n Document document = null;\r\n try {\r\n document = XMLTools.parse( new StringReader( gml ) );\r\n \r\n // Use the static TransformerFactory.newInstance() method to instantiate\r\n // a TransformerFactory. The javax.xml.transform.TransformerFactory\r\n // system property setting determines the actual class to instantiate --\r\n // org.apache.xalan.transformer.TransformerImpl.\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n \r\n // Use the TransformerFactory to instantiate a Transformer that will work with\r\n // the stylesheet you specify. This method call also processes the stylesheet\r\n // into a compiled Templates object.\r\n URL url = new URL( xsltURL );\r\n Transformer transformer =\r\n tFactory.newTransformer( new StreamSource( url.openStream() ) );\r\n \r\n // Use the Transformer to apply the associated Templates object to an XML document\r\n // (foo.xml) and write the output to a file (foo.out).\r\n StringWriter sw = new StringWriter();\r\n transformer.transform(new DOMSource(document), new StreamResult( sw ));\r\n\r\n document = XMLTools.parse( new StringReader( sw.toString() ) );\r\n } catch(Exception e) {\r\n Debug.debugException( e, \"an error/fault body for the soap message will be created\");\r\n //TODO exception\r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return document;\r\n }", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "public void transform(Node source, String outputFileName) throws Exception {\n FileOutputStream outFS = new FileOutputStream(outputFileName);\n Result result = new StreamResult(outFS);\n myTransformer.transform(new DOMSource(source), result);\n outFS.close();\n }", "public abstract StringBuffer toXML();", "protected abstract void toXml(PrintWriter result);", "void xsetLastrunresult(org.apache.xmlbeans.XmlString lastrunresult);", "public Transformer getXslt() {\n return xslt;\n }", "public void convertFile(String xlsFileName, String xmlFileName) throws IOException\n\t{\n\t try \n\t {\n\t Document newDoc = domBuilder.newDocument();\n\t Element rootElement = newDoc.createElement(\"suite\");\n\t rootElement.setAttribute(\"name\", \"Regression suite\");\n\t rootElement.setAttribute(\"verbose\", \"1\");\n\t \n\t \n\t \tnewDoc.appendChild(rootElement);\n\n\t \n\t Element rootElement2 = newDoc.createElement(\"listeners\");\n\t rootElement.appendChild(rootElement2);\n\n\t \n\t Element rootElement6 = newDoc.createElement(\"listener\");\n\t rootElement6.setAttribute(\"class-name\", \"com.dista.listeners.RetryListener\");\n\t rootElement2.appendChild(rootElement6);\n\t \n/*\t Element rootElement7 = newDoc.createElement(\"listener\");\n\t rootElement7.setAttribute(\"class-name\", \"com.dista.listeners.ExtentListener\");\n\t rootElement2.appendChild(rootElement7);*/\n\n/*\t Element rootElement8 = newDoc.createElement(\"listener\");\n\t rootElement8.setAttribute(\"class-name\", \"com.dista.listeners.CustomMethods\");\n\t rootElement2.appendChild(rootElement8);*/\n\t \n\t Element rootElement9 = newDoc.createElement(\"listener\");\n\t rootElement9.setAttribute(\"class-name\", \"com.dista.listeners.TestListener\");\n\t rootElement2.appendChild(rootElement9);\n\t \n\t \n\t FileInputStream ExcelFile;\n\t\t\tExcelFile = new FileInputStream(xlsFileName);\t\t//files stored at specified path contains URLs\n\t\t\tXSSFWorkbook ExcelWBook = new XSSFWorkbook(ExcelFile);\n\t\t\tXSSFSheet ExcelWSheet = ExcelWBook.getSheet(\"XML Data\");\n\t\t\tIterator <Row> ri = ExcelWSheet.iterator(); \n\t\t\tRow r = ri.next();\n\t\t\t\n\t\t\tboolean loop_condition2 = true, loop_condition3=true;\n\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\t\n\t\t\t\tboolean loop_condition = true;\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Text\"+r.getCell(0).getStringCellValue());\n\t\t\t\t\n\t\t\t\tElement rowElement = newDoc.createElement(\"test\");\n\t\t\t\trowElement.setAttribute(\"name\", r.getCell(0).getStringCellValue());\n\t\t\t\trootElement.appendChild(rowElement);\n\t\t\t\t\n\t\t\t\tElement curElement = newDoc.createElement(\"classes\");\n\t\t\t\trowElement.appendChild(curElement);\n\t\t\t\t\n\t\t\t\tElement curElement2 = newDoc.createElement(\"class\");\n\t curElement2.setAttribute(\"name\", \"com.dista.test.automation.\"+r.getCell(0).getStringCellValue());\n\t curElement.appendChild(curElement2); \n\t \n\t Element curElement3 = newDoc.createElement(\"methods\");\n\t curElement2.appendChild(curElement3);\n\t \n\t r= ri.next();\n\t \n\t while(loop_condition )\n\t {\n\t \t//System.out.println(r.getCell(1).getStringCellValue());\n\t \n\t \tString option=null;\n\t\n\t try\n\t {\n\t \tswitch (r.getCell(2).getStringCellValue())\n\t \t{\n\t \t\tcase \"Y\":\n\t \t\t\toption = \"include\";\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase \"N\":\n\t \t\t\toption = \"exclude\";\n\t break;\n\t \n\t default:\n\t System.out.println(\"Invalid Data\");\n\t break;\n\t \t} \t\t\t\n\t }\n\t catch(NullPointerException npe)\n\t {\n\t \toption= \"exclude\";\n\t }\n\t \n\t //System.out.println(option);\n\t \t\tElement curElement4 = newDoc.createElement(option);\n\t \t\tcurElement4.setAttribute(\"name\", r.getCell(1).getStringCellValue());\n\t curElement3.appendChild(curElement4);\n\t \n\t\t if (ri.hasNext())\n\t\t {\n\t\t \tr= ri.next();\n\t\t \t\t\n\t\t try\n\t\t { \t\n\t\t \tif(!r.getCell(1).getStringCellValue().isEmpty())\n\t\t \t\tloop_condition= true;\n\t\t \telse\n\t\t \t\tloop_condition=false;\n\t\t \t}\n\t\t catch(NullPointerException npe)\n\t\t {\n\t\t \tloop_condition=false;\n\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t \tloop_condition=false;\n\t\t \tloop_condition3= false;\n\t\t }\n\t }\n\t \n\t if(loop_condition3)\n\t {\n\t\t try\n\t\t { \t\n\t\t \tif(!r.getCell(0).getStringCellValue().isEmpty())\n\t\t \t\tloop_condition2= true;\n\t\t \telse\n\t\t \t\tloop_condition2=false;\n\t\t }\n\t\t catch(NullPointerException npe)\n\t\t {\n\t\t \tloop_condition2=false;\n\t\t }\n\t }\n\t else\n\t \tloop_condition2=false;\n\t\t\t}\n\t\t\twhile(loop_condition2);\n\t\n\t\t\t\n\t\t\tbaos = new ByteArrayOutputStream();\n\t\t\tosw = new OutputStreamWriter(baos);\n\t\n\t\t\tTransformerFactory tranFactory = TransformerFactory.newInstance();\n\t\t\tTransformer aTransformer = tranFactory.newTransformer();\n\t\t\taTransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\taTransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\taTransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n\t DOMImplementation domImpl = newDoc.getImplementation();\n\t // <!DOCTYPE suite PUBLIC \"-//Oberon//YOUR PUBLIC DOCTYPE//EN\" \"YOURDTD.dtd\">\n\t //<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\">\n\n\t // <!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\" >\n\t\t DocumentType doctype = domImpl.createDocumentType(\"doctype\",\n\t\t \t\t\"\", \"http://testng.org/testng-1.0.dtd\");\n\t\t aTransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, doctype.getSystemId());\n\t \n\t Source src = new DOMSource(newDoc);\n\t Result result = new StreamResult(new File(xmlFileName));\n\t aTransformer.transform(src, result);\n\t\n\t osw.flush();\n\t System.out.println(new String(baos.toByteArray()));\n\t \n\t ExcelWBook.close();\n\t\n\t\t}\n\t catch (Exception exp) \n\t {\n\t \texp.printStackTrace();\n\t } \n\t \n\t osw.close();\n\t baos.close();\n\t}", "public static void main(String [] args) throws TransformerException {\n\t\ttry {\n\t\t\tString sBeast1 = args[0];\n Path beast1xml = Paths.get(sBeast1);\n\n Beast1To2 b = new Beast1To2(args);\n\t\t\tStringWriter strWriter = new StringWriter();\n BufferedReader xmlInput = Files.newBufferedReader(beast1xml, Charset.defaultCharset());\n\t\t\tjavax.xml.transform.Source xmlSource =\n\t new javax.xml.transform.stream.StreamSource(xmlInput);\n\t\t\tReader xslInput = new StringReader(b.m_sXSL);\n\t\t javax.xml.transform.Source xsltSource =\n\t new javax.xml.transform.stream.StreamSource(xslInput);\n\t\t javax.xml.transform.Result result =\n\t new javax.xml.transform.stream.StreamResult(strWriter);\n\t\t // create an instance of TransformerFactory\n\t\t javax.xml.transform.TransformerFactory transFact = javax.xml.transform.TransformerFactory.newInstance();\n\t\t javax.xml.transform.Transformer trans = transFact.newTransformer(xsltSource);\n\n\t\t trans.transform(xmlSource, result);\n//\t\t System.out.println(strWriter.toString());\n\n Path beast2xml = Paths.get(beast1xml.getParent().toString(), beast1xml.getFileName().toString().replace(\".xml\", \"\") + \".beast2.xml\");\n try (BufferedWriter writer = Files.newBufferedWriter(beast2xml, Charset.defaultCharset())) {\n writer.write(strWriter.toString());\n } catch (IOException x) {\n System.err.format(\"IOException: %s%n\", x);\n }\n System.out.println(\"Convert BEAST 1 xml \" + beast1xml.getFileName() + \" to BEAST 2 xml \" + beast2xml.getFileName().toString());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void convertProjectTeam2XML(ProjectTeam team, File xml)\n throws IOException, TransformerException {\n\n //Setup XSLT\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer();\n /* Note:\n We use the identity transformer, no XSL transformation is done.\n The transformer is basically just used to serialize the\n generated document to XML. */\n\n //Setup input\n Source src = team.getSourceForProjectTeam();\n\n //Setup output\n Result res = new StreamResult(xml);\n\n //Start XSLT transformation\n transformer.transform(src, res);\n }", "private XStream buildXStream() {\r\n\t\tfinal XStream stream = new XStream();\r\n\r\n\t\tstream.setMode(XStream.XPATH_ABSOLUTE_REFERENCES);\r\n\r\n\t\t// Alias these tags so that it does not care about the packages,\r\n\t\t// plus it makes the XML nicer.\r\n\t\tstream.alias(\"Story\", StoryModel.class);\r\n\t\tstream.alias(\"Library\", LibraryModel.class);\r\n\t\tstream.alias(\"Root\", StoryComponentContainer.class);\r\n\t\tstream.alias(\"KnowIt\", KnowIt.class);\r\n\t\tstream.alias(\"StoryComponentContainer\", StoryComponentContainer.class);\r\n\t\tstream.alias(\"AskIt\", AskIt.class);\r\n\t\tstream.alias(\"PickIt\", PickIt.class);\r\n\t\tstream.alias(\"KnowItBinding\", KnowItBinding.class);\r\n\t\tstream.alias(\"Type\", GameType.class);\r\n\t\tstream.alias(\"Slot\", Slot.class);\r\n\t\tstream.alias(\"Binding\", KnowItBinding.class);\r\n\t\tstream.alias(\"Value\", String.class);\r\n\t\tstream.alias(\"DialogueLine\", DialogueLine.class);\r\n\t\tstream.alias(\"DescribeIt\", DescribeIt.class);\r\n\t\tstream.alias(\"DescribeItNode\", DescribeItNode.class);\r\n\t\tstream.alias(\"CodeBlock\", CodeBlock.class);\r\n\t\tstream.alias(\"CodeBlockSource\", CodeBlockSource.class);\r\n\t\tstream.alias(\"CodeBlockReference\", CodeBlockReference.class);\r\n\t\tstream.alias(\"ScriptIt\", ScriptIt.class);\r\n\t\tstream.alias(\"StoryGroup\", StoryGroup.class);\r\n\t\tstream.alias(\"StoryPoint\", StoryPoint.class);\r\n\t\tstream.alias(\"Note\", Note.class);\r\n\t\tstream.alias(\"ControlIt\", ControlIt.class);\r\n\t\tstream.alias(\"CauseIt\", CauseIt.class);\r\n\t\tstream.alias(\"Behaviour\", Behaviour.class);\r\n\t\tstream.alias(\"IndependentTask\", IndependentTask.class);\r\n\t\tstream.alias(\"CollaborativeTask\", CollaborativeTask.class);\r\n\t\tstream.alias(\"ActivityIt\", ActivityIt.class);\r\n\r\n\t\t// Language Dictionary Fragments\r\n\t\tstream.alias(\"LibraryModel\", LibraryModel.class);\r\n\t\tstream.alias(\"LanguageDictionary\", LanguageDictionary.class);\r\n\t\tstream.alias(\"Format\", FormatDefinitionFragment.class);\r\n\t\tstream.alias(\"Indent\", IndentFragment.class);\r\n\t\tstream.alias(\"Line\", LineFragment.class);\r\n\t\tstream.alias(\"Literal\", LiteralFragment.class);\r\n\t\tstream.alias(\"FormatRef\", FormatReferenceFragment.class);\r\n\t\tstream.alias(\"Scope\", ScopeFragment.class);\r\n\t\tstream.alias(\"Series\", SeriesFragment.class);\r\n\t\tstream.alias(\"Fragment\", SimpleDataFragment.class);\r\n\r\n\t\t// the below are aliased for backwards compatibility\r\n\r\n\t\t/* <Insert backwards-compatible aliases here> */\r\n\r\n\t\t// now register all of the leaf-level converters\r\n\t\tstream.registerConverter(new StoryModelConverter());\r\n\t\tstream.registerConverter(new DialogueLineConverter());\r\n\t\tstream.registerConverter(new StoryComponentContainerConverter());\r\n\t\tstream.registerConverter(new KnowItConverter());\r\n\t\tstream.registerConverter(new PickItConverter());\r\n\t\tstream.registerConverter(new AskItConverter());\r\n\t\tstream.registerConverter(new KnowItBindingConverter());\r\n\t\tstream.registerConverter(new GameTypeConverter());\r\n\t\tstream.registerConverter(new SlotConverter());\r\n\t\tstream.registerConverter(new FormatDefinitionFragmentConverter());\r\n\t\tstream.registerConverter(new IndentedFragmentConverter());\r\n\t\tstream.registerConverter(new LineFragmentConverter());\r\n\t\tstream.registerConverter(new LiteralFragmentConverter());\r\n\t\tstream.registerConverter(new FormatReferenceFragmentConverter());\r\n\t\tstream.registerConverter(new ScopeFragmentConverter());\r\n\t\tstream.registerConverter(new SeriesFragmentConverter());\r\n\t\tstream.registerConverter(new SimpleDataFragmentConverter());\r\n\t\tstream.registerConverter(new LibraryModelConverter());\r\n\t\tstream.registerConverter(new LanguageDictionaryConverter());\r\n\t\tstream.registerConverter(new CodeBlockSourceConverter());\r\n\t\tstream.registerConverter(new CodeBlockReferenceConverter());\r\n\t\tstream.registerConverter(new ScriptItConverter());\r\n\t\tstream.registerConverter(new CauseItConverter());\r\n\t\tstream.registerConverter(new StoryGroupConverter());\r\n\t\tstream.registerConverter(new StoryPointConverter());\r\n\t\tstream.registerConverter(new NoteConverter());\r\n\t\tstream.registerConverter(new DescribeItConverter());\r\n\t\tstream.registerConverter(new DescribeItNodeConverter());\r\n\t\tstream.registerConverter(new ControlItConverter());\r\n\t\tstream.registerConverter(new BehaviourConverter());\r\n\t\tstream.registerConverter(new IndependentTaskConverter());\r\n\t\tstream.registerConverter(new CollaborativeTaskConverter());\r\n\t\tstream.registerConverter(new ActivityItConverter());\r\n\r\n\t\tstream.registerConverter(new IdentityArrayListConverter(stream\r\n\t\t\t\t.getMapper()));\r\n\r\n\t\treturn stream;\r\n\t}", "XObject transform(XObject obj, Locale locale) throws TransformationException;", "protected abstract ArrayList<Element> _toXml_();", "public static <T> String xmlToHTML(String xslFile, T obj, Class<T> type) {\r\n\t\ttry {\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer(new StreamSource(\r\n\t\t\t\t\tWebPath + xslFile));\r\n\r\n\t\t\t// Source\r\n\t\t\tJAXBContext jc = JAXBContext.newInstance(type);\r\n\t\t\tJAXBSource source;\r\n\r\n\t\t\tsource = new JAXBSource(jc, obj);\r\n\r\n\t\t\t// Result\r\n\t\t\tStringWriter writer = new StringWriter();\r\n\r\n\t\t\t// Transform\r\n\t\t\ttransformer.transform(source, new StreamResult(writer));\r\n\r\n\t\t\treturn writer.toString();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\treturn \"\";\r\n\t\t} catch (JAXBException e) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "String toXML() throws RemoteException;", "protected abstract void fromXmlEx(Element source)\n throws PSUnknownNodeTypeException;", "public static Patent transform(String patentxml) {\n\t\t patentxml = patentxml.trim();\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE PATDOC [<!ENTITY nbsp \\\"&#160;\\\" ><!ENTITY iexcl \\\"&#161;\\\" ><!ENTITY cent \\\"&#162;\\\" ><!ENTITY pound \\\"&#163;\\\" ><!ENTITY curren \\\"&#164;\\\" ><!ENTITY yen \\\"&#165;\\\" ><!ENTITY brvbar \\\"&#166;\\\" ><!ENTITY sect \\\"&#167;\\\" ><!ENTITY uml \\\"&#168;\\\" ><!ENTITY copy \\\"&#169;\\\" ><!ENTITY ordf \\\"&#170;\\\" ><!ENTITY laquo \\\"&#171;\\\" ><!ENTITY not \\\"&#172;\\\" ><!ENTITY shy \\\"&#173;\\\" ><!ENTITY reg \\\"&#174;\\\" ><!ENTITY macr \\\"&#175;\\\" ><!ENTITY deg \\\"&#176;\\\" ><!ENTITY plusmn \\\"&#177;\\\" ><!ENTITY sup2 \\\"&#178;\\\" ><!ENTITY sup3 \\\"&#179;\\\" ><!ENTITY acute \\\"&#180;\\\" ><!ENTITY micro \\\"&#181;\\\" ><!ENTITY para \\\"&#182;\\\" ><!ENTITY middot \\\"&#183;\\\" ><!ENTITY cedil \\\"&#184;\\\" ><!ENTITY sup1 \\\"&#185;\\\" ><!ENTITY ordm \\\"&#186;\\\" ><!ENTITY raquo \\\"&#187;\\\" ><!ENTITY frac14 \\\"&#188;\\\" ><!ENTITY frac12 \\\"&#189;\\\" ><!ENTITY frac34 \\\"&#190;\\\" ><!ENTITY iquest \\\"&#191;\\\" ><!ENTITY Agrave \\\"&#192;\\\" ><!ENTITY Aacute \\\"&#193;\\\" ><!ENTITY Acirc \\\"&#194;\\\" ><!ENTITY Atilde \\\"&#195;\\\" ><!ENTITY Auml \\\"&#196;\\\" ><!ENTITY Aring \\\"&#197;\\\" ><!ENTITY AElig \\\"&#198;\\\" ><!ENTITY Ccedil \\\"&#199;\\\" ><!ENTITY Egrave \\\"&#200;\\\" ><!ENTITY Eacute \\\"&#201;\\\" ><!ENTITY Ecirc \\\"&#202;\\\" ><!ENTITY Euml \\\"&#203;\\\" ><!ENTITY Igrave \\\"&#204;\\\" ><!ENTITY Iacute \\\"&#205;\\\" ><!ENTITY Icirc \\\"&#206;\\\" ><!ENTITY Iuml \\\"&#207;\\\" ><!ENTITY ETH \\\"&#208;\\\" ><!ENTITY Ntilde \\\"&#209;\\\" ><!ENTITY Ograve \\\"&#210;\\\" ><!ENTITY Oacute \\\"&#211;\\\" ><!ENTITY Ocirc \\\"&#212;\\\" ><!ENTITY Otilde \\\"&#213;\\\" ><!ENTITY Ouml \\\"&#214;\\\" ><!ENTITY times \\\"&#215;\\\" ><!ENTITY Oslash \\\"&#216;\\\" ><!ENTITY Ugrave \\\"&#217;\\\" ><!ENTITY Uacute \\\"&#218;\\\" ><!ENTITY Ucirc \\\"&#219;\\\" ><!ENTITY Uuml \\\"&#220;\\\" ><!ENTITY Yacute \\\"&#221;\\\" ><!ENTITY THORN \\\"&#222;\\\" ><!ENTITY szlig \\\"&#223;\\\" ><!ENTITY agrave \\\"&#224;\\\" ><!ENTITY aacute \\\"&#225;\\\" ><!ENTITY acirc \\\"&#226;\\\" ><!ENTITY atilde \\\"&#227;\\\" ><!ENTITY auml \\\"&#228;\\\" ><!ENTITY aring \\\"&#229;\\\" ><!ENTITY aelig \\\"&#230;\\\" ><!ENTITY ccedil \\\"&#231;\\\" ><!ENTITY egrave \\\"&#232;\\\" ><!ENTITY eacute \\\"&#233;\\\" ><!ENTITY ecirc \\\"&#234;\\\" ><!ENTITY euml \\\"&#235;\\\" ><!ENTITY igrave \\\"&#236;\\\" ><!ENTITY iacute \\\"&#237;\\\" ><!ENTITY icirc \\\"&#238;\\\" ><!ENTITY iuml \\\"&#239;\\\" ><!ENTITY eth \\\"&#240;\\\" ><!ENTITY ntilde \\\"&#241;\\\" ><!ENTITY ograve \\\"&#242;\\\" ><!ENTITY oacute \\\"&#243;\\\" ><!ENTITY ocirc \\\"&#244;\\\" ><!ENTITY otilde \\\"&#245;\\\" ><!ENTITY ouml \\\"&#246;\\\" ><!ENTITY divide \\\"&#247;\\\" ><!ENTITY oslash \\\"&#248;\\\" ><!ENTITY ugrave \\\"&#249;\\\" ><!ENTITY uacute \\\"&#250;\\\" ><!ENTITY ucirc \\\"&#251;\\\" ><!ENTITY uuml \\\"&#252;\\\" ><!ENTITY yacute \\\"&#253;\\\" ><!ENTITY thorn \\\"&#254;\\\" ><!ENTITY yuml \\\"&#255;\\\" > <!ENTITY lt \\\"&#38;#60;\\\" > <!ENTITY gt \\\"&#62;\\\" > <!ENTITY amp \\\"&#38;#38;\\\" > <!ENTITY apos \\\"&#39;\\\" > <!ENTITY quot \\\"&#34;\\\" > <!ENTITY OElig \\\"&#338;\\\" > <!ENTITY oelig \\\"&#339;\\\" > <!ENTITY Scaron \\\"&#352;\\\" > <!ENTITY scaron \\\"&#353;\\\" > <!ENTITY Yuml \\\"&#376;\\\" > <!ENTITY circ \\\"&#710;\\\" > <!ENTITY tilde \\\"&#732;\\\" > <!ENTITY ensp \\\"&#8194;\\\" > <!ENTITY emsp \\\"&#8195;\\\" > <!ENTITY thinsp \\\"&#8201;\\\" > <!ENTITY zwnj \\\"&#8204;\\\" > <!ENTITY zwj \\\"&#8205;\\\" > <!ENTITY lrm \\\"&#8206;\\\" > <!ENTITY rlm \\\"&#8207;\\\" > <!ENTITY ndash \\\"&#8211;\\\" > <!ENTITY mdash \\\"&#8212;\\\" > <!ENTITY lsquo \\\"&#8216;\\\" > <!ENTITY rsquo \\\"&#8217;\\\" > <!ENTITY sbquo \\\"&#8218;\\\" > <!ENTITY ldquo \\\"&#8220;\\\" > <!ENTITY rdquo \\\"&#8221;\\\" > <!ENTITY bdquo \\\"&#8222;\\\" > <!ENTITY dagger \\\"&#8224;\\\" > <!ENTITY Dagger \\\"&#8225;\\\" > <!ENTITY permil \\\"&#8240;\\\" > <!ENTITY lsaquo \\\"&#8249;\\\" > <!ENTITY rsaquo \\\"&#8250;\\\" > <!ENTITY euro \\\"&#8364;\\\" > <!ENTITY minus \\\"&#43;\\\" > <!ENTITY plus \\\"&#43;\\\" > <!ENTITY equals \\\"&#61;\\\" > <!ENTITY af \\\"\\\" > <!ENTITY it \\\"\\\" ><!ENTITY fnof \\\"&#402;\\\" > <!ENTITY Alpha \\\"&#913;\\\" > <!ENTITY Beta \\\"&#914;\\\" > <!ENTITY Gamma \\\"&#915;\\\" > <!ENTITY Delta \\\"&#916;\\\" > <!ENTITY Epsilon \\\"&#917;\\\" > <!ENTITY Zeta \\\"&#918;\\\" > <!ENTITY Eta \\\"&#919;\\\" > <!ENTITY Theta \\\"&#920;\\\" > <!ENTITY Iota \\\"&#921;\\\" > <!ENTITY Kappa \\\"&#922;\\\" > <!ENTITY Lambda \\\"&#923;\\\" > <!ENTITY Mu \\\"&#924;\\\" > <!ENTITY Nu \\\"&#925;\\\" > <!ENTITY Xi \\\"&#926;\\\" > <!ENTITY Omicron \\\"&#927;\\\" > <!ENTITY Pi \\\"&#928;\\\" > <!ENTITY Rho \\\"&#929;\\\" > <!ENTITY Sigma \\\"&#931;\\\" > <!ENTITY Tau \\\"&#932;\\\" > <!ENTITY Upsilon \\\"&#933;\\\" > <!ENTITY Phi \\\"&#934;\\\" > <!ENTITY Chi \\\"&#935;\\\" > <!ENTITY Psi \\\"&#936;\\\" > <!ENTITY Omega \\\"&#937;\\\" > <!ENTITY alpha \\\"&#945;\\\" > <!ENTITY beta \\\"&#946;\\\" > <!ENTITY gamma \\\"&#947;\\\" > <!ENTITY delta \\\"&#948;\\\" > <!ENTITY epsilon \\\"&#949;\\\" > <!ENTITY zeta \\\"&#950;\\\" > <!ENTITY eta \\\"&#951;\\\" > <!ENTITY theta \\\"&#952;\\\" > <!ENTITY iota \\\"&#953;\\\" > <!ENTITY kappa \\\"&#954;\\\" > <!ENTITY lambda \\\"&#955;\\\" > <!ENTITY mu \\\"&#956;\\\" > <!ENTITY nu \\\"&#957;\\\" > <!ENTITY xi \\\"&#958;\\\" > <!ENTITY omicron \\\"&#959;\\\" > <!ENTITY pi \\\"&#960;\\\" > <!ENTITY rho \\\"&#961;\\\" > <!ENTITY sigmaf \\\"&#962;\\\" > <!ENTITY sigma \\\"&#963;\\\" > <!ENTITY tau \\\"&#964;\\\" > <!ENTITY upsilon \\\"&#965;\\\" > <!ENTITY phi \\\"&#966;\\\" > <!ENTITY chi \\\"&#967;\\\" > <!ENTITY psi \\\"&#968;\\\" > <!ENTITY omega \\\"&#969;\\\" > <!ENTITY thetasym \\\"&#977;\\\" > <!ENTITY upsih \\\"&#978;\\\" > <!ENTITY piv \\\"&#982;\\\" > <!ENTITY bull \\\"&#8226;\\\" > <!ENTITY hellip \\\"&#8230;\\\" > <!ENTITY prime \\\"&#8242;\\\" > <!ENTITY Prime \\\"&#8243;\\\" > <!ENTITY oline \\\"&#8254;\\\" > <!ENTITY frasl \\\"&#8260;\\\" > <!ENTITY weierp \\\"&#8472;\\\" > <!ENTITY image \\\"&#8465;\\\" > <!ENTITY real \\\"&#8476;\\\" > <!ENTITY trade \\\"&#8482;\\\" > <!ENTITY alefsym \\\"&#8501;\\\" > <!ENTITY larr \\\"&#8592;\\\" > <!ENTITY uarr \\\"&#8593;\\\" > <!ENTITY rarr \\\"&#8594;\\\" > <!ENTITY darr \\\"&#8595;\\\" > <!ENTITY harr \\\"&#8596;\\\" > <!ENTITY crarr \\\"&#8629;\\\" > <!ENTITY lArr \\\"&#8656;\\\" > <!ENTITY uArr \\\"&#8657;\\\" > <!ENTITY rArr \\\"&#8658;\\\" > <!ENTITY dArr \\\"&#8659;\\\" > <!ENTITY hArr \\\"&#8660;\\\" > <!ENTITY forall \\\"&#8704;\\\" > <!ENTITY part \\\"&#8706;\\\" > <!ENTITY exist \\\"&#8707;\\\" > <!ENTITY empty \\\"&#8709;\\\" > <!ENTITY nabla \\\"&#8711;\\\" > <!ENTITY isin \\\"&#8712;\\\" > <!ENTITY notin \\\"&#8713;\\\" > <!ENTITY ni \\\"&#8715;\\\" > <!ENTITY prod \\\"&#8719;\\\" > <!ENTITY sum \\\"&#8721;\\\" > <!ENTITY minus \\\"&#8722;\\\" > <!ENTITY lowast \\\"&#8727;\\\" > <!ENTITY radic \\\"&#8730;\\\" > <!ENTITY prop \\\"&#8733;\\\" > <!ENTITY infin \\\"&#8734;\\\" > <!ENTITY ang \\\"&#8736;\\\" > <!ENTITY and \\\"&#8743;\\\" > <!ENTITY or \\\"&#8744;\\\" > <!ENTITY cap \\\"&#8745;\\\" > <!ENTITY cup \\\"&#8746;\\\" > <!ENTITY int \\\"&#8747;\\\" > <!ENTITY there4 \\\"&#8756;\\\" > <!ENTITY sim \\\"&#8764;\\\" > <!ENTITY cong \\\"&#8773;\\\" > <!ENTITY asymp \\\"&#8776;\\\" > <!ENTITY ne \\\"&#8800;\\\" > <!ENTITY equiv \\\"&#8801;\\\" > <!ENTITY le \\\"&#8804;\\\" > <!ENTITY ge \\\"&#8805;\\\" > <!ENTITY sub \\\"&#8834;\\\" > <!ENTITY sup \\\"&#8835;\\\" > <!ENTITY nsub \\\"&#8836;\\\" > <!ENTITY sube \\\"&#8838;\\\" > <!ENTITY supe \\\"&#8839;\\\" > <!ENTITY oplus \\\"&#8853;\\\" > <!ENTITY otimes \\\"&#8855;\\\" > <!ENTITY perp \\\"&#8869;\\\" > <!ENTITY sdot \\\"&#8901;\\\" > <!ENTITY lceil \\\"&#8968;\\\" > <!ENTITY rceil \\\"&#8969;\\\" > <!ENTITY lfloor \\\"&#8970;\\\" > <!ENTITY rfloor \\\"&#8971;\\\" > <!ENTITY lang \\\"&#9001;\\\" > <!ENTITY rang \\\"&#9002;\\\" > <!ENTITY loz \\\"&#9674;\\\" > <!ENTITY spades \\\"&#9824;\\\" > <!ENTITY clubs \\\"&#9827;\\\" > <!ENTITY hearts \\\"&#9829;\\\" > <!ENTITY diams \\\"&#9830;\\\" > <!ENTITY lcub \\\"\\\" > <!ENTITY rcub \\\"\\\" > <!ENTITY excl \\\"\\\" > <!ENTITY quest \\\"\\\" > <!ENTITY num \\\"\\\" >]>\");\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"dtds/mathml2.dtd\\\">\");\n\t\t patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"http://10.18.203.79:7070/solr/dtds/mathml2.dtd\\\">\");\n\t\t Patent parsedPatent = null;\n\t if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.5 2014-04-03\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t\t\t\tparsedPatent = parseGrantv45(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.4 2013-05-16\\\"\")==true) { // patent xml is grant in DTD v4.4\n\t \tparsedPatent = parseGrantv44(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is grant in DTD v4.3\n\t \tparsedPatent = parseGrantv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is grant in DTD v4.2\n\t \tparsedPatent = parseGrantv42(patentxml);\n\t }\t\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t \tparsedPatent = parseGrantv41(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v40 2004-12-02\\\"\")==true) { // patent xml is grant in DTD v4.0\n\t \tparsedPatent = parseGrantv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.5\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv25(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.4\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv24(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.4 2014-04-03\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv44(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv42(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv41(patentxml);\n\t }\t \t \n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-12-02\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-10-28\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041028(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-27\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040927(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-08\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040908(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-04-15\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040415(patentxml);\n\t }\n\t else if(patentxml.indexOf(\"<!DOCTYPE patent-application-publication\")==0 && patentxml.contains(\"pap-v16-2002-01-01.dtd\")==true) { // patent xml is application in DTD v1.6\n\t \tparsedPatent = parseApplicationv16(patentxml);\n\t }\n\t\t return parsedPatent==null? new Patent():parsedPatent;\n\t }", "public static Document transform(Node xmlXML, Node xmlXSL)\r\n throws TransformerConfigurationException,\r\n TransformerException \r\n \r\n {\r\n return XMLUtil.getOwnerDocument(transform(xmlXML, xmlXSL, (Node)null)); \r\n }", "public void transform(Node xml,\n XMLWriter writer,\n TransformerImpl transformer)\n throws SAXException, IOException, TransformerException\n {\n XslWriter out = new XslWriter(null, this, transformer);\n out.init(writer);\n \n applyNode(out, xml);\n \n out.close();\n }", "public String transform(String input) throws Exception {\n StringWriter outWriter = new StringWriter();\n StringReader reader = new StringReader(input);\n Result result = new StreamResult(outWriter);\n myTransformer.transform(\n new javax.xml.transform.stream.StreamSource(reader), result);\n return outWriter.toString();\n }", "public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }", "public AnXmlTransform() {\n super();\n }", "public static Node copy(Node xmlXML, DOMResult xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return transform\r\n (xmlXML, \r\n getIdentityTransformationStylesheetDocument(),\r\n xmlResult);\r\n }", "public static void saveTransformedDom(Document doc, URI theUri, URI transUri,\n HashMap<String, String> parameters)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n try {\n TransformerFactory transFac = TransformerFactory.newInstance();\n\n //DocumentBuilderFactory dFactory=DocumentBuilderFactory.newInstance();\n // must be set true for transformations\n //dFactory.setNamespaceAware(true); \n //DocumentBuilder docBuilder=dFactory.newDocumentBuilder();\n DocumentBuilder docBuilder = makeDocBuilder(true);\n Document xslDoc = docBuilder.parse(transUri.toString());\n DOMSource xslDomSource = new DOMSource(xslDoc);\n xslDomSource.setSystemId(theUri.toString());// ?? transUri\n DOMSource xmlDomSource = new DOMSource(doc);\n Transformer trans = transFac.newTransformer(xslDomSource);\n\n // all transformation properties are assumed set by transformation author\n // so no: trans.setOutputProperty(OutputKeys.xxx,\"\");\n // it would be possible to overrun properties by global options ?\n\n // deal with parameters. Simply set them as is\n if (parameters != null) {\n for (Iterator<String> it = parameters.keySet().iterator(); it.hasNext();) {\n String key = it.next();\n trans.setParameter(key, parameters.get(key));\n }\n }\n\n\n // set outputstreamwriter\n // make sure file exists\n if (!accessutils.makeCatalog(theUri)) {\n throw new Exception(\"Cant make file\");\n }\n\n java.io.FileOutputStream out = new java.io.FileOutputStream(theUri.getPath());\n java.io.OutputStreamWriter os = new java.io.OutputStreamWriter(out, trans.getOutputProperty(OutputKeys.ENCODING));\n java.io.BufferedWriter bos = new java.io.BufferedWriter(os);\n StreamResult outStream = new StreamResult(bos);\n\n // do it \n trans.transform(xmlDomSource, outStream);\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveTransformedDom: \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveTransformedDom: \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveTransformedDom: \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveTransformedDom: \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IOException ioe) {\n System.out.println(\"domer:saveTransformedDom: \" + ioe.getMessage());\n throw new Exception(ioe.getMessage());\n } catch (SAXException saxe) {\n System.out.println(\"domer:saveTransformedDom: \" + saxe.getMessage());\n throw new Exception(saxe.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveTransformedDom: \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveTransformedDom: \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }", "abstract protected String getOtherXml();", "public static ByteArrayOutputStream applyXSL(Context context, InputStream sourceInputStream, int xslID) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream(32);\n \n try {\n Source source = new DOMSource(\n DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(sourceInputStream));\n Transformer transformer = TransformerFactory.newInstance().newTransformer(\n new StreamSource(context.getResources().openRawResource(xslID)));\n StreamResult result = new StreamResult(outputStream);\n transformer.transform(source, result);\n }\n catch(IOException e) {\n Log.e(LOG_TAG, Log.getStackTraceString(e));\n }\n catch(TransformerException e) {\n Log.e(LOG_TAG, Log.getStackTraceString(e));\n }\n catch(SAXException e) {\n Log.e(LOG_TAG, Log.getStackTraceString(e));\n }\n catch(ParserConfigurationException e) {\n Log.e(LOG_TAG, Log.getStackTraceString(e));\n }\n \n return outputStream;\n }", "abstract boolean equivalentXml(Object target);", "private String transformDomToXml(Document document) throws KeyChangeException {\n Transformer transformer;\n try {\n transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, KeyChangeConstants.YES);\n } catch (TransformerConfigurationException e) {\n throw new KeyChangeException(\"Configuration error occurred while creating new Transformer.\", e);\n }\n\n StringWriter stringWriter = null;\n try {\n stringWriter = new StringWriter();\n StreamResult result = new StreamResult(stringWriter);\n DOMSource source = new DOMSource(document);\n transformer.transform(source, result);\n return stringWriter.toString();\n } catch (TransformerException e) {\n throw new KeyChangeException(\"Error occurred while transforming Document element to XML.\", e);\n } finally {\n if (stringWriter != null) {\n try {\n stringWriter.close();\n } catch (IOException e) {\n throw new KeyChangeException(\"Error closing stream writer.\", e);\n }\n }\n }\n }", "public static void transform(final String xmlSource, final String xslFilePath, final boolean doCacheXsl,\r\n final Writer out) {\r\n transform(xmlSource, xslFilePath, 0L, doCacheXsl, out);\r\n }", "public static void transform(final String xmlSource, final String xslFilePath, final long lastModified,\r\n final boolean doCacheXsl, final Writer out) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.transform : enter : xslFilePath : \" + xslFilePath);\r\n }\r\n\r\n if ((xmlSource != null) && (xslFilePath != null)) {\r\n Transformer tf = null;\r\n\r\n if (doCacheXsl) {\r\n tf = loadXsl(xslFilePath);\r\n } else {\r\n final File file = new File(xslFilePath);\r\n\r\n tf = newTransformer(new StreamSource(file));\r\n }\r\n\r\n if (tf != null) {\r\n if (lastModified > 0L) {\r\n tf.setParameter(\"lastModified\", String.valueOf(lastModified));\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.transform : XML Source : \" + xmlSource);\r\n }\r\n\r\n asString(tf, new StreamSource(new StringReader(xmlSource)), out);\r\n }\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.transform : exit : \" + out);\r\n }\r\n }", "public String formatXml(String str) throws UnsupportedEncodingException, IOException, DocumentException {\n\t\tSAXReader reader = new SAXReader();\r\n\t\t// System.out.println(reader);\r\n\t\t// 注释:创建一个串的字符输入流\r\n\t\tStringReader in = new StringReader(str);\r\n\t\tDocument doc = reader.read(in);\r\n\t\t// System.out.println(doc.getRootElement());\r\n\t\t// 注释:创建输出格式\r\n\t\tOutputFormat formater = OutputFormat.createPrettyPrint();\r\n\t\t// 注释:设置xml的输出编码\r\n\t\tformater.setEncoding(\"utf-8\");\r\n\t\t// 注释:创建输出(目标)\r\n\t\tStringWriter out = new StringWriter();\r\n\t\t// 注释:创建输出流\r\n\t\tXMLWriter writer = new XMLWriter(out, formater);\r\n\t\t// 注释:输出格式化的串到目标中,执行后。格式化后的串保存在out中。\r\n\t\twriter.write(doc);\r\n\r\n\t\tString destXML = out.toString();\r\n\t\twriter.close();\r\n\t\tout.close();\r\n\t\tin.close();\r\n\t\t// 注释:返回我们格式化后的结果\r\n\t\treturn destXML;\r\n\t}", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }", "public XStream createXStream()\n\t{\n\t\tXStream xstream = new XStream(new XppDriver());\n\t\t\n\t\txstream.registerConverter(new CalendarConverter(), XStream.PRIORITY_VERY_HIGH);\n//\t\txstream.registerConverter(new JoinedConverter(), XStream.PRIORITY_NORMAL);\n\n//\t\txstream.addImplicitCollection(TeamsTO.class, \"teams\", TeamTO.class);\n//\t\txstream.addImplicitCollection(UsersTO.class, \"users\", UserTO.class);\n\t\t\n//\t\txstream.alias(\"user\", UserTO.class);\n\t\txstream.processAnnotations(UserTO.class);\n//\t\txstream.alias(\"user\", com.jpizarro.th.lib.team.entity.UserTO.class);\n\n//\t\txstream.alias(\"team\", TeamTO.class);\n\t\txstream.processAnnotations(TeamTO.class);\n\t\t\n\t\n//\t\txstream.alias(\"teams\", TeamsTO.class);\n//\t\txstream.alias(\"users\", UsersTO.class);\n\t\t\n\t\t\n//\t\txstream.aliasField(\"users\", TeamTO.class, \"userTOList\");\n\t\t\n\t\txstream.alias(\"exception\", THException.class);\n\t\t\n\t\treturn xstream;\n\t}", "public void parseResultXML (String res) {\n\n try {\n \t DOMParser dparser = new DOMParser ();\n\n // Construct an InputSource from the XML String we're given.\n\t // Xerces is usually used to handling file objects so we need\n\t // to hack a bit here ....\n dparser.parse (new InputSource (\n\t\t\t new ByteArrayInputStream ( res.getBytes() ) ));\n\n walk ( dparser.getDocument () );\n\n } catch (Exception e) { System.out.println(\"Errors \" + e); }\n }", "public static void main(String[]args){\n XMLOutputter out = new XMLOutputter();\n SAXBuilder sax = new SAXBuilder();\n\n //Objekte die gepseichert werden sollen\n Car car = new Car(\"CR-MD-5\",\"16.05.1998\",4,4,4);\n Car car2 = new Car(\"UL-M-5\",\"11.03.2002\",10,2,5);\n\n\n Element rootEle = new Element(\"cars\");\n Document doc = new Document(rootEle);\n\n //hinzufuegen des ersten autos\n Element carEle = new Element(\"car\");\n carEle.setAttribute(new Attribute(\"car\",\"1\"));\n carEle.addContent(new Element(\"licenseplate\").setText(car.getLicensePlate()));\n carEle.addContent(new Element(\"productiondate\").setText(car.getProductionDate()));\n carEle.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car.getNumberPassengers())));\n carEle.addContent(new Element(\"numberwheels\").setText(Integer.toString(car.getNumberWheels())));\n carEle.addContent(new Element(\"numberdoors\").setText(Integer.toString(car.getNumberDoors())));\n\n //hinzufuegen des zweiten autos\n Element carEle2 = new Element(\"car2\");\n carEle2.setAttribute(new Attribute(\"car2\",\"2\"));\n carEle2.addContent(new Element(\"licenseplate\").setText(car2.getLicensePlate()));\n carEle2.addContent(new Element(\"productiondate\").setText(car2.getProductionDate()));\n carEle2.addContent(new Element(\"numberpassengers\").setText(Integer.toString(car2.getNumberPassengers())));\n carEle2.addContent(new Element(\"numberwheels\").setText(Integer.toString(car2.getNumberWheels())));\n carEle2.addContent(new Element(\"numberdoors\").setText(Integer.toString(car2.getNumberDoors())));\n\n\n doc.getRootElement().addContent(carEle);\n doc.getRootElement().addContent(carEle2);\n\n //Einstellen des Formates auf gut lesbares, eingeruecktes Format\n out.setFormat(Format.getPrettyFormat());\n //Versuche in xml Datei zu schreiben\n try {\n out.output(doc, new FileWriter(\"SaveCar.xml\"));\n } catch (IOException e) {\n System.out.println(\"Error opening File\");\n }\n\n\n //Einlesen\n\n File input = new File(\"SaveCar.xml\");\n Document inputDoc = null;\n //Versuche aus xml Datei zu lesen und Document zu instanziieren\n try {\n inputDoc = (Document) sax.build(input);\n } catch (JDOMException e) {\n System.out.println(\"An Error occured\");\n } catch (IOException e) {\n System.out.print(\"Error opening File\");\n }\n\n //Liste von Elementen der jeweiligen Autos\n List<Element> listCar = inputDoc.getRootElement().getChildren(\"car\");\n List<Element> listCar2 = inputDoc.getRootElement().getChildren(\"car2\");\n\n //Ausgabe der Objekte auf der Konsole (manuell)\n printXML(listCar);\n System.out.println();\n printXML(listCar2);\n\n //Erstellen der abgespeicherten Objekte\n Car savedCar1 = createObj(listCar);\n Car savedCar2 = createObj(listCar2);\n\n System.out.println();\n System.out.println(savedCar1);\n System.out.println();\n System.out.println(savedCar2);\n\n}", "protected InputStream getContentXML(String viewId) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"requested viewId: \" + viewId);\n }\n StringBuilder sb = new StringBuilder(\"<?xml version=\\\"1.0\\\"?>\");\n sb.append(\"<root>\");\n sb.append(\"<child>\");\n sb.append(\"Hello World!\");\n sb.append(\"</child>\");\n sb.append(\"</root>\");\n return new ByteArrayInputStream(sb.toString().getBytes(\"utf-8\"));\n }", "public static String saveTransformedDomToString(Document doc, URI theUri, URI transUri,\n HashMap<String, String> parameters)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n try {\n TransformerFactory transFac = TransformerFactory.newInstance();\n\n //DocumentBuilderFactory dFactory=DocumentBuilderFactory.newInstance();\n // must be set true for transformations\n //dFactory.setNamespaceAware(true); \n //DocumentBuilder docBuilder=dFactory.newDocumentBuilder();\n\n DocumentBuilder docBuilder = makeDocBuilder(true);\n Document xslDoc = docBuilder.parse(transUri.toString());\n\n DOMSource xslDomSource = new DOMSource(xslDoc);\n // where urls will be resolved. Nomeaning if we dont need\n // to access other files during transformation\n xslDomSource.setSystemId(theUri.toString());// ?? transUri | anything\n DOMSource xmlDomSource = new DOMSource(doc);\n Transformer trans = transFac.newTransformer(xslDomSource);\n\n // all transformation properties are assumed set by transformation author\n // so no: trans.setOutputProperty(OutputKeys.xxx,\"\");\n // it would be possible to overrun properties by global options ?\n\n // deal with parameters. Simply set them as is\n if (parameters != null) {\n for (Iterator<String> it = parameters.keySet().iterator(); it.hasNext();) {\n String key = it.next();\n trans.setParameter(key, parameters.get(key));\n }\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n // while testing\n String tst = out.toString().toString();\n\n return out.toString().toString();\n\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveTransformedDom: \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveTransformedDom: \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveTransformedDom: \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveTransformedDom: \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IOException ioe) {\n System.out.println(\"domer:saveTransformedDom: \" + ioe.getMessage());\n throw new Exception(ioe.getMessage());\n } catch (SAXException saxe) {\n System.out.println(\"domer:saveTransformedDom: \" + saxe.getMessage());\n throw new Exception(saxe.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveTransformedDom: \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveTransformedDom: \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void convert(String inFile, String outFile) throws IOException, JAXBException;", "private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}", "private String convertXmlToString(Document xmlDoc) {\r\n\r\n\t\tString xmlAsString = \"\";\r\n\t\ttry {\r\n\r\n\t\t\tTransformer transformer;\r\n\t\t\ttransformer = TransformerFactory.newInstance().newTransformer();\r\n\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(\r\n\t\t\t\t\t\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\r\n\r\n\t\t\tStreamResult result = new StreamResult(new StringWriter());\r\n\r\n\t\t\tDOMSource source = new DOMSource(xmlDoc);\r\n\r\n\t\t\ttransformer.transform(source, result);\r\n\r\n\t\t\txmlAsString = result.getWriter().toString();\r\n\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerFactoryConfigurationError e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn xmlAsString;\r\n\r\n\t}", "public String parserXHtml(String html) {\r\n\t\torg.jsoup.nodes.Document document = Jsoup.parseBodyFragment(html);\r\n\t\tdocument.outputSettings().syntax(org.jsoup.nodes.Document.OutputSettings.Syntax.xml);\r\n\t\tdocument.outputSettings().charset(\"UTF-8\");\r\n\t\treturn document.toString();\r\n\t}", "public java.lang.String getXml();", "public void restoreFromXml(Element root) {\n\t\t//do nothing\n\t}", "public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}", "public void export(String URN) {\n try {\n DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();\n fabrique.setValidating(true);\n DocumentBuilder constructeur = fabrique.newDocumentBuilder();\n Document document = constructeur.newDocument();\n \n // Propriétés du DOM\n document.setXmlVersion(\"1.0\");\n document.setXmlStandalone(true);\n \n // Création de l'arborescence du DOM\n Element racine = document.createElement(\"monde\");\n racine.setAttribute(\"longueur\",Integer.toString(getLongueur()));\n racine.setAttribute(\"largeur\",Integer.toString(getLargeur()));\n document.appendChild(racine);\n for (Composant composant:composants) {\n racine.appendChild(composant.toElement(document)) ;\n }\n \n // Création de la source DOM\n Source source = new DOMSource(document);\n \n // Création du fichier de sortie\n File file = new File(URN);\n Result resultat = new StreamResult(URN);\n \n // Configuration du transformer\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"http://womby.zapto.org/monde.dtd\");\n \n // Transformation\n transformer.transform(source, resultat);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void convertBackAndForth(String xml) {\n Element element = createApiElementFromXml(xml);\n String resultXml = ElementSerializer.apiElementToXml(element).getXmlString();\n assertEquals(xml, resultXml);\n }", "public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }", "public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }", "public void xmlPresentation () {\n System.out.println ( \"****** XML Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n Books books = new Books();\n books.setBooks(new ArrayList<Book>());\n\n bookArrayList = new Request().postRequestBook();\n\n for (Book aux: bookArrayList) {\n books.getBooks().add(aux);\n }\n\n try {\n javax.xml.bind.JAXBContext jaxbContext = JAXBContext.newInstance(Books.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n jaxbMarshaller.marshal(books, System.out);\n } catch (JAXBException e) {\n System.out.println(\"Error: \"+ e);\n }\n ClientEntry.showMenu ( );\n }", "void xsetTarget(org.apache.xmlbeans.XmlString target);", "private void exportTreeML()\r\n {\r\n // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Save the file.\r\n// String file = openFileChooser(false, filters);\r\n// \r\n// // Write the file.\r\n// if (file != null)\r\n// {\r\n// String extension = file.substring(file.length() - 4);\r\n// if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n// Writer.writeTreeML(m_gtree, file);\r\n// }\r\n }", "abstract org.apache.xmlbeans.XmlObject getXmlObject();", "public Element transform(Node source) throws TransformerException {\n DOMResult outputDR = new DOMResult();\n myTransformer.transform(new DOMSource(source), outputDR);\n return ((Document) outputDR.getNode()).getDocumentElement();\n }", "public OutEntries getFromSecondXml();", "public ByteArrayOutputStream TransfomForWS(ByteArrayInputStream fileData) throws ParserConfigurationException{\r\n\t\tByteArrayOutputStream resultData=new ByteArrayOutputStream();\r\n\t\tfinal InputStream xslStream = XSLTLoader.class.getClassLoader().getResourceAsStream(this.xslStyleSheet);\r\n\t\tfinal TransformerFactory f = TransformerFactory.newInstance();\r\n\t\t\r\n\t\t\r\n\t\t final DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n\t\t \r\n\t\tf.setURIResolver(new URIResolver() {\r\n\r\n\t\t\tpublic Source resolve(String href, String base) throws TransformerException {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClassLoader cl = this.getClass().getClassLoader();\r\n\t\t\t\t\tjava.io.InputStream in = cl.getResourceAsStream(href);\r\n\r\n\t\t\t\t InputSource xslInputSource = new InputSource(in);\r\n\t\t\t\t Document xslDoc;\r\n\t\t\t\t\txslDoc = dBuilder.parse(xslInputSource);\r\n\t\t\t\t\tDOMSource xslDomSource = new DOMSource(xslDoc);\r\n\t\t\t\t xslDomSource.setSystemId(\"xslt/\" + href);\r\n\t\t\t\t return xslDomSource;\r\n\t\t\t\t} catch (SAXException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTransformer transformer=null;\r\n\t\ttry {\r\n\t\t\ttransformer = f.newTransformer(new StreamSource(xslStream));\r\n\t\t} catch (TransformerConfigurationException 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\ttry {\r\n\t\t\ttransformer.transform(new StreamSource(fileData), new StreamResult(resultData));\r\n\t\t} catch (TransformerException 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 resultData;\r\n\t}", "private static void testFromXmlToObj() {\n String xml2 = \"<xml.mapping.xstream.MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </xml.mapping.xstream.MappingTestBean>\";\n String xml3 = \"<MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </MappingTestBean>\";\n MappingTestBean mtb2 = (MappingTestBean) xstream.fromXML(xml2);\n MappingTestBean mtb3 = (MappingTestBean) xstream.fromXML(xml3);\n System.out.println(ReflectionToStringBuilder.toString(mtb2));\n System.out.println(ReflectionToStringBuilder.toString(mtb3));\n }", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "void xsetContent(org.apache.xmlbeans.XmlString content);", "public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }", "private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }", "private void testProXml(){\n\t}", "public String flattenXML(String xmlpath) {\n\t\tstrInputXMLFileName = xmlpath.substring(1 + xmlpath.lastIndexOf(File.separator));\n\t\t\n\t\tSystem.out.println(\"file name is: \" + strInputXMLFileName);\n\n\t\tlineWriter = new LineWriter(strDataHomePath, strInputXMLFileName, \"out\");\n\t\tlineWriter.open();\n\t\t\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\tDocument dom = db.parse(xmlpath);\n\t\t\t\n\t\t\t// get root element\n\t\t\tElement docEle = dom.getDocumentElement();\n\t\t\t\n\t\t\tString strNodeName = docEle.getNodeName();\n\t\t\t\n\t\t\tif(strNodeName.isEmpty() == false)\n\t\t\t{\n\t\t\t\t// This XML document has root element so looks like valid XML\n\t\t\t\t// TODO: wish I know better way to validate XML documents\n\t\t\t\t// Since we got root node, lets flatten all the nodes under this\n\t\t\t\t\n\t\t\t\tNodeList nl = docEle.getChildNodes();\n\t\t\t\t\n\t\t\t\tif(null == nl) return null;\n\t\t\t\t\n\t\t\t\tint iret = flattenXML(nl, \"/#node:\" + strNodeName);\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(docEle.getNodeName());\n//\t\t\tSystem.out.println(docEle.toString());\n\t\t\t\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch blockElement ele = null;\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t\tlineWriter.close();\n\t\tstrFlatXMLFilePath = lineWriter.getGeneraterFilePath();\n\t\t\n\t\treturn strFlatXMLFilePath;\n\t}", "@Override\n\tpublic String generateHtmlFromXsl(Document doc, File fileForXsl) throws ParserConfigurationException, SAXException,\n\t\t\tIOException, TransformerFactoryConfigurationError, TransformerException {\n\t\tStreamSource streamSource = new StreamSource(fileForXsl);\n\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer(streamSource);\n\t\tStringWriter writer = new StringWriter();\n\t\ttransformer.transform(new DOMSource(doc), new StreamResult(writer));\n\n\t\treturn writer.getBuffer().toString();\n\t}", "public void testXML() {\n // check XML Entity Catalogs\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n // \"DTDs and XML Schemas\"\n String dtdsItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogAction_Name\");\n new Action(toolsItem + \"|\" + dtdsItem, null).perform();\n // \"DTDs and XML Schemas\"\n String dtdsTitle = Bundle.getString(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogPanel_Title\");\n NbDialogOperator dtdsOper = new NbDialogOperator(dtdsTitle);\n\n String publicID = \"-//DTD XMLCatalog//EN\";\n Node catalogNode = new Node(new JTreeOperator(dtdsOper),\n \"NetBeans Catalog|\"\n + publicID);\n // view and close it\n new ViewAction().perform(catalogNode);\n new EditorOperator(publicID).close();\n dtdsOper.close();\n\n // create an XML file\n\n // create xml package\n // select Source Packages to not create xml folder in Test Packages\n new SourcePackagesNode(SAMPLE_PROJECT_NAME).select();\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, \"xml\"); // NOI18N\n Node xmlNode = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), \"xml\"); //NOI18N\n // \"XML\"\n String xmlCategory = Bundle.getString(\"org.netbeans.api.xml.resources.Bundle\", \"Templates/XML\");\n // \"XML Document\"\n String xmlDocument = Bundle.getString(\"org.netbeans.modules.xml.resources.Bundle\", \"Templates/XML/XMLDocument.xml\");\n NewFileWizardOperator.invoke(xmlNode, xmlCategory, xmlDocument);\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(\"XMLDocument\"); // NOI18N\n nameStepOper.next();\n nameStepOper.finish();\n // wait node is present\n Node xmlDocumentNode = new Node(xmlNode, \"XMLDocument.xml\"); // NOI18N\n // wait xml document is open in editor\n new EditorOperator(\"XMLDocument.xml\").close(); // NOI18N\n\n // \"Check XML\"\n\n String checkXMLItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Check_XML\");\n // invoke context action to check xml\n new Action(null, checkXMLItem).perform(xmlDocumentNode);\n // \"XML check\"\n String xmlCheckTitle = Bundle.getString(\"org.netbeans.modules.xml.actions.Bundle\", \"TITLE_XML_check_window\");\n // find and close an output with the result of xml check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Validate XML\"\n\n String validateItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_XML\");\n // invoke context action to validate xml\n new Action(null, validateItem).perform(xmlDocumentNode);\n // find and close an output with the result of xml validation\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DTD...\"\n\n String generateDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDTD\");\n new ActionNoBlock(null, generateDTDItem).perform(xmlDocumentNode);\n // \"Select File Name\"\n String selectTitle = Bundle.getString(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_fileNameTitle\");\n NbDialogOperator selectDialog = new NbDialogOperator(selectTitle);\n // name has to be set because of issue http://www.netbeans.org/issues/show_bug.cgi?id=46049\n new JTextFieldOperator(selectDialog).setText(\"DTD\");\n String oKLabel = Bundle.getString(\"org.netbeans.core.windows.services.Bundle\", \"OK_OPTION_CAPTION\");\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait DTD is open in editor\n new EditorOperator(\"DTD.dtd\").close(); // NOI18N\n Node dtdNode = new Node(xmlNode, \"DTD.dtd\"); // NOI18N\n\n // \"Check DTD\"\n\n String checkDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_DTD\");\n new Action(null, checkDTDItem).perform(dtdNode);\n // find and close an output with the result of dtd check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DOM Tree Scanner\"\n String generateScannerItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDOMScanner\");\n new ActionNoBlock(null, generateScannerItem).perform(dtdNode);\n selectDialog = new NbDialogOperator(selectTitle);\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait Scanner is open in editor\n new EditorOperator(\"DTDScanner.java\").close(); // NOI18N\n new Node(xmlNode, \"DTDScanner.java\"); // NOI18N\n }", "@Test\n// @Ignore\n public void testConversion() {\n String xmlIn = XmlTool.removeNamespaces(xmlReqNoAttrs);\n // strip all the non-data whitespace\n xmlIn = xmlIn.replaceAll(\">\\\\s*<\", \"><\");\n String json = JsonUtils.xml2json(xmlReqNoAttrs);\n System.out.println(\"testConversion(): xml request to json: \" + json);\n String xmlOut = JsonUtils.json2xml(json);\n System.out.println(\"testConversion(): json request back to xml: \" + xmlOut);\n \n // strip all the non-data whitespace\n xmlOut = xmlOut.replaceAll(\">\\\\s*<\", \"><\");\n// System.out.println(\"testConversion(): xml in: \" + xmlIn);\n// System.out.println(\"testConversion(): xml out: \" + xmlOut);\n\n Diff diffXml;\n try {\n diffXml = new Diff(xmlIn, xmlOut);\n Assert.assertTrue(diffXml.similar());\n// Assert.assertTrue(diffXml.identical());\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "org.apache.xmlbeans.XmlString xgetCurrentrun();", "public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}", "XPackage getXPackage();", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n super.toXML(out, getXMLElementTagName());\n }", "public void checkOutputXML (IInternalContest contest) {\n \n try {\n DefaultScoringAlgorithm defaultScoringAlgorithm = new DefaultScoringAlgorithm();\n String xmlString = defaultScoringAlgorithm.getStandings(contest, new Properties(), log);\n \n // getStandings should always return a well-formed xml\n assertFalse(\"getStandings returned null \", xmlString == null);\n assertFalse(\"getStandings returned empty string \", xmlString.trim().length() == 0);\n \n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n documentBuilder.parse(new InputSource(new StringReader(xmlString)));\n } catch (Exception e) {\n assertTrue(\"Error in XML output \" + e.getMessage(), true);\n e.printStackTrace();\n }\n }", "public void exportPropertiesToXML(PropertySet properties, String xmlPath){\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\t//Call the method to get the root element of this document\n\t\t\tElement root = createJDOMRepresentation(properties);\n\t\t\t\n\t\t\t//Create an XML Outputter\n\t\t\tXMLOutputter outputter = new XMLOutputter();\n\t\t\t\n\t\t\t//Set the format of the outputted XML File\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\toutputter.setFormat(format);\n\t\t\t\n\t\t\t//Output the XML File to standard output and the desired file\n\t\t\tFileWriter filew = new FileWriter(xmlPath);\n\t\t\t//outputter.output(root, System.out);\n\t\t\toutputter.output(root, filew);\n\t\t\t\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "String toXmlString() throws IOException;", "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 Element toXMLElement() {\n return null;\n }" ]
[ "0.6348865", "0.6276281", "0.6187222", "0.6173412", "0.6173412", "0.6173412", "0.60249263", "0.5966884", "0.59602994", "0.59463614", "0.5909519", "0.5865217", "0.5814415", "0.5809283", "0.57856476", "0.57792866", "0.5772107", "0.57427704", "0.57236475", "0.5715007", "0.5676415", "0.5658107", "0.565474", "0.5649272", "0.5636607", "0.563102", "0.5617148", "0.5611062", "0.5575597", "0.55663306", "0.555734", "0.55377793", "0.55227596", "0.5478811", "0.54361534", "0.54280645", "0.54229325", "0.5409428", "0.5391924", "0.5376357", "0.5367798", "0.5360904", "0.5338077", "0.5336537", "0.53152925", "0.5297734", "0.5285148", "0.52769023", "0.5261608", "0.5258583", "0.52451354", "0.52111167", "0.5211081", "0.51859725", "0.5184211", "0.51800966", "0.517677", "0.51707697", "0.5165143", "0.5164508", "0.5157195", "0.5145945", "0.513985", "0.5126799", "0.5126161", "0.5118804", "0.51038665", "0.50992596", "0.5091872", "0.5087664", "0.5085848", "0.5081379", "0.50775194", "0.50670755", "0.50516707", "0.5029676", "0.5028321", "0.5026617", "0.5018526", "0.5016797", "0.501648", "0.5011785", "0.50068057", "0.5001201", "0.49970505", "0.49967137", "0.49875528", "0.49801543", "0.49648246", "0.49612105", "0.49589267", "0.49584007", "0.4954241", "0.49478528", "0.49450475", "0.49449158", "0.49407628", "0.4934821", "0.49306482", "0.49214938" ]
0.74970615
0
Unmarshal XML to Java class
public OutEntries getFromSecondXml();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SneakyThrows(value = {JAXBException.class})\n\tpublic static <T> T xml2Java(Class<T> t, String xml) {\n\t\tUnmarshaller unmarshaller = createUnmarshaller(t);\n\n\t\tStringReader stringReader = new StringReader(xml);\n\t\tT result = (T) unmarshaller.unmarshal(new StreamSource(stringReader));\n\t\tstringReader.close();\n\n\t\treturn result;\n\t}", "public static Object fromXML(String xml, Class className) {\r\n\t\tByteArrayInputStream xmlData = new ByteArrayInputStream(xml.getBytes());\r\n\t\tJOXBeanInputStream joxIn = new JOXBeanInputStream(xmlData);\r\n\t\ttry {\r\n\t\t\treturn (Object) joxIn.readObject(className);\r\n\t\t} catch (IOException exc) {\r\n\t\t\tlog.info(\"从xml转换成bean失败\" + exc.toString());\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\txmlData.close();\r\n\t\t\t\tjoxIn.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.info(\"从xml转换成bean失败\" + e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Object fromXML(Reader input) throws XMLUtilityException {\r\n\t\tObject beanObject;\r\n\t\tbeanObject = unmarshaller.fromXML(input);\r\n\t\treturn beanObject;\r\n\t}", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic static Object unmarshal(String sourceXml, Class[] sourceClass) throws JAXBException {\n\t\tif (StringUtils.isNotBlank(sourceXml)) {\n\t\t\tJAXBElement jaxbElement = JAXBContext.newInstance(sourceClass).createUnmarshaller().unmarshal(new StreamSource(new StringReader(sourceXml)), sourceClass[0]);\n\n\t\t\tif (jaxbElement != null && jaxbElement.getValue() != null) {\n\t\t\t\treturn jaxbElement.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Object fromXML(Class klazz, File xmlFile) throws XMLUtilityException {\r\n\r\n\t\tif (!(unmarshaller instanceof JAXBUnmarshaller)){\r\n\t\t\tthrow new XMLUtilityException(\"Invalid method invocation. This method is only valid when the unmarshaller is a JAXBUnmarshaller instance\");\r\n\t\t}\r\n\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = ((JAXBUnmarshaller)unmarshaller).fromXML(klazz,xmlFile);\r\n\t\treturn beanObject;\r\n\t}", "public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }", "public void deserialize() {\n\t\t\n\t}", "public interface Parser {\n Object getObject(String name, Class c) throws JAXBException;\n\n void saveObject(String name, Object o) throws JAXBException;\n}", "private XMLObject resolve(byte[] xml) {\n\t\tXMLObject parsed = parse(xml);\n\t\tif (parsed != null) {\n\t\t\treturn parsed;\n\t\t}\n\t\tthrow new Saml2Exception(\"Deserialization not supported for given data set\");\n\t}", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "XClass getElementClass();", "public static Object getObjectWithXML(Class<?> c, String xml) throws JAXBException {\n Unmarshaller unmarsh = JAXBContext.newInstance(c).createUnmarshaller();\n return unmarsh.unmarshal(new StringReader(xml.trim()));\n }", "public static Obj fromString(String xml) \n { \n try\n {\n ByteArrayInputStream in = new ByteArrayInputStream(xml.getBytes(\"UTF-8\"));\n ObixDecoder decoder = new ObixDecoder(in);\n return decoder.decodeDocument(); \n }\n catch(Exception e)\n {\n throw new RuntimeException(e.toString());\n }\n }", "private static void testFromXmlToObj() {\n String xml2 = \"<xml.mapping.xstream.MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </xml.mapping.xstream.MappingTestBean>\";\n String xml3 = \"<MappingTestBean> <stringParam>aaa</stringParam> <integerParam>9</integerParam> <arrayStringParam> <string>ggg</string> <string>hhh</string> <string>222</string> </arrayStringParam> <listStringParam> <string>bbb</string> <string>ccc</string> <string>111</string> </listStringParam> <mapStringParam> <entry> <string>f</string> <string>fff</string> </entry> <entry> <string>e</string> <string>eee</string> </entry> </mapStringParam> </MappingTestBean>\";\n MappingTestBean mtb2 = (MappingTestBean) xstream.fromXML(xml2);\n MappingTestBean mtb3 = (MappingTestBean) xstream.fromXML(xml3);\n System.out.println(ReflectionToStringBuilder.toString(mtb2));\n System.out.println(ReflectionToStringBuilder.toString(mtb3));\n }", "private static <T> T readObjectAsXmlFrom(Reader reader, Class<T> c) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(c);\n \n XMLStreamReader xmlReader =\n XMLInputFactory.newInstance().createXMLStreamReader(reader);\n \n Unmarshaller xmlInterpreter = jaxb.createUnmarshaller();\n \n return xmlInterpreter.unmarshal(xmlReader, c).getValue();\n }", "public Object unmarshal (String xmlText) throws Exception {\n\t\treturn unmarshal (xmlText, true); // default is true..\n\t}", "private FatturaElettronicaType unmarshalFattura(EmbeddedXMLType fatturaXml) {\n\t\tfinal String methodName = \"unmarshalFattura\";\n\t\tbyte[] xmlBytes = extractContent(fatturaXml);\n\t\tInputStream is = new ByteArrayInputStream(xmlBytes);\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance(FatturaElettronicaType.class);\n\t\t\tUnmarshaller u = jc.createUnmarshaller();\n\t\t\tFatturaElettronicaType fattura = (FatturaElettronicaType) u.unmarshal(is);\n\t\t\tlog.logXmlTypeObject(fattura, \"Fattura elettronica\");\n\t\t\treturn fattura;\n\t\t} catch(JAXBException jaxbe) {\n\t\t\tlog.error(methodName, \"Errore di unmarshalling della fattura\", jaxbe);\n\t\t\tthrow new BusinessException(ErroreCore.ERRORE_DI_SISTEMA.getErrore(\"Errore di unmarshalling della fattura elettronica\" + (jaxbe != null ? \" (\" + jaxbe.getMessage() + \")\" : \"\")));\n\t\t}\n\t}", "public Object fromXml(XmlElement xml)\n {\n // TODO: copy the relevant namespaces declared by the parent\n // should that be done by clone?\n return xml == null ? null : xml.clone();\n }", "public XmlAdaptedPerson() {}", "public static Object objectFromXml(String xml) throws XmlParseException\n {\n return objectFromXmlElement(Xmlwise.createXml(xml));\n }", "public static <T> T xmlUnmarshall(Class<T> clazz, String xml) throws Exception {\n\t\tStringReader reader = null;\n\t\ttry {\n\t\t\t// covert text to Java class object\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(clazz);\n\t\t\tUnmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\treader = new StringReader(xml);\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tT header = (T)jaxbUnmarshaller.unmarshal(reader);\n\t\t\treturn header;\t\n\t\t}finally {\n\t\t\tif (reader != null)\n\t\t\t\treader.close();\n\t\t}\n\t\t\n\n\t\t\n\t}", "protected abstract void fromXmlEx(Element source)\n throws PSUnknownNodeTypeException;", "@Override\n public Object parseFromXml(String path, TypeXml type) {\n try {\n Object object = new Object();\n switch (type) {\n case PERSON:\n object = parseFromXmlPerson(path);\n break;\n case USER:\n object = parseFormXmlUser(path);\n break;\n default:\n break;\n }\n return object;\n }catch (Exception e){\n AppLogger.getLogger().error(e.getMessage());\n return null;\n }\n }", "public void fromXml(InputStream is) throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tUnmarshaller u = jc.createUnmarshaller();\r\n\t\tTaskTypes tt = (TaskTypes) u.unmarshal(is);\r\n\t\tthis.taskTypes = tt.taskTypes;\r\n\t}", "@Test\n public void testUnmarshal() throws Exception {\n TypeXMLAdapter adapter = new TypeXMLAdapter();\n Assert.assertEquals(currentType, adapter.unmarshal(currentType.toString()));\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T deserializeFromXML(Class<T> clazz, String xml, XStream deserializer) {\n\t\ttry {\n\t\t\treturn (T) deserializer.fromXML(xml);\n\t\t} catch (XStreamException e) {\n\t\t\tPikaterDBLogger.logThrowable(String.format(\"Could not deserialize the following XML to the '%s' class.\", clazz.getSimpleName()), e);\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic Object fromXMLString(String arg0) {\n\t\treturn null;\n\t}", "public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;", "public static User parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n User object =\r\n new User();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"User\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (User)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry/xsd\",\"id\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"id\" +\" cannot be null\");\r\n }\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setId(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n object.setId(java.lang.Integer.MIN_VALUE);\r\n \r\n }\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry/xsd\",\"ip\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setIp(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry/xsd\",\"name\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setName(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://registry/xsd\",\"port\").equals(reader.getName())){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\r\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"port\" +\" cannot be null\");\r\n }\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.setPort(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n object.setPort(java.lang.Integer.MIN_VALUE);\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public Player Unmarshal(String path)throws JAXBException, IOException {\n\n Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n\n Path filename = Path.of(path);\n\n String xml = Files.readString(filename);\n System.out.println(xml);\n\n StringReader reader = new StringReader(xml);\n\n return (Player) unmarshaller.unmarshal(reader);\n\n }", "public Object fromXML(File xmlFile) throws XMLUtilityException {\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = unmarshaller.fromXML(xmlFile);\r\n\t\treturn beanObject;\r\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "protected Object unmarshal (XmlNode thisNode, UnmarshalContext context, XmlDescriptor desc) throws Exception {\n\n String recurseId = thisNode.getAttribute(_IDREF);\n Object prevInstance = null;\n try {\n Integer key = new Integer (recurseId);\n prevInstance = context.get(key);\n } catch (Exception e) {} // if caught no id..\n if (prevInstance != null)\n return prevInstance;\n else { // put in list\n\t\t\tString runTimeType = thisNode.getAttribute (RUN_TIME);\n\t\t\tif (Checks.exists (runTimeType)) {\n\t\t\t\t//\t\t\t\tSystem.out.println (\"getting new descriptor for \" + runTimeType);\n\t\t\t\tif (classList.get (runTimeType) != null)\n\t\t\t\t\tdesc = (XmlDescriptor)classList.get (runTimeType);\n\t\t\t}\n\n Class thisClass = Class.forName (desc.className);\n Object new_object = thisClass.newInstance();\n\n try {\n Integer recId = new Integer(thisNode.getAttribute(_ID));\n context.put (recId, new_object);\n } catch (NumberFormatException e) {}\n\n\t\t\tif (new_object instanceof Versioned) {\n\t\t\t\tString vNum = thisNode.getAttribute (VERSION_NUMBER);\n\t\t\t\ttry {\n\t\t\t\t\t((Versioned)new_object).setVersion (Integer.parseInt (vNum));\n\t\t\t\t} catch (NumberFormatException e) {}\n\t\t\t}\n setAllAttributes (thisNode, new_object, desc, context);\n recurseOnChildList (thisNode.getChildNodes(), new_object, desc, context);\n\n\t\t\t// also handle arrays..\n\t\t\tVector fieldArrays = desc.arrayElList;\n\t\t\tfor (int f = 0; f<fieldArrays.size (); f++) {\n\t\t\t\tJField jf = (JField)fieldArrays.elementAt (f);\n\t\t\t\t//W3CXmlNode node = new W3CXmlNode (thisNode);\n\t\t\t\tVector elNodes = thisNode.getChildNodes (jf.getJavaName ());\n\t\t\t\tsetArray (jf, elNodes, new_object, desc, context);\n\t\t\t}\n\n return new_object;\n }\n\n\n //return null;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static <T> T fromXML(String xml, Class<T> clazz, String alias) {\r\n\t\tif (xml == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"XML string cannot be null\");\r\n\t\t}\r\n\t\tif (clazz == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Class cannot be null\");\r\n\t\t}\r\n\t\tif (alias == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Alais cannot be null\");\r\n\t\t}\r\n\t\tXStream xStream = new XStream();\r\n\t\txStream.alias(alias, clazz);\r\n\t\tStringReader reader = new StringReader(xml);\r\n\t\treturn (T) xStream.fromXML(reader);\r\n\t}", "public Object getPayload(JAXBContext context);", "public static HelloAuthenticatedWithEntitlements parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlements object =\n new HelloAuthenticatedWithEntitlements();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlements\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlements)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "DsmlClass createDsmlClass();", "public void testDeserialize() {\n System.out.println(\"deserialize\"); // NOI18N\n \n document.getTransactionManager().writeAccess(new Runnable() {\n public void run() {\n DesignComponent comp = document.createComponent(FirstCD.TYPEID_CLASS);\n \n document.setRootComponent(comp);\n \n String result = PropertyValue.deserialize(comp.getReferenceValue().serialize(),document,comp.getType()).serialize();\n String expResult = comp.getReferenceValue().serialize();\n \n assertNotNull(result);\n assertEquals(expResult,result);\n }\n });\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public <T> T fromXML(final String xml) throws ClassNotFoundException, ObjectStreamException {\n try {\n return fromXML(new StringReader(xml));\n } catch (final ObjectStreamException e) {\n throw e;\n } catch (final IOException e) {\n throw new StreamException(\"Unexpected IO error from a StringReader\", e);\n }\n }", "public static Object objectFromXmlElement(XmlElement element) throws XmlParseException\n {\n return PLIST.parseObject(element);\n }", "private Object parseElementRaw(XmlElement element) throws Exception\n {\n ElementType type = ElementType.valueOf(element.getName().toUpperCase());\n switch (type)\n {\n case INTEGER:\n return parseInt(element.getValue());\n case REAL:\n return Double.valueOf(element.getValue());\n case STRING:\n return element.getValue();\n case DATE:\n return m_dateFormat.parse(element.getValue());\n case DATA:\n return base64decode(element.getValue());\n case ARRAY:\n return parseArray(element);\n case TRUE:\n return Boolean.TRUE;\n case FALSE:\n return Boolean.FALSE;\n case DICT:\n return parseDict(element);\n default:\n throw new RuntimeException(\"Unexpected type: \" + element.getName());\n }\n }", "public static HelloAuthenticatedWithEntitlementPrecheck parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementPrecheck object =\n new HelloAuthenticatedWithEntitlementPrecheck();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementPrecheck\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementPrecheck)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static HelloAuthenticatedWithEntitlementPrecheckResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementPrecheckResponse object =\n new HelloAuthenticatedWithEntitlementPrecheckResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementPrecheckResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementPrecheckResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public ConstituencyResult returnXmlFileAsPojo(String xmlAsString) {\n ObjectMapper xmlMapper = new XmlMapper();\n\n try {\n //feed the xml file as a string and the constituency result object we want in.\n List<ConstituencyResult> constituencyResult = xmlMapper.readValue(xmlAsString, new TypeReference<List<ConstituencyResult>>() {\n });\n\n //return the object\n return constituencyResult.get(0);\n\n } catch (IOException e) {\n //return empty\n return new ConstituencyResult();\n }\n\n\n }", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "Holder deser(String s) throws Exception {\n return (Holder)(new XStreamSerializer().deserialize(new StringReader(s)));\n }", "public Object fromXML(String packageName, File xmlFile) throws XMLUtilityException {\r\n\r\n\t\tif (!(unmarshaller instanceof JAXBUnmarshaller)){\r\n\t\t\tthrow new XMLUtilityException(\"Invalid method usage. This method is only valid when the Marshaller is a JAXBUnmarshaller instance\");\r\n\t\t}\r\n\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = ((JAXBUnmarshaller)unmarshaller).fromXML(packageName,xmlFile);\r\n\t\treturn beanObject;\r\n\t}", "public abstract Object deserialize(Object object);", "public static <T> T extractClass(Element element, T eClass) throws JAXBException {\n JAXBContext context = JAXBContext.newInstance(classes);\n Unmarshaller unMarshaller = context.createUnmarshaller();\n return (T) unMarshaller.unmarshal(element, eClass.getClass()).getValue();\n }", "public NotificationBo parseSerializedNotificationXml(byte[] xmlAsBytes) throws Exception;", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T extends ImogBean> T deSerialize(InputStream xml) throws ImogSerializationException {\n\t\treturn (T) xstream.fromXML(xml);\n\t}", "public static GetDownLoadCardResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDownLoadCardResponse object =\n new GetDownLoadCardResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDownLoadCardResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDownLoadCardResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"getDownLoadCardReturn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setGetDownLoadCardReturn(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setGetDownLoadCardReturn(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static Hello parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Hello object =\n new Hello();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"hello\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Hello)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "public interface XMLParser {\n\n String parse();\n}", "public static HelloAuthenticatedWithEntitlementsResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlementsResponse object =\n new HelloAuthenticatedWithEntitlementsResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticatedWithEntitlementsResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlementsResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static VersionVO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n VersionVO object =\n new VersionVO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"VersionVO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (VersionVO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.platform.blackboard/xsd\",\"version\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setVersion(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setVersion(java.lang.Long.MIN_VALUE);\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@XmlJavaTypeAdapter(AbstractOutputMetric.Adapter.class)\r\npublic interface OutputMetric {\r\n\r\n @SuppressWarnings(\"unused\")\r\n public String getKey();\r\n\r\n @JsonValue\r\n @SuppressWarnings(\"unused\")\r\n public String getDescription();\r\n\r\n @SuppressWarnings(\"unused\")\r\n public String getVersion();\r\n\r\n @JsonIgnore\r\n public String[] getXsdNameList();\r\n\r\n public List<ValidationError> validate(File inputXML) throws ValidationException;\r\n\r\n}", "public abstract T deserialize(String serial);", "public static GetVehicleBookPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleBookPageResponse object =\n new GetVehicleBookPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleBookPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleBookPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static void main(String[] args) throws JAXBException {\r\n User u = new User(\"a\", \"b\");\r\n System.out.printf(\"name:%s password:%s\\n\", u.name, u.password);\r\n String xml = serialization.Serializer.serialize(u);\r\n System.out.println(xml);\r\n u = serialization.Serializer.deSerialize(xml, User.class);\r\n System.out.printf(\"name:%s password:%s\\n\", u.name, u.password);\r\n }", "public static GetRegisteredUsersFact parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n GetRegisteredUsersFact object =\r\n new GetRegisteredUsersFact();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"getRegisteredUsersFact\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetRegisteredUsersFact) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"args0\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setArgs0(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public void parseXML(String XML);", "public static GetVehicleInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleInfoPageResponse object =\n new GetVehicleInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleInfoPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleInfoPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n\tpublic Definitions convertToXmlBean(String xmlstring) {\n\t\tfinal InputStream stream = string2InputStream(xmlstring);\n\t\ttry {\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(Definitions.class);\n\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tjaxbUnmarshaller.setSchema(getToscaSchema());\n\n\t\t\treturn (Definitions) jaxbUnmarshaller.unmarshal(stream);\n\t\t} catch (final JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public static Staff readFromXml() throws JAXBException {\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n return (Staff)jaxbUnmarshaller.unmarshal(new File(\"test.xml\"));\n }", "T deserialize(InputStream stream) throws IOException;", "public static void main(String args[]) {\n new xml().convert();\n }", "@Override\n public Object parseXmlString(String xmlDoc,TypeXml type) {\n Object object;\n switch (type){\n case USER:\n object = parseXmlStringUser(xmlDoc);\n break;\n case PERSON:\n object = parseXmlStringPerson(xmlDoc);\n break;\n default:\n object = null;\n break;\n }\n return object;\n }", "public static GetDownLoadCard parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDownLoadCard object =\n new GetDownLoadCard();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getDownLoadCard\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDownLoadCard)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void fromString(String xmlString) throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tUnmarshaller u = jc.createUnmarshaller();\r\n\t\tTaskTypes tt = (TaskTypes) u.unmarshal(new StringReader(xmlString));\r\n\t\tthis.taskTypes = tt.taskTypes;\r\n\t}", "public static AuToBIClassifier readAuToBIClassifier(String filename) {\n FileInputStream fis;\n ObjectInputStream in;\n try {\n fis = new FileInputStream(filename);\n in = new ObjectInputStream(fis);\n Object o = in.readObject();\n if (o instanceof AuToBIClassifier) {\n return (AuToBIClassifier) o;\n }\n } catch (IOException e) {\n AuToBIUtils.error(e.getMessage());\n } catch (ClassNotFoundException e) {\n AuToBIUtils.error(e.getMessage());\n }\n return null;\n }", "public static UpdateZYYJJ parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n UpdateZYYJJ object = new UpdateZYYJJ();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"UpdateZYYJJ\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (UpdateZYYJJ) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(Request.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "protected PastContent deserialize(byte[] bytes, Endpoint endpoint, PastContentDeserializer pcd) throws IOException, ClassNotFoundException {\n \n SimpleInputBuffer sib = new SimpleInputBuffer(bytes);\n short type = sib.readShort();\n return pcd.deserializePastContent(sib, endpoint, type); \n }", "private Object parseElement(XmlElement element) throws XmlParseException\n {\n try\n {\n return parseElementRaw(element);\n }\n catch (Exception e)\n {\n throw new XmlParseException(\"Failed to parse: \" + element.toXml(), e);\n }\n }", "public JAXBConverter() {\n\t}", "public static QuotaUserRs fromXML(String xml) {\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tUnmarshaller um = jc.createUnmarshaller();\n\t\t\tQuotaUserRs o = (QuotaUserRs) um.unmarshal( new StreamSource( new StringReader( xml.substring(xml.indexOf(\"<quotaUser>\"), xml.indexOf(\"</quotaUser>\")+\"</quotaUser>\".length()).toString() ) ) );\n\t\t\treturn o;\n\t\t} catch (JAXBException ex) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Object decode( Element element, Resolver resolver ) throws DecodingException\r\n {\r\n String tag = element.getTagName();\r\n if( \"application\".equals( tag ) )\r\n {\r\n return buildApplicationDescriptor( element, resolver );\r\n }\r\n else if( \"registry\".equals( tag ) )\r\n {\r\n return buildRegistryDescriptor( element, resolver );\r\n }\r\n else\r\n {\r\n final String error = \r\n \"Document element name [\" + tag + \"] not recognized.\";\r\n throw new DecodingException( element, error );\r\n }\r\n }", "public static HelloAuthenticated parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticated object =\n new HelloAuthenticated();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"helloAuthenticated\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticated)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://ws.sample\",\"param0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setParam0(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }", "public ElementRef deserializeRef(byte[] bytes) throws IOException {\n try (MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(bytes)) {\n long id = unpacker.unpackLong();\n String label = unpacker.unpackString();\n\n return createNodeRef(id, label);\n }\n }", "public static RemoveRegisteredUsersFact parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n RemoveRegisteredUsersFact object =\r\n new RemoveRegisteredUsersFact();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"removeRegisteredUsersFact\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (RemoveRegisteredUsersFact) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"args0\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setArgs0(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public static RemoveRegisteredUsersFactResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n RemoveRegisteredUsersFactResponse object =\r\n new RemoveRegisteredUsersFactResponse();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"removeRegisteredUsersFactResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (RemoveRegisteredUsersFactResponse) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"return\").equals(reader.getName())) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.set_return(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "InputStream deserialize(InputStream toDeserialize);", "private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "public XmlElement() {\n }", "public XmlAdaptedTask() {}", "public XmlAdaptedTask() {}", "public static ExaminationType_type1 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type1 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type1.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type1.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleAlarmInfoPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleAlarmInfoPageResponse object =\n new GetVehicleAlarmInfoPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleAlarmInfoPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleAlarmInfoPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static GetVehicleRecordPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetVehicleRecordPageResponse object =\n new GetVehicleRecordPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getVehicleRecordPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetVehicleRecordPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "XClass getClassOrElementClass();", "public static GetParkPageResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetParkPageResponse object =\n new GetParkPageResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getParkPageResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetParkPageResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(WsPmsResult.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "public static GetRegisteredUsersFactResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n GetRegisteredUsersFactResponse object =\r\n new GetRegisteredUsersFactResponse();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"getRegisteredUsersFactResponse\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetRegisteredUsersFactResponse) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"return\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n object.set_return(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.set_return(Fact.Factory.parse(reader));\r\n\r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public static UserModelE parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n UserModelE object = new UserModelE();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.datacontract.org/2004/07/Tamagotchi.Common.Models\",\n \"UserModel\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setUserModel(null);\n reader.next();\n } else {\n object.setUserModel(UserModel.Factory.parse(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public static ExaminationType_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type0 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type0.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type0.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public XmlAdaptedReminder() {}" ]
[ "0.594206", "0.5846075", "0.57712525", "0.5723247", "0.5720279", "0.56989765", "0.5688776", "0.56711876", "0.56298876", "0.5602576", "0.5554584", "0.552565", "0.5524987", "0.5514261", "0.54867065", "0.547011", "0.5436707", "0.53955626", "0.5346651", "0.53465533", "0.53404343", "0.5324635", "0.5287762", "0.5275768", "0.52583486", "0.524154", "0.5231073", "0.5214035", "0.5152786", "0.5129851", "0.51278204", "0.5126605", "0.51261383", "0.51053864", "0.5082198", "0.50627494", "0.5060342", "0.50532806", "0.50414336", "0.5012484", "0.50107014", "0.49739558", "0.49694517", "0.49638176", "0.49477443", "0.49434873", "0.4939101", "0.4913503", "0.4909909", "0.48917973", "0.48633108", "0.48629734", "0.48539245", "0.48487374", "0.48444334", "0.48435885", "0.4835872", "0.48353833", "0.4827665", "0.48254076", "0.48184097", "0.48181674", "0.48156282", "0.48080096", "0.4806873", "0.48059136", "0.48053288", "0.47979033", "0.47958043", "0.47955346", "0.47923422", "0.47908098", "0.4787855", "0.4786429", "0.4774832", "0.47745726", "0.47733295", "0.47717002", "0.47715697", "0.47610563", "0.47542557", "0.47519577", "0.4751693", "0.47491914", "0.4747274", "0.47451502", "0.4744907", "0.47444713", "0.47243452", "0.47207564", "0.47207564", "0.47164214", "0.47051427", "0.4702639", "0.4694104", "0.46916744", "0.46797124", "0.46768776", "0.4676176", "0.46667624", "0.46667564" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_answer, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
TODO: I'm working here!!
public void downloadWeatherForCurrentLocation() { if(checkConnection()) { LocationManager locationManager = LocationManager.getInstance(this, view); locationManager.getCoordinates(); } else { showNoConnectionDialog(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void method_4270() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\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}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void identify() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public int describeContents() { return 0; }", "private void m50366E() {\n }", "private void init() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@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 final void mo51373a() {\n }", "public void mo4359a() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "public void mo21877s() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public abstract void mo70713b();", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void initialize() {\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 protected void initialize() \n {\n \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void init() {\n }", "@Override\n public void preprocess() {\n }", "private void test() {\n\n\t}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "public abstract void mo56925d();", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}" ]
[ "0.5872214", "0.5822612", "0.57698727", "0.5695718", "0.5658863", "0.5633096", "0.56328267", "0.56146365", "0.5559346", "0.550976", "0.5508314", "0.54696953", "0.5464915", "0.5452131", "0.5430362", "0.53978384", "0.5383135", "0.5369629", "0.5363123", "0.5363123", "0.53331906", "0.5327802", "0.53103065", "0.5288608", "0.5272688", "0.5271945", "0.52469885", "0.5244454", "0.5241357", "0.5228235", "0.5223372", "0.52061486", "0.52061486", "0.52061486", "0.52061486", "0.52061486", "0.52061486", "0.52055633", "0.520393", "0.52011335", "0.5199328", "0.51991063", "0.5196951", "0.5195074", "0.51916957", "0.5190078", "0.51865923", "0.51865923", "0.5186154", "0.5183959", "0.5183959", "0.5169892", "0.5169518", "0.5162434", "0.51581794", "0.5157163", "0.5153259", "0.5152906", "0.51428217", "0.5140471", "0.513784", "0.51334995", "0.5126916", "0.5116872", "0.5116872", "0.5116872", "0.5116872", "0.5116872", "0.5116872", "0.5116872", "0.5116193", "0.51143086", "0.5111979", "0.5106276", "0.510214", "0.5097323", "0.509662", "0.5082808", "0.5080611", "0.5080611", "0.5078477", "0.50765127", "0.50765127", "0.50765127", "0.50765127", "0.50765127", "0.50709856", "0.50693303", "0.506285", "0.50626683", "0.50519854", "0.5046475", "0.5038847", "0.50376403", "0.5035105", "0.50347733", "0.50273854", "0.50259197", "0.50255185", "0.50241363", "0.5017639" ]
0.0
-1
No args constructor for use in serialization
public MonHoc() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MyEncodeableWithoutPublicNoArgConstructor() {}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "public Data() {}", "private SerializerFactory() {\n // do nothing\n }", "public JsonFactory() { this(null); }", "private SingleObject(){}", "public CompactSerializable() {\n }", "public Data() {\n \n }", "public Payload() {}", "void DefaultConstructor(){}", "public Data() {\n }", "public Data() {\n }", "private SingleObject()\r\n {\r\n }", "public CustomDateSerializer() {\n this(null);\n }", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "private Instantiation(){}", "public Payload() {\n\t}", "O() { super(null); }", "protected abstract T _createEmpty(DeserializationContext ctxt);", "private SerializationUtils() {\n\n }", "Reproducible newInstance();", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public MinecraftJson() {\n }", "public Constructor(){\n\t\t\n\t}", "public \n PipedObjectReader() \n {}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private void __sep__Constructors__() {}", "public Pleasure() {\r\n\t\t}", "public AvroPerson() {}", "private SingleObject(){\n }", "public Pojo1110110(){\r\n\t}", "public NetworkData() {\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Member() {}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public JSONLoader() {}", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "public WCSResponseSerializer()\r\n {\r\n }", "public Clade() {}", "public ClaseJson() {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Item() {}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public MetaDataContract()\n {\n }", "public JobPayload()\n {\n \n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public Person() {}", "public Item(){}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "public Value() {}", "private Message(){\n // default constructor\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "private NaturePackage() {}", "public ParamJson() {\n\t\n\t}", "public InitialData(){}", "public PersonRecord() {}", "public LargeObjectAvro() {}", "protected abstract void construct();", "public D() {}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "private Item(){}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public JAXBConverter() {\n\t}", "public Member() {\n //Empty constructor!\n }", "public AbstractBinaryInteraction() {\n\n\t}", "public FileObject() {\n\t}", "public BabbleValue() {}", "public StringData() {\n\n }", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "public Mapping() { this(null); }", "public Postoj() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public StudentRecord() {}", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public Person()\n {\n //intentionally left empty\n }", "public XObject(){\r\n }", "public XObject(){\n }", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "public ObjectUtils() {\n super();\n }", "public Value() {\n }", "public JsonField() {\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "MessageSerializer<T> create();", "public CSSTidier() {\n\t}", "public Value(){}", "private NewsWriter() {\n }", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "public SensorData() {\n\n\t}", "public Pasien() {\r\n }", "public Node() {\n\t}", "public LocalObject() {}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public Book() {}", "public Item() {\n\t}" ]
[ "0.74630904", "0.7387007", "0.7210724", "0.7029566", "0.7018587", "0.6977819", "0.69339114", "0.6881743", "0.6739828", "0.6727297", "0.6717886", "0.67169136", "0.669586", "0.669586", "0.66750634", "0.66246814", "0.6604095", "0.6532946", "0.65235436", "0.6500072", "0.6466648", "0.64311725", "0.6420696", "0.63329536", "0.6331174", "0.63080406", "0.6303669", "0.6297327", "0.6289062", "0.62796336", "0.62715524", "0.6246891", "0.6236601", "0.6236527", "0.62337124", "0.621766", "0.62073123", "0.6205364", "0.62028056", "0.61931217", "0.61913615", "0.61901313", "0.6187056", "0.618604", "0.61813384", "0.61712974", "0.6168396", "0.61616594", "0.6159333", "0.61513215", "0.6150306", "0.6144834", "0.6137297", "0.61357254", "0.6134681", "0.61235094", "0.6122921", "0.61144346", "0.6113325", "0.6103046", "0.6093859", "0.6088237", "0.60865474", "0.60842085", "0.6079729", "0.6075916", "0.6066694", "0.6050046", "0.60495526", "0.60494757", "0.60476506", "0.6045192", "0.60441047", "0.6041579", "0.60395074", "0.6038388", "0.6038388", "0.6038388", "0.6038388", "0.6036713", "0.6032801", "0.6030977", "0.60247785", "0.6018193", "0.60155535", "0.60124946", "0.6011776", "0.60107607", "0.6008726", "0.60062283", "0.60036933", "0.5999471", "0.5998251", "0.5996513", "0.59922075", "0.5991442", "0.59912944", "0.5989887", "0.5989741", "0.598915", "0.59881556" ]
0.0
-1
after object is constructed above privately, this method provides the single instance of the class
public static GameController getInstance() { return INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SingleObject getInstance(){\n return instance;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "@Override\n public T getInstance() {\n return instance;\n }", "public T getInstance() {\n return instance;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "public static Main getInstance() {\r\n return instance;\r\n }", "public static Main getInstance() {\n return instance;\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "Instance createInstance();", "T getInstance();", "public static SingletonEager getInstance()\n {\n return instance;\n }", "public static SingletonEager get_instance(){\n }", "public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();", "public static Singleton instance() {\n return Holder.instance;\n }", "public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static Multivalent getInstance() {\n\tif (instance_==null) {\n\t\tif (standalone_) System.out.println(\"VERSION = \"+VERSION);\n\n\t\tcl_ = new URLClassLoader(findJARs());\n\n\t\tinstance_ = new Multivalent(); // loaded with different ClassLoader than behaviors and layers\n\t\t//try { instance_ = (Multivalent)cl_.loadClass(\"multivalent.Multivalent\"/*Multivalent.class.getName()*/).newInstance(); } catch (Exception canthappen) { System.err.println(canthappen); }\n\t\t//assert cl_ == instance_.getClass().getClassLoader(): cl_+\" vs \"+instance_.getClass().getClassLoader();\n\t\t//System.out.println(\"Multivalent.class class loader = \"+instance_.getClass().getClassLoader());\n\n\t\tinstance_.readTables();\n\t}\n\treturn instance_;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "private SingletonEager(){\n \n }", "public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public Class getInstanceClass()\n {\n return _cl;\n }", "Reproducible newInstance();", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static Singleton getInstance() {\n return mSing;\n }", "String getInstance()\n {\n return instance;\n }", "@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}", "public static Ontology getInstance() {\n return theInstance;\n }", "public static Ontology getInstance() {\n return theInstance;\n }", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "public static AccessSub getInstance() {\n\t\treturn instance;\n\t}", "public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }", "public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}", "public static AsteroidFactory getInstance() {\r\n\t\treturn instance;\r\n\t}", "public static test5 getinstance(){\r\n\t\t return instance;\r\n\t }", "public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static Light getInstance() {\n\treturn INSTANCE;\n }", "public static myCourses getInstance()\n {\n if (single_instance == null)\n single_instance = new myCourses();\n return single_instance;\n }", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }", "public static GroundItemParser getInstance() {\r\n return SINGLETON;\r\n }", "private Object readResolve() \r\n { \r\n return instance; \r\n }", "public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}", "public static LibValid getInstance() {\n\t\treturn instance;\n\t}", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "static OpenSamlImplementation getInstance() {\n\t\treturn instance;\n\t}", "public static Parser getInstance() {\n\t\tif (theOne == null) {\n\t\t\ttheOne = new Parser();\n\t\t}\n\t\treturn theOne;\n\t}", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static Empty getInstance() {\n return instance;\n }", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static MetaDataManager getInstance() {\n return instance;\n }", "public static Boot getInstance()\n {\n return instance;\n }", "public Object getObject() {\n return getObject(null);\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public ClassFrequency getInstance(){\n\t\treturn instance;\n\t}", "public TraversalStrategyFactory getInstance() {\n\t\treturn instance;\n\t}", "public /* synchronized */ static LazyInitClass getInstanceThreadSafe() {\r\n\t\t//first if is for perfrroamce betterment\r\n\t\t//once object got created no need to synchronize and stop other threads to read\r\n\t\tif(instance == null) {\r\n\t\t\tsynchronized (LazyInitClass.class) {\r\n\t\t\t\tif(instance == null) {\r\n\t\t\t\t\tinstance = new LazyInitClass();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static ToolRegistery getInstance(){\n\t\treturn InstanceKeeper.instance;\n\t}", "public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }", "protected Object readResolve() {\n return getInstance();\n }", "public synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}", "static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }", "public static IndicieSeznam getInstance() {\n\n return ourInstance;\n }", "public static Json getInstance() {\n\t\treturn instance;\n\t}", "public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }", "private Singleton(){}", "public static Drivetrain getInstance(){\n if(instance == null){\n instance = new Drivetrain();\n }\n return instance;\n }", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }", "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "public Object ai() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "protected Object readResolve() {\r\n\t\treturn getInstance();\r\n\t}", "private Singleton()\n\t\t{\n\t\t}", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static Parser getInstance() {\n return instance;\n }", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "private Singleton() { }", "public static METSNamespace getInstance() {\n return ONLY_INSTANCE;\n }", "static RatAppModel getInstance() {return model;}" ]
[ "0.77697223", "0.76099354", "0.7583441", "0.7544835", "0.7497534", "0.7395211", "0.71140647", "0.7100763", "0.70761365", "0.6922465", "0.6918533", "0.69010574", "0.6897409", "0.68833935", "0.6834146", "0.6805333", "0.6742331", "0.67148525", "0.66911465", "0.6641219", "0.6638174", "0.6636381", "0.6604418", "0.65905577", "0.65895236", "0.6588061", "0.6586229", "0.6554978", "0.6553698", "0.6549336", "0.65366876", "0.6530358", "0.6526138", "0.65215534", "0.6513041", "0.65107256", "0.64862", "0.6482959", "0.6471458", "0.6471458", "0.64714473", "0.64656866", "0.64644986", "0.64639986", "0.6463478", "0.6446225", "0.643458", "0.6433971", "0.64330345", "0.64142007", "0.64074105", "0.640605", "0.63981336", "0.63976157", "0.63962203", "0.63955045", "0.63876355", "0.6387003", "0.6380059", "0.6370052", "0.63674283", "0.6362007", "0.63517255", "0.63485694", "0.6341174", "0.63410395", "0.6334918", "0.633335", "0.6325493", "0.6325263", "0.63139755", "0.631268", "0.6307158", "0.6306684", "0.6302871", "0.63007337", "0.6299047", "0.62979585", "0.6297551", "0.6292694", "0.6291559", "0.6284429", "0.6282747", "0.6279438", "0.62789947", "0.627723", "0.6272656", "0.6272023", "0.62678397", "0.6264546", "0.6264546", "0.6264546", "0.6262927", "0.6262927", "0.6258044", "0.62549615", "0.625119", "0.6250653", "0.6246088", "0.6240365", "0.623426" ]
0.0
-1
method: wait for user input, then send to each Commandable to determine if valid
public void getCommand() { System.out.println("Enter a command:"); String Input = reader.nextLine(); //takes the user's input and places it in String Input //in the collection of commands, will run loop once for each item in that collection and //stores the item it is looking in the variable created for (Commandable command : Commands) { if (command.matchCommand(Input)) { command.doCommand(); return; //this ends the method to break out of the loop } } System.out.println("Command not recognized"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}", "public static boolean commands(String userInput) {\n\t\tboolean isCmdValid = false;\n\t\tList<String> validCommands = new ArrayList<>();\n\t\tvalidCommands.add(\"rules\");\n\t\tvalidCommands.add(\"giveall\");\n\t\t\n\t\t// Find if command is valid\n\t\tfor (String cmd: validCommands) {\n\t\t\tif (userInput.equalsIgnoreCase(cmd.trim())) {\n\t\t\t\tisCmdValid = true;\n\t\t\t\t// If cmd valid, execute the command\n\t\t\t\tswitch (validCommands.indexOf(cmd)) {\n\t\t\t\t\n\t\t\t\tcase 0:\n\t\t\t\t\tGameLauncher.showGameRules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tGameLauncher.giveAll();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isCmdValid;\n\t}", "private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }", "private void checkUserInput() {\n }", "private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}", "private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }", "public static void inputs() {\n Core.init(true);\n\n while (running) {\n String input = Terminal.readLine();\n String[] groups = REG_CMD.createGroups(input);\n String[] groupsAdmin = REG_ADMIN.createGroups(input);\n String[] groupsLogin = REG_LOGIN.createGroups(input);\n String arg;\n\n //Set the regex type depending on input\n if (groups[1] == null && groupsAdmin[1] != null && groupsLogin[1] == null)\n arg = groupsAdmin[1];\n else if (groups[1] == null && groupsAdmin[1] == null && groupsLogin[1] != null)\n arg = groupsLogin[1];\n else\n arg = groups[1];\n\n if (arg != null && (REG_CMD.isValid(input) || REG_ADMIN.isValid(input) || REG_LOGIN.isValid(input))) {\n if (Core.getSystem().adminActive()) {\n inputsLogin(arg, groups);\n } else {\n inputsNoLogin(arg, groups, groupsAdmin, groupsLogin);\n }\n }\n else {\n Terminal.printError(\"command does not fit pattern.\");\n }\n }\n }", "public void execute() {\n String input;\n boolean isInputValid;\n\n do {\n isInputValid = true;\n\n System.out.print(\"Please send me the numbers using space between them like \\\"1 2 3\\\": \");\n input = sc.nextLine();\n\n try {\n validateData(input);\n } catch (NumberFormatException e) {\n System.err.println(\"NumberFormatException \" + e.getMessage());\n isInputValid = false;\n }\n\n } while (!isInputValid);\n\n System.out.println(\"Result: \" + find(input));\n }", "protected abstract boolean checkInput();", "private boolean promptCommand() {}", "@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }", "public boolean checkInput();", "private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public boolean isCommandValid(Character character, String command)\n\n {\n\n \n\n if(command.length() > 4 && isKill(command))\n { \n HandleKill(character, command);\n return true;\n }\n if(isPossess(command))\n {\n HandlePossess(character);\n return true;\n }\n if(isDontPossess(command))\n {\n HandleDontPossess(character);\n return true;\n }\n if(isJump(command))\n\n {\n\n HandleJump();\n\n return true;\n\n }\n\n if(isSit(command))\n\n {\n\n HandleSit();\n\n return true;\n\n }\n\n if(isSing(command))\n\n {\n\n HandleSing();\n\n return true;\n\n }\n\n if(isDance(command))\n\n {\n\n HandleDance();\n\n return true;\n\n }\n\n if(isDirections(command))\n\n {\n\n HandleDirections(character.currentArea);\n\n return true;\n\n }\n\n if(isExit(command))\n\n {\n\n HandleExit();\n\n return true;\n\n }\n \n if(isHeal(command))\n\n {\n\n HandleHeal(character);\n\n return true;\n\n }\n\n if(isStats(command))\n\n {\n\n HandleStats(character);\n\n return true;\n\n }\n\n \n\n switch(character.currentArea.paths)\n\n {\n\n case Constants.North:\n\n if(isNorth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.South:\n\n if(isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.East:\n\n if(isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.West:\n\n if(isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthAndSouth:\n\n if(isNorth(command) || isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndEast:\n\n if(isNorth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndWest:\n\n if(isNorth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndEast:\n\n if(isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndWest:\n\n if(isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.EastAndWest:\n\n if(isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthAndEast:\n\n if(isNorth(command) || isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthSouthAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthEastAndWest:\n\n if(isNorth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthEastAndWest:\n\n if(isSouth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthEastAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n default:\n\n break;\n\n \n\n }\n\n \n character.canPossess = false;\n return false;\n\n \n\n }", "public void processUserInput(String input) {\n\t\tString[] request = this.getArguments(input); \n\t\tString command = request[0]; \n\n\t\ttry {\n\t\t\tswitch (command) {\n\t\t\t\tcase TUICommands.START_SESSION:\n\t\t\t\t\tif (!this.sessionActive) {\n\t\t\t\t\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\t\t\t\t\twhile (!this.requestSession()) {\n\t\t\t\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.showNamedMessage(\"Session is already active\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\n\t\t\t\tcase TUICommands.LIST_FILES: \n\t\t\t\t\tthis.showNamedMessage(\"Requesting list of files...\");\n\t\t\t\t\tif (!this.requestListFiles()) { \n\t\t\t\t\t\tthis.showNamedError(\"Retrieving list of files failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.LIST_FILES_LOCAL: \n\t\t\t\t\tthis.showNamedMessage(\"Making list of local files...\");\n\t\t\t\t\tthis.printArrayOfFile(this.getLocalFiles()); \n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_SINGLE:\n\t\t\t\t\tFile fileToDownload = this.selectServerFile();\n\t\t\t\t\tif (!this.downloadSingleFile(fileToDownload)) {\n\t\t\t\t\t\tthis.showNamedError(\"Downloading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_SINGLE:\n\t\t\t\t\tFile fileToUpload = this.selectLocalFile();\n\t\t\t\t\tif (!this.uploadSingleFile(fileToUpload)) { \n\t\t\t\t\t\tthis.showNamedError(\"Uploading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.DELETE_SINGLE:\n\t\t\t\t\tFile fileToDelete = this.selectServerFile();\n\t\t\t\t\tif (!this.deleteSingleFile(fileToDelete)) { \n\t\t\t\t\t\tthis.showNamedError(\"Deleting file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.CHECK_INTEGRITY:\n\t\t\t\t\tFile fileToCheck = this.selectLocalFile();\n\t\t\t\t\tif (!this.checkFile(fileToCheck)) { \n\t\t\t\t\t\tthis.showNamedError(\"Checking file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.uploads)) { \n\t\t\t\t\t\tthis.showNamedError(\"Upload manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.downloads)) {\n\t\t\t\t\t\tthis.showNamedError(\"Download manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.HELP:\n\t\t\t\t\tthis.textUI.printHelpMenu();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase TUICommands.EXIT:\n\t\t\t\t\tthis.shutdown();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tthis.showNamedError(\"Unknow command received (and ignoring it)\"); \n\t\t\t}\n\t\t\tthis.showNamedMessage(\"... done!\");\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t}\n\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n CommandResult dukeResponse;\n try {\n dukeResponse = duke.getResponse(input);\n runDialogContainer(input, dukeResponse);\n if (dukeResponse.isExit()) {\n runExitDialogContainer();\n }\n } catch (DukeException e) {\n runDialogContainer(input, e.getMessage());\n }\n userInput.clear();\n }", "private void userInteraction() {\n\t\tSystem.out.println(\"Starting user Interaction\");\n\t\twhile (true) {\n\t\t\tint input = Integer.parseInt(getUserInput(\"1 - Read, 2 - Send Email, Any other number - Exit...\"));\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcheckMails(getUserInput(\"Type Folder Name to view details : \"));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tsendEmail();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void commandEntered(String cmd)\n {\n String cleaned = StringUtils.cleanWhiteSpace(cmd.trim());\n String args[] = cleaned.split(\" \");\n \tString c = args[0];\n \n Runnable cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n \tif (c.equals(\"name\"))\n cb = new Runnable() { public void run() { cbName(); } };\n else if (c.equals(\"version\")) \n cb = new Runnable() { public void run() { cbVersion(); } };\n else if (c.equals(\"genmove\")) \n cb = new Runnable() { public void run() { cbGenMove(); } };\n else if (c.equals(\"all_legal_moves\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"get_absorb_group\"))\n cb = new Runnable() { public void run() { cbGetAbsorbGroup(); } };\n \n \telse if (c.equals(\"shortest_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \telse if (c.equals(\"shortest_vc_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"compute_dead_cells\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build-incremental\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n \n \n else if (c.equals(\"solver-find-winning\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } }; \n \n else if (c.equals(\"find_sealed\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"strengthen_vcs\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n \n else if (c.equals(\"book-depths\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-sizes\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-scores\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \telse if (c.equals(\"book-priorities\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"db-get\")) \n cb = new Runnable() { public void run() { cbDBGet(); } };\n \n else if (c.equals(\"vc-connected-to\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-between-cells\"))\n cb = new Runnable() { public void run() { cbBetweenCells(); } };\n else if (c.equals(\"vc-get-mustplay\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-intersection\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-union\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"eval_twod\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"eval_resist\")) \n cb = new Runnable() { public void run() { cbEvalResist(); } };\n else if (c.equals(\"eval_resist_delta\")) \n cb = new Runnable() { public void run() { cbEvalResistDelta(); } };\n \telse if (c.equals(\"eval_influence\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"mohex-show-rollout\")) \n cb = new Runnable() { public void run() { cbMohexShowRollout(); } };\n else if (c.equals(\"quit\")) \n cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n sendCommand(cmd, cb);\n }", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}", "private void handleCommands() {\n for (Command c : commands) {\n try {\n if (!game.isPaused()) {\n switch (c) {\n case INTERACT:\n game.interact();\n break;\n case PRIMARY_ATTACK:\n game.shoot(mouse.getX(), mouse.getY());\n break;\n case SECONDARY_ATTACK:\n game.specialAbility(mouse.getX(), mouse.getY());\n break;\n case PAUSE:\n game.pauseGame();\n break;\n }\n }\n } catch (Exception ignored) { }\n }\n }", "protected void waitUntilCommandFinished() {\n }", "void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }", "private void commandPrompt(String command)\n { \n if(command.equals(\"list\"))\n {\n String city = \" \";\n String item = \" \";\n\n if(scanner.next().equals(\"city:\"))\n {\n city = scanner.next();\n } \n\n if(scanner.next().equals(\"item:\"))\n {\n item = scanner.next();\n } \n\n if(scanner.nextLine().equals(\"\"))\n {\n commandList(city, item);\n }\n }\n\n if(command.equals(\"findgoods\"))\n {\n String cityForGoods = scanner.nextLine(); \n\n if(scanner.nextLine().equals(\"\"))\n {\n commandFindGoods(cityForGoods);\n }\n }\n\n if(command.equals(\"findcities\"))\n {\n String goodsForCity = scanner.nextLine();\n if(scanner.nextLine().equals(\"\"))\n {\n commandFindCities(goodsForCity);\n }\n }\n\n if(command.equals(\"add\"))\n {\n String cityToAdd = scanner.nextLine();\n\n if(scanner.nextLine().equals(\"\"))\n {\n commandAddCity(cityToAdd);\n }\n }\n\n commandProgramBasic(command); \n }", "public void validar(){\n\t\tif (verificador == false){\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}else{\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsPresentInAChannel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsntPresentInAChannel();\r\n\t\t\t}else{\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private static void command() {\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Write action (buy, fill, take):\\n> \");\n String input = reader.next();\n\n switch (input) {\n case \"buy\" :\n buy();\n break;\n case \"fill\" :\n fill();\n break;\n case \"take\" :\n take();\n break;\n default:\n System.out.println(\"not accepted command\");\n }\n }", "private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\n }", "boolean processCommand() throws IOException\n\t{\n\t\tString[] commands = in.readLine().split(\" \");\n\t\tif (commands[0].equalsIgnoreCase(\"F\") && isNum(commands[1]) && isNum(commands[2])) {\n\t\t\tprocessFireCmd(new String[] {commands[1], commands[2]});\n\t\t} else if (commands[0].equalsIgnoreCase(\"C\")) {\n\t\t\tprocessChatCmd (Arrays.copyOfRange(commands, 1, commands.length).toString());\n\t\t} else if (commands[0].equalsIgnoreCase(\"D\")) {\n\t\t\tout.println(\"My board: \\n\");\n\t\t\tboard.draw();\n\t\t\tout.println(\"Target's board: \\n\");\n\t\t\ttargets.draw();\n\t\t\tout.flush();\n\t\t} else {\n\t\t\tout.println(\"Unknown command.\");\n\t\t\tout.flush();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}", "private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }", "private boolean processCommand(Command command)//Method was given\n {\n if(command.isUnknown())\n {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"talk\"))\n talkToCharacter(currentRoom);\n else if (commandWord.equals(\"grab\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Grab what?\");\n }\n else\n {\n grabItem(secondWord);\n }\n }\n else if (commandWord.equals(\"eat\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Eat what?\");\n }\n else\n {\n eatItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inventory\")) \n player.getInventory();\n else if (commandWord.equals(\"drop\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Drop what?\");\n }\n else\n {\n dropItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inspect\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Inspect what?\");\n }\n else\n {\n inspectItem(secondWord);\n }\n }\n else if (commandWord.equals(\"quit\"))\n {\n if(command.hasSecondWord())\n System.out.println(\"Quit what?\");\n else\n return true; // signal that we want to quit\n }\n else if (commandWord.equals(\"look\"))\n {\n System.out.println(currentRoom.longDescription());\n }\n return false;\n }", "public static String KeyboardScan(){\n\n System.out.println(\"Enter a command : \");\n Scanner sc = new Scanner(System.in);\n String command = sc.next().toLowerCase();\n if(command.equals(\"help\") || command.equals(\"exit\") || command.equals(\"adduser\") || command.equals(\"edituser\") || command.equals(\"removeuser\") || command.equals(\"listusers\") || command.equals(\"addcar\") || command.equals(\"editcar\") || command.equals(\"removecar\") || command.equals(\"listcars\") || command.equals(\"rentcar\") || command.equals(\"returncar\") || command.equals(\"listrents\") || command.equals(\"saveusers\") || command.equals(\"restoreusers\") || command.equals(\"serialusers\" )|| command.equals(\"saverents\") || command.equals(\"loadrents\") || command.equals(\"savecars\") || command.equals(\"loadcars\") || command.equals(\"saveall\") || command.equals(\"loadall\")) {\n return command;\n } else {\n return \"error\";\n }\n\n }", "public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }", "private void run() \n{\n String answer;\t//console answer\n \tboolean error;\t//answer error flag\n \terror = false;\n \tdo {\t\t\t\t\t\t\t//get the right answer\n \t \t//Take user input\n \t \t//System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n \t\t\tSystem.out.println(\"Would you like to enter GUI or TIO?\");\n \t\t\tanswer = console.nextLine();\n \t \tif(answer.equals(\"GUI\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchGUI();\n \t\t\t}else if(answer.equals(\"TIO\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchTIO();\n \t\t\t}else\n \t\t\t{\n \t\t\t\t//Error: Not correct format\n \t\t\t\terror = true;\n \t\t\t\tSystem.out.println(\"I couldn't understand your answer. Please enter again \\n\");\n \t\t\t}\n \t\t}while (error == true);\n\n}", "public static void processUserCommandLine(String command) throws InputMismatchException {\n String[] input = command.trim().split(\" \");\n Scanner scnr;\n String serial = \"\";\n String itemName = \"\";\n double price = 0;\n int quantity = 0;\n int location = 0;\n switch (input[0].toUpperCase()) {\n case \"A\":\n while (true) {\n try {\n scnr = new Scanner(System.in);\n System.out.print(\"Enter 12 Digit Serial Number (12 numerical digits): \");\n serial = scnr.next();\n backEnd.serialValidity(serial);\n backEnd.alreadyExists(serial);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n continue;\n }\n break;\n }\n System.out.print(\"Enter Item Name: \");\n itemName = scnr.next();\n while (true) {\n try {\n scnr = new Scanner(System.in);\n System.out.print(\"Enter Item Price (A 2 decimal number such as 3.00): \");\n price = scnr.nextDouble();\n } catch (InputMismatchException e) {\n System.out.println(\"Not a valid price!\");\n continue;\n }\n break;\n }\n while (true) {\n try {\n scnr = new Scanner(System.in);\n System.out.print(\"Enter the Quantity Currently Available: \");\n quantity = scnr.nextInt();\n } catch (InputMismatchException e) {\n System.out.println(\"Not a Number!\");\n continue;\n }\n break;\n }\n while (true) {\n try {\n scnr = new Scanner(System.in);\n System.out.print(\"Enter the Location in the Store (0-9): \");\n location = scnr.nextInt();\n if (location > 9 || location < 0) {\n System.out.println(\"Location is not in range\");\n continue;\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Not a Number!\");\n continue;\n }\n break;\n }\n GroceryStoreItem itemToAdd =\n new GroceryStoreItem(serial, itemName, price, quantity, location);\n backEnd.add(itemToAdd);\n break;\n\n case \"S\":\n scnr = new Scanner(System.in);\n System.out.print(\"Enter the Serial Number of the Item You Are Looking for: \");\n serial = scnr.next();\n GroceryStoreItem itemInfo = null;\n try {\n itemInfo = (GroceryStoreItem) backEnd.search(serial);\n } catch (NoSuchElementException e) {\n System.out.println(e.getMessage());\n break;\n }\n System.out.println(\"Item Serial Number: \" + itemInfo.getSerialNumber());\n System.out.println(\"Item Name: \" + itemInfo.getName());\n System.out.println(\"Item Price: \" + itemInfo.getCost());\n System.out.println(\"Item Quantity in Store: \" + itemInfo.getQuantity());\n System.out.println(\"Item Location: \" + itemInfo.getLocation());\n break;\n\n case \"R\":\n try {\n scnr = new Scanner(System.in);\n System.out.print(\"Enter the serial number of the item you would like removed: \");\n serial = scnr.next();\n } catch (NoSuchElementException e) {\n System.out.println(\"Not a valid Serial Number!\");\n }\n GroceryStoreItem removedItem = null;\n removedItem = (GroceryStoreItem) backEnd.remove(serial);\n if (removedItem == null) {\n System.out.println(\"Serial number either invalid or not found!\");\n } else {\n System.out.println(\"Removed Item Serial Number: \" + removedItem.getSerialNumber());\n System.out.println(\"Removed Item Name: \" + removedItem.getName());\n System.out.println(\"Removed Item Price: \" + removedItem.getCost());\n System.out.println(\"Removed Item Quantity: \" + removedItem.getQuantity());\n System.out.println(\"Removed Item Location: \" + removedItem.getLocation());\n }\n break;\n\n case \"C\":\n backEnd.clear();\n System.out.println(\"All items removed from table\");\n break;\n\n case \"L\":\n String[] serialNumbersInList = backEnd.list();\n GroceryStoreItem currentItem;\n String currentSerialNumber;\n String currentName;\n double currentPrice;\n int currentQuantity;\n int currentLocation;\n for (int i = 0; i < serialNumbersInList.length; i++) {\n currentItem = (GroceryStoreItem) backEnd.search(serialNumbersInList[i]);\n currentSerialNumber = (String) currentItem.getSerialNumber();\n currentName = (String) currentItem.getName();\n currentPrice = (double) currentItem.getCost();\n currentQuantity = (int) currentItem.getQuantity();\n currentLocation = (int) currentItem.getLocation();\n System.out.println(\"Item \" + (i + 1) + \": \");\n System.out.println(\"Serial Number: \" + currentSerialNumber);\n System.out.println(\"Name: \" + currentName);\n System.out.println(\"Price: $\" + currentPrice);\n System.out.println(\"Quantity: \" + currentQuantity);\n System.out.println(\"Location: \" + currentLocation);\n System.out.println();\n }\n System.out.println(\"==========================================\");\n System.out.println(\"Total net worth of store: $\" + backEnd.sumGrocery());\n break;\n case \"F\":\n DataWrangler dataWrangler = new DataWrangler(backEnd);\n scnr = new Scanner(System.in);\n System.out.println(\"What is the name of the file that you would like to read from: \");\n String fileToRead = scnr.next();\n dataWrangler.readFile(fileToRead);\n break;\n\n\n case \"H\":\n System.out.println(MENU);\n break;\n\n default:\n System.out.println(\"WARNING. Invalid command. Please enter H to refer to the menu.\");\n }\n }", "protected boolean ValidateCommand()\n {\n //Create a new ArrayList object and add the valid commands\n ArrayList<String> validCommands = new ArrayList<>();\n validCommands.add(\"^\");\n validCommands.add(\"$\");\n validCommands.add(\"-\");\n validCommands.add(\"+\");\n validCommands.add(\"a\");\n validCommands.add(\"t\");\n validCommands.add(\"d\");\n validCommands.add(\"l\");\n validCommands.add(\"n\");\n validCommands.add(\"p\");\n validCommands.add(\"q\");\n validCommands.add(\"w\");\n validCommands.add(\"x\");\n validCommands.add(\"=\");\n validCommands.add(\"#\");\n validCommands.add(\"c\");\n validCommands.add(\"v\");\n validCommands.add(\"s\");\n validCommands.add(\"b\");\n \n //Check if the inserted command is valid\n return validCommands.contains(this.Command);\n }", "@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }", "String[] checkIfLegalCommand(String strToChck);", "private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "public void toCheckIn(String newCommand){\n if(this.serveOrNot == false){\n this.println(\"Please serve first!\");\n }\n else{\n String bookNumbers = newCommand.substring(7).trim();\n if (bookNumbers.length() == 0){\n this.println(\"Please enter the book number to check in!\");\n }\n else{\n String[] bookNumberList = bookNumbers.split(\",\");\n //check see if the numberlist is out of range or not, if everything is correct, within the checkNum function, we implement checkIn\n checkNum(bookNumberList, true);\n } \n //this.println(printPatronInfo());\n }\n \n }", "private static String[] checkInput(String input) throws Exception{\n String[] in = input.trim().split(\" \");\n\n if(in.length == 0){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(CommandEnum.getCommandEnumFrom(in[0]) == null){\n throw new CommandException(ExceptionEnum.INCORRECT_COMMAND_EXCEPTION);\n }\n\n if(isSpecificCommandENum(in[0],BYE)){\n return in;\n }\n if(isSpecificCommandENum(in[0],TERMINATE)){\n return in;\n }\n\n if(in.length < MIN_PARAM){\n throw new CommandException(ExceptionEnum.LESS_INPUT_EXCEPTION);\n }\n\n if(in.length > MAX_PARAM){\n throw new CommandException(ExceptionEnum.EXTRA_INPUT_EXCEPTION);\n }\n\n //check input value\n for(int i = 1; i < in.length; i++){\n try{\n Integer.parseInt(in[i]);\n }catch(NumberFormatException e){\n throw new CommandException(ExceptionEnum.INVALID_INPUT_EXCEPTION);\n }\n }\n\n return in;\n }", "public void processUser() {\r\n Scanner sc = new Scanner(System.in);\r\n model.setAllparameters(inputIntValueWithScanner(sc, View.INPUT_INT_HOUR_DATA, GlobalConstants.PRIMARY_HOUR_MAX_BARRIER),// the correct input (hour,minute,second) is sent to the model\r\n inputIntValueWithScanner(sc, View.INPUT_INT_MINUTE_DATA, GlobalConstants.PRIMARY_MINUTE_MAX_BARRIER),\r\n inputIntValueWithScanner(sc, View.INPUT_INT_SECOND_DATA, GlobalConstants.PRIMARY_SECOND_MAX_BARRIER));\r\n int k = 0;\r\n do { //at least once the menu option is chosen (for option number 6 (break) for example)\r\n k = inputIntValueWithScanner(sc, View.CHOOSE_OPERATION, GlobalConstants.MENU_OPTION_MAX_VALUE);\r\n chooseOperation(k);\r\n } while (k != GlobalConstants.MENU_OPTION_MAX_VALUE); //menu loop until break option isn't chosen\r\n\r\n }", "private void handleCommandEntered(String input) {\n try {\n commandExecutor.execute(input);\n commandTextField.commitAndFlush();\n } catch (CommandException | ParseException | UnmappedPanelException e) {\n setStyleToIndicateCommandFailure();\n }\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = mug.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getMugDialog(response, mugImage)\n );\n userInput.clear();\n if (input.toUpperCase().equals(\"BYE\")) {\n PauseTransition delay = new PauseTransition(Duration.seconds(1));\n delay.setOnFinished(event -> {\n Platform.exit();\n System.exit(0);\n });\n delay.play();\n }\n }", "@Override\n public StatusType getInput(Object object) {\n StatusType status = StatusType.PLAYING;\n do {\n try {\n this.display(); //displays the display method from this class\n\n //get the input command entered by user\n String input = this.getCommand();\n switch (input) {\n case \"D\":\n this.gamePreferencesControl.setGameDifficulty();\n break;\n case \"R\":\n return StatusType.RETURN;\n }\n }\n catch (MenuException ex) {\n //Prints out proper error message from Menu class...\n //error text is in Error enum class\n System.out.println(\"\\n\" + ex.getMessage());\n } \n } while (status != StatusType.RETURN);\n return status;\n }", "ACommand CheckCommand(String NameCommand);", "private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "private void processMainMenuCommand() {\n String command;\n boolean keepgoing = true;\n while (keepgoing) {\n\n System.out.println(\"Hello \" + pickedAccount.getName());\n System.out.println(\"Your balance: \" + pickedAccount.getBalance());\n System.out.println(\"What would you like to do? (quit/reserve/view/deposit)\");\n\n command = input.next();\n command = command.toLowerCase();\n\n if (command.equals(\"quit\")) {\n keepgoing = false;\n } else if (command.equals(\"reserve\") || command.equals(\"view\") || command.equals(\"deposit\")) {\n processCommand(command);\n } else {\n System.out.println(\"Invalid command, try again\");\n }\n }\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = getResponse(input);\n if (response.equals(ExitCommand.COMMAND_WORD)) {\n handleExit();\n }\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }", "private void showMenu() {\n\t Scanner sc = new Scanner(System.in);\n\t Arguments argument = Arguments.INVALID;\n\t System.out.println(\"Enter command of your choice in the correct format\");\n\t do\n\t {\n\t \tString command = sc.nextLine();\n\t \tString[] arguments = command.split(\" +\");\n\t \targument = validateAndReturnType(arguments);\n\t \tswitch(argument) {\n\t\t \tcase INCREASE:\n\t\t \t\tincrease(arguments);\n\t\t \t\tbreak;\n\t\t \tcase REDUCE:\n\t\t \t\treduce(arguments);\n\t\t \t\tbreak;\n\t\t\t\tcase COUNT:\n\t\t\t\t\tcount(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INRANGE:\n\t\t\t\t\tinRange(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase NEXT:\n\t\t\t\t\tnext(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PREVIOUS:\n\t\t\t\t\tprevious(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\tcase INVALID:\n\t\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid command. Enter a command in the correct format\");\n\t \t}\n\t } while(argument != Arguments.QUIT);\n\t}", "@Override\n public void dealWithCommand(MessageReceivedEvent event) {\n List<String> contentSplit = new ArrayList<>(Arrays.asList(event.getMessage().getContentStripped().split(\" \")));\n\n // remove the command part of the message\n contentSplit.remove(0);\n boolean isXpDesired = DetermineArguments.determineIsXpDesired(contentSplit);\n boolean isCollection = DetermineArguments.determineIsCollection(contentSplit);\n long timeToSpend = DetermineArguments.determineTimeToSpend(contentSplit, event.getTextChannel());\n int classLevel = DetermineArguments.determineClassLevel(contentSplit, event.getTextChannel());\n long amountDesired = DetermineArguments.determineAmountDesired(contentSplit, event.getTextChannel());\n\n // be done if something bad was found\n if (timeToSpend == -2 || classLevel == -2 || amountDesired == -2)\n return;\n\n if (contentSplit.isEmpty()) {\n // user did not specify what player they want\n event.getChannel().sendMessage(\"Specify what player you want to analyze.\").queue();\n return;\n }\n String username = contentSplit.get(0);\n WynncraftPlayer player = GetPlayerStats.get(username);\n if (player == null) {\n event.getChannel().sendMessage(\"Either the api is down, or '\" + username + \"' is not a player.\").queue();\n return;\n }\n\n // tell the user we're working on the answer\n event.getMessage().addReaction(\"\\uD83D\\uDEE0\").queue();\n\n List<String> classNames = new ArrayList<>();\n for (WynncraftClass playerClass : player.classes) {\n classNames.add(playerClass.name);\n }\n ChoiceArguments choiceArguments = new ChoiceArguments(\n isXpDesired, isCollection, timeToSpend, amountDesired, classLevel, classNames, player, true);\n\n\n long xpDesiredGivenPerc = 0;\n long emeraldDesiredGivenPerc = 0;\n for (WynncraftClass wynncraftClass : player.classes)\n for (Quest quest : wynncraftClass.questsNotCompleted) {\n if (quest.levelMinimum <= (classLevel == -1 ? wynncraftClass.combatLevel : classLevel)) {\n xpDesiredGivenPerc += quest.xp;\n emeraldDesiredGivenPerc += quest.emerald;\n }\n }\n xpDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n emeraldDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n\n FinalQuestOptionsAll finalQuestOptionsAll = GetAnswers.getAllFullAnswers(player, choiceArguments);\n String spreadsheetId = SheetsWrite.writeSheet(finalQuestOptionsAll, event.getAuthor().getIdLong(), player.name, true);\n if (spreadsheetId == null) return;\n new QuestRecommendationMessagePlayer(spreadsheetId, finalQuestOptionsAll, event.getChannel(), choiceArguments, xpDesiredGivenPerc, emeraldDesiredGivenPerc);\n\n event.getMessage().removeReaction(\"\\uD83D\\uDEE0\", DiscordBot.client.getSelfUser()).queue();\n }", "@Override\n\tpublic void run() {\n\t\tString algorithem = \"LRU\";\n\t\tInteger capacity = 5;\n\t\t// TODO Auto-generated method stub\n\t\twhile (true) {\n\n\t\t\twrite(\"Please enter your command\");\n\t\t\tString input = this.m_Scanner.nextLine();\n\t\t\tif (input.equalsIgnoreCase(\"stop\")) {\n\t\t\t\twrite(\"Thank you\");\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.STOP);\n\t\t\t\tthis.state = StateEnum.STOP;\n\t\t\t\tbreak;\n\t\t\t} else if (input.contains(\"Cache_unit_config\")) {\n\t\t\t\twhile (true) {\n\t\t\t\t\tString[] splited = input.split(\"\\\\s+\");\n\t\t\t\t\tif (splited.length != 3) {\n\t\t\t\t\t\twrite(\"Worng params, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (String algo : this.m_AlgoNames) {\n\t\t\t\t\t\tif (splited[1].contains(algo)) {\n\t\t\t\t\t\t\tpcs.firePropertyChange(\"algochange\", algorithem, algo);\n\t\t\t\t\t\t\talgorithem = algo;\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (found == false) {\n\t\t\t\t\t\twrite(\"Unknown alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger cap = Integer.parseInt(splited[2]);\n\t\t\t\t\t\tpcs.firePropertyChange(\"capcitychange\", capacity, cap);\n\t\t\t\t\t\tcapacity = cap;\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\twrite(\"Capcity is alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (input.equalsIgnoreCase(\"start\")) {\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.START);\n\t\t\t\tthis.state = StateEnum.START;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }", "private void handeComparisonMenuCommands() throws Exception {\n printOptionsMessage();\n\n while (true) {\n String command = scanner.nextLine();\n\n\n\n if (command.equals(\"1\")) {\n toggleSelectedAlgorithm(0);\n } else if (command.equals(\"2\")) {\n toggleSelectedAlgorithm(1);\n } else if (command.equals(\"3\")) {\n toggleSelectedAlgorithm(2);\n } else if (command.equals(\"s\")) {\n intSelect.start();\n startComparison(selected);\n return;\n } else if (command.equals(\"r\")) {\n startComparison(selected);\n return;\n } else if (command.equals(\"x\")) {\n break;\n }\n\n comparisonMenuOptions();\n printOptionsMessage();\n }\n }", "public abstract boolean listenerUserInput();", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "public void clientRunning() {\n\t\twhile (this.running) {\n\t\t\tString userInputString = textUI.getString(\"Please input (or type 'help'):\");\n\t\t\tthis.processUserInput(userInputString);\n\t\t}\n\t}", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isAcceptingInput() {\n\t\treturn true;\n\t}", "public abstract boolean supportsMultipleInputs();", "void requestInput();", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "public void takeUserInput() {\n\t\t\r\n\t}", "protected abstract boolean isInputValid();", "private boolean isInputAllowed() {\n return entered && gameRenderer != null && gameRenderer.isDyingUnitAnimationCompleted() &&\n inGameContext != null && inGameContext.isActionCompleted() && inputAllowed && !blockAllInput;\n }", "public interface InputValidationListener {\n\n /**\n * Called when the command that has been entered is illegal.\n *\n * @param reason The reason that the command is illegal\n */\n void illegalCommand(final String reason);\n\n /**\n * Called when the command that has been entered is legal.\n *\n * @since 0.6\n */\n void legalCommand();\n\n /**\n * Called when the text or command that has been entered will be wrapped onto multiple lines.\n *\n * @param count The number of lines that the text will be sent as\n */\n void wrappedText(final int count);\n\n}", "public void getPlayerInput() {\n System.out.println(\"Enter a Command: \");\n playerInput = inputScanner.nextLine();\n }", "public boolean processCommand(Command command) \n {\n wantToQuit = false;\n String commandWord = command.getCommandWord();\n String commandWord2 = command.getSecondWord();\n \n \n if(enemyPresent == true)\n {\n sewers.removeItem(rope); \n if(command.isUnknown()) {\n System.out.println(\"Now is not the time. How would you like to attack, with weapon, laser, fire or shrink?\");\n return false;\n } \n else if(commandWord.equals(\"fire\")){\n int enemyHealth;\n setRand(); \n int damage;\n \n damage = player.useFire();\n currentRoom.setEnemyHealth(damage);\n \n int damageDone = damage;\n \n if(currentRoom.getEnemyHealth() < 0){\n enemyHealth = 0; \n }\n else {\n enemyHealth = currentRoom.getEnemyHealth(); \n }\n \n System.out.println(\"\\n\" + damageDone + \" damage done to enemy with fire spell! Fire level increased!\");\n \n System.out.println(\"Enemy health at \" + enemyHealth + \"!\");\n \n if(currentRoom.getEnemyHealth() > 0)\n {\n int playerHealth;\n player.setHealth(currentRoom.getEnemyDamage());\n \n checkHealth();\n \n if(player.getHealth() < 0)\n {\n playerHealth = 0;\n }\n else{\n playerHealth = player.getHealth();\n }\n \n System.out.println(currentRoom.getEnemyDamage() + \" damage taken! \" + \"Health at \" + playerHealth + \"!\" + \"\\n\");\n \n }\n }\n \n else if(commandWord.equals(\"freeze\")){\n int enemyHealth;\n setRand(); \n int damage;\n \n damage = player.useFreeze();\n currentRoom.setEnemyHealth(damage);\n \n int damageDone = damage;\n \n if(currentRoom.getEnemyHealth() < 0){\n enemyHealth = 0; \n }\n else {\n enemyHealth = currentRoom.getEnemyHealth(); \n }\n \n System.out.println(\"\\n\" + damageDone + \" damage done to enemy with fire spell! Freeze level increased!\" + \"\\n\");\n \n System.out.println(\"Enemy health at \" + enemyHealth + \"!\");\n \n if(currentRoom.getEnemyHealth() > 0)\n {\n int playerHealth;\n player.setHealth(currentRoom.getEnemyDamage());\n \n checkHealth();\n \n if(player.getHealth() < 0)\n {\n playerHealth = 0;\n }\n else{\n playerHealth = player.getHealth();\n }\n \n System.out.println(currentRoom.getEnemyDamage() + \" damage taken! \" + \"Health at \" + playerHealth + \"!\" + \"\\n\");\n \n }\n } \n \n else if(commandWord.equals(\"laser\")){\n int enemyHealth;\n setRand(); \n int damage;\n \n damage = player.useLaser();\n currentRoom.setEnemyHealth(damage);\n \n int damageDone = damage;\n \n if(currentRoom.getEnemyHealth() < 0){\n enemyHealth = 0; \n }\n else {\n enemyHealth = currentRoom.getEnemyHealth(); \n }\n \n System.out.println(\"\\n\" + damageDone + \" damage done to enemy with fire spell! Laser level increased!\" + \"\\n\");\n \n System.out.println(\"Enemy health at \" + enemyHealth + \"!\");\n \n if(currentRoom.getEnemyHealth() > 0)\n {\n int playerHealth;\n player.setHealth(currentRoom.getEnemyDamage());\n \n checkHealth();\n \n if(player.getHealth() < 0)\n {\n playerHealth = 0;\n }\n \n else\n {\n playerHealth = player.getHealth();\n }\n \n System.out.println(currentRoom.getEnemyDamage() + \" damage taken! \" + \"Health at \" + playerHealth + \"!\" + \"\\n\");\n \n }\n }\n \n \n else if(commandWord.equals(\"weapon\")){\n \n \n int enemyHealth;\n setRand();\n \n currentRoom.setEnemyHealth(player.getAttackDamage());\n \n int damageDone = player.getAttackDamage();\n \n if(currentRoom.getEnemyHealth() < 0){\n enemyHealth = 0; \n }\n else {\n enemyHealth = currentRoom.getEnemyHealth(); \n }\n \n System.out.println(\"\\n\" + damageDone + \" damage done to enemy with \" + player.getWeaponName() + \"!\");\n \n System.out.println(\"Enemy health at \" + enemyHealth + \"!\");\n \n if(currentRoom.getEnemyHealth() > 0)\n {\n int playerHealth;\n player.setHealth(currentRoom.getEnemyDamage());\n \n checkHealth();\n \n if(player.getHealth() < 0)\n {\n playerHealth = 0;\n }\n else{\n playerHealth = player.getHealth();\n }\n \n System.out.println(currentRoom.getEnemyDamage() + \" damage taken! \" + \"Health at \" + playerHealth + \"!\" + \"\\n\");\n \n }\n }\n\n else if(commandWord.equals(\"ai\")){\n \n\n if (commandWord2.equals(\"one\"))\n {\n startAi(1);\n }\n else if (commandWord2.equals(\"two\"))\n {\n startAi(2);\n }\n else if (commandWord2.equals(\"three\"))\n {\n startAi(3);\n }\n else if (commandWord2.equals(\"four\"))\n {\n startAi(4);\n }\n else if (commandWord2.equals(\"five\"))\n {\n startAi(5);\n }\n else if (commandWord2.equals(\"six\"))\n {\n startAi(6);\n }\n else if (commandWord2.equals(\"seven\"))\n {\n startAi(7);\n }\n else if (commandWord2.equals(\"eight\"))\n {\n startAi(8);\n }\n else if (commandWord2.equals(\"nine\"))\n {\n startAi(9);\n }\n else if (commandWord2.equals(\"ten\"))\n {\n startAi(10);\n }\n else if (commandWord2.equals(\"eleven\"))\n {\n startAi(11);\n }\n else if(commandWord2.equals(\"all\"))\n {\n startAi(12);\n }\n else\n {\n System.out.println(\"I don't know what you mean...\");\n return false; \n }\n \n }\n else if(commandWord.equals(\"flee\")){\n setRand();\n if(rand <= 8)\n {\n System.out.println(\"Pity, you've been snatched by the monster and killed.\" + \"\\n\");\n alive = false;\n }\n else{\n System.out.println(\"You got away!\");\n enemyPresent = false;\n currentRoom.removeEnemy(); \n }\n }\n \n else if (commandWord.equals(\"use\")){\n useItem(command); \n }\n \n else{\n System.out.println(\"Now is not the time. How would you like to attack, with weapon, laser, fire, shrink, or flee?\"); \n }\n \n if(currentRoom.getEnemyHealth() <= 0)\n {\n System.out.println(\"Enemy vanquished!\" + \"\\n\");\n enemyPresent = false;\n currentRoom.removeEnemy();\n }\n \n \n }\n \n else\n {\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n if (commandWord.equals(\"help\")) {\n printHelp();\n }\n else if(commandWord.equals(\"ai\")){\n \n\n if (commandWord2.equals(\"one\"))\n {\n startAi(1);\n }\n else if (commandWord2.equals(\"two\"))\n {\n startAi(2);\n }\n else if (commandWord2.equals(\"three\"))\n {\n startAi(3);\n }\n else if (commandWord2.equals(\"four\"))\n {\n startAi(4);\n }\n else if (commandWord2.equals(\"five\"))\n {\n startAi(5);\n }\n else if (commandWord2.equals(\"six\"))\n {\n startAi(6);\n }\n else if (commandWord2.equals(\"seven\"))\n {\n startAi(7);\n }\n else if (commandWord2.equals(\"eight\"))\n {\n startAi(8);\n }\n else if (commandWord2.equals(\"nine\"))\n {\n startAi(9);\n }\n else if (commandWord2.equals(\"ten\"))\n {\n startAi(10);\n }\n else if (commandWord2.equals(\"eleven\"))\n {\n startAi(11);\n }\n else if(commandWord2.equals(\"all\"))\n {\n startAi(12);\n }\n else\n {\n System.out.println(\"I don't know what you mean...\");\n return false; \n }\n \n }\n else if (commandWord.equals(\"go\")) {\n goRoom(command);\n }\n \n else if (commandWord.equals(\"take\")){\n player.pickUpWeapon(command);\n player.pickUpItem(command);\n }\n else if(commandWord.equals(\"health\")){\n System.out.println(\"Health is at: \" + player.getHealth());\n }\n else if(commandWord.equals(\"drop\"))\n {\n player.dropWeapon(command);\n }\n else if(commandWord.equals(\"boss\"))\n {\n currentRoom = throneRoomEntrance; \n }\n else if (commandWord.equals(\"use\")){\n useItem(command); \n }\n else if (commandWord.equals(\"open\")){\n openChest(command);\n }\n else if (commandWord.equals(\"quit\")) {\n wantToQuit = quit(command);\n }\n else if (commandWord.equals(\"inventory\")){\n player.printInventory();\n }\n else if (commandWord.equals(\"name\")){\n Scanner reader = new Scanner(System.in);\n System.out.println(\"Enter a name: \");\n name = reader.next();\n player.setName(name);\n reader.close();\n System.out.println(\"New name is: \" + name);\n player.getName();\n \n }\n }\n \n return wantToQuit;\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userIcon),\n DialogBox.getDukeDialog(response, mrRobotIcon)\n );\n userInput.clear();\n if (response.equals(\"Goodbye friend.\")) {\n Platform.exit();\n }\n }", "private void handleCommand(String input) throws ClientOfflineException, ServerException {\n String[] params = input.split(\" \");\n Command command = this.availableCommandMap.get(params[0]);\n String argument = (params.length <= 1) ? null : params[1];\n command.execute(this, argument);\n }", "public void checkInputs() {\n\n gearShift = driveStick.getXButtonReleased();\n slow = driveStick.getAButtonReleased();\n\n manualClimb = driveStick.getBumper(Hand.kLeft) && driveStick.getBumper(Hand.kRight);\n\n //climbToggle = driveStick.getBumperReleased(Hand.kLeft);\n climbToggle = false;\n climbRelease = driveStick.getStartButton();\n\n resetBalls = gunnerStick.getStartButtonReleased();\n visionShoot = gunnerStick.getBButtonReleased();\n manualShoot = gunnerStick.getYButton();\n distShoot = gunnerStick.getAButton();\n intakeToggle = gunnerStick.getBumperReleased(Hand.kRight);\n hoodToggle = gunnerStick.getBumperReleased(Hand.kLeft);\n intakeReverse = gunnerStick.getXButtonReleased();\n magazineReverse = gunnerStick.getBackButton();\n\n\n //Switch statement to determine controls for the driver\n switch (driverScheme) {\n case \"Reverse Turning\":\n XSpeed = -driveStick.getY(Hand.kLeft);\n ZRotation = driveStick.getX(Hand.kRight);\n break;\n default:\n XSpeed = driveStick.getY(Hand.kLeft);\n ZRotation = -driveStick.getX(Hand.kRight);\n break;\n }\n\n //Switch statement to determine controls for the gunner\n switch (gunnerScheme) {\n case \"Fun Mode\":\n\n discoToggle = gunnerStick.getBackButtonReleased();\n break;\n\n default:\n\n // if ((gunnerStick.getTriggerAxis(Hand.kRight) >= 0.75) && (gunnerStick.getTriggerAxis(Hand.kLeft) >= 0.75) && !overriding) {\n // overrideSafeties = !overrideSafeties;\n // overriding = true;\n // } else if ((gunnerStick.getTriggerAxis(Hand.kRight) <= 0.75) && (gunnerStick.getTriggerAxis(Hand.kLeft) <= 0.75)) {\n // overriding = false;\n // }\n\n break;\n }\n }", "private boolean isInputValid() {\n return true;\n }", "public static boolean decodeClientInput(GameWorld game,String input, int player,Set<String> approvedCommands){\n\t\tif(input==null){\n\t\t\tSystem.out.println(\"INPUT IS NULL, REMOVING PLAYER\");\n\t\t\tgame.removePlayer(player);\n\t\t\tapprovedCommands.add(\"DISC \"+player);\n\t\t\treturn false;\n\t\t\t}\n\t\tScanner sc = new Scanner(input);\n\t\twhile(sc.hasNext()){\n\t\t\tString next = sc.next();\n\t\t\t//Decode the player's Player update input\n\t\t\tif(next.equals(\"P\")){\n\t\t\t\ttry{\n\t\t\t\t\tgame.updatePlayerInfo(Integer.parseInt(sc.next()),\t//ID\n\t\t\t\t\t\t\tInteger.parseInt(sc.next())/100.0f,\t\t\t//X*100\n\t\t\t\t\t\t\tInteger.parseInt(sc.next())/100.0f,\t\t\t//y*100\n\t\t\t\t\t\t\tInteger.parseInt(sc.next()));\t\t\t\t//Rotation\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\tSystem.out.println(\"Error! Received bad input |\" + input + \"| couldn't parse into (int,int,int,int) \");\n\t\t\t\t}\n\t\t\t}else if(next.equals(\"DISC\")){\n\t\t\t\ttry{\n\t\t\t\t\tint playerID = Integer.parseInt(sc.next());\n\t\t\t\t\t//TODO handle disconnect of this player on the game world.\n\t\t\t\t\tgame.removePlayer(playerID);\n\t\t\t\t\tapprovedCommands.add(input);\n\t\t\t\t\treturn false;\n\t\t\t\t}catch(NumberFormatException e){\n\t\t\t\t\tSystem.out.println(\"Error! Received bad input |\" + input + \"| couldn't parse into (int) \");\n\t\t\t\t}\n\t\t\t}else if(next.equals(\"INTERACT\")){\n\t\t\t\t//INTERACT [ITEM ID] [PLAYER ID of play who will receive item]\n\t\t\t\tint itemID = sc.nextInt();\n\t\t\t\tint playerID = sc.nextInt();\n\t\t\t\tSystem.out.println(\"Interact call \" + itemID + \" \" + playerID);\n\t\t\t\tif(game.interact(playerID, itemID)){\n\t\t\t\t\tapprovedCommands.add(next +\" \"+ itemID + \" \" + playerID);\n\t\t\t\t}\n\t\t\t}else if(next.equals(\"USE\")){\n\t\t\t\t//USE [ITEM ID] [PLAYER ID of play who will receive item]\n\t\t\t\tint itemID = sc.nextInt();\n\t\t\t\tint playerID = sc.nextInt();\n\t\t\t\tif(game.useEquippedItem(playerID, itemID)){\n\t\t\t\t\tapprovedCommands.add(next +\" \"+ itemID + \" \" + playerID);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\treturn true;\n\t}", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) \n {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n //my command expect when i Quit\n case PICK:\n pickItem();\n break;\n \n //drink the redbull\n case DRINK:\n drink();\n break;\n \n //show inventory\n case SHOW:\n showInventory();\n break;\n \n //show objective\n case GOAL:\n remindGoal();\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n }\n return wantToQuit;\n }", "public void listenUserInput(){\n boolean quit = false;\n while(!quit) {\n String head = scanner.next();\n switch (head) {\n case \"get\": {\n String key = scanner.next();\n if (key == null) {\n System.out.println(\"[User] No key specified\");\n continue;\n }\n this.get(key);\n continue;\n }\n case \"put\": {\n String key = scanner.next();\n String value = scanner.next();\n if (key == null || value == null) {\n System.out.println(\"[User] No key or value specified\");\n continue;\n }\n Object obj = parseValueType(value);\n if (obj != null) {\n this.put(key, parseValueType(value));\n }\n else {\n System.out.println(\"[User] Unknown data type\");\n }\n continue;\n }\n case \"delete\": {\n String key = scanner.next();\n if (key == null) {\n System.out.println(\"[User] No key specified\");\n continue;\n }\n this.delete(key);\n continue;\n }\n case \"getall\":{\n this.getAll();\n continue;\n }\n case \"quit\":{\n System.out.println(\"[User] Goodbye\");\n quit = true;\n break;\n }\n default:{\n System.out.println(\"[User] Invalid command\");\n }\n }\n }\n }", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\")) {\n printHelp();\n }\n else if (commandWord.equals(\"go\")) {\n player.goRoom(command); \n }\n else if (commandWord.equals(\"look\")) { \n player.look();\n }\n else if (commandWord.equals(\"eat\")) {\n player.eat();\n }\n else if (commandWord.equals(\"quit\")) {\n wantToQuit = quit(command);\n }\n else if (commandWord.equals(\"back\")) {\n player.goBack(); \n }\n else if (commandWord.equals(\"take\")) {\n player.take(command);\n }\n else if (commandWord.equals(\"drop\")) {\n player.drop(command);\n }\n else if (commandWord.equals(\"items\")) {\n player.getItems();\n }\n else if (commandWord.equals(\"equipar\")) {\n player.equipar(command);\n }\n return wantToQuit;\n }", "private void validateInputParameters(){\n\n }", "public void doCommand(String input) {\r\n\r\n if (input == null || input.isEmpty()) {\r\n return;\r\n }\r\n\r\n Command command = parseCommand(input);\r\n\r\n if (!activated && !isPlaceCommand(command)) {\r\n return;\r\n }\r\n command.execute(this);\r\n }", "@Override\n protected void manageAsynchronousCommand(String[] items) {\n if (items[0].equals(\"LP\")) {\n setPowerLost(true);\n setCurrentState(false);\n } else {\n setPowerLost(false);\n parseReceivedData(items);\n }\n }", "private void commandLoop() {\n\t\twhile (true) {\n\t\t\tString s = getString();\n\t\t\tString sl = s.toLowerCase();\n\t\t\tif (sl.startsWith(\"load\") || sl.startsWith(\"save\")) {\n\t\t\t\ts = s.replace(\"\\\"\", \" \").trim();\n\t\t\t}\n\t\t\tString[] split = s.split(\" \");\n\t\t\tif (sl.equals(\"list\")) {\n\t\t\t\tputString(store.toString());\n\t\t\t} else if (sl.equals(\"new\")) {\n\t\t\t\tstore.clear();\n\t\t\t} else if (sl.equals(\"cls\")) {\n\t\t\t\tcls();\n\t\t\t} else if (sl.equals(\"dir\")) {\n\t\t\t\tdir();\n\t\t\t} else if (sl.equals(\"run\")) {\n\t\t\t\tif (runner != null) {\n\t\t\t\t\trunner.dispose();\n\t\t\t\t}\n\t\t\t\trunner = new Runner(store.toArray(), this);\n\t\t\t\trunner.synchronousStart();\n\t\t\t} else if (split[0].toLowerCase().equals(\"save\")) {\n\t\t\t\tString msg = store.save(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else if (split[0].toLowerCase().equals(\"load\")) {\n\t\t\t\tString msg = store.load(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else {\n\t\t\t\tif (!store.insert(s)) {\n\t\t\t\t\tif (runner == null) {\n\t\t\t\t\t\trunner = new Runner(new String[] {}, this);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunner.executeDirectCommand(s);\n\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\tputString(\"?ERROR\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}", "private void runCmd(String input) {\n CommandDetails cmd = cmdParser.parse(input);\n if (cmd != null) {\n switch (cmd.getAction()) {\n case LIST:\n listAll(cmd.getType());\n break;\n case SEARCH:\n search(cmd);\n break;\n case SEND_HELP:\n sendHelp(cmd);\n break;\n case SEND_USAGE:\n sendUsage(cmd.getType());\n break;\n case EXIT:\n closeStreams();\n break;\n }\n }\n sendMsgToClient(END_TRANSMISSION);\n }", "public abstract boolean doCommand() throws Exception;", "private void processSingleCmd(final String[] cmdArgs) {\n\n switch (cmdArgs[0].toUpperCase()) {\n\n case \"PLACE\":\n logger.info(\"PLACE - Request received\");\n GridLocation location = new GridLocation( Integer.parseInt(cmdArgs[1]),\n Integer.parseInt(cmdArgs[2]),\n GridLocation.FACING.valueOf(cmdArgs[3]));\n placeHolder = Optional.of( new Robot(location) );\n break;\n\n case \"MOVE\":\n logger.info(\"MOVE - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().move();\n }\n break;\n\n case \"LEFT\":\n logger.info(\"LEFT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().left();\n }\n break;\n\n case \"RIGHT\":\n logger.info(\"RIGHT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().right();\n }\n break;\n\n case \"REPORT\":\n logger.info(\"REPORT - Request received\");\n if (placeHolder.isPresent()) {\n placeHolder.get().report();\n }\n break;\n\n default:\n logger.info(\"NO Intelligible - Request received\");\n // Unable to match any command - ignore\n break;\n }\n }", "private void waitForCommands() throws IOException, ClassNotFoundException, UnableToStartGameException\n\t{\n\t\tboolean gameBegins = false;\n\t\t\n\t\twhile(!gameBegins)\n\t\t{\n\t\t\tObject object = objectInputStream.readObject();\n\t\t\t\n\t\t\t//Hier Abfragen, ob der Server uns andre Anweisungen melden will (Kartenname, usw.)\n\t\t\t\n\t\t\t//Das Spiel soll beginnen\n\t\t\tif(object instanceof GameStarts)\n\t\t\t{\n\t\t\t\tobject = objectInputStream.readObject();\n\t\t\t\t//Model vom Server kriegen\n\t\t\t\tif(object instanceof Game)\n\t\t\t\t{\n\t\t\t\t\tgame = (Game) object;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new UnableToStartGameException(\"Konnte das Model nicht empfangen.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgameBegins = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tGameManager gameManager = new GameManager(socket, gameServer, playerId, game, objectInputStream);\n\t\t//Uebergang von vor dem Spiel ins Spiel\n\t\tnew Thread(gameManager).start();\n\t}", "private void handleInput() {\n String result = \"\";\n while (!clientSocket.isClosed() && result != null) {\n try {\n result = inFromServer.readLine();\n if (result == null || result.equals(\"null\")) {\n RoboRally.scheduleSync(() -> game.setScreen(new ErrorScreen(game, \"You where disconnected from the host\")), 0);\n\n return;\n }\n ClientAction command = ClientAction.fromCommandString(result.substring(0, result.indexOf(\":\")));\n String data = result.substring(result.indexOf(\":\") + 1);\n switch (command) {\n case START_GAME:\n setupGame(data);\n break;\n case GIVE_CARDS:\n giveCards(data);\n break;\n case NAME:\n //clientName = data;\n // Only used to check connectivity\n break;\n case CONNECTED_PLAYERS:\n receiveConnectedPlayers(data);\n break;\n case THREAD_NAME:\n //Do nothing\n break;\n case START_ROUND:\n GameScreen.getUiHandler().updateCountDown(0);\n playerHandler.runRound(GameGraphics.gson.fromJson(data, StartRoundDto.class));\n break;\n case COUNT_DOWN:\n // This seconds int has the information about the current number for the countdown\n int seconds = 30 - GameGraphics.gson.fromJson(data, Integer.class); // Count down, not count up\n GameScreen.getUiHandler().updateCountDown(seconds);\n break;\n case PARTY_MODE:\n InputHandler.enableMode();\n break;\n default:\n System.out.println(\"Unknown operation :\" + result);\n break;\n }\n } catch (IOException e) {\n System.out.println(\"IOExeption \" + e);\n }\n }\n }", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "public boolean handleUserInput(String userInput) {\n return this.duke.processOneCommand(userInput);\n }", "public abstract void validateCommand(FORM target, Errors errors);", "public void consoleGetOptions(){\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input;\n\t\tint diff=0,first=0;\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Who starts first (0-Player, 1-Computer): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tfirst = Integer.parseInt(input);\n\t\t\t\tif (first<0 || first>1) throw new IllegalArgumentException();\n\t\t\t\tif (first==1) ttt.switchPlayer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\n\t\tdo{\n\t\t\ttry{\n\t\t\t\tSystem.out.print(\"Enter AI level (0-Noob, 1-Normal, 2-God Mode): \");\n\t\t\t\tinput=in.readLine();\n\t\t\t\tdiff = Integer.parseInt(input);\n\t\t\t\tif (diff<0 || diff>2) throw new IllegalArgumentException();\n\t\t\t\tttt.setDifficulty(diff);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}while(true);\t\t\n\t}", "public abstract boolean verifyInput();", "public void userInterface() {\r\n\r\n boolean proceed = true;\r\n\r\n while (proceed == true) {\r\n\r\n System.out.println(\"Enter a name to find phone number: \");\r\n Scanner user = new Scanner(System.in);\r\n String input = table.lookUp(user.nextLine());\r\n System.out.println(input);\r\n\r\n System.out.println(\"Look up another number? <Y/N>\");\r\n Scanner answer = new Scanner(System.in);\r\n String ans = answer.nextLine();\r\n\r\n if (ans.equals(\"y\") || ans.equals(\"Y\")) {\r\n proceed = true;\r\n } else {\r\n proceed = false;\r\n }\r\n }\r\n }", "public void readUserInput(){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String input = reader.readLine();\n while (!userValidation.validateUserInput(input)){\n input = reader.readLine();\n }\n elevatorController.configureNumberOfElevators(input);\n\n } catch (\n IOException e) {\n logger.error(e);\n }\n\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n if(commandWord == CommandWord.UNKNOWN) {\n Logger.Log(\"I don't know what you mean...\");\n return false;\n }\n \n if (commandWord == CommandWord.HELP) {\n printHelp();\n }\n else if (commandWord == CommandWord.GO) {\n goRoom(command);\n }\n \n else if (commandWord == CommandWord.TAKE) {\n takeItem(command);\n }\n \n else if (commandWord == CommandWord.USE) {\n useItem(command);\n }\n \n else if (commandWord == CommandWord.LOOK) {\n Logger.Log(currentRoom.getLongDescription());\n }\n \n else if (commandWord == CommandWord.VIEW) {\n viewPlayer(command);\n }\n \n else if (commandWord == CommandWord.QUIT) {\n wantToQuit = quit(command);\n }\n // else command not recognised.\n return wantToQuit;\n }", "public String getValidCommand(String msg) {\n String enteredCmd = getCommand(msg);\n while (enteredCmd.isEmpty()||isSpecialCharacter(enteredCmd)) {\n enteredCmd = getCommand(ANSI_RED+\"Not a valid input. Please enter again\"+ANSI_RESET);\n }\n return enteredCmd;\n }", "private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }" ]
[ "0.67645645", "0.66810614", "0.6668601", "0.66166174", "0.66068906", "0.65694183", "0.65249103", "0.63554925", "0.6309566", "0.6277393", "0.6247326", "0.6220731", "0.6153028", "0.61040723", "0.6064435", "0.6061888", "0.602798", "0.6005227", "0.5988548", "0.5976207", "0.5975763", "0.59312636", "0.59135455", "0.59106314", "0.5898156", "0.5887338", "0.5885503", "0.5881872", "0.58498937", "0.58171386", "0.5814908", "0.5810171", "0.5809844", "0.58052915", "0.5799744", "0.57970715", "0.5793788", "0.5789879", "0.57692564", "0.57661605", "0.5752116", "0.57510173", "0.5748564", "0.57474846", "0.5733032", "0.5728515", "0.5721086", "0.571895", "0.57096773", "0.5708054", "0.5692633", "0.5671301", "0.5660667", "0.5651618", "0.5650492", "0.5639871", "0.563889", "0.5636701", "0.5616335", "0.5616335", "0.5603831", "0.5597564", "0.5596593", "0.5595299", "0.5595183", "0.5582509", "0.5581596", "0.55775225", "0.55711794", "0.5567626", "0.55430317", "0.5541736", "0.5538026", "0.5536648", "0.5527975", "0.5527949", "0.5518809", "0.5507472", "0.55019736", "0.54756474", "0.5474688", "0.5471916", "0.54694533", "0.5465003", "0.54647017", "0.5459535", "0.54590017", "0.54406965", "0.5436992", "0.5435454", "0.54347855", "0.54341644", "0.54341465", "0.5429709", "0.5428571", "0.54261506", "0.54251134", "0.5423207", "0.5414562", "0.5414378" ]
0.69251287
0
TODO Autogenerated method stub
@Override public String getMessage() { return "홀수입력 !!"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
by default is "na", updated via WordPair.java when target word belongs to a prefix class properties for "Model" tab in GUI
public int getNumSpeakers() { return numSpeakers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void configureWord() {\n }", "void setWord(Word word);", "@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}", "private void addCustomWords() {\r\n\r\n }", "public void getWord() {\n\t\t\n\t}", "void setVersesWithWord(Word word);", "WordConstant createWordConstant();", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}", "@Override\n public String getWord(){\n return word;\n }", "public String getWord(){\n return this.word;\n }", "public DoubleWord(){\n\t\tsuper();\n\t}", "public String getWord(){\r\n\t\t return word;\r\n\t }", "private SpreedWord() {\n\n }", "public abstract WordEntry autoTranslate(String text, String to);", "public void setWord(String word){\n this.word = word; //Only used in testing.\n }", "public void highLightWords(){\n }", "public abstract WordEntry manualTranslate(String text, String from, String to);", "private static void demonstrateTreeOperation(IndexWord word) throws JWNLException {\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(word.getSense(1));\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n Synset rootsynset = rootnode.getSynset();\n System.out.println(rootsynset.getWord(0).getLemma());\n PointerTargetTreeNodeList childList = rootnode.getChildTreeList();\n PointerTargetTreeNode rootnode1=(PointerTargetTreeNode)childList.get(0);\n System.out.println(rootnode1.getSynset().getWord(0).getLemma());\n System.out.println(\"Hyponyms of \\\"\" + word.getLemma() + \"\\\":\");\n hyponyms.print();\n }", "public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}", "public void setWordPosition() {\n this.wordPosition = wordPosition;\n }", "public static void main(final String[] args)\r\n {\r\n // Set the path to the data files\r\n Dictionary.initialize(\"c:/Program Files/WordNet/2.1/dict\");\r\n \r\n // Get an instance of the Dictionary object\r\n Dictionary dict = Dictionary.getInstance();\r\n \r\n // Declare a filter for all terms starting with \"car\", ignoring case\r\n TermFilter filter = new WildcardFilter(\"car*\", true);\r\n \r\n // Get an iterator to the list of nouns\r\n Iterator<IndexTerm> iter = \r\n dict.getIndexTermIterator(PartOfSpeech.NOUN, 1, filter);\r\n \r\n // Go over the list items\r\n while (iter.hasNext())\r\n {\r\n // Get the next object\r\n IndexTerm term = iter.next();\r\n \r\n // Write out the object\r\n System.out.println(term.toString());\r\n \r\n // Write out the unique pointers for this term\r\n int nNumPtrs = term.getPointerCount();\r\n if (nNumPtrs > 0)\r\n {\r\n // Print out the number of pointers\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumPtrs) +\r\n \" pointers\");\r\n \r\n // Print out all of the pointers\r\n String[] ptrs = term.getPointers();\r\n for (int i = 0; i < nNumPtrs; ++i)\r\n {\r\n String p = Pointer.getPointerDescription(term.getPartOfSpeech(), ptrs[i]);\r\n System.out.println(ptrs[i] + \": \" + p);\r\n }\r\n }\r\n \r\n // Get the definitions for this term\r\n int nNumSynsets = term.getSynsetCount();\r\n if (nNumSynsets > 0)\r\n {\r\n // Print out the number of synsets\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumSynsets) +\r\n \" synsets\");\r\n \r\n // Print out all of the synsets\r\n Synset[] synsets = term.getSynsets();\r\n for (int i = 0; i < nNumSynsets; ++i)\r\n {\r\n System.out.println(synsets[i].toString());\r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Demo processing finished.\");\r\n }", "public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tprotected int keywordWeighting(String word) {\n\t\tif (this.keywordWeight.containsKey(word)) {\n\t\t\treturn this.keywordWeight.get(word);\n\t\t}\n\t\treturn 1;\n\t}", "@ChangeSet(order = \"001\", id = \"initialWordType\", author = \"zdoh\", runAlways = true)\n public void initWordType(MongoTemplate template) {\n partOfSpeechMap.putIfAbsent(\"num\", template.save(PartOfSpeech.builder()\n .shortName(\"num\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"числительное\"), new TranslateEntity(languageMap.get(\"en\"), \"numeral\")))\n .japanName(\"数詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n\", template.save(PartOfSpeech.builder()\n .shortName(\"n\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное\"), new TranslateEntity(languageMap.get(\"en\"), \"noun (common)\")))\n .japanName(\"名詞\")\n .kuramojiToken(\"名詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"pn\", template.save(PartOfSpeech.builder()\n .shortName(\"pn\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"местоимение\"), new TranslateEntity(languageMap.get(\"en\"), \"pronoun\")))\n .japanName(\"代名詞\")\n .kuramojiToken(\"代名詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n // no kuramoji\n partOfSpeechMap.putIfAbsent(\"hon\", template.save(PartOfSpeech.builder()\n .shortName(\"hon\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"вежливая речь\"), new TranslateEntity(languageMap.get(\"en\"), \"honorific or respectful (sonkeigo) language\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"mr-suf\", template.save(PartOfSpeech.builder()\n .shortName(\"mr-suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс обращения к кому-то: мистер, миссис и тд, используемый в японском языке\")))\n .build()));\n\n\n partOfSpeechMap.putIfAbsent(\"adv\", template.save(PartOfSpeech.builder()\n .shortName(\"adv\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"наречие\"), new TranslateEntity(languageMap.get(\"en\"), \"adverb\")))\n .japanName(\"副詞\")\n .kuramojiToken(\"副詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.OTHER)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"int\", template.save(PartOfSpeech.builder()\n .shortName(\"int\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"междометие\"), new TranslateEntity(languageMap.get(\"en\"), \"interjection\")))\n .japanName(\"感動詞\")\n .kuramojiToken(\"感動詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.OTHER)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"adj-na\", template.save(PartOfSpeech.builder()\n .shortName(\"adj-na\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"na-прилагательное (предикативное)\"), new TranslateEntity(languageMap.get(\"en\"), \"adjectival nouns or quasi-adjectives\")))\n .japanName(\"な形容詞\")\n .kuramojiToken(\"形容動詞語幹\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"adj-i\", template.save(PartOfSpeech.builder()\n .shortName(\"adj-i\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"i-прилагательное (полупредикативное)\"), new TranslateEntity(languageMap.get(\"en\"), \"adjective\")))\n .japanName(\"い形容詞\")\n .kuramojiToken(\"形容詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v\", template.save(PartOfSpeech.builder()\n .shortName(\"v\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"verb\")))\n .japanName(\"動詞\")\n .kuramojiToken(\"動詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5b\", template.save(PartOfSpeech.builder()\n .shortName(\"v5b\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぶ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'bu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5g\", template.save(PartOfSpeech.builder()\n .shortName(\"v5g\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぐ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'gu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5k\", template.save(PartOfSpeech.builder()\n .shortName(\"v5k\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -く\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'ku' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5k-s\", template.save(PartOfSpeech.builder()\n .shortName(\"v5k-s\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -す (специальный клаас)\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'su' ending (special class)\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5m\", template.save(PartOfSpeech.builder()\n .shortName(\"v5m\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -む\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'mu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5n\", template.save(PartOfSpeech.builder()\n .shortName(\"v5n\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぬ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'nu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5r\", template.save(PartOfSpeech.builder()\n .shortName(\"v5r\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -る\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'ru' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5s\", template.save(PartOfSpeech.builder()\n .shortName(\"v5s\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -す\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'su' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5t\", template.save(PartOfSpeech.builder()\n .shortName(\"v5t\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -つ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'tu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5u\", template.save(PartOfSpeech.builder()\n .shortName(\"v5u\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -う\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'u' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5z\", template.save(PartOfSpeech.builder()\n .shortName(\"v5z\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ず\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'zu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vi\", template.save(PartOfSpeech.builder()\n .shortName(\"vi\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"непереходный глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"intransitive verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"prefix\", template.save(PartOfSpeech.builder()\n .shortName(\"prefix\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"префикс\"), new TranslateEntity(languageMap.get(\"en\"), \"prefix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v1\", template.save(PartOfSpeech.builder()\n .shortName(\"v1\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол II-спряжение\"), new TranslateEntity(languageMap.get(\"en\"), \"ichidan verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vt\", template.save(PartOfSpeech.builder()\n .shortName(\"vt\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"переходный глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"transitive verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-adv\", template.save(PartOfSpeech.builder()\n .shortName(\"n-adv\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"отглагольное существительное\"), new TranslateEntity(languageMap.get(\"en\"), \"adverbial noun\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-t\", template.save(PartOfSpeech.builder()\n .shortName(\"n-t\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное (временное)\"), new TranslateEntity(languageMap.get(\"en\"), \"noun (temporal)\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vk\", template.save(PartOfSpeech.builder()\n .shortName(\"vk\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"специальный глагол 来る\"), new TranslateEntity(languageMap.get(\"en\"), \"来る verb - special class\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vs\", template.save(PartOfSpeech.builder()\n .shortName(\"vs\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, которое используется с する\"), new TranslateEntity(languageMap.get(\"en\"), \"noun or participle which takes the aux. verb suru\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ctr\", template.save(PartOfSpeech.builder()\n .shortName(\"ctr\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"счетчик\"), new TranslateEntity(languageMap.get(\"en\"), \"counter\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-suf\", template.save(PartOfSpeech.builder()\n .shortName(\"n-suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, котором может использоваться как суффикс\"), new TranslateEntity(languageMap.get(\"en\"), \"noun, used as a suffix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-pref\", template.save(PartOfSpeech.builder()\n .shortName(\"n-pref\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, котором может использоваться как префикс\"), new TranslateEntity(languageMap.get(\"en\"), \"noun, used as a prefix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"suf\", template.save(PartOfSpeech.builder()\n .shortName(\"suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс\"), new TranslateEntity(languageMap.get(\"en\"), \"suffix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"exp\", template.save(PartOfSpeech.builder()\n .shortName(\"exp\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"выражение\"), new TranslateEntity(languageMap.get(\"en\"), \"expressions (phrases, clauses, etc.)\")))\n .build()));\n\n /// part of speech for grammar\n\n partOfSpeechMap.putIfAbsent(\"は\", template.save(PartOfSpeech.builder()\n .shortName(\"は\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица は\"), new TranslateEntity(languageMap.get(\"en\"), \"particle は\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"です\", template.save(PartOfSpeech.builder()\n .shortName(\"です\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"связка です\"), new TranslateEntity(languageMap.get(\"en\"), \".... です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"じゃありません\", template.save(PartOfSpeech.builder()\n .shortName(\"じゃありません\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"разговорная отрицательная форма связки です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ではありません\", template.save(PartOfSpeech.builder()\n .shortName(\"ではありません\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"отрицательная форма связки です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"か\", template.save(PartOfSpeech.builder()\n .shortName(\"か\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"вопросительная частица か\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"も\", template.save(PartOfSpeech.builder()\n .shortName(\"も\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица も\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"の\", template.save(PartOfSpeech.builder()\n .shortName(\"の\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица の\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"さん\", template.save(PartOfSpeech.builder()\n .shortName(\"さん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс さん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ちゃん\", template.save(PartOfSpeech.builder()\n .shortName(\"ちゃん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс ちゃん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"くん\", template.save(PartOfSpeech.builder()\n .shortName(\"くん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс くん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"これ\", template.save(PartOfSpeech.builder()\n .shortName(\"これ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение これ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"それ\", template.save(PartOfSpeech.builder()\n .shortName(\"それ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение それ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"あれ\", template.save(PartOfSpeech.builder()\n .shortName(\"あれ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение あれ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"この\", template.save(PartOfSpeech.builder()\n .shortName(\"この\")\n .translateName( List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение この\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"その\", template.save(PartOfSpeech.builder()\n .shortName(\"その\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение その\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"あの\", template.save(PartOfSpeech.builder()\n .shortName(\"あの\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение あの\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"文\", template.save(PartOfSpeech.builder()\n .shortName(\"文\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"показатель предложения\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"、\", template.save(PartOfSpeech.builder()\n .shortName(\"、\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"символ запятой\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"。\", template.save(PartOfSpeech.builder()\n .shortName(\"。\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"символ точки\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"お\", template.save(PartOfSpeech.builder()\n .shortName(\"お\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"показатель вежливости, префикс к существительному\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"name\", template.save(PartOfSpeech.builder()\n .shortName(\"name\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"имя, фамилия и тд\")))\n .build()));\n\n/*\n wordTypeMap.putIfAbsent(\"\", template.save(new WordType(\"\",\n List.of(new TranslateEntity(languageMap.get(\"ru\"), \"\"), new TranslateEntity(languageMap.get(\"en\"), \"\")), \"\")));\n*/\n\n }", "public String getWord(){\r\n\t\treturn word;\r\n\t}", "public String getWord() {\n return this.word;\n }", "java.lang.String getWord();", "public String getWord(){\n\t\treturn word;\n\t}", "@Override\r\n // WEI XU METHOD 2\r\n \r\n public void train(String sourceText) {\r\n String[] words1 = sourceText.split(\"[\\\\s]+\");\r\n // add starter to be a next word for the last word in the source text.\r\n List<String> words = new ArrayList<String>(Arrays.asList(words1));\r\n words.add(words1[0]);\r\n starter = words1[0];\r\n String prevWord = starter;\r\n for (int i = 1; i < words.size(); i++) {\r\n ListNode node = findNode(prevWord);//todo:it's a reference? but not a new Listnode? so no need set back?\r\n if (node == null) {\r\n node = new ListNode(prevWord);\r\n wordList.add(node);\r\n }\r\n node.addNextWord(words.get(i));//todo: why hashmap need set back value, linkedlist don't need?\r\n prevWord = words.get(i);\r\n }\r\n }", "private Suggestion buildSuggestion(String linearization,\n Interpretation interpretation,\n Map<String, WordType> originalWords, boolean matchAllWords) {\n String[] words = linearization.split(\"\\\\s+\");\n\n Map<String, Integer> namesMissing = new HashMap(\n interpretation.getNameTypeCounts().counts);\n\n int additionalNamesCount = 0;\n\n Set<String> wordsNotMatched = new HashSet<>(originalWords.keySet());\n for (Entry<String, WordType> entry : originalWords.entrySet()) {\n if (entry.getValue() == WordType.Name) {\n wordsNotMatched.remove(entry.getKey());\n }\n }\n int additionalGrammarWordsCount = 0;\n\n\n for (String word : words) {\n\n //name word\n if (defTempl.isVariable(word)) {\n String nameType = word.substring(2, word.length() - 2);\n if (namesMissing.containsKey(nameType)) {\n Integer missingCount = namesMissing.get(nameType);\n if (missingCount > 1) {\n namesMissing.put(nameType, missingCount - 1);\n }\n else {\n namesMissing.remove(nameType);\n }\n }\n else {\n additionalNamesCount++;\n }\n }\n //grammar word\n else {\n String lowerCaseWord = word.toLowerCase();\n\n if (wordsNotMatched.contains(lowerCaseWord)) {\n wordsNotMatched.remove(lowerCaseWord);\n }\n else {\n additionalGrammarWordsCount++;\n }\n }\n }\n\n //if removing words from query is not allowed\n if (matchAllWords && !wordsNotMatched.isEmpty()) {\n return null;\n }\n\n int grammarWordsAltered = wordsNotMatched.size();\n int grammarWordsAdded = additionalGrammarWordsCount - grammarWordsAltered;\n\n return new Suggestion(linearization, false,\n additionalNamesCount, grammarWordsAdded, grammarWordsAltered);\n }", "private static void demonstrateListOperation(IndexWord word) throws JWNLException {\n PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1));\n System.out.println(\"Direct hypernyms of \\\"\" + word.getLemma() + \"\\\":\");\n for(int idx = 0; idx < hypernyms.size(); idx++){\n PointerTargetNode nn = (PointerTargetNode)hypernyms.get(idx);\n for(int wrdIdx = 0; wrdIdx < nn.getSynset().getWordsSize(); wrdIdx++){\n System.out.println(\"Syn\" + idx + \" of direct hypernyms of\\\"\" + word.getLemma() + \"\\\" : \" +\n nn.getSynset().getWord(wrdIdx).getLemma());\n }\n }\n hypernyms.print();\n }", "public Word (String word){\n this.word = word;\n count = 0;\n }", "public String getWord() {\n return word;\n }", "public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}", "public void trainModel(String input) {\n\n String[] words = input.split(\" \");\n String currentWord = \"\";\n\n for (int i = 0; i < words.length; i++) {\n\n if (i == 0 || words[i-1].contains(\".\")) {\n model.get(\"_begin\").add(words[i]);\n } else if (i == words.length - 1 || words[i].contains(\".\")) {\n model.get(\"_end\").add(words[i]);\n } else {\n model.putIfAbsent(currentWord, new ArrayList<String>());\n model.get(currentWord).add(words[i]);\n }\n\n currentWord = words[i];\n\n }\n }", "public String getCorrectionWord(String misspell);", "public void setCurrent_word(String current_word){\n\t\tthis.current_word = current_word;\n\t}", "private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }", "public Word getWord() {\n return word;\n }", "void setWordGuessed( String word )\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( entry.getLinkedWords().elementAt(i).equals(word) )\n\t\t\t{\n\t\t\t\twordGuessed[i] = true;\n\t\t\t\twPanel.showWord(i);\n\t\t\t}\n\t}", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "public String getWord() {\n\t\treturn word;\r\n\t}", "@Test\n\tpublic void testSetInvalidWordModel() throws Exception {\n\t\tdialog = getDialog();\n\t\tContainer container = dialog.getComponent();\n\n\t\t// set word model to an invalid model\n\t\tJTextField tf = (JTextField) findComponentByName(container, \"modelDefault\");\n\t\ttf.setText(\"DoesNotExist.sng\");\n\n\t\tpressButtonByText(dialog.getComponent(), \"Search\");\n\t\tString statusText = dialog.getStatusText();\n\t\tassertEquals(\"Select a valid model file (e.g., 'StringModel.sng') or leave blank.\",\n\t\t\tstatusText);\n\n\t\t// Setting the model file to blank (or spaces) indicates we don't want a model\n\t\t// file to be used and we don't care about filtering by high-confidence words.\n\t\ttf.setText(\" \");\n\n\t\tStringTableProvider provider = performSearch();\n\n\t\tToggleDockingAction showIsWordAction =\n\t\t\t(ToggleDockingAction) getInstanceField(\"showIsWordAction\", provider);\n\t\tassertNull(showIsWordAction);\n\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\twaitForTableModel(model);\n\n\t\t// There won't be an \"Is Word\" column because we don't have a valid model.\n\t\t// Also verify that \"Ascii\" column should be there.\n\t\tassertEquals(-1, model.findColumn(\"Is Word\"));\n\t\tassertEquals(4, model.findColumn(\"String View\"));\n\t}", "public void reset(Object o) {\n\t\tif (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tint start = word.getStartPosition();\n\t\t\tint end = word.getEndPosition();\n\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\tVector fws = Model.getIllocutionUnitRoots().getFunctionWords(word);\n\t\t\tVector cws = Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\tword);\n\t\t\tmarkedElements.removeElement(word);\n\t\t\tif (fws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < fws.size(); j++) {\n\t\t\t\t\tFunctionWord fw = (FunctionWord) fws.get(j);\n\t\t\t\t\tdesignFW(fw);\n\t\t\t\t}\n\t\t\t} else if (cws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < cws.size(); j++) {\n\t\t\t\t\tConstitutiveWord cw = (ConstitutiveWord) cws.get(j);\n\t\t\t\t\tdesignCW(cw);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\tint start = fword.getStartPosition();\n\t\t\tint end = fword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(fword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getFunctionWords(\n\t\t\t\t\t\tfword.getWord()).size() > 0)\n\t\t\t\t\tdesignFW(fword);\n\t\t\t}\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\teditor.setCaretPosition(cword.getEndPosition() + 1);\n\t\t\tint start = cword.getStartPosition();\n\t\t\tint end = cword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(cword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\t\tcword.getWord()).size() > 0)\n\t\t\t\t\tdesignCW(cword);\n\t\t\t}\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\tif (fw != null) {\n\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(fw);\n\t\t\t}\n\t\t\tif (cw != null) {\n\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(cw);\n\t\t\t}\n\t\t\tdesignMU(mu);\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tmarkedElements.remove(iu);\n\t\t\tdesignIU(iu);\n\t\t}\n\t\tdesignText(Model.getIllocutionUnitRoots());\n\t}", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public void scoreWord() {\n\t\t// check if valid word\n\t\tif (word.isWord(dictionary)) {\n\t\t\tscore += word.getScore();\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t\t// check if word still possible\n\t\t} else if (!word.isPossibleWord(dictionary)) {\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t}\n\n\t}", "private void addModifyButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addModifyButtonMouseClicked\n String inputWord = this.searchField.getText();\n String inputDefinition = this.getDefinitionTextArea().getText();\n WordDefinition wordToModifyAdd = new WordDefinition(inputWord, inputDefinition);\n \n // find the index of the matching tree\n char firstLetterOfWord = inputWord.toUpperCase().charAt(0);\n int index = -1;\n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetterOfWord)\n {\n index = i;\n i = lexiNodeTrees.size();\n }\n }\n \n // if index was not found, we have to create a new tree\n if(index == -1)\n {\n lexiNodeTrees.add(new LexiNode(firstLetterOfWord));\n index = lexiNodeTrees.size() - 1;\n \n // only possibility here is to add the word since the tree was just craeted\n if(!lexiNodeTrees.get(index).addWord( wordToModifyAdd ))\n {\n // if there was an error adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if add was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été ajouté!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n else // if index was found, we can modify/add the definition\n {\n if( !lexiNodeTrees.get(index).modifyWord( wordToModifyAdd ) )\n {\n System.out.println(\"hi\");\n // if there was an error modifying / adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if modification was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été modifié!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n // refresh the list\n refreshAllWordsList();\n }", "WordBean getWord(String word);", "@ZAttr(id=1073)\n public void unsetPrefSpellIgnoreWord() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPrefSpellIgnoreWord, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "public static void loadCharGerKeyWordToClassTable() {\n CharGerXMLTagNameToClassName.setProperty( \"Graph\", \"Graph\" );\n CharGerXMLTagNameToClassName.setProperty( \"Concept\", \"Concept\" );\n CharGerXMLTagNameToClassName.setProperty( \"Relation\", \"Relation\" );\n CharGerXMLTagNameToClassName.setProperty( \"Actor\", \"Actor\" );\n CharGerXMLTagNameToClassName.setProperty( \"TypeLabel\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"CGType\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"RelationLabel\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"CGRelType\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"Arrow\", \"Arrow\" );\n CharGerXMLTagNameToClassName.setProperty( \"GenSpecLink\", \"GenSpecLink\" );\n CharGerXMLTagNameToClassName.setProperty( \"Coref\", \"Coref\" );\n CharGerXMLTagNameToClassName.setProperty( \"Note\", \"Note\" );\n\n CharGerXMLTagNameToClassName.setProperty( \"graph\", \"Graph\" );\n CharGerXMLTagNameToClassName.setProperty( \"concept\", \"Concept\" );\n CharGerXMLTagNameToClassName.setProperty( \"relation\", \"Relation\" );\n CharGerXMLTagNameToClassName.setProperty( \"actor\", \"Actor\" );\n CharGerXMLTagNameToClassName.setProperty( \"typelabel\", \"TypeLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"relationlabel\", \"RelationLabel\" );\n CharGerXMLTagNameToClassName.setProperty( \"arrow\", \"Arrow\" );\n CharGerXMLTagNameToClassName.setProperty( \"genspeclink\", \"GenSpecLink\" );\n CharGerXMLTagNameToClassName.setProperty( \"coref\", \"Coref\" );\n CharGerXMLTagNameToClassName.setProperty( \"customedge\", \"CustomEdge\" );\n CharGerXMLTagNameToClassName.setProperty( \"note\", \"Note\" );\n }", "public Word(String defaultTranslation, String miwok, int musicid) {\n mDefaultTranslation = defaultTranslation;\n miwokTranslation = miwok;\n mmusic_id = musicid;\n }", "LWordConstant createLWordConstant();", "public void setPair(String key, String definition){\n\t\tpair = new Model(key, definition);\n\t}", "private void save_meaning_word() {\n\t\tif(this.dwd!=null && this.main_word!=null)\n\t\t{\n\n\n\t\t\tString meaning_word=\"\";\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.eng_word;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.hin_word;\n\t\t\t}\n\n\t\t\tDictCommon.SaveWord(meaning_word,!isHindi);\n\t\t\tToast.makeText(view.getContext(), \"word \"+meaning_word+\" successfully saved!!!\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public Builder setWord(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n word_ = value;\n onChanged();\n return this;\n }", "public void trainDocTopicModel(Vector original, Vector labels, Matrix docTopicModel, boolean inf) {\n List<Integer> terms = new ArrayList<Integer>();\n Iterator<Vector.Element> docElementIter = original.iterateNonZero();\n //long getIterTime=System.currentTimeMillis();\n double docTermCount = 0.0;\n while (docElementIter.hasNext()) {\n Vector.Element element = docElementIter.next();\n terms.add(element.index());\n docTermCount += element.get();\n }\n //long midTime=System.currentTimeMillis();\n List<Integer> topicLabels = new ArrayList<Integer>();\n Iterator<Vector.Element> labelIter = labels.iterateNonZero();\n while (labelIter.hasNext()) {\n Vector.Element e = labelIter.next();\n topicLabels.add(e.index());\n }\n //long t1 = System.currentTimeMillis();\n //log.info(\"get List use {} ms ,with terms' size of {} and doc size of {},get term list use {} ms,get termIter use time {} \",new Object[]{(t1-preTime),terms.size(),original.size(),(midTime-preTime),(getIterTime-preTime)});\n //log.info(\"docTopicModel columns' length is {} \",docTopicModel.columnSize());\n pTopicGivenTerm(terms, topicLabels, docTopicModel);\n //long t2 = System.currentTimeMillis();\n //log.info(\"pTopic use {} ms with terms' size {}\", new Object[]{(t2 - t1),terms.size()});\n normByTopicAndMultiByCount(original, terms, docTopicModel);\n //long t3 = System.currentTimeMillis();\n //log.info(\"normalize use {} ms with terms' size {}\", new Object[]{(t3 - t2),terms.size()});\n // now multiply, term-by-term, by the document, to get the weighted distribution of\n // term-topic pairs from this document.\n\n // now recalculate \\(p(topic|doc)\\) by summing contributions from all of pTopicGivenTerm\n if (inf) {\n for (Vector.Element topic : labels) {\n labels.set(topic.index(), (docTopicModel.viewRow(topic.index()).norm(1) + alpha) / (docTermCount + numTerms * alpha));\n }\n // now renormalize so that \\(sum_x(p(x|doc))\\) = 1\n labels.assign(Functions.mult(1 / labels.norm(1)));\n //log.info(\"set topics use {} \" + (System.currentTimeMillis() - t3));\n }\n //log.info(\"after train: \"+ topics.toString());\n }", "public String getWord()\n\t{\n\t\treturn word;\n\t}", "public void setWordSearched(String wordSearched){\r\n this.wordSearched = wordSearched;\r\n setWordSearchedLower(wordSearched);\r\n }", "private void setMu2(MeaningUnit mu) {\n\t\t// falls die MU aus CW und FW besteht\n\t\tif (mu.getFunctionWord() != null) {\n\t\t\tmodel.getSGCreatingMenu().setMU2(mu.getFunctionWord() + \" \" + mu.getConstitutiveWord());\n\t\t}\n\t\t// falls die MU nur aus CW besteht\n\t\telse {\n\t\t\tmodel.getSGCreatingMenu().setMU2(mu.getConstitutiveWord().toString());\n\t\t}\n\t\tmodel.getView().design(mu, true);\n\t\tmu2 = mu;\t\t\t\t\t\t\t\t\n\t}", "public NormalSwear(String word) {\n this.word = word;\n }", "public interface PocketWordConstants {\n /** File extension for Pocket Word files. */\n public static final String FILE_EXTENSION = \".psw\";\n \n /** Name of the default style. */\n public static final String DEFAULT_STYLE = \"Standard\";\n \n /** Family name for Paragraph styles. */\n public static final String PARAGRAPH_STYLE_FAMILY = \"paragraph\";\n \n /** Family name for Text styles. */\n public static final String TEXT_STYLE_FAMILY = \"text\";\n \n \n /** \n * Generic Pocket Word formatting code. \n *\n * Formatting codes are 0xEz, where z indicates the specific format code.\n */\n public static final byte FORMATTING_TAG = (byte)0xE0;\n \n /** Font specification tag. The two bytes following inidicate which font. */\n public static final byte FONT_TAG = (byte)0xE5;\n \n /** Font size tag. The two bytes following specify font size in points. */\n public static final byte FONT_SIZE_TAG = (byte)0xE6;\n \n /** Colour tag. Two bytes following index a 4-bit colour table. */\n public static final byte COLOUR_TAG = (byte)0xE7;\n \n /** Font weight tag. Two bytes following indicate weighting of font. */\n public static final byte FONT_WEIGHT_TAG = (byte)0xE8;\n \n /** Normal font weight value. */\n public static final byte FONT_WEIGHT_NORMAL = (byte)0x04;\n \n /** Fine font weight value. */\n public static final byte FONT_WEIGHT_FINE = (byte)0x01;\n \n /** Bold font weight value. */\n public static final byte FONT_WEIGHT_BOLD = (byte)0x07;\n \n /** Thick font weight value. */\n public static final byte FONT_WEIGHT_THICK = (byte)0x09;\n\n /** Italic tag. Single byte following indicates whether italic is on. */\n public static final byte ITALIC_TAG = (byte)0xE9;\n \n /** Underline tag. Single byte following indicates whether underline is on. */\n public static final byte UNDERLINE_TAG = (byte)0xEA;\n \n /** Strikethrough tag. Single byte following indicates whether strikethrough is on. */\n public static final byte STRIKETHROUGH_TAG = (byte)0XEB;\n \n /** Highlighting tag. Single byte following indicates whether highlighting is on. */\n public static final byte HIGHLIGHT_TAG = (byte)0xEC;\n \n}", "public void setSummary(String summary){\n\t String text = this.text;\n\t String s = \"\";\n // The ontology file format is described here:\n // https://trac.nbic.nl/data-mining/wiki/ErasmusMC%20ontology%20file%20format\n //final String ontologyPath = \"C:/Users/Nasko/Desktop/School/Project/semweb-peregrine.txt\"; // EDIT HERE\n\t final String ontologyPath = System.getProperty(\"user.home\") + \"/peregrine/\" + vocab + \"-peregrine.txt\";\n final Ontology ontology = new SingleFileOntologyImpl(ontologyPath);\n\n //final String propertiesDirectory = \"C:/Users/Nasko/Desktop/School/Project/lvg2006lite/data/config/\"; // EDIT HERE\n final String propertiesDirectory = System.getProperty(\"user.home\") + \"/peregrine/lvg2006lite/data/config/\";\n final Peregrine peregrine = createPeregrine(ontology, propertiesDirectory + \"lvg.properties\");\n //final String text = \"This is a simple sentence with labels like earley, bielefeld, task model ontology, etc. \" +\n // \"and immunoglobulin production, elsevier, Christian Morbidoni, Austria, Swingly, many terms like r2rml.\";\n final List<IndexingResult> indexingResults = peregrine.indexAndDisambiguate(text, Language.EN);\n\n //System.out.println(\"Number of indexing results found: \" + indexingResults.size() + \".\");\n this.summary = \"\";\n for (final IndexingResult indexingResult : indexingResults) {\n final Serializable conceptId = indexingResult.getTermId().getConceptId();\n //System.out.println();\n //System.out.println(\"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n // + text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1) + \"\\\".\");\n String matchedText = text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1);\n \n /* \n * Get the Term context - but lock it within a sentance.\n */\n String termContext = \"\";\n int cStart;\n int cEnd;\n //Get Start position of \"context\" text\n if(indexingResult.getStartPos()-15 <= indexingResult.getSentenceStartPos()) cStart = indexingResult.getSentenceStartPos();\n else {\n \t int cS = indexingResult.getStartPos()-15;\n \t cStart = indexingResult.getStartPos() - (15-text.substring(cS, indexingResult.getStartPos() + 1).indexOf(\" \")) + 1;\n }\n \n //Get End position of \"context\" text\n if(indexingResult.getEndPos()+15 >= indexingResult.getSentenceEndPos()) cEnd = indexingResult.getSentenceEndPos();\n else {\n \t int cE = indexingResult.getEndPos()+15;\n \t cEnd = indexingResult.getEndPos() + text.substring(indexingResult.getEndPos(), cE).lastIndexOf(\" \") + 1; \n }\n \n termContext = text.substring(cStart, cEnd).trim();\n /*String[] toTrim = text.substring(cStart, cEnd + 1).split(\" \");\n String[] trimmed = Arrays.copyOfRange(toTrim, 1, toTrim.length-1);\n termContext = StringUtils.join(trimmed, \" \");*/\n \n s = \"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n + matchedText + \"\\\".\";\n final Concept concept = ontology.getConcept(conceptId);\n final String preferredLabelText = LabelTypeComparator.getPreferredLabel(concept.getLabels()).getText();\n //System.out.println(\" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\");\n s += \" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\";\n this.summary += s + Math.random()*10;\n TaggedTerm t = new TaggedTerm();\n t.setMatchedText(matchedText);\n t.setPrefLabel(preferredLabelText);\n \n \n //Set the label\n String definition = \"\";\n String hierarchy = \"\";\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|DEFINITION|\")){\n \t\t definition = d.getText().replace(\"|DEFINITION|\", \"\");\n \t\t break;\n \t }\n }\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|HIERARCHY|\")){\n \t\t if(!hierarchy.equals(\"\")) hierarchy += \";;\" + d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t else hierarchy += d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t break;\n \t }\n }\n \n \n \n \n \n t.setDefinition(definition);\n t.setHierarchy(hierarchy);\n t.setTermContext(termContext);\n this.taggedTerms.add(t);\n definition = \"\";\n hierarchy = \"\";\n }\n }", "private void startWord(Attributes attributes) {\n\t\tinWord = true;\n\t\tcontentsField.addPropertyValue(\"hw\", attributes.getValue(\"l\"));\n\t\tcontentsField.addPropertyValue(\"pos\", attributes.getValue(\"p\"));\n\t\tcontentsField.addStartChar(getContentPosition());\n\t}", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "public void addWord(Word word);", "@Override\r\n\tprotected Keywords getNewObject() {\n\t\treturn null;\r\n\t}", "@FXML\r\n private void initialize(){\r\n word.setText(\"\");\r\n result.setText(\"0\");\r\n }", "public void edit_word(String word, String definition){\n\t\tLexiNode node = search_specific_word(word, -1);\n\t\tif(node == null)\n\t\t\tadd_word(word, definition);\n\t\telse\n\t\t\tsearch_specific_word(word, -1).setDefinition(definition);\n\t}", "public Word(String word) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\t\t\n\t\tkey = word;\n\t\tdefinition = \"\";\n\t}", "java.lang.String getSemanticLangidModelName();", "protected MergeSpellingData()\r\n\t{\r\n\t}", "@Override\n\tpublic void setTraining(String text) {\n\t\tmyWords = text.split(\"\\\\s+\");\n\t\tmyMap = new HashMap<String , ArrayList<String>>();\n\t\t\n\t\tfor (int i = 0; i <= myWords.length-myOrder; i++)\n\t\t{\n\t\t\tWordGram key = new WordGram(myWords, i, myOrder);\n\t\t\tif (!myMap.containsKey(key))\n\t\t\t{\n\t\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\tlist.add(myWords[i+myOrder]);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.add(PSEUDO_EOS);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(myWords[i+myOrder]);\n\t\t\t\t} else {\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(PSEUDO_EOS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void searchSuggestionListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchSuggestionListMouseClicked\n String selectedWord = this.getSearchSuggestionList().getSelectedValue();\n \n // find the definiiton of the word\n for(int i = 0 ; i < queryResult.size() ; i++)\n {\n if(queryResult.get(i).getWord().equals(selectedWord))\n {\n String definition = queryResult.get(i).getDefinition();\n definitionTextArea.setText(definition);\n i = queryResult.size();\n }\n }\n \n // select the same word in the all word list \n ListModel<String> modelList = getAllWordsList().getModel();\n \n for(int i = 0 ; i < modelList.getSize() ; i++)\n {\n if(modelList.getElementAt(i).equals(selectedWord))\n {\n getAllWordsList().setSelectedIndex(i);\n i = modelList.getSize();\n }\n }\n }", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "public void setWordNumber(int wordNumber){\r\n\t\tthis.wordNumber = wordNumber;\r\n\t}", "boolean putWord(WordBean wordBean);", "private static void setWordPosition() {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tint position = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString w = (String) i.next();\n\t\t\tInteger rows[] = new Integer[2];\n\t\t\trows[0] = new Integer(position); /* word position */\n\t\t\trows[1] = (Integer) Utility.vocabHM.get(w); /* df */\n\n\t\t\tUtility.vocabHM.put(w, rows);\n\t\t\tposition++;\n\t\t}\n\t}", "public void nextWordNr(Integer number, String word)\r\n {\n if ( ! this.stopWords.containsKey(number) )\r\n {\r\n // add word to my own mapping\r\n this.wordNrMap.put(number, word);\r\n // get neighbours of word\r\n Set neighbours = this.connection.getSatzKollokationen(number, this.MIN_SIGNIFIKANZ, this.MIN_WORDNUM, this.MAX_KOLLOK);\r\n // add all neighbours to wordNrmapping\r\n addMapping(neighbours);\r\n // add node with neighbours to ActivationGraph\r\n this.graph.addNode(number, neighbours);\r\n // call timeStep-activation on that word\r\n this.graph.activate(number, 1.0, 0, true);\r\n // call pruning of graph to keep it small\r\n //this.graph.pruneGraph();\r\n }\r\n //System.out.println(\"Graph looks now like this: \"+graph);\r\n }", "private void setNameAutomatic(){\n\t}", "@Override\n public Builder useUnknown(boolean reallyUse) {\n super.useUnknown(reallyUse);\n if (this.unknownElement == null) {\n this.unknownElement(new VocabWord(1.0, Word2Vec.DEFAULT_UNK));\n }\n return this;\n }", "public void setCorrection(String word) throws IOException {\n writeWord(word);\n }", "private static HashMap<String, Integer> generateWordIndex()\n\t{\n\t\tHashMap<String, Integer> wordIndex = new HashMap<String, Integer>();\n\t\tint currIndex = 0;\n\t\tStringBuffer combinedHeaders;\n\t\tfor (MP mp : Capone.getInstance().getParliament().getMPList())\n\t\t{\n\t\t\tfor (Speech sp : mp.returnSpeeches())\n\t\t\t{\n\t\t\t\tcombinedHeaders = new StringBuffer();\n\t\t\t\tcombinedHeaders.append(sp.getHeader1());\n\t\t\t\tcombinedHeaders.append(sp.getHeader2());\n\t\t\t\tfor (String str : combinedHeaders.toString().split(\" \"))\n\t\t\t\t{\n\t\t\t\t\tif (!wordIndex.containsKey(str))\n\t\t\t\t\t{\n\t\t\t\t\t\twordIndex.put(str, currIndex);\n\t\t\t\t\t\tcurrIndex++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn wordIndex;\n\t}", "private static void demo_WordNetOps() throws Exception {\n\n RoWordNet r1, r2, result;\n Synset s;\n Timer timer = new Timer();\n String time = \"\";\n\n IO.outln(\"Creating two RoWN objects R1 and R2\");\n timer.start();\n r1 = new RoWordNet();\n r2 = new RoWordNet();\n\n // adding synsets to O1\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r1.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L2\"))));\n r1.addSynset(s, false); // adding synset S2 to O1;\n\n // adding synsets to O2\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r2.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L4\"))));\n r2.addSynset(s, false); // adding synset S2 to O2, but with literal L4\n // not L2;\n\n s = new Synset();\n s.setId(\"S3\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L3\"))));\n r2.addSynset(s, false); // adding synset S3 to O2;\n time = timer.mark();\n\n // print current objects\n IO.outln(\"\\n Object R1:\");\n for (Synset syn : r1.synsets) {\n IO.outln(syn.toString());\n }\n\n IO.outln(\"\\n Object R2:\");\n for (Synset syn : r2.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // DIFFERENCE\n IO.outln(\"\\nOperation DIFFERENCE(R1,R2) (different synsets in R1 and R2 having the same id):\");\n timer.start();\n String[] diff = Operation.diff(r1, r2);\n time = timer.mark();\n\n for (String id : diff) {\n IO.outln(\"Different synset having the same id in both RoWN objects: \" + id);\n }\n\n IO.outln(\"Done: \" + time);\n\n // UNION\n IO.outln(\"\\nOperation UNION(R1,R2):\");\n timer.start();\n try {\n result = new RoWordNet(r1);// we copy-construct the result object\n // after r1 because the union and merge\n // methods work in-place directly on the\n // first parameter of the methods\n result = Operation.union(result, r2);\n IO.outln(\" Union object:\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n } catch (Exception ex) {\n IO.outln(\"Union operation failed (as it should, as synset S2 is in both objects but has a different literal and are thus two different synsets having the same id that cannot reside in a single RoWN object). \\nException message: \" + ex\n .getMessage());\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // MERGE\n IO.outln(\"\\nOperation MERGE(R1,R2):\");\n\n result = new RoWordNet(r1);\n timer.start();\n result = Operation.merge(result, r2);\n time = timer.mark();\n\n IO.outln(\" Merged object (R2 overwritten on R1):\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // COMPLEMENT\n IO.outln(\"\\nOperation COMPLEMENT(R2,R1) (compares only synset ids):\");\n timer.start();\n String[] complement = Operation.complement(r2, r1);\n time = timer.mark();\n IO.outln(\" Complement ids:\");\n for (String id : complement) {\n IO.outln(\"Synset that is in R2 but not in R1: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // INTERSECTION\n IO.outln(\"\\nOperation INTERSECTION(R1,R2) (fully compares synsets):\");\n timer.start();\n String[] intersection = Operation.intersection(r1, r2);\n time = timer.mark();\n IO.outln(\" Intersection ids:\");\n for (String id : intersection) {\n IO.outln(\"Equal synset in both R1 and R2: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // IO.outln(((Synset) r1.getSynsetById(\"S1\")).equals((Synset)\n // r2.getSynsetById(\"S1\")));\n\n }", "private void initialiseWordsToSpell(){\n\t\t//normal quiz\n\t\tif(quiz_type==PanelID.Quiz){\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Quiz);\n\t\t} else { //review quiz\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Review);\n\t\t}\t\n\t}", "@Override\n public int getNumberOfWords() {\n return 0;\n }", "public ArrayGameModel(String guessWord) {\n\t\t// TODO (1)\n\t\tsolution = guessWord;\n\t\twGuessState = new char[guessWord.length()];\n\t\tfor (int i = 0; i < wGuessState.length; i++){\n\t\t\twGuessState[i] = '_';\n\t\t}\n\t}", "@ZAttr(id=1073)\n public void addPrefSpellIgnoreWord(String zimbraPrefSpellIgnoreWord) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n StringUtil.addToMultiMap(attrs, \"+\" + Provisioning.A_zimbraPrefSpellIgnoreWord, zimbraPrefSpellIgnoreWord);\n getProvisioning().modifyAttrs(this, attrs);\n }", "int insertSelective(WdWordDict record);", "void extend(SpellCheckWord scWord)\n\t{\n\t\tif(!scWord.word.equals(\"\\n\\n\"))\n\t\t\tsuper.append(scWord.word + \" \");\n\t\telse\n\t\t\tsuper.append(scWord.word);\n\n\t\tcontentPairs.add(scWord);\n\t}", "void highlightNextWord() {\n\t\tif(findIndex < finder.size()) {\n\t\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\t\ttry {\n\t\t\t\thighlighter.addHighlight(finder.get(findIndex).p1, \n\t\t\t\t\t\tfinder.get(findIndex).p2-1, painter);\n\t\t\t} catch (BadLocationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfindIndex++;\n\t\t}\n\t\telse {\n\t\t\tfindIndex = 0;\n\t\t}\n\t}", "public MMExptTupleMatcher() {\n this.conceptMatcher = new kb.matching.SynonymConceptMatcher();\n // Need to set synonyms right here\n }", "public DocumentWordPosition() {}", "@Override\n public void processNextSentence(Sentence target) {\n String[] tokens = target.getTokens();\n\n //Create hash of alignments word->frequency:\n HashMap<String, Integer> counts = new HashMap<>();\n\n //Get word counts:\n for (String token : tokens) {\n if (counts.get(token) == null) {\n counts.put(token, 1);\n } else {\n counts.put(token, counts.get(token) + 1);\n }\n }\n\n //Add resource to sentence:\n target.setValue(\"wordcounts\", counts);\n }", "public Word(final String word1, final String level1,\n final String hint11, final String hint21) {\n\n\n this.word = word1;\n this.level = level1;\n this.hint1 = hint11;\n this.hint2 = hint21;\n }", "public static void main(String[] args) {\n\t\tUtility.dirPath = \"C:\\\\Users\\\\imSlappy\\\\workspace\\\\FeelingAnalysis\\\\Documents\\\\2_group_eng\";\n\t\tString sub[] = {\"dup\",\"bug\"};\n\t\tUtility.classLabel = sub;\n\t\tUtility.numdoc = 350;\n\t\tSetClassPath.read_path(Utility.dirPath);\n\t\tUtility.language = \"en\";\n\t\t\n\t\tUtility.stopWordHSEN = Fileprocess.FileHashSet(\"data/stopwordAndSpc_eng.txt\");\n\t\tUtility.dicen = new _dictionary();\n\t\tUtility.dicen.getDictionary(\"data/dicEngScore.txt\");\n\t\t\n\t\tUtility.vocabHM = new HashMap();\n\t\t// ================= completed initial main Program ==========================\n\n\t\tMainExampleNaive ob = new MainExampleNaive();\n\t\t\n\t\t// --------------------- Pre-process -----------------------\n\t\tob.word_arr = new HashSet [Utility.listFile.length][];\n\t\tob.wordSet = new ArrayList<String>();\n\t\tfor (int i = 0; i < Utility.listFile.length; i++) {\n\t\t\tob.word_arr[i]=new HashSet[Utility.listFile[i].length];\n\t\t\tfor (int j = 0; j < Utility.listFile[i].length; j++) {\n\t\t\t\tStringBuffer strDoc = Fileprocess.readFile(Utility.listFile[i][j]);\n\t\t\t\tob.word_arr[i][j]=ob.docTokenization(new String(strDoc));\n\t\t\t}\n\t\t\tob.checkBound(3, 10000);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"++ Total : \"+Utility.vocabHM.size()+\" words\");\n\t\tSystem.out.println(\"++ \"+Utility.vocabHM);\n\t\t\n\t\t// ---------------------- Selection ------------------------\n//\t\tInformationGain ig = new InformationGain(ob.word_arr.length*ob.word_arr[0].length , ob.wordSet,ob.word_arr);\n//\t\tArrayList<String> ban_word = ig.featureSelection(0.0); // selected out with IG = 0\n//\t\t//ob.banFeature(ban_word);\n//\t\tSystem.out.println(\"ban list[\"+ban_word.size()+\"] : \"+ban_word);\n//\t\t\n//\t\tSystem.out.println(\"-- After \"+Utility.vocabHM.size());\n//\t\tSystem.out.println(\"-- \"+Utility.vocabHM);\n\t\t\n\t\tob.setWordPosition();\n\t\t// ---------------------- Processing -----------------------\n\t\tNaiveBayes naive = new NaiveBayes();\n\t\tnaive.naiveTrain(true);\n\t\t\n\t\tint result = naive.naiveUsage(\"after cold reset of my pc (crash of xp) the favorites of firefox are destroyed and all settings are standard again! Where are firefox-favorites stored and the settings ? how to backup them rgularely? All other software on my pc still works properly ! even INternetExplorer\");\n\t\tSystem.out.println(\"\\nResult : \"+Utility.classLabel[result]);\n\t}", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) { }", "public String StemWordWithWordNet ( String word )\n {\n if ( !IsInitialized )\n return word;\n if ( word == null ) return null;\n if ( morph == null ) morph = dic.getMorphologicalProcessor();\n\n IndexWord w;\n try\n {\n w = morph.lookupBaseForm( POS.VERB, word );\n if ( w != null )\n return w.getLemma().toString ();\n w = morph.lookupBaseForm( POS.NOUN, word );\n if ( w != null )\n return w.getLemma().toString();\n w = morph.lookupBaseForm( POS.ADJECTIVE, word );\n if ( w != null )\n return w.getLemma().toString();\n w = morph.lookupBaseForm( POS.ADVERB, word );\n if ( w != null )\n return w.getLemma().toString();\n }\n catch ( JWNLException e )\n {\n }\n return null;\n }", "public void SaveWord(String phrase) {\n\tOrdBok.SaveWord(phrase, 30);\r\n }", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void design(Object o, boolean overwrite) {\n\t\t/*if (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tif (!markedElements.contains(word)) {\n\t\t\t\tmarkedElements.add(word);\n\t\t\t\tint start = word.getStartPosition();\n\t\t\t\tint end = word.getEndPosition();\n\t\t\t\t\n\t\t\t\tString temp = \"\";\n\t\t\t\ttry {\n\t\t\t\t\ttemp = doc.getText(0, end);\n\t\t\t\t} catch (BadLocationException 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\tint len = temp.split(\"\\n\\n\").length - 1;\n\t\t\t\tSystem.out.println(len);\n\t\t\t\t\n\t\t\t\tdoc.setCharacterAttributes(start - 1 , word.getContent().length() +1 , MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(word);\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\tif (!markedElements.contains(cword.getWord())\n\t\t\t\t\t&& !markedElements.contains(cword)) {\n\t\t\t\tmarkedElements.add(cword);\n\t\t\t\tint start = cword.getStartPosition();\n\t\t\t\tint end = cword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(cword);\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\tif (!markedElements.contains(fword.getWord())\n\t\t\t\t\t&& !markedElements.contains(fword)) {\n\t\t\t\tmarkedElements.add(fword);\n\t\t\t\tint start = fword.getStartPosition();\n\t\t\t\tint end = fword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, MARKEDSTYLE,\n\t\t\t\t\t\toverwrite);\n\t\t\t} else\n\t\t\t\treset(fword);\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\ttry {\n\t\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\t\tif (mu.getFunctionWord() != null) {\n\t\t\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\t\t\tif (!markedElements.contains(fw.getWord())) {\n\t\t\t\t\t\tmarkedElements.add(fw);\n\t\t\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t\t} else\n\t\t\t\t\t\treset(fw);\n\t\t\t\t}\n\t\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\t\tif (!markedElements.contains(cw.getWord())) {\n\t\t\t\t\tmarkedElements.add(cw);\n\t\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t} else\n\t\t\t\t\treset(cw);\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// e.printStackTrace();\n\t\t\t}\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tif (!markedElements.contains(iu)) {\n\t\t\t\tmarkedElements.add(iu);\n\t\t\t\tfor (int i = 0; i < iu.getTokens().size(); i++) {\n\t\t\t\t\tToken token = (Token) iu.getTokens().get(i);\n\t\t\t\t\tint start = token.getStartPosition();\n\t\t\t\t\tint end = token.getEndPosition();\n\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1,\n\t\t\t\t\t\t\tMARKEDSTYLE, overwrite);\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\treset(iu);\n\t\t}*/\n\t}", "void addWordToDoc(int doc,VocabWord word);" ]
[ "0.6300588", "0.59213936", "0.5858579", "0.57949376", "0.57557154", "0.5722937", "0.56384146", "0.55945504", "0.54954576", "0.548705", "0.54493755", "0.5424506", "0.54053116", "0.54049784", "0.53723055", "0.53722185", "0.5338966", "0.53243333", "0.5315161", "0.5309633", "0.53092474", "0.5299267", "0.5286728", "0.52649814", "0.52634656", "0.52276254", "0.5197751", "0.5170942", "0.5169514", "0.51370823", "0.5111615", "0.51075274", "0.50964487", "0.5092802", "0.50901663", "0.5079812", "0.5067593", "0.5060451", "0.5057537", "0.5050004", "0.5045457", "0.50367427", "0.5034865", "0.5028813", "0.5028517", "0.50158924", "0.5014945", "0.50114286", "0.501074", "0.5008709", "0.4994734", "0.49944383", "0.49844953", "0.49713916", "0.49675125", "0.49672055", "0.49648014", "0.49561638", "0.4954826", "0.49523973", "0.4941473", "0.49325302", "0.49281278", "0.4926094", "0.492579", "0.49142793", "0.49137762", "0.49122527", "0.49099633", "0.49090943", "0.4904063", "0.4901765", "0.489989", "0.48964718", "0.4896104", "0.4895651", "0.48882598", "0.4887238", "0.48869243", "0.4884605", "0.4881631", "0.4866522", "0.4862757", "0.48612386", "0.48530632", "0.48506343", "0.48460102", "0.48436245", "0.48354954", "0.48303768", "0.48295966", "0.48178124", "0.48148397", "0.48119175", "0.4809571", "0.48094517", "0.4809116", "0.48078415", "0.48049572", "0.48014736", "0.47998446" ]
0.0
-1
initial N/V stress state, read from file in main method
public StressChange(long seed) { super(seed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};\n\t\triu = null;\n\t\t\n\t\twhile(true){\n\t\t\tfor(double alpha : av){\n\t\t\t\tparams.set(\"Status\", \"Intializing\");\n\t\t\t\tparams.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tp2.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tJob.animate();\n\t\t\t\tmodel = new ofc2Dfast(p2);\n\t\t\t\tmodel.setClength(tsim);\n\t\t\t\t// read in stress from file\n\t\t\t\triu = new ReadInUtil(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\");\n\t\t\t\tmodel.setStress(riu.getData(0));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// simulate <i>tsim</i> time steps\n\t\t\t\tfor(int tt = 0 ; tt < tsim ; tt++){\n\t\t\t\t\tmodel.evolve(tt, false);\n\t\t\t\t\tif(tt%1000 == 0){\n\t\t\t\t\t\tparams.set(\"Status\",tt);\n\t\t\t\t\t\tJob.animate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// append data to data file\n\t\t\t\tmodel.appendCdata(model.getOutdir()+File.separator+model.getBname()+\"_Catalogue_\"+(int)(100*alpha)+\".txt\",tsim);\n\t\t\n\t\t\t\t// replace old stress file with new stress file\n\t\t\t\tPrintUtil.overwriteFile(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\",model.getStress());\n\t\t\t\t\n\t\t\t\t// print summary of events in log file\n\t\t\t\teditLogFile(tsim, alpha);\n\t\t\t\t\n\t\t\t\t// update seed\n\t\t\t\tp2.set(\"Random Seed\", p2.iget(\"Random Seed\")+1);\n\t\t\t}\n\t\t}\n\t}", "private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void set_running() {\n this.cur_state = State.RUNNING;\n try (Scanner randGen = new Scanner(new File(\"random-numbers.txt\"))){\n if(burst_time == 0) {\n \tif(randInts.size() == 0) { \t \n while(randGen.hasNext()) {\n randInts.add(randGen.nextInt());\n }\n }\n }\n int rand_val = randInts.remove(0);\n burst_time = (rand_val % rbound) + 1;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setProblem() throws IOException, InvalidInputException{\r\n String finalInputFileName;\r\n if(scale){\r\n finalInputFileName = inputFileName + \".scaled\";\r\n }\r\n else{\r\n finalInputFileName = inputFileName;\r\n }\r\n \r\n // Read data from the input file\r\n BufferedReader reader = new BufferedReader(new FileReader(finalInputFileName));\r\n if(reader.toString().length() == 0){\r\n throw new InvalidInputException(\"Invalid input file! File is empty!\");\r\n }\r\n\r\n // Prepare holders for dataset D=(X,y)\r\n Vector<svm_node[]> X = new Vector<svm_node[]>();\r\n Vector<Double> y = new Vector<Double>();\r\n int maxIndex = 0;\r\n\r\n // Load data from file to holders\r\n while(true){\r\n String line = reader.readLine();\r\n\r\n if(line == null){\r\n break;\r\n }\r\n\r\n StringTokenizer st = new StringTokenizer(line,\" \\t\\n\\r\\f:\");\r\n\r\n y.addElement(Utils.toDouble(st.nextToken()));\r\n int m = st.countTokens()/2;\r\n svm_node[] x = new svm_node[m];\r\n for(int i = 0; i < m; i++) {\r\n x[i] = new svm_node();\r\n x[i].index = Utils.toInt(st.nextToken());\r\n x[i].value = Utils.toDouble(st.nextToken());\r\n }\r\n if(m > 0){\r\n maxIndex = Math.max(maxIndex, x[m-1].index);\r\n }\r\n X.addElement(x);\r\n }\r\n\r\n this.problem = new svm_problem();\r\n this.problem.l = y.size();\r\n this.inputDime = maxIndex + 1;\r\n\r\n // Wrap up multi-dimensional input vector X\r\n this.problem.x = new svm_node[this.problem.l][];\r\n for(int i=0;i<this.problem.l;i++)\r\n this.problem.x[i] = X.elementAt(i);\r\n\r\n // Wrap up 1-dimensional input vector y\r\n this.problem.y = new double[this.problem.l];\r\n for(int i=0;i<this.problem.l;i++)\r\n this.problem.y[i] = y.elementAt(i);\r\n \r\n////////////////////???\r\n // Verify the gamma setting according to the maxIndex\r\n if(param.gamma == 0 && maxIndex > 0)\r\n param.gamma = 1.0/maxIndex;\r\n\r\n // Dealing with pre-computed kernel\r\n if(param.kernel_type == svm_parameter.PRECOMPUTED){\r\n for(int i = 0; i < this.problem.l; i++) {\r\n if (this.problem.x[i][0].index != 0) {\r\n String msg = \"Invalid kernel matrix! First column must be 0:sample_serial_number.\";\r\n throw new InvalidInputException(msg);\r\n }\r\n if ((int)this.problem.x[i][0].value <= 0 || (int)this.problem.x[i][0].value > maxIndex){\r\n String msg = \"Invalid kernel matrix! Sample_serial_number out of range.\";\r\n throw new InvalidInputException(msg);\r\n }\r\n }\r\n }\r\n\r\n reader.close();\r\n }", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "void materialiseSparseProfile() throws IOException, InterruptedException;", "public static void readFileSilver(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[3];\n firstLineArray = firstLine.split(\" \");\n\n //Determines number of rows, cows, and time.\n N = Integer.parseInt(firstLineArray[0]);\n M = Integer.parseInt(firstLineArray[1]);\n T = Integer.parseInt(firstLineArray[2]);\n\n //Initializes pasture. Assume 0 for empty space, -1 for a tree.\n String temp = \"\";\n pasture = new int[N][M];\n inf.nextLine();\n\n for (int i = 0; i < N; i++){\n temp = inf.next();\n\n for (int j = 0; j < M; j++){\n if (temp.charAt(j) == '.'){\n pasture[i][j] = 0;\n }\n if (temp.charAt(j) == '*'){\n pasture[i][j] = -1;\n }\n }\n }\n\n //Determines (R1, C1) and (R2, C2).\n inf.nextLine();\n R1 = inf.nextInt(); C1 = inf.nextInt();\n R2 = inf.nextInt(); C2 = inf.nextInt();\n\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }", "abstract void initialize(boolean fromFile,int r,int c);", "public SudokuState(File in){\r\n if(in == null)\r\n throw new NullPointerException();\r\n\r\n G = new Sudoku(in);\r\n\r\n if(G.value() == 0)\r\n //solution case\r\n value = 999;\r\n else\r\n value = (lvl * 10) + (10 - G.value());\r\n }", "public static void readCVS(String filename){\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n while((line=reader.readLine())!=null){\n String item[] = line.split(\",\");\n String name = item[0];\n String value = item[1];\n switch (name){\n case \"useMaxTick\":{\n if(value.toLowerCase().equals(\"true\")){\n Params.useMaxTick = true;\n }else{\n Params.useMaxTick = false;\n }\n break;\n }\n case \"maxTick\":{\n Params.maxTick = Integer.parseInt(value);\n break;\n }\n case \"startPctWhites\":{\n Params.startPctWhites = Float.parseFloat(value);\n break;\n }\n case \"startPctBlacks\":{\n Params.startPctBlacks = Float.parseFloat(value);\n break;\n }\n case \"startPctGreys\":{\n Params.startPctGreys = Float.parseFloat(value);\n break;\n }\n case \"albedoOfWhites\":{\n Params.albedoOfWhites = Float.parseFloat(value);\n break;\n }\n case \"albedoOfBlacks\":{\n Params.albedoOfBlacks = Float.parseFloat(value);\n break;\n }\n case \"albedoOfGreys\":{\n Params.albedoOfGreys = Float.parseFloat(value);\n break;\n }\n case \"solarLuminosity\":{\n Params.solarLuminosity = Float.parseFloat(value);\n break;\n }\n case \"albedoOfSurface\":{\n Params.albedoOfSurface = Float.parseFloat(value);\n break;\n }\n case \"diffusePct\":{\n Params.diffusePct = Float.parseFloat(value);\n break;\n }\n case \"maxAge\":{\n Params.maxAge = Integer.parseInt(value);\n break;\n }\n case \"scenario\":{\n switch (Integer.parseInt(value)){\n case 0: {\n Params.scenario = Scenario.RAMP;\n break;\n }\n case 1: {\n Params.scenario = Scenario.LOW;\n break;\n }\n case 2: {\n Params.scenario = Scenario.OUR;\n break;\n }\n case 3: {\n Params.scenario = Scenario.HIGH;\n break;\n }\n case 4: {\n Params.scenario = Scenario.MAINTAIN;\n break;\n }\n default:\n break;\n }\n }\n default:\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private static void readOptimals(Instance inst) throws IOException {\n\t\tFile file = new File(\"data/results.txt\");\r\n\t\tScanner s = new Scanner(file);\r\n\t\tboolean found = false;\r\n\t\twhile(s.hasNextLine() && !found) {\r\n\t\t\tboolean isOptimal = false;\r\n\t\t\tString instName = s.next();\r\n\t\t\tint objective = s.nextInt();\r\n\t\t\t//System.out.println(instName +\", \"+objective);\r\n\t\t\tif(s.next().equals(\"Optimal\")) {\r\n\t\t\t\tisOptimal = true;\r\n\t\t\t}\r\n\t\t\tif(inst.getName().equals(instName + \".txt\")) {\r\n\t\t\t\t//System.out.println(\"Nombre:\"+instName+\" Objective:\"+objective+\" Optimal:\"+isOptimal);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tif(isOptimal) {\r\n\t\t\t\t\tinst.setOptimal(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(true);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tinst.setFeasible(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ts.close();\r\n\t}", "public Model(){\r\n try{\r\n File file = new File(\"./config.ini\");\r\n boolean firstRun = file.createNewFile();\r\n\r\n //If this is the first run for the application\r\n if (firstRun){\r\n //Ask user the amount of hours he wants to work per day\r\n dailyWorkload = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of hours you want to work per day\"));\r\n numDayWorkWeek = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of days you want to work per week\"));\r\n\r\n //Allocate memory for data structures\r\n unfinished = new TreeSet<>();\r\n finished = new ArrayList<>();\r\n activities = new ArrayList<>();\r\n\r\n FileWriter fw = new FileWriter(file);\r\n PrintWriter pw = new PrintWriter(fw);\r\n\r\n pw.println(dailyWorkload);\r\n pw.println(numDayWorkWeek);\r\n pw.close();\r\n fw.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n }\r\n //Else if this is not the first run of the application\r\n else{\r\n FileReader fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n dailyWorkload = Integer.parseInt(br.readLine());\r\n numDayWorkWeek = Integer.parseInt(br.readLine());\r\n br.close();\r\n fr.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n loadFromDatabase();\r\n }\r\n\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Stress is constructor: \" + e.getMessage());\r\n }\r\n }", "public Interface(String filename) throws FileNotFoundException \n {\n //read file for first time to find size of array\n File f = new File(filename);\n Scanner b = new Scanner(f);\n\n while(b.hasNextLine())\n {\n b.nextLine();\n arraySize++;\n }\n //create properly sized array\n array= new double[arraySize];\n //open and close the file, scanner class does not support rewinding\n b.close();\n b = new Scanner(f);\n //read input \n for(int i = 0; i < arraySize; i++)\n { \n array[i] = b.nextDouble();\n }\n //create a stats object of the proper size\n a = new Stats(arraySize);\n a.loadNums(array); //pass entire array to loadNums to allow Stats object a to have a pointer to the array\n }", "public static void main(String[] args) throws Exception{\n // long time = System.currentTimeMillis();\n File file = new File(\"input.txt\");\n File data = new File(\"output.txt\");\n Scanner input = new Scanner(file);\n PrintWriter output = new PrintWriter(data);\n\n algo = input.next();\n bx = input.nextInt();\n by = input.nextInt();\n bz = input.nextInt();\n\n ops = new int[bx][by][bz][18];\n openState = new Node[bx][by][bz];\n closedState = new Node[bx][by][bz];\n\n sx = input.nextInt();\n sy = input.nextInt();\n sz = input.nextInt();\n\n gx = input.nextInt();\n gy = input.nextInt();\n gz = input.nextInt();\n\n int n = input.nextInt();\n input.nextLine(); // flush \\n buffer\n for (int i = 0; i < n; i++) {\n String s = input.nextLine();\n String[] paras = s.split(\"\\\\s+\");\n int tx = Integer.parseInt(paras[0]);\n int ty = Integer.parseInt(paras[1]);\n int tz = Integer.parseInt(paras[2]);\n for (int j = 3; j < paras.length; j++)\n ops[tx][ty][tz][j - 3] = Integer.parseInt(paras[j]);\n }\n List<int[]> ans = ucs();\n int sum = 0, cnt = ans.size();\n if (cnt == 0)\n output.println(\"FAIL\");\n else {\n for (int[] step : ans)\n sum += step[3];\n output.println(sum);\n output.println(cnt);\n for (int[] step : ans) {\n for (int i = 0; i < step.length; i++) {\n if (i == 0)\n output.print(step[i]);\n else\n output.print(\" \" + step[i]);\n }\n output.println();\n }\n }\n output.close();\n // System.out.println(\"finish time is \" + (System.currentTimeMillis() - time) / 1000D);\n }", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public void newst()\r\n\t{\r\n\t\ttry {\r\n\t\t\tst = new StringTokenizer(file.readLine());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void startFile() {\n writeToFile(defaultScore);\n for (int i = 0; i < 5; i++) {\n writeToFile(readFromFile() + defaultScore);\n }\n }", "private void checkConfigFile(String filename) {\n Scanner input;\n try {\n input = new Scanner(this.getClass().getClassLoader().getResourceAsStream(filename));\n } catch (NullPointerException e){\n throw new IllegalArgumentException(filename + \" cannot be found\", e);\n }\n input.useDelimiter(\"\\\\n\");\n var sim = input.next();\n var policy = input.next();\n String[] policies = policy.split(\",\");\n if(policies.length != policiesLength) {\n throw new IllegalArgumentException(\"Policies Length is not correct\");\n }\n var numStates = input.next();\n int num = 0;\n try {\n num = Integer.parseInt(numStates);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Num States is not formatted correctly\", e);\n }\n for(int i = 0; i < num; i++) {\n var state = input.next();\n String[] stateObjects = state.split(\",\");\n if(stateObjects.length != stateObjectsLength) {\n throw new IllegalArgumentException(\"State Objects length is not correct\");\n }\n try {\n int intVal = Integer.parseInt(stateObjects[1]);\n if(intVal != i) {\n throw new IllegalArgumentException(\"State value must be sequentially assigned\");\n }\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"State value is not int correctly\", e);\n }\n try {\n Color color = Color.valueOf(stateObjects[2]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"State color is not formatted correctly\", e);\n }\n try {\n double doubleVal = Double.parseDouble(stateObjects[4]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Probability is not formatted correctly as a double\", e);\n }\n try {\n int intVal = Integer.parseInt(stateObjects[5]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Total Sum is not formatted correctly as an int\", e);\n }\n }\n var colRows = input.next();\n String[] numColRows = colRows.split(\",\");\n if(numColRows.length != 2) {\n throw new IllegalArgumentException(\"Number of values for col/row must be 2\");\n }\n try {\n num = Integer.parseInt(numColRows[0]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Row is not formatted correctly as an int\", e);\n }\n try {\n num = Integer.parseInt(numColRows[1]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Col is not formatted correctly as an int\", e);\n }\n }", "private void loadRandomState() {\n patternName = \"Random\";\n\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n\n generations = 0;\n }", "private void initializeStatisticVariables(){\r\n\t\taverageFront9Score = 0;\r\n\t\taverageFront9PlusMinus = 0;\r\n\t\taverageBack9Score = 0;\r\n\t\taverageBack9PlusMinus = 0;\r\n fairways = 0;\r\n girs = 0;\r\n putts = 0;\r\n chips = 0;\r\n penalties = 0;\r\n\t\tnumberOfHoles = 0;\r\n\t\tnumberOfPar3Holes = 0;\r\n\t\tnumberOfPar4Holes = 0;\r\n\t\tnumberOfPar5Holes = 0;\r\n\t\talbatrossCount = 0;\r\n\t\teagleCount = 0;\r\n\t\tbirdieCount = 0;\r\n\t\tparCount = 0;\r\n\t\tbogeyCount = 0;\r\n\t\tdoubleBogeyCount = 0;\r\n\t\ttripleBogeyCount = 0;\r\n\t\tquadBogeyPlusCount = 0;\r\n par3Fairways = 0;\r\n par3Girs = 0;\r\n par3Putts = 0;\r\n par3Chips = 0;\r\n par3Penalties = 0;\r\n\t\tpar3EagleCount = 0;\r\n\t\tpar3BirdieCount = 0;\r\n\t\tpar3ParCount = 0;\r\n\t\tpar3BogeyCount = 0;\r\n\t\tpar3DoubleBogeyCount = 0;\r\n\t\tpar3TripleBogeyCount = 0;\r\n\t\tpar3QuadBogeyPlusCount = 0;\r\n par4Fairways = 0;\r\n par4Girs = 0;\r\n par4Putts = 0;\r\n par4Chips = 0;\r\n par4Penalties = 0;\r\n\t\tpar4AlbatrossCount = 0;\r\n\t\tpar4EagleCount = 0;\r\n\t\tpar4BirdieCount = 0;\r\n\t\tpar4ParCount = 0;\r\n\t\tpar4BogeyCount = 0;\r\n\t\tpar4DoubleBogeyCount = 0;\r\n\t\tpar4TripleBogeyCount = 0;\r\n\t\tpar4QuadBogeyPlusCount = 0;\r\n par5Fairways = 0;\r\n par5Girs = 0;\r\n par5Putts = 0;\r\n par5Chips = 0;\r\n par5Penalties = 0;\r\n\t\tpar5AlbatrossCount = 0;\r\n\t\tpar5EagleCount = 0;\r\n\t\tpar5BirdieCount = 0;\r\n\t\tpar5ParCount = 0;\r\n\t\tpar5BogeyCount = 0;\r\n\t\tpar5DoubleBogeyCount = 0;\r\n\t\tpar5TripleBogeyCount = 0;\r\n\t\tpar5QuadBogeyPlusCount = 0;\r\n clubs.clear();\r\n\t}", "private static void init() {\n /*\n r1 = 1;\n r3 = 0;\n r5 = getNumberOfCPUCores();\n if (r5 != 0) goto L_0x0143;\n L_0x0008:\n r4 = new java.io.FileReader;\t Catch:{ IOException -> 0x008c, all -> 0x00a1 }\n r0 = \"/proc/cpuinfo\";\n r4.<init>(r0);\t Catch:{ IOException -> 0x008c, all -> 0x00a1 }\n r2 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x013c, all -> 0x0135 }\n r2.<init>(r4);\t Catch:{ IOException -> 0x013c, all -> 0x0135 }\n L_0x0014:\n r0 = r2.readLine();\t Catch:{ IOException -> 0x0140 }\n if (r0 == 0) goto L_0x0025;\n L_0x001a:\n r6 = \"processor\";\n r0 = r0.startsWith(r6);\t Catch:{ IOException -> 0x0140 }\n if (r0 == 0) goto L_0x0014;\n L_0x0022:\n r5 = r5 + 1;\n goto L_0x0014;\n L_0x0025:\n if (r2 == 0) goto L_0x002a;\n L_0x0027:\n r2.close();\t Catch:{ IOException -> 0x0104 }\n L_0x002a:\n if (r4 == 0) goto L_0x0143;\n L_0x002c:\n r4.close();\t Catch:{ IOException -> 0x0089 }\n r0 = r5;\n L_0x0030:\n if (r0 != 0) goto L_0x0033;\n L_0x0032:\n r0 = r1;\n L_0x0033:\n r2 = 0;\n r6 = \"\";\n r5 = new java.io.FileReader;\t Catch:{ IOException -> 0x00ae, NumberFormatException -> 0x00c4, all -> 0x00f6 }\n r4 = \"/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq\";\n r5.<init>(r4);\t Catch:{ IOException -> 0x00ae, NumberFormatException -> 0x00c4, all -> 0x00f6 }\n r4 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x012d, NumberFormatException -> 0x0124, all -> 0x011b }\n r4.<init>(r5);\t Catch:{ IOException -> 0x012d, NumberFormatException -> 0x0124, all -> 0x011b }\n r3 = r4.readLine();\t Catch:{ IOException -> 0x0130, NumberFormatException -> 0x0128 }\n if (r3 == 0) goto L_0x004c;\n L_0x0048:\n r2 = java.lang.Integer.parseInt(r3);\t Catch:{ IOException -> 0x0130, NumberFormatException -> 0x012b }\n L_0x004c:\n if (r4 == 0) goto L_0x0051;\n L_0x004e:\n r4.close();\t Catch:{ IOException -> 0x010d }\n L_0x0051:\n if (r5 == 0) goto L_0x0056;\n L_0x0053:\n r5.close();\t Catch:{ IOException -> 0x0110 }\n L_0x0056:\n mInitialized = r1;\n mProcessors = r0;\n mFrequency = r2;\n r0 = \"abc\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"++++++++++\";\n r1 = r1.append(r2);\n r2 = mProcessors;\n r1 = r1.append(r2);\n r2 = \" \";\n r1 = r1.append(r2);\n r2 = mFrequency;\n r1 = r1.append(r2);\n r2 = \"++++++++++\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n android.util.Log.d(r0, r1);\n return;\n L_0x0089:\n r0 = move-exception;\n r0 = r5;\n goto L_0x0030;\n L_0x008c:\n r0 = move-exception;\n r2 = r3;\n r4 = r3;\n L_0x008f:\n r0.printStackTrace();\t Catch:{ all -> 0x0138 }\n if (r2 == 0) goto L_0x0097;\n L_0x0094:\n r2.close();\t Catch:{ IOException -> 0x0107 }\n L_0x0097:\n if (r4 == 0) goto L_0x0143;\n L_0x0099:\n r4.close();\t Catch:{ IOException -> 0x009e }\n r0 = r5;\n goto L_0x0030;\n L_0x009e:\n r0 = move-exception;\n r0 = r5;\n goto L_0x0030;\n L_0x00a1:\n r0 = move-exception;\n r4 = r3;\n L_0x00a3:\n if (r3 == 0) goto L_0x00a8;\n L_0x00a5:\n r3.close();\t Catch:{ IOException -> 0x0109 }\n L_0x00a8:\n if (r4 == 0) goto L_0x00ad;\n L_0x00aa:\n r4.close();\t Catch:{ IOException -> 0x010b }\n L_0x00ad:\n throw r0;\n L_0x00ae:\n r4 = move-exception;\n r4 = r3;\n L_0x00b0:\n r5 = TAG;\t Catch:{ all -> 0x0120 }\n r6 = \"Could not find maximum CPU frequency!\";\n android.util.Log.w(r5, r6);\t Catch:{ all -> 0x0120 }\n if (r3 == 0) goto L_0x00bc;\n L_0x00b9:\n r3.close();\t Catch:{ IOException -> 0x0113 }\n L_0x00bc:\n if (r4 == 0) goto L_0x0056;\n L_0x00be:\n r4.close();\t Catch:{ IOException -> 0x00c2 }\n goto L_0x0056;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x0056;\n L_0x00c4:\n r4 = move-exception;\n r4 = r3;\n r5 = r3;\n r3 = r6;\n L_0x00c8:\n r6 = TAG;\t Catch:{ all -> 0x011e }\n r7 = \"Could not parse maximum CPU frequency!\";\n android.util.Log.w(r6, r7);\t Catch:{ all -> 0x011e }\n r6 = TAG;\t Catch:{ all -> 0x011e }\n r7 = new java.lang.StringBuilder;\t Catch:{ all -> 0x011e }\n r7.<init>();\t Catch:{ all -> 0x011e }\n r8 = \"Failed to parse: \";\n r7 = r7.append(r8);\t Catch:{ all -> 0x011e }\n r3 = r7.append(r3);\t Catch:{ all -> 0x011e }\n r3 = r3.toString();\t Catch:{ all -> 0x011e }\n android.util.Log.w(r6, r3);\t Catch:{ all -> 0x011e }\n if (r4 == 0) goto L_0x00ec;\n L_0x00e9:\n r4.close();\t Catch:{ IOException -> 0x0115 }\n L_0x00ec:\n if (r5 == 0) goto L_0x0056;\n L_0x00ee:\n r5.close();\t Catch:{ IOException -> 0x00f3 }\n goto L_0x0056;\n L_0x00f3:\n r3 = move-exception;\n goto L_0x0056;\n L_0x00f6:\n r0 = move-exception;\n r4 = r3;\n r5 = r3;\n L_0x00f9:\n if (r4 == 0) goto L_0x00fe;\n L_0x00fb:\n r4.close();\t Catch:{ IOException -> 0x0117 }\n L_0x00fe:\n if (r5 == 0) goto L_0x0103;\n L_0x0100:\n r5.close();\t Catch:{ IOException -> 0x0119 }\n L_0x0103:\n throw r0;\n L_0x0104:\n r0 = move-exception;\n goto L_0x002a;\n L_0x0107:\n r0 = move-exception;\n goto L_0x0097;\n L_0x0109:\n r1 = move-exception;\n goto L_0x00a8;\n L_0x010b:\n r1 = move-exception;\n goto L_0x00ad;\n L_0x010d:\n r3 = move-exception;\n goto L_0x0051;\n L_0x0110:\n r3 = move-exception;\n goto L_0x0056;\n L_0x0113:\n r3 = move-exception;\n goto L_0x00bc;\n L_0x0115:\n r3 = move-exception;\n goto L_0x00ec;\n L_0x0117:\n r1 = move-exception;\n goto L_0x00fe;\n L_0x0119:\n r1 = move-exception;\n goto L_0x0103;\n L_0x011b:\n r0 = move-exception;\n r4 = r3;\n goto L_0x00f9;\n L_0x011e:\n r0 = move-exception;\n goto L_0x00f9;\n L_0x0120:\n r0 = move-exception;\n r5 = r4;\n r4 = r3;\n goto L_0x00f9;\n L_0x0124:\n r4 = move-exception;\n r4 = r3;\n r3 = r6;\n goto L_0x00c8;\n L_0x0128:\n r3 = move-exception;\n r3 = r6;\n goto L_0x00c8;\n L_0x012b:\n r6 = move-exception;\n goto L_0x00c8;\n L_0x012d:\n r4 = move-exception;\n r4 = r5;\n goto L_0x00b0;\n L_0x0130:\n r3 = move-exception;\n r3 = r4;\n r4 = r5;\n goto L_0x00b0;\n L_0x0135:\n r0 = move-exception;\n goto L_0x00a3;\n L_0x0138:\n r0 = move-exception;\n r3 = r2;\n goto L_0x00a3;\n L_0x013c:\n r0 = move-exception;\n r2 = r3;\n goto L_0x008f;\n L_0x0140:\n r0 = move-exception;\n goto L_0x008f;\n L_0x0143:\n r0 = r5;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: qsbk.app.ye.videotools.utils.SystemUtils.init():void\");\n }", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }", "void readFiles(Boolean smart) \n\t//throws IOException// more here for safety\n\t{\n\t\tint i;\n\t\tfor (i = 0; i<165; ++i)\n\t\tfor (int j = 0; j<11; ++j)\n\t\t{\t//if(smart)memoryFile.readInt(board(i,j));\n\t\t\t//else \n\t\t\t\tboard[i][j] = 0;\n\t\t}\n\t\t//try memoryFileStream.close(); catch (IOException e);\n\t}", "public SlidingPuzzleState (String fileName) \n\t{\n\t\tloadStateFromFile(fileName);\n\t\tmakeHash();\n\t}", "public static void load(String filename, Supervisor k) throws FileNotFoundException{\n String source = \"\";\n try {\n Scanner in = new Scanner(new FileReader(filename));\n while(in.hasNext()){\n source = source + in.next();\n }\n } catch (FileNotFoundException ex) {\n //throw ex;\n System.out.println(\"Could not read config file: \" + ex);\n System.out.println(\"trying to create a new one...\");\n String stsa = \"Done!\\n\";\n try (\n Writer writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(filename), \"utf-8\"))) {\n writer.write(\"\");\n writer.close();\n }\n \n catch (IOException ex1) {\n stsa = \"\";\n System.out.println(\"FAILED, SKIPPING CONFIG READ BECOUSE:\");\n Logger.getGlobal().warning(ex1.toString());\n System.out.println(\"Console version: \" + ex1.toString());\n }\n System.out.print(stsa);\n }\n LinkedList<String[]> raw = fetch(source);\n \n if(k.Logic == null){\n Logger.getGlobal().warning(\"ENGINE NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n if(k.Logic.Vrenderer == null){\n Logger.getGlobal().warning(\"ENGINE RENDERER NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n \n for(String[] x: raw){\n String value = x[1];\n if(!k.features_overrideAllStandard)\n switch(x[0]){\n case \"nausea\":\n int numValue = 0;\n try{\n numValue = Integer.parseInt(value);\n }\n catch(Exception e){\n quickTools.alert(\"configReader\", \"invalid nausea value\");\n break;\n }\n if(numValue > 0){\n k.Logic.Vrenderer.dispEffectsEnabled = true;\n }\n //k.Logic.Vrenderer.di\n break;\n default:\n\n break;\n }\n customFeatures(x[0], x[1], k);\n }\n }", "public void loadStateFromFile(String fileName)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile f = new File(fileName);\n\t\t\tScanner input = new Scanner(f);\n\t\t\t_rows = input.nextInt();\n\t\t\t_cols = input.nextInt();\n\t\t\t_puzzle = new int[_rows][_cols];\n\t\t\tfor (int r_idx = 0; r_idx < _rows; r_idx++)\n\t\t\t\tfor (int c_idx = 0; c_idx<_cols; c_idx++)\n\t\t\t\t{\n\t\t\t\t\t_puzzle[r_idx][c_idx] = input.nextInt();\n\t\t\t\t\tif (_puzzle[r_idx][c_idx] == 0){\n\t\t\t\t\t\t_holes.add(new Coordinate(r_idx,c_idx));\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public void run() throws Exception {\n try {\n\t System.out.println(\"SSVD start!\");\n FileSystem fs = FileSystem.get(conf);\n\n Path qPath = new Path(outputPath, \"Q-job\");\n Path btPath = new Path(outputPath, \"Bt-job\");\n Path yPath = new Path(outputPath, \"Y-job\"); //tetst phase\n Path uHatPath = new Path(outputPath, \"UHat\");\n Path svPath = new Path(outputPath, \"Sigma\");\n Path uPath = new Path(outputPath, \"U\");\n Path vPath = new Path(outputPath, \"V\");\n\n if (overwrite) {\n fs.delete(outputPath, true);\n }\n\n\t int[] iseed = {0,0,0,1};\n\t double[] x = new double[1];\n\t Dlarnv.dlarnv(2,iseed,0,1,x,0);\n\t long seed = (long)(x[0]*(double)Long.MAX_VALUE);\n\n\t long start, end;\n\t \t\t\n\tstart = new Date().getTime();\n\tQJob.run(conf,\n inputPath,\n qPath.toString(),\n\t\treduceSchedule,\n k,\n p,\n seed,\n\t\tmis);\n\tend = new Date().getTime();\n\tSystem.out.println(\"Q-Job done \"+Long.toString(end-start));\n\tLogger LOG = LoggerFactory.getLogger(SSVDSolver.class);\n\t \n /*\n * restrict number of reducers to a reasonable number so we don't have to\n * run too many additions in the frontend when reconstructing BBt for the\n * last B' and BB' computations. The user may not realize that and gives a\n * bit too many (I would be happy i that were ever the case though).\n */\n\t \n start = new Date().getTime();\n\t BtJob.run(conf,\n inputPath,\n\t\t\t\tbtPath,\n\t\t\t\tqPath.toString(),\n\t\t\t\tk,\n p,\n outerBlockHeight,\n\t\t\t\tq <= 0 ? Math.min(1000, reduceTasks) : reduceTasks,\n\t\t\t\tq <= 0,\n\t\t\t\treduceSchedule,\n\t\t\t\tmis);\n\n\t end = new Date().getTime();\n System.out.println(\"Bt-Job done \"+Long.toString(end-start));\n\t \n // power iterations is unnecessary in application of recommendation system \t \n\t /*for (int i = 0; i < q; i++) {\n\t Path btPathGlob = new Path(btPath, BtJob.OUTPUT_BT + \"-*\");\n\t\tPath aBtPath = new Path(outputPath, String.format(\"ABt-job-%d\", i + 1)); \n qPath = new Path(outputPath, String.format(\"ABtQ-job-%d\", i + 1));\t\t\n ABtDenseOutJob.run(conf,\n inputPath,\n btPathGlob,\n aBtPath,//qPath,\n //ablockRows,\n //minSplitSize,\n k,\n p,\n //abtBlockHeight,\n reduceTasks,\n //broadcast\n\t\t\t\t\t\t mis);\n\t\t\n\t\tToolRunner.run(conf, new QRFirstJob(), new String[]{\n \"-input\", aBtPath.toString(),\n \"-output\", qPath.toString(),\n\t\t\t \"-mis\",Integer.toString(mis),\n\t\t\t \"-colsize\", Integer.toString(k+p),\n \"-reduceSchedule\", reduceSchedule});\n\t\t\t \n btPath = new Path(outputPath, String.format(\"Bt-job-%d\", i + 1));\n\n BtJob.run(conf,\n inputPath,\n\t\t\t\t btPath,\n qPath.toString(), \n k,\n p,\n outerBlockHeight,\n i == q - 1 ? Math.min(1000, reduceTasks) : reduceTasks,\n i == q - 1,\n\t\t\t\t reduceSchedule,\n\t\t\t\t mis);\n }*/\n\t \n cmUpperTriangDenseMatrix bbt =\n loadAndSumUpperTriangMatrices(fs, new Path(btPath, BtJob.OUTPUT_BBT\n + \"-*\"), conf);\n\n // convert bbt to something our eigensolver could understand\n assert bbt.numColumns() == k + p;\n\n double[][] bbtSquare = new double[k + p][];\n for (int i = 0; i < k + p; i++) {\n bbtSquare[i] = new double[k + p];\n }\n\n for (int i = 0; i < k + p; i++) {\n for (int j = i; j < k + p; j++) {\n bbtSquare[i][j] = bbtSquare[j][i] = bbt.get(i, j);\n }\n }\n\n svalues = new double[k + p];\n\n // try something else.\n EigenSolver eigenWrapper = new EigenSolver(bbtSquare);\n double[] eigenva2 = eigenWrapper.getWR();\n\t \n for (int i = 0; i < k + p; i++) {\n svalues[i] = Math.sqrt(eigenva2[i]); // sqrt?\n }\n // save/redistribute UHat\n double[][] uHat = eigenWrapper.getVL();\n\t //double[][] uHat = eigenWrapper.getUHat();\n\t \n fs.mkdirs(uHatPath);\n SequenceFile.Writer uHatWriter =\n SequenceFile.createWriter(fs,\n conf,\n uHatPath = new Path(uHatPath, \"uhat.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\t \n int m = uHat.length;\n IntWritable iw = new IntWritable();\n VectorWritable vw = new VectorWritable();\n\t \n for (int i = 0; i < m; i++) {\n vw.set(new DenseVector(uHat[i],true));\n iw.set(i);\n uHatWriter.append(iw, vw);\n }\n\t uHatWriter.close();\n\n SequenceFile.Writer svWriter =\n SequenceFile.createWriter(fs,\n conf,\n svPath = new Path(svPath, \"svalues.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\n vw.set(new DenseVector(svalues, true));\n svWriter.append(iw, vw);\n\n svWriter.close();\n\n\t start = new Date().getTime();\n UJob ujob = null;\t \n if (computeU) {\n ujob = new UJob();\n\t\tujob.start(conf,\n new Path(btPath, BtJob.Q_MAT+ \"-*\"),\n uHatPath,\n svPath,\n uPath,\n k,\n cUHalfSigma,\n\t\t\t\t mis);\t\t\t\t \n // actually this is map-only job anyway\n }\n\n VJob vjob = null;\n if (computeV) {\n vjob = new VJob();\n vjob.start(conf,\n new Path(btPath, BtJob.OUTPUT_BT + \"-*\"),\n uHatPath,\n svPath,\n vPath,\n k,\n reduceTasks,\n\t\t\t\t subRowSize,\n cVHalfSigma,\n\t\t\t\t mis);\n }\n\n if (ujob != null) {\n ujob.waitForCompletion();\n this.uPath = uPath.toString();\n }\n\t System.out.println(\"U-Job done \");\n\t \n if (vjob != null) {\n vjob.waitForCompletion();\n this.vPath = vPath.toString();\n }\n\tend = new Date().getTime();\n\tSystem.out.println(\"U-Job+V-Job done \"+(end-start));\n\t\n } catch (InterruptedException exc) {\n throw new IOException(\"Interrupted\", exc);\n } catch (ClassNotFoundException exc) {\n throw new IOException(exc);\n }\n\n }", "private void initializeFile() {\n\t\twriter.println(\"name \\\"advcalc\\\"\");\n\t\twriter.println(\"org 100h\");\n\t\twriter.println(\"jmp start\");\n\t\tdeclareArray();\n\t\twriter.println(\"start:\");\n\t\twriter.println(\"lea si, \" + variables);\n\t}", "@Override\r\n\tpublic void init() {\n\t\tif (target!=null)\r\n\t\t\ttry{\r\n\t\t\t\twriter.write(target.state.getSpeed()+\"\\t\\t\"+target.state.getRPM()+\"\\t\\t\");\r\n\t\t\t\t//System.out.println(target.state.getRPM());\r\n\t\t\t} catch (Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public BaseballElimination(String filename) {\n In in = new In(filename);\n n = Integer.parseInt(in.readLine());\n st = new LinearProbingHashST<String, Integer>();\n w = new int[n];\n loss = new int[n];\n r = new int[n];\n g = new int[n][n];\n int i = 0;\n while (!in.isEmpty()) {\n String line = in.readLine();\n String[] s = line.trim().split(\"\\\\s+\");\n st.put(s[0], i);\n w[i] = Integer.parseInt(s[1]);\n loss[i] = Integer.parseInt(s[2]);\n r[i] = Integer.parseInt(s[3]);\n for (int k = 4; k < s.length; k++) {\n int j = k - 4;\n g[i][j] = Integer.parseInt(s[k]);\n }\n i++;\n }\n }", "static void runIt() throws IOException {\n\t\t String inFName = \"resource/C-large.in\";\n//\t\tString outFName = \"resource/C-small.out\";\n\t\t String outFName = \"resource/C-large.out\";\n\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFName));\n\t\tPrintWriter out = new PrintWriter(new File(outFName));\n\n\t\tint testCases = Integer.parseInt(in.readLine());\n\n\t\tfor (int i = 0; i < testCases; ++i) {\n\n\t\t\tString line[] = in.readLine().split(\" \");\n//\t\t\tSystem.out.println(line);\n\t\t\tStringBuilder output = new StringBuilder();\n\t\t\toutput.append(\"Case #\" + (i + 1) + \": \");\n\n\t\t\tint R = Integer.parseInt(line[0]);\n\t\t\tint K = Integer.parseInt(line[1]);\n\t\t\tlong euros = 0;\n\t\t\tint pass = 0;\n\t\t\tline = in.readLine().split(\" \");\n\t\t\tVector<Integer> queue = new Vector<Integer>();\n\t\t\tVector<Integer> first = new Vector<Integer>();\n\t\t\tfor (String string : line) {\n\t\t\t\tqueue.add(Integer.parseInt(string));\n\t\t\t\tfirst.add(Integer.parseInt(string));\n\t\t\t\t\n\t\t\t}\n\n\n\t\t\tfor (int time = 0; time < R; ++time) {\n\t\t\t\tint p = 0;\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (p < queue.size()) {\n\t\t\t\t\t\tInteger g = queue.elementAt(p++);\n\t\t\t\t\t\tif (pass + g <= K) {\n\t\t\t\t\t\t\tpass += g;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfor (int kk = 1; kk < p; ++kk) {\n\t\t\t\t\tInteger m = queue.remove(0);\n\t\t\t\t\tqueue.add(m);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\teuros += pass;\n\t\t\t\tpass=0;\n\t\t\t\tif(queue.equals(first)){\n\t\t\t\t\tint s = R/(time+1);\n\t\t\t\t\teuros*=s;\n\t\t\t\t\ttime *=s;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\toutput.append(euros);\n\t\t\tSystem.out.println(output);\n\t\t\tout.println(output);\n\t\t}\n\n\t\tin.close();\n\t\tout.flush();\n\t\tout.close();\n\t}", "public int readSurvivabilityRateByCauseFromFile (int numberOfLines) {\n survivabilityByCause = new SurvivabilityByCause[numberOfLines]; \n StdIn.readLine();\n for(int i = 0 ; i < numberOfLines ; i ++){\n String data = StdIn.readLine().trim();\n String[] dataValues = data.split(\" \");\n int count = 0;\n for(int j = 0; j < dataValues.length; j++){\n if(dataValues[j].equals(\"\")){\n continue;\n }\n // System.out.println(\" \"+dataValues[j]);\n dataValues[count] = dataValues[j].trim();\n count++;\n }\n SurvivabilityByCause s = new SurvivabilityByCause(Integer.parseInt(dataValues[0]), Integer.parseInt(dataValues[1]), Double.parseDouble(dataValues[2]));\n survivabilityByCause[i] = s;\n }\n\n return numberOfLines;\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "private static void fileRead(String file) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\tString line = \"\";\n\t\t\twhile((line=br.readLine())!=null) {\n\t\t\t\tString data[] = line.split(\"\\\\t\");\n\t\t\t\tint id = Integer.parseInt(data[0]);\n\t\t\t\tint groundTruth = Integer.parseInt(data[1]);\n\t\t\t\tactualClusters.put(id, groundTruth);\n\t\t\t\tArrayList<Double> temp = new ArrayList<>();\n\t\t\t\tfor(int i=2;i<data.length;i++) {\n\t\t\t\t\ttemp.add(Double.parseDouble(data[i]));\n\t\t\t\t}\n\t\t\t\tcols = data.length-2;\n\t\t\t\tgeneAttributes.put(id, temp);\n\t\t\t\tallClusters.add(id+\"\");\n\t\t\t\ttotalGenes++;\n\t\t\t}\n\t\t\ttotalCluster = totalGenes;\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tvoid initialize(boolean fromFile) {\n\t\tfor (int i = 0; i < board.length; i++) {\r\n\t\t\tfor (int j = 0; j < board[i].length; j++) {\r\n\t\t\t\tboard[i][j] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tboard[boardsize/2][boardsize/2] = 0;\r\n\t\tboard[boardsize/2-1][boardsize/2] = 1;\r\n\t\tboard[boardsize/2][boardsize/2-1] = 1;\r\n\t\tboard[boardsize/2-1][boardsize/2-1] = 0;\r\n\t}", "public void start() {\n try {\n long start = System.currentTimeMillis();\n readFile();\n result = wordStorage.getTopNWords(3);\n long end = System.currentTimeMillis();\n long timeTaken = ((end - start) / 1000);\n logger.info(\"time taken to run program: \" + timeTaken);\n display.displayTimeTaken(timeTaken);\n display.displayTopNWords(result);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\tbbst rbt = new bbst();\n\t\t\n\t\t\t//File f1 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\test_10000000.txt\");\n\t\t\t\t//System.out.println(\" file name \" + args[0]);\n\t\t\tFile f1 = new File(args[0]);\n\t\t\tFileReader input = new FileReader(f1);\n\t\t\tBufferedReader in = new BufferedReader(input);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\tline = in.readLine();\n\t\t\t\tint size = Integer.parseInt(line);\n\t\t\t\tint arr[][] = new int[size][2];\n\t\t\t\tint i=0;\n\t\t\t\twhile(line != null){\n\t\t\t\t\tline = in.readLine();\n\t\t\t\t\tif( line != null){\n\t\t\t\t\t\tint key = Integer.parseInt(line.split(\" \")[0]);\n\t\t\t\t\t\tint val = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t\t\tarr[i][0]=key;\n\t\t\t\t\t\tarr[i][1]=val;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trbt.buildInitialTree(arr,size);\n\t\t\t\t\n\t\t\t\tinput.close();\n\t\t\t\tin.close();\n\t\t\t\t//System.out.println(\" tree build\");\n\t\t\t\tString line1;\n\t\t\t\twhile ((line1 = br.readLine()) != null) {\n\t\t\t\t\t//System.out.println(\" line \" + line);\n\t \tif(line1.isEmpty())\n\t \t\tcontinue;\n\t \t//System.out.println(\" line \");\n\t \tStringTokenizer stringTokenizer = new StringTokenizer(line1, \" \");\n\t \t\n\t \twhile (stringTokenizer.hasMoreElements()) {\n\t\t\t\t\t \n\t \tString command = stringTokenizer.nextElement().toString();\n\t \tint param1 ;\n\t\t\t \tint param2;\n\t\t\t \t\t \n\t \n\t\t // System.out.println(command);\n\t\t switch (command.toString()) {\n\t\t case \"increase\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \n\t\t //System.out.println(Integer.parseInt(y.toString()));\n\t\t rbt.Increase(param1, param2);\n\t\t break;\n\t\t case \"reduce\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Reduce(param1,param2);\n\t\t break;\n\t\t case \"count\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Count(param1);\n\t\t break;\n\t\t case \"inrange\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.InRange(param1, param2);\n\t\t break;\n\t\t case \"next\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Next(param1);\n\t\t break;\n\t\n\t\t case \"previous\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Previous(param1);\n\t\t break;\n\t\t case \"quit\":\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t default : \n\t\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t }\n\t \t}\n\t }\n\t\t\t\t\n\t\t\t\t//File f2 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\commands.txt\");\n\t\t\t\t//File f2 = new File(args[1]);\n\t\t\t\t//FileReader input2 = new FileReader(f2);\n\t\t\t\t//BufferedReader in2 = new BufferedReader(input2);\n\t\t\t\t//String s2 = in2.readLine();\n\t\t\t\t/*while(s != null){\n\t\t\t\t\ts = in.readLine();\n\t\t\t\t\tif(s!=null){\n\t\t\t\t\t\tswitch(s.split(\" \")[0]){\n\t\t\t\t\t case \"increase\" :\n\t\t\t\t\t \t//System.out.println(\" increase \");\n\t\t\t\t\t \tint key = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint incVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Increase(key, incVal);\n\t\t\t\t\t break; \n\t\t\t\t\t case \"reduce\" :\n\t\t\t\t\t \t //System.out.println(\" reduce \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tincVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println( \" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Reduce(key, incVal);\n\t\t\t\t\t break;\n\t\t\t\t\t case \"count\" :\n\t\t\t\t\t \t//System.out.println(\"count \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Count(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"inrange\" :\n\t\t\t\t\t \t//System.out.println(\" in range \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint key2 = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" val \" + key2);\n\t\t\t\t\t \trbt.InRange(key, key2);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"next\" :\n\t\t\t\t\t \t//System.out.println(\" next\");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Next(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"previous\" :\n\t\t\t\t\t \t//System.out.println(\" prev \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" find prev of \" + key);\n\t\t\t\t\t \t//System.out.println(\" node in tree \" + rbt.getNode(root, key).id);\n\t\t\t\t\t \trbt.Previous(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"quit\":\n\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t default : \n\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n if (args.length != 1) {\n System.err.println(\"java linkstate <file name>\");\n System.exit(0);\n }\n\n // read from file\n String filename = args[0].replaceAll(\"\\\\s+\", \"\");\n String fileContents = new String(Files.readAllBytes(Paths.get(filename))).replaceAll(\"\\\\s+\", \"\");\n String[] fileSplit = fileContents.trim().split(\"\\\\.\");\n\n // find size of 2d array\n amtOfNodes = fileSplit.length - 1;\n // System.out.println(\"amt of nodes: \" + amtOfNodes);\n\n // put the values into a 2d array of strings\n String[][] nodeStrings = new String[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n nodeStrings[i] = fileSplit[i].split(\"\\\\,\");\n }\n\n // convert the strings to integers\n int[][] nodeInts = new int[amtOfNodes][amtOfNodes];\n for (int i = 0; i < amtOfNodes; i++) {\n for (int j = 0; j < amtOfNodes; j++) {\n if (nodeStrings[i][j].equals(\"N\")) {\n nodeInts[i][j] = infiniti;\n } else {\n nodeInts[i][j] = Integer.parseInt(nodeStrings[i][j]);\n }\n }\n }\n\n dijkstra(nodeInts);\n\n }", "public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }", "private void parseFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n Scanner scan = new Scanner(new File(fileName));\n while(scan.hasNext()) {\n\t\t\t\tString name = scan.next();\n\t\t\t\tString inputBlock = scan.next();\n\t\t\t\tString outputBlock = scan.next();\n\n\t\t\t\tqos[TIME] = scan.nextDouble();\n\t\t\t\tqos[COST] = scan.nextDouble();\n\t\t\t\tqos[AVAILABILITY] = scan.nextDouble()/100;\n\t\t\t\tqos[RELIABILITY] = scan.nextDouble()/100;\n\t\t\t\t// Throw the other two away;\n\t\t\t\tscan.nextDouble();\n\t\t\t\tscan.nextDouble();\n\n\t\t\t\tfor (String s :inputBlock.split(\",\"))\n\t\t\t\t\tinputs.add(s);\n\t\t\t\tfor (String s :outputBlock.split(\",\"))\n\t\t\t\toutputs.add(s);\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n }\n scan.close();\n }\n catch(IOException ioe) {\n System.out.println(\"File parsing failed...\");\n }\n\t\tnumServices = serviceMap.size();\n }", "private void init() throws IOException, ModelException{\r\n // Check if the input file should be convert to libSVM format\r\n if(this.reformatInputFile){\r\n reformatInputFile();\r\n this.inputFileName = this.inputFileName + \".svm\";\r\n }\r\n\r\n // Scale the training set\r\n if(this.scale){\r\n scale();\r\n }\r\n\r\n setProblem();\r\n checkParams();\r\n\r\n // Check if cross validation is needed\r\n if(this.crossValidation == 1){\r\n crossValidate();\r\n }\r\n // Goes to here only if you use SVMModel without project context\r\n else{\r\n train();\r\n }\r\n }", "public FileLoader(File file)throws IOException{\n rows =new Vector<String>();\n _file = file;\n loadTSPTWFile();\n }", "private void read(String filename) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\t\n\t\t//a variable that will increase by one each time another element is added to the array\n\t\t//to ensure array size is correct\n\t\tint numStation = 0;\n\t\t\n\t\t//ignores first 6 lines\n\t\tfor(int i = 0; i < 3; ++i){\n\t\t\tbr.readLine();\n\t\t}\n\t\t\n\t\t//sets String equal readline\n\t\tString lineOfData = br.readLine();\n\n\t\twhile(lineOfData != null)\n\t\t{\n\t\t\tString station = new String();\n\t\t\tstation = lineOfData.substring(10,14);\n\t\t\tMesoAsciiCal asciiAverage = new MesoAsciiCal(new MesoStation(station));\n\t\t\tint asciiAvg = asciiAverage.calAverage();\t\t\n\n\t\t\tHashMap<String, Integer> asciiVal = new HashMap<String, Integer>();\n\t\t\t//put the keys and values into the hashmap\n\t\t\tasciiVal.put(station, asciiAvg);\n\t\t\t//get ascii interger avg value\n\t\t\tInteger avg = asciiVal.get(station);\n\t\t\t\n\t\t\thashmap.put(station,avg);\n\t\t\t\n\t\t\tlineOfData = br.readLine();\n\t\t\t\n\t\t}\n\t\t\n\t\tbr.close();\n\t}", "public int readTrials() throws Exception\n {\n return fileHandler.readInt(file);\n }", "public abstract void initGrid(String filename)\r\n throws NumberFormatException, FileNotFoundException, IOException;", "private void start()\n\tthrows FileNotFoundException\n\t{\n\t\t// Open the data file for reading\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(\"distance.in\")));\n\n\t\t// Read in the number of datasets.\n\t\ttry {\n \t\tline = in.readLine();\n\t\t\ttokenBuffer = new StringTokenizer(line);\n\t\t\tnumDatasets = Integer.parseInt(tokenBuffer.nextToken());\n\n \t} catch(IOException ioError) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Error occurred while reading in the first line of input.\");\n \t\tioError.printStackTrace();\n\t\t\t\tSystem.exit(1);\n \t}\n\n\t\t// While we have data to process...\n\t\tfor(int index = 0; index < numDatasets; index++) { \n\t\t\t// Grab a line of input \t\t\n\t\t\ttry {\n \t\tline = in.readLine();\n\n } catch(IOException ioError) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Error occurred while reading in the next line of input.\");\n \t\t\tioError.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n \t\t}\n\n\t\t\t// Popluate the unsorted list using this line of data\n\t\t\tbuildUnsortedList(line);\n\n\t\t\t// Sort the list using recursion\n\t\t\twhile(!sortList());\n\n\t\t\t// Print the mean variable between the sorted and unsorted list\n\t\t\tSystem.out.println(calcDistance());\n\t\t}\n\t}", "public Consensus(String filename, double perc) {\n\tBufferedReader input = null;\n\t// Read in the taxa information and input trees\n\ttry {\n\t input = new BufferedReader(new FileReader(filename));\n\t String line = input.readLine();\n\t StringTokenizer st;\n\t System.out.println(\"Reading taxa blocks.\");\n\t //Read in the taxa labels\n\t while (line.indexOf(\"dimensions ntax\") == -1)\n\t\tline = input.readLine();\n\t //No. of taxa\n\t noTax = Integer.parseInt(line.substring(\n\t\t\t line.indexOf(\"=\") + 1, line.indexOf(\";\")).trim());\n\t System.out.println(\"No. of taxa: \" + noTax);\n\t taxa = new String[noTax];\n\t //Random weight, used in hashcode calculation\n\t int[] weight = new int[noTax];\n\t while (line.indexOf(\"taxlabels\") == -1)\n\t\tline = input.readLine();\n\t st = new StringTokenizer(line.substring(0, line.indexOf(\";\")));\n\t st.nextToken();\n\t int count = 0;\n\t Random r = new Random();\n\t while (st.hasMoreTokens()){ \n\t\ttaxa[count] = st.nextToken();\n\t\tweight[count++] = Math.abs(r.nextInt());\n\t }\n\t //Determine hash1\n\t int low = 0;\n\t int high = primes.length;\n\t while (low + 1 < high) {\n\t\t//System.out.println(primes[(high + low) / 2] + \" High = \" +\n\t\t//\t\t high + \" Low = \" + low);\n\t\tif (primes[(high + low) / 2] < (10 * noTax)) {\n\t\t low = (high + low) / 2;\n\t\t} else {\n\t\t high = (high + low) / 2;\n\t\t}\n\t }\n\t //change from low+1 to low to avoie array index out of bound when low=length-1\n\t hash1 = primes[low];\n\t System.out.println(\"Hash1 = \" + hash1);\n\t hashTable = new Node[hash1];\n\t built = new Node[hash1];\n\n\t //Read in the input trees\n\t System.out.print(\"Start reading input trees\");\n\t trees = new Vector();\n\t while (line != null) {\n\t\tif (line.startsWith(\"tree B_\")) {\n\t\t trees.add(new BinTree(convertToID(line.substring(\n\t\t\t\t\t\t line.indexOf(\"(\"), \n\t\t\t\t\t\t line.indexOf(\";\"))),\n\t\t\t\t\t hash1, hash2, weight));\n\t\t System.out.print(\".\");\n\t\t}\n\t\tline = input.readLine();\n\t }\n\t trees.trimToSize();\n\t noTrees = trees.size();\n\t System.out.println(\"\\nNo. of trees read: \" + noTrees);\n\t thresh = noTrees * perc;\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Exception: \" + e);\n\t\te.printStackTrace();\n\t\tSystem.exit(1);\n\t} finally {\n\t try {\n\t\tinput.close();\n\t } catch (IOException ie) {\n\t\tSystem.out.println(\"Exception: \" + ie);\n\t\tie.printStackTrace();\n\t\tSystem.exit(1);\n\t }\n\t}\n }", "public VPTree(LargeBinaryFile file, Progress progress) throws IOException {\n\t\tsuper(file);\n\t\t\n\t\tthis.optimise = true;\n\t\tthis.progress = progress;\n\t}", "protected void initialize() {\n done = false;\n\n\n prevAutoShiftState = driveTrain.getAutoShift();\n driveTrain.setAutoShift(false);\n driveTrain.setCurrentGear(DriveTrain.DriveGear.High);\n// double p = SmartDashboard.getNumber(\"drive p\", TTA_P);\n// double i = SmartDashboard.getNumber(\"drive i\", TTA_I);\n// double d = SmartDashboard.getNumber(\"drive d\", TTA_D);\n// double rate = SmartDashboard.getNumber(\"rate\", TTA_RATE);\n// double tolerance = TTA_TOLERANCE; // SmartDashboard.getNumber(\"tolerance\", 2);\n// double min = SmartDashboard.getNumber(\"min\", TTA_MIN);\n// double max = SmartDashboard.getNumber(\"max\", TTA_MAX);\n// double iCap = SmartDashboard.getNumber(\"iCap\", TTA_I_CAP);\n// pid = new PID(p, i, d, min, max, rate, tolerance, iCap);\n pid = new PID(TTA_P, TTA_I, TTA_D, TTA_MIN, TTA_MAX, TTA_RATE, TTA_TOLERANCE, TTA_I_CAP);\n\n driveTrain.setSpeedsPercent(0, 0);\n driveTrain.setCurrentControlMode(ControlMode.Velocity);\n }", "private void readSledState( Sled currentSled ) {\n currentSled.coord.x = stateScanner.nextDouble();\r\n currentSled.coord.y = stateScanner.nextDouble();\r\n currentSled.direction = stateScanner.nextDouble();\r\n\r\n // read the trail coordinates\r\n currentSled.trailLength = stateScanner.nextInt();\r\n for ( int trailPointIndex = 0; trailPointIndex < currentSled.trailLength; trailPointIndex++ ) {\r\n currentSled.trail[trailPointIndex].coord.x = stateScanner.nextDouble();\r\n currentSled.trail[trailPointIndex].coord.y = stateScanner.nextDouble();\r\n }\r\n }", "public NFA(File f){readMachineDescription(f);}", "public static void main(String[] args) {\n\n String fileEdgeList = \"../DataSource/PANCANsigEdgeList.csv\";\n String fileGtTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.training.10.csv\";\n// String fileGtTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.testing.10.csv\";\n String fileGeTrainingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.training.10.csv\";\n String fileGeTestingMatrix = \"../DataSource/CrossMatrixDriver/PANCAN.GeM.4468tumors.testing.10.csv\";\n String fileInferDriver = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.InferDriver.10.withTumorID.csv\";\n// String fileDriverSGATable = \"../DataSource/CrossMatrixDriver/PANCAN.Drivercallpertumor.4468tumors.DriverSGATable.10.csv\";\n \n \n DataReader dataObj = new DataReader(fileEdgeList, fileGtTrainingMatrix, fileGeTrainingMatrix);\n\n int reRun = 0;\n double T = 0.5;\n do {\n reRun += 1;\n\n EstimateParams paramObj = new EstimateParams(dataObj.edgeList, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.driverSGATable, dataObj.targetDEGTable);\n InferDriverActivation actObj = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n\n\n actObj.thresholding(T);\n \n actObj.updateInferDriverTable( dataObj.driverSGATable);\n \n double change = actObj.compareMatrix(dataObj.driverSGATable);\n\n System.out.println(\"Current T is \" + T);\n System.out.println(\"Change is \" + change);\n System.out.println(\"This is the \" + reRun + \"th run\");\n if (change < 0.001 || T > 1) {\n System.out.println(\"Total times of run is \" + reRun + \". Final cut shreshold is \" + T);\n \n// dataObj.readInGtMatrix(fileGtTestingMatrix);\n dataObj.readInGeMatrix(fileGeTestingMatrix);\n InferDriverActivation actObjTesting = new InferDriverActivation(paramObj.mapEdgeParam, paramObj.mapSGAParam,\n dataObj.targetDEGTable, dataObj.driverSGAs, dataObj.targetDEGs, dataObj.mapSgaDegs);\n \n actObjTesting.outputInferActivation(fileInferDriver, dataObj.tumorNames);\n// dataObj.outputDriverSGATable(fileDriverSGATable); //output contains tumorName, since tumor name is defined in dataObj, so no need to pass in\n\n break; \n \n } else {\n dataObj.updateDriverSGATable(actObj.inferDriverTable);\n T += 0.05;\n \n }\n\n } while (true);\n }", "void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}", "public RDT10(double pmunge) throws IOException {this(pmunge, 0.0, null);}", "public static SnakeProblem buildProblemFromFile(File file) throws IOException {\n int NUM_ONE_AI_OBLIGATORY_PARAMS = 4;\n int NUM_TWO_AI_OBLIGATORY_PARAMS = 7;\n\n java.util.Scanner f;\n try {\n f = new java.util.Scanner(file);\n } catch (FileNotFoundException e) {\n return null;\n }\n\n List<String> lines = new LinkedList<>();\n\n while (f.hasNextLine()) {\n String s = f.nextLine();\n if (!s.equals(\"\") && !s.startsWith(\"//\")) {\n lines.add(s);\n }\n }\n\n List<String> parametersValues = new LinkedList<>();\n for (String line : lines) {\n String[] tokens = line.split(\":|,\");\n for (int i = 1; i < tokens.length; i++) {\n parametersValues.add(tokens[i].trim());\n }\n }\n\n int environmentSize, maxIterations, numEnvironmentRuns;\n\n\n try {\n environmentSize = Integer.parseInt(parametersValues.get(0));\n maxIterations = Integer.parseInt(parametersValues.get(1));\n numEnvironmentRuns = Integer.parseInt(parametersValues.get(2));\n } catch (NumberFormatException e) {\n return null;\n }\n\n if (parametersValues.size() > NUM_ONE_AI_OBLIGATORY_PARAMS) {\n List<Integer> numInputs = new ArrayList<>();\n List<Integer> numHiddenUnits = new ArrayList<>();\n List<Integer> numOutputs = new ArrayList<>();\n List<ActivationFunction> activationFunctions = new ArrayList<>();\n\n try {\n numInputs.add(Integer.parseInt(parametersValues.get(3)));\n\n if (parametersValues.size() > NUM_TWO_AI_OBLIGATORY_PARAMS) {\n numInputs.add(Integer.parseInt(parametersValues.get(4)));\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(5)));\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(6)));\n numOutputs.add(Integer.parseInt(parametersValues.get(7)));\n numOutputs.add(Integer.parseInt(parametersValues.get(8)));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(9).toUpperCase()));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(10).toUpperCase()));\n } else {\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(4)));\n numOutputs.add(Integer.parseInt(parametersValues.get(5)));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(6).toUpperCase()));\n }\n } catch (IllegalArgumentException e) {\n return null;\n }\n\n return new SnakeProblem(\n environmentSize,\n maxIterations,\n numEnvironmentRuns,\n numInputs,\n numHiddenUnits,\n numOutputs,\n activationFunctions);\n }\n\n return new SnakeProblem(\n environmentSize,\n maxIterations,\n numEnvironmentRuns);\n }", "private static State tryStart(String line) {\n if (line.contains(\"START_LEVEL=\")) {\n Matcher matcher = START_LEVEL.matcher(line);\n if(matcher.matches()) {\n String level = matcher.group(1); // 0.00032\n s_level = Double.parseDouble(level);\n System.out.println(\"Got START_LEVEL=\" + s_level);\n return START;\n }\n }\n return tryIteration(line);\n }", "public static void main(String[] args) {\n\t\tString filename = \"C:/Users/Myky/Documents/EDAN55/Independent Set/g30.txt\";\n\t\tint[][] adjMatrix = readFile(filename);\n\t\tCounter counter = new Counter(0);\n\t\tint MIS = run(adjMatrix);\n\t\tprint(MIS);\n\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private void readFile( String fileName ) throws FileNotFoundException\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile train_file = new File( fileName );\n\t\t\tScanner in;\n\t\t\tin = new Scanner( train_file );\n\n\t\t\tString[] tokens = in.nextLine().trim().split( \"\\\\s+\" ); // Parse the file\n\t\t\tthis.attribute_list.add( new Attribute( 0, \"x0\" ) );\n\n\t\t\tint i = 1;\n\t\t\twhile ( i <= tokens.length )\n\t\t\t{\n\t\t\t\tthis.attribute_list.add( new Attribute( i, tokens[ i - 1 ] ) );\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\twhile ( in.hasNextLine() )\n\t\t\t{\n\t\t\t\ttokens = in.nextLine().trim().split( \"\\\\s+\" );\n\t\t\t\tif ( tokens.length > 1 )\n\t\t\t\t{\n\t\t\t\t\tthis.addTrainData( 0, 1 );\n\n\t\t\t\t\tfor ( i = 1; i < tokens.length; i++ )\n\t\t\t\t\t\tthis.addTrainData( i, Integer.parseInt( tokens[ i - 1 ] ) );\n\n\t\t\t\t\t// Last column would be the class attribute\n\t\t\t\t\tthis.class_data.add_data( Integer.parseInt( tokens[ i - 1 ] ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch ( FileNotFoundException e )\n\t\t{\n\t\t\tSystem.out.println( \"Cannot find train file - \" + fileName );\n\t\t\tthrow e;\n\t\t}\n\t}", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "private static void loadNewFormat(String filename, Stats stats) throws IOException {\n System.out.println(\"Analysing file: \" + filename);\n getConsole().println(\"Analysing file: \" + filename.substring(0, Integer.min(filename.length(), 60)) + (filename.length() > 60 ? \"...\" : \"\"));\n\n lastStatusMessageTime = System.nanoTime();\n String line;\n long numOfKeys = 0,\n actualKey = 0,\n startFileTime = System.nanoTime();\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n while ((line = reader.readLine()) != null) {\n String tuple[] = line.replace(\",\", \";\").split(\";\", 7);\n if (tuple.length == 7 && tuple[0].matches(\"\\\\d+\")) {\n numOfKeys++;\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n return;\n }\n\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n int pos = filename.lastIndexOf('.');\n String icsn = filename;\n if (pos >= 0) {\n icsn = icsn.substring(0, pos);\n }\n stats.changeCard(icsn);\n while ((line = reader.readLine()) != null) {\n String tuple[] = line.replace(\",\", \";\").split(\";\", 7);\n if (tuple.length != 7 || !tuple[0].matches(\"\\\\d+\")) {\n continue;\n }\n\n try {\n Params params = new Params();\n params.setModulus(new BigInteger(tuple[1], 16));\n params.setExponent(new BigInteger(tuple[2], 2));\n params.setP(new BigInteger(tuple[3], 16));\n params.setQ(new BigInteger(tuple[4], 16));\n params.setTime(Long.valueOf(tuple[6]));\n stats.process(params);\n\n actualKey++;\n showProgress(actualKey, numOfKeys, startFileTime);\n } catch (NumberFormatException ex) {\n String message = \"\\nKey \" + actualKey + \" is not correct.\";\n getConsole().println(message);\n System.out.println(message);\n System.out.println(\" \" + line);\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n } finally {\n consoleDoneLine();\n }\n }", "private static void analyze(String path) throws IOException {\n\n\t\ttry(DataInputStream reader = new DataInputStream(new BufferedInputStream(new FileInputStream(path)))) {\n\t\t\tHeader header = new Header(ByteBuffer.wrap(reader.readNBytes(512)));\n\t\t\tSystem.out.println(header);\n\n\t\t\tint sensorModelCount = 0;\n\t\t\tint timeModelCount = 0;\n\t\t\tint dataBlockCount = 0;\n\n\t\t\tshort lastMark = 0;\n\t\t\tint count = 0;\n\n\t\t\twhile(reader.available() > 0) {\n\t\t\t\tshort mark = reader.readShort();\n\t\t\t\tswitch (mark) {\n\t\t\t\t\tcase 0x5555 -> {\n\t\t\t\t\t\tdataBlockCount++;\n\t\t\t\t\t\tint size = reader.readInt();\n\t\t\t\t\t\treader.skipBytes(size);\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"DataBlock (\" + size + \" bytes) x\" + count);\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t\tcase 0x6660 -> {\n\t\t\t\t\t\ttimeModelCount++;\n\t\t\t\t\t\tInstant instant = Instant.ofEpochMilli(reader.readLong());\n\t\t\t\t\t\tPeriod period = Period.of(reader.readShort(), reader.readShort());\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nTimeModel (\" + instant + \", \" + period + \")\");\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t\tcase 0x6661 -> {\n\t\t\t\t\t\tsensorModelCount++;\n\t\t\t\t\t\tString measurements = new String(reader.readNBytes(reader.readInt())).replace(\"\\n\", \", \");\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"SensorModel: \" + measurements);\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"TimeModel count = \" + timeModelCount);\n\t\t\tSystem.out.println(\"SensorModel count = \" + sensorModelCount);\n\t\t\tSystem.out.println(\"Data blocks count = \" + dataBlockCount);\n\t\t}\n\t}", "void resetStationStatistics() {\n\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"depthMin, depthMax = \" + depthMin + \" \" + depthMax);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"sampleCount = \" + sampleCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"stationSampleCount = \" + stationSampleCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"sampleRejectCount = \" + sampleRejectCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"stationSampleRejectCount = \" + stationSampleRejectCount);\n\n depthMin = 9999.99f;\n depthMax = -9999.99f;\n stationSampleCount = 0;\n stationSampleRejectCount = 0;\n prevDepth = 0f;\n\n }", "private void initializeTestFile(File testFile) throws IOException {\n testReader = new ASCIIreader(testFile);\n }", "public static void main(String[] args) throws IOException\n {\n int numFiles = 13;\n for(int curFileIndex = 0; curFileIndex < numFiles; curFileIndex++)\n {\n String inputOutputNumber = \"\"+curFileIndex;\n if(inputOutputNumber.length()==1)\n inputOutputNumber = \"0\" + inputOutputNumber;\n long startTime = System.nanoTime();\n String fileName = \"Coconut-tree\".toLowerCase() + \"-testcases\";\n String pathToHackerrankTestingFolder = \"/Users/spencersharp/Desktop/HackerrankTesting/\";\n BufferedReader f = new BufferedReader(new FileReader(pathToHackerrankTestingFolder + fileName + \"/input/input\"+inputOutputNumber+\".txt\"));\n PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(pathToHackerrankTestingFolder + fileName + \"/testOutput/testOutput\"+inputOutputNumber+\".txt\")));\n //Comment the end comment after this line\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 String line = f.readLine();\n StringTokenizer st = new StringTokenizer(line);\n \n int n = Integer.parseInt(st.nextToken());\n int v = Integer.parseInt(st.nextToken());\n int t = Integer.parseInt(st.nextToken())-1;\n \n //TreeSet<Double> vals = new TreeSet<Double>();\n \n double minEV = 0.0;\n \n int numPickedSoFar = 0;\n \n double total = 0.0;\n \n for(int i = 0; i < n; i++)\n {\n st = new StringTokenizer(f.readLine());\n \n int p = Integer.parseInt(st.nextToken());\n int c = Integer.parseInt(st.nextToken());\n int fallChance = Integer.parseInt(st.nextToken());\n \n double ev = ((c*v)*(((100-fallChance))/100.0))-(p*(fallChance/100.0));\n \n if(ev > 0.0)\n {\n if(numPickedSoFar < t)\n {\n if(ev < minEV || minEV == 0.0)\n minEV = ev;\n total += ev;\n numPickedSoFar++;\n }\n else if(ev > minEV)\n {\n //out.println(\"ELSE\"+minEV);\n total -= minEV;\n minEV = ev;\n total += ev;\n }\n }\n //out.println(total);\n }\n \n writer.println(total);\n \n writer.close();\n //Code here\n \n //Use open comment before this line\n long endTime = System.nanoTime();\n\n long totalTime = endTime - startTime;\n\n double totalTimeInSeconds = ((double)totalTime)/1000000000;\n\n if(totalTimeInSeconds >= 4.0)\n out.println(\"TIME LIMIT EXCEEDED\");\n else\n {\n boolean isTestOutputCorrect = true;\n BufferedReader correctOutputReader = new BufferedReader(new FileReader(pathToHackerrankTestingFolder + fileName + \"/output/output\"+inputOutputNumber+\".txt\"));\n BufferedReader testOutputReader = new BufferedReader(new FileReader(pathToHackerrankTestingFolder + fileName + \"/testOutput/testOutput\"+inputOutputNumber+\".txt\"));\n String correctOutputLine;\n String testOutputLine;\n\n while((correctOutputLine=correctOutputReader.readLine())!=null && (testOutputLine=testOutputReader.readLine())!=null)\n {\n Double d1 = Double.parseDouble(correctOutputLine);\n Double d2 = Double.parseDouble(correctOutputLine);\n if(Math.abs(d1-d2) > 0.0001)\n {\n isTestOutputCorrect = false;\n break;\n }\n }\n\n if(isTestOutputCorrect)\n out.println(\"TEST \" + inputOutputNumber + \" CORRECT - TIME: \" + totalTimeInSeconds);\n else\n out.println(\"TEST \" + inputOutputNumber + \" INCORRECT - TIME: \" + totalTimeInSeconds);\n }\n }\n //Use close comment after this line\n \n }", "public void readObjectDescription(String fileName) {\n Scanner in;\n try {\n in = new Scanner(new File(fileName));\n // Read the number of vertices\n numCtrlPoints = in.nextInt();\n controlPoints = new Point[numCtrlPoints];\n \n // Read the vertices\n for (int i = 0; i < numCtrlPoints; i++) {\n // Read a vertex\n int x = in.nextInt();\n int y = in.nextInt();\n //vertexArray[i] = new Point(x, y);\n controlPoints[i] = new Point(x, y);\n }\n } catch (FileNotFoundException e) {\n System.out.println(e);\n }\n\n }", "void run() throws IOException {\n\r\n\t\treader = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n\t\tout = new PrintWriter(new FileWriter(\"output.txt\"));\r\n\t\ttokenizer = null;\r\n\t\tsolve();\r\n\t\treader.close();\r\n\t\tout.flush();\r\n\r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tInputStream f = getClass().getResourceAsStream(\"/LoadTXT.txt\");\n\t\t\tboolean isFirst = true;\n\t\t\tBufferedReader reader = null;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new InputStreamReader(f));\n\t\t\t\tString Ins = null;\n\t\t\t\tint line = 1;\n\t\t\t\t//Read the file line by line and split the line into two parts by symbol \",\"\n\t\t\t\twhile ((Ins = reader.readLine()) != null) {\n\t\t\t\t\tString[] str = Ins.split(\",\");\n\t\t\t\t\tint index = Integer.parseInt(str[0]);\t\t\t\t\t\n\t\t\t\t\tShort con = Integer.valueOf(str[1],2).shortValue();\n\t\t\t\t\tif(isFirst){\n\t\t\t\t\t\tcpu.setPc((short) index);\n\t\t\t\t\t\tisFirst=false;\n\t\t\t\t\t}\n\t\t\t\t\tcpu.setMem(con, index);\t\t\t\t\t\n\t\t\t\t\tline++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException e1) {\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\tSystem.out.println(\"The PC value is: \");\n\t\t\tSystem.out.println(cpu.getPc());\n\t\t\t//Call the function to show the data on the screen\n\t\t\tShowData();\n\t\t}", "public void testParFileReading() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n\n oManager = new GUIManager(null);\n \n //Valid file 1\n oManager.clearCurrentData();\n sFileName = writeFile1();\n oManager.inputXMLParameterFile(sFileName);\n SeedPredationBehaviors oPredBeh = oManager.getSeedPredationBehaviors();\n ArrayList<Behavior> p_oBehs = oPredBeh.getBehaviorByParameterFileTag(\"DensDepRodentSeedPredation\");\n assertEquals(1, p_oBehs.size());\n DensDepRodentSeedPredation oPred = (DensDepRodentSeedPredation) p_oBehs.get(0);\n double SMALL_VAL = 0.00001;\n \n assertEquals(oPred.m_fDensDepDensDepCoeff.getValue(), 0.07, SMALL_VAL);\n assertEquals(oPred.m_fDensDepFuncRespExpA.getValue(), 0.02, SMALL_VAL);\n\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(0)).\n floatValue(), 0.9, SMALL_VAL);\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(1)).\n floatValue(), 0.05, SMALL_VAL);\n\n //Test grid setup\n assertEquals(1, oPred.getNumberOfGrids());\n Grid oGrid = oManager.getGridByName(\"Rodent Lambda\");\n assertEquals(1, oGrid.getDataMembers().length);\n assertTrue(-1 < oGrid.getFloatCode(\"rodent_lambda\")); \n \n }\n catch (ModelException oErr) {\n fail(\"Seed predation validation 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 }", "private void defaultConfig(){\n\t\t\n\t\t String status =\"\";\n\t\t try {\n\t\t \tstatus =\"reading control file\";\n\t\t \tString aFile = controlfileTF.getText();\n\t\t\t config.controlfile = aFile;\n\n\t\t BufferedReader input = new BufferedReader(new FileReader(aFile));\n\t\t try {\n\t\t \n\t\t config.outputdir = input.readLine();\t\t \n\t\t outputdirTF.setText(config.outputdir);\n\t\t config.reginputdir = input.readLine();\t\t \n\t\t reginputdirTF.setText(config.reginputdir);\n\t\t config.grdinputdir = input.readLine();\t\t \n\t\t grdinputdirTF.setText(config.grdinputdir);\n\t\t config.eqchtinputdir = input.readLine();\t\t \n\t\t eqchtinputdirTF.setText(config.eqchtinputdir);\n\t\t config.spchtinputdir = input.readLine();\t\t \n\t\t spchtinputdirTF.setText(config.spchtinputdir);\n\t\t config.trchtinputdir = input.readLine();\t\t \n\t\t trchtinputdirTF.setText(config.trchtinputdir);\n\t\t config.restartinputdir = input.readLine();\t\t \n\t\t restartinputdirTF.setText(config.restartinputdir);\n\t\t config.calibrationdir = input.readLine();\t\t \n\t\t calibrationdirTF.setText(config.calibrationdir);\n\t\t \n\t\t config.runstage = input.readLine();\n\t\t if (config.runstage.equalsIgnoreCase(\"eq\")) {\n\t\t \trunstageRB[0].setSelected(true);\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sp\")) {\n\t\t \trunstageRB[1].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"tr\")) {\n\t\t \trunstageRB[2].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sptr\")) {\n\t\t \trunstageRB[3].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.initmode = input.readLine();\t\t \n\t\t if (config.initmode.equalsIgnoreCase(\"lookup\")) {\n\t\t \tinitmodeRB[0].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"restart\")) {\n\t\t \tinitmodeRB[1].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"sitein\")) {\n\t\t \tinitmodeRB[2].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.climatemode = input.readLine();\t\t \n\t\t if (config.climatemode.equalsIgnoreCase(\"normal\")) {\n\t\t \tclmmodeRB[0].setSelected(true);\n\t\t } else if (config.climatemode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tclmmodeRB[1].setSelected(true);\t\t \t\n\t\t }\n\n\t\t config.co2mode = input.readLine();\t\t \n\t\t if (config.co2mode.equalsIgnoreCase(\"initial\")) {\n\t\t \tco2modeRB[0].setSelected(true);\n\t\t } else if (config.co2mode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tco2modeRB[1].setSelected(true);\n\t\t }\n\n\t\t config.casename = input.readLine();\t\t \n\t\t casenameTF.setText(config.casename);\n \n\t\t }catch (Exception e){\n\t\t \t JOptionPane.showMessageDialog(f, status+\" failed\");\n\t\t }\n\t\t finally {\n\t\t input.close();\n\t\t }\n\t\t }\n\t\t catch (IOException ex){\n\t\t ex.printStackTrace();\n\t\t }\t\t\n\t\t}", "public static void main(String[] args) throws IOException {\n\t\tPrintWriter out = new PrintWriter(\"talent.out\");\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"talent.in\"));\n\t\tStringTokenizer token = new StringTokenizer(br.readLine());\n\t\tint N = Integer.parseInt(token.nextToken());\n\t\tW = Integer.parseInt(token.nextToken());\n\t\tarr = new Point[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ttoken = new StringTokenizer(br.readLine());\n\t\t\tarr[i] = new Point(Integer.parseInt(token.nextToken()), Integer.parseInt(token.nextToken()));\n\t\t}\n\t\tArrays.sort(arr);\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\tmapWeight = new HashMap<>();\n\t\tmapTalent = new HashMap<>();\n\t\t/*\n\t\tint totalWeight = 0;\n\t\tint totalTalent = 0;\n\t\tint index = arr.length - 1;\n\t\twhile (totalWeight < W) {\n\t\t\ttotalWeight += arr[index].x;\n\t\t\ttotalTalent += arr[index].y;\n\t\t\tindex--;\n\t\t}\n\t\t*/\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\trecurse(new HashSet<Integer>(), i, 0, 0);\n\t\t}\n\t\tint ans = (int) (globalMax * 1000);\n\t\tout.println(ans);\n\n\t\t//in.close();\n\t\tout.close();\n\t\tbr.close();\n\t}", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "void resetControlVariables() {\n a1_cnt_ = 0;\n b1_cnt_ = 0;\n x1_cnt_ = 0;\n y1_cnt_ = 0;\n lb1_cnt_ = 0;\n rb1_cnt_ = 0;\n lsb1_cnt_ = 0;\n rsb1_cnt_ = 0;\n lt1_left_cnt_ = 0;\n lt1_right_cnt_ = 0;\n\n a2_cnt_ = 0;\n b2_cnt_ = 0;\n x2_cnt_ = 0;\n y2_cnt_ = 0;\n lb2_cnt_ = 0;\n rb2_cnt_ = 0;\n lsb2_cnt_ = 0;\n rsb2_cnt_ = 0;\n\n curr_time_ = 0.0;\n loop_cnt_ = 0;\n last_imu_read_loop_id_ = -1;\n last_motor_read_loop_id_ = -1;\n last_rgb_range_stone_read_loop_id_ = -1;\n last_range_stone_read_loop_id_ = -1;\n last_range_right_read_loop_id_ = -1;\n last_range_left_read_loop_id_ = -1;\n last_range_stone_read_time_ = 0;\n last_range_right_read_time_ = 0;\n last_range_left_read_time_ = 0;\n range_stone_dist_init_min_ = 0;\n range_right_dist_init_min_ = 0;\n range_left_dist_init_min_ = 0;\n range_stone_error_detected_ = false;\n range_right_error_detected_ = false;\n range_left_error_detected_ = false;\n battery_voltage_ = 0.0;\n\n last_button_time_ = 0.0;\n last_button_a1_time_ = 0.0;\n last_button_b1_time_ = 0.0;\n last_button_rb1_time_ = 0.0;\n last_button_time2_ = 0.0;\n last_double_stone_time_ = 0.0;\n }", "public static void main(String[] args) throws IOException//ADD A THROWS CLAUSE HERE\n {\n double sum = 0; //the sum of the numbers\n int count = 0; //the number of numbers added\n double mean = 0; //the average of the numbers\n double stdDev = 0; //the standard deviation of the numbers\n String line = null; //a line from the file\n double difference; //difference between the value and the mean\n //create an object of type Decimal Format\n DecimalFormat threeDecimals = new DecimalFormat(\"0.000\");\n //create an object of type Scanner\n Scanner keyboard = new Scanner(System.in);\n String filename; // the user input file name\n //Prompt the user and read in the file name\n System.out.println(\"This program calculates statistics\"\n + \"on a file containing a series of numbers\");\n System.out.print(\"Enter the file name: \");\n filename = \"D:/Program Files/JetBrains/test1/Lab/src/xyz/Lab4/\" + keyboard.nextLine();\n //ADD LINES FOR TASK #4 HERE\n //Create a FileReader object passing it the filename\n FileReader fileReader = new FileReader(filename);\n //Create a BufferedReader object passing it the FileReader object.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n //priming(启动) read to read the first line of the file\n //create a loop that continues until you are at the end of the file\n while (bufferedReader.readLine() != null) {\n //convert the line to double value, add the value to the sum\n sum += Double.valueOf(bufferedReader.readLine());\n System.out.println(bufferedReader.readLine());\n //increment the counter\n count++;\n }\n //read a new line from the file\n //close the input file\n bufferedReader.close();\n //store the calculated mean\n mean = sum / count;\n\n System.out.println(mean);\n //ADD LINES FOR TASK #5 HERE\n //create a FileReader object passing it the filename\n FileReader fileReader1 = new FileReader(filename);\n //create a BufferedReader object passing it the FileReader object.\n BufferedReader bufferedReader1 = new BufferedReader(fileReader1);\n //reinitialize the sum of the numbers\n sum = 0;\n //reinitialize the number of numbers added\n count = 0;\n double variance;\n while ((line = bufferedReader1.readLine()) != null) {\n\n\n //priming read to read the first line of the file\n //loop that continues until you are at the end of the file\n //convert the line into a double value and subtract the mean\n difference = Double.valueOf(line) - mean;\n //add the square of the difference to the sum\n sum += difference * difference;\n //increment the counter\n count++;\n //read a new line from the file\n }\n //close the input file\n bufferedReader1.close();\n //store the calculated standard deviation\n stdDev = sum / count;\n System.out.println(stdDev);\n //ADD LINES FOR TASK #3 HERE\n\n //create an object of type FileWriter using “Results.txt”\n FileWriter fileWriter = new FileWriter(\"D:/Program Files\" +\n \"/JetBrains/test1/Lab/src/xyz/Lab4/Results.txt\");\n\n //create an object of PrintWriter passing it the FileWriter object.\n PrintWriter printWriter = new PrintWriter(fileWriter);\n //print the results to the output file\n //print the mean and the standard deviation(标准偏差) to the output file using the three\n //decimal format.\n printWriter.println(\"mean:\" + threeDecimals.format(mean));\n printWriter.println(\"standard deviation:\" + threeDecimals.format(stdDev));\n printWriter.flush();\n //close the output file\n printWriter.close();\n }", "public static void main(String[] args){\n\n // Create file\n File file = new File(inputfileName);\n\n try {\n BufferedReader in = new BufferedReader(new FileReader(file.getAbsoluteFile()));\n try {\n\n //Read the first 3 lines\n String string1 = in.readLine();\n String string2 = in.readLine();\n String string3 = in.readLine();\n //Ignore an empty string\n in.readLine();\n\n String[] mn = string1.split(\" \");\n String[] sc = string2.split(\" \");\n\n //Initialize m, n, lineNumber, colmn, condition\n m = Integer.parseInt(mn[0]);\n n = Integer.parseInt(mn[1]);\n lineNumber = Integer.parseInt(sc[0]);\n colmn = Integer.parseInt(sc[1]);\n condition = Integer.parseInt(string3);\n\n //Validation of basic parameters\n validation(m, n, condition, lineNumber, colmn);\n\n //----------------------We alternately read all the matrices------------------------\n for (int i = 0; i < m; i++){\n String matrixStr = \"\";\n for (int j = 0; j < n; j++){\n matrixStr += in.readLine() + \" \";\n }\n in.readLine();\n\n int[] tmpIntArray = strToIntArr(matrixStr.trim().split(\" \"));\n\n if(i == 0){\n rezult = getFirstResultString(tmpIntArray);\n continue;\n }else {\n multiplication(matrixStr);\n }\n }\n\n //The desired number\n int rezultValue = rezult[colmn - 1];\n\n //Check the result of the last multiplication\n if(rezultValue >= condition){\n write((rezultValue % condition) + \"\");\n }else {\n write(rezultValue + \"\");\n }\n //---------------------------------------------------------------------------------\n } finally {\n in.close();\n }\n } catch(IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void readFile()\r\n\t{\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tx = new Scanner(new File(\"clean vipr measles results.txt\"));\r\n\t\t\t\r\n\t\t\twhile (x.hasNext())\r\n\t\t\t{\r\n\t\t\t\tString a = x.next();\r\n\t\t\t\tString b = x.next();\r\n\t\t\t\tString c = x.next();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.printf(\"%s %s %s \\n\\n\", a,b,c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tx.close();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"file not found\");\r\n\t\t}\r\n\t\r\n\t}", "public void loadData()\n\t{\n\t\tString fileName = \"YouthTobaccoUse.csv\"; //file to be read and loaded in\n\t\tScanner input = FileUtils.openToRead(fileName).useDelimiter(\",\");\n\t\tint count = 0;\n\t\tboolean isNewState = false;\n\t\tString state = \"\", measure = \"\", stateAbbr = \"\";\n\t\tdouble percent = 0.0;\n\t\tint stateDate = 0;\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tint tokenCount = 0;\n\t\t\ttokens[tokenCount] = \"\";\n\t\t\t//each line tokenized\n\t\t\tfor(int i = 0; i < line.length(); i++)\n\t\t\t{\n\t\t\t\tif(line.charAt(i) == ',')\n\t\t\t\t{\n\t\t\t\t\ttokenCount++;\n\t\t\t\t\ttokens[tokenCount] = \"\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttokens[tokenCount] += line.charAt(i);\n\t\t\t}\n\t\t\t//loads values into variables, converts String into integers and doubles\n\t\t\tString abbr = tokens[1];\n\t\t\tString name = tokens[2];\n\t\t\tString measureDesc = tokens[5];\n\t\t\tint date = convertInteger(tokens[0]);\n\t\t\tdouble percentage = 0.0;\n\t\t\tif(tokens[10].equals(\"\") == false)\n\t\t\t\tpercentage = convertDouble();\n\t\t\tif(abbr.equals(stateAbbr))\n\t\t\t{\n\t\t\t\tif(measureDesc.equals(\"Smoking Status\") \n\t\t\t\t\t\t\t\t\t|| measureDesc.equals(\"User Status\"))\n\t\t\t\t\tpercent += percentage;\n\t\t\t}\n\t\t\telse\n\t\t\t\tisNewState = true;\n\t\t\tif(isNewState)\n\t\t\t{\n\t\t\t\t//calculates the average values for each state, then adds to \n\t\t\t\t//array list, stored as fields\n\t\t\t\tpercent = (double)(percent/count);\n\t\t\t\tif(state.equals(\"Arizona\") && stateDate == 2017)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, 3.75, 2017));\n\t\t\t\telse if(state.equals(\"Guam\") == false && count != 0 && count != 1\n\t\t\t\t&& stateAbbr.equals(\"US\") == false)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, percent, stateDate));\n\t\t\t\tstate = name;\n\t\t\t\tstateAbbr = abbr; \n\t\t\t\tstateDate = date;\n\t\t\t\tisNewState = false;\n\t\t\t\tpercent = 0.0;\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t}", "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 }", "@Override\r\n \r\n public void initGrid(String filename)\r\n throws FileNotFoundException, IOException\r\n {\r\n \tFile fileToParse = new File(filename);\r\n \tScanner scanner = new Scanner(fileToParse);\r\n \tint linePositionInFile = 0;\r\n \tfinal int MAZE_SIZE_LINE_POSITION = 0;\r\n \tfinal int VALID_SYMBOLS_LINE_POSITION = 1;\r\n \tfinal int PRESET_VALUE_LINE_POSITION = 2;\r\n\t\tfinal String SYMBOL_DELIMITER = \" \";\r\n\r\n \tString[] splitString = null;\r\n \twhile(scanner.hasNextLine()){\r\n \t\t//current line to be parsed\r\n\t\t\tString parseLine = scanner.nextLine();\r\n \t\tif(linePositionInFile == MAZE_SIZE_LINE_POSITION) {\r\n \t\t\t//construct the game sizes.\r\n \t\t\t\r\n \t\t\t//System.out.println(\"DEBUG: size\" + parseLine);\r\n \t\t\tint parsedMazeSize = Integer.parseInt(parseLine);\r\n \t\t\t//set the gridSize variable\r\n \t\t\tgridSize = parsedMazeSize;\r\n \t\t\t\r\n \t\t\t//construct the game with the proper sizes.\r\n \t\t\tsymbols = new Integer[parsedMazeSize];\r\n \t\t\tgame = new Integer[parsedMazeSize][parsedMazeSize];\r\n\r\n \t\t}else if(linePositionInFile == VALID_SYMBOLS_LINE_POSITION) {\r\n \t\t\t//set valid symbols\r\n \t\t\t//System.out.println(\"DEBUG: symbols\" + parseLine);\r\n \t\t\tsplitString = parseLine.split(SYMBOL_DELIMITER);\r\n \t\t\tfor(int i = 0; i < symbols.length && i < splitString.length; ++i) {\r\n \t\t\t\tsymbols[i] = Integer.parseInt(splitString[i]);\r\n \t\t\t}\r\n \t\t}else if(linePositionInFile >= PRESET_VALUE_LINE_POSITION) {\r\n \t\t\t//System.out.println(\"DEBUG: inserting preset\" + parseLine);\r\n \t\t\t/*\r\n \t\t\t * example = 8,8 7\r\n \t\t\t * below parses and splits the string up to usable values to \r\n \t\t\t * then insert into the game, as preset value constraints.\r\n \t\t\t * \r\n \t\t\t */\r\n \t\t\t\r\n \t\t\tsplitString = parseLine.split(SYMBOL_DELIMITER);\r\n \t\t\tString[] coordinates = splitString[0].split(\",\");\r\n \t\t\tint xCoordinate = Integer.parseInt(coordinates[0]);\r\n \t\t\tint yCoordinate = Integer.parseInt(coordinates[1]);\r\n \t\t\tint presetValueToInsert = Integer.parseInt(splitString[1]);\r\n \t\t\tgame[xCoordinate][yCoordinate] = presetValueToInsert;\r\n\r\n \t\t}\r\n \t\t++linePositionInFile;\r\n \t}\r\n \tscanner.close();\r\n }", "private static void generateSequence() throws FileNotFoundException {\n Scanner s = new Scanner(new BufferedReader(new FileReader(inputPath + filename)));\n\t\tlrcSeq = new ArrayList<Integer>();\n\t\tmeloSeq = new ArrayList<Integer>();\n\t\tdurSeq = new ArrayList<Integer>();\n\t\t\n\t\tString line = null;\n\t\tint wordStress;\n\t\tint pitch;\n\t\tint melStress;\n\t\tint stress;\n\t\tint duration;\n\t\t\n\t\twhile(s.hasNextLine()) {\n\t\t\tline = s.nextLine();\n\t\t\tString[] temp = line.split(\",\");\n\t\t\t\n\t\t\twordStress = Integer.parseInt(temp[1]);\n\t\t\tpitch = Integer.parseInt(temp[2]);\n\t\t\tmelStress = Integer.parseInt(temp[3]);\n\t\t\tduration = Integer.parseInt(temp[4]);\n\t\t\t\n\n\t\t\t//combine word level stress and sentence level stress\n\t\t\tstress = wordStress * 3 + melStress;\n\t\t\t/*if(stress < 0 || stress > 9) {\n\t\t\t\tSystem.out.println(\"Stress range error\");\n\t\t\t}*/\n\t\t\tlrcSeq.add(stress);\n\t\t\tmeloSeq.add(pitch);\n\t\t\tdurSeq.add(duration);\n\t\t}\n\t\t\n\t\t//calculate relative value\n\t\tfor(int i = 0;i < lrcSeq.size() -1;++i) {\n\t\t\tlrcSeq.set(i, lrcSeq.get(i+1)-lrcSeq.get(i));\n\t\t\tmeloSeq.set(i, meloSeq.get(i+1) - meloSeq.get(i));\n\t\t\tif(durSeq.get(i+1) / durSeq.get(i)>=1)\n\t\t\t\tdurSeq.set(i, durSeq.get(i+1) / durSeq.get(i));\n\t\t\telse \n\t\t\t\tdurSeq.set(i,durSeq.get(i) / durSeq.get(i+1) * (-1));\n\t\t}\n\t\tlrcSeq.remove(lrcSeq.size()-1);\n\t\tmeloSeq.remove(meloSeq.size()-1);\n\t\tdurSeq.remove(durSeq.size()-1);\n\t\t\n\t}", "StateVector(int site) {\n kLow = site;\n if (!initialized) { // Initialize the static working arrays on the first call\n logger = Logger.getLogger(StateVector.class.getName());\n tempV = new DMatrixRMaj(5,1);\n tempV2 = new DMatrixRMaj(5,1);\n tempM = new DMatrixRMaj(5,5);\n tempA = new DMatrixRMaj(5,5);\n Q = new DMatrixRMaj(5,5);\n U = CommonOps_DDRM.identity(5,5);\n Cinv = new DMatrixRMaj(5,5);\n solver = LinearSolverFactory_DDRM.symmPosDef(5);\n initialized = true;\n }\n }", "public static void main(String[] args) throws FileNotFoundException{ \n File file = new File(\"/Users/admin/NetBeansProjects/AlgoDataA3/src/algodataa3e3/output_interpret.txt\");\n Scanner input = new Scanner(file); \n \n SeparateChainingHash_A3E3<String, Integer> st = new SeparateChainingHash_A3E3<>(INTERVAL);\n //141491 words\n //9944 uniqe (with toLowerCase)\n \n //read file word by word and store in array\n while (input.hasNext()) {\n String key = input.next().toLowerCase();\n st.put(key, 1);\n }\n \n for(int i = 0; i < INTERVAL; i++){\n \n System.out.println(\"In hash #\" + (i+1) + \" there are \" + st.sizeOfList(i) + \" nodes\");\n }\n }", "public void load(final String model_file) throws Exception {\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(model_file);\n\t\t\tGZIPInputStream gin = new GZIPInputStream(in);\n\n\t\t\tObjectInputStream s = new ObjectInputStream(gin);\n\n\t\t\ts.readObject(); //this is the id\n\n\t\t\tsetFeature((String) s.readObject());\n\t\t\tsetInfo((String) s.readObject());\n\n\t\t\tprobs = (HashMap[][]) s.readObject();\n\t\t\t//classnum = s.readInt();\n\t\t\t//classnames = (ArrayList) s.readObject();\n\t\t\tint b, a = s.readInt();\n\t\t\tclassCounts = new double[a];\n\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tclassCounts[i] = s.readDouble();\n\t\t\ttotalExamplesSeen = s.readDouble();\n\t\t\t//a = s.readInt();\n\t\t\t//header = new int[a];\n\t\t\t//for (int i = 0; i < header.length; i++)\n\t\t\t//\theader[i] = s.readInt();\n\t\t\t//read in saved numbers\n\t\t\ta = s.readInt();\n\t\t\tm_seenNumbers = new double[a][];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb = s.readInt();\n\t\t\t\tm_seenNumbers[i] = new double[b];\n\t\t\t\tfor (int j = 0; j < b; j++)\n\t\t\t\t\tm_seenNumbers[i][j] = s.readDouble();\n\t\t\t}\n\t\t\t//now for weights\n\t\t\ta = s.readInt();\n\t\t\tm_Weights = new double[a][];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb = s.readInt();\n\t\t\t\tm_Weights[i] = new double[b];\n\t\t\t\tfor (int j = 0; j < b; j++)\n\t\t\t\t\tm_Weights[i][j] = s.readDouble();\n\t\t\t}\n\n\t\t\ta = s.readInt();\n\t\t\tm_NumValues = new int[a];\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tm_NumValues[i] = s.readInt();\n\n\t\t\ta = s.readInt();\n\t\t\tm_SumOfWeights = new double[a];\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tm_SumOfWeights[i] = s.readDouble();\n\n\n\t\t\tm_StandardDev = s.readDouble();\n\t\t\tsetThreshold(s.readDouble());\n\t\t\tisOneClass(s.readBoolean());\n\t\t\tint len = s.readInt();\n\t\t\tfeatureArray = new boolean[len];\n\t\t\tfor (int i = 0; i < featureArray.length; i++) {\n\t\t\t\tfeatureArray[i] = s.readBoolean();\n\t\t\t}\n\t\t\tlen = s.readInt();\n\t\t\tfeatureTotals = new int[len];\n\t\t\tfor (int i = 0; i < featureTotals.length; i++) {\n\t\t\t\tfeatureTotals[i] = s.readInt();\n\t\t\t}\n\n\t\t\tinTraining = s.readBoolean();\n\n\n\t\t\t//read in ngram model\n\t\t\tString name = (String) s.readObject();\n\t\t\t//need to see which type of txt class it is.\n\t\t\ttry {\n\t\t\t\t//need to fix\n\t\t\t\tFileInputStream in2 = new FileInputStream(name);\n\t\t\t\tObjectInputStream s2 = new ObjectInputStream(in2);\n\t\t\t\tString modeltype = new String((String) s2.readObject());\n\t\t\t\ts2.close();\n\t\t\t\tif (modeltype.startsWith(\"NGram\"))\n\t\t\t\t\ttxtclass = new NGram();\n\t\t\t\telse\n\t\t\t\t\ttxtclass = new TextClassifier();\n\n\t\t\t\ttxtclass.setProgress(false);//we dont want to show subclass\n\t\t\t\t// progresses.\n\t\t\t} catch (Exception e2) {\n\t\t\t\ttxtclass = new NGram();\n\t\t\t\ttxtclass.setProgress(false);//we dont want to show subclass\n\t\t\t\t// progresses.\n\t\t\t}\n\n\t\t\ttxtclass.load(name);\n\n\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in nbayes read file:\" + e);\n\t\t}\n\t\t//now that we've loaded, its time to set the flag to true.\n\t\t//hasModel = true;\n\t\t/*for(int i=0;i<MLearner.NUMBER_CLASSES;i++)\n\t\t{\t\n\t\t\tif(classCounts[i]<3)\n\t\t\t\tcontinue;\n\t\t\tfor(int j=0;j<featureArray.length;j++)\n\t\t\t{\n\t\t\t\tif(featureArray[j])\n\t\t\t\t\tSystem.out.println(i+\" \"+j+\" \"+probs[i][j]);\n\t\t\t}\n\t\t}*/\n\t\tRealprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tsetFeatureBoolean(featureArray);\n\t\tinTraining = true;//easier than saving the work (although should check size fisrt\n\t}", "public void simulateRoucairolCarvalho() throws FileNotFoundException\n\t{\n\t\tHashMap<Integer, Host> nMap = constructGraph(\"config.txt\", nodeId);\n\n\t\t//System.out.println(\"[INFO]\t[\"+sTime()+\"]\tNo Of CS : \"+noOfCriticalSectionRequests+\" Mean Delay : \"+meanDelayInCriticalSection+\" Duration Of CS : \"+durationOfCriticalSection);\n\t\tstartServer();\n\t}", "public static void readProperties(String propFilename){\n\t\tString propertiesFilename = propFilename;\n\t\tProperties properties = new Properties();\n\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFilename);\n\t\t\tproperties.load(in);\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading properties \"+propertiesFilename);\n\t\t\tSystem.exit(1);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString path=\"Not set\";\n\t\tint popSize=0;\n\t\tint features=0;\n\t\tint maxGenerations=0;\n\t\tboolean log=false;\n\t\tboolean debug=false;\n\t\tboolean printbest=false;\n\t\tboolean cwd=false;\n\t\tboolean arrcache=false;\n\t\tdouble addSubRangeH;\n\t\tdouble divMultRangeH;\n\t\tdouble randomThicknessRange;\n\t\tdouble randomVelocityRange;\n\n\t\tdouble addSubRangeVS;\n\t\tdouble divMultRangeVS;\n\n\t\tint zThreshold=0;\n\t\tboolean useThreshold = true;\n\n\tif(properties.containsKey(\"path\")){\n\t\tpath = ((String)properties.get(\"path\"));\n\t\tif(properties.containsKey(\"cwd\")){\n\t\t\tcwd = Boolean.parseBoolean((String)properties.get(\"cwd\"));\n\t\t}\n\t\tc.path=path;\n\t\tc.setPaths(cwd);\n\t}else{\n\t\tSystem.out.println(\"Path : \"+path);\n\t\tSystem.exit(1);\n\t}if(properties.containsKey(\"populationSize\")){\n\t\tpopSize = Integer.parseInt((String)properties.get(\"populationSize\"));\n\t\tc.populationSize =popSize;\n\t}if(properties.containsKey(\"printBest\")){\n\t\tprintbest = Boolean.parseBoolean((String)properties.get(\"printBest\"));\n\t\tc.printBest=printbest;\n\t}if(properties.containsKey(\"maxGenerations\")){\n\t\tmaxGenerations = Integer.parseInt((String)properties.get(\"maxGenerations\"));\n\t\tc.maxGenerations=maxGenerations;\n\t}if(properties.containsKey(\"log\")){\n\t\tlog = Boolean.parseBoolean((String)properties.get(\"log\"));\n\t\tc.log=log;\n\t}if(properties.containsKey(\"debug\")){\n\t\tdebug = Boolean.parseBoolean((String)properties.get(\"debug\"));\n\t\tc.debug=debug;\n\t}if(properties.containsKey(\"features\")){\n\t\tfeatures = Integer.parseInt((String)properties.get(\"features\"));\n\t\tc.features=features;\n\t}if(properties.containsKey(\"addSubRangeH\")){\n\t\taddSubRangeH = Double.parseDouble((String)properties.get(\"addSubRangeH\"));\n\t\tc.addSubRangeH=addSubRangeH;\n\t}if(properties.containsKey(\"addSubRangeVS\")){\n\t\taddSubRangeVS = Double.parseDouble((String)properties.get(\"addSubRangeVS\"));\n\t\tc.addSubRangeVS=addSubRangeVS;\n\t}if(properties.containsKey(\"divMultRangeH\")){\n\t\tdivMultRangeH = Double.parseDouble((String)properties.get(\"divMultRangeH\"));\n\t\tc.divMultRangeH=divMultRangeH;\n\t}if(properties.containsKey(\"divMultRangeVS\")){\n\t\tdivMultRangeVS = Double.parseDouble((String)properties.get(\"divMultRangeVS\"));\n\t\tc.divMultRangeVS=divMultRangeVS;\n\t}if(properties.containsKey(\"randomThicknessRange\")){\n\t\trandomThicknessRange = Double.parseDouble((String)properties.get(\"randomThicknessRange\"));\n\t\tc.randomThicknessRange=randomThicknessRange;\n\t}if(properties.containsKey(\"randomVelocityRange\")){\n\t\trandomVelocityRange = Double.parseDouble((String)properties.get(\"randomVelocityRange\"));\n\t\tc.randomVelocityRange=randomVelocityRange;\n\t}if(properties.containsKey(\"zThreshold\")){\n\t\tzThreshold = Integer.parseInt((String)properties.get(\"zThreshold\"));\n\t\tc.zThreshold=zThreshold;\n\t}if(properties.containsKey(\"useThreshold\")){\n\t\tuseThreshold = Boolean.parseBoolean((String)properties.get(\"useThreshold\"));\n\t\tc.useThreshold=useThreshold;\n\t}\n\n\tSystem.out.println(\" Debug? \"+debug + \" | Log? \"+ log + \" | printBest? \"+ printbest);\n\tSystem.out.println(\"Pop: \"+c.populationSize+\" | Max Gens: \"+ maxGenerations+ \"\\nPath: \"+c.path);\n\tSystem.out.println(\"randomThicknessRange :\"+c.randomThicknessRange+\" randomVelocityRange :\"+c.randomVelocityRange);\n\tSystem.out.println(\"AddSubRange H :\"+c.addSubRangeH+\" VS :\"+c.addSubRangeVS);\n\tSystem.out.println(\"divMultRange H :\"+c.divMultRangeH+\" VS :\"+c.divMultRangeVS);\n\tSystem.out.println(\"Threshold ? \"+c.useThreshold+\" : \"+c.zThreshold);\n\t}", "public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }", "public static void createsparse() {\n\t\tmatrix=new int[row][col];\n\t\tString sparseRow=\"\";\n\t\t\n\t\ttry{\n\t Scanner reader = new Scanner(file);\n\t int counter=0;\n\t while(reader.hasNextLine()){\n\t sparseRow=reader.nextLine();\n\t String[] seperatedRow = sparseRow.split(\"\\t\");\n\t for(int i=0;i<seperatedRow.length;i++) {\n\t \t matrix[counter][i]=Integer.parseInt(seperatedRow[i]);\n\t }\n\t counter++;\n\t }\n\t reader.close();\n\t }catch (FileNotFoundException e) {\n\t \t e.printStackTrace();\n\t }\n\t}", "private void run() throws Exception {\n\t\tScanner sc = new Scanner(new File(\"src\\\\input.txt\"));\r\n\t\tPrintWriter pw = new PrintWriter(\"output.txt\");\r\n\t\tint tc = sc.nextInt();\r\n\t\tcol = new int[1000];\r\n\t\te = new int[2000];\r\n\t\tnext = new int[2000];\r\n\t\tf = new int[1000];\r\n\t\ta = new int[1000];\r\n\t\tb = new int[1000];\r\n\t\tfor (int t = 1; t <= tc; t++) {\r\n\t\t\tn = sc.nextInt();\r\n\t\t\tint best = Integer.MAX_VALUE;\r\n\t\t\tec = 0;\r\n\t\t\tArrays.fill(f, -1);\r\n\t\t\tfor (int i = 0; i < n - 1; i++) {\r\n\t\t\t\tint x = sc.nextInt() - 1;\r\n\t\t\t\tint y = sc.nextInt() - 1;\r\n\t\t\t\tadd(x, y);\r\n\t\t\t\tadd(y, x);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tArrays.fill(col, 0);\r\n\t\t\t\tif (i == 1)\r\n\t\t\t\t\ti += 0;\r\n\t\t\t\tgo(i);\r\n\t\t\t\tif (b[i] == 4)\r\n\t\t\t\t\tbest += 0;\r\n\t\t\t\tbest = Math.min(best, b[i]);\r\n\t\t\t}\r\n\t\t\tSystem.err.println(t);\r\n\t\t\tpw.printf(\"Case #%d: %d\\n\", t, best);\r\n\t\t}\r\n\t\tpw.close();\r\n\t}", "public static void main(String args[]) throws Exception {\n\n\t\tString file = \"B-small-attempt0\";\n\n\t\tObject[] pairIO = IO.openIO(file);\n\t\tBufferedReader red = (BufferedReader) pairIO[0];\n\t\tPrintWriter wr = (PrintWriter) pairIO[1];\n\n\n\t\tint problemas = Integer.parseInt(red.readLine());\n\t\touter: for (int w = 0 ; w < problemas ; w++) {\n\t\t\tString par [] = red.readLine().split(\" \");\n\t\t\tdouble C = Double.parseDouble(par[0]);\n\t\t\tdouble F = Double.parseDouble(par[1]);\n\t\t\tdouble X = Double.parseDouble(par[2]);\n\t\t\tdouble V0 = 2;\n\t\t\t\n\t\t\tdouble mint = X/V0;\n\t\t\tdouble parSum = 0;\n\t\t\tint i = 1;\n\t\t\twhile (true) {\n\t\t\t\tdouble series = parSum + C/(V0 + (i-1)*F);\n\t\t\t\tdouble t = series + X/(V0 + i*F);\n\t\t\t\tif (t < mint) {\n\t\t\t\t\tmint = t;\n\t\t\t\t\tparSum = series;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twr.println(\"Case #\" + (w+1) + \": \" + mint);\n\t\t}\n\t}", "public List<Double> processFile() throws AggregateFileInitializationException {\n \t\t \n \t\tint maxTime = 0;\n \t\tHashMap<String, List<Double>> data = new HashMap<String,List<Double>>();\n \t\ttry {\n \t String record; \n \t String header;\n \t int recCount = 0;\n \t List<String> headerElements = new ArrayList<String>();\n \t FileInputStream fis = new FileInputStream(scenarioData); \n \t BufferedReader d = new BufferedReader(new InputStreamReader(fis));\n \t \n \t //\n \t // Read the file header\n \t //\n \t if ( (header=d.readLine()) != null ) { \n \t \t\n \t\t StringTokenizer st = new StringTokenizer(header );\n \t\t \n \t\t while (st.hasMoreTokens()) {\n \t\t \t String val = st.nextToken(\",\");\n \t\t \t headerElements.add(val.trim());\n \t\t }\n \t } // read the header\n \t /////////////////////\n \t \n \t // set up the empty lists\n \t int numColumns = headerElements.size();\n \t for (int i = 0; i < numColumns; i ++) {\n \t \tString key = headerElements.get(i);\n \t \t if(validate(key)) {\n \t \t\tdata.put(key, new ArrayList<Double>());\n \t\t }\n \t \t\n \t }\n \t \n \t // Here we check the type of the data file\n \t // by checking the header elements\n \t \n \t \n \t \n \t //////////////////////\n // Read the data\n //\n while ( (record=d.readLine()) != null ) { \n recCount++; \n \n StringTokenizer st = new StringTokenizer(record );\n int tcount = 0;\n \t\t\t\twhile (st.hasMoreTokens()) {\n \t\t\t\t\tString val = st.nextToken(\",\");\n \t\t\t\t\tString key = headerElements.get(tcount);\n \t\t\t\t\tif(validate(key)) {\n \t\t\t\t\t\tidSet.add(key);\n \t\t\t\t\t\tList<Double> dataList = data.get(key);\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tDouble dVal = new Double(val.trim());\n \t\t\t\t\t\t\tdataList.add(dVal);\n \t\t\t\t\t\t\tif (dataList.size() >= maxTime) maxTime = dataList.size();\n \t\t\t\t\t\t\tdata.put(key,dataList);\n \t\t\t\t\t\t} catch(NumberFormatException nfe) {\n \t\t\t\t\t\t\tdata.remove(key);\n \t\t\t\t\t\t\tidSet.remove(key);\n \t\t\t\t\t\t\tActivator.logInformation(\"Not a valid number (\"+val+\") ... Removing key \"+key, null);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\t\t\t\n \t\t\t\t\ttcount ++;\n \t\t\t\t}\n \t\t\t} // while file has data\n } catch (IOException e) { \n // catch io errors from FileInputStream or readLine()\n \t Activator.logError(\" IOException error!\", e);\n \t throw new AggregateFileInitializationException(e);\n }\n \n List<Double> aggregate = new ArrayList<Double>();\n for (int i = 0; i < maxTime; i ++) {\n \t aggregate.add(i, new Double(0.0));\n }\n // loop over all location ids\n Iterator<String> iter = idSet.iterator();\n while((iter!=null)&&(iter.hasNext())) {\n \t String key = iter.next();\n \t List<Double> dataList = data.get(key);\n \t for (int i = 0; i < maxTime; i ++) {\n \t\t double val = aggregate.get(i).doubleValue();\n \t\t val += dataList.get(i).doubleValue();\n \t aggregate.set(i,new Double(val));\n }\n }\n \n return aggregate;\n \t }", "public void readNetworkFile(String networkFilename)\n\t\tthrows IOException, NumberFormatException {\n\t\tif(DEBUG) System.out.println(\"reading network file from:\"+networkFilename);\n\t\tBufferedReader br = new BufferedReader(new FileReader(networkFilename));\n\t\tString line;\n\t\t// on the first line is the number of following lines that describe vertices\n\t\tint numVariables = -1;\n\t\tif((line = br.readLine()) != null){\n\t\t\tnumVariables = Integer.valueOf(line);\n\t\t}else{\n\t\t\tbr.close();\n\t\t\tthrow new IOException();\n\t\t}\n\t\tif(numVariables<0) {\n\t\t\tbr.close();\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\tfor(int i = 0;i<numVariables;i++){\n\t\t\tif((line = br.readLine()) != null){\n\t\t\t\tString[] tokenized = line.split(\" \");\n\t\t\t\tString variableName = tokenized[0];\n\t\t\t\ttokenized = tokenized[1].split(\",\");//values\n//\t\t\t\tSystem.out.printf(\"var:%s values:\",variableName);\n//\t\t\t\tfor(int q = 0; q < tokenized.length; q++) {\n//\t\t\t\t\tSystem.out.printf(\"%s \", tokenized[q]);\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n\t\t\t\tFactor.addVariable(variableName, new ArrayList<String>(Arrays.asList(tokenized)));\n\t\t\t}else{\n\t\t\t\tbr.close();\n\t\t\t\tthrow new IOException(\"inconsistent network file.\");\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t}", "public static void getProblem(String filename){\r\n String line = \"\";\r\n try {\r\n //Get the problem instance\r\n reader = new BufferedReader(new FileReader(filename));\r\n line = reader.readLine();\r\n\r\n //Assume the first line contains the Universe\r\n inString = line.split(\",\");\r\n\r\n for (int i = 0; i < inString.length; i++) {\r\n universe.add(Integer.parseInt(inString[i]));\r\n }\r\n Collections.sort(universe);\r\n System.out.println(\"Universe:\" + universe);\r\n\r\n //Gather in the sets\r\n line = reader.readLine();\r\n while (line != null){\r\n inString = line.split(\",\");\r\n for (int i = 0; i < inString.length; i++) {\r\n set.add(Integer.parseInt(inString[i]));\r\n }\r\n //System.out.println(\"Set: \" + set);\r\n sets.add(set);\r\n set = new ArrayList<Integer>();\r\n line = reader.readLine();\r\n\r\n //Create a blank pheromone\r\n pheremones.add(0);\r\n visited.add(0);\r\n }\r\n System.out.println(\"Sets: \" + sets);\r\n\r\n //Create the pheremones\r\n //System.out.println(\"PheremoneSize: \" + pheremones.size());\r\n\r\n //Set the degradation\r\n //degrade = generationSize/2;\r\n\r\n }catch(FileNotFoundException e){System.out.println(\"File Not Found : \" + filename);}\r\n catch(Exception e){\r\n System.out.println(\"ERROR in getProblem\");\r\n System.out.println(\"File Name: \" + filename);\r\n System.out.println(\"Universe: \" + universe);\r\n System.out.println(\"Line: \" + line);\r\n System.out.println(\"InString: \" + inString.toString());\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }", "public static final void main( String[] args )\n {\n MixedRandomAccessFile fin = null;\n try {\n fin = new MixedRandomAccessFile( \"tmpfile\", \"rw\" );\n // } catch ( FileNotFoundException ferr ) {\n } catch ( IOException ferr ) {\n ferr.printStackTrace();\n System.exit( 1 );\n }\n\n\t// System.out.println( \"version_ID's disk-footprint = \"\n\t// + getStringByteSize( version_ID ) );\n try {\n if ( args[ 0 ].trim().equals( \"write\" ) )\n fin.writeString( \"SLOG 2.0.0\" );\n if ( args[ 0 ].trim().equals( \"read\" ) )\n System.out.println( fin.readString() );\n } catch ( IOException ioerr ) {\n ioerr.printStackTrace();\n System.exit( 1 );\n }\n }", "public void init() throws IOException {\n restart(scan.getStartRow());\n }", "public void initVariables() throws Exception {\n\n\t\tclockTomasulo = clockTomasulo.getInstance();\n\t\tclockTomasulo.ResetClock();\n\t\t// OperationFileParser file_parser = new OperationFileParser( data_file\n\t\t// );\n\n\t\t// Iniatialize containers for instructions and registers\n\t\t// operations = new OperationList();\n\t\tregistersTomasulo = new RegisterFiles();\n\n\t\t// file_parser.parseFile( operations );\n\n\t\t/*\n\t\t * // Create and intialize Reservation Stations alu_rsTomasulo = new\n\t\t * ALUStation[8];\n\t\t * \n\t\t * \n\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] = new\n\t\t * ALUStation(\"Add1\"); alu_rsTomasulo[2] = new ALUStation(\"Add2\");\n\t\t * alu_rsTomasulo[3] = new ALUStation(\"Mul1\"); alu_rsTomasulo[4] = new\n\t\t * ALUStation(\"Mul2\"); alu_rsTomasulo[5] = new ALUStation(\"Div1\");\n\t\t * alu_rsTomasulo[6] = new ALUStation(\"Div2\"); alu_rsTomasulo[7] = new\n\t\t * ALUStation(\"Div3\");\n\t\t */\n\t\t/*\n\t\t * MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t * MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t * MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t * MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\t\t */\n\n\t\tinstruction_to_stationTomasulo = new HashMap<String, Integer[]>();\n\t\t// Memory Indices\n\t\tinstruction_to_stationTomasulo.put(\"LD\", new Integer[] { 0, 1 });\n\t\tinstruction_to_stationTomasulo.put(\"SD\", new Integer[] { 2, 3 });\n\n\t\t/*\n\t\t * // ALU Indices instruction_to_stationTomasulo.put(\"DADDI\", new\n\t\t * Integer[] { 0 }); instruction_to_stationTomasulo.put(\"ADDD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"SUBD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"MULD\", new\n\t\t * Integer[] { 3, 4, 5 }); instruction_to_stationTomasulo.put(\"DIVD\",\n\t\t * new Integer[] { 6, 7, 8, 9 });\n\t\t */\n\n\t\ttry {\n\t\t\t/*\n\t\t\t * [pipeline] PipeFPAddSub=1 PipeFPMult=1 PipeFPDivide=1\n\t\t\t * PipeIntDivide=1 [scorboard] ScoreInteger=1 ScoreAddSub=2\n\t\t\t * ScoreMult=10 ScoreDivide=40 [tomasulo] TomInteger=2 TomAddI=1\n\t\t\t * TomAddSub=4 TomMult=7 TomDivide=25\n\t\t\t */\n\t\t\tWini ini;\n\t\t\t/* Load the ini file. */\n\t\t\tini = new Wini(new File(\"config/settings.ini\"));\n\n\t\t\tint TomInteger = ini.get(\"tomasulo\", \"TomInteger\", int.class);\n\t\t\tint TomAddI = ini.get(\"tomasulo\", \"TomAddI\", int.class);\n\t\t\tint TomAddSub = ini.get(\"tomasulo\", \"TomAddSub\", int.class);\n\t\t\tint TomMult = ini.get(\"tomasulo\", \"TomMult\", int.class);\n\t\t\tint TomDivide = ini.get(\"tomasulo\", \"TomDivide\", int.class);\n\n\t\t\tint TomNumInteger = ini.get(\"tomasulo\", \"TomNumInteger\", int.class);\n\t\t\tint TomNumAddSub = ini.get(\"tomasulo\", \"TomNumAddSub\", int.class);\n\t\t\tint TomNumMult = ini.get(\"tomasulo\", \"TomNumMult\", int.class);\n\t\t\tint TomNumDiv = ini.get(\"tomasulo\", \"TomNumDiv\", int.class);\n\t\t\tint TomNumLoad = ini.get(\"tomasulo\", \"TomNumLoad\", int.class);\n\t\t\tint TomNumStore = ini.get(\"tomasulo\", \"TomNumStore\", int.class);\n\n\t\t\tInteger[] arrayTomNumInteger;\n\t\t\tInteger[] arrayTomNumAddSub;\n\t\t\tInteger[] arrayTomNumMult;\n\t\t\tInteger[] arrayTomNumDiv;\n\n\t\t\t// Create a mapping of instructions to execution time\n\t\t\tinstruction_to_timeTomasulo = new HashMap<String, Integer>();\n\t\t\t// Memory Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"LD\", new Integer(TomInteger));\n\t\t\tinstruction_to_timeTomasulo.put(\"SD\", new Integer(TomInteger));\n\n\t\t\t// ALU Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"DADDI\", new Integer(TomAddI));\n\t\t\tinstruction_to_timeTomasulo.put(\"DADD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"ADDD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"SUBD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"MULD\", new Integer(TomMult));\n\t\t\tinstruction_to_timeTomasulo.put(\"DIVD\", new Integer(TomDivide));\n\n\t\t\t// Create and intialize Reservation Stations\n\t\t\talu_rsTomasulo = new ALUStation[TomNumInteger + TomNumAddSub + TomNumMult + TomNumDiv];\n\n\t\t\t// ALU Indices\n\t\t\tarrayTomNumInteger = new Integer[TomNumInteger];\n\t\t\tfor (int i = 0; i < TomNumInteger; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Int\" + (i + 1));\n\t\t\t\tarrayTomNumInteger[i] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumInteger.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DADDI\", arrayTomNumInteger);\n\n\t\t\tarrayTomNumAddSub = new Integer[TomNumAddSub];\n\t\t\tfor (int i = TomNumInteger; i < TomNumInteger + TomNumAddSub; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Add\" + (i - TomNumInteger + 1));\n\t\t\t\tarrayTomNumAddSub[i - TomNumInteger] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumAddSub.length > 0) {\n\t\t\t\tinstruction_to_stationTomasulo.put(\"ADDD\", arrayTomNumAddSub);\n\t\t\t\tinstruction_to_stationTomasulo.put(\"SUBD\", arrayTomNumAddSub);\n\t\t\t}\n\n\t\t\tarrayTomNumMult = new Integer[TomNumMult];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub; i < TomNumInteger + TomNumAddSub + TomNumMult; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Mul\" + (i - TomNumInteger - TomNumAddSub + 1));\n\t\t\t\tarrayTomNumMult[i - TomNumInteger - TomNumAddSub] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumMult.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"MULD\", arrayTomNumMult);\n\n\t\t\tarrayTomNumDiv = new Integer[TomNumDiv];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub + TomNumMult; i < TomNumInteger + TomNumAddSub + TomNumMult\n\t\t\t\t\t+ TomNumDiv; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Div\" + (i - TomNumInteger - TomNumAddSub - TomNumMult + 1));\n\t\t\t\tarrayTomNumDiv[i - TomNumInteger - TomNumAddSub - TomNumMult] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumDiv.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DIVD\", arrayTomNumDiv);\n\n\t\t\t/*\n\t\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] =\n\t\t\t * new ALUStation(\"Add1\"); alu_rsTomasulo[2] = new\n\t\t\t * ALUStation(\"Add2\"); alu_rsTomasulo[3] = new ALUStation(\"Mul1\");\n\t\t\t * alu_rsTomasulo[4] = new ALUStation(\"Mul2\"); alu_rsTomasulo[5] =\n\t\t\t * new ALUStation(\"Div1\"); alu_rsTomasulo[6] = new\n\t\t\t * ALUStation(\"Div2\"); alu_rsTomasulo[7] = new ALUStation(\"Div3\");\n\t\t\t */\n\n\t\t\t// array contain of number of load andstore units\n\t\t\tMemReservationTomasulo = new MemStation[TomNumLoad + TomNumStore];\n\t\t\tfor (int i = 0; i < TomNumLoad; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Load\" + (i + 1));\n\n\t\t\t}\n\t\t\tfor (int i = TomNumLoad; i < TomNumLoad + TomNumStore; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Store\" + (i - TomNumLoad + 1));\n\n\t\t\t}\n\t\t\t// MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t\t// MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t\t// MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t\t// MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\n\t\t} catch (InvalidFileFormatException e) {\n\t\t\tSystem.out.println(\"Invalid file format.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem reading file.\");\n\t\t}\n\n\t\t// Mapping of aliases to Registers\n\t\talias_to_registerTomasulo = new HashMap<String, String>();\n\n\t\t// Initalize the Memory Buffer\n\t\tMemoryBufferTomasulo = new HashMap<String, Integer>();\n\n\t\tCurrentInstTomasulo = 1;\n\n\t}", "void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );" ]
[ "0.6113667", "0.5858801", "0.5572238", "0.5524503", "0.53820956", "0.53512466", "0.53385234", "0.5335101", "0.53193206", "0.5307737", "0.52901155", "0.5282326", "0.5245557", "0.5239185", "0.5234422", "0.5228224", "0.52134246", "0.51851135", "0.51799434", "0.51430213", "0.5137432", "0.5133496", "0.5122813", "0.5115919", "0.5091745", "0.5082498", "0.50784904", "0.50680816", "0.50512743", "0.5046872", "0.5018577", "0.50048435", "0.4970183", "0.49680126", "0.49417305", "0.4929112", "0.49123287", "0.49053806", "0.4904521", "0.49036428", "0.48946014", "0.4893292", "0.48872575", "0.488342", "0.48671684", "0.4865024", "0.48620492", "0.48613447", "0.48522988", "0.48469764", "0.4836831", "0.48290128", "0.48256558", "0.48136762", "0.47972625", "0.4790684", "0.4790146", "0.4784635", "0.47827148", "0.47763357", "0.47755635", "0.47715026", "0.47659606", "0.47605345", "0.47592047", "0.4757409", "0.4755397", "0.4752502", "0.47510105", "0.47498104", "0.47492248", "0.47488967", "0.47475252", "0.47447318", "0.47439468", "0.47422066", "0.47418666", "0.4740162", "0.47395715", "0.47353214", "0.47345096", "0.47326767", "0.4722393", "0.47216046", "0.47171363", "0.47155163", "0.47152948", "0.47119012", "0.4703808", "0.46982232", "0.4697507", "0.46972534", "0.4696397", "0.46950346", "0.46946678", "0.46935436", "0.46901685", "0.4689459", "0.46879742", "0.46852016", "0.46823144" ]
0.0
-1
get options from command line
public static void main(String[] args) throws IOException { CommandLineParser parser = new DefaultParser(); Options options = new Options(); Option optModel = OptionBuilder.withArgName("model") .hasArg() .withDescription("model used for simulation: \n\nmistransmission\n constraint\n constraintWithMistransmission\n prior\n priorWithMistransmission (default)") .create("model"); options.addOption(optModel); options.addOption("stochastic", false, "sample from previous generation's distributions"); options.addOption("superspeakers", false, "20% of speakers in grouped distance model connect to other group"); Option optLogging = OptionBuilder.withArgName("logging") .hasArg() .withDescription("logging level: \nnone \nsome \nall \ntabular \ntroubleshooting") .create("logging"); options.addOption(optLogging); Option optFreqNoun = OptionBuilder.withArgName("freqNoun") .hasArg() .withDescription("noun frequency of the target word") .create("freqNoun"); options.addOption(optFreqNoun); Option optFreqVerb = OptionBuilder.withArgName("freqVerb") .hasArg() .withDescription("verb frequency of the target word") .create("freqVerb"); options.addOption(optFreqVerb); Option optMisProbP = OptionBuilder.withArgName("misProbNoun") .hasArg() .withDescription("mistransmission probability for nouns") .create("misProbP"); options.addOption(optMisProbP); Option optMisProbQ = OptionBuilder.withArgName("misProbVerb") .hasArg() .withDescription("mistransmission probability for verbs") .create("misProbQ"); options.addOption(optMisProbQ); Option optLambda11 = OptionBuilder.withArgName("prior11General") .hasArg() .withDescription("general prior probability for {1,1} stress pattern") .create("prior11General"); options.addOption(optLambda11); Option optLambda22 = OptionBuilder.withArgName("prior22General") .hasArg() .withDescription("general prior probability for {2,2} stress pattern") .create("prior22General"); options.addOption(optLambda22); Option optTargetLambda11 = OptionBuilder.withArgName("prior11Target") .hasArg() .withDescription("prior probability for {1,1} stress pattern in the target word prefix class") .create("prior11Target"); options.addOption(optTargetLambda11); Option optTargetLambda22 = OptionBuilder.withArgName("prior22Target") .hasArg() .withDescription("prior probability for {2,2} stress pattern in the target word prefix class") .create("prior22Target"); options.addOption(optTargetLambda22); Option optDistModel = OptionBuilder.withArgName("distModel") .hasArg() .withDescription("distance model:\n none\n absolute\n probabilistic\n random\n lattice\n grouped (default)") .create("distModel"); options.addOption(optDistModel); options.addOption("priorClass", false, "use word pair prefixes as a class for sharing prior probabilities"); Option optNumSpeakers = OptionBuilder.withArgName("numSpeakers") .hasArg() .withDescription("number of speakers") .create("numSpeakers"); options.addOption(optNumSpeakers); Option optTargetWord = OptionBuilder.withArgName("targetWord") .hasArg() .withDescription("target word for logging") .create("targetWord"); options.addOption(optTargetWord); options.addOption("help", false, "print this message"); try { // parse the command line arguments CommandLine line = parser.parse(options, args); if(line.hasOption("model")) { model = line.getOptionValue("model"); } if(line.hasOption("stochastic")) { stochastic = true; } else { stochastic = false; } if(line.hasOption("superspeakers")) { superspeakers = true; } else { superspeakers = false; } if(line.hasOption("logging")) { logging = line.getOptionValue("logging"); } if(line.hasOption("freqNoun")) { freqNoun = Integer.parseInt(line.getOptionValue("freqNoun")); } if(line.hasOption("freqVerb")) { freqVerb = Integer.parseInt(line.getOptionValue("freqVerb")); } if(line.hasOption("misProbP")) { misProbP = Integer.parseInt(line.getOptionValue("misProbP")); } if(line.hasOption("misProbQ")) { misProbQ = Integer.parseInt(line.getOptionValue("misProbQ")); } if(line.hasOption("targetWord")) { targetWord = line.getOptionValue("targetWord"); } if(line.hasOption("prior11General")) { lambda11 = Integer.parseInt(line.getOptionValue("prior11General")); } if(line.hasOption("prior22General")) { lambda22 = Integer.parseInt(line.getOptionValue("prior22General")); } if(line.hasOption("prior11Target")) { targetClassLambda11 = Integer.parseInt(line.getOptionValue("prior11Target")); } if(line.hasOption("prior22Target")) { targetClassLambda22 = Integer.parseInt(line.getOptionValue("prior22Target")); } if(line.hasOption("distModel")) { distModel = line.getOptionValue("distModel"); } if(line.hasOption("priorClass")) { priorClass = true; } else { priorClass = false; } if(line.hasOption("numSpeakers")) { numSpeakers = Integer.parseInt(line.getOptionValue("numSpeakers")); } if(line.hasOption("help")) { HelpFormatter formatter = new HelpFormatter(); formatter.printHelp( "StressChange", options ); } } catch ( ParseException exp) { System.out.println("Unexpected exception: " + exp.getMessage()); } if (StressChange.logging.equals("tabular")){ System.out.println("Iteration,Speaker,Group,Word,Prefix,Noun prob,Verb prob"); } else if (!StressChange.logging.equals("none")) { System.out.println("Simulating " + model + " model with " + distModel + " distance model, showing " + logging + " words"); System.out.println("N1 (target word noun frequency): " + freqNoun); System.out.println("N2 (target word verb frequency): " + freqVerb); } initialStress = new ReadPairs(System.getProperty("user.dir") + "/src/initialStressSmoothed.txt").OpenFile(); // read in initial pairs SimState state = new StressChange(System.currentTimeMillis()); state.start(); do { convos.removeAllEdges(); if (! StressChange.logging.equals("none") && !StressChange.logging.equals("tabular")){ System.out.println(""); } //if (! StressChange.logging.equals("none")){ System.out.println("Generation at year " + (1500 + (state.schedule.getSteps()) * 25)); } // 25-year generations if (! StressChange.logging.equals("none") && !StressChange.logging.equals("tabular")){ System.out.println("==== ITERATION " + (state.schedule.getSteps() + 1) + " ===="); } if (!state.schedule.step(state)) { break; } step++; } while (state.schedule.getSteps() < 49); // maximum 50 iterations state.finish(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getOptions() {\n return argv;\n }", "public static Options getCmdLineOptions(){\n\t\tOptions options = new Options();\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"outputPath\").hasArg().withDescription(\"output sequence lengths to a file [if not specified, lengths are printed to stdout]\").create(Thunder.OPT_PATH_OUTPUT));\n\t\t//\t\toptions.addOption(OptionBuilder.withArgName(\"maxExpectedLength\").hasArg().withDescription(\"print sequences exceeding this maximum expected size (for debugging + QC)\").create(\"m\"));\n\t\treturn options;\n\t}", "public abstract String[] getOptions();", "private static Map<String, String> getOptions(String[] args)\n {\n Map<String, String> options = new HashMap<>();\n\n for (int i = 0; i < args.length; i++) {\n if (args[i].charAt(0) == '-') {\n if (args[i].charAt(1) == '-') {\n if (args[i].length() < 3) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n String arg = args[i].substring(2, args[i].length());\n String[] keyVal = arg.split(\"=\");\n if (keyVal.length != 2) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n String optionKey = keyVal[0];\n String optionVal = keyVal[1];\n\n if (!Arrays.asList(validOptions).contains(optionKey)) {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n\n options.put(optionKey, optionVal);\n } else {\n throw new IllegalArgumentException(\"Not a valid argument: \" + args[i]);\n }\n }\n }\n\n return options;\n }", "@Override\n\tpublic String[] getOptions() {\n\t\tVector<String> result = new Vector<String>();\n\n\t\tresult.add(\"-populationSize\");\n\t\tresult.add(\"\" + populationSize);\n\n\t\tresult.add(\"-initialMaxDepth\");\n\t\tresult.add(\"\" + maxDepth);\n\n\t\tCollections.addAll(result, super.getOptions());\n\n\t\treturn result.toArray(new String[result.size()]);\n\t}", "private static Options getOptions() {\n Option inputOption = Option.builder(\"i\")\n .longOpt(\"input\")\n .hasArg()\n .argName(\"input file\")\n .required()\n .desc(\"The JSON input filename\")\n .build();\n Option outputOption = Option.builder(\"o\")\n .longOpt(\"output\")\n .hasArg()\n .argName(\"output file\")\n .required()\n .desc(\"The Drupal output filename\")\n .build();\n Option configOption = Option.builder(\"c\")\n .longOpt(\"config\")\n .hasArg()\n .argName(\"properties file\")\n .required()\n .desc(\"The properties file for containing Google credentials\")\n .build();\n Option helpOption = Option.builder(\"h\")\n .longOpt(\"help\")\n .desc(\"Print this message\")\n .build();\n\n Options options = new Options();\n options.addOption(inputOption);\n options.addOption(outputOption);\n options.addOption(configOption);\n options.addOption(helpOption);\n\n return options;\n }", "protected static List<String> options(String[] args) {\n List<String> options = new ArrayList<>(args.length);\n for (String arg : args) {\n if (arg.equals(\"--\")) {\n break;\n } else if (arg.startsWith(\"-\")) {\n options.add(arg);\n }\n }\n return options;\n }", "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", LongOpt.NO_ARGUMENT, null, 'h') );\n\t\toptions.add( new LongOpt(\"version\", LongOpt.NO_ARGUMENT, null, 'v') );\t\t\n\t\toptions.add( new LongOpt(\"query\", LongOpt.REQUIRED_ARGUMENT, sb, 'q') );\n\t\toptions.add( new LongOpt(\"base\", LongOpt.REQUIRED_ARGUMENT, sb, 'b') );\n\t\toptions.add( new LongOpt(\"var\", LongOpt.REQUIRED_ARGUMENT, sb, 'P') );\n\t\toptions.add( new LongOpt(\"out\", LongOpt.REQUIRED_ARGUMENT, sb, 'o') );\n\t\toptions.add( new LongOpt(\"algo\", LongOpt.REQUIRED_ARGUMENT, sb, 'S') );\n\t\toptions.add( new LongOpt(\"encoding\", LongOpt.REQUIRED_ARGUMENT, sb, 'E') );\n\t\toptions.add( new LongOpt(\"indent\", LongOpt.REQUIRED_ARGUMENT, sb, 'I') );\t\n\t\toptions.add( new LongOpt(\"strip\", LongOpt.NO_ARGUMENT, null, 's') );\t\t\n\t\toptions.add( new LongOpt(\"update\", LongOpt.REQUIRED_ARGUMENT, sb, 'u') );\t\n\t\toptions.add( new LongOpt(\"xinclude\", LongOpt.NO_ARGUMENT, null, 'x') );\t\t\n\t\toptions.add( new LongOpt(\"explain\", LongOpt.NO_ARGUMENT, null, 'e') );\n\t\toptions.add( new LongOpt(\"noexternal\", LongOpt.NO_ARGUMENT, null, 'n') );\t\t\n\t\toptions.add( new LongOpt(\"runs\", LongOpt.REQUIRED_ARGUMENT, sb, 'r') );\n\t\toptions.add( new LongOpt(\"iterations\", LongOpt.REQUIRED_ARGUMENT, sb, 'i') );\n\t\toptions.add( new LongOpt(\"docpoolcapacity\", LongOpt.REQUIRED_ARGUMENT, sb, 'C') );\n\t\toptions.add( new LongOpt(\"docpoolcompression\", LongOpt.REQUIRED_ARGUMENT, sb, 'D') );\n\t\toptions.add( new LongOpt(\"nobuilderpool\", LongOpt.NO_ARGUMENT, null, 'p') );\n\t\toptions.add( new LongOpt(\"debug\", LongOpt.NO_ARGUMENT, null, 'd') );\t\t\n\t\toptions.add( new LongOpt(\"validate\", LongOpt.REQUIRED_ARGUMENT, sb, 'V') ); \n\t\toptions.add( new LongOpt(\"namespace\", LongOpt.REQUIRED_ARGUMENT, sb, 'W') ); \n\t\toptions.add( new LongOpt(\"schema\", LongOpt.REQUIRED_ARGUMENT, sb, 'w') );\n\t\toptions.add( new LongOpt(\"filterpath\", LongOpt.REQUIRED_ARGUMENT, sb, 'f') );\n\t\toptions.add( new LongOpt(\"filterquery\", LongOpt.REQUIRED_ARGUMENT, sb, 'F') );\n\t\toptions.add( new LongOpt(\"xomxpath\", LongOpt.NO_ARGUMENT, null, 'N') );\t\t\n\t\t\n////\t\toptions.add( new LongOpt(\"loglevel\", LongOpt.REQUIRED_ARGUMENT, sb, 'l') ); setLogLevels(Level.INFO);\n\t\t\t\n\t\tthis.longOpts = new LongOpt[options.size()];\n\t\toptions.toArray(this.longOpts);\t\t\n\t}", "public abstract Options getOptions();", "private static Options readArguments(String[] args) {\n\t\tOptions result = new Options();\n\t\ttry {\n\t\t\tresult.numberClients = Integer.parseInt(args[0]);\n\t\t\tresult.trafficTime = Integer.parseInt(args[args.length - 1]);\n\t\t} catch (java.lang.NumberFormatException e) {\n\t\t\tSystem.err.println(\"Error while converting to integer. Did you run the program correctly?\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.err.println(\"Program requires at least TWO arguments, number of clients and active seconds.\");\n\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tString argsString = String.join(\" \", args);\n\n\t\tif (argsString.contains(\"-w\")) {\n\t\t\tresult.writeMode = true;\n\t\t}\n\n\t\tPattern p = Pattern.compile(\"-s ([0-9]+)\");\n\t\tMatcher m = p.matcher(argsString);\n\t\tif (m.find()) {\n\t\t\tif (args.length > 3) {\n\t\t\t\tresult.storeID = Integer.parseInt(m.group(1));\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"When single store mode is enabled, the program requires AT LEAST 4 arguments.\");\n\t\t\t\tSystem.err.println(\"$ tgpm <c> [-w] [-s <sid>] <s>\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}", "private static CommandLine parseCommandLine(String[] args) {\n Option config = new Option(CONFIG, true, \"operator config\");\n Option brokerStatsZookeeper =\n new Option(BROKERSTATS_ZOOKEEPER, true, \"zookeeper for brokerstats topic\");\n Option brokerStatsTopic = new Option(BROKERSTATS_TOPIC, true, \"topic for brokerstats\");\n Option clusterZookeeper = new Option(CLUSTER_ZOOKEEPER, true, \"cluster zookeeper\");\n Option seconds = new Option(SECONDS, true, \"examined time window in seconds\");\n options.addOption(config).addOption(brokerStatsZookeeper).addOption(brokerStatsTopic)\n .addOption(clusterZookeeper).addOption(seconds);\n\n if (args.length < 6) {\n printUsageAndExit();\n }\n\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = null;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException | NumberFormatException e) {\n printUsageAndExit();\n }\n return cmd;\n }", "String getOption();", "Map getOptions();", "public List<String> getValues(String opt) {\n //noinspection unchecked\n return m_commandLine.getValues(opt);\n }", "public List<String> getOptions() {\n List<String> options = new ArrayList<String>();\n if (!showWarnings) {\n options.add(\"-nowarn\");\n }\n addStringOption(options, \"-source\", source);\n addStringOption(options, \"-target\", target);\n addStringOption(options, \"--release\", release);\n addStringOption(options, \"-encoding\", encoding);\n return options;\n }", "List<String> getJavaOptions();", "go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();", "private static Options getOptions() {\n\t\tOptions options = new Options();\n\t\toptions.addOption(OptGenMode, \"generate\", false,\n\t\t\t\t\"generate private key sharing\");\n\t\toptions.addOption(\"h\", \"help\", false, \"Print help.\");\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"shares\")\n\t\t\t\t.withDescription(\"number of shares to generate\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptShares));\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"threshold\")\n\t\t\t\t.withDescription(\"number of requires shares\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptThreshold));\n\t\treturn options;\n\n\t}", "public static Options addOptions() {\n Options options = new Options();\n options.addOption(\"f\", true, \"The input file \");\n options.addOption(\"d\", true, \"The output directory\");\n options.addOption(\"u\", true, \"Only uber retrieval value is (1,0) default 0\");\n options.addOption(\"l\",true,\"Only Lyft Retrieval value is (1,0) default 0\");\n return options;\n }", "public static Options createOptions() {\n Options options = new Options();\n options.addOption(Option.builder(\"i\").required(true).longOpt(\"inputFile\").hasArg(true)\n .argName(\"PATH\").desc(\"this command specifies the path to the file \"\n + \"containing queries to be inputted into the tool. It is therefore mandatory\")\n .build());\n options.addOption(Option.builder(\"o\").longOpt(\"outputFile\").hasArg(true).argName(\"PATH\")\n .desc(\"this command specifies the path to the file that the tool can write \"\n + \"its results to. If not specified, the tool will simply print results\"\n + \"on the console. It is therefore optional\").build());\n options.addOption(Option.builder(\"l\").longOpt(\"limit\").hasArg(true).argName(\"INTEGER\")\n .desc(\"this command specifies the path to an integer that the tools takes \"\n + \"as a limit for the number of errors to be explored, thereby controlling\"\n + \"the runtime. It is therefore optional\").build());\n return options;\n }", "public String[] getOptions(){\n\n String[] options = new String[5];\n int current = 0;\n\n options[current++] = \"-G\"; options[current++] = \"\" + m_NumAttemptsOfGene;\n options[current++] = \"-I\"; options[current++] = \"\" + m_NumFoldersMI;\n\n while (current < options.length) {\n options[current++] = \"\";\n }\n return options;\n }", "private static void printRunOptions(){\n\t\tSystem.out.println(\"Run options:\");\n\t\tSystem.out.println(\" -simple <configFile> <pathToApplication> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -simpleSpeedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -sweep <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -sweepRemote <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)> <hostAddress> <hostPort>\");\n\t\tSystem.out.println(\" -synthesize <configFile> <pathToApplication> <methodName> <scheduleCDFG(true/false)>\");\n\t\tSystem.out.println(\" -test <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -speedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -testCGRAVerilog <configFile> <pathToApplication>\");\n\t}", "@Override\n public String[] getOptions() {\n\n Vector<String> result = new Vector<String>();\n\n Collections.addAll(result, super.getOptions());\n\n result.add(\"-a\");\n result.add(\"\" + getNumAttributes());\n\n if (getClassFlag()) {\n result.add(\"-c\");\n }\n\n return result.toArray(new String[result.size()]);\n }", "protected P parse(String options, String[] args){\n HashMap cmdFlags = new HashMap();\n String flag;\n String nextFlag=null;\n StringBuffer errors=new StringBuffer();\n /**\n First go through options to see what should be in args\n */\n for(int which=0;which<options.length();which++){\n flag = \"-\"+options.substring(which,which+1);\n if(which+1<options.length()){\n nextFlag=options.substring(which+1,which+2);\n if (nextFlag.equals(\"-\")){\n cmdFlags.put(flag,nextFlag);\n } else\n if (nextFlag.equals(\"+\")){\n cmdFlags.put(flag,nextFlag);\n /*\n mark that it is required\n if found this will be overwritten by -\n */\n this.put(flag,nextFlag);\n } else\n //JDH changed to \"_\" from \";\" because too many cmdlines mess up ;\n if (nextFlag.equals(\"_\")){\n cmdFlags.put(flag,nextFlag);\n } else\n //JDH changed to \".\" from \":\" because too many cmdlines mess up ;\n if (nextFlag.equals(\".\")){\n cmdFlags.put(flag,\" \"); //JDH changed this from \":\"\n /*\n mark that it is required\n if found this will be overwritten by value\n JDH should use \" \" so it cannot be the same as a value\n */\n this.put(flag,\" \"); // mark that it is required\n } else {\n System.out.println(\"Bad symbol \"+nextFlag+\"in option string\");\n }\n which++;\n } else {\n System.out.println(\"Missing symbol in option string at \"+which);\n }\n }\n\n int arg=0;\n for(;arg<args.length;arg++){\n if (!args[arg].startsWith(\"-\")){\n break;\n }\n flag = args[arg];\n /*\n This should tell it to quit looking for flags or options\n */\n if (flag.equals(\"--\")){\n arg++;\n break;\n }\n if (!(cmdFlags.containsKey(flag))){\n errors.append(\"\\nbad flag \"+flag);\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"-\")){\n this.put(flag,\"-\");\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"+\")){\n this.put(flag,\"-\");// turns off the + because it was found\n continue;\n }\n if (!(arg+1<args.length)){\n errors.append(\"\\nMissing value for \"+flag);\n continue;\n }\n arg++;\n this.put(flag,args[arg]);\n }\n String[] params=null;\n params = new String[args.length - arg];\n\n int n=0;\n // reverse these so they come back in the right order!\n for(;arg<args.length;arg++){\n params[n++] = args[arg];\n }\n Iterator k = null;\n Map.Entry e = null;\n if (this.containsValue(\"+\")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\"+\".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required flag \"+(String)e.getKey()+\" was not supplied.\");\n };\n }\n } \n /*\n Should change this to \" \" in accordance with remark above\n */\n //JDH changed to \" \" from \":\" in both spots below\n if (this.containsValue(\" \")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\" \".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required option \"+(String)e.getKey()+\" was not supplied.\");\n }\n }\n }\n this.put(\" \",params);\n this.put(\"*\",errors.toString());\n return this;\n }", "static void selectOptions(String[] args)\n {\n if (args.length > 0)\n {\n for (String arg : args)\n {\n switch(arg)\n {\n default:\n System.out.println(\"Usage: java PGInstance [-options]\\n\"\n + \"where options include\\n\"\n + \" <an invalid option> to print this help message\\n\"\n + \" -m -more -v -verbose to turn on verbose console messages\\n\"\n + \" -c -cheat to turn on cheats\\n\"\n + \" <no options> to run program as is\"\n );\n System.exit(0);\n break;\n\n // this silences all calls to Verbose.println()\n case \"-m\": case \"-more\": case \"-v\": case \"-verbose\":\n if (!Verbose.on)\n {\n System.out.println(\"[Verbose messages enabled.]\");\n Verbose.on = true;\n }\n break;\n\n // a Pokemon object will always output an invincible Pokemon with this option\n case \"-c\": case \"-cheat\":\n if (!Pokemon.usingCheats)\n {\n System.out.println(\"[Cheats on. (69/420/\\\"ONE PUNCH MON\\\")]\");\n Pokemon.usingCheats = true;\n }\n break;\n }\n }\n }\n }", "private void parseOptions(DataStore args) {\r\n\r\n // System.out.println(\"IN JavaWeaver.parseOptions\\n\" + args);\r\n if (args.hasValue(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER)) {\r\n clearOutputFolder = args.get(JavaWeaverKeys.CLEAR_OUTPUT_FOLDER);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.NO_CLASSPATH)) {\r\n noClassPath = args.get(JavaWeaverKeys.NO_CLASSPATH);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.INCLUDE_DIRS)) {\r\n classPath = args.get(JavaWeaverKeys.INCLUDE_DIRS).getFiles();\r\n }\r\n if (args.hasValue(JavaWeaverKeys.OUTPUT_TYPE)) {\r\n outType = args.get(JavaWeaverKeys.OUTPUT_TYPE);\r\n }\r\n if (args.hasValue(JavaWeaverKeys.SHOW_LOG_INFO)) {\r\n loggingGear.setActive(args.get(JavaWeaverKeys.SHOW_LOG_INFO));\r\n }\r\n if (args.hasValue(JavaWeaverKeys.FORMAT)) {\r\n prettyPrint = args.get(JavaWeaverKeys.FORMAT);\r\n }\r\n\r\n if (args.hasValue(JavaWeaverKeys.REPORT)) {\r\n\r\n reportGear.setActive(args.get(JavaWeaverKeys.REPORT));\r\n }\r\n\r\n }", "public static Options prepareOptions() {\n Options options = new Options();\n\n options.addOption(\"f\", \"forceDeleteIndex\", false,\n \"Force delete index if index already exists.\");\n options.addOption(\"h\", \"help\", false, \"Show this help information and exit.\");\n options.addOption(\"r\", \"realTime\", false, \"Keep for backwards compabitlity. No Effect.\");\n options.addOption(\"t\", \"terminology\", true, \"The terminology (ex: ncit_20.02d) to load.\");\n options.addOption(\"d\", \"directory\", true, \"Load concepts from the given directory\");\n options.addOption(\"xc\", \"skipConcepts\", false,\n \"Skip loading concepts, just clean stale terminologies, metadata, and update latest flags\");\n options.addOption(\"xm\", \"skipMetadata\", false,\n \"Skip loading metadata, just clean stale terminologies concepts, and update latest flags\");\n options.addOption(\"xl\", \"skipLoad\", false,\n \"Skip loading data, just clean stale terminologies and update latest flags\");\n options.addOption(\"xr\", \"report\", false, \"Compute and return a report instead of loading data\");\n\n return options;\n }", "public static void main(String[] args) {\n OptionParser parser = new OptionParser();\n parser.accepts(\"myProp\").withRequiredArg();\n OptionSet options = parser.parse(args);\n\n boolean myProp = options.hasArgument(\"myProp\");\n System.out.println(myProp);\n Object myProp1 = options.valueOf(\"myProp\");\n System.out.println(myProp1);\n }", "public static void initDefaultOptions()\r\n\t{\n\r\n\t\taddOption(HELP, true, \"show Arguments\");\r\n\t}", "private static Options createOptions() {\n \n \t\tOptions options = new Options();\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the input file / directory\");\n \t\tOptionBuilder.isRequired(true);\n \t\toptions.addOption(OptionBuilder.create(\"input\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"int\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"minimum size of file in MB to split (Default: \" + MIN_FILE_SIZE + \" MB)\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"minsize\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the ignore list file\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"ignore\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the output directory\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"output\"));\n \t\t\n \t\tOptionBuilder.withArgName(\"path\");\n \t\tOptionBuilder.hasArg(true);\n \t\tOptionBuilder.withDescription(\"path to the osmosis script template\");\n \t\tOptionBuilder.isRequired(false);\n \t\toptions.addOption(OptionBuilder.create(\"template\"));\n \t\t\n \t\treturn options;\n \t\t\n \t}", "public static Options prepCliParser()\n\t{\n\t\tOptions knowsCliDtd = new Options();\n\t\tfinal boolean needsEmbelishment = true;\n\t\tknowsCliDtd.addOption( configFlagS, configFlagLong, needsEmbelishment,\n\t\t\t\t\"path to config (ex C:\\\\Program Files\\\\apache\\\\tomcat.txt)\" );\n\t\tknowsCliDtd.addOption( verboseFlagS, verboseFlagLong,\n\t\t\t\t! needsEmbelishment, \"show debug information\" );\n\t\tknowsCliDtd.addOption( helpFlagS, helpFlagLong,\n\t\t\t\t! needsEmbelishment, \"show arg flags\" );\n\t\treturn knowsCliDtd;\n\t}", "@NonNull\n\t\tMap<String, String> getOptions();", "private static TestgenOptions parseTestgenOptions(String[] args) {\n OptionsParser parser = OptionsParser.newOptionsParser(TestgenOptions.class);\n parser.parseAndExitUponError(args);\n return parser.getOptions(TestgenOptions.class);\n }", "public Hashtable<String, Object> getOptions() {\n return options;\n }", "ImmutableList<String> mainArgs();", "public String[] getOptions() {\n\t\tString[] EvaluatorOptions = new String[0];\n\t\tString[] SearchOptions = new String[0];\n\t\tint current = 0;\n\n//\t\tif (m_ASEvaluator instanceof OptionHandler) {\n//\t\t\tEvaluatorOptions = ((OptionHandler) m_ASEvaluator).getOptions();\n//\t\t}\n//\n//\t\tif (m_ASSearch instanceof OptionHandler) {\n//\t\t\tSearchOptions = ((OptionHandler) m_ASSearch).getOptions();\n//\t\t}\n\n\t\tString[] setOptions = new String[10];\n//\t\tsetOptions[current++] = \"-E\";\n//\t\tsetOptions[current++] = getEvaluator().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(EvaluatorOptions);\n//\n//\t\tsetOptions[current++] = \"-S\";\n//\t\tsetOptions[current++] = getSearch().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(SearchOptions);\n//\t\t\n\t\t setOptions[current++] = \"-k\";\n\t\t setOptions[current++] = \"\" + getK();\n\t\t setOptions[current++] = \"-p\";\n\t\t setOptions[current++] = \"\" + getminF_Correlation();\n\n\t\twhile (current < setOptions.length) {\n\t\t\tsetOptions[current++] = \"\";\n\t\t}\n\n\t\treturn setOptions;\n\t}", "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "public static void showCommandLineOptions() {\n showCommandLineOptions(new TextUICommandLine());\n }", "private static Params parseCLI(String[] args) {\n Params params = new Params();\n\n if(args.length>1) {\n int paramIndex = 0;\n for(int i=0; i<args.length; i++) {\n String arg = args[i];\n OutputType type = OutputType.getOutputType(arg);\n if(type!=null) {\n params.outputType = type;\n paramIndex = i;\n break;\n } else if(\"-help\".equals(arg)) {\n usage();\n System.exit(0);\n }\n }\n\n params.inputFile = args[paramIndex+1];\n if(args.length>paramIndex+2) {\n params.outputFile = args[paramIndex+2];\n }\n\n } else if(args.length == 1 && \"-help\".equals(args[0])) {\n usage();\n System.exit(0);\n\n } else {\n \n System.err.println(\"Error, incorrect usage\");\n usage();\n System.exit(-1);\n\n }\n\n return params;\n }", "private void setOptions() {\n cliOptions = new Options();\n cliOptions.addOption(Option.builder(\"p\")\n .required(false)\n .hasArg()\n .desc(\"Paramaters file\")\n .type(String.class)\n .build());\n cliOptions.addOption(Option.builder(\"P\")\n .required(false)\n .hasArg()\n .desc(\"Overwrite of one or more parameters provided by file.\")\n .type(String.class)\n .hasArgs()\n .build());\n cliOptions.addOption(Option.builder(\"H\")\n .required(false)\n .desc(\"Create a parameter file model on the classpath.\")\n .type(String.class)\n .build());\n }", "public Properties getCommandLineArgs()\n {\n return this.commandLineArgs;\n }", "ImmutableList<String> vmOptions();", "public String getOptions() {\n return this.options;\n }", "private HashMap initCommonOpts() {\n HashMap _opts = new HashMap();\n \n _opts.put(\"help\", \n new Option(\"h\", \"help\", false, \"Get help.\")\n );\n _opts.put(\"version\",\n new Option(\"v\", \"version\", false, \"Print version number and exit.\")\n );\n _opts.put(\"system\",\n OptionBuilder\n .withLongOpt( \"system\" )\n .withDescription(\"Use the given filename or system identifier to find the DTD. \" +\n \"This could be a relative \" +\n \"pathname, if the DTD exists in a file on your system, or an HTTP URL. \" +\n \"The '-s' switch is optional. \" +\n \"Note that if a catalog is in use, what looks like a filename might \" +\n \"resolve to something else entirely.\")\n .hasArg()\n .withArgName(\"system-id\")\n .create('s')\n );\n _opts.put(\"doc\",\n OptionBuilder\n .withLongOpt( \"doc\" )\n .withDescription(\"Specify an XML document used to find the DTD. This could be just a \\\"stub\\\" \" +\n \"file, that contains nothing other than the doctype declaration and a root element. \" +\n \"This file doesn't need to be valid according to the DTD.\")\n .hasArg()\n .withArgName(\"xml-file\")\n .create('d')\n );\n _opts.put(\"public\",\n OptionBuilder\n .withLongOpt( \"public\" )\n .withDescription(\"Use the given public identifier to find the DTD. This would be used in \" +\n \"conjunction with an OASIS catalog file.\")\n .hasArg()\n .withArgName(\"public-id\")\n .create('p')\n );\n _opts.put(\"catalog\",\n OptionBuilder\n .withLongOpt( \"catalog\" )\n .withDescription(\"Specify a file to use as the OASIS catalog, to resolve system and \" +\n \"public identifiers.\")\n .hasArg()\n .withArgName(\"catalog-file\")\n .create('c')\n );\n _opts.put(\"title\",\n OptionBuilder\n .withLongOpt( \"title\" )\n .withDescription(\"Specify the title of this DTD.\")\n .hasArg()\n .withArgName(\"dtd-title\")\n .create('t')\n );\n _opts.put(\"roots\",\n OptionBuilder\n .withLongOpt(\"roots\")\n .withDescription(\"Specify the set of possible root elements for documents conforming \" +\n \"to this DTD.\")\n .hasArg()\n .withArgName(\"roots\")\n .create('r')\n );\n _opts.put(\"docproc\",\n OptionBuilder\n .withLongOpt(\"docproc\")\n .withDescription(\"Command to use to process structured comments. This command should \" +\n \"take its input on stdin, and produce valid XHTML on stdout.\")\n .hasArg()\n .withArgName(\"cmd\")\n .create()\n );\n _opts.put(\"markdown\",\n OptionBuilder\n .withLongOpt(\"markdown\")\n .withDescription(\"Causes structured comments to be processed as Markdown. \" +\n \"Requires pandoc to be installed on the system, and accessible to this process. \" +\n \"Same as \\\"--docproc pandoc\\\". If you want to supply your own Markdown \" +\n \"processor, or any other processor, use the --docproc option.\")\n .create('m')\n );\n _opts.put(\"param\",\n OptionBuilder\n .withLongOpt(\"param\")\n .hasArgs(2)\n .withValueSeparator()\n .withDescription(\"Parameter name & value to pass to the XSLT. You can use multiple \" +\n \"instances of this option.\")\n .withArgName( \"param=value\" )\n .create('P')\n );\n\n /* \n The 'q' here is a hack to get around some weird behavior that I can't figure out.\n If the 'q' is omitted, this option just doesn't work.\n */\n _opts.put(\"debug\",\n OptionBuilder\n .withLongOpt(\"debug\")\n .withDescription(\"Turns on debugging.\")\n .create('q')\n );\n\n return _opts;\n }", "public BwaOptions(String[] args) {\n\n\t\t//Parse arguments\n\t\tfor (String argument : args) {\n\t\t\tLOG.info(\"[\"+this.getClass().getName()+\"] :: Received argument: \" + argument);\n\t\t}\n\n\t\t//Algorithm options\n\t\tthis.options = this.initOptions();\n\n\t\t//To print the help\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\t//formatter.setWidth(500);\n\t\t//formatter.printHelp( correctUse,header, options,footer , true);\n\n\t\t//Parse the given arguments\n\t\tCommandLineParser parser = new BasicParser();\n\t\tCommandLine cmd;\n\n\t\ttry {\n\t\t\tcmd = parser.parse(this.options, args);\n\n\t\t\t//We look for the algorithm\n\t\t\tif (cmd.hasOption('m') || cmd.hasOption(\"mem\")){\n\t\t\t\t//Case of the mem algorithm\n\t\t\t\tmemAlgorithm = true;\n\t\t\t\talnAlgorithm = false;\n\t\t\t\tbwaswAlgorithm = false;\n\t\t\t}\n\t\t\telse if(cmd.hasOption('a') || cmd.hasOption(\"aln\")){\n\t\t\t\t// Case of aln algorithm\n\t\t\t\talnAlgorithm = true;\n\t\t\t\tmemAlgorithm = false;\n\t\t\t\tbwaswAlgorithm = false;\n\t\t\t}\n\t\t\telse if(cmd.hasOption('b') || cmd.hasOption(\"bwasw\")){\n\t\t\t\t// Case of bwasw algorithm\n\t\t\t\tbwaswAlgorithm = true;\n\t\t\t\tmemAlgorithm = false;\n\t\t\t\talnAlgorithm = false;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// Default case. Mem algorithm\n\t\t\t\tLOG.warn(\"[\"+this.getClass().getName()+\"] :: The algorithm \"\n\t\t\t\t\t\t+ cmd.getOptionValue(\"algorithm\")\n\t\t\t\t\t\t+ \" could not be found\\nSetting to default mem algorithm\\n\");\n\n\t\t\t\tmemAlgorithm = true;\n\t\t\t\talnAlgorithm = false;\n\t\t\t\tbwaswAlgorithm = false;\n\t\t\t}\n\n\t\t\t//We look for the index\n\t\t\tif (cmd.hasOption(\"index\") || cmd.hasOption('i')) {\n\t\t\t\tindexPath = cmd.getOptionValue(\"index\");\n\t\t\t}\n\t\t/* There is no need of this, as the index option is mandatory\n\t\telse {\n\t\t\tLOG.error(\"[\"+this.getClass().getName()+\"] :: No index has been found. Aborting.\");\n\t\t\tformatter.printHelp(correctUse, header, options, footer, true);\n\t\t\tSystem.exit(1);\n\t\t}*/\n\n\t\t\t//Partition number\n\t\t\tif (cmd.hasOption(\"partitions\") || cmd.hasOption('n')) {\n\t\t\t\tpartitionNumber = Integer.parseInt(cmd.getOptionValue(\"partitions\"));\n\t\t\t}\n\n\t\t\t// BWA arguments\n\t\t\tif (cmd.hasOption(\"bwa\") || cmd.hasOption('w')) {\n\t\t\t\tbwaArgs = cmd.getOptionValue(\"bwa\");\n\t\t\t}\n\n\t\t\t// Paired or single reads\n\t\t\tif (cmd.hasOption(\"paired\") || cmd.hasOption('p')) {\n\t\t\t\tpairedReads = true;\n\t\t\t\tsingleReads = false;\n\t\t\t}\n\t\t\telse if (cmd.hasOption(\"single\") || cmd.hasOption('s')) {\n\t\t\t\tpairedReads = false;\n\t\t\t\tsingleReads = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLOG.warn(\"[\"+this.getClass().getName()+\"] :: Reads argument could not be found\\nSetting it to default paired reads\\n\");\n\t\t\t\tpairedReads = true;\n\t\t\t\tsingleReads = false;\n\t\t\t}\n\n\t\t\t// Sorting\n\t\t\tif (cmd.hasOption('f') || cmd.hasOption(\"hdfs\")) {\n\t\t\t\tthis.sortFastqReadsHdfs = true;\n\t\t\t\tthis.sortFastqReads = false;\n\t\t\t}\n\t\t\telse if (cmd.hasOption('k') || cmd.hasOption(\"spark\")) {\n\t\t\t\tthis.sortFastqReadsHdfs = false;\n\t\t\t\tthis.sortFastqReads = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tthis.sortFastqReadsHdfs = false;\n\t\t\t\tthis.sortFastqReads = false;\n\t\t\t}\n\n\t\t\t// Use reducer\n\t\t\tif (cmd.hasOption('r') || cmd.hasOption(\"reducer\")) {\n\t\t\t\tthis.useReducer = true;\n\t\t\t}\n\n\t\t\t// Help\n\t\t\tif (cmd.hasOption('h') || cmd.hasOption(\"help\")) {\n\t\t\t\t//formatter.printHelp(correctUse, header, options, footer, true);\n\t\t\t\tthis.printHelp();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\t//Input and output paths\n\t\t\tString otherArguments[] = cmd.getArgs(); //With this we get the rest of the arguments\n\n\t\t\tif ((otherArguments.length != 2) && (otherArguments.length != 3)) {\n\t\t\t\tLOG.error(\"[\"+this.getClass().getName()+\"] No input and output has been found. Aborting.\");\n\n\t\t\t\tfor (String tmpString : otherArguments) {\n\t\t\t\t\tLOG.error(\"[\"+this.getClass().getName()+\"] Other args:: \" + tmpString);\n\t\t\t\t}\n\n\t\t\t\t//formatter.printHelp(correctUse, header, options, footer, true);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\telse if (otherArguments.length == 2) {\n\t\t\t\tinputPath = otherArguments[0];\n\t\t\t\toutputPath = otherArguments[1];\n\t\t\t}\n\t\t\telse if (otherArguments.length == 3) {\n\t\t\t\tinputPath = otherArguments[0];\n\t\t\t\tinputPath2 = otherArguments[1];\n\t\t\t\toutputPath = otherArguments[2];\n\t\t\t}\n\n\t\t} catch (UnrecognizedOptionException e) {\n\t\t\te.printStackTrace();\n\t\t\t//formatter.printHelp(correctUse, header, options, footer, true);\n\t\t\tthis.printHelp();\n\t\t\tSystem.exit(1);\n\t\t} catch (MissingOptionException e) {\n\t\t\t//formatter.printHelp(correctUse, header, options, footer, true);\n\t\t\tthis.printHelp();\n\t\t\tSystem.exit(1);\n\t\t} catch (ParseException e) {\n\t\t\t//formatter.printHelp( correctUse,header, options,footer , true);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public Collection<String> getOptions() {\n return options==null? Collections.emptyList() : Arrays.asList(options);\n }", "protected abstract String getCommandLine() throws ConfigException;", "public abstract IParser[] getParserOptionSet();", "public GetOpt(String [] sargs, String flags) throws BadOptException {\n\tint size = sargs.length;\n\n\ttry {\n\t StringReader sreader = new StringReader(flags);\n\t for (int i = 0; i < flags.length(); i++) {\n\t\tint opt = sreader.read();\n\t\t\n\t\tif (opt == ':')\n\t\t ((OptPair) optlist.elementAt(optlist.size() - 1)).bool = false;\n\t\telse\n\t\t optlist.add(new OptPair((char) opt, true));\n\t }\n\t \n\t sreader.close();\n\t} catch (IOException e) {\n\t System.err.println(\"Bizarre error situation!\");\n\t throw new BadOptException(\"I/O problem encountered manipulating strings with a StringReader!\");\n\t}\n\n\t//\tfor (int i = 0; i < optlist.size(); i++)\n\t//\t System.out.println(optlist.elementAt(i));\n\n\tfor (int i = 0; i < sargs.length; i++) {\n\t if (sargs[i].startsWith(\"-\")) {\n\t\ttry {\n\t\t StringReader sreader = new StringReader(sargs[i].substring(1));\n\n\t\t int opt = -1;\n\t\t while ((opt = sreader.read()) != -1) {\n\t\t\tboolean found = false;\n\t\t\tboolean bool = true;\n\t\t\tfor (int j = 0; j < optlist.size(); j++) {\n\t\t\t OptPair temp = (OptPair) optlist.elementAt(j);\n\t\t\t if (temp.option == (char) opt) {\n\t\t\t\tfound = true;\n\t\t\t\tbool = temp.bool;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\t}\n\n\t\t\tif (found) {\n\t\t\t opts.add(new Character((char) opt));\n\t\t\t if (!bool) {\n\t\t\t\targs.add(sargs[++i]);\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\t} else {\n\t\t\t throw new BadOptException((char) opt + \": is an invalid switch option.\");\n\t\t\t}\n\t\t }\n\t\t} catch (IOException e) {\n\t\t System.err.println(\"Bizarre error situation!\");\n\t\t throw new BadOptException(\"I/O problem encountered manipulating strings with a StringReader!\");\n\t\t}\n\t } else {\n\t\tparams.add(sargs[i]);\n\t }\n\t}\n }", "@Override\n protected String[] ParseCmdLine(final String[] args) {\n\n final CmdLineParser clp = new CmdLineParser();\n final OptionalFlag optHelp = new OptionalFlag(\n clp, \"h?\", \"help\", \"help mode\\nprint this usage information and exit\");\n optHelp.forHelpUsage();\n final OptionalFlag optForce =\n new OptionalFlag(clp, \"f\", \"force\", \"force overwrite\");\n final OptionalFlag optDelete =\n new OptionalFlag(clp, \"d\", \"delete\", \"delete the table content first\");\n final OptionalFlag optAll = new OptionalFlag(\n clp, \"a\", \"all\",\n \"import all and synchronize changes in the document back to the datasource\");\n final OptionalFlag optSync = new OptionalFlag(\n clp, \"\", \"sync\",\n \"synchronize changes in the document back to the datasource\");\n final OptionalArgumentInteger optCommitCount =\n new OptionalArgumentInteger(clp, \"n\", \"commitcount\", \"commit count\");\n\n clp.setArgumentDescription(\n \"[[sourcefile [destinationfile]]\\n[sourcefile... targetdirectory]]\", -1,\n -1, null);\n final String[] argv = clp.getOptions(args);\n\n force = optForce.getValue(false);\n doDelete = optDelete.getValue(false);\n doSync = optAll.getValue(false) || optSync.getValue(false);\n doImport = optAll.getValue(false) || !optSync.getValue(false);\n commitCount = optCommitCount.getValue(0);\n\n return argv;\n }", "protected int parseOptions(final String[] args) {\n\t\tOptions options = new Options();\n\t\toptions.addOption(\"a\", \"start\", true, \"Start an asynchronous task\");\n\t\toptions.addOption(\"h\", \"hostname\", true, \"Specify the hostname to connect to\");\n\t\toptions.addOption(\"l\", \"list\", false, \"List the available asynchronous tasks\");\n\t\toptions.addOption(\"o\", \"stop\", true, \"Stop an asynchronous task\");\n\t\toptions.addOption(\"p\", \"port\", true, \"Specify the port to connect to\");\n\t\toptions.addOption(\"i\", \"identifier\", true, \"Specify the identifier to synchronize\");\n\t\toptions.addOption(\"t\", \"attributes\", true, \"Specify the attributes pivot to synchronize (comma separated, identifier parameter required)\");\n\t\toptions.addOption(\"s\", \"status\", true, \"Get a task status\");\n\n\t\tCommandLineParser parser = new GnuParser();\n\n\t\ttry {\n\t\t\tCommandLine cmdLine = parser.parse(options, args);\n\t\t\tif ( cmdLine.hasOption(\"a\") ) {\n\t\t\t\toperation = OperationType.START;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"a\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"l\") ) {\n\t\t\t\toperation = OperationType.TASKS_LIST;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"o\") ) {\n\t\t\t\toperation = OperationType.STOP;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"o\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"s\") ) {\n\t\t\t\toperation = OperationType.STATUS;\n\t\t\t\ttaskName = cmdLine.getOptionValue(\"s\");\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"i\") ) {\n\t\t\t\tidToSync = cmdLine.getOptionValue(\"i\");\n\t\t\t\tif(cmdLine.hasOption(\"t\")) {\n\t\t\t\t\tStringTokenizer attrsStr = new StringTokenizer(cmdLine.getOptionValue(\"t\"),\",\");\n\t\t\t\t\twhile(attrsStr.hasMoreTokens()) {\n\t\t\t\t\t\tString token = attrsStr.nextToken();\n\t\t\t\t\t\tif(token.contains(\"=\")) {\n\t\t\t\t\t\t\tattrsToSync.put(token.substring(0, token.indexOf(\"=\")), token.substring(token.indexOf(\"=\")+1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOGGER.error(\"Unknown attribute name=value couple in \\\"{}\\\". Please check your parameters !\", token);\n\t\t\t\t\t\t\tprintHelp(options);\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cmdLine.hasOption(\"t\") ) {\n\t\t\t\tLOGGER.error(\"Attributes specified, but missing identifier !\");\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"h\") ) {\n\t\t\t\thostname = cmdLine.getOptionValue(\"h\");\n\t\t\t} else {\n\t\t\t\thostname = \"localhost\";\n\t\t\t\tLOGGER.info(\"Hostname parameter not specified, using {} as default value.\", hostname);\n\t\t\t}\n\t\t\tif ( cmdLine.hasOption(\"p\") ) {\n\t\t\t\tport = cmdLine.getOptionValue(\"p\");\n\t\t\t} else {\n\t\t\t\tport = \"1099\";\n\t\t\t\tLOGGER.info(\"TCP Port parameter not specified, using {} as default value.\", port);\n\t\t\t}\n\t\t\tif (operation == OperationType.UNKNOWN ) {\n\t\t\t\tprintHelp(options);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tLOGGER.error(\"Unable to parse the options ({})\", e.toString());\n\t\t\tLOGGER.debug(e.toString(), e);\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "private int handleOptions(String[] args) {\r\n\r\n int status = 0;\r\n\r\n if ((args == null) || (args.length == 0)) { return status; }\r\n\r\n for (int i = 0; i < args.length; i++) {\r\n if (status != 0) { return status; }\r\n\r\n if (args[i].equals(\"-h\")) {\r\n displayUsage();\r\n status = 1;\r\n } else if (args[i].equals(\"-d\") || args[i].equals(\"-discourse\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.discourseId = Long.parseLong(args[i]);\r\n if (discourseId < 0) {\r\n logger.error(\"Invalid discourse id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse discourse id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid discourse id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A discourse id must be specified with the -discourse argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-e\") || args[i].equals(\"-email\")) {\r\n setSendEmailFlag(true);\r\n if (++i < args.length) {\r\n setEmailAddress(args[i]);\r\n } else {\r\n logger.error(\"An email address must be specified with this argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-b\") || args[i].equals(\"-batchSize\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.batchSize = Integer.parseInt(args[i]);\r\n if (batchSize <= 0) {\r\n logger.error(\"The batch size must be greater than zero.\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } catch (NumberFormatException exception) {\r\n logger.error(\"Error while trying to parse batch size: \" + args[i]);\r\n throw new IllegalArgumentException(\"Invalid batch size specified.\");\r\n }\r\n } else {\r\n logger.error(\"A batch size must be specified with the -batchSize argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-p\") || args[i].equals(\"-project\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.projectId = Integer.parseInt(args[i]);\r\n if (projectId < 0) {\r\n logger.error(\"Invalid project id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse project id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid project id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A project id must be specified with the -project argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n }\r\n }\r\n\r\n return status;\r\n }", "public static Options getOptions() {\n return OPTIONS;\n }", "private static JSAP prepCmdLineParser()\n throws Exception {\n final JSAP jsap = new JSAP();\n\n final FlaggedOption site_xml = new FlaggedOption(\"hbase_site\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/hbase-site.xml\")\n .setRequired(true)\n .setShortFlag('c')\n .setLongFlag(JSAP.NO_LONGFLAG);\n site_xml.setHelp(\"Path to hbase-site.xml\");\n jsap.registerParameter(site_xml);\n\n final FlaggedOption jmxremote_password = new FlaggedOption(\"jmxremote_password\")\n .setStringParser(JSAP.STRING_PARSER)\n .setDefault(\"/etc/hbase/conf/jmxremote.password\")\n .setRequired(true)\n .setShortFlag('j')\n .setLongFlag(JSAP.NO_LONGFLAG);\n jmxremote_password.setHelp(\"Path to jmxremote.password.\");\n jsap.registerParameter(jmxremote_password);\n\n final FlaggedOption throttleFactor = new FlaggedOption(\"throttleFactor\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('t')\n .setLongFlag(JSAP.NO_LONGFLAG);\n throttleFactor.setHelp(\"Throttle factor to limit the compaction queue. The default (1) limits it to num threads / 1\");\n jsap.registerParameter(throttleFactor);\n\n final FlaggedOption num_cycles = new FlaggedOption(\"numCycles\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"1\")\n .setRequired(false)\n .setShortFlag('n')\n .setLongFlag(JSAP.NO_LONGFLAG);\n num_cycles.setHelp(\"Number of iterations to run. The default is 1. Set to 0 to run forever.\");\n jsap.registerParameter(num_cycles);\n\n final FlaggedOption pauseInterval = new FlaggedOption(\"pauseInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"30000\")\n .setRequired(false)\n .setShortFlag('p')\n .setLongFlag(JSAP.NO_LONGFLAG);\n pauseInterval.setHelp(\"Time (in milliseconds) to pause between compactions.\");\n jsap.registerParameter(pauseInterval);\n\n final FlaggedOption waitInterval = new FlaggedOption(\"waitInterval\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setDefault(\"60000\")\n .setRequired(false)\n .setShortFlag('w')\n .setLongFlag(JSAP.NO_LONGFLAG);\n waitInterval.setHelp(\"Time (in milliseconds) to wait between \" +\n \"time (are we there yet?) checks.\");\n jsap.registerParameter(waitInterval);\n\n DateStringParser date_parser = DateStringParser.getParser();\n date_parser.setProperty(\"format\", \"HH:mm\");\n\n final FlaggedOption startTime = new FlaggedOption(\"startTime\")\n .setStringParser(date_parser)\n .setDefault(\"01:00\")\n .setRequired(true)\n .setShortFlag('s')\n .setLongFlag(JSAP.NO_LONGFLAG);\n startTime.setHelp(\"Time to start compactions.\");\n jsap.registerParameter(startTime);\n\n final FlaggedOption endTime = new FlaggedOption(\"endTime\")\n .setStringParser(date_parser)\n .setDefault(\"07:00\")\n .setRequired(true)\n .setShortFlag('e')\n .setLongFlag(JSAP.NO_LONGFLAG);\n endTime.setHelp(\"Time to stop compactions.\");\n jsap.registerParameter(endTime);\n\n final FlaggedOption dryRun = new FlaggedOption(\"dryRun\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('d')\n .setLongFlag(JSAP.NO_LONGFLAG);\n dryRun.setHelp(\"Don't actually do any compactions or splits.\");\n jsap.registerParameter(dryRun);\n\n final FlaggedOption maxSplitSize = new FlaggedOption(\"maxSplitSize_in_MB\")\n .setStringParser(JSAP.LONG_PARSER)\n .setDefault(\"4096\")\n .setRequired(false)\n .setShortFlag('m')\n .setLongFlag(JSAP.NO_LONGFLAG);\n maxSplitSize.setHelp(\"Maximum size for store files (in MB) at which a region is split.\");\n jsap.registerParameter(maxSplitSize);\n\n final FlaggedOption splitsEnabled = new FlaggedOption(\"splitsEnabled\")\n .setStringParser(JSAP.BOOLEAN_PARSER)\n .setDefault(\"false\")\n .setRequired(false)\n .setShortFlag('h')\n .setLongFlag(JSAP.NO_LONGFLAG);\n splitsEnabled.setHelp(\"Do splits (default split size will be 256MB unless specified).\");\n jsap.registerParameter(splitsEnabled);\n\n final FlaggedOption table_names = new FlaggedOption(\"tableNames\")\n .setStringParser(JSAP.STRING_PARSER)\n .setRequired(false)\n .setShortFlag(JSAP.NO_SHORTFLAG)\n .setLongFlag(\"tableNames\")\n .setList(true)\n .setListSeparator(',');\n table_names.setHelp(\"Specific table names to check against (default is all)\");\n jsap.registerParameter(table_names);\n\n final FlaggedOption files_keep = new FlaggedOption(\"filesKeep\")\n .setStringParser(JSAP.INTEGER_PARSER)\n .setRequired(false)\n .setShortFlag('f')\n .setLongFlag(\"filesKeep\")\n .setDefault(\"5\");\n files_keep.setHelp(\"Number of storefiles to look for before compacting (default is 5)\");\n jsap.registerParameter(files_keep);\n\n\n return jsap;\n }", "public String[][] getOptions() {\r\n return options;\r\n }", "public static void GetParam(String [] args){\n if (args.length==0) {\n System.err.println(\"Sintaxis: main -f file [-di] [-do|-t] [-mem|-tab]\");\n System.exit(1);\n }\n for (int i = 0; i < args.length; i++) {\n if(args[i].equals(\"-f\")){\n f_flag=true;\n path=args[i+1];\n }\n if(args[i].equals(\"-t\"))t_flag=true;\n if(args[i].equals(\"-di\"))di_flag=true;\n if(args[i].equals(\"-do\"))do_flag=true;\n if(args[i].equals(\"-tab\"))tab_flag=true;\n if(args[i].equals(\"-mem\"))mem_flag=true;\n }\n if (!f_flag){\n System.err.println(\"Ha de introducir un fichero\");\n System.exit(1);\n }\n if (!tab_flag && !mem_flag){\n System.err.println(\"Error: si se ha escogido -do o -t, se ha de \"\n + \"especificar -tab ('tabulation') o/y -mem ('memoization')\");\n System.exit(1);\n }\n }", "private Map<String, String> getOptionsMap(final String[] args) {\r\n final Map<String, String> optionsMap = parseCliOptions(args);\r\n // Cleanup aliased\r\n for (final Entry<String, String> alias : aliases.entrySet()) {\r\n if (optionsMap.containsKey(alias.getKey())) {\r\n final String value = optionsMap.remove(alias.getKey());\r\n optionsMap.put(alias.getValue(), value);\r\n }\r\n }\r\n return optionsMap;\r\n }", "public static CommandLine parseCommandLine(String[] args) {\n Options options = getOptions();\n CommandLineParser cmdLineParser = new DefaultParser();\n\n CommandLine cmdLine = null;\n try {\n cmdLine = cmdLineParser.parse(options, args);\n } catch (ParseException pe) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine == null) {\n printHelp(options);\n System.exit(1);\n }\n\n if (cmdLine.hasOption(\"help\")) {\n printHelp(options);\n System.exit(0);\n }\n\n return cmdLine;\n }", "public static HashMap<String, String> pareseCLI(String[] args){\n\t\tif(args.length % 2 != 0){\t// There are no commands that take more than one argument, so if the arguments are odd, then there is a problem\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tHashMap<String, String> output = new HashMap<String, String>();\n\t\tfor(int i = 0; i < args.length; i += 2){\n\t\t\tif(args[i].charAt(0) != '-'){ \n\t\t\t\treturn null;\n\t\t\t}\n\t\t\toutput.put(args[i].substring(1), args[i + 1]);\n\t\t}\n\t\treturn output;\n\t}", "private static void parseCommandLine(String[] args) throws WorkbenchException {\n commandLine = new CommandLine('-');\r\n commandLine.addOptionSpec(new OptionSpec(PROPERTIES_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(DEFAULT_PLUGINS, 1));\r\n commandLine.addOptionSpec(new OptionSpec(PLUG_IN_DIRECTORY_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));\r\n //[UT] 17.08.2005 \r\n commandLine.addOptionSpec(new OptionSpec(INITIAL_PROJECT_FILE, 1));\r\n commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));\r\n try {\r\n commandLine.parse(args);\r\n } catch (ParseException e) {\r\n throw new WorkbenchException(\"A problem occurred parsing the command line: \" + e.toString());\r\n }\r\n }", "@Override\n\tpublic\n\tOptions getOptions()\n\t{\n Options options=new Options();\n\n String description = String.format(\"The worker to -stop, -start or -restart. Available workers are %s\", this.getAvailableWorkers());\n\n options.addOption(AssistantCommand.WORKER_OPTION, true, description);\n options.addOption(AssistantCommand.STOP_OPTION, false, \"Stop the worker.\");\n options.addOption(AssistantCommand.START_OPTION, false, \"Start the worker.\");\n options.addOption(AssistantCommand.KILL_OPTION, false, \"Kill the worker forcing it to stop.\");\n options.addOption(AssistantCommand.RESTART_OPTION, false, \"Either start a worker that is stopped or stop and start the worker.\");\n\n String delayDescription = String.format(\"The amount of time in mills before processing the next message.\" +\n \" The default is %d milliseconds\", BaseAssistantWorker.DEFAULT_DELAY);\n Option delayOption = new Option(AssistantCommand.DELAY_OPTION, true, delayDescription);\n delayOption.setType(Integer.class);\n delayOption.setRequired(false);\n options.addOption(delayOption);\n\n String thresholdDescription = String.format(\"Must be in the range of 0-100.\" +\n \" The default is %d\", BaseAssistantWorker.DEFAULT_IDLE_THRESHOLD);\n Option thresholdOption = new Option(AssistantCommand.IDLE_THRESHOLD_OPTION, true, thresholdDescription);\n thresholdOption.setType(Integer.class);\n thresholdOption.setRequired(false);\n options.addOption(thresholdOption);\n\n return options;\n }", "public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }", "public Iterator getOptions() {\n synchronized (options) {\n return Collections.unmodifiableList(new ArrayList(options)).iterator();\n }\n }", "ListProperty<String> getCommandLine();", "public List<String> getExtraOpts() {\r\n \t\treturn extraOpts;\r\n \t}", "go.micro.runtime.RuntimeOuterClass.ReadOptions getOptions();", "public Options getOptions(String optionsName);", "HashMap<String, String> cliParser(String[] args){\n CmdLineParser parser = new CmdLineParser(this);\n try {\n // parse the arguments.\n parser.parseArgument(args);\n\n if (this.printHelp) {\n System.err.println(\"Usage:\");\n parser.printUsage(System.err);\n System.err.println();\n System.exit(0);\n }\n } catch( CmdLineException e ) {\n System.err.println(e.getMessage());\n System.err.println(\"java BGPCommunitiesParser.jar [options...] arguments...\");\n // print the list of available options\n parser.printUsage(System.err);\n System.err.println();\n\n // print option sample. This is useful some time\n System.err.println(\" Example: java BGPCommunitiesParser.jar\"+parser.printExample(ALL));\n System.exit(0);\n }\n\n HashMap<String, String> cliArgs = new HashMap<>();\n String[] period;\n long startTs = 0;\n long endTs = 0;\n // parse the period argument\n try{\n period = this.period.split(\",\");\n startTs = this.dateToEpoch(period[0]);\n endTs = this.dateToEpoch(period[1]);\n if (startTs >= endTs){\n System.err.println(\"The period argument is invalid. \" +\n \"The start datetime should be before the end datetime.\");\n System.exit(-1);\n }\n }\n catch (java.lang.ArrayIndexOutOfBoundsException e) {\n System.err.println(\"The period argument is invalid. \" +\n \"Please provide two comma-separated datetimes in the format YYYMMMDD.hhmm \" +\n \"(e.g. 20180124.0127,20180125.1010).\");\n System.exit(-1);\n }\n\n cliArgs.put(\"communities\", this.communities);\n cliArgs.put(\"start\", Long.toString(startTs));\n cliArgs.put(\"end\", Long.toString(endTs));\n cliArgs.put(\"collectors\", this.collectors);\n cliArgs.put(\"outdir\", this.outdir);\n cliArgs.put(\"facilities\", this.facilities);\n cliArgs.put(\"overlap\", Long.toString(this.overlap));\n return cliArgs;\n }", "public interface CommandLineParser {\n\n CommandLine parse(Options options, String[] arguments) throws ParseException;\n CommandLine parse(Options options, String[] arguments, boolean stopAtNonOption) throws ParseException;\n\n}", "private static Options makeOptions() {\n\t\tOptions options = new Options();\n\n\t\tOption configOption = new Option(\"c\", \"config\", true, \"configuration file path\");\n\t\tconfigOption.setRequired(false);\n\t\tconfigOption.setArgName(\"file\");\n\t\toptions.addOption(configOption);\n\n\t\tOption debugOption = new Option(\"d\", \"debug\", false, \"debug mode\");\n\t\tdebugOption.setRequired(false);\n\t\toptions.addOption(debugOption);\n\n\t\tOption timingOption = new Option(\"t\", \"timing\", false, \"timing mode\");\n\t\ttimingOption.setRequired(false);\n\t\toptions.addOption(timingOption);\n\n\t\treturn options;\n\t}", "public String[] getOptions() {\n return m_Classifier.getOptions();\n }", "public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }", "@OverridingMethodsMustInvokeSuper\n protected Tool parseArguments(String[] args) throws Exception {\n for (String arg : options(args)) {\n if (arg.equals(\"--debug\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.DEBUG);\n } else if (arg.equals(\"--verbose\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.VERBOSE);\n } else if (arg.equals(\"--quiet\")) {\n checkArgument(verbosity == Level.DEFAULT, \"Specify one of: --quiet --verbose --debug\");\n setVerbosity(Level.QUIET);\n } else if (arg.equals(\"--pretty\")) {\n setPretty(true);\n } else {\n return unknownOption(arg);\n }\n }\n return this;\n }", "@Override\n public String[] getOptions() {\n List<String> options = new ArrayList<String>();\n\n for (String opt : getJobOptionsOnly()) {\n options.add(opt);\n }\n\n return options.toArray(new String[options.size()]);\n }", "private List<String> GetParams(){\n\n ArrayList<String> params = new ArrayList<String>();\n\n // java executable binary\n params.add(_javaConfig.getJava());\n\n params.add(\"-Xms\".concat(_javaConfig.getXms()));\n params.add(\"-Xmx\".concat(_javaConfig.getXmx()));\n params.add(\"-Djava.library.path=\".concat(_javaConfig.getJava_library_path()));\n\n params.add(\"-cp\");\n params.add(_javaConfig.getClasspath());\n\n params.add(\"net.minecraft.client.main.Main\");\n\n params.add(\"--username\");\n params.add(_gameConfig.getUserName());\n\n params.add(\"--session\");\n params.add(_gameConfig.getSession());\n\n params.add(\"--gameDir\");\n params.add(_gameConfig.getGameDir());\n\n params.add(\"--assetsDir\");\n params.add(_gameConfig.getAssetsDir());\n\n params.add(\"--version\");\n params.add(_gameConfig.getVersion());\n\n return params;\n }", "@Override\n public String[] getOptions() {\n\n Vector<String> result = new Vector<String>();\n\n result.add(\"-K\");\n result.add(\"\" + m_kBEPPConstant);\n\n if (getL()) {\n result.add(\"-L\");\n }\n\n if (getUnbiasedEstimate()) {\n result.add(\"-U\");\n }\n\n if (getB()) {\n result.add(\"-B\");\n }\n\n result.add(\"-Ba\");\n result.add(\"\" + m_bagInstanceMultiplier);\n\n result.add(\"-M\");\n result.add(\"\" + m_SplitMethod);\n\n result.add(\"-A\");\n result.add(\"\" + m_AttributesToSplit);\n\n result.add(\"-An\");\n result.add(\"\" + m_AttributeSplitChoices);\n\n Collections.addAll(result, super.getOptions());\n\n return result.toArray(new String[result.size()]);\n }", "public interface CmdLineOption {\n \n /**\n * Checks if this option parser recognizes the specified\n * option name.\n */\n boolean accepts(String optionName);\n\n /**\n * Called if the option that this parser recognizes is found.\n * \n * @param parser\n * The parser that's using this option object.\n * \n * For example, if the option \"-quiet\" is simply an alias to\n * \"-verbose 5\", then the implementation can just call the\n * {@link CmdLineParser#parse(String[])} method recursively. \n * \n * @param params\n * The rest of the arguments. This method can use this\n * object to access the arguments of the option if necessary.\n * \n * @return\n * The number of arguments consumed. For example, return 0\n * if this option doesn't take any parameter.\n */\n int parseArguments( CmdLineParser parser, Parameters params ) throws CmdLineException;\n \n// /**\n// * Adds the usage message for this option. \n// * <p>\n// * This method is used to build usage message for the parser.\n// * \n// * @param buf\n// * Messages should be appended to this buffer.\n// * If you add something, make sure you add '\\n' at the end. \n// */\n// void appendUsage( StringBuffer buf );\n \n \n /**\n * SPI for {@link CmdLineOption}.\n * \n * Object of this interface is passed to\n * {@link CmdLineOption}s to make it easy/safe to parse\n * additional parameters for options.\n */\n public interface Parameters {\n /**\n * Gets the recognized option name.\n * \n * @return\n * This option name has been passed to the\n * {@link CmdLineOption#accepts(String)} method and\n * the method has returned <code>true</code>.\n */\n String getOptionName();\n \n /**\n * Gets the additional parameter to this option.\n * \n * @param idx\n * specifying 0 will retrieve the token next to the option.\n * For example, if the command line looks like \"-o abc -d x\",\n * then <code>getParameter(0)</code> for \"-o\" returns \"abc\"\n * and <code>getParameter(1)</code> will return \"-d\".\n * \n * @return\n * Always return non-null valid String. If an attempt is\n * made to access a non-existent index, this method throws\n * appropriate {@link CmdLineException}.\n */\n String getParameter( int idx ) throws CmdLineException;\n \n /**\n * The convenience method of\n * <code>Integer.parseInt(getParameter(idx))</code>\n * with proper error handling.\n * \n * @exception CmdLineException\n * If the parameter is not an integer, it throws an\n * approrpiate {@link CmdLineException}.\n */\n int getIntParameter( int idx ) throws CmdLineException;\n }\n \n}", "public GoRun flags(String... args) {\n if (args.length % 2 != 0) {\n throw new InvalidParameterException(\"given args are not even\");\n }\n\n for (int i = 0; i < args.length; i += 2) {\n shortOption(args[i], args[i + 1]);\n }\n return this;\n }", "Optional<String[]> arguments();", "protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n // Server ID option\n if(hasOption(cli, Opt.SERVER_ID, false))\n {\n serverId = Long.parseLong(getOptionValue(cli, Opt.SERVER_ID));\n logOptionValue(Opt.SERVER_ID, serverId);\n }\n\n // Category option\n if(hasOption(cli, Opt.CATEGORY, true))\n {\n category = getOptionValue(cli, Opt.CATEGORY);\n logOptionValue(Opt.CATEGORY, category);\n }\n\n // Name option\n if(hasOption(cli, Opt.NAME, true))\n {\n name = getOptionValue(cli, Opt.NAME);\n logOptionValue(Opt.NAME, name);\n }\n }", "public String getValue(String opt) {\n return (String)m_commandLine.getValue(opt);\n }", "private static boolean parseOptions(String[] args) {\n\t\ttry {\n\t\t\tCommandLineParser parser = new DefaultParser();\n\t\t\tCommandLine cmd = parser.parse(createOptions(), args);\n\t\t\tif (cmd.hasOption(\"source\")) {\n\t\t\t\tfileName = cmd.getOptionValue(\"source\");\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"r\")) {\n\t\t\t\ttry {\n\t\t\t\t\tmaxRank = ((Number) cmd.getParsedOptionValue(\"r\")).intValue();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"Illegal value provided for -r option.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"t\")) {\n\t\t\t\ttry {\n\t\t\t\t\ttimeOut = ((Number) cmd.getParsedOptionValue(\"t\")).intValue();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"Illegal value provided for -t option.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"c\")) {\n\t\t\t\ttry {\n\t\t\t\t\trankCutOff = ((Number) cmd.getParsedOptionValue(\"c\")).intValue();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"Illegal value provided for -c option.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"d\")) {\n\t\t\t\titerativeDeepening = true;\n\t\t\t\tif (maxRank > 0) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Warning: ignoring max_rank setting (must be 0 when iterative deepening is enabled).\");\n\t\t\t\t\tmaxRank = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"f\")) {\n\t\t\t\tterminateAfterFirst = true;\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"ns\")) {\n\t\t\t\tnoExecStats = true;\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"nr\")) {\n\t\t\t\tnoRanks = true;\n\t\t\t}\n\t\t\tif (cmd.hasOption(\"help\")) {\n\t\t\t\tprintUsage();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (ParseException pe) {\n\t\t\tSystem.out.println(pe.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public String[] getRuntimeProgramArguments(IPath configPath, boolean debug, boolean starting);", "@Override\n\tpublic String[] getOptions() {\n\t\treturn null;\n\t}", "public String getCommandLinePattern();", "public static CommandLine prepCli( Options knowsCliDtd,\n\t\t\tString[] args, ResourceBundle rbm )\n\t{\n\t\tCommandLineParser cliRegex = new DefaultParser();\n\t\tCommandLine userInput = null;\n\t\ttry\n\t\t{\n\t\t\tuserInput = cliRegex.parse( knowsCliDtd, args );\n\t\t\tif ( userInput.hasOption( helpFlagS )\n\t\t\t\t\t|| userInput.hasOption( helpFlagLong ) )\n\t\t\t{\n\t\t\t\tnew HelpFormatter().printHelp( \"Note Enojes\", knowsCliDtd );\n\t\t\t}\n\t\t}\n\t\tcatch ( ParseException pe )\n\t\t{\n\t\t\tMessageFormat problem = new MessageFormat( rbm.getString( rbKeyCliParse ) );\n\t\t\tSystem.err.println( problem.format( new Object[]{ cl +\"pc\", pe } ) );\n\t\t}\n\t\treturn userInput;\n\t}", "public CommandLine parse(String[] args ) throws ParseException\n {\n String[] cleanArgs = CleanArgument.cleanArgs( args );\n CommandLineParser parser = new DefaultParser();\n return parser.parse( options, cleanArgs );\n }", "public static void getInput(String[] commandOptions){\n\t \n\t if(commandOptions.length != 10) {\n\t System.out.println(\"You did not supply the correct number of arguments.\");\n\t System.exit(0);\n\t }\n\t \n\t int countD=0, countT=0, countB=0, countL=0, countR=0;\n\t for (int i=0; i<commandOptions.length; i++) {\n\t // Classify the argument as an option with the dash character\n\t if (commandOptions[i].startsWith(\"-\")) {\n\t // Testing for the the -d argument\n\t if (commandOptions[i].equals(\"-d\") && commandOptions.length > i) {\n\t // Make sure no duplicate command line options\n\t if(countD==1){\n\t System.out.println(\"Duplicate -d entries, try again\");\n\t System.exit(0);\n\t }\n\t // assign what the user has specified to d\n\t // We increment i by 1 more to skip over the value\n\t try {\n\t dimension = Integer.parseInt(commandOptions[++i]);\n\t if(dimension <= 0 || dimension > 25) {\n\t System.out.println(\"The parameter for -d must be greater than 0 and less than or equal to 25.\");\n\t System.exit(0);\n\t }\n\t } catch(NumberFormatException e) {\n\t System.out.println(\"The value supplied for -d is \"+commandOptions[i]+\" and is not an integer.\");\n\t System.exit(0);\n\t }\n\t countD++;\n\t \n\t }\n\t // Testing for the the -t argument\n\t else if (commandOptions[i].equals(\"-t\") && commandOptions.length > i){\n\t // Make sure no duplicate command line options\n\t if(countT==1){\n\t System.out.println(\"Duplicate -t entries, try again\");\n\t System.exit(0);\n\t }\n\t // assign what the user has specified to t\n\t // We increment i by 1 more to skip over the value\n\t try {\n\t topEdgeTemp = Double.parseDouble(commandOptions[++i]);\n\t if(topEdgeTemp < 0.0 || topEdgeTemp > 100.0) {\n\t System.out.println(\"The value for -t must be in the range [0.0,100.0].\");\n\t System.exit(0);\n\t }\n\t } catch(NumberFormatException e) {\n\t System.out.println(\"The value of -t is \"+commandOptions[i]+\" and is not a number.\");\n\t System.exit(0);\n\t }\n\t countT++;\n\t \n\t }\n\t // Testing for the the -l argument\n\t else if (commandOptions[i].equals(\"-l\") && commandOptions.length > i){\n\t // Make sure no duplicate command line options\n\t if(countL==1){\n\t System.out.println(\"Duplicate -l entries, try again\");\n\t System.exit(0);\n\t }\n\t // assign what the user has specified to l\n\t // We increment i by 1 more to skip over the value\n\t try {\n\t leftEdgeTemp = Double.parseDouble(commandOptions[++i]);\n\t if(leftEdgeTemp < 0.0 || leftEdgeTemp > 100.0) {\n\t System.out.println(\"The value for -l must be in the range [0.0,100.0].\");\n\t System.exit(0);\n\t }\n\t } catch(NumberFormatException e) {\n\t System.out.println(\"The value of -l is \"+commandOptions[i]+\" and is not a number.\");\n\t System.exit(0);\n\t }\n\t countL++;\n\t \n\t }\n\t // Testing for the the -r argument\n\t else if (commandOptions[i].equals(\"-r\") && commandOptions.length > i){\n\t // Make sure no duplicate command line options\n\t if(countR==1){\n\t System.out.println(\"Duplicate -r entries, try again\");\n\t System.exit(0);\n\t }\n\t // assign what the user has specified to r\n\t // We increment i by 1 more to skip over the value\n\t try {\n\t rightEdgeTemp = Double.parseDouble(commandOptions[++i]);\n\t if(rightEdgeTemp < 0.0 || rightEdgeTemp > 100.0) {\n\t System.out.println(\"The value for -r must be in the range [0.0,100.0].\");\n\t System.exit(0);\n\t }\n\t } catch(NumberFormatException e) {\n\t System.out.println(\"The value of -r is \"+commandOptions[i]+\" and is not a number.\");\n\t System.exit(0);\n\t }\n\t countR++;\n\t \n\t }\n\t // Testing for the the -b argument\n\t else if (commandOptions[i].equals(\"-b\") && commandOptions.length > i){\n\t // Make sure no duplicate command line options\n\t if(countB==1){\n\t System.out.println(\"Duplicate -b entries, try again\");\n\t System.exit(0);\n\t }\n\t // assign what the user has specified to b\n\t // We increment i by 1 more to skip over the value\n\t try {\n\t bottomEdgeTemp = Double.parseDouble(commandOptions[++i]);\n\t if(bottomEdgeTemp < 0.0 || bottomEdgeTemp > 100.0) {\n\t System.out.println(\"The value for -b must be in the range [0.0,100.0].\");\n\t System.exit(0);\n\t }\n\t } catch(NumberFormatException e) {\n\t System.out.println(\"The value of -b is \"+commandOptions[i]+\" and is not a number.\");\n\t System.exit(0);\n\t }\n\t countB++;\n\t \n\t }\n\t }\n\t }\n\t \n\t if(!(countD==1 && countT==1 && countB==1 && countL==1 && countR==1)){\n\t System.out.println(\"Invalid arguments supplied\");\n\t System.exit(0);\n\t }\n\t}", "public List<Opt> getOptions() {\n\t\treturn options;\n\t}", "public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOption(OptionBuilder.withLongOpt(\"file\").withDescription(\"File to Convert\").isRequired(false).hasArg().create(\"f\"));\n //this.jcOptions.addOption(OptionBuilder.withLongOpt(\"outputfile\").withDescription(\"Output File\").isRequired(false).hasArg().create(\"of\"));\n OptionGroup jcGroup = new OptionGroup();\n jcGroup.addOption(OptionBuilder.withLongOpt(\"texttobinary\").withDescription(\"Convert text to Binary\").create(\"ttb\"));\n jcGroup.addOption(OptionBuilder.withLongOpt(\"binarytotext\").withDescription(\"Convert binary to text\").create(\"btt\"));\n this.jcOptions.addOptionGroup(jcGroup);\n }", "private String[] getArgs()\n {\n return cmd.getArgs();\n }", "private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}", "public String[] getCommandFlags() throws BuildException;", "public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}", "public void testJvmOptionsPassedInOnCommandLine() {\n String options = \"MGM was here!\";\n GcManager gcManager = new GcManager();\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(options, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(\"JVM options passed in are missing or have changed.\",\n jvmRun.getJvm().getOptions().equals(options));\n }", "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "protected CLOptionDescriptor[] createCLOptions()\n {\n //TODO: localise\n final CLOptionDescriptor options[] = new CLOptionDescriptor[ 13 ];\n\n options[0] =\n new CLOptionDescriptor( \"help\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n HELP_OPT,\n \"display this help message\",\n INFO_OPT_INCOMPAT );\n \n options[1] =\n new CLOptionDescriptor( \"file\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n FILE_OPT,\n \"the build file.\" );\n\n options[2] =\n new CLOptionDescriptor( \"log-level\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LOG_LEVEL_OPT,\n \"the verbosity level at which to log messages. \" +\n \"(DEBUG|INFO|WARN|ERROR|FATAL_ERROR)\",\n LOG_OPT_INCOMPAT );\n\n options[3] =\n new CLOptionDescriptor( \"quiet\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n QUIET_OPT,\n \"equivelent to --log-level=FATAL_ERROR\",\n LOG_OPT_INCOMPAT );\n\n options[4] =\n new CLOptionDescriptor( \"verbose\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERBOSE_OPT,\n \"equivelent to --log-level=INFO\",\n LOG_OPT_INCOMPAT );\n\n options[5] =\n new CLOptionDescriptor( \"listener\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LISTENER_OPT,\n \"the listener for log events.\" );\n\n options[6] =\n new CLOptionDescriptor( \"version\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERSION_OPT,\n \"display version\",\n INFO_OPT_INCOMPAT );\n\n options[7] =\n new CLOptionDescriptor( \"bin-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n BIN_DIR_OPT,\n \"the listener for log events.\" );\n\n options[8] =\n new CLOptionDescriptor( \"lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LIB_DIR_OPT,\n \"the lib directory to scan for jars/zip files.\" );\n\n options[9] =\n new CLOptionDescriptor( \"task-lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n TASKLIB_DIR_OPT,\n \"the task lib directory to scan for .tsk files.\" );\n options[10] =\n new CLOptionDescriptor( \"incremental\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n INCREMENTAL_OPT,\n \"Run in incremental mode\" );\n options[11] =\n new CLOptionDescriptor( \"ant-home\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n HOME_DIR_OPT,\n \"Specify ant home directory\" );\n options[12] =\n new CLOptionDescriptor( \"define\",\n CLOptionDescriptor.ARGUMENTS_REQUIRED_2,\n DEFINE_OPT,\n \"Define a variable (ie -Dfoo=var)\" );\n return options;\n }", "private SimpleCLI(Options options) {\n this.options = options;\n }", "public CopsOptionParser() {\n\t\tsuper();\n\t\taddOption(HELP);\n\t\taddOption(SCENARIO);\n\t\taddOption(VALIDATE_ONLY);\n\t\taddOption(CONF);\n\n\t}" ]
[ "0.7801268", "0.72102183", "0.7053871", "0.7005481", "0.6857774", "0.68331677", "0.6817078", "0.67450917", "0.6708004", "0.6704784", "0.6660932", "0.6608429", "0.6534261", "0.64948124", "0.6479539", "0.6437798", "0.6427279", "0.64245737", "0.64200467", "0.63935184", "0.63744855", "0.636294", "0.6345554", "0.63308215", "0.6326186", "0.6307337", "0.63032204", "0.6282252", "0.62798786", "0.626804", "0.62553346", "0.6210219", "0.6184758", "0.61460483", "0.61401373", "0.613136", "0.61242986", "0.6089694", "0.60892856", "0.6074267", "0.60670507", "0.6063323", "0.60622615", "0.6060336", "0.6058324", "0.6055422", "0.60406005", "0.60294586", "0.6013836", "0.600882", "0.5996979", "0.5995157", "0.59909976", "0.5986202", "0.59774274", "0.59766155", "0.5972354", "0.5965259", "0.59608406", "0.5957185", "0.5951633", "0.5940576", "0.5936674", "0.5935981", "0.59244376", "0.5923387", "0.59171164", "0.5899396", "0.58939207", "0.58920187", "0.5889601", "0.5882798", "0.5872568", "0.58654505", "0.585517", "0.5836189", "0.5834708", "0.58319515", "0.58304304", "0.58243775", "0.5805447", "0.57999843", "0.57974106", "0.5795389", "0.5792797", "0.5792654", "0.5779955", "0.57782525", "0.5771024", "0.57622075", "0.57580113", "0.57541597", "0.57447803", "0.5740862", "0.5735551", "0.5735171", "0.5732979", "0.57296383", "0.5727963", "0.57266396", "0.5722565" ]
0.0
-1
LeadsReducer kMeansReducer; // same for local and federation reducer
public KMeansOperator(Node com, InfinispanManager persistence, LogProxy log, Action action) { super(com, persistence, log, action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KmeansReducer(Map<Integer, Vector> centers) {\n this.centers = centers;\n }", "public KMeans() {\n }", "private static void kmeans(int[] rgb, int k) {\n\t\tColor[] rgbColor = new Color[rgb.length];\r\n\t\tColor[] ColorCluster = new Color[rgb.length];\r\n\t\tint[] ColorClusterID = new int[rgb.length];\r\n\t\t\r\n\t\tfor(int i = 0;i<rgb.length;i++) {\r\n\t\t\trgbColor[i] = new Color(rgb[i]);\r\n\t\t\tColorClusterID[i] = -1;\r\n\t\t}\r\n\t\t\r\n\t\tColor[] currentCluster = new Color[k];\t\t\r\n\t\tint randomNumber[]= ThreadLocalRandom.current().ints(0, rgb.length).distinct().limit(k).toArray();\r\n\t\tColor[] modifiedColorCluster = new Color[k];\t\r\n\t\t\r\n\t\tfor(int j=0;j<k;j++) {\r\n\t\t\tcurrentCluster[j]=rgbColor[randomNumber[j]];\r\n\t\t}\r\n\t\tint flag = 1;\r\n\t\tint maxIterations = 1000;\r\n\t\tint numIteration=0;\r\n\t\tdouble[] distance = new double[maxIterations+1];\t\t\r\n\t\tdistance[0]=Double.MAX_VALUE;\r\n\t\twhile(flag == 1) {\r\n\t\t\tflag = 0;\r\n\t\t\tnumIteration++;\r\n\t\t\tdistance[numIteration]=assignCLustersToPixels(rgbColor,currentCluster,ColorCluster,ColorClusterID,k,rgb.length);\r\n\t\t\tmodifiedColorCluster= findMeans(rgbColor,ColorClusterID,modifiedColorCluster,k,rgb.length);\r\n\t\t\tif(!clusterCenterCheck(currentCluster, modifiedColorCluster,k)){\r\n\t\t\t\tflag = 1;\r\n\t\t\t\tfor(int j=0;j<k;j++) {\r\n\t\t\t\t\tcurrentCluster[j]=modifiedColorCluster[j];}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tfor(int i = 0;i<rgb.length;i++) {\r\n\t\t\trgb[i]= getValue(ColorCluster[i].getRed(),ColorCluster[i].getGreen(),ColorCluster[i].getBlue());\r\n\t\t}\r\n\t\treturn;\r\n\t }", "public void addKMeansListener(SME_KMeansListener l);", "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations, int runs, java.lang.String initializationMode) { throw new RuntimeException(); }", "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations) { throw new RuntimeException(); }", "public org.apache.spark.mllib.clustering.KMeansModel train (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> data, int k, int maxIterations, int runs) { throw new RuntimeException(); }", "@Override\n public String kMeansClusters_json(int k) {\n\n List<Set<String>> kMeansClusters = new ArrayList<Set<String>>();\n\n if (k == 1) {\n // No algorithm needed\n kMeansClusters.add(new HashSet<String>(this.restaurantMap.keySet()));\n return this.clusterToJSON(kMeansClusters);\n }\n\n // restaurant clusters contains random centroids mapped to a set of its closest\n // restaurants (in id form)\n Map<double[], Set<String>> restaurantClusters = this.initiateClusters(k, this.restaurantMap.keySet());\n\n do {\n Set<String> emptyCluster = findEmptyCluster(restaurantClusters);\n Set<String> largestCluster = findLargestCluster(restaurantClusters);\n\n // Code below finds some random centroid within the largest cluster\n double minLat = Double.MAX_VALUE;\n double minLon = Double.MAX_VALUE;\n double maxLat = -Double.MAX_VALUE;\n double maxLon = -Double.MAX_VALUE;\n for (String rID : largestCluster) {\n double lat = this.restaurantMap.get(rID).getLatitude();\n double lon = this.restaurantMap.get(rID).getLongitude();\n if (lat < minLat) {\n minLat = lat;\n }\n if (lat > maxLat) {\n maxLat = lat;\n }\n if (lon < minLon) {\n minLon = lon;\n }\n if (lon > maxLon) {\n maxLon = lon;\n }\n }\n double[] centroidInLargestCluster = this.generateRandomCentroid(minLat, maxLat, minLon, maxLon);\n\n // Find the empty cluster and reassign its centroid by placing it somewhere in\n // the largest cluster\n for (double[] centroid : restaurantClusters.keySet()) {\n if (restaurantClusters.get(centroid).equals(emptyCluster)) {\n centroid[0] = centroidInLargestCluster[0]; // New longitude based on largest cluster\n centroid[1] = centroidInLargestCluster[1]; // New latitude based on largest cluster\n break; // Once we find the empty cluster, we are done\n }\n }\n\n // Flag is true if any restaurants are reassigned to a new centroid\n // If no restaurants are reassigned, then we are done one run through\n boolean flag;\n do {\n this.reassignCentroids(restaurantClusters);\n flag = reassignRestaurants(restaurantClusters, this.restaurantMap.keySet());\n } while (flag);\n\n } while (atLeastOneEmptyCluster(restaurantClusters)); // Repeat if any empty clusters are detected\n\n // Add final restaurant clusters to list of clusters\n for (Set<String> cluster : restaurantClusters.values()) {\n kMeansClusters.add(cluster);\n }\n return this.clusterToJSON(kMeansClusters);\n }", "@Test\n\tpublic void testReducer() {\n\n\t\tList<Text> values = new ArrayList<Text>();\n\t\tvalues.add(new Text(\"1745.09564282 5218.86073424\"));\n\n\t\t/*\n\t\t * For this test, the reducer's input will be \"cat 1 1\".\n\t\t */\n\t\treduceDriver.withInput(new Text(\"Sweden\"), values);\n\n\t\t/*\n\t\t * The expected output is \"cat 2\"\n\t\t */\n\t\treduceDriver.withOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\treduceDriver.runTest();\n\t}", "public InMemoryCombiningReducer() {\n\n\t\t}", "public List<Object> invokeMapReduce(Invoker invoker) {\n List<Pair<Pair<Short, Integer>, String>> list = clientConnections.getMapClientFromAll();\n List<KeyCluster> keyClusterList = new ArrayList<KeyCluster>(list.size());\n for ( Pair<Pair<Short, Integer>, String> each : list) {\n //key is represented by node 1 separate by , total nodes example 1,3\n //will passed by key to store proc to determine the how partition data node\n KeyCluster keyCluster = new KeyCluster(each.getFirst().getFirst(), Key.createKey(each.getSecond()),\n each.getFirst().getSecond() );\n keyClusterList.add( keyCluster);\n }\n //add Key must be true, key carry information about how to split cluster\n return executeStoreProc(invoker, keyClusterList, true);\n }", "public void performSourceMapReduce(JavaRDD<KeyValueObject<KEYIN, VALUEIN>> pInputs) {\n // if not commented out this line forces mappedKeys to be realized\n // pInputs = SparkUtilities.realizeAndReturn(pInputs,getCtx());\n JavaSparkContext ctx2 = SparkUtilities.getCurrentContext();\n System.err.println(\"Starting Score Mapping\");\n JavaPairRDD<K, Tuple2<K, V>> kkv = performMappingPart(pInputs);\n // kkv = SparkUtilities.realizeAndReturn(kkv, ctx2);\n\n// mappedKeys = mappedKeys.persist(StorageLevel.MEMORY_AND_DISK_2());\n// // if not commented out this line forces mappedKeys to be realized\n// mappedKeys = SparkUtilities.realizeAndReturn(mappedKeys, ctx2);\n//\n// // convert to tuples\n// // JavaPairRDD<K, Tuple2<K, V>> kkv = mappedKeys.mapToPair(new KeyValuePairFunction<K, V>());\n//\n// kkv = kkv.persist(StorageLevel.MEMORY_AND_DISK_2());\n// // if not commented out this line forces mappedKeys to be realized\n// kkv = SparkUtilities.realizeAndReturn(kkv, ctx2);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n // kkv = SparkUtilities.realizeAndReturn(kkv );\n\n System.err.println(\"Starting Score Reduce\");\n IReducerFunction reduce = getReduce();\n // for some reason the compiler thnks K or V is not Serializable\n JavaPairRDD<K, Tuple2<K, V>> kkv1 = kkv;\n\n // JavaPairRDD<? extends Serializable, Tuple2<? extends Serializable, ? extends Serializable>> kkv1 = (JavaPairRDD<? extends Serializable, Tuple2<? extends Serializable, ? extends Serializable>>)kkv;\n //noinspection unchecked\n JavaPairRDD<K, KeyAndValues<K, V>> reducedSets = (JavaPairRDD<K, KeyAndValues<K, V>>) KeyAndValues.combineByKey(kkv1);\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n reducedSets = SparkUtilities.realizeAndReturn(reducedSets );\n\n PartitionAdaptor<K> prt = new PartitionAdaptor<K>(getPartitioner());\n reducedSets = reducedSets.partitionBy(prt);\n reducedSets = reducedSets.sortByKey();\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n reducedSets = SparkUtilities.realizeAndReturn(reducedSets );\n\n ReduceFunctionAdaptor f = new ReduceFunctionAdaptor(ctx2, reduce);\n\n JavaRDD<KeyValueObject<KOUT, VOUT>> reducedOutput = reducedSets.flatMap(f);\n\n\n // JavaPairRDD<K, V> kvJavaPairRDD = asTuples.partitionBy(sparkPartitioner);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n //kvJavaPairRDD = SparkUtilities.realizeAndReturn(kvJavaPairRDD,getCtx());\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n // reducedOutput = SparkUtilities.realizeAndReturn(reducedOutput, ctx2);\n\n output = reducedOutput;\n }", "double actFunction(double k){\n\t\treturn Math.max(0, k); //ReLU\n\t}", "public void doValidation(int currentRound)\n {\n getData(currentRound);\n// System.out.println(\"training unterminated ones\");\n kMeans.setItems(trainingData.get(0));\n kMeans.k=k1;\n kMeans.init();\n List<Cluster> unterminatedClusters=kMeans.doCluster();\n for (int i=0;i<unterminatedClusters.size();i++)\n {\n unterminatedClusters.get(i).label=0;\n }\n \n// System.out.println(\"training terminated ones\");\n kMeans.setItems(trainingData.get(1));\n kMeans.k=k2;\n kMeans.init();\n List<Cluster> terminatedClusters=kMeans.doCluster();\n for (int i=0;i<terminatedClusters.size();i++)\n {\n terminatedClusters.get(i).label=1;\n }\n \n List<Cluster> clusters=new ArrayList<Cluster>();\n clusters.addAll(unterminatedClusters);\n clusters.addAll(terminatedClusters);\n kMeans.setClusters(clusters);\n int[] corrects=new int[2];\n int[] counts=new int[2];\n for (int i=0;i<2;i++)\n {\n corrects[i]=0;\n counts[i]=0;\n }\n for (Item item:testData)\n {\n int label=kMeans.getNearestCluster(item).label;\n counts[label]++;\n if (label==item.type)\n {\n corrects[item.type]++;\n }\n }\n correctness+=corrects[1]*1.0/counts[1];\n correctCount+=corrects[1];\n// for (int i=0;i<2;i++)\n// System.out.println(\"for type \"+i+\": \" +corrects[i]+\" correct out of \"+counts[i]+\" in total (\"+corrects[i]*1.0/counts[i]+\")\");\n }", "public String Km() throws Exception {\n int x = 0;\n System.out.println(x+\" hlikiaaaaaa\");\n ΑrffCreator gen = new ΑrffCreator();\n\t\t\tgen.ArffGenerator();\n\t\t\t\n\t\t\tSimpleKMeans kmeans = new SimpleKMeans();\n\t \n\t\t\tkmeans.setSeed(2);\n\t \n\t\t\t//important parameter to set: preserver order, number of cluster.\n\t\t\tkmeans.setPreserveInstancesOrder(true);\n\t\t\tkmeans.setNumClusters(2);\n\t \n\t\t\tBufferedReader datafile = readDataFile(\"E:\\\\Users\\\\Filippos\\\\Documents\\\\NetBeansProjects\\\\MapsCopy\\\\mytext.arff\"); \n\t\t\tInstances data = new Instances(datafile);\n\t \n\t \n\t\t\tkmeans.buildClusterer(data);\n\t \n\t\t\t// This array returns the cluster number (starting with 0) for each instance\n\t\t\t// The array has as many elements as the number of instances\n\t\t\tint[] assignments = kmeans.getAssignments();\n int noNoobs=-1;\n\t\t\t//int i=0;\n\t\t\tint g = assignments.length;\n String studentsLvl = \"\";\n String quizAns = \"\";\n int clusterResult;\n\t\t\t/*----------------------------------------->xeirokinitos upologismos<----------------------------------------\n \n /*for(int clusterNum : assignments) {\n if(i==x){\n noNoobs = assignments[i];\n System.out.println(\"to \"+g+\"o einai \"+ clusterNum+\"= \"+x+\" o cluster EINAI PROXORIMENOS\");\n\t\t\t\t}\t\n if(i==g-1) {\n \n if(assignments[i] == noNoobs){\n studentsLvl = \"advanced\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS\"+assignments[i]);\n \n }\n else{\n studentsLvl = \"beginner\";\n System.out.println(\"DEN PAEI POY8ENA ETSI\") ; \n }\n \n\t\t\t i++;\n\t\t\t}\n ---------------------------------------------------------------------------------------------------------*/\n /*upologizw thn euklideia apostash twn telikwn cluster cendroids apo to shmeio 0,0 \n auto pou apexei perissotero apo to kentro twn a3onwn , 8a einai to cluster advanced epeidi oso megaluterh hlikia \n kai kalutero scor sto preliminary test , toso pio advanced. Ka8w h logiki einai oti enas pio megalos kai diavasmenos ma8hths\n kaluteros apo enan pio pio mikro kai e3isou diavasmeno ma8hth h enan sunmoliko alla ligotero diavasmeno\n ----------------------------------------------------------------------------------------------------------*/\n \n //1 vazw ta teleutaia clusterCendroids se ena instance\t\t\t\n\t\t\tInstances clusterCendroid = kmeans.getClusterCentroids();\n //ta metatrepw se string\n\t\t\tString cluster0 = (clusterCendroid.firstInstance()).toString();\n\t\t\tString cluster1 = (clusterCendroid.lastInstance()).toString();\n\t\t\tSystem.out.println(cluster0+\"++++++++++++++++\"+cluster1);\n\t\t\t\n //2 spaw to ka8e string sto \",\" gt einai tis morfhs cluster0=\"x0,y0\" cluster1=\"x1,y1\"\n\t\t\tString[] parts = cluster0.split(\",\");\n\t\t\tString partx0 = parts[0]; // 004\n\t\t\tString party0 = parts[1]; // 034556\n\t\n\t\t\tSystem.out.println(partx0+\" || \"+party0);\n \n //3 Metatrepw ta String se double metavlites gia na epitrepontai oi pra3eis\n\t\t\tdouble clusterDx0 = Double.parseDouble(partx0);\n\t\t\tdouble clusterDy0 = Double.parseDouble(party0);\n\t\t\tSystem.out.println(clusterDx0+clusterDy0);\n\t\t\t\n //epanalamvanoume thn diadikasia apo to vhma 2\n\t\t\tString[] parts1 = cluster1.split(\",\");\n\t\t\tString partx1 = parts1[0]; // 004\n\t\t\tString party1 = parts1[1]; // 034556\n\t\t\t\n\t\t\tSystem.out.println(partx1+\" || \"+party1);\n\t\t\t\n \n double clusterDx1 = Double.parseDouble(partx1);\n\t\t\tdouble clusterDy1 = Double.parseDouble(party1);\n\t\t\t//System.out.println(clusterDx1+clusterDy2);\n //ypologizw thn euklidia apostasi twn 2 shmeivn ws pros to 0,0\n\t\t\tdouble popo = Math.sqrt((Math.pow(clusterDx0,2)+Math.pow(clusterDy0,2)));\n\t\t\tdouble popo2 = Math.sqrt((Math.pow(clusterDx1,2)+Math.pow(clusterDy1,2)));\n \n\t\t\tif (Math.max(popo, popo2)==popo) {\n \n clusterResult=0;\n\t\t\t\tSystem.out.println(\"0=advanced -- \"+popo+\"--1=begginer \"+popo2);\n\t\t\t}\n\t\t\telse {\n clusterResult=1;\n\t\t\t\tSystem.out.println(\"1=advanced -- \"+popo2+\"--0=begginer \"+popo);\n\t\t\t}\n\t\t\tSystem.out.println(popo+\"||\"+popo2+\"||\");\n \n if (assignments[data.numInstances()-1]==clusterResult){\n studentsLvl = \"advanced\";\n quizAns = \"yes\";\n System.out.println(\"MPAINEI STOUS PROXORIMENOUS \"+assignments[data.numInstances()-1]);\n }\n else{\n quizAns = \"no\";\n studentsLvl = \"beginner\";\n System.out.println(\"MPAINEI STOUS MH PROXORIMENOUS \"+assignments[data.numInstances()-1]) ; \n }\n \n coursequizs lev = new coursequizs();\n lev.studentLevel(studentsLvl,quizAns);\n \n System.out.println(Arrays.toString(assignments));\n return \"home.jsf\";\n\t\t}", "@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer, final IPartitionFunction<K> pPartitioner) {\n return new SparkMapReduce(name, pMapper, pRetucer, pPartitioner);\n }", "private static List<Pair> runFlightMapReduce(String[] passengerData) {\n\n logger.debug(\"Mapping flights\");\n Mapper flightMapper = new FlightMapper();\n List<Pair> mappedFlights = flightMapper.execute(passengerData);\n\n logger.debug(\"Shuffling flights\");\n Shuffler flightShuffler = new Shuffler();\n List<Pair<String, List>> shuffledFlights = flightShuffler.execute(mappedFlights);\n\n logger.debug(\"Reducing flights\");\n Reducer flightReducer = new FlightReducer();\n return flightReducer.execute(shuffledFlights);\n }", "public KCluster3_HammingDistance_Stanford_Coursera() {\n\n }", "<K1, V1> KTable<K1, V1> reduce(Reducer<V1> addReducer,\n Reducer<V1> removeReducer,\n KeyValueMapper<K, V, KeyValue<K1, V1>> selector,\n Serializer<K1> keySerializer,\n Serializer<V1> valueSerializer,\n Deserializer<K1> keyDeserializer,\n Deserializer<V1> valueDeserializer,\n String name);", "private static void k_means_online(double[][] X, int k, String[] args){\n double[][] m = chooseKCluserCentres(k, X[0].length);\n double[][] oldM = m;\n \n //while loop and stopping condition\n int count = 0;\n \n //the index of each m associated to X, done below\n //first array is list of m's, second will be associated X_row indexes\n /*int[][] X_Assignments = new int[k][noRows];*/\n List<List<Integer>> X_Assignments = initXAssignments(m);\n\n \tboolean continue_ = findTermination(count, oldM, m);\n while(continue_){\n \toldM = m;\n \tX_Assignments = initXAssignments(m);\n\n \tfor(int i=0; i<X.length; i++){\n \t\tint minClusterIndex = findMinClusterIndex(X[i], m);\n \t\t//System.out.println(minClusterIndex);\n \t\tX_Assignments.get(minClusterIndex).add(i); //add to the list of clusters to points\n \t}\n\n \t//Check lists\n \t//printDoubleArrayList(X_Assignments);\n\n \tfor (int i=0; i<m.length; i++){\n \t\tm[i] = findClusterMean(X, X_Assignments, m, i); //finds for every dimension \n \t}\n\n \tcontinue_ = findTermination(count, oldM, m);\n \tcount++;\n }\n\n double sumOfSquaresError = findSumOfSquaresError(X, m);\n printOutput(X_Assignments, m, sumOfSquaresError, k, count);\n\n //append output file specified by args[1]\n //writeOutputToFile (args[0], k, m, sumOfSquaresError, args[1]);\n }", "@Override\r\n\tprotected void reduce(IntWritable key, Iterable<Text> allValues,\r\n\t\t\tContext context) throws IOException, InterruptedException {\n\r\n\t\tHashSet<Integer> recommendFriendInfo = new HashSet<Integer>();\r\n\t\tHashSet<Integer> myFriends = new HashSet<Integer>();\r\n//\t\tHashSet<Integer> testFriends = new HashSet<Integer>();\r\n\r\n\t\tfor (Text eachValue : allValues) {\r\n\t\t\tString eachValueString = eachValue.toString();\r\n\r\n\t\t\tif (eachValueString\r\n\t\t\t\t\t.startsWith(Protocols.RECOMMEND_PHASE_2_FRIENDS_STARTS_WITH)) {\r\n\t\t\t\teachValueString = eachValueString\r\n\t\t\t\t\t\t.substring(Protocols.RECOMMEND_PHASE_2_FRIENDS_STARTS_WITH\r\n\t\t\t\t\t\t\t\t.length());\r\n\t\t\t\tmyFriends.add(Integer.parseInt(eachValueString));\r\n\t\t\t} else if (eachValueString\r\n\t\t\t\t\t.startsWith(Protocols.RECOMMEND_PHASE_2_TEST_FRIENDS_STARTS_WITH)) {\r\n//\t\t\t\teachValueString = eachValueString\r\n//\t\t\t\t\t\t.substring(Protocols.RECOMMEND_PHASE_2_TEST_FRIENDS_STARTS_WITH\r\n//\t\t\t\t\t\t\t\t.length());\r\n//\t\t\t\ttestFriends.add(Integer.parseInt(eachValueString));\r\n\t\t\t} else {\r\n\t\t\t\trecommendFriendInfo.add(Integer.parseInt(eachValueString));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\trecommendFriendInfo.remove(key.get());\r\n\t\tfor (Integer eachMyFriend : myFriends) {\r\n\t\t\trecommendFriendInfo.remove(eachMyFriend);\r\n\t\t}\r\n//\t\tint count = 0;\r\n//\t\tfor (Integer eachTestInteger : testFriends) {\r\n//\t\t\tif (recommendFriendInfo.contains(eachTestInteger)) {\r\n//\t\t\t\tcount++;\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t// context.write(NullWritable.get(), new Text(\"Count: \" + count +\r\n\t\t// \" Out Of: \" + testFriends.size() + \" Accuracy: \" + (float) count*1.0f\r\n\t\t// / testFriends.size()));\r\n\t\t// if(count>0)\r\n\t\t// {\r\n\t\t// context.write(NullWritable.get(), new Text(\"TRUE\"));\r\n\t\t// }\r\n\r\n\t\tif (recommendFriendInfo.size() == 0) {\r\n//\t\t\tcontext.write(NullWritable.get(), new Text(\r\n//\t\t\t\t\tProtocols.COLD_START_STARTS_WITH + key\r\n//\t\t\t\t\t\t\t+ Protocols.VALUE_SEPARATOR + myFriends));\r\n\t\t} else {\r\n\t\t\tcontext.write(NullWritable.get(), new Text(\r\n\t\t\t\t\tProtocols.RECOMMEND_LIST_STARTS_WITH + key\r\n\t\t\t\t\t\t\t+ Protocols.VALUE_SEPARATOR\r\n\t\t\t\t\t\t\t+ recommendFriendInfo.toString()));\r\n\r\n\t\t}\r\n//\t\tif (testFriends.size() == 0) {\r\n////\t\t\tcontext.write(NullWritable.get(), new Text(Protocols.NO_TEST_DATA\r\n////\t\t\t\t\t+ key));\r\n////\t\t\tcontext.write(NullWritable.get(), new Text(\r\n////\t\t\t\t\tProtocols.ACCURACY_STARTS_WITH + \"1.0\"));\r\n//\r\n//\t\t}\r\n//\t\t\r\n//\t\tint din = testFriends.size();\r\n//\t\tif(recommendFriendInfo.size() < testFriends.size())\r\n//\t\t{\r\n//\t\t\tdin = recommendFriendInfo.size();\r\n//\t\t}\r\n//\t\tif (recommendFriendInfo.size() != 0 && testFriends.size() != 0) {\r\n//\t\t\tcontext.write(NullWritable.get(), new Text(\r\n//\t\t\t\t\tProtocols.ACCURACY_STARTS_WITH + (float) count * 1.0f\r\n//\t\t\t\t\t\t\t/ din));\r\n//\r\n//\t\t}\r\n\t\t// context.write(NullWritable.get(), new Text(key +\r\n\t\t// Protocols.VALUE_SEPARATOR + result));\r\n\r\n\t}", "@Test\n\tpublic void testMapReduce() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat cat dog\" \n\t\t */\n\t\tmapReduceDriver.withInput(new LongWritable(1), new Text(swedenHealth));\n\n\t\t/*\n\t\t * The expected output (from the reducer) is \"cat 2\", \"dog 1\". \n\t\t */\n\t\tmapReduceDriver.addOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\tmapReduceDriver.runTest();\n\t}", "public static void main(String[] args)\r\n\t{\n\t\tList<Location> locations = new ArrayList<Location>();\r\n\t\tlocations.add(new Location(150, 981));\r\n\t\tlocations.add(new Location(136, 0));\r\n\t\tlocations.add(new Location(158, 88));\r\n\t\tlocations.add(new Location(330, 60));\r\n\t\tlocations.add(new Location(0, 1001));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(0, 0));\r\n\t\tlocations.add(new Location(446, 88));\r\n\t\tlocations.add(new Location(562, 88));\r\n\t\tlocations.add(new Location(256, 88));\r\n\t\tlocations.add(new Location(678, 88));\r\n\t\tlocations.add(new Location(794, 88));\r\n\t\tlocations.add(new Location(0, 1028));\r\n\t\tlocations.add(new Location(136, 0));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 1028));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(150, 88));\r\n\t\tlocations.add(new Location(136, 103));\r\n\t\tlocations.add(new Location(150, 0));\r\n\t\tList<LocationWrapper> clusterInput = new ArrayList<LocationWrapper>(locations.size());\r\n\t\tfor (Location location : locations)\r\n\t\t\tclusterInput.add(new LocationWrapper(location));\r\n\r\n\t\t// initialize a new clustering algorithm.\r\n\t\t// we use KMeans++ with 10 clusters and 10000 iterations maximum.\r\n\t\t// we did not specify a distance measure; the default (euclidean\r\n\t\t// distance) is used.\r\n\t\t// org.apache.commons.math3.ml.clustering.FuzzyKMeansClusterer<LocationWrapper>\r\n\t\t// clusterer = new\r\n\t\t// org.apache.commons.math3.ml.clustering.FuzzyKMeansClusterer<LocationWrapper>(2,\r\n\t\t// 2);\r\n\t\t// KMeansPlusPlusClusterer<LocationWrapper> clusterer = new\r\n\t\t// KMeansPlusPlusClusterer<LocationWrapper>(2, 10);\r\n\r\n\t\tDBSCANClusterer<LocationWrapper> clusterer = new DBSCANClusterer<LocationWrapper>(1200.0, 5);\r\n\t\tList<Cluster<LocationWrapper>> clusterResults = clusterer.cluster(clusterInput);\r\n\t\t// List<CentroidCluster<LocationWrapper>> clusterResults =\r\n\t\t// clusterer.cluster(clusterInput);\r\n\r\n\t\t// output the clusters\r\n\t\tSystem.out.println(\"clusterResults.size() = \" + clusterResults.size());\r\n\t\tfor (int i = 0; i < clusterResults.size(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Cluster \" + i);\r\n\t\t\tfor (LocationWrapper locationWrapper : clusterResults.get(i).getPoints())\r\n\t\t\t\tSystem.out.println(locationWrapper.getLocation());\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public Evaluator(RANKER_TYPE rType, METRIC metric, int k) {\n/* 638 */ this.type = rType;\n/* 639 */ this.trainScorer = this.mFact.createScorer(metric, k);\n/* 640 */ if (qrelFile.compareTo(\"\") != 0)\n/* 641 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile); \n/* 642 */ this.testScorer = this.trainScorer;\n/* */ }", "RealMatrix getK();", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000_ = 0;\nint a001_ = 0;\nint a002_ = 0;\nint a003_ = 0;\nint a004_ = 0;\nint a005_ = 0;\nint a006_ = 0;\nint a007_ = 0;\nint a008_ = 0;\nint a009_ = 0;\nint a010_ = 0;\nint a011_ = 0;\nint a012_ = 0;\nint a013_ = 0;\nint a014_ = 0;\nint a015_ = 0;\nint a016_ = 0;\nint a017_ = 0;\nint a018_ = 0;\nint a019_ = 0;\nint a020_ = 0;\nint a021_ = 0;\nint a022_ = 0;\nint a023_ = 0;\nint a024_ = 0;\nint cur_ = 0;\n\nwhile (iter.hasNext()) {\ncur_ = iter.next().get();\na012_ = a000_ - a017_;\na004_ = cur_ - 2;\na008_ = a018_ - a009_;\na020_ = a020_ - cur_;\na021_ = a001_ - a009_;\na010_ = a002_ + a004_;\na013_ = a005_ + a005_;\na009_ = a019_ + a012_;\na008_ = a008_ * -5;\na021_ = a022_ - a023_;\na002_ = a020_ - a022_;\na019_ = cur_ + a020_;\ncur_ = cur_ + a008_;\na020_ = a006_ + a021_;\na021_ = a008_ - a017_;\na017_ = a021_ - a009_;\ncur_ = a011_ - a005_;\nif (a004_ == a007_) {\na007_ = -2 - a015_;\na022_ = a005_ - a019_;\na013_ = a010_ - a022_;\na024_ = a009_ + a000_;\na018_ = a003_ - 3;\na019_ = a021_ - a002_;\na000_ = a017_ + cur_;\na010_ = a020_ - 1;\na000_ = a020_ - a024_;\na017_ = a004_ + a007_;\na009_ = a001_ - a010_;\na015_ = a018_ + a022_;\na023_ = a013_ + a016_;\na024_ = cur_ - a019_;\na015_ = a013_ - a017_;\na024_ = a003_ - a021_;\na018_ = a003_ - a023_;\n} else {\na011_ = a006_ + a023_;\na018_ = a003_ - a015_;\na022_ = a008_ - a007_;\na005_ = a001_ - cur_;\na007_ = a000_ + a012_;\na000_ = a007_ + a023_;\na009_ = cur_ + a010_;\na018_ = -1 + a001_;\na003_ = -2 + a005_;\na006_ = a009_ + a020_;\na001_ = a017_ + a022_;\na024_ = a009_ + a006_;\na005_ = a017_ - a023_;\na004_ = a017_ - a019_;\na015_ = a018_ - a018_;\na021_ = a019_ + a011_;\na024_ = a009_ - a014_;\na009_ = 0 + a023_;\na020_ = a011_ + a006_;\na012_ = a005_ - a011_;\na010_ = a001_ - a018_;\na012_ = a002_ - a003_;\ncur_ = a006_ - a013_;\n}\na000_ = a023_ + a012_;\na008_ = a016_ - a018_;\na024_ = a018_ + a010_;\na013_ = a018_ + a002_;\na009_ = a016_ + a015_;\na005_ = a002_ + a009_;\na004_ = a009_ + a011_;\na011_ = a011_ + a013_;\na022_ = a019_ + a008_;\na017_ = a016_ + a010_;\na014_ = a012_ - a023_;\na005_ = a019_ - a001_;\na005_ = a013_ * -4;\na009_ = a020_ + a008_;\na012_ = a020_ - a001_;\na013_ = a016_ - a000_;\na012_ = a003_ + a000_;\na022_ = a001_ + a002_;\na001_ = a010_ - a024_;\na003_ = a008_ + a015_;\na012_ = a012_ - a020_;\na001_ = a019_ + a015_;\na009_ = a002_ + a018_;\na021_ = a024_ - a006_;\nif (a024_ == a014_) {\na006_ = a002_ + a016_;\na003_ = a020_ - 2;\na008_ = a020_ - a018_;\na015_ = a012_ + a001_;\na008_ = cur_ - a014_;\na001_ = a002_ - a008_;\na004_ = a015_ + a011_;\na024_ = -4 + a020_;\na021_ = a013_ + a012_;\na005_ = a012_ + a001_;\na009_ = a012_ + a018_;\na023_ = a016_ - a003_;\na011_ = a019_ - a012_;\na005_ = a000_ - a008_;\na004_ = a024_ - a011_;\na022_ = a024_ - a009_;\na005_ = a007_ + a011_;\na001_ = a012_ + a000_;\na006_ = a020_ - cur_;\na015_ = a020_ - 1;\n} else {\na001_ = a006_ - a019_;\na019_ = 2 - a014_;\ncur_ = a021_ + a009_;\na023_ = a010_ + 3;\na005_ = a018_ + a019_;\na015_ = cur_ + a020_;\na001_ = a009_ - a021_;\na016_ = a009_ - a004_;\na005_ = a003_ + a023_;\na006_ = a008_ - a008_;\ncur_ = a013_ - -3;\na018_ = a007_ + a009_;\nif (a011_ <= a024_) {\na001_ = a001_ - a007_;\na018_ = a001_ - a010_;\na015_ = a016_ + a008_;\na009_ = a013_ - a015_;\na001_ = a018_ + a001_;\na001_ = a024_ - a002_;\na018_ = a006_ + a015_;\na001_ = a000_ - 0;\na022_ = a024_ - a009_;\na011_ = a008_ - a015_;\na009_ = a017_ + a000_;\na016_ = a005_ + a023_;\na001_ = a007_ - a023_;\na008_ = a023_ - a020_;\na023_ = a005_ - a016_;\na020_ = a024_ + a008_;\na005_ = a008_ - a003_;\na016_ = a006_ + a011_;\na006_ = a004_ + a014_;\na013_ = -2 - a001_;\na021_ = a008_ - a005_;\na000_ = a011_ - a016_;\na024_ = a008_ - a000_;\na007_ = a008_ + a013_;\n} else {\na021_ = a010_ + a018_;\na005_ = a013_ - a023_;\na012_ = a011_ - a024_;\na014_ = a002_ + a009_;\na022_ = a022_ + a015_;\na024_ = a008_ + a021_;\ncur_ = a014_ + a009_;\na018_ = a004_ + a015_;\na004_ = a018_ + a004_;\na020_ = a013_ + a005_;\na017_ = a012_ - a007_;\na011_ = a017_ - a005_;\na015_ = a012_ - a014_;\na020_ = 2 - a009_;\na019_ = a001_ + a023_;\na003_ = a008_ - a020_;\ncur_ = a005_ - a001_;\na016_ = a011_ + a022_;\na005_ = a010_ + cur_;\na018_ = a021_ - a016_;\na022_ = a005_ - a016_;\n}\nif (a011_ == a020_) {\na017_ = a007_ + a006_;\na017_ = a001_ - a002_;\na003_ = a005_ + a023_;\na012_ = a007_ + a021_;\na005_ = a020_ + a005_;\na023_ = a019_ + a003_;\na019_ = a016_ - a013_;\na013_ = a008_ + a002_;\na023_ = a004_ - a020_;\na014_ = a000_ + a013_;\na015_ = a008_ + a011_;\na010_ = a004_ - a014_;\na020_ = a022_ - a013_;\na020_ = a011_ + a015_;\na021_ = a021_ + a021_;\na024_ = a009_ - 2;\na012_ = a014_ - a018_;\na014_ = a009_ + a024_;\na021_ = a019_ - a007_;\nif (a006_ <= a022_) {\ncur_ = a004_ - a006_;\na022_ = a021_ - a003_;\na013_ = a023_ - a001_;\na011_ = a017_ - a009_;\na002_ = a000_ + a005_;\na019_ = a005_ + a023_;\na007_ = a024_ + a013_;\na014_ = a001_ - a003_;\na007_ = 3 + a003_;\na000_ = a002_ + a011_;\na000_ = a004_ + a012_;\na018_ = a013_ + a024_;\na024_ = a023_ - cur_;\na001_ = a007_ + a008_;\ncur_ = a008_ + a000_;\na012_ = a013_ + a000_;\na001_ = a008_ - a021_;\na013_ = a006_ + a018_;\na024_ = a004_ - a001_;\na014_ = a000_ - a006_;\na008_ = a010_ * 2;\na000_ = a019_ + a011_;\na000_ = a019_ + a000_;\n} else {\na014_ = a010_ - a009_;\na007_ = a009_ + a004_;\na019_ = a017_ + a006_;\na001_ = a019_ + a005_;\na015_ = a000_ - a006_;\na002_ = a011_ + a011_;\na013_ = a013_ + a015_;\na005_ = a014_ + a015_;\na017_ = a000_ + a000_;\na015_ = a019_ - a013_;\na007_ = a021_ + a005_;\na020_ = -4 + a007_;\na007_ = a022_ + a003_;\na009_ = a021_ - a001_;\na002_ = a009_ + a004_;\na016_ = a018_ + a022_;\na008_ = a007_ - a001_;\na007_ = a010_ + a010_;\na012_ = a020_ + a013_;\na006_ = a011_ + a011_;\na023_ = a021_ + a002_;\na023_ = a015_ + a011_;\na008_ = a005_ - a024_;\na019_ = a000_ - a015_;\na007_ = a022_ - a003_;\na023_ = a008_ - a007_;\na007_ = a008_ - a023_;\na024_ = a018_ + a005_;\na001_ = a013_ - a002_;\na017_ = a023_ - a011_;\na022_ = a003_ + a004_;\n}\na010_ = a017_ - a010_;\na012_ = a013_ - a019_;\na001_ = cur_ + a012_;\na017_ = a015_ + a002_;\na018_ = a023_ + a020_;\na020_ = a012_ + a022_;\ncur_ = a023_ - a005_;\na000_ = a019_ - a022_;\na002_ = a006_ + a015_;\na022_ = a015_ - a003_;\na016_ = a013_ + -1;\na010_ = a016_ - a002_;\na021_ = a009_ - a008_;\na021_ = a002_ + a003_;\na013_ = a004_ - a008_;\n} else {\na015_ = a019_ + a023_;\na001_ = a014_ - a000_;\n}\na015_ = a014_ + a023_;\n}\na002_ = a014_ + a010_;\n}\noutput.collect(prefix, new IntWritable(a023_));\n}", "public boolean getUseReducer(){\n\t\treturn this.useReducer;\n\t}", "public Matrix<States, Outputs> getK() {\n return m_K;\n }", "private Map<double[], Set<String>> initiateClusters(int k, Set<String> restaurantIDs) {\n // centroids[0] is lattitude and centroids[1] is longitude for a centroid\n // Map assigns restaurants to a specific centroid\n Map<double[], Set<String>> restaurantClusters = new HashMap<double[], Set<String>>();\n\n // Find the min and max latitudes and longitudes\n double minLat = Double.MAX_VALUE;\n double minLon = Double.MAX_VALUE;\n double maxLat = -Double.MAX_VALUE;\n double maxLon = -Double.MAX_VALUE;\n\n for (String rID : restaurantIDs) {\n double lat = this.restaurantMap.get(rID).getLatitude();\n double lon = this.restaurantMap.get(rID).getLongitude();\n if (lat < minLat) {\n minLat = lat;\n }\n if (lat > maxLat) {\n maxLat = lat;\n }\n if (lon < minLon) {\n minLon = lon;\n }\n if (lon > maxLon) {\n maxLon = lon;\n }\n }\n\n // Create a number of centroids equal to k\n for (int i = 0; i < k; i++) {\n // generate random centroid based on min and max latitudes\n // and longitudes, with (currently) no assigned restaurants\n HashSet<String> emptySet = new HashSet<String>();\n restaurantClusters.put(this.generateRandomCentroid(minLat, maxLat, minLon, maxLon), emptySet);\n }\n\n // Assign each restaurant to its closest centroid\n\n for (String rID : restaurantIDs) {\n\n double[] newCentroid = null;\n double minDist = Double.MAX_VALUE;\n\n for (double[] centroid : restaurantClusters.keySet()) {\n double distance = this.computeDistance(centroid, this.restaurantMap.get(rID));\n if (distance < minDist) {\n newCentroid = centroid;\n minDist = distance;\n }\n }\n restaurantClusters.get(newCentroid).add(rID);\n }\n return restaurantClusters;\n }", "@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer) {\n return new SparkMapReduce(name, pMapper, pRetucer);\n }", "public interface Reducer<KeyIn extends WritableComparable<KeyIn> , ValueIn extends WritableComparable<ValueIn> , KeyOut extends WritableComparable<KeyOut> , ValueOut extends WritableComparable<ValueOut>> {\n\t\n\tpublic void reduce(KeyIn keyIn , Iterator<ValueIn> values , ReduceOutputCollector<KeyOut, ValueOut> outputCollector );\n\t\n}", "private void process() {\n\n Cluster current=_clusters.get(0);\n while (!current.isValid()) {\n KMeans kmeans=new KMeans(K,current);\n for (Cluster cluster : kmeans.getResult())\n if (cluster.getId()!=current.getId())\n _clusters.add(cluster);\n for (; current.isValid() && current.getId()+1<_clusters.size(); current=_clusters.get(current.getId()+1));\n }\n }", "private static void k_means_offline(double[][] X, int k, String[] args){\n double[][] m = chooseKCluserCentres(k, X[0].length);\n double[][] oldM = m;\n \n //while loop and stopping condition\n int count = 0;\n \n //the index of each m associated to X, done below\n //first array is list of m's, second will be associated X_row indexes\n /*int[][] X_Assignments = new int[k][noRows];*/\n List<List<Integer>> X_Assignments = initXAssignments(m);\n\n \tboolean continue_ = findTermination(count, oldM, m);\n while(continue_){\n \toldM = m;\n \tX_Assignments = initXAssignments(m);\n\n \tfor(int i=0; i<X.length; i++){\n \t\tint minClusterIndex = findMinClusterIndex(X[i], m);\n \t\t//System.out.println(minClusterIndex);\n \t\tX_Assignments.get(minClusterIndex).add(i); //add to the list of clusters to points\n \t}\n\n \t//Check lists\n \t//printDoubleArrayList(X_Assignments);\n\n \tfor (int i=0; i<m.length; i++){\n \t\tm[i] = findClusterMean(X, X_Assignments, m, i); //finds for every dimension \n \t}\n\n \tcontinue_ = findTermination(count, oldM, m);\n \tcount++;\n }\n\n double sumOfSquaresError = findSumOfSquaresError(X, m);\n printOutput(X_Assignments, m, sumOfSquaresError, k, count);\n\n //append output file specified by args[1]\n writeOutputToFile (args[0], k, m, sumOfSquaresError, args[1]);\n }", "public static void main(String args[])throws Exception{ \n //首先定义两个临时文件夹,这里可以使用随机函数+文件名,这样重名的几率就很小。 \n String dstFile = \"temp_src\"; \n String srcFile = \"temp_dst\"; \n \n Configuration conf = new Configuration(); \n \n System.out.println(\"fs:\" + conf.get(\"fs.default.name\"));\n // must!!! config the fs.default.name be the same to the value in core-site.xml \n \n// conf.set(\"fs.default.name\",\"hdfs://hadoop1-node1:9000\"); \n// \n// conf.set(\"mapred.job.tracker\",\"hadoop1-node1:9001\"); \n \n conf.set(\"mapred.jar\", \"E:/work_space_trade/howbuy-hadoop_20150209/target/test-classes/wordcount.jar\");\n \n// conf.set(\"hadoop.native.lib\", \"false\");\n \n /* //这里生成文件操作对象。 \n HDFS_File file = new HDFS_File(); \n \n \n //从本地上传文件到HDFS,可以是文件也可以是目录 \n file.PutFile(conf, args[0], dstFile); \n \n System.out.println(\"up ok\"); */\n \n \n \n Job job = new Job(conf, \"mywordcount1\"); \n job.setJarByClass(Mywordcount.class); \n \n job.setInputFormatClass(TextInputFormat.class); \n \n job.setOutputKeyClass(Text.class); \n job.setOutputValueClass(IntWritable.class); \n \n job.setMapperClass(WordcountMapper.class); \n job.setReducerClass(WordcountReducer.class); \n job.setCombinerClass(WordcountReducer.class); \n //注意这里的输入输出都应该是在HDFS下的文件或目录 \n FileInputFormat.setInputPaths(job, new Path(\"/wordcount\")); \n FileOutputFormat.setOutputPath(job, new Path(\"/wordoutput\"));\n //开始运行 \n job.waitForCompletion(true); \n \n /*//从HDFS取回文件保存至本地 \n file.GetFile(conf, srcFile, args[1]); \n System.out.println(\"down the result ok!\"); \n //删除临时文件或目录 \n file.DelFile(conf, dstFile, true); \n file.DelFile(conf, srcFile, true); */\n \n System.out.println(\"delete file on hdfs ok!\"); \n }", "public ArrayList<ArrayList<Example>> kmeanlearn(int k, int n, boolean dist) {\n kmean = new KMean(new ArrayList<Example>(learningData.getExamples().subList(n+1, learningData.getExamples().size())), k);\n kmean.kmeanAlgorithm(dist);\n return kmean.getCluster();\n }", "public void removeKMeansListener(SME_KMeansListener l);", "public static void main ( String[] args ) throws Exception \r\n {\n \tConfiguration conf= new \tConfiguration();\r\n \tJob job = Job.getInstance();\r\n job.setJobName(\"KmeansJob\");\r\n job.addCacheFile(new URI(args[1]));\r\n job.setJarByClass(KMeans.class);\r\n job.setOutputKeyClass(Text.class);//reducer me text daalo\r\n job.setOutputValueClass(Object.class);// null writable daalo //object?\r\n job.setMapOutputKeyClass(Point.class);\r\n job.setMapOutputValueClass(Point.class);\r\n job.setMapperClass(AvgMapper.class);\r\n job.setReducerClass(AvgReducer.class);\r\n job.setInputFormatClass(TextInputFormat.class);\r\n job.setOutputFormatClass(TextOutputFormat.class);\r\n FileInputFormat.setInputPaths(job,new Path(args[0]));\r\n FileOutputFormat.setOutputPath(job,new Path(args[2]));\r\n job.waitForCompletion(true);\r\n\r\n \r\n \r\n }", "public KMeans(int K) {\n this();\n this.K = K;\n centroids = new SparseVector[K];\n isInitialized = new boolean[K];\n for (int i = 0; i < K; i++) {\n centroids[i] = new SparseVector();\n isInitialized[i] = false;\n }\n }", "public void write(KEYOUT key, VALUEOUT value\n ) throws IOException, InterruptedException {\n\t \n\t int disableHashing_flag=0;\n\t \n\t disableHashing_flag = this.getConfiguration().getInt(\"mapred.job.disableHashing\", 0);\n\t \n//\t System.out.println(\"___________inside write() in TaskInputOutputContextImpl.java_______________Thread.currentThread().getStackTrace() = \");\n//\t for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {System.out.println(\"ste = \"+ste);}\n\t \n\t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n\t \n\t //System.out.println(\"\\n\\n\\n\\nENTERED write\\n\\n\\n\\n\\n\");\n\t \n//\t if(key !=null)\n//\t {\n//\t\t System.out.println(\"key = \"+key); \n//\t }\n//\t if(value !=null)\n//\t {\n//\t\t System.out.println(\"value = \"+value); \n//\t }\n\t \n\t \n\t if(reducerORmapper.equals(\"r\") && disableHashing_flag==0) //&& key !=null && value !=null )\n\t {\n\t\t //KV=key.toString()+value.toString();\n\t\t if(key !=null && value!=null)\n\t\t {\n\t\t\t KV=key.toString()+value.toString();\n\t\t }else\n\t\t if(value !=null)\n\t\t {\n\t\t\t KV=value.toString();\n\t\t }\n\t\t //total_hash+=KV.hashCode();//This was the old way of doing the hashes and it worked perfectly\n\t\t //This old hash value was an integer, now it is becoming a String\n\t\t //Reducer.external_total_hash=total_hash;\n\t\t MessageDigest messageDigest;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = messageDigest.digest(KV.getBytes(\"UTF-8\"));\n\t\t\t\n\t\t\t//System.out.println(\"firstKey = \"+firstKey);\n\t\t\t\n\t\t\tif(firstKey==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"1 ENTERED firstKey==0\");\n\t\t\t\tReducer.external_total_hash_byteArray=new byte[hash.length];\t\t\t\t\n\t\t\t}\n\t\t\t//messageDigest.update(KV.getBytes());\n\t\t\t//String encryptedString = new String(messageDigest.digest());\n\t\t\t//total_hash_string+=encryptedString;\n\t\t\t//Reducer.external_total_hash_string=total_hash_string;\n\t\t for(int i=0; i< hash.length;i++){//(byte b : hash) {\n\t\t \tif(firstKey==0)\n\t\t \t{\t\t \t\t\n\t\t \t\tSystem.out.println(\"2 ENTERED firstKey==0\");\n\t\t \t\tReducer.external_total_hash_byteArray[i]=hash[i];//Integer.toHexString(hash[i] & 0xff);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tReducer.external_total_hash_byteArray[i]=(byte)(Reducer.external_total_hash_byteArray[i]+hash[i]);\n\t\t \t}\n\t\t }\n\t\t\t//Reducer.external_total_hash_byteArray+=hash;\n\t\t\t \n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\tfirstKey++;\n\t\t \n//\t\t System.out.println(\"this.local_taskID = \"+this.local_taskID);\n//\t\t System.out.println(\"++++++ inside write in TaskInputOutputContextImpl key.toString() = \"\n//\t\t +key.toString()+\" value.toString() = \"+value.toString()+\" KV.hashCode() = \"+KV.hashCode()\n//\t\t + \" total_hash = \"+total_hash + \" Reducer.external_total_hash = \"+Reducer.external_total_hash);\n\t }\n\t \n\t //System.out.println(\"Reducer.finalValue = \"+Reducer.finalValue);\n output.write(key, value);\n \n// if(conf.getInt(MRJobConfig.BFT_FLAG, 1)==3)//TODO NEED TO ADD CASE 2\n// {\n//\t\t\n// \t int local_NUM_REPLICAS = conf.getInt(MRJobConfig.NUM_REPLICAS,4); \n// \t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n// \t int reducerNumber = Integer.parseInt(this.local_taskID.split(\"_\")[4]);\n// \t int unreplicatedReducerNumber = (int) Math.floor(reducerNumber/local_NUM_REPLICAS);\n// \t \n// \t \n// \t \n// \n// try {\n// \tString KV=\"\"; int i=0; long totalHash=0; String stringToSend=\"\"; String stringReceived=\"\";\n// \t//System.out.println(\"+++ entered try\");\n// \twhile (context.nextKey()) {\n// reduce(context.getCurrentKey(), context.getValues(), context);\n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t //KV+=context.getCurrentKey().toString()+context.getCurrentValue().toString();// first hashing method\n// \t KV=context.getCurrentKey().toString()+context.getCurrentValue().toString();\n// \t totalHash+=KV.hashCode();\n// \t //System.out.println(\"key = \"+context.getCurrentKey()+\" value = \"+context.getCurrentValue()+\n// \t //\t\t\" KV.hashCode() = \"+KV.hashCode()+\" totalHash = \"+totalHash);\n// \t //KV=\"p\";\n// }\n// \n// // If a back up store is used, reset it\n// Iterator<VALUEIN> iter = context.getValues().iterator();\n// if(iter instanceof ReduceContext.ValueIterator) {((ReduceContext.ValueIterator<VALUEIN>)iter).resetBackupStore();} \n// \n// \n// i++;\n// }\n// \n// \n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t \n// \t System.out.println(\"ENTERED if(reducerORmapper.equals(\\\"r\\\"))\");\n// \t \n// \t totalHash=0;//just for now for testing \t \n// \t stringToSend=reducerNumber+\" \"+this.local_taskID+\" \"+totalHash;\n// \t \n// \t \n// \t try {\n// \t\t\tclientSocket = new Socket(\"mc07.cs.purdue.edu\", 2222);//(\"mc07.cs.purdue.edu\", 2222);\n// \t\t\tinputLine = new BufferedReader(new InputStreamReader(System.in));\n// \t\t\tos = new PrintStream(clientSocket.getOutputStream());\n// \t\t\tis = new DataInputStream(clientSocket.getInputStream());\n// \t\t} catch (UnknownHostException e) {\n// \t\t\tSystem.err.println(\"Don't know about host mc07.cs.purdue.edu\");\n// \t\t} catch (IOException e) {\n// \t\t\tSystem.err.println(\"Couldn't get I/O for the connection to the host mc07.cs.purdue.edu\");\n// \t\t\tSystem.out.println(\"e.getMessage() = \"+e.getMessage());\n// \t\t\tSystem.out.println(\"e.toString() = \"+e.toString());\n// \t\t\tSystem.out.println(\"e.getCause() = \"+e.getCause()); \t\t\t\n// \t\t}\n//\n// \t\t\n// \t\tif (clientSocket != null && os != null && is != null) {\n// \t\t\ttry {\n//\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\tString responseLine;\n// \t\t\t\tSystem.out.println(\"Before while\");\n// \t\t\t\twhile(true){\n// \t\t\t\t\tSystem.out.println(\"Entered while\");\n// \t\t\t\t\tresponseLine = is.readLine();\n// \t\t\t\t\tSystem.out.println(\"responseLine = \"+responseLine);\n// \t\t\t\t\tif(responseLine!=null && !responseLine.isEmpty())\n// \t\t\t\t\t{\n// \t\t\t\t\t\t//add if stmt for checking the server address, but first open a socket here for each Reducer for accepting server address\n// \t\t\t\t\t\t//clientSocket = serverSocket.accept();(put it above)\n// \t\t\t\t\t\tif (Integer.parseInt(responseLine)==unreplicatedReducerNumber)\n// \t\t\t\t\t\t{\t\n// \t\t\t\t\t\t\tSystem.out.println(\"Entered XXX------\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t} \t\t\t\t\n// \t\t\t\t/* WORKING PERFECTLY .... need to uncomment class MultiThreadChatClient\n// \t\t\t\t // Create a thread to read from the server\n// \t\t\t\tnew Thread(new MultiThreadChatClient(unreplicatedReducerNumber)).start();//try sending is,closed if this didn't work\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\t\n// \t\t\t\t while (true) {\n// \t\t\t\t\tsynchronized(lock){//CHECK IF THIS CAUSES AN OVERHEAD\n// \t\t\t\t\tif(closed)\n// \t\t\t\t\t\t{\n// \t\t\t\t\t\t\tSystem.out.println(\"ENTERED if(closed)\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t}*/\n// \t\t\t\t//os.println(\"ok\");\n// \t\t\t\tSystem.out.println(\"AFTER THE TWO WHILES\");\n// \t\t\t\tos.close();\n// \t\t\t\tis.close();\n// \t\t\t\tclientSocket.close();\n// \t\t\t} \n// \t\t\tcatch (IOException e) {\n// \t\t\t\tSystem.err.println(\"IOException: \" + e);\n// \t\t\t}\n// \t\t}\n// \t\t \n// \t\t \t \n// \t\t KV=\"\";stringToSend=\"\";totalHash=0;\n// }\n// \n// \n// \n// } \n// \n// }\n \n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000_ = 0;\nint a001_ = 0;\nint a002_ = 0;\nint a003_ = 0;\nint a004_ = 0;\nint a005_ = 0;\nint a006_ = 0;\nint a007_ = 0;\nint a008_ = 0;\nint a009_ = 0;\nint a010_ = 0;\nint a011_ = 0;\nint a012_ = 0;\nint a013_ = 0;\nint a014_ = 0;\nint a015_ = 0;\nint a016_ = 0;\nint a017_ = 0;\nint a018_ = 0;\nint a019_ = 0;\nint cur_ = 0;\n\nwhile (iter.hasNext()) {\ncur_ = iter.next().get();\na011_ = a015_ - a008_;\na003_ = a000_ + a003_;\na005_ = a005_ + a006_;\na015_ = a012_ + a011_;\na008_ = a014_ + a001_;\na007_ = a005_ + a015_;\na002_ = a000_ - a009_;\na012_ = a005_ + a012_;\na010_ = a018_ + a003_;\na014_ = a014_ + a004_;\ncur_ = a002_ + a004_;\na017_ = a007_ + a009_;\na005_ = cur_ - a014_;\na000_ = a012_ - a006_;\na006_ = a013_ - a011_;\na000_ = 0 - a008_;\na006_ = a007_ + a003_;\na015_ = a014_ - a019_;\na004_ = a012_ + cur_;\na005_ = a018_ - a017_;\na007_ = a006_ + a000_;\na005_ = cur_ - a009_;\na001_ = a009_ + a008_;\na015_ = cur_ + a010_;\na013_ = a018_ * -2;\ncur_ = a013_ - a012_;\na019_ = a002_ - a001_;\na017_ = a014_ + a004_;\na005_ = a017_ - a006_;\na016_ = a019_ - a019_;\na009_ = a000_ + cur_;\na013_ = a003_ * -1;\nif (a010_ >= a004_) {\na015_ = a018_ + a015_;\na010_ = a009_ - a010_;\na012_ = a011_ - a005_;\na014_ = a002_ - a012_;\nif (a000_ != a013_) {\na004_ = a015_ + cur_;\na013_ = a019_ + a016_;\na013_ = a012_ + a009_;\na016_ = a014_ - -5;\na001_ = a002_ - a004_;\n} else {\na007_ = a013_ - a003_;\na016_ = a007_ - a018_;\na016_ = a013_ + a011_;\na013_ = a013_ - a012_;\na013_ = -1 + a006_;\ncur_ = a002_ - a017_;\na007_ = a002_ + a018_;\ncur_ = a002_ + a015_;\na003_ = a015_ + a007_;\na017_ = a005_ + a009_;\na013_ = a006_ - -2;\na008_ = a005_ - a003_;\na002_ = a017_ - a014_;\na006_ = a006_ + a010_;\na008_ = a018_ + a010_;\na000_ = a015_ + -4;\na014_ = a004_ - a010_;\na012_ = a009_ - a016_;\na008_ = a002_ - a019_;\na015_ = a007_ + a005_;\na004_ = cur_ + a018_;\na011_ = a007_ + a012_;\na007_ = 4 - a011_;\na001_ = a012_ + cur_;\na011_ = a010_ - a013_;\na003_ = a006_ - a011_;\na006_ = a012_ - a008_;\na015_ = a010_ - a013_;\na019_ = a012_ + a011_;\nif (a017_ != a015_) {\ncur_ = a010_ - cur_;\na013_ = a009_ - a002_;\na008_ = a011_ - a008_;\na019_ = a005_ - a000_;\na010_ = a019_ + a010_;\na002_ = a004_ - 1;\na017_ = a015_ - cur_;\ncur_ = 1 - a005_;\na004_ = a000_ + a003_;\na001_ = a012_ + 2;\na004_ = a003_ - 2;\na003_ = a010_ - -4;\na019_ = a014_ - a002_;\na011_ = a002_ - a007_;\na000_ = a007_ + a015_;\na018_ = a009_ + cur_;\na006_ = a003_ - a017_;\nif (a008_ == a013_) {\na005_ = a017_ + a016_;\na005_ = a005_ + a013_;\na017_ = a015_ + a007_;\na016_ = a016_ + a018_;\na016_ = a014_ - a015_;\na003_ = a019_ - a018_;\ncur_ = a010_ + a005_;\na003_ = a001_ + a010_;\na016_ = -4 + a003_;\na002_ = a017_ + a008_;\na016_ = a003_ - a009_;\na003_ = a009_ + a015_;\na016_ = a004_ - a000_;\na005_ = a015_ + cur_;\na018_ = a010_ + a003_;\na016_ = a017_ - a004_;\n} else {\na018_ = a019_ + a009_;\na015_ = a004_ + a018_;\na019_ = a005_ - a003_;\na009_ = -5 + a008_;\na010_ = a000_ + a000_;\na009_ = a009_ - a011_;\na005_ = a006_ - cur_;\na019_ = a018_ + a009_;\na014_ = a005_ + cur_;\na004_ = a010_ + a008_;\na000_ = a015_ - a018_;\na015_ = a017_ - a017_;\na008_ = a001_ + a008_;\na002_ = a009_ - a012_;\na010_ = a006_ - a012_;\na014_ = a009_ + a001_;\na016_ = a000_ - a016_;\na004_ = a018_ - a019_;\na007_ = a003_ + a011_;\na019_ = a004_ - a017_;\na015_ = a018_ - a017_;\na003_ = a000_ + a002_;\na005_ = a007_ - a014_;\na001_ = cur_ + a017_;\n}\na012_ = a012_ + cur_;\n} else {\na010_ = a018_ + a000_;\na002_ = a000_ - a003_;\na005_ = a012_ + a012_;\na015_ = a004_ + a004_;\na008_ = a013_ - a019_;\na004_ = a002_ + a015_;\na011_ = a014_ + a012_;\na004_ = a019_ + a010_;\na002_ = a018_ + a010_;\ncur_ = a017_ + a019_;\na017_ = a013_ + a005_;\na013_ = a008_ - a012_;\na004_ = a012_ + a007_;\n}\na009_ = a015_ - a016_;\na000_ = a006_ + a008_;\na003_ = a008_ - a011_;\na001_ = a016_ - a006_;\na016_ = a014_ + a016_;\na000_ = a011_ + a003_;\na004_ = a010_ + a019_;\na013_ = a008_ + cur_;\na016_ = a016_ + a015_;\n}\na010_ = a003_ + a007_;\na006_ = a009_ - a000_;\na002_ = a017_ - a001_;\na013_ = a016_ + a019_;\na013_ = a009_ - a015_;\na005_ = a002_ - a018_;\na009_ = a002_ + a007_;\na008_ = a008_ + a002_;\na007_ = a005_ + a009_;\na017_ = a019_ + a013_;\na012_ = a003_ + a004_;\na008_ = a012_ + a012_;\na003_ = a007_ + a005_;\ncur_ = a014_ + a007_;\na009_ = a016_ + a010_;\na006_ = a005_ - a003_;\na014_ = a019_ + cur_;\na006_ = a007_ + a000_;\na013_ = a011_ - a011_;\na018_ = a009_ - 1;\na002_ = a004_ - a014_;\n} else {\na004_ = a006_ - a014_;\na016_ = a017_ + 2;\na014_ = a006_ - a002_;\na002_ = a016_ + cur_;\na014_ = -3 + a018_;\n}\ncur_ = a017_ + a015_;\na005_ = a003_ - a015_;\na014_ = a019_ + a009_;\ncur_ = cur_ + a005_;\na009_ = a007_ - a004_;\ncur_ = a014_ + a006_;\na013_ = a002_ - a012_;\na002_ = a008_ + a014_;\na000_ = a006_ + a004_;\na017_ = 1 - a009_;\na012_ = a017_ + a001_;\na011_ = a009_ - a010_;\na011_ = a018_ - a014_;\na016_ = a003_ - cur_;\na013_ = cur_ + a012_;\na015_ = a012_ + a010_;\na017_ = a007_ + a017_;\na000_ = -1 + a008_;\na010_ = a008_ + a003_;\na016_ = a009_ + a010_;\na002_ = a011_ + a008_;\na016_ = a015_ + a016_;\na002_ = a012_ + a008_;\na017_ = a013_ + a004_;\n}\noutput.collect(prefix, new IntWritable(a005_));\n}", "int getClusteringKeyCount();", "public Evaluator(RANKER_TYPE rType, METRIC trainMetric, METRIC testMetric, int k) {\n/* 625 */ this.type = rType;\n/* 626 */ this.trainScorer = this.mFact.createScorer(trainMetric, k);\n/* 627 */ this.testScorer = this.mFact.createScorer(testMetric, k);\n/* 628 */ if (qrelFile.compareTo(\"\") != 0) {\n/* */ \n/* 630 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile);\n/* 631 */ this.testScorer.loadExternalRelevanceJudgment(qrelFile);\n/* */ } \n/* */ }", "public void setuseReducer( boolean newValueReducer){\n\t\tthis.useReducer = newValueReducer;\n\t}", "public void reduceContext(Long source, MapReduceInterface reducer, ChordMessageInterface context) throws RemoteException, IOException {\n // TODO: create a thread run and then return immediately\n if (source != c.getId()) {\n System.out.println(\"in reduceContext\");\n successor.reduceContext(source, reducer, context);\n }\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n context.setWorkingPeer(getId());\n } catch (IOException e) {\n e.printStackTrace();\n }\n for (Map.Entry<Long, List<String>> entry : BMap.entrySet()) {\n Long key = entry.getKey();\n List<String> values = entry.getValue();\n String strings[] = new String[values.size()];\n values.toArray(strings);\n try {\n reducer.reduce(key, values, c);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n context.completePeer(getId(), 0L);\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"Finish mapReduce.\");\n try {\n c.completePeer(guid, 0L);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n });\n thread.run();\n\n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000 = 0;\nint a001 = 0;\nint a002 = 0;\nint a003 = 0;\nint a004 = 0;\nint a005 = 0;\nint a006 = 0;\nint a007 = 0;\nint a008 = 0;\nint a009 = 0;\nint a010 = 0;\nint a011 = 0;\nint a012 = 0;\nint a013 = 0;\nint a014 = 0;\nint a015 = 0;\nint a016 = 0;\nint a017 = 0;\nint a018 = 0;\nint a019 = 0;\nint a020 = 0;\nint a021 = 0;\nint a022 = 0;\nint a023 = 0;\nint a024 = 0;\nint cur = 0;\n\nwhile (iter.hasNext()) {\ncur = iter.next().get();\na014 = a022 - a006;\na013 = -2 - a022;\na018 += a003;\na011 -= a011;\na011 += a018;\na009 -= cur;\nif (a019 <= a021) {\na014 = a003 + a003;\na011 = a021 + 4;\na017 -= a002;\na005 = -5 - a019;\na004 = a003 - a016;\ncur += a017;\na013 += a010;\ncur -= a012;\na006 = a000 + a015;\na017 = a014 + a022;\na011 = a020 + a013;\na014 += a001;\na005 = a016 + a007;\ncur = 2 + a011;\na020 = a023 - a006;\na007 += a021;\na021 = a021 + a008;\na000 += a008;\na024 = a024 - a009;\na017 += 4;\na013 = a006 - a023;\na013 = a009 + a008;\na010 += a001;\na003 = a018 - a018;\na015 = a023 + a023;\na016 = a009 - a002;\na003 += -1;\na013 = a022 + a014;\na018 -= a020;\na001 = a003 + a009;\na024 += a015;\n} else {\nif (a017 > a011) {\na009 -= a001;\na024 -= a007;\na005 = a017 - a007;\na020 += a020;\nif (a003 != a001) {\na009 += a006;\na006 += a017;\na016 -= a004;\na024 = a008 + a002;\na014 -= a024;\na017 -= a010;\na012 -= a003;\na005 += a002;\na005 = a007 - a014;\na013 = a013 - a001;\na005 = a019 + a016;\na024 -= a014;\ncur = a005 - a010;\na004 = a003 - a001;\na000 = a021 - -1;\na019 = a006 - a008;\na006 = a018 + a009;\na015 -= a013;\na017 = a019 - a022;\na004 += a019;\na023 += a016;\na010 += a000;\na003 += a011;\na011 += a019;\na009 += a014;\na018 = a012 + a001;\ncur = -4 + 3;\na021 = a017 - a001;\na004 += a002;\na020 = -5 + a024;\na023 = a020 + a018;\na024 += a018;\n} else {\na017 = -5 - a012;\na013 = a023 - a018;\na020 = a020 - a017;\na003 += a013;\na004 = a019 - cur;\na016 += a010;\na021 += a018;\na008 = a010 - a012;\na010 -= a019;\na007 -= a013;\na015 -= a019;\na019 = a004 + a021;\na011 = a013 + a006;\na005 += a004;\na015 -= a016;\na017 = a002 - a024;\na002 -= a007;\na022 = a004 - cur;\na011 = a021 + a014;\na004 += a020;\na020 = a020 + a009;\na007 = a012 - a002;\na018 = a003 - a001;\na011 = a000 + a009;\na019 = a021 + a017;\na017 = a022 - a013;\na014 = a018 - a020;\na009 -= a023;\na007 -= a008;\na020 = 2 + a011;\na009 = cur + a010;\na015 -= a018;\na010 = a024 + a014;\n}\ncur -= a020;\n} else {\na008 = a003 - a017;\na024 -= a004;\nif (a014 >= a018) {\na005 = a000 + a021;\na003 = a006 + a002;\na009 = a021 + a023;\na003 += -5;\na022 += a024;\na010 = a014 + a016;\na024 = a008 + a010;\na008 = 2 - a003;\na014 -= a002;\na007 = a006 - a023;\na014 += a018;\na001 = a009 + a016;\na018 += a022;\na001 = a019 - a018;\na008 -= a011;\na019 -= a001;\na010 += a014;\ncur += a011;\na024 = a022 - a018;\na014 = a003 - a023;\na004 -= a002;\n} else {\na020 += a017;\na001 = a012 + a009;\na015 += a013;\na018 += a003;\na013 += a009;\na007 = a015 + a019;\na012 += a001;\na009 = a010 + -1;\na023 -= a017;\na020 = a017 + a004;\na005 = a011 - a001;\ncur -= a000;\na020 = a002 + a002;\na004 += a017;\na022 = a017 + a024;\na001 -= a016;\na012 = a021 + 0;\na002 -= a018;\na011 += a001;\na024 = a001 + a002;\na003 -= a015;\na016 = a022 - a014;\na008 = a002 - a001;\na006 += a009;\na018 -= a000;\na008 = a000 - a004;\na019 += a021;\na009 = a021 - a011;\na000 += a020;\na002 += a009;\nif (a024 == a022) {\ncur = a012 + a009;\na007 = a002 + a012;\na015 += a001;\na022 = a007 + a011;\na012 += a021;\na003 -= cur;\na018 -= a011;\na012 = a019 - a013;\na000 = a010 - a005;\na004 = a014 - a009;\na001 = a000 + a005;\na010 += a004;\na008 = a023 - 3;\na009 += a022;\na005 -= a018;\na004 += a003;\na018 = a001 + a001;\na010 = a003 + a014;\na011 -= a003;\na000 += 1;\na006 -= a018;\na008 = a011 - a009;\na008 = a013 - a009;\na011 = a016 + a009;\na008 -= a011;\na024 = a000 + a003;\na015 -= 4;\ncur = a008 - a024;\na024 = a012 - a008;\na005 = a023 + a020;\na024 -= a003;\n} else {\na017 = a012 + a013;\na017 = a019 - a000;\n}\na018 -= a005;\na006 = a021 + a019;\na005 += a007;\na018 += cur;\na005 += a008;\na008 += a017;\na019 = a002 - a006;\na005 = a000 + a011;\na003 = a021 - a005;\na019 = a014 + a006;\na018 -= a010;\na006 = 1 + a023;\na024 += a016;\na018 += a022;\na011 += a024;\na003 = a007 - a010;\na001 = a019 + a013;\na022 += a013;\na017 += a008;\na006 = a010 + a011;\na023 += a006;\na009 = a011 + a002;\na022 -= a015;\na024 = a012 - a019;\na001 -= a023;\na010 = a019 + cur;\na002 -= a009;\na012 -= a010;\na001 -= a006;\na021 = a000 - a000;\n}\na000 += a008;\na010 = a004 + a013;\na001 += cur;\na004 += a010;\na022 = a020 + a016;\na016 -= a008;\na010 = 4 - a018;\na007 = a021 - a011;\na010 -= a006;\na011 = a018 + a008;\na002 -= a000;\na004 -= a016;\na012 = a018 - a003;\na010 = a005 + a012;\na013 -= a005;\na011 = a010 - a001;\na007 -= a000;\na001 = a014 + a013;\na008 += a002;\na017 = a011 - a020;\na009 -= a013;\na022 -= a010;\na022 = a011 - a010;\n}\na005 = a021 - a002;\n}\na003 += a010;\na012 = cur - a021;\ncur += a017;\n}\noutput.collect(prefix, new IntWritable(a003));\n}", "public static void cluster(String[] args, boolean converged)\n\t\t\tthrows IOException, InterruptedException, ClassNotFoundException {\n\t\tSystem.out.println(\"Using mapper to output clustering information...\");\n\t\tConfiguration conf = new Configuration();\n\t\tString[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();\n\t\tconf.set(\"old.center.path\", otherArgs[3]);\n\t\tconf.set(\"K\", otherArgs[5]);\n\t\tconf.set(\"include.center.in.mapper\", \"1\");\n\t\tconf.set(\"converged\", converged ? \"1\" : \"0\");\n\t\tJob job = new Job(conf, \"KMeansCluster\");\n\t\tjob.setJarByClass(KMeansDriver.class);\n\n\t\tPath in = new Path(otherArgs[1]);\n\t\tPath out = new Path(otherArgs[2] + \"/\" + \"clustering_info\");\n\t\tFileInputFormat.addInputPath(job, in);\n\t\tFileSystem fs = FileSystem.get(conf);\n\t\tif (fs.exists(out)) {\n\t\t\tfs.delete(out, true);\n\t\t}\n\t\tFileOutputFormat.setOutputPath(job, out);\n\n\t\t//No reducer needed here.\n\t\tjob.setMapperClass(KMeansMapper.class);\n\t\tjob.setOutputKeyClass(IntWritable.class);\n\t\tjob.setOutputValueClass(Text.class);\n\t\tjob.setNumReduceTasks(0);\n\t\tjob.waitForCompletion(true);\n\t}", "public void performSingleReturnMapReduce(JavaRDD<KeyValueObject<KEYIN, VALUEIN>> pInputs) {\n // if not commented out this line forces mappedKeys to be realized\n // pInputs = SparkUtilities.realizeAndReturn(pInputs,getCtx());\n JavaPairRDD<K, Tuple2<K, V>> kkv = performMappingPart(pInputs);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n kkv = SparkUtilities.realizeAndReturn(kkv );\n\n PartitionAdaptor<K> prt = new PartitionAdaptor<K>(getPartitioner());\n kkv = kkv.partitionBy(prt);\n\n IReducerFunction reduce = getReduce();\n /**\n * we can guarantee one output per input\n */\n SingleOutputReduceFunctionAdaptor<K, V, KOUT, VOUT> f = new SingleOutputReduceFunctionAdaptor((ISingleOutputReducerFunction) reduce);\n JavaRDD<KeyValueObject<KOUT, VOUT>> reduced = kkv.map(f);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n reduced = SparkUtilities.realizeAndReturn(reduced );\n\n output = reduced;\n }", "ReduceType reduceInit();", "public void lloydsAlgorithm();", "public static void main(String[] args) throws FileFormatException,\n IOException {\n \n OpdfMultiGaussianFactory initFactoryPunch = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderPunch = new FileReader(\n \"punchlearn.seq\");\n List<List<ObservationVector>> learnSequencesPunch = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), learnReaderPunch);\n learnReaderPunch.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerPunch = new KMeansLearner<ObservationVector>(\n 10, initFactoryPunch, learnSequencesPunch);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmPunch = kMeansLearnerPunch.iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerPunch = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmPunch = baumWelchLearnerPunch.learn(\n initHmmPunch, learnSequencesPunch);\n \n // Create HMM for scroll-down gesture\n \n OpdfMultiGaussianFactory initFactoryScrolldown = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderScrolldown = new FileReader(\n \"scrolllearn.seq\");\n List<List<ObservationVector>> learnSequencesScrolldown = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(),\n learnReaderScrolldown);\n learnReaderScrolldown.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerScrolldown = new KMeansLearner<ObservationVector>(\n 10, initFactoryScrolldown, learnSequencesScrolldown);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmScrolldown = kMeansLearnerScrolldown\n .iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerScrolldown = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmScrolldown = baumWelchLearnerScrolldown\n .learn(initHmmScrolldown, learnSequencesScrolldown);\n \n // Create HMM for send gesture\n \n OpdfMultiGaussianFactory initFactorySend = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderSend = new FileReader(\n \"sendlearn.seq\");\n List<List<ObservationVector>> learnSequencesSend = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), learnReaderSend);\n learnReaderSend.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerSend = new KMeansLearner<ObservationVector>(\n 10, initFactorySend, learnSequencesSend);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmSend = kMeansLearnerSend.iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerSend = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmSend = baumWelchLearnerSend.learn(\n initHmmSend, learnSequencesSend);\n \n Reader testReader = new FileReader(\n \"scroll.seq\");\n List<List<ObservationVector>> testSequences = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), testReader);\n testReader.close();\n \n short gesture; // punch = 1, scrolldown = 2, send = 3\n double punchProbability, scrolldownProbability, sendProbability;\n for (int i = 0; i <= 4; i++) {\n punchProbability = learntHmmPunch.probability(testSequences\n .get(i));\n gesture = 1;\n scrolldownProbability = learntHmmScrolldown.probability(testSequences\n .get(i));\n if (scrolldownProbability > punchProbability) {\n gesture = 2;\n }\n sendProbability = learntHmmSend.probability(testSequences\n .get(i));\n if ((gesture == 1 && sendProbability > punchProbability)\n || (gesture == 2 && sendProbability > scrolldownProbability)) {\n gesture = 3;\n }\n if (gesture == 1) {\n System.out.println(\"This is a punch gesture\");\n } else if (gesture == 2) {\n System.out.println(\"This is a scroll-down gesture\");\n } else if (gesture == 3) {\n System.out.println(\"This is a send gesture\");\n }\n }\n }", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] words = value.toString().replaceAll(\" \", \"\").split(\",\");\n\n // Valid input\n if (words.length == 3) {\n // Get words\n String w1 = words[0];\n String w2 = words[1];\n String w3 = words[2];\n\n // Get word lengths\n int first = words[0].length();\n int second = words[1].length();\n int third = words[2].length();\n String lineNum = key.toString();\n\n // Conditions 1,2,4\n\n // One longest word\n // Longest word at front\n if (first > second && first > third) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n }\n // Longest word in middle\n else if (second > first && second > third) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // Longest word at end\n else if (third > first && third > second) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n\n // Two longest words\n // 1st and 2nd are the same length and longest\n if (first == second && first > third) {\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // 1st and 3rd are the same length and longest\n else if (first == third && first > second) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n // 2nd and 3rd are same length and longest\n else if (second == third && second > first) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n }\n } \n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000 = 0;\nint a001 = 0;\nint a002 = 0;\nint a003 = 0;\nint a004 = 0;\nint a005 = 0;\nint a006 = 0;\nint a007 = 0;\nint a008 = 0;\nint a009 = 0;\nint a010 = 0;\nint a011 = 0;\nint a012 = 0;\nint a013 = 0;\nint a014 = 0;\nint a015 = 0;\nint a016 = 0;\nint a017 = 0;\nint a018 = 0;\nint a019 = 0;\nint a020 = 0;\nint a021 = 0;\nint a022 = 0;\nint a023 = 0;\nint a024 = 0;\nint cur = 0;\n\nwhile (iter.hasNext()) {\ncur = iter.next().get();\na003 += a021;\na011 += a023;\na017 -= -2;\na003 += a009;\na018 += a016;\na015 -= a004;\na020 -= a018;\na007 = a015 - a024;\na006 = a017 - a023;\na006 -= a024;\na019 += a014;\na008 = a015 - a023;\na015 += a024;\na004 += a004;\na021 -= a018;\na008 = a024 - a010;\na011 = a020 + a019;\na023 = a004 - a018;\ncur = a024 - a015;\na007 += a014;\na002 = a014 + a000;\na010 = a010 - a013;\na022 = a010 - a023;\na016 -= a014;\na004 -= a024;\na004 -= a005;\na014 = a005 + a012;\na001 = a018 + a018;\nif (a014 != a017) {\na019 = a023 + a007;\na000 -= cur;\na011 = a016 + a024;\na003 = a000 + a008;\na001 -= a012;\na011 = a016 + a022;\na009 += a011;\na012 -= a002;\na007 += a012;\n} else {\na003 -= a002;\na011 = a022 + a012;\na022 = a004 - a018;\na001 += a022;\na018 -= a005;\na001 = a004 - a017;\na021 = a011 + a021;\na005 -= a010;\na011 += a002;\na016 = a016 - a018;\na006 = a000 - a006;\na019 -= a002;\na009 -= a003;\na016 -= a019;\na013 = a000 + a005;\na008 += a002;\na013 = a002 + a007;\na010 += a018;\na005 -= a022;\na015 = a021 + a018;\na000 = a019 - a001;\nif (a005 == a018) {\nif (a011 >= a018) {\na018 += a005;\na012 -= a005;\na007 = a007 - a004;\n} else {\na015 = a017 + a022;\na022 += a015;\na019 += a010;\na014 -= cur;\na023 += a008;\na015 = a013 - a014;\nif (a011 != -2) {\na013 = a021 - a019;\na016 -= a010;\na000 = a021 + a024;\na009 = a009 + a015;\na005 = a018 + a002;\na004 = a021 * 4;\na008 = a018 + a007;\na021 = a011 + a013;\na015 = a002 + a023;\na022 = a007 - a012;\na005 -= a021;\na022 = a015 - a015;\na007 = a007 + a020;\na001 = a013 - a002;\na015 += a011;\na011 -= a002;\na010 = a015 * -2;\na020 -= a011;\na023 -= a013;\na013 = a004 - a023;\na023 = a023 - a017;\na016 = a008 + a014;\na015 -= cur;\na023 -= a022;\na005 -= a011;\na002 = a009 + a008;\na023 = a015 * 4;\na014 = 0 - a010;\na012 = a016 - a024;\na004 += a000;\na022 = a010 - a022;\na013 += a015;\na016 = a020 - a023;\nif (a012 < -4) {\na019 -= a019;\na015 -= a005;\na023 = a007 - a018;\na013 = a015 - a017;\na021 -= a013;\na005 = a004 - a020;\na004 = 0 - a022;\na021 -= a013;\na004 += a004;\na012 = a022 + a022;\n} else {\na018 = a013 + a014;\na004 += a017;\na007 = a021 + a009;\na009 -= a019;\na024 -= a000;\na001 = a001 - a021;\na001 = a011 + a001;\na005 = a003 + a006;\na012 -= a000;\na016 = a004 - a019;\na010 = a007 - a013;\na011 += cur;\na020 -= a021;\na024 = a015 - cur;\na000 = a012 - a015;\na011 -= a015;\na022 = a007 - a019;\na004 -= a013;\na016 = a015 - a016;\na022 = a023 + a006;\n}\na019 -= a000;\na000 = a012 - a019;\na005 = a014 + a004;\na022 -= a021;\na006 = a009 + a011;\na001 = a007 + a006;\na013 = a009 - a021;\na006 = a004 - a000;\na011 += a020;\na012 -= cur;\na010 -= a011;\na000 = a009 + cur;\na013 += a002;\na019 -= a013;\na021 -= a011;\na005 = 2 + a009;\na023 = a007 - a016;\na009 -= a024;\na024 -= a019;\n} else {\na010 -= cur;\na018 -= a001;\na007 -= a022;\na022 += a005;\na022 = a006 + a020;\na013 = cur - a001;\n}\na003 = a013 + a010;\na023 -= a010;\na011 = a002 - a015;\na017 = a010 + a008;\ncur = a020 - a018;\na011 += a009;\na018 = a012 + a017;\na000 += a023;\na012 = a001 - a007;\na009 += a005;\na018 += a006;\na020 = a016 - a016;\na007 = a007 + a002;\na005 = a021 - a018;\na023 = a006 - a002;\na006 = cur - a016;\na007 = a007 + a013;\ncur += a021;\na014 += -3;\na013 -= a007;\na016 += a012;\ncur += a005;\na007 += a018;\na013 = a006 - a022;\na008 -= a008;\na000 = a006 - a011;\ncur += a023;\na002 = a005 - a024;\na022 -= a019;\na016 = a007 - a002;\na002 = a012 + a020;\n}\na003 += a004;\na005 = a022 - a000;\na004 = a003 - a021;\na011 -= a009;\na000 -= a024;\na019 += a012;\na024 = a021 + a020;\na016 -= a005;\na024 += a006;\na006 = a005 - a008;\na003 = a021 + a000;\na012 -= a012;\na012 += a003;\na002 += a013;\na020 = 0 + a007;\na013 -= a006;\na022 = a020 - a010;\n} else {\na002 -= a002;\na017 = a000 + a018;\na012 += cur;\na014 -= a006;\na024 += a000;\na008 = a023 - a009;\na009 += a012;\na013 += a007;\na001 += a011;\na020 += 1;\na011 = a006 + a023;\na017 += a024;\na002 = a014 + a014;\na016 = a012 - a009;\n}\na018 -= a010;\na023 += a020;\na012 = a013 - a012;\na015 -= a021;\na004 = a001 - a016;\na001 += a004;\na023 -= a021;\na014 += a002;\na001 = a007 - a006;\na007 = a022 - -5;\na012 -= a006;\na022 += a010;\na007 = a001 + -2;\na016 = a015 + a005;\na021 += a004;\na006 -= a023;\na017 += a013;\na012 -= a010;\na018 -= 0;\na023 = -3 - a006;\na012 -= a014;\n}\na005 += a020;\na016 = a012 - a008;\na016 = a012 + a002;\na019 = a007 + a017;\na009 = a009 + a009;\na001 += 1;\na020 = a021 + a024;\na001 = a020 - a011;\na015 = a011 - a013;\na003 += a021;\na004 -= a009;\na014 -= a022;\n}\noutput.collect(prefix, new IntWritable(a015));\n}", "@Override\n\t\tprotected void reduce(IntWritable key, Iterable<BytesWritable> values, Context context) \n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\t\n\t\t\tConfiguration config = context.getConfiguration();\n\t\t\tint coverage = config.getInt(CONFIG_COVERAGE, DISABLE_COVERAGE);\n\t\t\tboolean includeFromEdges = config.getBoolean(CONFIG_INCLUDE_FROM_EDGES, false);\n\t\t\tboolean partition = config.getBoolean(CONFIG_PARTITION_BRANCHES_CHAINS, true);\n\n\t\t\tArrayList<MREdge> edges = new ArrayList<MREdge>();\n\t\t\tMRVertex vertex = null;\n\t\t\t\n\t\t\tfor (BytesWritable value : values) {\n\t\t\t\t\n\t\t\t\tif (MRVertex.getIsMRVertex(value)) {\n\t\t\t\t\tif (vertex == null) {\n\t\t\t\t\t\t// If we have not yet built a vertex for the index, do so.\n\t\t\t\t\t\tvertex = createMRVertex(value, config);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// If we have built a vertex, then the vertex we just got is\n\t\t\t\t\t\t// another representation of part of that vertex, made by another\n\t\t\t\t\t\t// mapper. So merge it into the vertex we already built.\n\t\t\t\t\t\t\n\t\t\t\t\t\tvertex.merge(createMRVertex(value, config));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (MREdge.getIsMREdge(value)) {\n\t\t\t\t\t// If we found an edge, save it for later merging into the vertex.\n\t\t\t\t\t\n\t\t\t\t\tedges.add(new MREdge(value));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (vertex != null) {\n\t\t\t\tfor (MREdge edge : edges)\n\t\t\t\t\tvertex.addEdge(edge);\n\t\t\t\t\n\t\t\t\tif (coverage != DISABLE_COVERAGE) {\n\t\t\t\t\tboolean sufficientlyCoveredFrom = \n\t\t\t\t\t\t\tremoveUndercoveredEdges(vertex, Which.FROM, coverage);\n\t\t\t\t\tboolean sufficientlyCoveredTo = \n\t\t\t\t\t\t\tremoveUndercoveredEdges(vertex, Which.TO, coverage);\n\t\t\t\t\t\n\t\t\t\t\t// Do not output a vertex that is likely to be an error.\n\t\t\t\t\t\n\t\t\t\t\tif (!sufficientlyCoveredFrom && !sufficientlyCoveredTo)\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvertex.computeIsBranch();\n\t\t\t\tvertex.computeIsSourceSink();\n\t\t\t\t\n\t\t\t\tMRVertex.EdgeFormat format = includeFromEdges ? MRVertex.EdgeFormat.EDGES_TO_FROM : \n\t\t\t\t\tMRVertex.EdgeFormat.EDGES_TO;\n\t\t\t\tBytesWritable value = vertex.toWritable(format);\n\t\t\t\t\n\t\t\t\tif (partition) {\n\t\t\t\t\tif (MRVertex.getIsBranch(value))\n\t\t\t\t\t\tmultipleOutputs.write(key, value, \"branch/part\");\n\t\t\t\t\telse\n\t\t\t\t\t\tmultipleOutputs.write(key, value, \"chain/part\");\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcontext.write(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n\tprotected void map(LongWritable key, Text value,\n\t\t\tContext context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t\n\t\tString line = value.toString();\n\t\tStringTokenizer st = new StringTokenizer(line,\" \");\n\t\t\n\t\twhile(st.hasMoreTokens()){\n\t\t\tSystem.out.println(\"in\");\n\t\t\tword.set(st.nextToken().toString());\n\t\t\tcontext.write(new Text(\"kk\"),word);\n\t\t\t \n\t\t\t//System.out.println(\"mapper\"+st.nextToken());\n\t\t}\n\t\t\n\t}", "private double dist(Point a,Point b)//to find distance between the new entry to predict and the male or female cluster mean positions.\n { double d;\n d=Math.sqrt( Math.pow((a.ht-b.ht),2) + Math.pow((a.wt-b.wt),2));\n return d;\n }", "public interface LocusWalker<MapType, ReduceType> {\n void initialize();\n public String walkerType();\n \n // Do we actually want to operate on the context?\n boolean filter(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);\n \n // Map over the org.broadinstitute.sting.atk.LocusContext\n MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);\n \n // Given result of map function\n ReduceType reduceInit();\n ReduceType reduce(MapType value, ReduceType sum);\n \n void onTraversalDone();\n }", "public Map<double[], Integer> kmeans(int distance, Map<Integer, double[]> centroids, int k) {\n Map<double[], Integer> clusters = new HashMap<>();\n int k1 = 0;\n double dist = 0.0;\n for (double[] x : features) {\n double minimum = 999999.0;\n for (int j = 0; j < k; j++) {\n if (distance == 1) {\n dist = Distance.eucledianDistance(centroids.get(j), x);\n } else if (distance == 2) {\n dist = Distance.manhattanDistance(centroids.get(j), x);\n }\n if (dist < minimum) {\n minimum = dist;\n k1 = j;\n }\n\n }\n clusters.put(x, k1);\n }\n\n return clusters;\n }", "public int rank(K key);", "String runFoldL(THost host, String accClassname);", "public static void main(String[] args) throws IllegalArgumentException, IOException, ClassNotFoundException, InterruptedException {\n Configuration conf=new Configuration();\n FileSystem hdfs=FileSystem.get(conf);\n System.out.println(conf.get(\"fs.defaultFS\"));\n //conf.set(\"fs.defaultFS\",\"http//:localhost:9000\");\n Job job=new Job(conf,\"word cout\");\n job.setJarByClass(MyWordCount.class);\n job.setMapperClass(MyMapper.class);\n job.setReducerClass(MyReduce.class);\n job.setCombinerClass(MyReduce.class);\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(IntWritable.class);\n// job.setInputFormatClass(TextInputFormat.class);\n// job.setOutputFormatClass(TextOutputFormat.class);\n FileInputFormat.addInputPath(job, new Path(\"file:///usr/local/hadoop-2.6.1/input\"));\n FileOutputFormat.setOutputPath(job, new Path(\"hdfs:///user/output\"));\n System.exit(job.waitForCompletion(true) ? 0 : 1);\n }", "public void setNewAlpha(){\n\n\t\tretrieveAlpha();\n\t\tretrieveReducerOutput();\n\t\t\n\t\tdouble[] alphaVectorUpdate = new double[K];\n\t\tdouble[] alphaGradientVector = new double[K];\n\t\tdouble[] alphaHessianVector = new double[K];\n\n\t\tdouble[] alphaVector = oldAlpha.clone();\n\t\tdouble[] alphaSufficientStatistics = rDelta;\n\n\t\tint alphaUpdateIterationCount = 0;\n\n\t\t// update the alpha vector until converge\n\t\tboolean keepGoing = true;\n\t\ttry {\n\t\t\tint decay = 0;\n\n\t\t\tdouble alphaSum = 0;\n\t\t\tfor (int j = 0; j < K; j++) {\n\t\t\t\talphaSum += alphaVector[j];\n\t\t\t}\n\n\t\t\twhile (keepGoing) {\n\t\t\t\tdouble sumG_H = 0;\n\t\t\t\tdouble sum1_H = 0;\n\n\t\t\t\tfor (int i = 0; i < K; i++) {\n\t\t\t\t\t// compute alphaGradient\n\t\t\t\t\talphaGradientVector[i] = D\n\t\t\t\t\t\t\t* (Gamma.digamma(alphaSum) - Gamma.digamma(alphaVector[i]))\n\t\t\t\t\t\t\t+ alphaSufficientStatistics[i];\n\n\t\t\t\t\t// compute alphaHessian\n\t\t\t\t\talphaHessianVector[i] = -D * Gamma.trigamma(alphaVector[i]);\n\n\t\t\t\t\tif (alphaGradientVector[i] == Double.POSITIVE_INFINITY\n\t\t\t\t\t\t\t|| alphaGradientVector[i] == Double.NEGATIVE_INFINITY) {\n\t\t\t\t\t\tthrow new ArithmeticException(\"Invalid ALPHA gradient matrix...\");\n\t\t\t\t\t}\n\n\t\t\t\t\tsumG_H += alphaGradientVector[i] / alphaHessianVector[i];\n\t\t\t\t\tsum1_H += 1 / alphaHessianVector[i];\n\t\t\t\t}\n\n\t\t\t\tdouble z = D * Gamma.trigamma(alphaSum);\n\t\t\t\tdouble c = sumG_H / (1 / z + sum1_H);\n\n\t\t\t\twhile (true) {\n\t\t\t\t\tboolean singularHessian = false;\n\n\t\t\t\t\tfor (int i = 0; i < K; i++) {\n\t\t\t\t\t\tdouble stepSize = Math.pow(Parameters.DEFAULT_ALPHA_UPDATE_DECAY_FACTOR, decay)\n\t\t\t\t\t\t\t\t* (alphaGradientVector[i] - c) / alphaHessianVector[i];\n\t\t\t\t\t\tif (alphaVector[i] <= stepSize) {\n\t\t\t\t\t\t\t// the current hessian matrix is singular\n\t\t\t\t\t\t\tsingularHessian = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\talphaVectorUpdate[i] = alphaVector[i] - stepSize;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (singularHessian) {\n\t\t\t\t\t\t// we need to further reduce the step size\n\t\t\t\t\t\tdecay++;\n\n\t\t\t\t\t\t// recover the old alpha vector\n\t\t\t\t\t\talphaVectorUpdate = alphaVector;\n\t\t\t\t\t\tif (decay > Parameters.DEFAULT_ALPHA_UPDATE_MAXIMUM_DECAY) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// we have successfully update the alpha vector\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// compute the alpha sum and check for alpha converge\n\t\t\t\talphaSum = 0;\n\t\t\t\tkeepGoing = false;\n\t\t\t\tfor (int j = 0; j < K; j++) {\n\t\t\t\t\talphaSum += alphaVectorUpdate[j];\n\t\t\t\t\tif (Math.abs((alphaVectorUpdate[j] - alphaVector[j]) / alphaVector[j]) >= Parameters.DEFAULT_ALPHA_UPDATE_CONVERGE_THRESHOLD) {\n\t\t\t\t\t\tkeepGoing = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (alphaUpdateIterationCount >= Parameters.DEFAULT_ALPHA_UPDATE_MAXIMUM_ITERATION) {\n\t\t\t\t\tkeepGoing = false;\n\t\t\t\t}\n\n\t\t\t\tif (decay > Parameters.DEFAULT_ALPHA_UPDATE_MAXIMUM_DECAY) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\talphaUpdateIterationCount++;\n\t\t\t\talphaVector = alphaVectorUpdate;\n\t\t\t}\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tSystem.err.println(iae.getMessage());\n\t\t\tiae.printStackTrace();\n\t\t} catch (ArithmeticException ae) {\n\t\t\tSystem.err.println(ae.getMessage());\n\t\t\tae.printStackTrace();\n\t\t}\n\n\t\tnewAlpha = alphaVector;\n\n\n\t}", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "static double clusterVerticesOneStep(Mesh mesh) {\n\t\t\n\t\t// for each pair of the vertices\n\t\tdouble mindis = 1.0e+30;\n\t\tfor(int i = 0; i < mesh.getNumVertices(); i++) {\n\t\t\tVertex v1 = mesh.getVertex(i);\n\t\t\tfor(int j = (i + 1); j < mesh.getNumVertices(); j++) {\n\t\t\t\tVertex v2 = mesh.getVertex(j);\n\t\t\t\n\t\t\t\t// for each pair of the nodes\n\t\t\t\tdouble maxdis = 0.0;\n\t\t\t\tfor(int ii = 0; ii < v1.nodes.size(); ii++) {\n\t\t\t\t\tNode n1 = (Node)v1.nodes.get(ii);\n\t\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\t\tif(n1.getDisSim2(n2.getId()) > maxdis) {\n\t\t\t\t\t\t\tmaxdis = n1.getDisSim2(n2.getId());\n\t\t\t\t\t\t\tif(maxdis > mindis) {\n\t\t\t\t\t\t\t\tii = v1.nodes.size(); break;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// update mindis\n\t\t\t\tif(mindis > maxdis) {\n\t\t\t\t\tmindis = maxdis;\n\t\t\t\t\t//System.out.println(\" updated mindis=\" + mindis);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Determine the threshold\n\t\tdouble threshold = mindis * clusteringThreshold;\n\t\t\n\t\t// Combine close two vertices \n\t\tfor(int i = 0; i < mesh.getNumVertices(); i++) {\n\t\t\tVertex v1 = mesh.getVertex(i);\n\t\t\tfor(int j = (i + 1); j < mesh.getNumVertices(); j++) {\n\t\t\t\tVertex v2 = mesh.getVertex(j);\n\t\t\t\n\t\t\t\t// for each pair of the nodes\n\t\t\t\tdouble maxdis = -1.0;\n\t\t\t\tfor(int ii = 0; ii < v1.nodes.size(); ii++) {\n\t\t\t\t\tNode n1 = (Node)v1.nodes.get(ii);\n\t\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\t\tif(n1.getDisSim2(n2.getId()) > maxdis) {\n\t\t\t\t\t\t\tmaxdis = n1.getDisSim2(n2.getId());\n\t\t\t\t\t\t\tif(maxdis > threshold) {\n\t\t\t\t\t\t\t\tii = v1.nodes.size(); break;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(maxdis > threshold) continue;\n\t\t\t\t\n\t\t\t\t//System.out.println(\" combine: i=\" + i + \" j=\" + j + \" names=\" + authors + \" maxdis=\" + maxdis + \" th=\" + threshold);\n\t\t\t\t\n\t\t\t\t// combine the two vertices\n\t\t\t\tfor(int jj = 0; jj < v2.nodes.size(); jj++) {\n\t\t\t\t\tNode n2 = (Node)v2.nodes.get(jj);\n\t\t\t\t\tv1.nodes.add(n2);\n\t\t\t\t\tn2.setVertex(v1);\n\t\t\t\t}\n\t\t\t\tmesh.removeOneVertex(v2);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn threshold;\n\t}", "public void setCentroidsAsMeans();", "private Color calcLocalEffects(GeoPoint intersection, Ray ray,double k) \r\n\t{\r\n\t\tVector v = ray.getDir();// ray direction\r\n\t\tVector n = intersection.geometry.get_Normal(intersection.point);\r\n\t\tdouble nv = Util.alignZero(n.dotProduct(v));\r\n\t\tif (Util.isZero(nv))// there is no diffusive and Specular\r\n\t\t\treturn Color.BLACK;\r\n\t\tint nShininess = intersection.geometry.getMaterial().nShininess;\r\n\t\tdouble kd = intersection.geometry.getMaterial().kD;\r\n\t\tdouble ks = intersection.geometry.getMaterial().kS;\r\n\t\tColor color = Color.BLACK;\r\n\t\tfor (LightSource lightSource : scene.lights) {\r\n\t\t\tVector l = lightSource.getL(intersection.point);\r\n\t\t\tdouble nl = Util.alignZero(n.dotProduct(l));\r\n\t\t\tif (nl * nv > 0) { // sign(nl) == sing(nv)\r\n\t\t\t\tdouble ktr = transparency( l, n, intersection,lightSource);\r\n\t\t\t\tif (ktr * k > MIN_CALC_COLOR_K) {\r\n\t\t\t\t\tColor lightIntensity = lightSource.getIntensity(intersection.point).scale(ktr);\r\n\t\t\t\t\tcolor = color.add(calcDiffusive(kd, nl, lightIntensity),\r\n\t\t\t\t\t\t\tcalcSpecular(ks, l, n, nl, v, nShininess, lightIntensity));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn color;\r\n\t}", "public Recommender(int k) {\n K = k;\n }", "public REXP kmeans(double[] values, String[] rnames, String[] cnames,\n boolean usePam, String minClusCountExpr, String maxClusCountExpr) {\n minClusCountExpr = minClusCountExpr.replaceAll(\"N\",\n String.valueOf(rnames.length));\n maxClusCountExpr = maxClusCountExpr.replaceAll(\"N\",\n String.valueOf(rnames.length));\n\n double minClusCount = Calculator.calculate(minClusCountExpr);\n double maxClusCount = Calculator.calculate(maxClusCountExpr);\n\n logger.info(\"MIN clusters count: \" + minClusCount\n + \" MAX clusters count: \" + maxClusCount);\n\n // calculate\n\n logger.info(\"values:\\n\" + Arrays.toString(values));\n rengine.assign(CELLS_NAME, values);\n rengine.assign(ROWS_NAME, rnames);\n rengine.assign(COLS_NAME, cnames);\n\n String matrixCmd = \"x <- matrix(\" + CELLS_NAME + \", nrow=\"\n + rnames.length + \", ncol=\" + cnames.length\n + \", byrow=TRUE, dimnames=list(\" + ROWS_NAME + \",\" + COLS_NAME\n + \"))\";\n logger.info(\"Creating matrix command: \" + matrixCmd);\n\n rengine.eval(matrixCmd);\n\n String kmeansCmd = \"km <- pamk(x,\" + ((int) minClusCount) + \":\"\n + ((int) maxClusCount) + \",usepam=\"\n + String.valueOf(usePam).toUpperCase() + \")\";\n logger.info(\"Kmeans command: \" + kmeansCmd);\n REXP km = rengine.eval(kmeansCmd);\n\n // rengine.eval(\"print(km$nc)\");\n\n logger.info(\"Optimal number of clusters : \"\n + ((REXP) km.asVector().get(1)).asInt());\n\n return km;\n\n }", "@Override\n\tprotected void map(LongWritable key, Text value,Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString line=value.toString();\n\t\t//String[] words=line.split(\" \");\n\t\tStringTokenizer tokenizer=new StringTokenizer(line); //another way better datastructure\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString word = tokenizer.nextToken();\n\t\t\t\n\t\t\toutkey.set(word); //outkey value reset\n\t\t\tcontext.write(outkey,outvalue);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tprotected void reduce(IntWritable arg0, Iterable<Text> arg1,Context arg2)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString fenzi=null;\n\t\tdouble fenmu=0;\n\t\tText reducevalue=new Text();\n\t\tfor(Text value:arg1)\n\t\t{\n\t\t\tString[] array=value.toString().split(\",\");\n\t\t\tdouble m=Double.parseDouble(array[1]);\n\t\t\tfenmu=fenmu+m;\n\t\t\tString[] points=array[0].split(\" \");\n\t\t\tString[] temps=null;\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tif(fenzi==null)\n\t\t\t{\n\t\t\t\t temps=new String[points.length];\n\t\t\t\t for(int i=0;i<temps.length;i++)\n\t\t\t\t {\n\t\t\t\t\t temps[i]=\"0\";\n\t\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemps=fenzi.split(\" \");\n\t\t\t}\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tpoints[i]=(Double.parseDouble(temps[i])+Double.parseDouble(points[i]) * m)+\"\";\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tsb.append(points[i]+\" \");\n\t\t\t}\n\t\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\t\tsb=null;\n\t\t//\tSystem.out.println(value.toString());\n\t\t}\n\t\tString[] res=fenzi.split(\" \");\n\t//\tSystem.out.println(\"fenmu=\"+fenmu);\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tres[i]=Double.parseDouble(res[i])/fenmu+\"\";\n\t\t}\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tsb.append(res[i]+\" \");\n\t\t}\n\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\treducevalue.set(fenzi);\n\t\targ2.write(arg0, reducevalue);\n\t}", "public PairwiseRanking(Classifier classifier) {\n\t\tthis.classifier = classifier;\n\t\tthis.set = new TrainingSet();\n\t}", "public int predict(int[] testData) {\n /*\n * kNN algorithm:\n * \n * This algorithm compare the distance of every training data to the test data using \n * the euclidean distance algorithm, and find a specfic amount of training data \n * that are closest to the test data (the value of k determine that amount). \n * \n * After that, the algorithm compare those data, and determine whether more of those\n * data are labeled with 0, or 1. And use that to give the guess\n * \n * To determine k: sqrt(amount of training data)\n */\n\n /*\n * Problem:\n * Since results and distances will be stored in different arrays, but in the same order,\n * sorting distances will mess up the label, which mess up the predictions\n * \n * Solution:\n * Instead of sorting distances, use a search algorithm, search for the smallest distance, and then\n * the second smallest number, and so on. Get the index of that number, use the index to \n * find the result, and store it in a new ArrayList for evaluation\n */\n\n // Step 1 : Determine k \n double k = Math.sqrt(this.trainingData.size());\n k = 3.0;\n\n // Step 2: Calculate distances\n // Create an ArrayList to hold all the distances calculated\n ArrayList<Double> distances = new ArrayList<Double>();\n // Create another ArrayList to store the results\n ArrayList<Integer> results = new ArrayList<Integer>();\n for (int[] i : this.trainingData) {\n // Create a temp array with the last item (result) eliminated\n int[] temp = Arrays.copyOf(i, i.length - 1);\n double distance = this.eucDistance(temp, testData);\n // Add both the result and the distance into associated arraylists\n results.add(i[i.length - 1]);\n distances.add(distance);\n }\n\n // Step 3: Search for the amount of highest points according to k\n ArrayList<Integer> closestResultLst = new ArrayList<Integer>();\n for (int i = 0; i < k; i++) {\n double smallestDistance = Collections.min(distances);\n int indexOfSmallestDistance = distances.indexOf(smallestDistance);\n int resultOfSmallestDistance = results.get(indexOfSmallestDistance);\n closestResultLst.add(resultOfSmallestDistance);\n // Set the smallest distance to null, so it won't be searched again\n distances.set(indexOfSmallestDistance, 10.0);\n }\n\n // Step 4: Determine which one should be the result by looking at the majority of the numbers\n int yes = 0, no = 0;\n for (int i : closestResultLst) {\n if (i == 1) {\n yes++;\n } else if (i == 0) {\n no++;\n }\n }\n\n // Step 5: Return the result\n // test code\n // System.out.println(yes);\n // System.out.println(no);\n if (yes >= no) {\n return 1;\n } else {\n return 0;\n }\n }", "public KMeans(KMeans a) {\n K = a.K;\n if (a.centroids != null) {\n centroids = new SparseVector[K];\n isInitialized = new boolean[K];\n for (int i = 0; i < K; i++) {\n centroids[i] = (SparseVector)a.centroids[i].clone();\n isInitialized[i] = a.isInitialized[i];\n }\n }\n }", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n \tString line = value.toString();\n \tString[] tokens = line.split(\"@\");\n \tdouble average = Double.parseDouble(tokens[2].trim());\n averages.put(average, new Text(value)); \n if (averages.size() > K)\n averages.remove(averages.firstKey()); \n }", "@InterfaceAudience.Public\n Reducer compileReduce(String source, String language);", "public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static double computeClusterIndex(Map<String, List<String>> mCl) {\n\n\t\tdouble minCompactness = 0;\n\t\tdouble tempIsolation = 0;\n\t\tdouble maxIsolation = 0;\n\n\t\tList<String> arg1 = null;\n\t\tList<String> arg2 = null;\n\n\t\tdouble clusterGoodness = 0;\n\t\t// long n = (mCl.size()) * (mCl.size() - 1) / 2;\n\t\tfor (Entry<String, List<String>> e1 : mCl.entrySet()) {\n\n\t\t\tmaxIsolation = 0;\n\n\t\t\tfor (Entry<String, List<String>> e2 : mCl.entrySet()) {\n\t\t\t\tif (e2.getKey().hashCode() != e1.getKey().hashCode()) {\n\n\t\t\t\t\targ1 = e1.getValue();\n\t\t\t\t\targ2 = e2.getValue();\n\t\t\t\t\ttempIsolation = intraClusterScore(arg1, arg2);\n\n\t\t\t\t\t// get the maximum score, i.e the strongest intra-cluster\n\t\t\t\t\t// pair..\n\t\t\t\t\tmaxIsolation = (maxIsolation < tempIsolation) ? tempIsolation\n\t\t\t\t\t\t\t: maxIsolation;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// perform its own compactness\n\t\t\tminCompactness = getInterClusterScore(e1.getValue());\n\n\t\t\tclusterGoodness = clusterGoodness + (double) minCompactness\n\t\t\t\t\t/ ((maxIsolation == 0) ? Math.pow(10, -1) : maxIsolation);\n\n\t\t}\n\n\t\tclusterGoodness = (clusterGoodness == 0) ? (Math.pow(10, -8) - clusterGoodness)\n\t\t\t\t: clusterGoodness;\n\n\t\treturn (double) 1 / clusterGoodness;\n\n\t}", "private Color calcColor(GeoPoint geoPoint, Ray inRay, int level, double k) {\n if (level == 0 || k < MIN_CALC_COLOR_K) {\n return Color.BLACK;\n }\n Color result = geoPoint.getGeometry().getEmmission();\n Point3D pointGeo = geoPoint.getPoint();\n\n /**v=is the vector from camera strait ahead.\n * n=the vector normal to the point on that shape/object*/\n Vector v = pointGeo.subtract(scene.getCamera().getSpo()).normalize();\n Vector n = geoPoint.getGeometry().getNormal(pointGeo);\n\n Material material = geoPoint.getGeometry().getMaterial();\n int nShininess = material.getnShininess();\n double kd = material.getkD();\n double ks = material.getkS();\n double kr = geoPoint.getGeometry().getMaterial().getkR();//each time gets the amount of mirror in the object.\n double kt = geoPoint.getGeometry().getMaterial().getkT();//each time gets the amount of transparent in the object.\n double kkr = k * kr;//if kr/kt was small so it will smaller the kkr/kkt before we send to the function again.\n double kkt = k * kt;\n\n List<LightSource> lightSources = scene.getLightSources();\n if (lightSources != null) {\n for (LightSource light : lightSources) {//for each light will check\n Vector l = light.getL(pointGeo);//L=the vector from light to point\n double nl = alignZero(n.dotProduct(l));\n double nv = alignZero(n.dotProduct(v));\n if (nl * nv > 0) {\n /**how much shakof are all the objects between the light in the point. it can reduce the impact ot the light\n * if there is no objects it will return 1. ktr*1=the same. no change.\n * even if one is (atum) so it will block the light.\n * and then will add the color with a (mekadem)that can make smaller the\n * impact of the light because there are objects that are not so shakoof and disturb the color*/\n double t = transparency(light, l, n, geoPoint);\n if (t * k > MIN_CALC_COLOR_K) {\n Color ip = light.getIntensity(pointGeo).scale(t);\n result = result.add(calcDiffusive(kd, nl, ip), calcSpecular(ks, l, n, nl, v, nShininess, ip));\n }\n }\n }\n }\n\n if (level == 1) {//Stop condition .we went a enough far away from the point\n return Color.BLACK;\n }\n\n /**A nother Stop condition.\n * if we in ecounterend a object with very little mirror so it smallered the kkr.\n * will check if the (mekadem), is still higher then the min number*/\n if (kkr > MIN_CALC_COLOR_K) {\n Ray reflectedRay = constructReflectedRay(pointGeo, inRay, n);\n GeoPoint reflectedPoint = findClosestIntersection(reflectedRay);\n if (reflectedPoint != null) {\n result = result.add(calcColor(reflectedPoint, reflectedRay, level - 1, kkr).scale(kr));\n }\n }\n if (kkt > MIN_CALC_COLOR_K) {//if the shkefut of the number is still high\n Ray refractedRay = constructRefractedRay(pointGeo, inRay, n);//so will send a ray from the knew object.\n GeoPoint refractedPoint = findClosestIntersection(refractedRay);//ho is the point you got\n if (refractedPoint != null) {//if you got a point lets send that point again to see if he also is impacted.\n result = result.add(calcColor(refractedPoint, refractedRay, level - 1, kkt).scale(kt));\n }\n }\n return result;//returns the color that will be added to the point.\n }", "private double validate(int k) {\n\t\tArrayList<Product> allData = trainData;\n\t\tshuffle(allData);\n\t\tArrayList<Double> accurs = new ArrayList<Double>();\n\t\tif (k < 1 || k > allData.size()) return -1;\n\t\tint foldLength = allData.size() / k;\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tArrayList<Product> fold = new ArrayList<Product>();\n\t\t\tArrayList<Product> rest = new ArrayList<Product>();\n\t\t\tfold.addAll(allData.subList(i * foldLength, (i + 1) * foldLength));\n\t\t\trest.addAll(allData.subList(0, i * foldLength));\n\t\t\trest.addAll(allData.subList((i + 1) * foldLength, allData.size()));\n\t\t\tdouble[] predict = classify(fold, rest);\n\t\t\tdouble[] real = getLabels(fold);\n\t\t\taccurs.add(getAccuracyBinary(predict, real));\n\t\t}\n\t\tdouble accur = 0;\n\t\tfor (int i = 0; i < accurs.size(); i++) {\n\t\t\taccur += accurs.get(i);\n\t\t}\n\t\taccur /= accurs.size();\n\t\treturn accur;\n\t}", "@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}", "public abstract void betaReduce();", "public void training(ArrayList<UnlockData> unlocks) {\n // Create a map to hold sub lists of clusters\n Map<Integer, ArrayList<UnlockData>> map = new HashMap<>();\n // Method to identify clusters in the training unlocks\n ArrayList<UnlockData> clusters = analyseClusters(unlocks);\n for (UnlockData unlock : clusters) {\n // Fetch the list for this object's cluster id\n ArrayList<UnlockData> temp = map.get(unlock.getClusterId());\n\n if (temp == null) {\n // If the list is null we haven't seen an\n // object with this cluster id before, so create\n // a new list and add it to the map\n temp = new ArrayList<UnlockData>();\n map.put(unlock.getClusterId(), temp);\n }\n temp.add(unlock);\n }\n // Method to create models of clusters of the same unlocks\n for (Map.Entry<Integer, ArrayList<UnlockData>> entry : map.entrySet()) {\n TrainModel model = new TrainModel();\n\n ArrayList<UnlockData> cluster = new ArrayList<>();\n\n for (UnlockData unlock : entry.getValue()) {\n cluster.add(unlock);\n }\n // Skip cluster id with 0, as they have not been assigned yet\n // Since every group of clusters has the same id, check only first\n if (cluster.get(0).cluster_id != 0) {\n try {\n model.train(cluster);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void map(MapOutputCollector collector, Key key, Value val)\r\n\t\t\tthrows TwisterException {\r\n\t\t// load centroids data from memcache\r\n\t\tMemCacheAddress memCacheKey = (MemCacheAddress) val;\r\n\t\tif (memCacheKey.getRange() != 1) {\r\n\t\t\tthrow new TwisterException(\"MemCache size is not 1.\");\r\n\t\t}\r\n\t\tBcastCentroidVectorData centroids = (BcastCentroidVectorData) (MemCache\r\n\t\t\t\t.getInstance().get(this.jobConf.getJobId(),\r\n\t\t\t\tmemCacheKey.getMemCacheKeyBase() + memCacheKey.getStart()));\r\n\t\tif (centroids == null) {\r\n\t\t\tthrow new TwisterException(\"No centroid data.\");\r\n\t\t}\r\n\t\tif (centroids.getVecLen() != this.image.getVecLen()) {\r\n\t\t\tthrow new TwisterException(\r\n\t\t\t\t\t\"Centroids and Image data are not matched.\");\r\n\t\t}\r\n\t\t// ExecutorService taskExecutor = Executors.newSingleThreadExecutor();\r\n\t\t// CentroidsPrintingThread thread = new CentroidsPrintingThread(centroids,\r\n\t\t\t\t// 0);\r\n\t\t// taskExecutor.execute(thread);\r\n\t\tint vecLen = this.image.getVecLen();\r\n\t\t// image data\r\n\t\tbyte[][] imageData = this.image.getData();\r\n\t\tint numImageData = this.image.getNumData();\r\n\t\t// index recording\r\n\t\tdouble[] minDis = new double[numImageData];\r\n\t\tint[] minCentroidIndex = new int[numImageData];\r\n\t\t// centroid data\r\n\t\tint numCentroidsData = centroids.getNumData();\r\n\t\tbyte[][] centroidData = centroids.getData();\r\n\t\t// tmp data\r\n\t\tdouble dis = 0;\r\n\t\tif (numCentroidsData > numImageData) {\r\n\t\t\t// for each row\r\n\t\t\tfor (int i = 0; i < numCentroidsData; i++) {\r\n\t\t\t\tfor (int j = 0; j < numImageData; j++) {\r\n\t\t\t\t\tdis = getEuclidean(imageData[j], centroidData[i], vecLen);\r\n\t\t\t\t\t// set init minDis for a new coming data point\r\n\t\t\t\t\t// we know i is 0, no need to set min block and row\r\n\t\t\t\t\tif (i == 0) {\r\n\t\t\t\t\t\tminDis[j] = dis;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dis < minDis[j]) {\r\n\t\t\t\t\t\tminDis[j] = dis;\r\n\t\t\t\t\t\tminCentroidIndex[j] = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < numImageData; i++) {\r\n\t\t\t\tfor (int j = 0; j < numCentroidsData; j++) {\r\n\t\t\t\t\tdis = getEuclidean(imageData[i], centroidData[j], vecLen);\r\n\t\t\t\t\t// set init minDis for a new coming data point\r\n\t\t\t\t\tif (j == 0) {\r\n\t\t\t\t\t\tminDis[i] = dis;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dis < minDis[i]) {\r\n\t\t\t\t\t\tminDis[i] = dis;\r\n\t\t\t\t\t\tminCentroidIndex[i] = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set block and row map\r\n\t\tMap<Integer, Map<Integer, List<Integer>>> centroidsMap = new TreeMap<Integer, Map<Integer, List<Integer>>>();\r\n\t\t// record the assignment of the points\r\n\t\tfor (int i = 0; i < numImageData; i++) {\r\n\t\t\t// System.out.println(\" \" + minCentroidIndex[i] + \" \" + numCentroidsData);\r\n\t\t\tint[]blockRowIndex = getBlockRowIndex(minCentroidIndex[i], numCentroidsData);\r\n\t\t\t// System.out.println(\" \" + blockRowIndex[0] + \" \" + blockRowIndex[1]);\r\n\t\t\t// block\r\n\t\t\tMap<Integer, List<Integer>> block = centroidsMap\r\n\t\t\t\t\t.get(blockRowIndex[0]);\r\n\t\t\tif (block == null) {\r\n\t\t\t\tblock = new HashMap<Integer, List<Integer>>();\r\n\t\t\t\tcentroidsMap.put(blockRowIndex[0], block);\r\n\t\t\t}\r\n\t\t\t// row\r\n\t\t\tList<Integer> row = block.get(blockRowIndex[1]);\r\n\t\t\tif (row == null) {\r\n\t\t\t\trow = new ArrayList<Integer>();\r\n\t\t\t\tblock.put(blockRowIndex[1], row);\r\n\t\t\t}\r\n\t\t\t// add image index\r\n\t\t\trow.add(i);\r\n\t\t}\r\n\t\t//System.out.println(\"size of centroids map \" + centroidsMap.size());\r\n\t\t// do collect\r\n\t\tint blockNumData = 0;\r\n\t\tdouble totalMinDis = 0;\r\n\t\tMap<Key, Value> keyvals = new HashMap<Key, Value>();\r\n\t\tfor (int blockIndex : centroidsMap.keySet()) {\r\n\t\t\tblockNumData = getBlockNumData(blockIndex, numCentroidsData);\r\n\t\t\t// create new object\r\n\t\t\tint[] newCentroidRowCount = new int[blockNumData];\r\n\t\t\tint[][] newCentroidData = new int[blockNumData][vecLen];\r\n\t\t\t// get block records\r\n\t\t\tMap<Integer, List<Integer>> block = centroidsMap.get(blockIndex);\r\n\t\t\t// get row\r\n\t\t\tfor (int rowIndex : block.keySet()) {\r\n\t\t\t\tList<Integer> row = block.get(rowIndex);\r\n\t\t\t\t// for each image index\r\n\t\t\t\tfor (int imageIndex : row) {\r\n\t\t\t\t\tfor (int i = 0; i < vecLen; i++) {\r\n\t\t\t\t\t\tnewCentroidData[rowIndex][i] = newCentroidData[rowIndex][i]\r\n\t\t\t\t\t\t\t\t+ (int) imageData[imageIndex][i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// image count on this centroid\r\n\t\t\t\t\tnewCentroidRowCount[rowIndex] = newCentroidRowCount[rowIndex] + 1;\r\n\t\t\t\t\ttotalMinDis = totalMinDis + minDis[imageIndex];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tkeyvals.put(new ShuffleKey(blockIndex), new ShuffleVectorData(\r\n\t\t\t\t\tblockNumData, vecLen, totalMinDis, newCentroidRowCount,\r\n\t\t\t\t\tnewCentroidData));\r\n\r\n\t\t\tif (keyvals.size() == 25) {\r\n\t\t\t\tcollector.collect(keyvals);\r\n\t\t\t\tkeyvals.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//add empty block, for benchmark shuffling only\r\n\t\t/*\r\n\t\tfor (int i = 0; i < this.jobConf.getNumReduceTasks(); i++) {\r\n\t\t\tif (centroidsMap.get(i) == null) {\r\n\t\t\t\tblockNumData = getBlockNumData(i, numCentroidsData);\r\n\t\t\t\tint[] newCentroidRowCount = new int[blockNumData];\r\n\t\t\t\tint[][] newCentroidData = new int[blockNumData][vecLen];\r\n\t\t\t\tkeyvals.put(new ShuffleKey(i), new ShuffleVectorData(\r\n\t\t\t\t\t\tblockNumData, vecLen, 0, newCentroidRowCount,\r\n\t\t\t\t\t\tnewCentroidData));\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\t// collect\r\n\t\tif (!keyvals.isEmpty()) {\r\n\t\t\tcollector.collect(keyvals);\r\n\t\t}\r\n\t}", "private void test(int k) {\n if (state[left(k)] != State.EATING && state[k] == State.HUNGRY\n && state[right(k)] != State.EATING) {\n state[k] = State.EATING;\n }\n }", "protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }", "public interface IStoppingCriteria {\n\n /**\n * Determine the degree of clustering agreement\n * @param cluster1 one clustering results\n * @param cluster2 the other clustering results\n * @return the degree of clustering agreement; 1 refers to be the same clustering results; 0 refers to be the totally different clustering results\n */\n public double computeSimilarity(int[] cluster1, int[] cluster2);\n\n}", "public int getMilkWeight(T key);", "public void floyd_warshall()\n{\n /*\n * We get the minimum tree again, but we allow cycles this time. This gives\n * us the complete tree, but with edges ranked by priority.\n */\n this.minimumTree = this._getKruskalTree(true);\n for (int loop = 0;\n loop < this.nVerts;\n loop++\n ) {\n this.bellman_ford(loop);\n }\n}", "private Color calcColor(GeoPoint intersection, Ray ray, int level, double k)\r\n\t{\r\n\t\tColor color = intersection.geometry.getEmmission();\r\n\t\tcolor = color.add(calcLocalEffects(intersection, ray,k));\r\n\t\treturn 1 == level ? color : color.add(calcGlobalEffects(intersection, ray, level, k));\r\n\t}", "@Override\r\n\tprotected void onReduceMp()\r\n\t{\n\t}", "@Override\n\tpublic void takeLeadership(CuratorFramework curator) throws Exception\n\t{\n\n\t\tLOG.info(\"a new leader has been elected: kaboom.id={}\", config.getKaboomId());\n\t\n\t\tThread.sleep(30 * 1000);\n\n\t\twhile (true)\n\t\t{\n\t\t\tMap<String, String> partitionToHost = new HashMap<String, String>();\n\t\t\tMap<String, List<String>> hostToPartition = new HashMap<String, List<String>>();\n\t\t\tfinal Map<String, KaBoomNodeInfo> clients = new HashMap<String, KaBoomNodeInfo>();\n\t\t\tMap<String, List<String>> clientToPartitions = new HashMap<String, List<String>>();\n\t\t\tMap<String, String> partitionToClient = new HashMap<String, String>();\n\t\t\tList<String> topics = new ArrayList<String>();\n\n\t\t\t// Get a full set of metadata from Kafka\n\t\t\tStateUtils.readTopicsFromZooKeeper(config.getKafkaZkConnectionString(), topics);\n\n\t\t\t// Map partition to host and host to partition\n\t\t\tStateUtils.getPartitionHosts(config.getKafkaSeedBrokers(), topics, partitionToHost, hostToPartition);\n\n\t\t\t// Get a list of active clients from zookeeper\n\t\t\tStateUtils.getActiveClients(curator, clients);\n\n\t\t\t// Get a list of current assignments\n\t\t\t// Get a list of current assignments\n\t\t\t\n\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t{\n\t\t\t\tStat stat = curator.checkExists().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\n\t\t\t\tif (stat != null)\n\t\t\t\t{\n\t\t\t\t\t// check if the client is still connected, and delete node if it is not.\n\t\t\t\t\t\n\t\t\t\t\tString client = new String(curator.getData().forPath(\"/kaboom/assignments/\" + partition), UTF8);\n\t\t\t\t\t\n\t\t\t\t\tif (clients.containsKey(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is connected\", partition, client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpartitionToClient.put(partition, client);\t\t\t\t\t\t\n\t\t\t\t\t\tList<String> parts = clientToPartitions.get(client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parts == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\t\tclientToPartitions.put(client, parts);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparts.add(partition);\n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is not connected\", partition, client);\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\t\tstat = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStateUtils.calculateLoad(partitionToHost, clients, clientToPartitions);\n\n\t\t\t// If any node is over its target by at least one, then unassign partitions until it is at or below its target\n\t\t\t\n\t\t\tfor (Entry<String, KaBoomNodeInfo> e : clients.entrySet())\n\t\t\t{\n\t\t\t\tString client = e.getKey();\n\t\t\t\tKaBoomNodeInfo info = e.getValue();\n\n\t\t\t\tif (info.getLoad() >= info.getTargetLoad() + 1)\n\t\t\t\t{\n\t\t\t\t\tList<String> localPartitions = new ArrayList<String>();\n\t\t\t\t\tList<String> remotePartitions = new ArrayList<String>();\n\n\t\t\t\t\tfor (String partition : clientToPartitions.get(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (partitionToHost.get(partition).equals(info.getHostname()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlocalPartitions.add(partition);\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\tremotePartitions.add(partition);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (info.getLoad() > info.getTargetLoad())\n\t\t\t\t\t{\n\t\t\t\t\t\tString partitionToDelete;\n\t\t\t\t\t\tif (remotePartitions.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartitionToDelete = remotePartitions.remove(rand.nextInt(remotePartitions.size()));\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\tpartitionToDelete = localPartitions.remove(rand.nextInt(localPartitions.size()));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tLOG.info(\"Unassgning {} from overloaded client {}\", partitionToDelete, client);\n\t\t\t\t\t\tpartitionToClient.remove(partitionToDelete);\n\t\t\t\t\t\tclientToPartitions.get(client).remove(partitionToDelete);\n\t\t\t\t\t\tinfo.setLoad(info.getLoad() - 1);\n\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partitionToDelete);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Sort the clients by percent load, then add unassigned clients to the lowest loaded client\t\t\t\n\t\t\t{\n\t\t\t\tList<String> sortedClients = new ArrayList<String>();\n\t\t\t\tComparator<String> comparator = new Comparator<String>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(String a, String b)\n\t\t\t\t\t{\n\t\t\t\t\t\tKaBoomNodeInfo infoA = clients.get(a);\n\t\t\t\t\t\tdouble valA = infoA.getLoad() / infoA.getTargetLoad();\n\n\t\t\t\t\t\tKaBoomNodeInfo infoB = clients.get(b);\n\t\t\t\t\t\tdouble valB = infoB.getLoad() / infoB.getTargetLoad();\n\n\t\t\t\t\t\tif (valA == valB)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (valA > valB)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn 1;\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\treturn -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\tsortedClients.addAll(clients.keySet());\n\n\t\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t\t{\n\t\t\t\t\t// If it's already assigned, skip it\n\t\t\t\t\t\n\t\t\t\t\tif (partitionToClient.containsKey(partition))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCollections.sort(sortedClients, comparator);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * \n\t\t\t\t\t * Iterate through the list until we find either a local client below capacity, or we reach the ones that are \n\t\t\t\t\t * above capacity. If we reach clients above capacity, then just assign it to the first node.\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\tLOG.info(\"Going to assign {}\", partition);\n\t\t\t\t\tString chosenClient = null;\n\t\t\t\t\t\n\t\t\t\t\tfor (String client : sortedClients)\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.info(\"- Checking {}\", client);\t\t\t\t\t\t\n\t\t\t\t\t\tKaBoomNodeInfo info = clients.get(client);\t\t\t\t\t\t\n\t\t\t\t\t\tLOG.info(\"- Current load = {}, Target load = {}\", info.getLoad(), info.getTargetLoad());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (info.getLoad() >= info.getTargetLoad())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (clients.get(client).getHostname().equals(partitionToHost.get(partition)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tchosenClient = client;\n\t\t\t\t\t\t\t\tbreak;\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\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (chosenClient == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t}\n\n\t\t\t\t\tLOG.info(\"Assigning partition {} to client {}\", partition, chosenClient);\n\n\t\t\t\t\tcurator\n\t\t\t\t\t\t .create()\n\t\t\t\t\t\t .withMode(CreateMode.PERSISTENT)\n\t\t\t\t\t\t .forPath(\"/kaboom/assignments/\" + partition,\n\t\t\t\t\t\t\t chosenClient.getBytes(UTF8));\n\n\t\t\t\t\tList<String> parts = clientToPartitions.get(chosenClient);\n\t\t\t\t\t\n\t\t\t\t\tif (parts == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\tclientToPartitions.put(chosenClient, parts);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tparts.add(partition);\n\n\t\t\t\t\tpartitionToClient.put(partition, chosenClient);\n\n\t\t\t\t\tclients.get(chosenClient).setLoad(clients.get(chosenClient).getLoad() + 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check to see if the kafka_ready flag writer thread exists and is alive:\n\t\t\t * \n\t\t\t * If it doesn't exist or isn't running, start it. This is designed to \n\t\t\t * work well when the load balancer sleeps for 10 minutes after assigning \n\t\t\t * work. If that behavior changes then additional logic will be required\n\t\t\t * to ensure this isn't executed too often \n\t\t\t */\n\t\t\t\n\t\t\tif (readyFlagThread == null || !readyFlagThread.isAlive())\n\t\t\t{\n\t\t\t\tLOG.info(\"[ready flag writer] thread doesn't exist or is not running\");\t\t\t\t\n\t\t\t\treadyFlagWriter = new ReadyFlagWriter(config, curator);\n\t\t\t\treadyFlagWriter.addListener(this);\n\t\t\t\treadyFlagThread = new Thread(readyFlagWriter);\n\t\t\t\treadyFlagThread.start();\n\t\t\t\tLOG.info(\"[ready flag writer] thread created and started\");\n\t\t\t}\n\n\t\t\tThread.sleep(10 * 60 * 1000);\n\t\t}\n\t}", "public Object clone() {\n return new KMeans(this);\n }", "public void aggregateState(MapReduceState mrState, List<ShardState> shardStates) {\n List<Long> mapperCounts = new ArrayList<Long>();\n Counters counters = new Counters();\n for (ShardState shardState : shardStates) {\n Counters shardCounters = shardState.getCounters();\n // findCounter creates the counter if it doesn't exist.\n mapperCounts.add(shardCounters.findCounter(\n HadoopCounterNames.MAP_INPUT_RECORDS_GROUP, \n HadoopCounterNames.MAP_INPUT_RECORDS_NAME).getValue());\n \n for (CounterGroup shardCounterGroup : shardCounters) {\n for (Counter shardCounter : shardCounterGroup) {\n counters.findCounter(\n shardCounterGroup.getName(), shardCounter.getName()).increment(\n shardCounter.getValue());\n }\n }\n }\n \n log.fine(\"Aggregated counters: \" + counters);\n mrState.setCounters(counters);\n mrState.setProcessedCounts(mapperCounts);\n }", "private static void clustering() {\n \tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir,\n \t\t\tclArgs.clusteringOpticsXi, clArgs.clusteringOpticsMinPts);\n }", "private Color calcDiffusive(double kd, Vector l, Vector n, Color lightIntensity)\r\n\r\n\t{\r\n\t\treturn lightIntensity.scale(Math.abs(l.dotProduct(n)) * kd);\r\n\t}", "MeanWithClusterProbAggregator() {\n // NO-OP.\n }", "private void distrErrToNeighbors(GNode winner, String leftK, String rightK, String topK, String bottomK) {\n\n }", "@Override\r\n\t\t//Reducer method\r\n\t\tpublic void reduce(Text key, Iterable<Text>values, Context c) throws IOException,InterruptedException{\n\t\t\tint count = 0;\r\n\t\t\t//for each time the particular key value pair occurs \r\n\t\t\t//Increase the count by 1\r\n\t\t\tfor(Text val:values){\r\n\t\t\t\tcount += 1;\r\n\t\t\t}\r\n\t\t\tString info = key.toString();\r\n String [] info_part = info.split(\"\\\\_\");\r\n\t\t\t\t\t\t//Create a list key value pairs \r\n\t\t\tc.write(new Text(info_part[0]+\",\"+info_part[1]+\",\"), new Text(\"\"+count));\t\r\n\r\n\t\t}", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] token = value.toString().split(\"\\t\");\n String[] pair = new String[2];\n if(token.length < 2) return;\n String[] data = token[1].split(\",\");\n\n for (String d : data) {\n pair[0] = token[0];\n pair[1] = d;\n if(Integer.parseInt(pair[0])<Integer.parseInt(pair[1]))\n keyPair.set(\"<\"+pair[0]+\",\"+pair[1]+\">\");\n else\n keyPair.set(\"<\"+pair[1]+\",\"+pair[0]+\">\");\n\n friend.set(token[1]); // set word as each input keyword\n context.write(keyPair, friend); // create a pair <keyword, 1>\n }\n }", "private void initMleCluster() {\n\t\tpseudoTf = new double[documents.size()][];\n\t\tpseudoTermIndex = new int[documents.size()][];\n\t\tpseudoTermWeight = new double[documents.size()][];\n\t\t\n\t\tfor(int docIdx=0; docIdx<documents.size(); docIdx++) {\n\t\t\tcountOnePseudoDoc(docIdx);\n\t\t}\n\t}", "protected void startClusterer() {\r\n\t\tif (m_RunThread == null) {\r\n\t\t\tm_StartBut.setEnabled(false);\r\n\t\t\tm_timer.setEnabled(false);\r\n\t\t\tm_StopBut.setEnabled(true);\r\n\t\t\tm_ignoreBut.setEnabled(false);\r\n\t\t\tm_RunThread = new Thread() {\r\n\t\t\t\tInstances trainInst = null;\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tboolean errors = false;\r\n\t\t\t\t\tlong start,end;\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\t// Copy the current state of things\r\n\t\t\t\t\t\tm_Log.statusMessage(\"Setting up...\");\r\n\t\t\t\t\t\tInstances inst = new Instances(m_Instances);\r\n\t\t\t\t\t\tinst.setClassIndex(-1);\r\n\t\r\n\t\t\t\t\t\tint[] ignoredAtts = null;\r\n\t\t\t\t\t\ttrainInst = new Instances(inst);\r\n\t\r\n\t\t\t\t\t\tif (m_EnableClassesToClusters.isSelected()) {\r\n\t\t\t\t\t\t\ttrainInst.setClassIndex(m_ClassCombo.getSelectedIndex());\r\n\t\t\t\t\t\t\tinst.setClassIndex(m_ClassCombo.getSelectedIndex());\r\n\t\t\t\t\t\t\tif (inst.classAttribute().isNumeric()) {\r\n\t\t\t\t\t\t\t\tthrow new Exception(\"Class must be nominal for class based evaluation!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!m_ignoreKeyList.isSelectionEmpty()) {\r\n\t\t\t\t\t\t\ttrainInst = removeIgnoreCols(trainInst);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!m_ignoreKeyList.isSelectionEmpty()) {\r\n\t\t\t\t\t\t\tignoredAtts = m_ignoreKeyList.getSelectedIndices();\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (m_EnableClassesToClusters.isSelected()) {\r\n\t\t\t\t\t\t\t// add class to ignored list\r\n\t\t\t\t\t\t\tif (ignoredAtts == null) {\r\n\t\t\t\t\t\t\t\tignoredAtts = new int[1];\r\n\t\t\t\t\t\t\t\tignoredAtts[0] = m_ClassCombo.getSelectedIndex();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tint[] newIgnoredAtts = new int[ignoredAtts.length + 1];\r\n\t\t\t\t\t\t\t\tSystem.arraycopy(ignoredAtts, 0,\r\n\t\t\t\t\t\t\t\t\t\tnewIgnoredAtts, 0, ignoredAtts.length);\r\n\t\t\t\t\t\t\t\tnewIgnoredAtts[ignoredAtts.length] = m_ClassCombo\r\n\t\t\t\t\t\t\t\t\t\t.getSelectedIndex();\r\n\t\t\t\t\t\t\t\tignoredAtts = newIgnoredAtts;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tint clustering_amount = 1;\r\n\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\tclustering_amount = m_bracketingPanel.getNumberClusterings();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//add tasks\r\n\t\t\t\t\t\tfor (int i = 0; i < clustering_amount; i++) {\r\n\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskStarted();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor (int i = 0; i < clustering_amount ; i++) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSerializedObject so = new SerializedObject((SubspaceClusterer) m_ClustererEditor.getValue());\r\n\t\t\t\t\t\t\tSubspaceClusterer clusterer = (SubspaceClusterer) so.getObject();\r\n\t\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\t\tm_bracketingPanel.setBracketingParameter(clusterer, i);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tString name = (new SimpleDateFormat(\"HH:mm:ss - \")).format(new Date());\r\n\t\t\t\t\t\t\tString cname = clusterer.getClass().getName();\r\n\t\t\t\t\t\t\tif (cname.startsWith(\"weka.subspaceClusterer.\")) {\r\n\t\t\t\t\t\t\t\tname += cname.substring(\"weka.subspaceClusterer.\".length());\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tname += cname;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tString parameter_name = \"\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\t\tparameter_name+= m_bracketingPanel.getParameterString(clusterer,i);\r\n\t\t\t\t\t\t\t\tname+=parameter_name;\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\tString cmd = clusterer.getClass().getName();\r\n\t\t\t\t\t\t\tif (m_ClustererEditor.getValue() instanceof OptionHandler)\r\n\t\t\t\t\t\t\t\tcmd += \" \" + Utils.joinOptions(((OptionHandler)clusterer).getOptions());\r\n\r\n\t\t\t\t\t\t\t//add measure options to command line\r\n\t\t\t\t\t\t\tif(m_EnableEvaluation.isSelected()){\r\n\t\t\t\t\t\t\t\tArrayList<ClusterQualityMeasure> cmdMeasureList = m_evaluationPanel.getSelectedMeasures();\r\n\t\t\t\t\t\t\t\tif(cmdMeasureList.size() > 0) cmd+= \" -M \";\r\n\t\t\t\t\t\t\t\tfor (int c = 0; c < cmdMeasureList.size(); c++) {\r\n\t\t\t\t\t\t\t\t\tString c_name = cmdMeasureList.get(c).getClass().getName();\r\n\t\t\t\t\t\t\t\t\tif (c_name.startsWith(\"weka.clusterquality.\")) {\r\n\t\t\t\t\t\t\t\t\t\tcmd+= c_name.substring(\"weka.clusterquality.\".length());\r\n\t\t\t\t\t\t\t\t\t\tif(c < cmdMeasureList.size()-1) cmd+= \":\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Started \" + cname);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Command: \" + cmd);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Clustering: Started\");\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Build the model and output it.\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Clusterer running...\");\r\n\t\r\n\t\t\t\t\t\t\t\tStringBuffer outBuffer = new StringBuffer();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// remove the class attribute (if set) and build the clusterer\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tBuildSubspaceClustererThread clusterthread = new BuildSubspaceClustererThread(clusterer,removeClass(trainInst));\r\n\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\r\n\t\t\t\t\t\t\t\tclusterthread.start();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tint timer = Integer.parseInt(m_timer.getText());\r\n\t\t\t\t\t\t\t\tif(!m_EnableTimer.isSelected() || timer <= 0 || timer > 1000000000){\r\n\t\t\t\t\t\t\t\t\ttimer = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tclusterthread.join(timer*60*1000);\r\n\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\tif(clusterthread.isAlive()) {\r\n\t\t\t\t\t\t\t\t\tclusterthread.interrupt();\r\n\t\t\t\t\t\t\t\t\tclusterthread.stop();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Timeout after \"+timer+\" minutes\");\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tclusterthread.join();\r\n\t\t\t\t\t\t\t\tif(clusterthread.getException()!=null) {\r\n\t\t\t\t\t\t\t\t\tthrow clusterthread.getException();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\toutBuffer.append(getClusterInformation(clusterer,inst,end-start));\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Clustering: done\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//Evaluation stuff, catch Exceptions, most likely out of memory\r\n\t\t\t\t\t\t\t\tif(m_EnableEvaluation.isSelected()){\r\n\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\tif(inst.classIndex() >= 0){\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Evaluation running...\");\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Evaluation: Start\");\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tArrayList<ClusterQualityMeasure> measures = m_evaluationPanel.getSelectedMeasures();\r\n\t\t\t\t\t\t\t\t\t\t\tArrayList<Cluster> m_TrueClusters = m_evaluationPanel.getTrueClusters();\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t//Run evaluation\r\n\t\t\t\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t\tStringBuffer qualBuffer = SubspaceClusterEvaluation.evaluateClustersQuality(clusterer, inst, measures, m_TrueClusters, m_evaluationPanel.getTrueClusterFile());\r\n\t\t\t\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t\toutBuffer.append(qualBuffer);\r\n\t\t\t\t\t\t\t\t\t\t\toutBuffer.append(\"\\n\\nCalculating Evaluation took: \"+formatTimeString(end-start)+\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Evaluation: Finished\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Problem evaluating clustering (number of clusters: \"+clusterer.getSubspaceClustering().size()+\")\");\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}catch (OutOfMemoryError e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t//Visual stuff, catch Exceptions, most likely out of memory\r\n\t\t\t\t\t\t\t\tm_CurrentVis = new SubspaceVisualData();\r\n\t\t\t\t\t\t\t\tif (!isInterrupted() && m_EnableStoreVisual.isSelected()) {\r\n\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Calculating visualization...\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Calculate visualization: Start\");\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t//calculate visual stuff\r\n\t\t\t\t\t\t\t\t\t\tstart = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.calculateVisual((ArrayList<Cluster>)clusterer.getSubspaceClustering(), removeClass(trainInst));\r\n\t\t\t\t\t\t\t\t\t\tend = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\t\t\t//where is the name being used???\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.setName(name + \" (\" + inst.relationName()+ \")\");\r\n\t\t\t\t\t\t\t\t\t\tm_CurrentVis.setHistoryName(parameter_name);\r\n\t\t\t\t\t\t\t\t\t\toutBuffer.append(\"Calculating visualization took: \"+formatTimeString(end-start)+\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Calculate visualization: Finished\");\r\n\t\t\t\t\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Problem calculating visualization (number of clusters: \"+clusterer.getSubspaceClustering().size()+\")\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcatch(OutOfMemoryError e){\r\n\t\t\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t//put buffer into cluster so it can be safed with the cluster\r\n\t\t\t\t\t\t\t\tclusterer.setConsole(outBuffer);\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(\"Finished \" + cmd);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tm_History.addResult(name, outBuffer);\r\n\t\t\t\t\t\t\t\tm_History.setSingle(name);\r\n\t\t\t\t\t\t\t\tm_History.updateResult(name);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"Problem evaluating clusterer\");\r\n\t\t\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(OutOfMemoryError e){\r\n\t\t\t\t\t\t\t\tm_Log.logMessage(e.getMessage());\r\n\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\tFastVector vv = new FastVector();\r\n\t\t\t\t\t\t\t\tvv.addElement(clusterer);\r\n\t\t\t\t\t\t\t\tInstances trainHeader = new Instances(m_Instances, 0);\r\n\t\t\t\t\t\t\t\tvv.addElement(trainHeader);\r\n\t\t\t\t\t\t\t\tif (ignoredAtts != null)\r\n\t\t\t\t\t\t\t\t\tvv.addElement(ignoredAtts);\r\n\t\t\t\t\t\t\t\tvv.addElement(m_CurrentVis);\r\n\t\r\n\t\t\t\t\t\t\t\tm_History.addObject(name, vv);\r\n\t\t\t\t\t\t\t\tif (isInterrupted()) {\r\n\t\t\t\t\t\t\t\t\tm_Log.logMessage(\"Bracketing interrupted:\" + cname);\r\n\t\t\t\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskFinished();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\tm_Log.statusMessage(\"Problem setting up clusterer\");\r\n\t\t\t\t\t} catch (OutOfMemoryError ex) {\r\n\t\t\t\t\t\terrors = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Out of memory\");\r\n\t\t\t\t\t\tm_Log.logMessage(ex.getMessage());\r\n\t\t\t\t\t\tm_Log.statusMessage(\"See error log\");\r\n\t\t\t\t\t} \r\n\t\t\t\t\tfinally {\r\n\r\n\t\t\t\t\t\tm_RunThread = null;\r\n\t\t\t\t\t\tm_StartBut.setEnabled(true);\r\n\t\t\t\t\t\tm_StopBut.setEnabled(false);\r\n\t\t\t\t\t\tm_ignoreBut.setEnabled(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//kill all other tasks in the logger so the poor bird can stop running\r\n\t\t\t\t\t\t//belongs somewhere else, but doesnt work in finally after for-bracketing anymore \r\n\t\t\t\t\t\tint clustering_amount = 1;\r\n\t\t\t\t\t\tif(m_BracketingBut.isEnabled()){\r\n\t\t\t\t\t\t\tclustering_amount = m_bracketingPanel.getNumberClusterings();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (int j = 0; j < clustering_amount; j++) {\r\n\t\t\t\t\t\t\tif (m_Log instanceof TaskLogger) {\r\n\t\t\t\t\t\t\t\t((TaskLogger) m_Log).taskFinished();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(errors){ \r\n\t\t\t\t\t\t\tm_Log.statusMessage(\"Errors accured, see error logs\");\r\n\t\t\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t\t.showMessageDialog(SubspaceClustererPanel.this,\r\n\t\t\t\t\t\t\t\t\"Problems occured during clusterig, check error log for more details\",\r\n\t\t\t\t\t\t\t\t\"Evaluate clusterer\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{ \r\n\t\t\t\t\t\t\tm_Log.statusMessage(\"OK\");\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\tm_RunThread.setPriority(Thread.MIN_PRIORITY);\r\n\t\t\tm_RunThread.start();\r\n\t\t}\r\n\t}" ]
[ "0.64157575", "0.54003537", "0.53672785", "0.5344378", "0.5219351", "0.5048785", "0.50052124", "0.49190813", "0.48936212", "0.4887012", "0.48194063", "0.47574133", "0.47504547", "0.47137466", "0.4698104", "0.46837646", "0.46579012", "0.46453816", "0.46336818", "0.45895132", "0.45873177", "0.4570988", "0.45671415", "0.45359603", "0.44873595", "0.4481899", "0.44759116", "0.44698554", "0.44541776", "0.44494826", "0.4445154", "0.44291246", "0.44178993", "0.44146058", "0.441351", "0.44043416", "0.4404173", "0.4399872", "0.4390336", "0.43687958", "0.43670577", "0.43490222", "0.43467686", "0.4337961", "0.43106103", "0.43042186", "0.43036386", "0.42972577", "0.42884302", "0.4287369", "0.42773023", "0.42713803", "0.42569223", "0.4251128", "0.42438143", "0.42392406", "0.4236649", "0.42281786", "0.42139763", "0.4207119", "0.42035973", "0.42002952", "0.41985512", "0.41944504", "0.41788694", "0.41748723", "0.41689137", "0.41569838", "0.41536835", "0.41468745", "0.41467366", "0.41449356", "0.41436255", "0.41403115", "0.4128079", "0.41226357", "0.41221672", "0.41147894", "0.41146475", "0.41122565", "0.41064164", "0.41048598", "0.41017032", "0.4097805", "0.40916622", "0.40910733", "0.409009", "0.40828592", "0.40826365", "0.40775427", "0.4073114", "0.40726063", "0.4061305", "0.40601408", "0.4059272", "0.40508768", "0.40466693", "0.40423426", "0.40390617", "0.40386075" ]
0.46685806
16
Make it more obvious if we jump backwards
@Test public void pruningAssertAfterRollover() throws Exception { _persistit.getTimestampAllocator().bumpTimestamp(1000000); // Write records until we have enough journal Exchange ex = getExchange(TREE_NAME1); Transaction txn = _persistit.getTransaction(); txn.begin(); for (long i = 0, curSize = 0; curSize < JournalManager.ROLLOVER_THRESHOLD; i += 1000) { writeRecords(ex, i, 1000); curSize = _persistit.getJournalManager().getCurrentJournalSize(); } txn.commit(); txn.end(); _persistit.releaseExchange(ex); // Now write a few records that won't be pruned ex = getExchange(TREE_NAME2); txn.begin(); writeRecords(ex, 0, 10); txn.commit(); txn.end(); _persistit.releaseExchange(ex); /* * Two iterations needed: 1) Dirty pages from writes 2) Empty checkpoint * (baseAddress now equals curAddress - CP.OVERHEAD) */ for (int i = 0; i < 2; ++i) { _persistit.checkpoint(); _persistit.getJournalManager().copyBack(); } crashWithoutFlushAndRestoreProperties(); // Timestamp was now back in time, writing same records creates invalid // MVVs txn = _persistit.getTransaction(); ex = getExchange(TREE_NAME2); txn.begin(); writeRecords(ex, 0, 10); txn.commit(); txn.end(); // Pruning caused assert ex.clear().append(0); ex.prune(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "public boolean goBack() {\n if(index > 0) {\n index--;\n return true;\n } else {\n return false;\n }\n }", "@Override\n public void backward() {\n }", "@Override\n protected boolean canGoBack() {\n return false;\n }", "public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}", "public boolean stepDown() {\n yMaze++;\n printMyPosition();\n return true; // should return true if step was successful\n }", "public void backtrack() {\n advance();\n if (isGoal()) {\n if (print) {\n System.out.println(\"\\nGOAL!\");\n }\n winConfig = copyBoard();\n deadvance();\n }\n else {\n for (int i = 1; i < 10; i++) {\n board[currRow][currColumn] = i;\n if (print) {\n printThings(i);\n }\n if (isValid()) {\n backtrack();\n }\n }\n board[currRow][currColumn] = 0;\n deadvance();\n }\n }", "public void jumpBack() {\n this.instructionList = this.stack.pop();\n }", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}", "private static char askIfGoBack() {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (b)ack to go back: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }", "@Override\n public final void switchBack() {\n }", "public Stmt getBackJumpStmt() {\r\n\t\treturn backJump;\r\n\t}", "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "@Override\n public void goBack() {\n\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "boolean previousStep();", "public boolean stepUp() {\n yMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public void past(int back);", "public boolean goBack() {\n if (historyStack.size() > 0) {\n switchToScreen(historyStack.pop(), true, lastTransition != null ? lastTransition : TransitionAnimation.getTransition(TransitionAnimationType.RIGHT_TO_LEFT));\n return true;\n }\n return false;\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "public void endJump() {\n\t\tsetVy(Math.min(0, getVy()));\n\t}", "public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }", "public void stepBackward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we are back to the first frame\n\t\tif(frameIndex == 0){ frameIndex = frames.length-1; }\n\t\telse{ frameIndex--; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}", "public boolean hasBack() {\n if (index > 0) {\n return true;\n } else {\n return false;\n }\n }", "@Override\r\n\tpublic boolean canSeekBackward() {\n\t\treturn true;\r\n\t}", "public boolean isBackward()\n {\n return (state == AnimationState.BACKWARD);\n }", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "private void back(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex==0) return;//if at start of message\r\n --iIndex;//move back one character\r\n \r\n }", "@ScriptyCommand(name = \"dbg-back\", description =\n \"(dbg-back)\\n\" +\n \"Take an evaluation step back to the previous argument without showing sub expression details, inverse of dbg-stepover.\\n\" +\n \"See also: dbg-expr, dbg-stepover.\")\n @ScriptyRefArgList(ref = \"no arguments\")\n public boolean dbgBack(@ScriptyBindingParam(value = \"*output\", unboundException = true) PrintWriter writer)\n throws CommandException {\n return internalStep(StepType.BACKSTEP, writer);\n }", "public boolean jumpOccurred()\n\t{\n\t\treturn _bJumpOccurred;\n\t}", "void goToNext(boolean isCorrect);", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}", "@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}", "public String navigateBackward(String object, String data) {\n\n\t\ttry {\n\t\t\tdriver.navigate().back();\n\t\t} catch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getMessage();\n\n\t\t}\n\t\treturn Constants.KEYWORD_PASS + \" clicked on back button\";\n\t}", "@Override\n\tpublic boolean isBackable() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void keyBack() {\n\t\t\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}", "public void previous();", "public void back() throws JSONException {\n if(usePrevious || this.index <= 0) {\n throw new JSONException(\"Stepping back two steps is not supported\");\n }\n this.index -= 1;\n this.character -= 1;\n this.usePrevious = true;\n this.eof = false;\n }", "public boolean notJumping() {\n\t\treturn jumping = false;\n\t}", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "@Override\n public boolean cancelIfCannotGoBack() {\n return true;\n }", "public boolean isJumping() { return isJumping; }", "void jump() {\n if (myIsJumping == myNoJumpInt) {\n myIsJumping++;\n // switch the cowboy to use the jumping image\n // rather than the walking animation images:\n setFrameSequence(null);\n setFrame(0);\n }\n }", "public boolean isWalkingBack(GlobalObject object) {\r\n\t\tif(player.getX() < object.getX() && player.getY() >= object.getY() || player.getY() > object.getY())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public void back() {\n\t\tstate.back();\n\t}", "private void jump(){\n getField().pandaJumped(this);\n }", "public void navigate_back() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().back();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public boolean isJumping(){\r\n\t\tif(jumping){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected void assertBackToState() {\n\t\tassertTrue(recorder.recorded(EC.TLC_BACK_TO_STATE));\n\t\tfinal List<Object> loop = recorder.getRecords(EC.TLC_BACK_TO_STATE);\n\t\tassertTrue(loop.size() > 0);\n\t}", "public void grip(){\n\t\tthis.motor.backward();\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "@Override\r\n\tprotected String doBackward(List<Emotion> b) {\n\t\treturn null;\r\n\t}", "public boolean jumpMayBeChanged() {\n\t\treturn (subBlocks[1].jump != null || subBlocks[1].jumpMayBeChanged());\n\t}", "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "@Override\r\n\tpublic void afterNavigateBack(WebDriver arg0) {\n\t\tSystem.out.println(\"Message afterNavigateBack\");\r\n\t}", "public void stepForward() {\n\t\tposition = forwardPosition();\n\t}", "public void jump() {\n jumped = true;\n teleport = true;\n waste = true;\n }", "@Override\n public boolean step() {\n return false;\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public void autoStopBackward(boolean flag) throws JposException;", "public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "public void goBackOneTurn() {\n //Roll back turn.\n int previousTurn = gm.getTurn().getTurnNumber() - 1;\n gm.getTurn().setTurnNumberProperty(previousTurn);\n\n // This should handle having multiple players on the board\n int nextPlayerIndex = gm.getTurn().getTurnNumber() % gm.getPlayers().size();\n gm.getTurn().setActivePlayer(gm.getPlayers().get(nextPlayerIndex));\n }", "private boolean checkMovePrevious(PositionTracker tracker) {\n\t\t \n\t\t if(tracker.getExactRow() == 0) { //initiate if statement\n\t\t\t if(tracker.getExactColumn() == 0) //initiate if statement\n\t\t\t\t return false; //returns the value false\n\t\t }\n\t\t \n\t\t return true; //returns the boolean value true\n\t }", "public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }", "@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}", "public void jump() {\n\t\t// if (isBlock_down()) {\n\t\t// setJumpTTL(getMaxJumpTTL());\n\t\t// setBlock_down(false);\n\t\t// }\n\t}", "public void jump() {\n endSoftwareAnimations();\n }", "static void goback() \r\n\t {\n\t\t\t System.out.println(\"Do you want to conytinue Press - yes and for exit press - No\" );\r\n\t\t\t Scanner sc = new Scanner(System.in);\r\n\t\t\t n = sc.next();\r\n \t\t if(n.equalsIgnoreCase(\"yes\"))\r\n\t\t\t {\r\n\t\t\t\t MainMenu();\r\n\t\t\t }\r\n\t\t\t if(n.equalsIgnoreCase(\"No\"))\r\n\t\t\t {\r\n\t\t\t\t exit();\r\n\t\t\t }\r\n\t\t\t else \r\n\t\t\t {\r\n\t\t\t\t System.out.println(\"please enter a valid input 0 or 1 ! \");\r\n\t\t\t\t goback();\r\n\t\t\t }\r\n\t\t\r\n\t }", "@Override\n\tpublic int consequence(int diceThrow) {\n\t\tSystem.out.print(\"reaches cell \"+this.index+\" and jumps to \"+(this.newCell.getIndex()));\n\t\treturn this.newCell.getIndex();\n\t}", "public void goUp();", "public boolean isWalking(){\n if (jumpState < 2)\n return true;\n else\n return false;\n}", "private boolean zMoveStep() {\n\t\tSystem.out.println(\"moving \" + currentPosition + \" \" + targetPosition);\n\t\tif (currentPosition >= targetPosition)\n\t\t\treturn true;\n\t\tcurrentPosition += strideSize;\n\t\tstage.swipe(direction, strideSize);\n\t\treturn false;\n\t}", "private void onBack(McPlayerInterface player, GuiSessionInterface session, ClickGuiInterface gui)\r\n {\r\n session.setNewPage(this.prevPage);\r\n }", "public Integer checkUp()\r\n\t{\r\n\t\treturn this.Y - 1;\r\n\t}", "@Override\n\tpublic boolean moveDown() {\n\t\tboolean rs = super.moveDown();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "@Test\n public void blackOnBarGettingBack() {\n\n game.move(Location.R1, Location.R3);\n game.move(Location.R3, Location.R4);\n game.nextTurn();\n assertTrue(game.move(Location.R6, Location.R4));\n assertEquals(1, game.getCount(Location.B_BAR));\n assertEquals(Color.RED, game.getColor(Location.R4));\n\n assertTrue(game.move(Location.R6, Location.R5));\n game.nextTurn();\n assertFalse(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.B_BAR, Location.R3));\n assertTrue(game.move(Location.R1, Location.R5));\n }", "private void backTrack(String start, AdjVertex end, Vertex parent){\r\n\t\tif(parent.name.compareToIgnoreCase(start) == 0){ \r\n\t\t\t//if we have found our way back to the start, then we print the result\r\n\t\t\tif(pathStack.isEmpty()){\r\n\t\t\t\tSystem.out.println(start + \" -- \" + end.name);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.print(start + \" -- \" + end.name);\r\n\t\t\t\twhile(!pathStack.isEmpty()){\r\n\t\t\t\t\tSystem.out.print(\" -- \" + pathStack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we still have to find our way back to the first person,\r\n\t\t//we push the end name into the stack, \r\n\t\telse{ \r\n\t\t\tpathStack.push(end.name);\r\n\t\t\tconnector(start, parent.name);\r\n\t\t}\r\n\t}", "@Override\n public boolean canContinueWalking() {\n return true;\n }", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "public int jump() {\n if (Ylocation > 475) {\n Ylocation -= Ydir;\n }\n\n return Ylocation;\n }", "@Override\r\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\t\t\r\n\t}", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }" ]
[ "0.69566625", "0.67661566", "0.67614275", "0.67374957", "0.67190826", "0.6712632", "0.6581537", "0.6580277", "0.6531555", "0.6520168", "0.650795", "0.64914477", "0.6484096", "0.6475325", "0.6453414", "0.6452014", "0.6448812", "0.641027", "0.6363305", "0.63513494", "0.6340419", "0.6331704", "0.6317818", "0.6293914", "0.62863195", "0.62726694", "0.6222734", "0.62183005", "0.62067807", "0.6153095", "0.61303633", "0.6113043", "0.61035424", "0.61029387", "0.6102454", "0.61020887", "0.60980403", "0.6078054", "0.6071613", "0.6069713", "0.6049673", "0.60495174", "0.6040912", "0.6038099", "0.60371435", "0.6028517", "0.60234594", "0.60173035", "0.60114974", "0.6010474", "0.6000345", "0.599853", "0.5995052", "0.59871507", "0.5984876", "0.59686756", "0.59645325", "0.59639055", "0.5962162", "0.5957812", "0.59538496", "0.594988", "0.5943863", "0.5939231", "0.5936488", "0.59328336", "0.5922002", "0.5903933", "0.5903029", "0.58957696", "0.5877845", "0.5876892", "0.58654106", "0.5857752", "0.5856614", "0.5849934", "0.58453244", "0.58453244", "0.58453244", "0.58453244", "0.5844326", "0.58429724", "0.5821869", "0.58214563", "0.58032656", "0.5801237", "0.5798605", "0.5790961", "0.57896703", "0.57880527", "0.5786528", "0.57837456", "0.57822025", "0.5779782", "0.5779335", "0.5779143", "0.5778792", "0.577262", "0.57696134", "0.5766017", "0.5762551" ]
0.0
-1
Creates a KDTree with the specified geometry content. This uses a default partitioning strategy.
public KDGeometryContainer(final Geometry... content) { this(new SAHPartitionStrategey(), content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KDTree()\n\t{\n\t}", "private KDTree<BinaryClassificationTarget> buildKDTree() {\n\t\tswitch (kdType) {\n\t\tcase EUCLIDIAN:\n\t\t\treturn new SqrEuclid<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase WEIGHTEDEUCLIDIAN:\n\t\t\treturn new WeightedSqrEuclid<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase MANHATTAN:\n\t\t\treturn new Manhattan<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase WEIGHTEDMANHATTAN:\n\t\t\treturn new WeightedManhattan<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"entered an unrecognized kdType: \" + kdType);\n\t\t}\n\t}", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "KDNode(Datum[] datalist) throws Exception{\r\n\r\n\t\t\t/*\r\n\t\t\t * This method takes in an array of Datum and returns \r\n\t\t\t * the calling KDNode object as the root of a sub-tree containing \r\n\t\t\t * the above fields.\r\n\t\t\t */\r\n\r\n\t\t\t// ADD YOUR CODE BELOW HERE\t\t\t\r\n\t\t\t\r\n\t\t\tif(datalist.length == 1) {\r\n\t\t\t\t\r\n\t\t\t\tleaf = true;\r\n\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\tlowChild = null;\r\n\t\t\t\thighChild = null;\r\n\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\t}else {\r\n\t\r\n\t\t\t\tint dim = 0;\r\n\t\t\t\tint range = 0;\r\n\t\t\t\tint max = 0;\r\n\t\t\t\tint min = 0;\r\n\t\t\t\tint Max = 0;\r\n\t\t\t\tint Min = 0;\r\n\t\t\t\tfor(int i = 0; i < k; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tmax = datalist[0].x[i];\r\n\t\t\t\t\tmin = datalist[0].x[i];\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j = 0; j < datalist.length; j++) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(datalist[j].x[i] >= max) {\r\n\t\t\t\t\t\t\tmax = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(datalist[j].x[i] <= min) {\r\n\t\t\t\t\t\t\tmin = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(max - min >= range) {\r\n\t\t\t\t\t\trange = max - min;\r\n\t\t\t\t\t\tMax = max;\r\n\t\t\t\t\t\tMin = min;\r\n\t\t\t\t\t\tdim = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(range == 0) {\r\n\t\t\t\t\tleaf = true;\r\n\t\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\t\tlowChild = null;\r\n\t\t\t\t\thighChild = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t//if greatest range is zero, all points are duplicates\r\n\t\t\t\t\r\n\t\t\t\tsplitDim = dim;\r\n\t\t\t\tsplitValue = (double)(Max + Min) / 2.0;\t//get the split dim and value\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tArrayList<Datum> lList = new ArrayList<Datum>();\r\n\t\t\t\tint numL = 0;\r\n\t\t\t\tArrayList<Datum> hList = new ArrayList<Datum>();\r\n\t\t\t\tint numH = 0;\r\n\t\t\t\r\n\t\t\t\tfor(int i = 0; i < datalist.length; i ++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(datalist[i].x[splitDim] <= splitValue) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlList.add(datalist[i]);\r\n\t\t\t\t\t\t\tnumL ++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thList.add(datalist[i]);\r\n\t\t\t\t\t\tnumH ++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t//get the children list without duplicate but with null in the back\r\n\t\t\t\t\t//Don't check duplicates in children Nodes!!!\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlowChild = new KDNode( lList.toArray(new Datum[numL]) );\r\n\t\t\t\thighChild = new KDNode( hList.toArray(new Datum[numH]) );\t//create the children nodes\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// ADD YOUR CODE ABOVE HERE\r\n\r\n\t\t}", "public KdTree() {\n }", "public KdTree() \n\t {\n\t\t \n\t }", "public KDTree(ArrayList<Datum> datalist) throws Exception {\r\n\r\n\t\tDatum[] dataListArray = new Datum[ datalist.size() ]; \r\n\r\n\t\tif (datalist.size() == 0) {\r\n\t\t\tthrow new Exception(\"Trying to create a KD tree with no data\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tthis.k = datalist.get(0).x.length;\r\n\r\n\t\tint ct=0;\r\n\t\tfor (Datum d : datalist) {\r\n\t\t\tdataListArray[ct] = datalist.get(ct);\r\n\t\t\tct++;\r\n\t\t}\r\n\t\t\r\n\t// Construct a KDNode that is the root node of the KDTree.\r\n\r\n\t\trootNode = new KDNode(dataListArray);\r\n\t}", "public KdTree() \r\n\t{\r\n\t}", "public MockTopologyNode createManualTree() throws ServiceFactory.ServiceNotAvailableException {\n // get a new submitter to create a new tree\n final TopologyDataSubmissionService3.TopologySubmitter3 mysubmitter = mServiceFactory.getService\n (TopologyDataSubmissionService3.class).getTopologySubmitter();\n\n TopologyNode topnode = mysubmitter.createTopLevelNode(\"__top_of_tree__\", 0);\n MockTopologyNode node = (MockTopologyNode) topnode;\n\n MockTopologyNode node1 = createMockNode(node, \"HostDiscoveryData\", null, 0, 0, false, false);\n MockTopologyValue value1 = (MockTopologyValue) node1.createValue(\"name\");\n value1.setSampleValue(\"HostDiscoveryData\");\n value1.setIsIdentity(true);\n value1.setNodeFrequency(0);\n\n MockTopologyNode node2 = createMockNode(node1, \"host\", \"Host\", 0, 0, false, false);\n MockTopologyValue value2 = (MockTopologyValue) node2.createValue(\"name\");\n value2.setSampleValue(\"198.51.100.0\");\n value2.setIsIdentity(true);\n value2.setNodeFrequency(0);\n\n return node;\n}", "public KdTree() {\n size = 0;\n }", "public KdTree(final int depthThreshold, final int triangleThreshold) {\n root = null;\n this.depthThreshold = depthThreshold;\n this.triangleThreshold = triangleThreshold;\n }", "public KdTree()\n {\n root = null;\n size = 0;\n }", "public KdNode(final BoundingBox box, final int splitType) {\n this.box = Objects.requireNonNull(box);\n children = new KdNode[2];\n this.splitType = splitType;\n tri = null;\n crossingTriangles = new HashSet<>();\n }", "public KdTree() {\n root = null;\n n = 0;\n }", "public KdTree() {\n root = null;\n }", "public KmlGeometryFeature(){\r\n }", "public KdTree() {\n this.root = null;\n this.size = 0;\n }", "public SegmentTree() {}", "public TDTree(TriangleShape root,int leafCapacity,StorageManager sm,JavaSparkContext sparkContext) {\n super(root,leafCapacity);\n triangleEncoder = new TriangleEncoder((TriangleShape)this.baseTriangle);\n storageManager=sm;\n leafInfos = new HashMap<>();\n\n emptyNodes = new ArrayList<String>();\n emptyNodes.add(\"1\");\n sparkRDD=null;\n constructedRDD= new AtomicBoolean(false);\n this.sparkContext=sparkContext;\n }", "public LeanTextGeometry() {}", "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }", "public C setKDTreeType(KDType type) {\n\t\tthis.kdType = type;\n\t\treturn model;\n\t}", "public static void main(String[] args) {\n KdTree tree = new KdTree();\n String filename = args[0];\n In in = new In(filename);\n while (!in.isEmpty()) {\n double x = in.readDouble();\n double y = in.readDouble();\n Point2D p = new Point2D(x, y);\n tree.insert(p);\n }\n tree.draw();\n // tree.info();\n // RectHV rect = new RectHV(0.793893, 0.345492, 1.0, 0.654508);\n // rect.draw();\n // Point2D point = new Point2D(0.5, 0.5);\n // point.draw();\n // StdDraw.show();\n // StdDraw.pause(40);\n // StdDraw.text(0.5, 0.5, \"ksdjlfjasdlfkjsadkflasdjfdaslkjfas\");\n // StdDraw.show();\n // while (true) {\n // System.out.println(StdDraw.mouseX());\n // StdDraw.show();\n // }\n // // Point2D point = new Point2D(0.5, 0.5);\n // // Point2D point2 = new Point2D(0.25, 0.25);\n // // Point2D point3 = new Point2D(0.75, 0.75);\n // // RectHV rect = new RectHV(0.0, 0.0, 0.3, 0.3);\n // // RectHV rect2 = new RectHV(0.0, 0.0, 0.3, 0.3);\n // tree.insert(new Point2D(0.5, 0.5));\n // tree.insert(new Point2D(0.0, 0.0));\n // tree.insert(new Point2D(0.75, 1.0));\n // tree.insert(new Point2D(0.75, 0.0));\n // tree.insert(new Point2D(1.0, 1.0));\n // tree.insert(new Point2D(0.25, 1.0));\n // tree.insert(new Point2D(0.75, 0.75));\n // tree.insert(new Point2D(1.0, 0.5));\n // tree.insert(new Point2D(1.0, 0.0));\n // tree.insert(new Point2D(1.0, 0.75));\n // // tree.insert(new Point2D(0.375, 1.0));\n // // Point2D point = new Point2D(0.375, 1.0);\n // // System.out.println(tree.get(point));\n // // A 0.5 0.5\n // // B 0.0 0.0\n // // C 0.75 1.0\n // // D 0.75 0.0\n // // E 1.0 1.0\n // // F 0.25 1.0\n // // G 0.75 0.75\n // // H 1.0 0.5\n // // I 1.0 0.0\n // // J 1.0 0.75\n // // System.out.println(tree.isEmpty());\n // // tree.insert(point);\n // // tree.insert(point2);\n // // tree.insert(point3);\n // // tree.insert(point);\n // // tree.insert(point);\n // // tree.insert(point);\n // // System.out.println(tree.isEmpty());\n // System.out.println(tree.size());\n // // System.out.println(tree.get(new Point2D(0.375, 1.0)));\n // System.out.println(tree.contains(new Point2D(1.0, 0.0)));\n // // System.out.println(tree.contains(new Point2D(0.5, 0.5)));\n // // tree.draw();\n // // for (Point2D points : tree.range(rect)) System.out.println(points);\n // // System.out.println();\n // // for (Point2D points : tree.range(rect2)) System.out.println(points);\n }", "private TreeNode createTree() {\n // Map<String, String> map = new HashMap<>();\n // map.put(\"dd\", \"qq\");\n // 叶子节点\n TreeNode G = new TreeNode(\"G\");\n TreeNode D = new TreeNode(\"D\");\n TreeNode E = new TreeNode(\"E\", G, null);\n TreeNode B = new TreeNode(\"B\", D, E);\n TreeNode H = new TreeNode(\"H\");\n TreeNode I = new TreeNode(\"I\");\n TreeNode F = new TreeNode(\"F\", H, I);\n TreeNode C = new TreeNode(\"C\", null, F);\n // 构造根节点\n TreeNode root = new TreeNode(\"A\", B, C);\n return root;\n }", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "Geometry getGeometry();", "public static void main(String[] args) \n\t {\n\t\t KdTree kt = new KdTree();\n\t\t Point2D p = new Point2D (0.406360,0.678100);\n\t\t Point2D q = new Point2D(0.740024,0.021714);\n\t\t kt.insert(p);\n\t\t kt.insert(q);\n\t\t p = new Point2D(0.010189,0.742363);\n\t\t kt.insert(p);\n\t\t p = new Point2D(0.147733,0.203388);\n\t\t kt.insert(p);\n\t\t p = new Point2D(0.537098,0.436150);\n\t\t kt.insert(p);\n\t\t Point2D pq = new Point2D(0.37,0.23);\n\t\t kt.draw();\n\t\t Point2D pqr = kt.nearest(pq);\n\t\t pqr.draw();\n\t\t System.out.println(\" x coordinate \"+pqr.x()+ \" y \"+pqr.y()); \n\t }", "@Override\n\tpublic void setGeometry(String geometry) {\n\t\t\n\t}", "private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}", "public static RootNode buildTree() {\n\t\t//1\n\t\tfinal RootNode root = new RootNode();\n\t\t\n\t\t//2\n\t\tEdgeNode a = attachEdgenode(root, \"a\");\n\t\tEdgeNode daa = attachEdgenode(root, \"daa\");\n\t\t\n\t\t//3\n\t\tExplicitNode e = Builder.buildExplicit();\n\t\te.setPreviousNode(a);\n\t\ta.addChildNode(e);\n\t\t\n\t\tattachLeafNode(daa, \"2\");\n\t\t\n\t\t//4\n\t\tEdgeNode a_e = attachEdgenode(e, \"a\");\n\t\tEdgeNode daa_e = attachEdgenode(e, \"daa\");\t\t\n\t\t\n\t\t//5\n\t\tattachLeafNode(a_e, \"3\");\n\t\tattachLeafNode(daa_e, \"1\");\n\t\treturn root;\n\t}", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "private void buildTree(int nodeNum, AABB nodeBounds,\n ArrayList<AABB> allPrimBounds,\n IntArray primNums, int nPrims, int depth,\n int badRefines) {\n if (nPrims <= maxPrims || depth == 0) {\n if ((nPrims > 16) && (depth == 0)) {\n System.out.println(\"reached max. KdTree depth with \" + nPrims + \n \" primitives\");\n }\n \n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Split - Position bestimmen */\n \n int bestAxis = -1, bestOffset = -1;\n float bestCost = Float.POSITIVE_INFINITY;\n float oldCost = isectCost * (float)nPrims;\n Vector d = nodeBounds.max.sub(nodeBounds.min);\n float totalSA = (2.f * (d.x*d.y + d.x*d.z + d.y*d.z));\n float invTotalSA = 1.f / totalSA;\n \n /* Achse wählen */\n int axis = d.dominantAxis();\n int retries = 0;\n boolean retry = false;\n ArrayList<BoundEdge> edges = null;\n \n// final int splitCount = edges[axis].length;\n \n do {\n edges = mkEdges(allPrimBounds, primNums, axis);\n Collections.sort(edges);\n final int splitCount = edges.size();\n \n// java.util.Arrays.sort(edges[axis], 0, splitCount);\n \n /* beste Split - Position für diese Achse finden */\n int nBelow = 0, nAbove = nPrims;\n \n for (int i = 0; i < splitCount; ++i) {\n if (edges.get(i).type == EdgeType.END) --nAbove;\n float edget = edges.get(i).t;\n \n if (edget > nodeBounds.min.get(axis) &&\n edget < nodeBounds.max.get(axis)) {\n // Compute cost for split at _i_th edge\n int otherAxis[][] = { {1,2}, {0,2}, {0,1} };\n int otherAxis0 = otherAxis[axis][0];\n int otherAxis1 = otherAxis[axis][1];\n \n float belowSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (edget - nodeBounds.min.get(axis)) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float aboveSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (nodeBounds.max.get(axis) - edget) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float pBelow = belowSA * invTotalSA;\n float pAbove = aboveSA * invTotalSA;\n \n float eb = (nAbove == 0 || nBelow == 0) ? emptyBonus : 0.f;\n float cost = traversalCost + isectCost * (1.f - eb) *\n (pBelow * nBelow + pAbove * nAbove);\n \n if (cost < bestCost) {\n /* neuer bester gefunden */\n bestCost = cost;\n bestAxis = axis;\n bestOffset = i;\n }\n }\n \n if (edges.get(i).type == EdgeType.START) ++nBelow;\n }\n \n if (!(nBelow == nPrims && nAbove == 0))\n throw new IllegalStateException(\"hmm\");\n \n retry = ((bestAxis == -1) && (retries < 2));\n \n if (retry) {\n ++retries;\n axis = (axis+1) % 3;\n }\n \n } while (retry);\n \n if (bestCost > oldCost) ++badRefines;\n if ((bestCost > 4.f * oldCost && nPrims < 16) ||\n bestAxis == -1 || badRefines == 3) {\n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n if (nPrims > 16)\n System.out.println(\"aborting KdTree build recursion (bc=\" +\n bestCost + \", oc=\" + oldCost + \", #prims=\" + \n nPrims + \", br=\" + badRefines + \")\");\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Primitive nach oben / unten sortieren */\n int n0 = 0, n1 = 0;\n \n final ArrayList<Integer> prims0Tmp = new ArrayList<Integer>();\n final ArrayList<Integer> prims1Tmp = new ArrayList<Integer>();\n \n for (int i = 0; i < bestOffset; ++i) {\n if (edges.get(i).type == EdgeType.START) {\n prims0Tmp.add(edges.get(n0++).primNum);\n// prims0.set(n0++, edges[bestAxis][i].primNum);\n }\n }\n \n for (int i = bestOffset + 1; i < edges.size(); ++i) {\n if (edges.get(i).type == EdgeType.END) {\n prims1Tmp.add(edges.get(n1++).primNum);\n// prims1.set(n1++, edges[bestAxis][i].primNum);\n }\n }\n \n /* rekursiver Abstieg */\n float tsplit = edges.get(bestOffset).t;\n \n nodesW.add(makeInterior(bestAxis, tsplit));\n \n AABB bounds[] = nodeBounds.split(tsplit, bestAxis);\n \n final IntArray prims0 = new IntArray(prims0Tmp.size());\n for (int i=0; i < prims0Tmp.size(); i++) {\n prims0.set(i, prims0Tmp.get(i));\n }\n \n final IntArray prims1 = new IntArray(prims1Tmp.size());\n for (int i=0; i < prims1Tmp.size(); i++) {\n prims1.set(i, prims1Tmp.get(i));\n }\n \n buildTree(nodeNum+1, bounds[0], allPrimBounds,\n prims0, n0, depth-1, badRefines);\n \n nodesW.get(nodeNum).setAboveChild(nodesW.size());\n \n buildTree(nodesW.size(), bounds[1], allPrimBounds,\n prims1, n1, depth-1, badRefines);\n }", "public Kdtree(List<Node> nodes) {\n //creating defensive copy\n nodesList = new ArrayList<>(nodes);\n root = this.buildTree(nodes, 0);\n }", "public static Node constructTree(int[] preorder, int[] isLeaf)\r\n {\r\n // pIndex stores index of next unprocessed key in preorder sequence\r\n // start with the root node (at 0'th index)\r\n // Using Atomicint as Integer is passed by value in Java\r\n AtomicInteger pIndex = new AtomicInteger(0);\r\n return construct(preorder, isLeaf, pIndex);\r\n }", "protected ClassifierTree getNewTree(Instances data) throws Exception {\n\n myC45PruneableClassifierTree newTree =\n new myC45PruneableClassifierTree(m_toSelectModel, m_pruneTheTree, m_CF,\n m_subtreeRaising, m_cleanup);\n newTree.buildTree((Instances) data, m_subtreeRaising || !m_cleanup);\n\n return newTree;\n }", "public ThreadedTreeNode createThreadedBinaryTree()\n\t{\n\t\tThreadedTreeNode head=new ThreadedTreeNode();\n\t\tThreadedTreeNode a=new ThreadedTreeNode(80);\n\t\tThreadedTreeNode b=new ThreadedTreeNode(70);\n\t\tThreadedTreeNode c=new ThreadedTreeNode(90);\n\t\tThreadedTreeNode d=new ThreadedTreeNode(65);\n\t\tThreadedTreeNode e=new ThreadedTreeNode(75);\n\t\tThreadedTreeNode f=new ThreadedTreeNode(95);\n\t\tThreadedTreeNode g=new ThreadedTreeNode(85);\n\t\thead.left=a;\n\t\thead.right=head;\n\t\t\n\t\ta.left=b;\n\t\ta.right=c;\n\t\tb.left=d;\n\t\tb.right=e;\n\t\tc.left=g;\n\t\tc.right=f;\n\t\t//use empty links as threads\n\t\td.right=b;\n\t\td.rthread=1;\n\t\te.right=a;\n\t\te.rthread=1;\n\t\tg.right=c;\n\t\tg.rthread=1;\n\t\t\t\t\n\t\treturn head;\n\t\t\n\t}", "public BinTree induceTree(int[] partition, int[] features) {\r\n\t\t// if the partition is empty, we can not return a tree\r\n\t\tif (partition.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// check if all entries in partition belong to the same class. If so,\r\n\t\t// return node, labeled with class value\r\n\t\t// you may want to check if pruning is applicable here (and then just\r\n\t\t// return the majority class).\r\n\t\tint[] classCnt = new int[classes.length];\r\n\t\tString sameValue = null;\r\n\t\tboolean sameClass = true;\r\n\t\tfor (int p = 0; p < partition.length; p++) {\r\n\t\t\tString targetValue = output[partition[p]];\r\n\t\t\tfor (int n = 0; n < classes.length; n++) {\r\n\t\t\t\tif (targetValue.equals(classes[n])) {\r\n\t\t\t\t\tclassCnt[n]++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (p == 0)\r\n\t\t\t\tsameValue = targetValue;\r\n\t\t\telse {\r\n\t\t\t\tif (!sameValue.equalsIgnoreCase(targetValue)) {\r\n\t\t\t\t\tsameClass = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (sameClass) {\r\n\t\t\treturn new BinTree(sameValue);\r\n\t\t} else {\r\n\t\t\tint max = 0;\r\n\t\t\tfor (int n = 1; n < classes.length; n++)\r\n\t\t\t\tif (classCnt[max] < classCnt[n])\r\n\t\t\t\t\tmax = n;\r\n\t\t\tif ((double) classCnt[max] / (double) partition.length > 0.50\r\n\t\t\t\t\t|| partition.length < 5) { // if more than 50% of samples\r\n\t\t\t\t\t\t\t\t\t\t\t\t// in partition are of the same\r\n\t\t\t\t\t\t\t\t\t\t\t\t// class OR fewer than 5 samples\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\treturn new BinTree(classes[max]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if no features are available, we can not return a tree\r\n\t\tif (features.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t// class values are not equal so we select a particular feature to split\r\n\t\t// the partition\r\n\t\tint selectedFeature = selectFeature(partition, features);\r\n\r\n\t\t// create new partition of samples\r\n\t\t// use only corresponding subset of full partition\r\n\t\tint[] partTrue = matches(partition, selectedFeature, true);\r\n\t\tint[] partFalse = matches(partition, selectedFeature, false);\r\n\t\t// remove the feature from the new set (to be sent to subtrees)\r\n\t\tint[] nextFeatures = new int[features.length - 1];\r\n\t\tint cnt = 0;\r\n\t\tfor (int f = 0; f < features.length; f++) {\r\n\t\t\tif (features[f] != selectedFeature)\r\n\t\t\t\tnextFeatures[cnt++] = features[f];\r\n\t\t}\r\n\t\t// construct the subtrees using the new partitions and reduced set of\r\n\t\t// features\r\n\t\tBinTree branchTrue = induceTree(partTrue, nextFeatures);\r\n\t\tBinTree branchFalse = induceTree(partFalse, nextFeatures);\r\n\r\n\t\t// if either of the subtrees failed, we have confronted a problem, use\r\n\t\t// the most likely class value of the current partition\r\n\t\tBinTree defaultTree = null;\r\n\t\tif (branchTrue == null || branchFalse == null) {\r\n\t\t\t// indicate a majority vote\r\n\t\t\tint[] freq = new int[classes.length];\r\n\t\t\tint most = 0;\r\n\t\t\tfor (int c = 0; c < classes.length; c++) {\r\n\t\t\t\tint[] pos = matches(partition, classes[c]);\r\n\t\t\t\tfreq[c] = pos.length;\r\n\t\t\t\tif (freq[c] >= freq[most])\r\n\t\t\t\t\tmost = c;\r\n\t\t\t}\r\n\t\t\t// the majority class value can replace any null trees...\r\n\t\t\tdefaultTree = new BinTree(classes[most]);\r\n\t\t\tif (branchTrue == null && branchFalse == null)\r\n\t\t\t\treturn defaultTree;\r\n\t\t\telse\r\n\t\t\t\t// return the unlabeled node with subtrees attached\r\n\t\t\t\treturn new BinTree(labelFeature(selectedFeature),\r\n\t\t\t\t\t\t(branchTrue == null ? defaultTree : branchTrue),\r\n\t\t\t\t\t\t(branchFalse == null ? defaultTree : branchFalse));\r\n\t\t} else { // if both subtrees were successfully created we can either\r\n\t\t\tif (branchTrue.classValue != null && branchFalse.classValue != null) {\r\n\t\t\t\tif (branchTrue.classValue.equals(branchFalse.classValue)) {\r\n\t\t\t\t\t// return the the current node with the classlabel common to\r\n\t\t\t\t\t// both subtrees, or\r\n\t\t\t\t\treturn new BinTree(branchTrue.classValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// return the unlabeled node with subtrees attached\r\n\t\t\treturn new BinTree(labelFeature(selectedFeature), branchTrue,\r\n\t\t\t\t\tbranchFalse);\r\n\t\t}\r\n\t}", "public static AbstractSqlGeometryConstraint create(final String geometryIntersection) {\n AbstractSqlGeometryConstraint result;\n if (\"OVERLAPS\".equals(geometryIntersection)) {\n result = new OverlapsModeIntersection();\n } else if (\"CENTER\".equals(geometryIntersection)) {\n result = new CenterModeIntersection();\n } else {\n throw new IllegalArgumentException(\"geometryMode \" + geometryIntersection + \" is unknown or not supported\");\n }\n return result;\n }", "@Override\n\tpublic AbstractGeometryData createGeometries(float recX01, float recY01, float recX02, float recY02, double seed) {\n\t\tfloat gridRecLeft = ceilGrid(((recX01 < recX02) ? recX01 : recX02)) - 1;\n\t\tfloat gridRecRight = floorGrid(((recX01 > recX02) ? recX01 : recX02)) + 1;\n\t\tfloat gridRecBottom = ceilGrid((recY01 < recY02) ? recY01 : recY02) - 1;\n\t\tfloat gridRecTop = floorGrid((recY01 > recY02) ? recY01 : recY02) + 1;\n\n\t\tint gridPointCountX = (int) (Math.abs(gridRecRight - gridRecLeft)) + 1;\n\t\tint gridPointCountY = (int) (Math.abs(gridRecTop - gridRecBottom)) + 1;\n\n\t\tList<Float> pointsList = new ArrayList<Float>();\n\n\t\tfor (int gridOffsetX = 0; gridOffsetX < gridPointCountX; gridOffsetX++) {\n\t\t\tfor (int gridOffsetY = 0; gridOffsetY < gridPointCountY; gridOffsetY++) {\n\n\t\t\t\tfloat gridX = gridRecLeft + gridOffsetX;\n\t\t\t\tfloat gridY = gridRecBottom + gridOffsetY;\n\n\t\t\t\tfloat x = randomizePosition(gridX, gridY, seed) + (c.gridSize * gridX);\n\t\t\t\tfloat y = randomizePosition(-gridX, -gridY, seed) + (c.gridSize * gridY);\n\n\t\t\t\tif (MathE.isPointInRect(x, y, recX01, recY01, recX02, recY02)) {\n\t\t\t\t\tpointsList.add(x);\n\t\t\t\t\tpointsList.add(y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfloat[] array = new float[pointsList.size()];\n\t\tfor(int i = 0; i < pointsList.size(); i++) array[i] = pointsList.get(i);\n\t\treturn new PointList(config.id, seed, array);\n\t}", "private void constructTree(List<String> signatures) {\r\n // If no signatures present throw exception\r\n if(signatures.size() == 0){\r\n throw new IllegalArgumentException(\"Must provide a transaction signature to construct Merkle Tree\");\r\n }\r\n\r\n // If only one transaction, return as root node\r\n if(signatures.size() == 1){\r\n root = new Node(Utility.SHA512(signatures.get(0)));\r\n }\r\n\r\n List<Node> parents = constructBase(signatures);\r\n root = constructInternal(parents);\r\n }", "@Override\n\tpublic String getHierarchicalGeometryQuery() {\n\t\treturn \"\";\n\t}", "public abstract Geometry computeGeometry();", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "protected Node createSceneGraph(Entity entity) {\n String name = cell.getCellID().toString();\n\n /* Create the new mesh for the shape */\n TriMesh mesh = new Box(name, new Vector3f(), 0.5f, 0.5f, 0.5f);\n\n /* Create the scene graph object and set its wireframe state */\n node = new Node();\n node.attachChild(mesh);\n node.setModelBound(new BoundingSphere());\n node.updateModelBound();\n node.setName(\"Cell_\"+cell.getCellID()+\":\"+cell.getName());\n\n return node;\n }", "protected NodeFigure createNodePlate() {\r\n\t\tDefaultSizeNodeFigure result = new DefaultSizeNodeFigure(12, 12);\r\n\t\treturn result;\r\n\t}", "public BasicKPartiteGraph(String name, int K) {\n\t\tsuper(name);\n\n\t\tthis.K = K;\n\t\tpartitionMap = new HashMap<NodeType,PartitionType>();\n\t}", "public static void main(String[] args) throws Exception {\n int B = 4096; //bytes max por pagina\n int M = 200; //cantidad de rectangulos tal que el nodo no pese mas que B\n\n int maxCord = 500000;\n int maxDelta = 100;\n\n Random rnd = new Random();\n\n int m = (M * 40) / 100; // m = 40% M\n\n int left = rnd.nextInt(maxCord);\n int bottom = rnd.nextInt(maxCord);\n int deltaX = rnd.nextInt(maxDelta);\n int deltaY = rnd.nextInt(maxDelta);\n\n Rectangle r = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n DiskController diskController = new DiskController(M);\n long address = diskController.memoryAssigner();\n Node tree = new Root(m, M, r, diskController, address);\n\n diskController.saveNode(tree);\n long rootSize =diskController.getNodeSize(address);\n System.out.println(\"Tamaño de raiz : \" + rootSize + \" bytes\");\n\n int n=0;\n while (diskController.getNodeSize(address) < B){\n if(n==157) { break;}\n n++;\n Rectangle rn;\n left = rnd.nextInt(maxCord);\n bottom = rnd.nextInt(maxCord);\n deltaX = rnd.nextInt(maxDelta);\n deltaY = rnd.nextInt(maxDelta);\n rn = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n tree.insert(rn, new LinearSplit());\n System.out.println(\"Rectangulos insertados : \" + n);\n }\n float nodeCoverage = diskController.nodeOcupation();\n System.out.println(\"Coverage : \"+nodeCoverage);\n System.out.println(\"Tamaño de raiz llena : \" + diskController.getNodeSize(address) + \" bytes, con \"+n+\" nodos insertados. Con raiz vacía de \"+rootSize+\" bytes\");\n //Tamaño de raiz llena : 4089 bytes, con 157 nodos insertados. Con raiz vacía de 478 bytes\n\n }", "public T caseGeometry(Geometry object) {\r\n\t\treturn null;\r\n\t}", "public TrieTree()\n {\n prefixes = 0;\n children = new TreeMap<>();\n childrenAdded = new ArrayList<>();\n }", "public static GraphNode createGeom( Node dataNode ) {\r\n\t\tString type = dataNode.getAttributes().getNamedItem(\"type\").getNodeValue();\r\n\t\tString name = dataNode.getAttributes().getNamedItem(\"name\").getNodeValue();\r\n\t\tTuple3d t;\r\n\t\tString stacks; \r\n\t\tString slices;\r\n\t\t\r\n\t\tif(type.equals(\"wireCube\" ) || type.equals(\"wireSphere\") || type.equals( \"solidCube\" ) || type.equals(\"solidSphere\")\r\n\t\t\t\t|| type.equals(\"wireDodec\") || type.equals(\"solidDodec\") || type.equals(\"wireTetra\") || type.equals(\"solidTetra\")\r\n\t\t\t\t|| type.equals(\"solidCone\") || type.equals(\"wireCone\")){\r\n\t\t\t\r\n\t\t\tGeometry geom = new Geometry(name, type);\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"position\")) != null ) geom.setPosition( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"scale\")) != null ) geom.setScale( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"color\")) != null ) geom.setColor( t );\r\n\t\t\tif ( (t=getTuple3dAttr(dataNode,\"fixedRotation\")) != null ) geom.setFixedRotation( t );\r\n\t\t\t\r\n\t\t\tif(dataNode.getAttributes().getNamedItem(\"wink\") != null) geom.setWink();\r\n\t\t\t\r\n\t\t\tif ( type.equals(\"wireCube\" ) || type.equals(\"wireSphere\") || type.equals(\"solidCone\") || type.equals(\"wireCone\")) {\r\n\t\t\t\tif ( (dataNode.getAttributes().getNamedItem(\"stacks\")) != null) {\r\n\t\t\t\t\tgeom.setStacks( Integer.parseInt(dataNode.getAttributes().getNamedItem(\"stacks\").getNodeValue()) );\r\n\t\t\t\t}\r\n\t\t\t\tif ( (dataNode.getAttributes().getNamedItem(\"slices\")) != null) {\r\n\t\t\t\t\tgeom.setSlices( Integer.parseInt(dataNode.getAttributes().getNamedItem(\"slices\").getNodeValue()) );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn geom;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\t\t\r\n\t\t\r\n\t}", "public JdbTree() {\r\n this(new Object [] {});\r\n }", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "private void populate_tree(KDTree kdtree, ArrayList<Point> pointSet) {\n\t\tfor (Point p : pointSet) {\n\t\t\t\n\t\t\tArrayList<Double> coordinates = p.getCoordinates();\n\n\t\t\tdouble[] key = new double[coordinates.size()];\n\n\t\t\tfor (int i = 0; i < coordinates.size(); i++) {\n\t\t\t\tkey[i] = coordinates.get(i);\n\t\t\t}\n\n\t\t\tkdtree.insert(key, p);\n\t\t}\n\n\t}", "protected PointRelation(GeomE geometry) {\n this.geometry = geometry;\n }", "@JsonCreator\n public WithinPredicate(@JsonProperty(\"geometry\") String geometry) {\n Objects.requireNonNull(geometry, \"<geometry> may not be null\");\n try {\n // test if it is a valid WKT\n SearchTypeValidator.validate(OccurrenceSearchParameter.GEOMETRY, geometry);\n } catch (IllegalArgumentException e) {\n // Log invalid strings, but continue - the geometry parser has changed over time, and some once-valid strings\n // are no longer considered valid. See https://github.com/gbif/gbif-api/issues/48.\n LOG.warn(\"Invalid geometry string {}: {}\", geometry, e.getMessage());\n }\n this.geometry = geometry;\n }", "private Node makeTree(Node currentNode, DataNode dataNode,\r\n\t\t\tint featureSubsetSize, int height) {\n\r\n\t\tif (dataNode.labels.size() < this.traineeDataSize / 25 || height > 7) {\r\n\t\t\treturn new Node(majority(dataNode));\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tEntropyCalculation e1 = new EntropyCalculation();\r\n\r\n\t\t\tNode n = e1.maxGainedElement(dataNode.features, dataNode.labels, featureSubsetSize); //new\r\n\r\n\r\n\t\t\tif(e1.zeroEntropy){\r\n\r\n\t\t\t\tcurrentNode = new Node(dataNode.labels.get(0));\r\n\r\n\t\t\t\t/*currentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.labels.get(0);*/\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\r\n\t\t\t\tcurrentNode = new Node();\r\n\r\n\t\t\t\tcurrentNode.featureIndexColumn = n.featureIndexColumn;\r\n\t\t\t\tcurrentNode.featureIndexRow = n.featureIndexRow;\r\n\r\n\t\t\t\tcurrentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.features.get(currentNode.featureIndexRow).get(currentNode.featureIndexColumn);\r\n\r\n\t\t\t\tcurrentNode.leftChild = new Node();\r\n\t\t\t\tcurrentNode.rightChild = new Node();\r\n\r\n\t\t\t\tDataNode leftNode = new DataNode();\r\n\t\t\t\tDataNode rightNode = new DataNode();\r\n\r\n\t\t\t\tfor (int i = 0; i < dataNode.features.size(); i++) {\r\n\r\n\t\t\t\t\tif(currentNode.nodeValue >= dataNode.features.get(i).get(currentNode.featureIndexColumn)) {\r\n\r\n\t\t\t\t\t\tleftNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\tleftNode.labels.add(dataNode.labels.get(i));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\trightNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\trightNode.labels.add(dataNode.labels.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif((leftNode.labels.isEmpty() || rightNode.labels.isEmpty()) && height == 0){\r\n\t\t\t\t\tSystem.out.println(\"Ghapla\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentNode.leftChild = makeTree(currentNode.leftChild, leftNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\tcurrentNode.rightChild = makeTree(currentNode.rightChild, rightNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public KdTreeST() {\n rootVertical = true;\n inftyBbox = new RectHV(Double.NEGATIVE_INFINITY,\n Double.NEGATIVE_INFINITY,\n Double.POSITIVE_INFINITY,\n Double.POSITIVE_INFINITY);\n }", "public BinarySearchTree() {}", "public MultiShape3D( Geometry geometry )\n {\n this( geometry, (Appearance)null );\n }", "public Node createGrid() {\n\t\tGroup gridGroup = new Group();\n\t\tgridGroup.getChildren().addAll(buildXYPlane());\n\t\t/*\n\t\t * XXX extend the grid\n\t\t * \n\t\t * here it would be possible to extend the grid, e.g. with a graph\n\t\t * or another plane with a grid (XZ, YZ, ...).\n\t\t * \n\t\t * it would look like this:\n\t\t * gridGroup.getChildren().addAll(buildGraph());\n\t\t */\n\t\treturn gridGroup;\n\t}", "public AdaptiveTreeBuilder(NDataSegment dataSegment, Collection<LayoutEntity> layouts) {\n\n Preconditions.checkNotNull(dataSegment, \"Data segment shouldn't be null.\");\n Preconditions.checkNotNull(layouts, \"Layouts shouldn't be null.\");\n\n this.dataSegment = dataSegment;\n\n this.indexLayoutsMap = getIndexLayoutsMap(layouts);\n\n // heavy invocation\n this.indexPlanIndices = dataSegment.getIndexPlan().getAllIndexes();\n\n SortedSet<IndexEntity> sortedSet0 = Sets.newTreeSet((i1, i2) -> {\n int c = Integer.compare(i1.getDimensions().size(), i2.getDimensions().size());\n if (c == 0) {\n return Long.compare(i1.getId(), i2.getId());\n }\n return c;\n });\n sortedSet0.addAll(indexLayoutsMap.keySet());\n sorted = Collections.unmodifiableSortedSet(sortedSet0);\n }", "public KDPartitionStrategy getPartitionStrategy() {\n return partitionStrategy;\n }", "public void create(Set<Entry<Integer,String>> entries) {\n\t\t//System.out.printf(\"entriesSize %d pageSize %d and entries %s\\n\",entries.size(), pageSize, entries);\n\t\tassert(entries.size() > this.pageSize);\n\t\t\n\t\tMap<Integer,String> entries_map = new TreeMap<Integer, String>();\n\t\tIterator<Entry<Integer, String>> my_itr = entries.iterator();\n\t\tEntry<Integer, String> entry;\n\t\twhile(my_itr.hasNext())\n\t\t{\n\t\t\tentry = my_itr.next();\n\t\t\tentries_map.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\t\n\t\tentries.clear();\n\t\tentries = entries_map.entrySet();\n\t\t//System.out.printf(\"Entries after sorting %s\\n\", entries);\n\t\t// Create an new root (old data will be discarded)\n\t\tthis.root = new IsamIndexNode(pageSize);\n\t\t\n // Calculating height of the tree\n\t\tInteger height_counter = 0;\n\t\tInteger num_pages_needed = (entries.size() - 1)/ this.pageSize / 3;\n\t\t\n\t\twhile(num_pages_needed != 0)\n\t\t{\n\t\t\theight_counter++;\n \tnum_pages_needed = num_pages_needed / 3; /* 3 is the fan out */\n\t\t}\n // At this moment we have calculated the height as per the defination provided in section 10.3 of Textbook\n\t\t// Creating the indexes.\n\n\t\theight = height_counter + 1;\n // Create the data nodes\n\t\tList<IsamDataNode> dataNodes = new ArrayList<IsamDataNode>();\n\t\t\n\t\t//Iterator<Entry<Integer, String>> \n\t\tmy_itr = entries.iterator();\n\t\t//Entry<Integer, String> entry;\n\t\tIsamDataNode new_node = new IsamDataNode(pageSize);\n\t\t\n\t\tInteger i = 0;\n\t\twhile(my_itr.hasNext())\n\t\t{\n\t\t\tentry = my_itr.next();\n\t\t\tnew_node.insert(entry.getKey(), entry.getValue());\n\t\t\t++i;\n\t\t\tif(i%pageSize == 0 && i != 0)\n\t\t\t{\n\t\t\t\tdataNodes.add(new_node);\n\t\t\t\tnew_node = new IsamDataNode(pageSize);\n\t\t\t}\n\t\t}\n\t\tif(i%pageSize != 0 || i == 0)\n\t\t{\n\t\t\tdataNodes.add(new_node);\n\t\t}\n\t\t\n\t\t// At this point dataNodes contains the list of DataNodes\n\t\t\n\t\t/*\n * Helper function to print all dataNodes we have created\n\t\ti = 0;\n\t\tfor(IsamDataNode data_node : dataNodes)\n\t\t{\n\t\t\tSystem.out.printf(\"<Node id=%d num_keys=%d>\",i, data_node.num_records);\n\t\t\tfor(Integer key : data_node.keys)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d = %s \",key, data_node.search(key));\n\t\t\t}\n\t\t\tSystem.out.printf(\"</Node>\");\n\t\t\t++i;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\t*/\n\t\t\n /* Make the first level index nodes of type IsamIndexNode which point to IsamDataNode */\n Iterator<IsamDataNode> data_nodes_itr = dataNodes.iterator();\n\t\tList<IsamIndexNode> upper_level_nodes = new ArrayList<IsamIndexNode>();\n IsamDataNode dataElement;\n IsamIndexNode index_node;\n while(data_nodes_itr.hasNext())\n {\n // Take pageSize + 1 data nodes and index them using one IndexNode \n i = 0;\n index_node = new IsamIndexNode(pageSize);\n while(data_nodes_itr.hasNext() && i != pageSize+1)\n {\n dataElement = data_nodes_itr.next();\n index_node.children[i] = dataElement;\n if(i != 0)\n {\n index_node.keys[i-1] = dataElement.keys[0];\n }\n ++i;\n }\n upper_level_nodes.add(index_node);\n }\n /* Make the rest of the Index tree */\n List<IsamIndexNode> lower_level_nodes = upper_level_nodes;\n\t\tIsamIndexNode element;\n\t\tInteger current_height = 0;\n\t\t\n while(height != current_height)//change\n\t\t{// At each height level\n\t\t\tcurrent_height++;\n\t\t\tupper_level_nodes = new ArrayList<IsamIndexNode>();\n\t\t\tIterator<IsamIndexNode> lower_itr = lower_level_nodes.iterator();\n\t\t\twhile(lower_itr.hasNext()) // get all Index Nodes\n\t\t\t{\n i = 0;\n\t\t\t\tindex_node = new IsamIndexNode(pageSize);\n\t\t\t\twhile(lower_itr.hasNext() && i != pageSize+1) // Get Elements inside an Index Node\n\t\t\t\t{\n\t\t\t\t\telement = lower_itr.next();\n\t\t\t\t\tindex_node.children[i] = element;\n\t\t\t\t\tif(i != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex_node.keys[i-1] = element.get_child_key_for_parent();\n\t\t\t\t\t}\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tupper_level_nodes.add(index_node);\n\t\t\t}\n\t\t\tlower_level_nodes.clear();\n\t\t\tlower_level_nodes = upper_level_nodes;\n\t\t}\n\t\t\n\t\t// At this point we should have only one root node.\n\t\t//System.out.printf(\"Root node size %d \\n\",upper_level_nodes.size());\n\t\tif(upper_level_nodes.size() != 1)\n\t\t{\n\t\t\tSystem.out.printf(\"I have erred!!\\n\");\n\t\t}\n\t\troot = (IsamIndexNode) upper_level_nodes.get(0);\n\t}", "public int createSpanningTree() {\n\n\t\treturn primMST(edges);\n\t}", "private GM_Object createGeometry(ByteArrayOutputStream bos,\r\n CS_CoordinateSystem srs) throws Exception {\r\n Debug.debugMethodBegin( this, \"createGeometry\" ); \r\n \r\n byte[] wkb = bos.toByteArray();\r\n bos.close(); \r\n \r\n String crs = srs.getName();\r\n crs = crs.replace(' ',':');\r\n crs = StringExtend.replace(crs, \":\", \".xml#\", true ); \r\n \r\n StringBuffer sb = null;\r\n GM_Object geo = null; \r\n \r\n // create geometries from the wkb considering the geomerty typ\r\n switch ( getGeometryType( wkb ) ) {\r\n case 1: geo = factory.createGM_Point( wkb, srs ); break;\r\n case 2: geo = factory.createGM_Curve( wkb, srs); break;\r\n case 3: geo = factory.createGM_Surface( wkb, srs, \r\n new GM_SurfaceInterpolation_Impl(1)); break;\r\n case 4: geo = factory.createGM_MultiPoint( wkb, srs ); break;\r\n case 5: geo = factory.createGM_MultiCurve( wkb, srs ); break;\r\n case 6: geo = factory.createGM_MultiSurface( wkb, srs, \r\n new GM_SurfaceInterpolation_Impl(1) ); break;\r\n default: geo = null;\r\n }\r\n \r\n ((GM_Object_Impl)geo).setCoordinateSystem( srs );\r\n \r\n updateBoundingBox(geo);\r\n \r\n Debug.debugMethodEnd();\r\n return geo;\r\n }", "public QuadTree(int x, int y, int width, int height){\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }", "public ZOrderKDWTree(double[][] data) {\n\t\tif (data == null) {\n\t\t\tthrow new IllegalArgumentException(\"data is null\");\n\t\t}\n\t\tif (data.length <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"data is empty\");\n\t\t}\n\t\tif (data[0] == null) {\n\t\t\tthrow new IllegalArgumentException(\"data contains null\");\n\t\t}\n\t\tif (data[0].length < 2 || data[0].length > 31) {\n\t\t\tthrow new IllegalArgumentException(\"number of dimensions are not between 2 and 31\");\n\t\t}\n\n\t\tnumData = data.length;\n\t\tnumDim = data[0].length;\n\n\t\t// create rank-space dictionaries every dimensions\n\t\tmdRankIndex = new RankIndex[numDim];\n\t\tfor (int d = 0; d < numDim; d++) {\n\t\t\t// create rank-space dictionary\n\t\t\tRankIndexBuilder rankIndexBuilder = new RankIndexBuilder(numData);\n\t\t\tfor (double[] real : data) {\n\t\t\t\tif (d == 0) {\n\t\t\t\t\tif (real == null) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"data contains null\");\n\t\t\t\t\t}\n\t\t\t\t\tif (real.length != numDim) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"number of dimensions in all points are not identical\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!Utils.isFinite(real[d])) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"data contains not a finite number\");\n\t\t\t\t}\n\t\t\t\trankIndexBuilder.append(real[d]);\n\t\t\t}\n\t\t\tmdRankIndex[d] = rankIndexBuilder.build();\n\t\t}\n\n\t\t// compute number of left shift to align rank-space value on leftmost one-bit\n\t\tint maxRank = 0;\n\t\tfor (int d = 0; d < numDim; d++) {\n\t\t\tif (maxRank < mdRankIndex[d].denserankMax()) {\n\t\t\t\tmaxRank = mdRankIndex[d].denserankMax();\n\t\t\t}\n\t\t}\n\t\tint maxRankBits = maxRank == 0 ? 1 : 32 - Integer.numberOfLeadingZeros(maxRank);\n\t\trankShift = new int[numDim];\n\t\tfor (int d = 0; d < numDim; d++) {\n\t\t\tint rankBits = 32 - Integer.numberOfLeadingZeros(mdRankIndex[d].denserankMax());\n\t\t\tif (rankBits == 0) {\n\t\t\t\trankBits = 1;\n\t\t\t}\n\t\t\trankShift[d] = maxRankBits - rankBits;\n\t\t}\n\n\t\t// convert data points from real-number to rank-space value\n\t\tzoPoints = new int[numDim][];\n\t\tfor (int d = 0; d < numDim; d++) {\n\t\t\tzoPoints[d] = new int[numData];\n\t\t\tint idx = 0;\n\t\t\tfor (double[] real : data) {\n\t\t\t\tzoPoints[d][idx] = mdRankIndex[d].real2denserank(real[d]) << rankShift[d];\n\t\t\t\tidx++;\n\t\t\t}\n\t\t}\n\n\t\t// create pointers and set initial sequence. (0,1,...,numData-1)\n\t\tpointers = new int[numData];\n\t\tfor (int i = 0; i < numData; i++) {\n\t\t\tpointers[i] = i;\n\t\t}\n\n\t\t// sort pointers according to z-order\n\t\tZOrderSort.sortIndirect(zoPoints, pointers);\n\n\t\t// create WaveletMatrix from rank-space points which are sorted according to z-order\n\t\tzoWM = new WaveletMatrix[numDim];\n\t\tint[] workArray = new int[numData];\n\t\tfor (int d = 0; d < numDim; d++) {\n\t\t\t// sort rank-space points according to z-order\n\t\t\tindirectArrayCopy(zoPoints[d], pointers, workArray);\n\t\t\tSystem.arraycopy(workArray, 0, zoPoints[d], 0, numData);\n\n\t\t\t// create WaveletMatrix\n\t\t\tzoWM[d] = new WaveletMatrix(workArray, maxRankBits);\n\t\t}\n\n\t}", "private SceneOctTree (\n Bounds bounds,\n int depth\n ) {\n\n this.bounds = bounds;\n this.depth = depth;\n\n }", "protected TreeNode<T> createTreeNode(T value) {\n return new TreeNode<T>(this, value);\n }", "public static void main(String[] args) {\n String filename = args[0];\n In in = new In(filename);\n KdTree kdtree = new KdTree();\n while (!in.isEmpty()) {\n double x = in.readDouble();\n double y = in.readDouble();\n Point2D p = new Point2D(x, y);\n kdtree.insert(p);\n }\n\n Point2D p = new Point2D(0.73, 0.43);\n System.out.println(\"nearest \" + kdtree.nearest(p));\n\n System.out.println(\"size: \" + kdtree.size());\n\n // StdDraw.enableDoubleBuffering();\n // while (true) {\n // kdtree.draw();\n // StdDraw.show();\n // StdDraw.pause(40);\n // }\n }", "public static OrglRoot makeData(XnRegion keys, OrderSpec ordering, PrimDataArray values) {\n\treturn ActualOrglRoot.make((Loaf.make(values, (ordering.arrange(keys)))), keys);\n/*\nudanax-top.st:9869:OrglRoot class methodsFor: 'creation'!\n{OrglRoot} makeData: keys {XnRegion} with: ordering {OrderSpec} with: values {PrimDataArray} \n\t\"Make an Orgl from a bunch of Data. The data is \n\tguaranteed to be of a reasonable size.\"\n\t^ActualOrglRoot \n\t\tmake: (Loaf make: values with: (ordering arrange: keys))\n\t\twith: keys!\n*/\n}", "BranchGroup createSceneGraph() {\n BranchGroup objRoot = new BranchGroup();\n\n // Add the primitives to the scene\n setupSpheres();\n objRoot.addChild(spheresSwitch);\n setupGrid();\n objRoot.addChild(gridSwitch);\n objRoot.addChild(lightGroup);\n objRoot.addChild(bgSwitch);\n objRoot.addChild(fogSwitch);\n objRoot.addChild(soundSwitch);\n\n KeyPrintBehavior key = new KeyPrintBehavior();\n key.setSchedulingBounds(infiniteBounds);\n objRoot.addChild(key);\n return objRoot;\n }", "TreeStorage getTreeStorage();", "public TreeNode createTree(IGPProgram a_prog)\n throws InvalidConfigurationException {\n if (a_prog == null) {\n return null;\n }\n ProgramChromosome master = new ProgramChromosome(m_conf);\n master.setIndividual(a_prog);\n TreeNode tree;\n if (a_prog.size() > 1) {\n Class[] types = new Class[a_prog.size()];\n for (int i = 0; i < a_prog.size(); i++) {\n types[i] = CommandGene.VoidClass; //this is arbitrary\n }\n master.setGene(0, new SubProgram(m_conf, types));\n int index = 1;\n for (int i = 0; i < a_prog.size(); i++) {\n ProgramChromosome child = a_prog.getChromosome(i);\n for (int j = 0; j < child.size(); j++) {\n master.setGene(index++, child.getGene(j));\n }\n }\n master.redepth();\n tree = new JGAPTreeNode(master, 0);\n }\n else {\n tree = new JGAPTreeNode(a_prog.getChromosome(0), 0);\n }\n return tree;\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "public Node() {\n neighbors = new ArrayList<>();\n sizeOfSubtree = 0;\n containedPaths = new long[k];\n startingPaths = new long[k];\n }", "public BranchGroup createSceneGraph() {\n BranchGroup node = new BranchGroup();\n TransformGroup TG = createSubGraph();\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n // mouse behaviour\n MouseRotate mouse = new MouseRotate(TG);\n mouse.setSchedulingBounds(new BoundingSphere());\n // key nav\n KeyNavigatorBehavior keyNav = new KeyNavigatorBehavior(TG); //Imposto il bound del behavior\n keyNav.setSchedulingBounds(new BoundingSphere(new Point3d(), 100.0)); //Aggiungo il behavior alla scena\n TG.addChild(keyNav);\n TG.addChild(mouse);\n node.addChild(TG);\n // Add directionalLight\n node.addChild(directionalLight());\n // Add ambientLight\n node.addChild(ambientLight());\n return node;\n }", "public BranchGroup createSceneGraph() {\n BranchGroup objRoot = new BranchGroup();\n\n // Create the TransformGroup node and initialize it to the\n // identity. Enable the TRANSFORM_WRITE capability so that\n // our behavior code can modify it at run time. Add it to\n // the root of the subgraph.\n TransformGroup objTrans = new TransformGroup();\n objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n objRoot.addChild(objTrans);\n\n // Create a simple Shape3D node; add it to the scene graph.\n objTrans.addChild(new ColorCube(0.4));\n\n // Create a new Behavior object that will perform the\n // desired operation on the specified transform and add\n // it into the scene graph.\n Transform3D yAxis = new Transform3D();\n Alpha rotationAlpha = new Alpha(-1, 4000);\n\n RotationInterpolator rotator = new RotationInterpolator(rotationAlpha,\n objTrans, yAxis, 0.0f, (float) Math.PI * 2.0f);\n BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),\n 100.0);\n rotator.setSchedulingBounds(bounds);\n objRoot.addChild(rotator);\n\n // Have Java 3D perform optimizations on this scene graph.\n objRoot.compile();\n\n return objRoot;\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic GNDDocument(String content) throws JsonParseException,\n\t\t\t\tJsonMappingException, IOException, ParseException\n\t\t{\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tMap<String, Object> root = mapper.readValue(content, Map.class);\n\t\t\tLinkedHashMap<String, Object> meta = (LinkedHashMap<String, Object>) root\n\t\t\t\t\t.get(\"metadata\");\n\t\t\t_name = (String) meta.get(\"name\");\n\t\t\t_platform = (String) meta.get(\"platform\");\n\t\t\t_platformType = (String) meta.get(\"platform_type\");\n\t\t\t_sensor = (String) meta.get(\"sensor\");\n\t\t\t_sensorType = (String) meta.get(\"sensor_type\");\n\t\t\t_trial = (String) meta.get(\"trial\");\n\n\t\t\t// ok, and populate the tracks\n\t\t\tArrayList<String> dTypes = (ArrayList<String>) meta.get(\"data_type\");\n\t\t\tif (dTypes.contains(\"lat\") && dTypes.contains(\"lon\")\n\t\t\t\t\t&& dTypes.contains(\"time\"))\n\t\t\t{\n\t\t\t\t// ok, go for it.\n\t\t\t\tArrayList<Double> latArr = (ArrayList<Double>) root.get(\"lat\");\n\t\t\t\tArrayList<Double> lonArr = (ArrayList<Double>) root.get(\"lon\");\n\t\t\t\tArrayList<String> timeArr = (ArrayList<String>) root.get(\"time\");\n\t\t\t\tArrayList<Double> eleArr = null;\n\t\t\t\tArrayList<Double> crseArr = null;\n\t\t\t\tArrayList<Double> spdArr = null;\n\n\t\t\t\tif (dTypes.contains(\"elevation\"))\n\t\t\t\t\teleArr = (ArrayList<Double>) root.get(\"elevation\");\n\t\t\t\tif (dTypes.contains(\"course\"))\n\t\t\t\t\tcrseArr = (ArrayList<Double>) root.get(\"course\");\n\t\t\t\tif (dTypes.contains(\"speed\"))\n\t\t\t\t\tspdArr = (ArrayList<Double>) root.get(\"speed\");\n\n\t\t\t\t_track = new Track();\n\t\t\t\t_track.setName(_name);\n\n\t\t\t\tint ctr = 0;\n\t\t\t\tfor (Iterator<String> iterator = timeArr.iterator(); iterator.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString string = iterator.next();\n\t\t\t\t\tdouble lat = latArr.get(ctr);\n\t\t\t\t\tdouble lon = lonArr.get(ctr);\n\n\t\t\t\t\tdouble depth = 0, course = 0, speed = 0;\n\t\t\t\t\tif (eleArr != null)\n\t\t\t\t\t\tdepth = -eleArr.get(ctr);\n\n\t\t\t\t\tif (crseArr != null)\n\t\t\t\t\t\tcourse = crseArr.get(ctr);\n\t\t\t\t\tif (spdArr != null)\n\t\t\t\t\t\tspeed = spdArr.get(ctr);\n\n\t\t\t\t\tDate hd = timeFrom(string);\n\t\t\t\t\tHiResDate dt = new HiResDate(hd);\n\t\t\t\t\tWorldLocation theLoc = new WorldLocation(lat, lon, depth);\n\t\t\t\t\tFix thisF = new Fix(dt, theLoc, course, speed);\n\t\t\t\t\t_track.addFix(thisF);\n\n\t\t\t\t\tctr++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "public void subdivide() {\n\t\tif (!divided) {\n\t\t\tdivided = true;\n\t\t\t\n\t\t\t// Calculate the width and height of the sub nodes\n\t\t\tint width = (int) Math.ceil(boundary.width/2.0) + 1;\n\t\t\tint height = (int) Math.ceil(boundary.height/2.0) + 1;\n\t\t\t\n\t\t\t// Create ArrayList for the nodes and insert them\n\t\t\tnodes = new ArrayList<QuadTreeNode<E>>();\n\t\t\t\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y + height, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y + height, height, width));\n\t\t\t\n\t\t\t// Take all the points and insert them into the best sub node\n\t\t\tfor (Point p : points.keySet()) {\n\t\t\t\tQuadTreeNode<E> q = this.getBestQuad(p);\n\t\t\t\tq.add(p, points.get(p));\n\t\t\t}\n\t\t\t\n\t\t\tpoints = null;\n\t\t}\n\t}", "public HashPrefixTree(HPTKeyComparator<K> comparator, int hashSeed) {\n this.comparator = comparator;\n this.hashSeed = hashSeed;\n }", "TaxonomyCoordinate createDefaultInferredTaxonomyCoordinate();", "public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}", "public List<Node<T>> findNodes(final Geometry geometry, final double distance) {\n if (geometry == null) {\n return Collections.emptyList();\n } else {\n final CreateListVisitor<Node<T>> results = new CreateListVisitor<Node<T>>();\n final Visitor<Node<T>> visitor = new NodeWithinDistanceOfGeometryVisitor<T>(\n geometry, distance, results);\n BoundingBox envelope = geometry.getBoundingBox();\n envelope = envelope.expand(distance);\n getNodeIndex().visit(envelope, visitor);\n final List<Node<T>> nodes = results.getList();\n Collections.sort(nodes);\n return nodes;\n }\n }", "public static void main(String[] args) {\n\t In in = new In(args[0]);\n\t \n\t double[] points = in.readAllDoubles();\n\t int n = points.length;\n\t KdTree tree = new KdTree();\n\t \n\t for (int i = 0; i < n; i += 2) {\n\t \tPoint2D point = new Point2D(points[i], points[i + 1]);\n\t \ttree.insert(point);\n\t }\n\t tree.draw();\n\t}", "private void createHeap(double vertex, double weight){\r\n if (heap == null){\r\n heap = new TreeMap<>();\r\n }\r\n heap.put((double)vertex, weight);\r\n }", "public BinarySearchTree() {\n\n\t}", "FogNode createFogNode();", "private void setUpDefaultTree() {\n\t\tTreeItem<String> tempTreeItem = new TreeItem<String>(\"Floor 1\");\n\t\tFloor tempFloor = new Floor(new Image(\"scheduleyTest/floorplan1.jpg\"));\n\t\tfloorHashMap.put(tempTreeItem, tempFloor);\n\t\ttree.getRoot().getChildren().add(tempTreeItem);\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,40,213,113)));\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,153,139,119)));\n\t\ttempTreeItem.getChildren().addAll(new TreeItem<String>(\"Room 1\"), new TreeItem<String>(\"Room 2\"));\n\t}", "public Graph2D createGraph ()\n {\n Settings settings = Settings.getSettings ();\n int maxDependencyCount = computeMaxDependencyCount (grid);\n GraphManager graphManager = GraphManager.getGraphManager ();\n Graph2D graph = graphManager.createGraph2D ();\n Map<String, Node> allNodes = new HashMap <String, Node> ();\n\n // create graph nodes at each grid cell\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n String label = cell.getClassName ();\n int dotPos = label.lastIndexOf ('.');\n if (dotPos >= 0)\n {\n label = label.substring (dotPos + 1);\n }\n Node node = graph.createNode (x, y, label);\n ClassCloudData.attachCell (node, cell);\n allNodes.put (cell.getClassName (), node);\n NodeRealizer realizer = graph.getRealizer (node);\n realizer.setFillColor (ColorComputer.computeColor (cell.getPreferredX (), cell.getPreferredY (),\n grid.getWidth (), grid.getHeight (), settings));\n NodeLabel nodeLabel = realizer.getLabel ();\n nodeLabel.setFontSize (computeFontSize (cell.getDependencyCount (), maxDependencyCount));\n }\n }\n }\n YDimension maxNodeSize = computeMaxNodeSize (graph);\n double maxWidth = maxNodeSize.getWidth ();\n double maxHeight = maxNodeSize.getHeight ();\n // set first guess for size and position of all nodes\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n Node node = allNodes.get (cell.getClassName ());\n NodeRealizer realizer = graph.getRealizer (node);\n double width = realizer.getLabel ().getWidth ();\n double height = realizer.getLabel ().getHeight ();\n realizer.setFrame (x * (maxWidth + 8) + (maxWidth - width) / 2,\n y * (maxHeight + 8) + (maxHeight - height) / 2,\n width + 4, height + 4);\n }\n }\n }\n // partition all cells into several vertical columns of nodes\n List<List<NodeRealizer>> cellColumns = partitionCells (graph, allNodes);\n // compact all columns by shifting classes down or up to column center\n compactVertically (cellColumns);\n // compact cloud by shifting classes left or right to neighbour classes\n compactHorizontally (cellColumns);\n return graph;\n }", "protected abstract Node createCenterContent();", "public NodeMap<CDMNode, DapNode> create() throws DapException {\n // Netcdf Dataset will already have a root group\n Group cdmroot = ncfile.getRootGroup();\n this.nodemap.put(cdmroot, this.dmr);\n fillGroup(cdmroot, this.dmr, ncfile);\n return this.nodemap;\n }", "protected abstract NativeSQLStatement createNativeGeometryTypeStatement();", "List<TreeNodeDTO> genTree(boolean addNodeSize, boolean addRootNode, List<Long> disabledKeys);", "private static TreeNode<Character> buildTree () {\n // build left half\n TreeNode<Character> s = new TreeNode<Character>('S', \n new TreeNode<Character>('H'),\n new TreeNode<Character>('V'));\n\n TreeNode<Character> u = new TreeNode<Character>('U', \n new TreeNode<Character>('F'),\n null);\n \n TreeNode<Character> i = new TreeNode<Character>('I', s, u);\n\n TreeNode<Character> r = new TreeNode<Character>('R', \n new TreeNode<Character>('L'), \n null);\n\n TreeNode<Character> w = new TreeNode<Character>('W', \n new TreeNode<Character>('P'),\n new TreeNode<Character>('J'));\n\n TreeNode<Character> a = new TreeNode<Character>('A', r, w);\n\n TreeNode<Character> e = new TreeNode<Character>('E', i, a);\n\n // build right half\n TreeNode<Character> d = new TreeNode<Character>('D', \n new TreeNode<Character>('B'),\n new TreeNode<Character>('X'));\n\n TreeNode<Character> k = new TreeNode<Character>('K', \n new TreeNode<Character>('C'),\n new TreeNode<Character>('Y'));\n\n TreeNode<Character> n = new TreeNode<Character>('N', d, k);\n\n\n TreeNode<Character> g = new TreeNode<Character>('G', \n new TreeNode<Character>('Z'),\n new TreeNode<Character>('Q'));\n\n TreeNode<Character> o = new TreeNode<Character>('O');\n\n TreeNode<Character> m = new TreeNode<Character>('M', g, o);\n\n TreeNode<Character> t = new TreeNode<Character>('T', n, m);\n\n // build the root\n TreeNode<Character> root = new TreeNode<Character>(null, e, t);\n return root;\n }", "public SceneOctTree (\n Bounds bounds\n ) {\n\n this.bounds = bounds;\n\n }", "private void setup() {\r\n final int gsz = _g.getNumNodes();\r\n if (_k==2) {\r\n\t\t\tNodeComparator2 comp = new NodeComparator2();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t} else { // _k==1\r\n\t\t\tNodeComparator4 comp = new NodeComparator4();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t}\r\n for (int i=0; i<gsz; i++) {\r\n _origNodesq.add(_g.getNodeUnsynchronized(i)); // used to be _g.getNode(i)\r\n }\r\n _nodesq = new TreeSet(_origNodesq);\r\n //System.err.println(\"done sorting\");\r\n }", "public JTreeImpl(String rootTxt) {\r\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(rootTxt);\r\n tree = new JTree(root);\r\n tree.setShowsRootHandles(true);\r\n memory.push(root);\r\n }", "public static Node bygg(String[] ordliste){\n \treturn new Node();\r\n }" ]
[ "0.565489", "0.5606969", "0.53161263", "0.5290844", "0.50951874", "0.50823945", "0.50795996", "0.49107566", "0.4898389", "0.48621383", "0.48329422", "0.47436315", "0.4739045", "0.47071487", "0.4637019", "0.4629039", "0.4625729", "0.45939425", "0.45793796", "0.45520216", "0.454707", "0.45002866", "0.4498747", "0.44960904", "0.44805485", "0.44777715", "0.4459035", "0.44310227", "0.44257733", "0.44113207", "0.44101784", "0.43938303", "0.4382576", "0.43817595", "0.43732387", "0.4341465", "0.43209144", "0.4265947", "0.42514125", "0.42432263", "0.42295", "0.422054", "0.42099833", "0.42082983", "0.4201919", "0.4201145", "0.41975474", "0.4169267", "0.4169092", "0.41686535", "0.41658494", "0.41563413", "0.41531923", "0.4146692", "0.41430265", "0.4135147", "0.4119724", "0.41167307", "0.4110573", "0.4099897", "0.40963063", "0.40958613", "0.40871048", "0.40858364", "0.40854675", "0.40812573", "0.40702888", "0.4069037", "0.40669376", "0.4065336", "0.40530062", "0.40336466", "0.4024607", "0.40242732", "0.40083447", "0.40069136", "0.39969715", "0.39899266", "0.39891496", "0.39878443", "0.3987686", "0.39832622", "0.3981777", "0.39786512", "0.39775988", "0.3974454", "0.39695016", "0.39629757", "0.39629266", "0.3960747", "0.39607212", "0.395988", "0.39595652", "0.39584655", "0.3956036", "0.39538932", "0.39458072", "0.39423868", "0.39378983", "0.3936078" ]
0.6757306
0
Accessor for the KDTree partition strategy used to subdivide the tree nodes.
public KDPartitionStrategy getPartitionStrategy() { return partitionStrategy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getPartition(Text key, Text value, int numPartitions) {\n String decadeStr = key.toString().split(\"\\\\s+\")[0];\r\n int decade = Integer.parseInt(decadeStr) / 10;\r\n return decade % numPartitions;\r\n }", "interface Partitioner {\n int partition(int[] array, int left, int right, int pivot);\n }", "private DynamicgridSpacePartitioner getSpacePartitioner() throws ZookeeperException, ZookeeperNotFoundException {\n\t\tfinal DynamicgridSpacePartitioner spacepartitionier = (DynamicgridSpacePartitioner)\n\t\t\t\tdistributionGroupZookeeperAdapter.getSpaceparitioner(TEST_GROUP,\n\t\t\t\t\t\tnew HashSet<>(), new DistributionRegionIdMapper(TEST_GROUP));\n\n\t\treturn spacepartitionier;\n\t}", "public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\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\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}", "public final EObject rulePartition() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_test_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:703:2: ( (otherlv_0= 'partition' otherlv_1= ':' ( (lv_test_2_0= ruleNumericValue ) ) otherlv_3= ';' ) )\n // InternalMLRegression.g:704:2: (otherlv_0= 'partition' otherlv_1= ':' ( (lv_test_2_0= ruleNumericValue ) ) otherlv_3= ';' )\n {\n // InternalMLRegression.g:704:2: (otherlv_0= 'partition' otherlv_1= ':' ( (lv_test_2_0= ruleNumericValue ) ) otherlv_3= ';' )\n // InternalMLRegression.g:705:3: otherlv_0= 'partition' otherlv_1= ':' ( (lv_test_2_0= ruleNumericValue ) ) otherlv_3= ';'\n {\n otherlv_0=(Token)match(input,23,FOLLOW_4); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getPartitionAccess().getPartitionKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,12,FOLLOW_15); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getPartitionAccess().getColonKeyword_1());\n \t\t\n // InternalMLRegression.g:713:3: ( (lv_test_2_0= ruleNumericValue ) )\n // InternalMLRegression.g:714:4: (lv_test_2_0= ruleNumericValue )\n {\n // InternalMLRegression.g:714:4: (lv_test_2_0= ruleNumericValue )\n // InternalMLRegression.g:715:5: lv_test_2_0= ruleNumericValue\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getPartitionAccess().getTestNumericValueParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_6);\n lv_test_2_0=ruleNumericValue();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPartitionRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"test\",\n \t\t\t\t\t\tlv_test_2_0,\n \t\t\t\t\t\t\"m2.idm.project.MLRegression.NumericValue\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,13,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getPartitionAccess().getSemicolonKeyword_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void partition();", "public interface ContextPartitionSelectorSegmented extends ContextPartitionSelector {\n /**\n * Returns the partition keys.\n *\n * @return key set\n */\n public List<Object[]> getPartitionKeys();\n}", "public int getPartition(Integer item) {\n return ((item % x) / y);\n }", "@Value.Parameter\n int partition();", "@Override\r\n\tpublic int getPartition(CompositeKey key, ByteWritable value,int numPartitions) {\n\t\treturn (int)key.getProductID()% numPartitions;\r\n\t}", "@Override\n\tpublic int getPartition(Text key, Text value, int numPartitions) {\n\t\treturn Integer.parseInt(key.toString()) % numPartitions;\n\t}", "public int getPartitionNumber() {\n\treturn partitionNumber;\n }", "public final AstValidator.partition_clause_return partition_clause() throws RecognitionException {\n AstValidator.partition_clause_return retval = new AstValidator.partition_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree PARTITION318=null;\n AstValidator.func_name_return func_name319 =null;\n\n\n CommonTree PARTITION318_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:18: ( ^( PARTITION func_name ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:501:20: ^( PARTITION func_name )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n PARTITION318=(CommonTree)match(input,PARTITION,FOLLOW_PARTITION_in_partition_clause2683); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n PARTITION318_tree = (CommonTree)adaptor.dupNode(PARTITION318);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(PARTITION318_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_partition_clause2685);\n func_name319=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name319.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public BinTree induceTree(int[] partition, int[] features) {\r\n\t\t// if the partition is empty, we can not return a tree\r\n\t\tif (partition.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// check if all entries in partition belong to the same class. If so,\r\n\t\t// return node, labeled with class value\r\n\t\t// you may want to check if pruning is applicable here (and then just\r\n\t\t// return the majority class).\r\n\t\tint[] classCnt = new int[classes.length];\r\n\t\tString sameValue = null;\r\n\t\tboolean sameClass = true;\r\n\t\tfor (int p = 0; p < partition.length; p++) {\r\n\t\t\tString targetValue = output[partition[p]];\r\n\t\t\tfor (int n = 0; n < classes.length; n++) {\r\n\t\t\t\tif (targetValue.equals(classes[n])) {\r\n\t\t\t\t\tclassCnt[n]++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (p == 0)\r\n\t\t\t\tsameValue = targetValue;\r\n\t\t\telse {\r\n\t\t\t\tif (!sameValue.equalsIgnoreCase(targetValue)) {\r\n\t\t\t\t\tsameClass = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (sameClass) {\r\n\t\t\treturn new BinTree(sameValue);\r\n\t\t} else {\r\n\t\t\tint max = 0;\r\n\t\t\tfor (int n = 1; n < classes.length; n++)\r\n\t\t\t\tif (classCnt[max] < classCnt[n])\r\n\t\t\t\t\tmax = n;\r\n\t\t\tif ((double) classCnt[max] / (double) partition.length > 0.50\r\n\t\t\t\t\t|| partition.length < 5) { // if more than 50% of samples\r\n\t\t\t\t\t\t\t\t\t\t\t\t// in partition are of the same\r\n\t\t\t\t\t\t\t\t\t\t\t\t// class OR fewer than 5 samples\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\treturn new BinTree(classes[max]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if no features are available, we can not return a tree\r\n\t\tif (features.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t// class values are not equal so we select a particular feature to split\r\n\t\t// the partition\r\n\t\tint selectedFeature = selectFeature(partition, features);\r\n\r\n\t\t// create new partition of samples\r\n\t\t// use only corresponding subset of full partition\r\n\t\tint[] partTrue = matches(partition, selectedFeature, true);\r\n\t\tint[] partFalse = matches(partition, selectedFeature, false);\r\n\t\t// remove the feature from the new set (to be sent to subtrees)\r\n\t\tint[] nextFeatures = new int[features.length - 1];\r\n\t\tint cnt = 0;\r\n\t\tfor (int f = 0; f < features.length; f++) {\r\n\t\t\tif (features[f] != selectedFeature)\r\n\t\t\t\tnextFeatures[cnt++] = features[f];\r\n\t\t}\r\n\t\t// construct the subtrees using the new partitions and reduced set of\r\n\t\t// features\r\n\t\tBinTree branchTrue = induceTree(partTrue, nextFeatures);\r\n\t\tBinTree branchFalse = induceTree(partFalse, nextFeatures);\r\n\r\n\t\t// if either of the subtrees failed, we have confronted a problem, use\r\n\t\t// the most likely class value of the current partition\r\n\t\tBinTree defaultTree = null;\r\n\t\tif (branchTrue == null || branchFalse == null) {\r\n\t\t\t// indicate a majority vote\r\n\t\t\tint[] freq = new int[classes.length];\r\n\t\t\tint most = 0;\r\n\t\t\tfor (int c = 0; c < classes.length; c++) {\r\n\t\t\t\tint[] pos = matches(partition, classes[c]);\r\n\t\t\t\tfreq[c] = pos.length;\r\n\t\t\t\tif (freq[c] >= freq[most])\r\n\t\t\t\t\tmost = c;\r\n\t\t\t}\r\n\t\t\t// the majority class value can replace any null trees...\r\n\t\t\tdefaultTree = new BinTree(classes[most]);\r\n\t\t\tif (branchTrue == null && branchFalse == null)\r\n\t\t\t\treturn defaultTree;\r\n\t\t\telse\r\n\t\t\t\t// return the unlabeled node with subtrees attached\r\n\t\t\t\treturn new BinTree(labelFeature(selectedFeature),\r\n\t\t\t\t\t\t(branchTrue == null ? defaultTree : branchTrue),\r\n\t\t\t\t\t\t(branchFalse == null ? defaultTree : branchFalse));\r\n\t\t} else { // if both subtrees were successfully created we can either\r\n\t\t\tif (branchTrue.classValue != null && branchFalse.classValue != null) {\r\n\t\t\t\tif (branchTrue.classValue.equals(branchFalse.classValue)) {\r\n\t\t\t\t\t// return the the current node with the classlabel common to\r\n\t\t\t\t\t// both subtrees, or\r\n\t\t\t\t\treturn new BinTree(branchTrue.classValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// return the unlabeled node with subtrees attached\r\n\t\t\treturn new BinTree(labelFeature(selectedFeature), branchTrue,\r\n\t\t\t\t\tbranchFalse);\r\n\t\t}\r\n\t}", "@Override\n public Map<Boolean, Sort> split2 (int delim) {\n int subcl = 0, offset=0;//index of the non-single-values sub-intv, and marker offset\n if (isSplit()) //the class is partitioned in subclasses\n for (int j =0; j < this.constraints.length; j++) //we seek the non-single-values sub-intv\n if (this.constraints[j].singleValue()) \n offset += this.constraints[j].lb();\n else \n subcl = j;\n \n return split2(delim - offset, subcl + 1);\n }", "public abstract PartitionType getType();", "public int getPartitionNumber() {\n\t\treturn partitionNumber;\n\t}", "@Override\n\t public int getPartition(Tuple key, IntWritable value, int numPartitions) {\n\t\t return key.hashCodePartial(2) % numPartitions;\n\t }", "KDNode(Datum[] datalist) throws Exception{\r\n\r\n\t\t\t/*\r\n\t\t\t * This method takes in an array of Datum and returns \r\n\t\t\t * the calling KDNode object as the root of a sub-tree containing \r\n\t\t\t * the above fields.\r\n\t\t\t */\r\n\r\n\t\t\t// ADD YOUR CODE BELOW HERE\t\t\t\r\n\t\t\t\r\n\t\t\tif(datalist.length == 1) {\r\n\t\t\t\t\r\n\t\t\t\tleaf = true;\r\n\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\tlowChild = null;\r\n\t\t\t\thighChild = null;\r\n\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\t}else {\r\n\t\r\n\t\t\t\tint dim = 0;\r\n\t\t\t\tint range = 0;\r\n\t\t\t\tint max = 0;\r\n\t\t\t\tint min = 0;\r\n\t\t\t\tint Max = 0;\r\n\t\t\t\tint Min = 0;\r\n\t\t\t\tfor(int i = 0; i < k; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tmax = datalist[0].x[i];\r\n\t\t\t\t\tmin = datalist[0].x[i];\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j = 0; j < datalist.length; j++) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(datalist[j].x[i] >= max) {\r\n\t\t\t\t\t\t\tmax = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(datalist[j].x[i] <= min) {\r\n\t\t\t\t\t\t\tmin = datalist[j].x[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(max - min >= range) {\r\n\t\t\t\t\t\trange = max - min;\r\n\t\t\t\t\t\tMax = max;\r\n\t\t\t\t\t\tMin = min;\r\n\t\t\t\t\t\tdim = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(range == 0) {\r\n\t\t\t\t\tleaf = true;\r\n\t\t\t\t\tleafDatum = datalist[0];\r\n\t\t\t\t\tlowChild = null;\r\n\t\t\t\t\thighChild = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tnumLeaves ++;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t//if greatest range is zero, all points are duplicates\r\n\t\t\t\t\r\n\t\t\t\tsplitDim = dim;\r\n\t\t\t\tsplitValue = (double)(Max + Min) / 2.0;\t//get the split dim and value\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tArrayList<Datum> lList = new ArrayList<Datum>();\r\n\t\t\t\tint numL = 0;\r\n\t\t\t\tArrayList<Datum> hList = new ArrayList<Datum>();\r\n\t\t\t\tint numH = 0;\r\n\t\t\t\r\n\t\t\t\tfor(int i = 0; i < datalist.length; i ++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(datalist[i].x[splitDim] <= splitValue) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlList.add(datalist[i]);\r\n\t\t\t\t\t\t\tnumL ++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\thList.add(datalist[i]);\r\n\t\t\t\t\t\tnumH ++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t//get the children list without duplicate but with null in the back\r\n\t\t\t\t\t//Don't check duplicates in children Nodes!!!\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlowChild = new KDNode( lList.toArray(new Datum[numL]) );\r\n\t\t\t\thighChild = new KDNode( hList.toArray(new Datum[numH]) );\t//create the children nodes\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// ADD YOUR CODE ABOVE HERE\r\n\r\n\t\t}", "public VirtualDataSet[] partitionByNumericAttribute(int attributeIndex, int valueIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\n\t\t if(attributes[attributeIndex].getType()==AttributeType.NOMINAL){ \t\t\t\t\t\t\t// avoid passing through nominal value to current method\n return null; \n }\n\t\t\tVirtualDataSet [] partitions = new VirtualDataSet[2]; \t\t\t\t\t\t\t\t\t// creates two split path \n\n\t\t\tdouble split = Double.parseDouble(getValueAt(valueIndex , attributeIndex));\t\t\t// determine the middle number in order to split \n\t\t\t\n\t\t\tLinkedList<Integer> rowsLess = new LinkedList<Integer> (); \t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tLinkedList<Integer> rowsMore = new LinkedList<Integer> ();\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tint countLess = 0;\n\t\t\tint countMore = 0; \n\n\t\t\tString []arrayOfNums = attributes[attributeIndex].getValues();\n\n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\t\n\t\t\t\tif(Double.parseDouble(getValueAt(j,attributeIndex)) <= split){ \t\t\t\t// transform from string to integer in order to compare the number smaller than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsLess.add(j);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountLess++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}else if(Double.parseDouble(getValueAt(j,attributeIndex)) > split){\t\t\t// transform from string to integer in order to compare the number bigger than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsMore.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountMore++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint [] partitionRowsLess = new int [countLess]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that smaller than middle number\n\t\t\tint [] partitionRowsMore = new int [countMore]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that bigger than middle number\n\t\t\tfor(int k = 0; k < countLess; k++){\n\t\t\t\tpartitionRowsLess[k] = rowsLess.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\tfor(int k = 0; k < countMore; k++){\n\t\t\t\tpartitionRowsMore[k] = rowsMore.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\t\n\t\t\tpartitions[0] = new VirtualDataSet(source,partitionRowsLess, attributes); \t\t\t\t// send partition to VirtualDataSet constructor \n\t\t\tpartitions[1] = new VirtualDataSet(source,partitionRowsMore, attributes); \n\t\t\t\n\n\n\t\t\treturn partitions;\n\t\t\n\t}", "public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\n}", "QueryPartitionClause createQueryPartitionClause();", "public final void rule__Partition__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1747:1: ( ( 'partition' ) )\n // InternalMLRegression.g:1748:1: ( 'partition' )\n {\n // InternalMLRegression.g:1748:1: ( 'partition' )\n // InternalMLRegression.g:1749:2: 'partition'\n {\n before(grammarAccess.getPartitionAccess().getPartitionKeyword_0()); \n match(input,29,FOLLOW_2); \n after(grammarAccess.getPartitionAccess().getPartitionKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "P getSplitPoint();", "public Builder withPartition(int partition) {\n this.partition = partition;\n return this;\n }", "private void fetchPartitioningConfig() {\n SegmentPartitionConfig segmentPartitionConfig = _tableConfig.getIndexingConfig().getSegmentPartitionConfig();\n if (segmentPartitionConfig != null) {\n Map<String, ColumnPartitionConfig> columnPartitionMap = segmentPartitionConfig.getColumnPartitionMap();\n Preconditions.checkArgument(columnPartitionMap.size() <= 1, \"There should be at most 1 partition setting in the table.\");\n if (columnPartitionMap.size() == 1) {\n _partitionColumn = columnPartitionMap.keySet().iterator().next();\n _numberOfPartitions = segmentPartitionConfig.getNumPartitions(_partitionColumn);\n _partitionFunction = segmentPartitionConfig.getFunctionName(_partitionColumn);\n }\n } else {\n _logger.info(\"Segment partition config is null for table: {}\", _tableConfig.getTableName());\n }\n }", "@Override\n\t\tpublic int getPartition(MyKey arg0, Text arg1, int arg2) {\n\t\t\treturn arg0.getK().hashCode()%arg2;\n\t\t}", "int getPartitionForDataSetId(String topic, String datasetId);", "@Override\n public void createPartition(Partition partition) {\n \n }", "@Override\n public int match(LocalAbstractObject object) {\n // The GH-partitioning is defined that object (<=) fall in 0 partition and the others in 1 partition.\n // includeUsingPrecompDist used <= as well, so calling it against leftPivot and then against rightPivot is correct.\n if (object.includeUsingPrecompDist(leftPivot, halfPivotDistance))\n return PART_ID_LEFT;\n if (object.includeUsingPrecompDist(rightPivot, halfPivotDistance))\n return PART_ID_RIGHT;\n\n // Definition of GH partitioning.\n if (leftPivot.getDistance(object) <= rightPivot.getDistance(object))\n return PART_ID_LEFT;\n else \n return PART_ID_RIGHT;\n }", "public String partitionKey() {\n return this.partitionKey;\n }", "public CreateStatementBuilder setPartitioning(Partitioning partitioning) {\n this.partitioning = partitioning;\n return this;\n }", "int getPartitionId();", "public interface Partitioner<ELEMENT, CLASS> {\n\n\t/**\n\t * @param obj\n\t * the Object to be assigned to a bucket\n\t * @return A key representing the bucket containing obj\n\t */\n\tpublic CLASS assignToBucket(ELEMENT obj);\n\n}", "@SuppressWarnings(\"FieldAccessNotGuarded\")\n @Override\n public int partitions()\n {\n return partitions.length;\n }", "String getPartitionName();", "String getPartitionName();", "@Override\r\n\tpublic int partitionFor(String elem, int numPartitions) {\n\t\t\r\n\t\tString arr[]=elem.split(\",\");\r\n\t\t\r\n\t if(arr[3].equals(\"Los Angeles\"))\r\n\t {\r\n\t \treturn 0;\r\n\t }\r\n\t else if(arr[3].equals(\"Phoenix\"))\r\n\t {\r\n\t \treturn 1;\r\n\t }\r\n\t else \r\n\t {\r\n\t \treturn 2;\r\n\t }\r\n\t \r\n\t\t\r\n\t}", "Node split() {\r\n\r\n // to do the split operation\r\n // to get the correct child to promote to the internal node\r\n int from = key_num() / 2 + 1, to = key_num();\r\n InternalNode sibling = new InternalNode();\r\n sibling.keys.addAll(keys.subList(from, to));\r\n sibling.children.addAll(children.subList(from, to + 1));\r\n\r\n keys.subList(from - 1, to).clear();\r\n children.subList(from, to + 1).clear();\r\n\r\n return sibling;\r\n }", "public SelectorForNumber[] divide(double divider) {\n SelectorForNumber[] result = new SelectorForNumber[2];\n switch(type) {\n case ALL_VALUES: {\n result[0] = getSelLE(attributeId, divider - delta);\n result[1] = getSelGT(attributeId, divider);\n break;\n }\n case BELONGS_RIGHT_INCLUDING: {\n if (divider == lowerLimit) {\n result[0] = null;\n result[1] = this;\n }\n else {\n if (divider > lowerLimit) {\n if (divider == upperLimit) {\n result[0] = getSelBelongs(attributeId, lowerLimit, divider - delta);\n result[1] = null;\n }\n else if (divider > upperLimit) {\n result[0] = this;\n result[1] = null;\n }\n else {\n // lowerLimit < divider < upperLimit\n result[0] = getSelBelongs(attributeId, lowerLimit, divider - delta);\n result[1] = getSelBelongs(attributeId, divider, upperLimit);\n }\n }\n else {\n // divider < lowerLimit\n result[0] = null;\n result[1] = this;\n }\n }\n break;\n }\n case EQUAL: {\n if (divider == lowerLimit)\n result[0] = this;\n break;\n }\n case GREATER_THAN: {\n if (divider == lowerLimit) {\n result[0] = null;\n result[1] = this;\n }\n else if (divider > lowerLimit) {\n result[0] = getSelBelongs(attributeId, lowerLimit, divider - delta);\n result[1] = getSelGT(attributeId, divider);\n }\n // else -> divider < lowerLimit, so there's no selector to return;\n break;\n }\n case LOWER_OR_EQUAL: {\n if (divider == upperLimit) {\n result[0] = getSelLE(attributeId, divider - delta);\n result[1] = null;\n }\n else if (divider < upperLimit) {\n result[0] = getSelLE(attributeId, divider - delta);\n result[1] = getSelBelongs(attributeId, divider, upperLimit);\n } \n // else -> divider > lowerLimit, so there's no selector to return;\n break;\n }\n case NONE_VALUE: { // Nothing to return.\n break;\n }\n }\n return result;\n }", "@Override\n protected ExactRelation rewriteWithPartition() {\n ExactRelation newSource = source.rewriteWithPartition();\n List<SelectElem> newElems = new ArrayList<SelectElem>();\n \n // Check if the newElems include star expressions. If so, we don't have to explicitly include\n // prob column and partition column.\n// boolean includeStar = false;\n \n for (SelectElem e : elems) {\n if (e.getExpr() instanceof StarExpr) {\n// includeStar = true;\n TableNameExpr tabExpr = ((StarExpr) e.getExpr()).getTab();\n List<ColNameExpr> col_names = source.getAssociatedColumnNames(tabExpr);\n for (ColNameExpr ce : col_names) {\n newElems.add(new SelectElem(vc, ce));\n }\n } else {\n newElems.add(e);\n }\n }\n \n // prob column (for point estimate and also for subsampling)\n newElems.add(new SelectElem(vc, source.tupleProbabilityColumn(), samplingProbabilityColumnName()));\n\n // partition column (for subsampling)\n newElems.add(new SelectElem(vc, newSource.partitionColumn(), partitionColumnName()));\n \n// // we manually insert the probability and partition (for subsampling) columns if the star expression\n// // is not placed on the table from which partition\n// if (includeStar == false) {\n// }\n\n ExactRelation r = new ProjectedRelation(vc, newSource, newElems);\n r.setAlias(getAlias());\n return r;\n\n // return rewriteWithPartition(false);\n }", "private int kthChild(int i, int k){\n return d * i + k;\n }", "public Integer getTargetPartition() {\n return 0;\n }", "public Boolean enablePartitioning() {\n return this.enablePartitioning;\n }", "Node split() {\r\n LeafNode Sibling = new LeafNode();\r\n int index = (branchingFactor + 1) / 2;\r\n int to = key_num();\r\n Sibling.keys.addAll(keys.subList(index, to));\r\n Sibling.values.addAll(values.subList(index, to));\r\n\r\n keys.subList(index, to).clear();\r\n values.subList(index, to).clear();\r\n\r\n\r\n // to make connections between the old node and the new node\r\n Sibling.next = next;\r\n Sibling.previous = this;\r\n // the current's next may be null so to check on that\r\n if (next != null) {\r\n next.previous = Sibling;\r\n }\r\n next = Sibling;\r\n\r\n return Sibling;\r\n }", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "@Nullable\n public final String getSplitterProportionKey() {\n return mySplitterProportionKey;\n }", "public final void rulePartition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:316:2: ( ( ( rule__Partition__Group__0 ) ) )\n // InternalMLRegression.g:317:2: ( ( rule__Partition__Group__0 ) )\n {\n // InternalMLRegression.g:317:2: ( ( rule__Partition__Group__0 ) )\n // InternalMLRegression.g:318:3: ( rule__Partition__Group__0 )\n {\n before(grammarAccess.getPartitionAccess().getGroup()); \n // InternalMLRegression.g:319:3: ( rule__Partition__Group__0 )\n // InternalMLRegression.g:319:4: rule__Partition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Partition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPartitionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Long getPartitions() {\n return this.Partitions;\n }", "public interface IPivotStrategy<T>\r\n{\r\n /**\r\n * Returns the index of the element selected as the pivot value\r\n * within the subarray between first and last (inclusive).\r\n * \r\n * @param arr the array in which to select the pivot\r\n * @param first beginning of the subarray\r\n * @param last end of the subarray\r\n * @param comp the comparator to be used\r\n * @return index of the element selected as the pivot value\r\n * @throws IllegalArgumentException if the length of the subarray\r\n * (last - first + 1) is less than the value returned by minLength().\r\n */\r\n int indexOfPivotElement(T[] arr, int first, int last, Comparator<? super T> comp);\r\n\r\n /**\r\n * Returns the minimum length of the subarray to which this \r\n * partitioning strategy can be applied.\r\n * \r\n * @return minimum size of the subarray required to apply this\r\n * pivot selection strategy\r\n */\r\n int minLength();\r\n\r\n /**\r\n * Returns the number of comparisons performed in the most recent call\r\n * to indexOfPivotElement\r\n * @return number of comparisons\r\n */\r\n int getComparisons();\r\n \r\n /**\r\n * Returns the number of swaps performed in the most recent call\r\n * to indexOfPivotElement. For algorithms that do not use swapping, \r\n * this method returns an estimate of swaps equivalent to one-third\r\n * the number of times that an array element was assigned.\r\n * @return equivalent number of swaps\r\n */\r\n int getSwaps();\r\n \r\n}", "private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }", "protected abstract K getEdgeKWeight(HyperEdge dt, HGNode parent_item);", "private int kthChild(int i, int k)\n {\n return d*i + k;\n }", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "public Map getPartitionMap(PartitionSet partitions);", "@Override\n public int getPartition(DateTemperaturePair pair, \n Text text, \n int numberOfPartitions) {\n return Math.abs(pair.getYearMonth().hashCode() % numberOfPartitions);\n }", "public Map getPartitionMap(int nPid);", "protected boolean hasPartitions()\n\t{\n\t\tboolean hasPartitions = false;\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\t\t \n\t\t\t\t\tfor (int j = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match) hasPartitions = match;\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: hasPartitions()=\"+hasPartitions);\n\t\t\n\t\treturn hasPartitions;\n\t}", "private int kthChild(int index, int k) {\n return 2 * index + k; // 2 = binary heap\n }", "@objid (\"39ac559b-a780-430a-9263-e90d757a900d\")\n public static SmDependency getSuperPartitionDep() {\n return SuperPartitionDep;\n }", "public AbstractPartitionStrategy(PartitionResolver<K> partitionResolver,\n\t\t\tPartitionKeyResolver<T, K> partitionKeyResolver) {\n\t\tthis.partitionResolver = partitionResolver;\n\t\tthis.partitionKeyResolver = partitionKeyResolver;\n\t}", "protected void setPartitioner(final Partitioner partitioner) {\n\t\tthis.partitioner = partitioner;\n\t}", "public void subdivide() {\n\t\tif (!divided) {\n\t\t\tdivided = true;\n\t\t\t\n\t\t\t// Calculate the width and height of the sub nodes\n\t\t\tint width = (int) Math.ceil(boundary.width/2.0) + 1;\n\t\t\tint height = (int) Math.ceil(boundary.height/2.0) + 1;\n\t\t\t\n\t\t\t// Create ArrayList for the nodes and insert them\n\t\t\tnodes = new ArrayList<QuadTreeNode<E>>();\n\t\t\t\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y + height, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y + height, height, width));\n\t\t\t\n\t\t\t// Take all the points and insert them into the best sub node\n\t\t\tfor (Point p : points.keySet()) {\n\t\t\t\tQuadTreeNode<E> q = this.getBestQuad(p);\n\t\t\t\tq.add(p, points.get(p));\n\t\t\t}\n\t\t\t\n\t\t\tpoints = null;\n\t\t}\n\t}", "public List<Partition> getPartitions() {\n return partitions;\n }", "public abstract int getDividerLocation(JSplitPane jc);", "public String partitionKey() {\n return partitionKey;\n }", "@Override\n\t\tpublic int getPartition(IntPair key, Text value, int numPartitions) {\n\t\t\tSystem.out.println(\"get partition run\");\n\t\t\treturn ((key.id.hashCode() & Integer.MAX_VALUE) % numPartitions);\n\t\t}", "public int getPartitionSize() {\n\t\treturn partitionSize;\n\t}", "@Column(name = \"SPLIT_PERCENTAGE\")\r\n @Audited\r\n public Integer getSplitPercentage() {\r\n return splitPercentage;\r\n }", "public int getNumPartitions() {\n return numPartitions;\n }", "public static LinkedListNode partition(LinkedListNode node, int partitionValue) {\n\n\t\t// pointers for left/before partition\n\t\tLinkedListNode leftStart = null;\n\t\tLinkedListNode leftEnd = null;\n\n\t\t// pointers for right/after partition\n\t\tLinkedListNode rightStart = null;\n\t\tLinkedListNode rightEnd = null;\n\n\t\twhile (node != null) {\n\t\t\tLinkedListNode next = node.next;\n\n\t\t\t// set remove pointer to next\n\t\t\tnode.next = null;\n\n\t\t\t// check data on node and determine if node goes BEFORE partitionValue or AFTER\n\t\t\tif (node.data < partitionValue) {\n\t\t\t\t// set beforeStart and afterStart\n\t\t\t\tif (leftStart == null) {\n\t\t\t\t\tleftStart = node;\n\t\t\t\t\tleftEnd = leftStart; // point to same instance of the LinkedListNode\n\t\t\t\t} else {\n\t\t\t\t\tleftEnd.next = node; // set link to next node\n\t\t\t\t\tleftEnd = node; // move pointer to last node\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t// set afterStart and afterEnd\n\t\t\t\tif (rightStart == null) {\n\t\t\t\t\trightStart = node;\n\t\t\t\t\trightEnd = rightStart;\n\t\t\t\t} else {\n\t\t\t\t\trightEnd.next = node; // set link to next node\n\t\t\t\t\trightEnd = node; // move pointer to last node\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Assign instance of 'next' to 'node'\n\t\t\tnode = next;\n\t\t}\n\n\t\tif (leftStart == null) {\n\t\t\treturn rightStart;\n\t\t}\n\n\t\tleftEnd.next = rightStart;\n\t\treturn leftStart;\n\n\t}", "@Override\n\t\tpublic int getPartition(TextPair key, IntWritable value, int numPartitions) {\n\t\t\treturn (key.getFirst().hashCode() & Integer.MAX_VALUE) % numPartitions;\n\t\t\t//la \"& Integer.MAX_VALUE\" viene fatto per essere sicuro il valore ritornato sia positivo\n\t\t}", "public static ValueRange[] designPartitions (SampleableTupleReader tupleReader, int partitioningColumnIndex, int numPartitions, int sampleSize) throws IOException {\n ColumnType type = tupleReader.getColumnType(partitioningColumnIndex);\n EquiWidthPartitioner<?, ?> partitioner;\n switch(type) {\n case DATE:\n case TIME:\n case TIMESTAMP:\n case BIGINT: partitioner = new EquiWidthPartitioner<Long, long[]>(type); break;\n case DOUBLE: partitioner = new EquiWidthPartitioner<Double, double[]>(type); break;\n case FLOAT: partitioner = new EquiWidthPartitioner<Float, float[]>(type); break;\n case INTEGER: partitioner = new EquiWidthPartitioner<Integer, int[]>(type); break;\n case SMALLINT: partitioner = new EquiWidthPartitioner<Short, short[]>(type); break;\n case BOOLEAN:\n case TINYINT: partitioner = new EquiWidthPartitioner<Byte, byte[]>(type); break;\n case VARBINARY: throw new IllegalArgumentException(\"partitioning by VARBINARY column is not supported\");\n case VARCHAR: partitioner = new EquiWidthPartitioner<String, String[]>(type); break;\n\n default:\n throw new IOException (\"Unexpected column type:\" + type);\n }\n \n return partitioner.design(tupleReader, partitioningColumnIndex, numPartitions, sampleSize);\n }", "@Override\n public int getPartitionsCount() {\n return 2;\n }", "public KdNode(final BoundingBox box, final int splitType) {\n this.box = Objects.requireNonNull(box);\n children = new KdNode[2];\n this.splitType = splitType;\n tri = null;\n crossingTriangles = new HashSet<>();\n }", "public int getPartition(Integer item) {\n if ((position == 0) && (item == 0)) {\n return (1);\n }\n //item does not have position-th digit from left.\n if (item < min) {\n return (0);\n }\n\n //keep dividing till the position-th digit is the LSD\n while (item >= stop) {\n item /= 10;\n }\n\n //extract LSD and return\n return ((item % 10) + 1);\n }", "@Override\n public Point[] chooseCentroids(AbstractCluster self) {\n if (K!=2) {\n System.err.println(\"The used splitter is not suppose to be used with K>2. This program will shut down\"); //#like\n exit(1);\n }\n Point[] result={self.get(0),self.get(0)};\n double max=0;\n for (int i=0; i<self.size(); ++i)\n for (int j=0; j<i; ++j)\n if (max<_distances.get(self.get(i).getId(),self.get(j).getId())) {\n max=_distances.get(self.get(i).getId(),self.get(j).getId());\n result[0]=self.get(i);\n result[1]=self.get(j);\n }\n return result;\n }", "private void getPartition(PointList customers){\n\t\t\n\t\tsplitByQuadrant(customers);\n\t\tsplitByLine(customers);\n\t\t\n\t}", "public LiteralValuePartitionAlgorithm(String propertyName) {\n\t\tsuper();\n\t\tthis.propertyName = propertyName;\n\t}", "public VirtualDataSet[] partitionByNominallAttribute(int attributeIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\t\tString [] category = source.getUniqueAttributeValues(attributeIndex); \t\t\t\t\t\t//find unique element to split \n\t\tVirtualDataSet [] partitions = new VirtualDataSet[category.length ]; \t\t\t\t\t\t// determine number of split path \n\t\tAttribute [] subset = new Attribute[source.numAttributes-1]; \n\n\t\tfor(int i =0; i<attributeIndex; i++){\n subset[i] = source.getAttribute(i); \t\t\t\t\t\t\t\t\t\t\t\t\t// create a subset to eliminate the split attribute\n } \n for(int i = attributeIndex+1; i<source.numAttributes; i++){\n subset[i-1] = source.getAttribute(i);\n }\n\n\t\tfor(int i = 0; i < partitions.length;i++){ \n\t\t\tLinkedList<Integer> rows = new LinkedList<Integer> (); \t\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows \n\t\t\tint count = 0; \n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\tif(category[i].equals(source.getValueAt(j, attributeIndex))){\n\t\t\t\t\trows.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcount++; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\t\t\tint[] partitionRows = new int[count]; \n\t\t\tfor(int k = 0; k < count; k++){\n\t\t\t\tpartitionRows[k] = rows.poll(); \t\t\t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\n\t\t\tpartitions[i] = new VirtualDataSet(source,partitionRows,subset); \t\t\t\t\t\t// send partition to VirtualDataSet constructor \n\n\t\t}\n\t\treturn partitions;\n\n\t\t// for each partition we need 1. orginal rows index[] 2. unique attribute \n\t\t// Where to split \n\t\t// for each path, i have to know the original position of row (1 partition at time)\n\t\t// I need to know rest attribute value and record the unique (this need to be recaculate)\n\t}", "public PartitionType getPartitionType() {\n\t\treturn partitionType;\n\t}", "public StrippedPartition(Object2ObjectOpenHashMap<Object, LongBigArrayBigList> partition) {\n this.strippedPartition = new ObjectBigArrayBigList<LongBigArrayBigList>();\n this.elementCount = 0;\n\n //create stripped partitions -> only use equivalence classes with size > 1.\n for (LongBigArrayBigList eqClass : partition.values()) {\n if (eqClass.size64() > 1) {\n strippedPartition.add(eqClass);\n elementCount += eqClass.size64();\n }\n }\n this.calculateError();\n }", "private int first_leaf() { return n/2; }", "public QuickSort(Partitionable<T> part)\n {\n partAlgo = part;\n MIN_SIZE = 3;\n }", "@Override\n public boolean getIsPartitionKey() {\n return isPartitionKey_;\n }", "public abstract int getMinimumDividerLocation(JSplitPane jc);", "@Override\n public boolean getIsPartitionKey() {\n return isPartitionKey_;\n }", "public int chooseDimension(ArrayList<double[]> partition){\n\t\t// setting max values to a default value\n\t\tint maxDim = -1;\n\t\tdouble maxWidth = 0;\n\t\t\n\t\t/*\n\t\t* for each dimension calculate the width and get the maximum of all the widths\n\t\t*/\n\t\tfor(int i = 0; i < partition.get(0).length; i++){\n\t\t\tdouble width = getWidth(partition, i);\n\t\t\tif(width > maxWidth){\n\t\t\t\tmaxWidth = width;\n\t\t\t\tmaxDim = i;\n\t\t\t}\n\t\t}\n\t\treturn maxDim;\n\t}", "public int numPartitions() {\n return (11);\n }", "public void setFirstPartition(Partition partition)\n\t{\n\t\tfirstPartition = partition;\n\t}", "public partition(String partition, int max_size){\n //max_size is the maximum number of Objects, NOT max bytes\n String[] keyTypes = partition.split(\"\\\\s+\"); //separted by any white space\n \n List<String> listStringKeys = new ArrayList<String>();\n List<String> listLongKeys = new ArrayList<String>();\n List<String> listDoubleKeys = new ArrayList<String>();\n List<String> listBoolKeys = new ArrayList<String>();\n \n for(int i = 0; i < keyTypes.length; i++){\n String[] parts = keyTypes[i].split(separator);\n if(parts[1].equals(\"STRING\"))\n listStringKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"LONG\"))\n listLongKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"DOUBLE\"))\n listDoubleKeys.add(keyTypes[i]);\n else if(parts[1].equals(\"BOOL\"))\n listBoolKeys.add(keyTypes[i]);\n }\n \n keyForString = listStringKeys.toArray(new String[listStringKeys.size()]);\n keyForLong = listLongKeys.toArray(new String[listLongKeys.size()]);\n keyForDouble = listDoubleKeys.toArray(new String[listDoubleKeys.size()]);\n keyForBool = listBoolKeys.toArray(new String[listBoolKeys.size()]);\n \n longValues = new long[max_size];\n doubleValues = new double[max_size];\n booleanValues = new byte[max_size];\n stringValues = new long[max_size];\n \n objectIds= new int[max_size];\n numObject = 0;\n UndefByte[0] = -1;\n }", "public Map<String, PartitionGroupConfig<?>> getPartitionGroups() {\n return partitionGroups;\n }", "public final void rule__Partition__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1774:1: ( ( ':' ) )\n // InternalMLRegression.g:1775:1: ( ':' )\n {\n // InternalMLRegression.g:1775:1: ( ':' )\n // InternalMLRegression.g:1776:2: ':'\n {\n before(grammarAccess.getPartitionAccess().getColonKeyword_1()); \n match(input,23,FOLLOW_2); \n after(grammarAccess.getPartitionAccess().getColonKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private java.util.List<Node> divideEvenly(Slice.D d, String prefix, String[] names, int n, float p) {\n\t\tjava.util.List<Node> return_value = new ArrayList<Node>();\n\t\tfor(Node node : selected_nodes) {\n\t\t\treturn_value.addAll(node.divideEvenly(d, prefix, names, n, p));\n\t\t}\n\t\treturn return_value;\n\t}", "@Test\n public void partitionCorrectness() {\n List<Integer> ns = new Node<>(5, new Node<>(3,\n new Node<>(7, new Node<>(1, new Empty<>()))));\n List<Integer> empty = new Empty<>();\n assertFalse(DP.bupartition(ns, 2));\n assertTrue(DP.bupartition(ns, 8));\n assertTrue(DP.bupartition(ns, 6));\n assertTrue(DP.bupartition(ns,4));\n assertTrue(DP.bupartition(ns,11));\n assertFalse(DP.bupartition(empty, 6));\n }", "public Map<V, Set<V>> getVertexToPartitionMap() {\n\t\tif (vertex_partition_map == null) {\n\t\t\tthis.vertex_partition_map = new HashMap<V, Set<V>>();\n\t\t\tfor (Set<V> set : this.vertex_sets) {\n\t\t\t\tfor (V v : set) {\n\t\t\t\t\tthis.vertex_partition_map.put(v, set);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn vertex_partition_map;\n\t}", "ScaleStrategyConfig getScaleStrategyConfig();", "@Test\n public void testMultiLevelPartitionPruning() throws SqlParseException {\n\n val project = \"multi_level_partition\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n val expectedRanges = Lists.<Pair<String, String>> newArrayList();\n val segmentRange1 = Pair.newPair(\"2012-01-01\", \"2012-01-02\");\n val segment1Uuid = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\";\n val segmentRange2 = Pair.newPair(\"2012-01-02\", \"2012-01-03\");\n val segment2Uuid = \"d75a822c-788a-4592-a500-cf20186dded1\";\n val segmentRange3 = Pair.newPair(\"2012-01-03\", \"2012-01-04\");\n val segment3Uuid = \"54eaf96d-6146-45d2-b94e-d5d187f89919\";\n val segmentRange4 = Pair.newPair(\"2012-01-04\", \"2012-01-05\");\n val segment4Uuid = \"411f40b9-a80a-4453-90a9-409aac6f7632\";\n val segmentRange5 = Pair.newPair(\"2012-01-05\", \"2012-01-06\");\n val segment5Uuid = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\";\n val expectedPartitionMap = Maps.<String, List<Long>> newHashMap();\n\n val sqlBase = \"select cal_dt, sum(price) from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \";\n\n // no filter\n val noFilterSql = sqlBase + \"group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedRanges.add(segmentRange4);\n expectedRanges.add(segmentRange5);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L, 2L, 3L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(0L, 1L, 2L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L, 2L, 3L));\n expectedPartitionMap.put(segment4Uuid, Lists.newArrayList(0L, 1L));\n expectedPartitionMap.put(segment5Uuid, Lists.newArrayList(2L, 3L));\n assertPrunedSegmentsRange(project, noFilterSql, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val andSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 group by cal_dt\";\n val andMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n val andMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-04' and lstg_site_id = 1 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, andSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, andMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val notInSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) group by cal_dt\";\n val notInMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n val notInMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-02' and cal_dt < '2012-01-04' and lstg_site_id not in (0, 2, 3) and lstg_format_name not in ('FP-GTC', 'ABIN', 'Auction') group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n expectedPartitionMap.clear();\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L));\n expectedPartitionMap.put(segment3Uuid, Lists.newArrayList(1L));\n assertPrunedSegmentsRange(project, notInSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, notInMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n // return empty data case\n val emptyData = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 group by cal_dt\";\n val emptyDataMapping = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'not_exist_name' group by cal_dt\";\n val emptyDataMix = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 5 and lstg_format_name = 'not_exist_name' group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n assertPrunedSegmentsRange(project, emptyData, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMapping, dfId, expectedRanges, -1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, emptyDataMix, dfId, expectedRanges, -1L, expectedPartitionMap);\n\n // query data out of current built segments range\n val inSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) group by cal_dt\";\n val inMappingSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n val inMixSql0 = sqlBase\n + \"where cal_dt > '2011-12-30' and cal_dt < '2012-01-03' and lstg_site_id in (1, 2) and lstg_format_name in ('FP-non GTC', 'ABIN') group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(1L, 2L));\n expectedPartitionMap.put(segment2Uuid, Lists.newArrayList(1L, 2L));\n assertPrunedSegmentsRange(project, inSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMappingSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n assertPrunedSegmentsRange(project, inMixSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n\n val pushDownSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 group by cal_dt\";\n assertNoRealizationFound(project, pushDownSql0);\n\n val pushDownMappingSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMappingSql0);\n\n val pushDownMixSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03' and lstg_site_id = 3 and lstg_format_name = 'Auction' group by cal_dt\";\n assertNoRealizationFound(project, pushDownMixSql0);\n\n // return empty result\n val wrongMapping0 = sqlBase\n + \"where cal_dt between '2012-01-01' and '2012-01-02' and lstg_site_id = 0 and lstg_format_name = 'FP-non GTC' group by cal_dt\";\n assertPrunedSegmentsRange(project, wrongMapping0, dfId, null, -1L, null);\n\n val orSql0 = sqlBase\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-02' and (lstg_site_id = 0 or lstg_format_name = 'FP-non GTC') group by cal_dt\";\n expectedRanges.clear();\n expectedPartitionMap.clear();\n expectedRanges.add(segmentRange1);\n expectedPartitionMap.put(segment1Uuid, Lists.newArrayList(0L, 1L));\n assertPrunedSegmentsRange(project, orSql0, dfId, expectedRanges, 1L, expectedPartitionMap);\n }", "String getPartitionKey(int index);", "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }" ]
[ "0.56680423", "0.5614278", "0.55831575", "0.5509241", "0.5476469", "0.5404085", "0.53876793", "0.5328617", "0.52764106", "0.5264841", "0.52322084", "0.51940995", "0.51316124", "0.5063029", "0.50545615", "0.505447", "0.5042254", "0.5037644", "0.50320417", "0.50238144", "0.4972211", "0.4960072", "0.49503446", "0.49328467", "0.4931084", "0.49305925", "0.4929466", "0.4925848", "0.49048862", "0.4893481", "0.487647", "0.48560575", "0.48550507", "0.484612", "0.48333564", "0.48328218", "0.48328218", "0.48221743", "0.48165697", "0.48071483", "0.48003453", "0.47932962", "0.47797704", "0.47369143", "0.4731991", "0.47140783", "0.47086576", "0.46836728", "0.46723694", "0.4671354", "0.46653172", "0.46608835", "0.46586934", "0.46417645", "0.46389484", "0.46302322", "0.46172866", "0.46163154", "0.4615495", "0.46044967", "0.4601065", "0.45972148", "0.45952147", "0.4590991", "0.4583197", "0.45818114", "0.4574465", "0.45531544", "0.45470616", "0.45459935", "0.45419598", "0.45272788", "0.45141894", "0.45141208", "0.4497327", "0.44954142", "0.4485262", "0.44843814", "0.4483045", "0.44824427", "0.44787228", "0.44770613", "0.44698384", "0.44563007", "0.44552904", "0.44521874", "0.44504815", "0.44429177", "0.44364935", "0.44313413", "0.44241098", "0.44234556", "0.4420182", "0.44171414", "0.44128546", "0.44015986", "0.4396977", "0.4392979", "0.43919876", "0.43805194" ]
0.7406966
0
Returns the change in string format using fewest number of coins
public static String getChange(int amount){ String result = ""; for (Coins c : Coins.values()) { if(amount >= c.value()){ int numberOfCoins = amount / c.value(); amount = amount % c.value(); result += c + " : " + numberOfCoins + "\n"; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n Solution solution = new Solution();\n\n int[] coins = null;\n int amount = 0;\n int expected = 0;\n int answer = 0;\n String format = \"%s, %d -> %d (%d)\";\n\n // [1, 2, 5], 11 -> 3\n coins = new int[]{1, 2, 5};\n amount = 11;\n expected = 3;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n // [2], 3 -> -1\n coins = new int[]{2};\n amount = 3;\n expected = -1;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n // [1, 2, 5], 21 -> 5\n coins = new int[]{1, 2, 5};\n amount = 21;\n expected = 5;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n // [2, 7, 8, 10], 29 -> 4\n coins = new int[]{2, 7, 8, 10};\n amount = 29;\n expected = 4;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n // [2, 5, 10, 1], 27 -> 4\n coins = new int[]{2, 5, 10, 1};\n amount = 27;\n expected = 4;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n // [186, 419, 83, 408], 6249 -> 20\n coins = new int[]{186, 419, 83, 408};\n amount = 6249;\n expected = 20;\n answer = solution.coinChange(coins, amount);\n System.out.println(String.format(format, coins, amount, expected, answer));\n\n }", "public String toString()\n {\n\tint c = coinCounter();\n\treturn \"$\" + c / 100 + \".\" + c % 100;\n }", "@Override\n public String solve() {\n\n long firstCoin = 1504170715041707L;\n long modValue = 4503599627370517L;\n //System.out.println(\"Second Coin \" + (firstCoin - (4503599627370517L % firstCoin)));\n long secondCoin = firstCoin - (modValue % firstCoin);\n long ans = firstCoin + secondCoin;\n while(secondCoin > 1) {\n modValue = firstCoin;\n firstCoin = secondCoin;\n secondCoin = firstCoin - (modValue % firstCoin);\n //System.out.println(secondCoin);\n ans += secondCoin;\n }\n return Long.toString(ans);\n }", "public static String makeChange(String purchaseInfo) {\n String[] purchaseInfoArr = purchaseInfo.split(\";\");\n double purchasePrice = Double.parseDouble(purchaseInfoArr[0]);\n double cashGiven = Double.parseDouble(purchaseInfoArr[1]);\n\n if (cashGiven < purchasePrice) {\n return \"ERROR\";\n }\n\n if (cashGiven == purchasePrice) {\n return \"ZERO\";\n }\n\n StringBuilder strBuilder = new StringBuilder();\n double change = cashGiven - purchasePrice;\n\n while (change > 0) {\n change = new BigDecimal(change).setScale(2, RoundingMode.HALF_UP).doubleValue();\n double coinValue = coinValueMap.floorKey(change);\n\n change -= coinValue;\n if (change == 0) {\n strBuilder.append(coinValueMap.get(coinValue));\n } else {\n strBuilder.append(coinValueMap.get(coinValue)).append(\",\");\n }\n }\n return strBuilder.toString();\n }", "public int giveChange(Coin coinType)\n {\n numberofcoins = 0;\n while(balance> coinType.getValue()-1E-12){\n numberofcoins++;\n balance = balance - coinType.getValue();\n }\n System.out.println(balance);\n System.out.println(numberofcoins);\n return numberofcoins;\n }", "private static void getChange(double money, double prize) {\n\t\tdouble difference = money-prize;\n\t\tdouble[] denominations = {0.01,0.05,0.10,0.25,0.50,1};\n\t\tint[] count = new int[denominations.length];\n\t\twhile(difference>0){\n\t\t\tint max = getMaxDenominationToDivide(denominations,difference);\n\t\t\tdifference -= denominations[max];\n\t\t\tdifference = (double)Math.round(difference*100)/100;\n\t\t\tcount[max] = count[max]+1;\n\t\t}\n\t\tSystem.out.print(\"[\");\n\t\tfor(int i = 0 ; i < count.length;i++){\n\t\t\tSystem.out.print(count[i]);\n\t\t\tif(i!=count.length-1)\n\t\t\t\tSystem.out.print(\",\");\n\t\t}\n\t\tSystem.out.print(\"]\");\n\t}", "@Override\n public int howManyCoins() {\n return 7;\n }", "@Override\n public Change returnChange() {\n Change change = new Change();\n BigDecimal moneyInPennies = totalMoney.multiply(new BigDecimal(\"100\"));\n Integer moneyInPenniesInt = moneyInPennies.intValueExact();\n Integer remainingPennies = moneyInPenniesInt;\n\n// to keep track of how much $ will be returned in change \n change.setTotalChange(totalMoney);\n\n change.setNumQuarters(remainingPennies / 25);\n remainingPennies = remainingPennies % 25;\n change.setNumDimes(remainingPennies / 10);\n remainingPennies = remainingPennies % 10;\n change.setNumNickels(remainingPennies / 5);\n remainingPennies = remainingPennies % 5;\n change.setNumPennies(remainingPennies);\n\n totalMoney = new BigDecimal(\"0\");\n userChoice = null;\n return change;\n }", "private void calcCoins() {\n\t\tint changeDueRemaining = (int) Math.round((this.changeDue - (int) this.changeDue) * 100);\n\n\t\tif (changeDueRemaining >= 25) {\n\t\t\tthis.quarter += changeDueRemaining / 25;\n\t\t\tchangeDueRemaining = changeDueRemaining % 25;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.dime += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.nickel += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.penny += changeDueRemaining / 1;\n\t\t}\n\t}", "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }", "public int coinChange(int[] coins, int amount) {\n Arrays.sort(coins); // greedy. Iterate from largest value\n \n int[] ans = new int[]{Integer.MAX_VALUE};\n helper(coins.length - 1, coins, amount, 0, ans);\n \n return ans[0] == Integer.MAX_VALUE ? -1 : ans[0];\n }", "private static String CalstealCoin(int[] arr) {\n\t\tString ans = \"Impossible\";\n\t\tint n=arr.length;\n\t\tArrayList<Double>al = new ArrayList<Double>();\n\t\tlong sum=0;\n\t\tfor(int num:arr){\n\t\t\tal.add((double) num);\n\t\t\tsum=sum+num;\n\t\t}\n\t\t//System.out.println(sum);\n\t\tdouble val=(((double)sum/n)*(n-1));\n\t\t//System.out.println(val);\n\t\tdouble val2=sum-val;\n\t\t//System.out.println(val2);\n\t\t//System.out.println(al);\n\t\tif(al.contains(val2)){\n\t\t\treturn String.valueOf(al.indexOf(val2)+1);\n\t\t}\n\t\treturn ans;\n\t}", "private static int getChange(int m) {\n int[] change = new int[m+1];\n int[] coins = {1, 3, 4};\n for(int i = 1; i <= m; i++){\n \tchange[i] = Integer.MAX_VALUE;\n \tfor(int j = 0; j < 3; j++){\n \t\tif(i >= coins[j]){\n \t\t\tint temp = change[i-coins[j]] + 1;\n \t\t\tif (temp < change[i])\n \t\t\t\tchange[i] = temp;\n \t\t}\n \t}\n }\n return change[m];\n }", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "public String findMinimumChangeString(String currency, String amount) throws InvalidInputException {\n HashMap<String, String> coinChangeMap = getCurrencyBuilder().computeAmountDenoms(currency, amount);\n StringBuffer returnBuffer = new StringBuffer(\"\");\n coinChangeMap.forEach((denomination, count) ->\n returnBuffer.append(count).append(\" x \").append(denomination).append(\", \"));\n if (returnBuffer.length() > 0) {\n return returnBuffer.substring(0, returnBuffer.length() - 2);\n } else {\n throw new InvalidInputException(\"No change could be calculated for \" + amount + \" with currency \" + currency);\n }\n }", "public int change(int amount, int[] coins) {\n int[] combinations = new int [amount + 1];\n combinations[0] = 1;\n for (int coin : coins) {\n for (int intermediateAmount = coin; intermediateAmount <= amount; intermediateAmount++) {\n combinations[intermediateAmount] += combinations[intermediateAmount - coin];\n }\n }\n return combinations[amount];\n }", "public static double getChange(int cashTend, double amountOwed) {\n\t\t\n\t\t//variables \n\t\tdouble Quarters = .25;\n\t\tdouble Dimes = .10;\n\t\tdouble Nickel = .05;\n\t\tdouble Pennies = .01;\n\t\t\n\t\t//calculate the change and round it\n\t\tdouble change = ( (double)((int) Math.round((cashTend - amountOwed)*100)) / 100.0);\n\t\t\n\t\t//calculate the modulus of quarter, dimes, nickels and pennies\n\t\tdouble mdQuarters = ((double)((int) Math.round((change % Quarters)*100)) / 100);\n\t\tdouble mdDimes = ((double)((int) Math.round((mdQuarters % Dimes)*100)) / 100);\n\t\tdouble mdNickel = ((double)((int) Math.round((mdQuarters % Nickel)*100)) / 100);\n\t\tdouble mdPennies = ((double)((int) Math.round((mdQuarters % Pennies)*100)) / 100);\n\t\t\n\t\t//getting the coins here and casted to int\n\t\tint cQuarters = (int) ((change - mdQuarters) / (Quarters));\n\t\tint cDimes = (int) ((mdQuarters - mdDimes) / (Dimes));\n\t\tint cNickel = (int) ((mdDimes - mdNickel) / (Nickel));\n\t\tint cPennies = (int) ((mdNickel - mdPennies) / (Pennies));\n\t\t\n\t\t//printing out changedue, quarters, dimes, nickel, pennies\n\t\tSystem.out.println(\"ReturnChange:\" +change);\n\t\tSystem.out.println(\"Quarters:\" +cQuarters);\n\t\tSystem.out.println(\"Dimes:\" +cDimes);\n\t\tSystem.out.println(\"Nickels:\" +cNickel);\n\t\tSystem.out.println(\"Pennies:\" +cPennies);\n\t\t\n\t\t//return value\n\t\treturn change;\n\t\n\t}", "public int coinChange(int[] coins, int amount) {\n if (amount < 1) return 0;\n return helper(coins, amount, new int[amount + 1]);\n }", "public int coinChange(int[] coins, int amount) {\n int[] f = new int[amount + 1];\n return search(coins, amount, f);\n }", "public int coinChange(int[] coins, int amount) {\n int[] num = new int[amount + 1];\n Arrays.fill(num, Integer.MAX_VALUE);\n // initial num\n num[0] = 0;\n for (int coin : coins) {\n if (coin <= amount)\n num[coin] = 1;\n }\n\n for (int i = 1; i <= amount; i++) {\n for (int coin : coins) {\n if (i - coin > 0 && 1 + num[i - coin] > 0) { // prevent int become negative\n num[i] = Math.min(num[i - coin] + 1, num[i]);\n }\n }\n }\n\n return num[amount] == Integer.MAX_VALUE ? -1 : num[amount];\n }", "public int coinChange(int[] coins, int amount) {\n int[][] dp = new int[coins.length + 1][amount + 1];\n // base case\n Arrays.fill(dp[coins.length], Integer.MAX_VALUE);\n dp[coins.length][0] = 0;\n // induction rule\n for (int i = coins.length - 1; i >= 0; i--) {\n for (int j = 0; j <= amount; j++) {\n dp[i][j] = dp[i + 1][j];\n int maxK = j / coins[i];\n // Notice 1: k must start from 1, because j - coins[i] might be less than 0.\n for (int k = 1; k <= maxK; ++k) {\n int prev = dp[i + 1][j - k * coins[i]];\n if (prev < Integer.MAX_VALUE) {\n // Notice 2: must explicity compare prev with MAX_VALUE,\n // because if prev is MAX, prev + k will become to MIN_VALUE\n dp[i][j] = Integer.min(dp[i][j], prev + k);\n }\n }\n }\n }\n return dp[0][amount] == Integer.MAX_VALUE ? -1 : dp[0][amount];\n }", "public int coinChange(int[] coins, int amount) {\n int max = amount + 1; \n int[] dp = new int[amount + 1]; \n Arrays.fill(dp, max); \n dp[0] = 0; \n for (int i = 1; i <= amount; i++) {\n for (int j = 0; j < coins.length; j++) {\n if (coins[j] <= i) {\n dp[i] = Math.min(dp[i], dp[i - coins[j]] + 1);\n }\n }\n }\n return dp[amount] > amount ? -1 : dp[amount];\n }", "public int getCoinsNum();", "public int change(int amount, int[] coins) {\n if(coins == null) {\n return 0;\n }\n int[][] dp = new int[coins.length + 1][amount + 1];\n int m = dp.length, n = dp[0].length;\n for(int i = 0; i < m; i++) {\n dp[i][0] = 1;\n }\n for(int i = 1; i < m; i++){\n for(int j = 1; j < n; j++) {\n if(j < coins[i - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i - 1][j] + dp[i][j - coins[i - 1]];\n }\n }\n }\n return dp[m - 1][n - 1];\n }", "public static int coins(int n) {\n int[] coins = {1,5,10,25};\n int[] s = new int[n+1];\n for(int i=1; i<=n; i++) {\n for(int j=0; j<coins.length && j<=i; j++) {\n if(i-coins[j] == 0) {\n s[i]++;\n }\n if(i-coins[j] > 0) {\n s[i] += s[i-coins[j]];\n }\n }\n }\n return s[n];\n }", "private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public int coinChange(int[] coins, int amount) {\r\n if (coins == null || coins.length == 0)\r\n return -1;\r\n\r\n if (amount <= 0)\r\n return 0;\r\n\r\n int dp[] = new int[amount + 1];\r\n for (int i = 1; i < dp.length; i++) {\r\n dp[i] = Integer.MAX_VALUE;\r\n }\r\n\r\n for (int am = 1; am < dp.length; am++) {\r\n for (int i = 0; i < coins.length; i++) {\r\n if (coins[i] <= am) {\r\n int sub = dp[am - coins[i]];\r\n if (sub != Integer.MAX_VALUE)\r\n dp[am] = Math.min(sub + 1, dp[am]);\r\n }\r\n }\r\n }\r\n return dp[dp.length - 1] == Integer.MAX_VALUE ? -1 : dp[dp.length - 1];\r\n }", "private void countChange() {\n /* To make 0.00, we use 0 coins. */\n myIndices[0] = 0;\n \n /* \n * Work from subproblem $0.01 to target. \n * Because subproblems overlap, we will\n * store them and use them dynamically.\n */\n for (int curr = 1; curr <= myTarget; curr++) {\n /* \n * Adds one coin (current-next used) to\n * the preemptive minimum coins needed.\n */\n myIndices[curr] = getMinPrior(curr) + 1;\n }\n \n myMinCoins = myIndices[myTarget];\n }", "private double calculateMoneyInserted() {\r\n double amount = 0.0;\r\n\r\n for(VendingMachine.Coin coin : coins) {\r\n amount += coin.amount();\r\n }\r\n return amount;\r\n }", "@Test\n public void testMakeChange() {\n\n //setting a variable for the amount of change the user should get back\n BigDecimal changeDue = new BigDecimal(\"3.19\");\n\n //creating map to store the results of the makeChange() method\n Map<Coin, BigDecimal> changeReturned = new HashMap<>();\n\n changeReturned = dao.makeChange(changeDue);\n\n //creating a variable to store the amount returned from the makeChange()\n // as a BigDecimal\n BigDecimal changeReturnedAsBigDecimal = BigDecimal.ZERO;\n\n BigDecimal quarter = new BigDecimal(\"0.25\");\n BigDecimal dime = new BigDecimal(\"0.10\");\n BigDecimal nickel = new BigDecimal(\"0.05\");\n BigDecimal penny = new BigDecimal(\"0.01\");\n\n BigDecimal numberOfQuarters;\n BigDecimal numberOfDimes;\n BigDecimal numberOfNickels;\n BigDecimal numberOfPennies;\n\n BigDecimal valueOfQuartersDispensed;\n BigDecimal valueOfDimesDispensed;\n BigDecimal valueOfNickelsDispensed;\n BigDecimal valueOfPenniesDispensed; \n\n //calculating the number of quarters that should be returned\n numberOfQuarters = changeDue.divide(quarter);\n //calculating the value of the quarters returned\n valueOfQuartersDispensed = numberOfQuarters.setScale(0, RoundingMode.DOWN).multiply(quarter);\n //calculating how much change is left to be dispensed after quarters\n BigDecimal changeAfterQuarters = changeDue.subtract(valueOfQuartersDispensed);\n \n //adding the value of the quarters returned\n changeReturnedAsBigDecimal = changeReturnedAsBigDecimal.add(valueOfQuartersDispensed);\n\n //dimes\n numberOfDimes = changeAfterQuarters.divide(dime);\n valueOfDimesDispensed = numberOfDimes.setScale(0, RoundingMode.DOWN).multiply(dime);\n\n BigDecimal changeAfterDimes = changeAfterQuarters.subtract(valueOfDimesDispensed);\n \n changeReturnedAsBigDecimal = changeReturnedAsBigDecimal.add(valueOfDimesDispensed);\n \n //nickels\n numberOfNickels = changeAfterDimes.divide(nickel);\n valueOfNickelsDispensed = numberOfNickels.setScale(0, RoundingMode.DOWN).multiply(nickel);\n\n BigDecimal changeAfterNickels = changeAfterDimes.subtract(valueOfNickelsDispensed);\n \n changeReturnedAsBigDecimal = changeReturnedAsBigDecimal.add(valueOfNickelsDispensed);\n \n //pennies\n numberOfPennies = changeAfterNickels.divide(penny);\n valueOfPenniesDispensed = numberOfPennies.setScale(0, RoundingMode.DOWN).multiply(penny);\n \n changeReturnedAsBigDecimal = changeReturnedAsBigDecimal.add(valueOfPenniesDispensed);\n\n //testing if the amount of change returnes equals the amount of change that is due\n assertEquals(changeDue, changeReturnedAsBigDecimal);\n }", "public static void vendingMachine(int change) {\n int notes[] = {1, 2, 5, 10, 50, 100, 500, 1000};\n int len = notes.length;\n int count = 0;\n for (int i = len - 1; i >= 0; i--) {\n while (change >= notes[i]) {\n change -= notes[i];\n System.out.print(notes[i] + \" \");\n count++;\n }\n }\n System.out.println(\"\\nNumber of changes:\" + count);\n }", "String format(double balance);", "public int getCoin() {\n return getStat(coin);\n }", "private static int getChange(int n) {\n \t\n int count =0, tempCount = 0;\n while(n!=0){\n \t\n \tif(n >= 10){\n \t\ttempCount = n/10;\n \t\tn = n % 10;\n \t\tcount = count + tempCount;\n \t\tif(n==0)\n \t\t\tbreak;\n \t}\n \tif( n >= 5 && n < 10){\n \t\ttempCount = n/5;\n \t\tn = n % 5;\n \t\tcount = count + tempCount;\n \t\tif(n == 0)\n \t\t\tbreak;\n \t}\n \tif(n >= 1 && n < 5){\n \t\tcount = count + n;\n break;\n \t}\n }\n return count;\n }", "public static void buyCandy3() {\n int funds = 100;\n int itemsBought = 0;\n for (int price = 10; funds >= price; price += 10) {\n //System.out.println(\"price \" + price);\n itemsBought++;\n funds -= price;\n }\n //4 items bought.\n System.out.println(itemsBought + \" items bought.\");\n //Change: $0.00\n System.out.println(\"Change: $\" + funds);\n }", "private static String RandomCash() {\n\t\tint max = 0;\n\t\tint min = 100000;\n\t\tint range = max - min + 1;\n\t\t\n\t\tString text=null;\n\t\ttry {\n\t\t\t\n\t\t\tint random = (int) (Math.random() * (range) + min);\n\t\t\ttext = formatted(\"###,###\", random)+\" VNĐ\";\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\t}", "public static void printChange(int[] change){\n\t\tSystem.out.printf(\"$ 10 = %d\\n\" +\n\t\t\t\t\t\t \"$ 5 = %d\\n\" +\n\t\t\t\t\t\t \"$ 1 = %d\\n\" +\n\t\t\t\t\t\t \"50 cents = %d\\n\" +\n\t\t\t\t\t\t \"Quarters = %d\\n\" +\n\t\t\t\t\t\t \t\"Dimes = %d\\n\" +\n\t\t\t\t\t\t \t\"Penny = %d\",\n\t\t\t\t\t\t \tchange[0], change[1], change[2], change[3], change[4], change[5], change[6]);\n\t}", "static int coinChangeProblem1(int[] coins,int sum){\n int n = coins.length;\n int[][] dp = new int[n+1][sum+1];\n\n for(int j = 1;j<=sum;j++){\n dp[0][j] = 0;\n }\n for(int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for(int i = 1;i<=n;i++){\n for(int j = 1;j<=sum;j++){\n if(coins[i-1]<=j){\n dp[i][j] = dp[i-1][j] + dp[i][j-coins[i-1]];\n }else dp[i][j] = dp[i-1][j];\n }\n }\n return dp[n][sum];\n }", "public static String formatCryptocoin(Object number) {\n Objects.requireNonNull(number);\n NumberFormat format = NumberFormat.getNumberInstance();\n format.setMaximumFractionDigits(8);\n format.setMinimumFractionDigits(8);\n\n return format.format(number);\n }", "public int change(int amount, int[] coins) {\n \n Integer [][] memo = new Integer[coins.length][amount+1];\n return helper(amount, coins, 0 , memo) ;\n }", "public int getCoins() {\n return coins; //XXX-CHANGE-XXX\n }", "public static String toCoinFormat(Object obj) {\r\n\t\ttry {\r\n\t\t\twhile (obj.toString().length() < 4) {\r\n\t\t\t\tobj = \"0\" + obj;\r\n\t\t\t}\r\n\t\t\tString objStr = obj.toString();\r\n\t\t\tint length = objStr.length();\r\n\t\t\tString yuan = objStr.substring(0, length - 2);\r\n\t\t\tif (yuan.equals(\"00\")) {\r\n\t\t\t\tyuan = \"0\";\r\n\t\t\t} else if (yuan.length() > 1 && yuan.substring(0, 1).equals(\"0\")) {\r\n\t\t\t\tyuan = yuan.substring(1, yuan.length());\r\n\t\t\t}\r\n\t\t\tString fen = objStr.substring(length - 2, length);\r\n\t\t\tif (fen.equals(\"00\")) {\r\n\t\t\t\tfen = \"\";\r\n\t\t\t} else if (fen.length() == 2 && fen.substring(1, 2).equals(\"0\")) {\r\n\t\t\t\tfen = \".\" + fen.substring(0, 1);\r\n\t\t\t} else {\r\n\t\t\t\tfen = \".\" + fen;\r\n\t\t\t}\r\n\t\t\treturn yuan + fen;\r\n\t\t} catch (Exception a) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t}", "Solution computeChange(Cash cashAvailable, int changeAmount);", "public double insertCoin() {\n String coinslist[] = { \"5p\",\"10p\", \"20p\", \"50p\", \"£1\", \"£2\" };\n Menu coins = new Menu(\"Select a Coin\", coinslist);\n coins.display();\n int choice = coins.getChoice();\n while (choice < 1 || choice > coinslist.length) {\n choice = coins.getChoice();\n }\n double coin_value = 0;\n\n switch (choice) {\n case 1:\n coin_value = 0.05;\n break;\n case 2:\n coin_value = 0.1;\n break;\n case 3:\n coin_value = 0.2;\n break;\n case 4:\n coin_value = 0.5;\n break;\n case 5:\n coin_value = 1;\n break;\n case 6:\n coin_value = 2;\n break;\n default:\n }\n userMoney += coin_value;\n System.out.println(\"You have entered: £\" + coin_value);\n System.out.println(\"Total Credit: £\" + userMoney);\n\n\t\treturn coin_value;\n\n }", "public int getNumberOfCoins() {\n return coins;\n }", "public void warningCoins(int coins);", "public static int coinChangeDP(int n, int[] coins, int StartCoinIndex, HashMap<String, Integer> temp) {\n\t\tint Comb = 0;\n\t\tString tempKey = n + \"-\" + StartCoinIndex;\n\t\tfor(int i_coin=StartCoinIndex;i_coin<=(coins.length-1);i_coin++) {\n\t\t\tif(temp.containsKey(tempKey)) {\n\t\t\t\treturn temp.get(tempKey);\n\t\t\t}\n\t\t\tint remain = n - coins[i_coin];\n\t\t\t//System.out.println(remain);\n\t\t\tif(remain==0) {\t\t\t\t\n\t\t\t\tComb = Comb + 1;\n\t\t\t} else if (remain < 0) {\n\t\t\t\t// do nothing\n\t\t\t} else {\n\t\t\t\tComb = Comb + coinChangeDP(remain,coins,i_coin,temp);\n\t\t\t}\n\t\t}\n\t\ttemp.put(tempKey, Comb);\n\t\treturn Comb;\n\t}", "private String tenthsToFixedString(int x) {\n int tens = x / MAGIC_NUMBER_TEN;\n return new String(\"\" + tens + \".\" + (x - MAGIC_NUMBER_TEN * tens));\n }", "public static void main(String[] args) throws IOException {\n// int[] input = {2,1,4};\n// int[] input = {6,1,3,2,4,7};\n// int[] input = {2};\n int[] input ={1};\n\n System.out.println(coinChange(input, 2));\n }", "private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }", "BigInteger getTotalDifficulty();", "public int coinChange(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n \n Arrays.sort(coins);\n\n memo = new int[amount + 1][coins.length];\n \n ans = dfs(coins, amount, coins.length - 1);\n\n return ans == Integer.MAX_VALUE ? -1 : ans;\n }", "public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Your name please\");\n String name = input.nextLine();\n\n // get a number from the user\n System.out.println(\"Give me the amount of money in cents please, \" + name);\n int money = input.nextInt();\n \n // limit the size of the number\n while(money>100000000)\n {\n\tSystem.out.println(\"This number is too big.\");\n\tSystem.out.println(\"Please enter something smaller\");\n\tmoney = input.nextInt();\n }\n \n // do the calculations\n\n int hundreds = money / 10000;\n int leftover = money % 10000;\n\n int fifties = leftover / 5000;\n leftover = leftover % 5000;\n\n int twenties = leftover / 2000;\n leftover = leftover % 2000;\n\n int tens = leftover / 1000;\n leftover = leftover % 1000;\n\n int fives = leftover / 500;\n leftover = leftover % 500;\n\n int ones = leftover / 100;\n leftover = leftover % 100;\n\n int quarters = leftover / 25;\n leftover = leftover % 25;\n\n int dimes = leftover / 10;\n leftover = leftover % 10;\n\n int nickels = leftover / 5;\n leftover = leftover % 5;\n\n int pennies = leftover / 1;\n\n // print the results\n System.out.println(\"\"); System.out.println(\"\"); //formating for results\n\n System.out.println(\"******Dollar Bills******\"); //This is printout of dollar bills \n System.out.print(hundreds + \" Hundred dollar bill(s), \");\n System.out.print(fifties + \" Fifty dollar bill(s), \");\n System.out.print(twenties + \" Twenty dollar bill(s), \"); \n System.out.print(tens + \" Ten dollar bill(s), \");\n System.out.print(fives + \" Five dollar bill(s), \");\n System.out.print(ones + \" One dollar bill(s)\");\n \n System.out.println(\"\"); System.out.println(\"\"); \n\n System.out.println(\"******Coins******\"); //This will printout coins \n System.out.print(quarters + \" Quarter(s), \");\n System.out.print(dimes + \" Dime(s), \");\n System.out.print(nickels + \" Nickel(s), \");\n System.out.print(pennies + \" Penny(s)\");\n\n System.out.println(\"\"); //formating for results2\n\n }", "public int arrangeCoins(int n) { // score 7\n return (int) ((Math.sqrt(8 * n + 1) - 1) / 2);\n }", "@Test\n public void coinsC() throws EmptyListE {\n Coin quarter = new Coin(25);\n Coin dime = new Coin(10);\n Coin nickel = new Coin(5);\n Coin penny = new Coin(1);\n List<Coin> coins =\n new Node<>(quarter,\n new Node<>(dime, new Node<>(nickel, new Node<>(penny, new Empty<>()))));\n assertEquals(1, DP.coinChange(coins, 3));\n assertEquals(2, DP.coinChange(coins, 6));\n assertEquals(242, DP.coinChange(coins, 100));\n assertEquals(1, DP.bucoinChange(coins, 3));\n assertEquals(2, DP.bucoinChange(coins, 6));\n assertEquals(242, DP.bucoinChange(coins, 100));\n }", "public static int[] getChange (int value, int[] denominations, int[] amounts) {\n\t\tint [] f = new int[value + 1];\r\n\t\tint m = denominations.length;\r\n\t\tint result, temp = 1, j;\r\n\t\tint d = 0;\r\n\t\tfor (int i = 1; i <= value; i ++) {\r\n\t\t\ttemp = value + 1; j = 0;\r\n\t\t\t\r\n\t\t\twhile (j < m && i >= denominations[j] ){\r\n\t\t\t\td = f[i-denominations[j]];\r\n\t\t\t\tif (temp > d)\r\n\t\t\t\t temp = d;\r\n\t\t\t\tj ++;\r\n\t\t\t} \r\n\t\t\tf[i] = temp + 1;\r\n\t\t}\r\n\t\tresult = f[value]; // will be put in the position 0\r\n // tracing the array f backwards, finding the denomination contributing to the minimum number of coins\r\n\t\tint k = result;\r\n\t\tint [] change = new int[k + 1]; // position 0 for the number of coins, positions 1 to k for the denominations\r\n\t\tj = 0;\r\n\t\tint pos = 0;\r\n\t\twhile (k > 0) {\r\n\t\t\ttemp = k;\r\n\t\t\tfor (j = 0; j < m && denominations[j] <= value; j ++) {\r\n\t\t\t\td = f[value-denominations[j]];\r\n\t\t\t\tif ( temp > d) {\r\n\t\t\t\t\ttemp = d;\r\n\t\t\t\t\tpos = j;\r\n\t\t\t\t}\r\n\t\t\t\t//pos is the index in the array of denominations indicating the \r\n //pos = smallest num of needed coins // smallest number of needed coins\t\t\r\n\t\t\t}\r\n\t\t\tchange[k] = denominations[pos]; \r\n\t\t\tvalue -= change[k --]; // use the remaining value and decrement number of coins\r\n\t\t}\r\n\t\tchange[0] = result;\r\n\t\t\r\n\t\tfor(int i = 1; i < change.length; i++) {\r\n\t\t\t\r\n\t\t\tint a = amounts[i -1] - change[i];\r\n\t\t\tif(a <= 0) {\r\n\t\t\t\tdenomupdate[i - 1] = a;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn change;\t\r\n\t}", "public String converter(int n){\r\n str = \"\";\r\n condition = true;\r\n while(condition){\r\n if(n >= 1 && n < 100){\r\n str = str + oneToHundred(n);\r\n condition = false; \r\n }else if (n >= 100 && n < 1000){\r\n str = str + oneToHundred(n / 100);\r\n str = str + \"Hundred \";\r\n n = n % 100;\r\n condition = true; \r\n }\r\n \r\n }\r\n return str;\r\n \r\n }", "public int generateCoins() {\n\t\n Entity e = new Coin();\n\t\n int c = rand.nextInt(6) + 1;\n int r = rand.nextInt(c) + 1;\n\n int w = e.getWidth();\n int h = e.getHeight();\n\t\n int y = rand.nextInt(mMap.getBottomBound() - r * h);\n int x = 1000;\n\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x, y);\n mGame.addEntity(e);\n\n // Generates a group of coins\n for(int i = 0; i < r; i++) {\n for(int j = 0; j < c; j++) {\n if(i == 0 && j == 0) continue;\n\n e = new Coin();\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x + w * j, y + h * i);\n mGame.addEntity(e);\n }\n }\n\n return w * c;\n }", "@Override\r\n\tpublic String toString() {\n\t\tString change = \"\";\r\n\t\tString min_change = \"\";\r\n\t\tString max_change = \"\";\r\n\r\n\t\tif (this.runaway_change != null) {\r\n\t\t\tchange += Unit.getDescriptionByCode(runaway_change);\r\n\t\t}\r\n\r\n\t\tif (this.containsV) {\r\n\t\t\tif (this.min_range_change != null) {\r\n\t\t\t\tmin_change += Unit.getDescriptionByCode(min_range_change);\r\n\t\t\t}\r\n\t\t\tif (this.max_range_change != null) {\r\n\t\t\t\tmax_change += Unit.getDescriptionByCode(max_range_change);\r\n\t\t\t}\r\n\t\t\treturn this.runaway_number + runaway_LCR==null?Unit.getDescriptionByCode(runaway_LCR):\"\" + \"跑道,最小跑道视程\" + this.min_range + \"米,\"\r\n\t\t\t\t\t+ min_change + \",最大跑道视程\" + this.max_range + \"米,\" + max_change + \",\";\r\n\r\n\t\t} else {\r\n\r\n\t\t\treturn this.runaway_number + Unit.getDescriptionByCode(runaway_LCR) + \"跑道,跑道视程\" + this.viusal_range + \"米,\"+change;\r\n\t\t}\r\n\t}", "public void changeMoney(int change){\n\t\tmoney +=change;\n\t}", "public static int makeChange(int n, int denom)\n {\n int next_denom = 0;\n switch(denom)\n {\n case 25: next_denom = 10; break;\n case 10: next_denom = 5; break;\n case 5:next_denom = 1; break;\n case 1:return 1;\n }\n int ways=0;\n for(int i=0;i*denom<n;i++)\n {\n ways=ways+makeChange(n-i*denom, next_denom);\n }\n return ways;\n }", "public String getCaseLabelReward() {\n if(reward < 1) {\n return \"$\" + reward;\n }\n if(reward < 1000) {\n return \"$\" + (int) reward;\n }\n int exp = (int) (Math.log(reward) / Math.log(1000));\n return new DecimalFormat(\"$#.#\").format(\n reward / Math.pow(1000, exp)\n ) + \"KMGTPE\".charAt(exp - 1);\n }", "private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }", "public static void main(String[] args)\n {\n Scanner s = new Scanner(System.in);\n System.out.println(\"Please enter the amount due\");\n double due = s.nextDouble();\n System.out.println(\"Please enter the amount recieved\");\n double pay = s.nextDouble();\n double change = (pay - due);\n int dollars = (int) change/ 1;\n change = change%1;\n int quarters = (int) (change/.25);\n change = change %.25;\n int dimes = (int) (change/.10);\n change = change% .10;\n int nickels = (int) (change /.05);\n change = change % .05;\n int pennies = (int) (change/.01);\n System.out.println(dollars + \" Dollars\\n\");\n System.out.println(quarters +\" Quarters\\n\");\n System.out.println(dimes + \" Dimes\\n\");\n System.out.println(nickels + \" Nickels\\n\");\n System.out.println(pennies + \" Pennies\\n\");\n}", "public int awardTriviaCoins (double pct) {\n Random r = new Random();\n int min = 1;\n if (pct > 0.75) {\n min = 15;\n } else if (pct > 0.5) {\n min = 10;\n } else if (pct > 0.25) {\n min = 5;\n }\n int winnings = min + (int)(Math.ceil(r.nextInt(10) * pct));\n this.coinCount += winnings;\n this.save();\n \n UserEvent.NewCoins message = new UserEvent.NewCoins(this.id, winnings);\n notifyMe(message);\n \n return winnings;\t \n\t}", "public BigDecimal getCoins() {\n return coins;\n }", "public static int[] changeCalc(double paid, double cost)\n\t{\n\t\t int change = (int) Math.round(((paid - cost) * 100.0));\n\t\t int dollars = 0, quarters = 0, dimes = 0, nickles = 0, pennies = 0;\n\t\t int[] changes = new int[5];\n\t\t \n\t\t if(change > 0)\n\t\t {\n\t\t\tdollars = change / 100;\n\t\t\tchanges[0] = dollars;\n\t\t\n\t\t\tchange = change % 100;\n\t\n\t\t\tquarters = change / 25;\n\t\t\tchanges[1] = quarters;\n\t\n\t\t\tchange = change % 25;\n\t\n\t\t\tdimes = change / 10;\n\t \tchanges[2] = dimes;\n\t\n\t \tchange = change % 10;\n\t\n\t \tnickles = change/5;\n\t\n\t \tchanges[3] = nickles;\n\t\n\t \tpennies = change % 5;\n\t \tchanges[4] = pennies;\n\t\n\t\t }\t\n\t\t return changes;\n\t}", "public static String formatMoney(BigInteger valueInCents) {\n return formatMoney(MathUtil.divide(new BigDecimal(valueInCents), MathUtil.HUNDRED));\n }", "public String toString() {\n final StringBuilder buffer = new StringBuilder() ;\n final DecimalFormat df = new DecimalFormat( \"#00.00\" ) ;\n\n buffer.append( StringUtil.rightPad( this.symbol, 20 ) ) ;\n buffer.append( StringUtil.leftPad( \"\" + getNumActiveCashUnits(), 5 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.avgCashUnitPrice ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.realizedProfit ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getUnRealizedCashProfit() ), 10 ) ) ;\n\n return buffer.toString() ;\n }", "public String run() {\n double n = 100;\n\n // sum of r: n/2(n+1)\n double sumSquared = (1/2.0) * n * (n + 1);\n sumSquared = sumSquared * sumSquared;\n // sum of r^2: n/6(n+1)(2n+1)\n double sumOfSquares = (1/6.0) * n * (n + 1) * (2 * n + 1);\n\n return String.format(\"%.0f\", Math.abs(sumSquared - sumOfSquares));\n }", "public List<coins> GiveInitialMoney() {\n\t\tList<coins> initialMoney= give_money(2,2,5,5,8);\n\t\treturn initialMoney;\n\t\t}", "private static int coinFlip() {\n\t\tint num = (Math.random() <= 0.5) ? 1 : 2; \n\t\tString answer;\n\t\tif ( num == 1) {\n\t\t\tanswer = \"h\";\n\t\t}else {\n\t\t\tanswer = \"t\";\n\t\t}\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n System.out.print(\"Enter you guess (h = heads, t = tails):\");\n String guess = input.next();\n //change the guess to lower case to accept both capital or lower case answer\n guess.toLowerCase();\n \n //gain 50 points if win the toss\n if ( guess.equals(answer)) {\n \t//System.out.println(\"You won the toss, congratulation! +50 points\");\n \treturn 50;\n }else {\n \t //System.out.println(\"Wrong guess! 0 points\");\n \t return 0;\n }\n \n\t}", "public int getChange() {\n\t\treturn player.getDay(0).calculateChangeFactor();\n\t\t\n\t}", "public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "private static int minCoins_my_way_one_coin_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) { // coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) { // coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) { // coins=(1) amount=8\n return 0; // this code changes when you can use infinite number of same coin\n }\n }\n\n // IMPORTANT:\n // Even though, amount is changing in recursive call, you don't need an exit condition for amount because amount will never become 0 or less than 0\n // amount is changing in recursive call when currentCoin < amount and it is doing amount-currentCoin. It means that amount will never become 0 or less than 0\n /*\n if (amount == 0) {\n return 0;\n }\n */\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {// coins=(8,9) amount=8\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n /*\n minUsingCurrentCoin = 1\n int minUsingRemainingCoinsToMakeFullAmount = minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount)\n if(minUsingRemainingCoinsToMakeFullAmount > 0) {\n minUsingCurrentCoin = 1 + minUsingRemainingCoinsToMakeFullAmount\n }*/\n\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {// coins=(9,8) amount=8\n minUsingCurrentCoin = 0;\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n // minUsingCurrentCoin = 0 + minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount);\n } else {\n /*\n case 1:\n coins = (1,6) amount=8\n currentCoin=1\n 1<8\n coinsRequiredUsingRemainingCoins=(6) to make amount (8-1=7) = 0\n coinsRequiredUsingRemainingCoinsAndAmount is 0, so by including current coin (1), you will not be able to make amount=8\n so, you cannot use (1) to make amount=8\n case 2:\n coins = (1,7) amount=8\n currentCoin=1\n 1<6\n coinsRequiredUsingRemainingCoins (7) And Amount (8-1=7) = 1\n so, coinsRequiredUsingCurrentCoin = 1 + coinsRequiredUsingRemainingCoinsAndAmount = 2\n\n */\n // this code changes when you can use infinite number of same coin\n int minUsingRestOfCoinsAndRestOfAmount = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount - currentCoin);\n if (minUsingRestOfCoinsAndRestOfAmount == 0) {\n minUsingCurrentCoin = 0;\n } else {\n minUsingCurrentCoin = 1 + minUsingRestOfCoinsAndRestOfAmount;\n }\n\n }\n\n // coins = (8,6) amount=8\n // minUsingCurrentCoin 8 to make amount 8 = 1\n // minWaysUsingRestOfTheCoins (6) to make amount 8 = 0\n // so, you cannot just blindly return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins)\n // it will return 0 instead of 1\n int minWaysUsingRestOfTheCoins = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}", "void calcAmount(double amountEntered, double costAmount){\n double changeAmount ;\n if(amountEntered >= costAmount){\n changeAmount = amountEntered - costAmount;\n myTextView.setText(\"Please take your change = R\"+ changeAmount + \"\\n\"+ \"Thank you!!\"+\"\\nTravel safe!!\");\n }else{\n changeAmount = amountEntered - costAmount;\n myTextView.setText(\"You still owe R\" + Math.abs(changeAmount)+ \" \\nplease pay now!!\");\n }\n }", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public int raiseMoney()\r\n {\r\n int total = super.raiseMoney();\r\n getCandidate().setMoneyMod(getCandidate().getMoneyMod() - .05);\r\n return total;\r\n }", "public void takeoutMoney (double amount) {\n if(amount >= 2.0) {\n int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 2.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NToonie -= numberToRemove;\n amount -= 2.0 * numberToRemove;\n }\n if(amount >= 1.0) {\n int numberToRemove = (int) Math.min(getLoonie(), amount / 1.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 1.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NLoonie -= numberToRemove;\n amount -= 1.0 * numberToRemove;\n }\n if(amount >= 0.25) {\n int numberToRemove = (int) Math.min(getQuarter(), amount / 0.25);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.25) {\n coins.remove(j);\n break;\n }\n }\n }\n NQuarter -= numberToRemove;\n amount -= 0.25 * numberToRemove;\n }\n if(amount >= 0.1) {\n int numberToRemove = (int) Math.min(getDime(), amount / 0.1);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.1) {\n coins.remove(j);\n break;\n }\n }\n }\n NDime -= numberToRemove;\n amount -= 0.1 * numberToRemove;\n }\n if(amount >= 0.05) {\n int numberToRemove = (int) Math.min(getNickel(), amount / 0.05);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.05) {\n coins.remove(j);\n break;\n }\n }\n }\n NNickel -= numberToRemove;\n amount -= 0.05 * numberToRemove;\n }\n }", "private static int maxMoney(int[] coins,int coinsCount,int startIndex){\n int maxScore = 0;\n if(coinsCount==1) maxScore = coins[startIndex];\n else{\n maxScore = Math.max(coins[startIndex]+sum(coins,coinsCount-1, startIndex+1)-maxMoney(coins,coinsCount-1, startIndex+1),\n coins[coinsCount+startIndex-1]+sum(coins,coinsCount-1,startIndex)-maxMoney(coins,coinsCount-1,startIndex));\n }return maxScore;\n }", "public String cheapest()\n {\n if(stocks.size() == 0)\n {\n return \"\";\n }\n Stock min = stocks.get(0);\n for (Stock c: stocks)\n {\n if (stocks.size() > 0)\n {\n if (c.getPrice() < min.getPrice())\n {\n min = c;\n }\n }\n }\n return min.getSymbol();\n }", "public static void main(String[] args) {\n\t\tint coins[] = { 2, 3, 5, 6 };\n\t\tint amount = 10;\n\t\tString result = \"\";\n\t\tcoinChange2(coins, amount, result, 0);\n\n\t}", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "public String findMinimumChangeJSON(String currency, String amount) throws InvalidInputException {\n\n HashMap<String, String> coinChangeMap = getCurrencyBuilder().computeAmountDenoms(currency, amount);\n\n Gson gson = new Gson();\n String coinChangeInJSON = gson.toJson(coinChangeMap);\n\n return coinChangeInJSON;\n }", "public void numOfTreesToString(Double trees) {\n this.numOfTreesString = String.format(\"%.0f\", Math.ceil(trees));\n }", "public String toString () {\r\n // write out amount of cash\r\n String stuffInWallet = \"The total amount of Bills in your wallet is: $\" + getAmountInBills() + \"\\n\" +\r\n \"The total amount of Coins in your wallet is: $\" + getAmountInCoins() + \"\\n\";\r\n\r\n // add in the charge (credit and debit) cards\r\n // for each element in the chargeCards list, calls its toString method\r\n for ( int i = 0; i < chargeCards.size(); i++ ) {\r\n stuffInWallet += chargeCards.get( i ) + \"\\n\";\r\n }\r\n\r\n for ( int i = 0; i < idCards.size(); i++ ) {\r\n stuffInWallet += idCards.get( i ) + \"\\n\";\r\n }\r\n\r\n return stuffInWallet;\r\n }", "public void subtractCoins (int n) {\n this.coinCount = Math.max(0, this.coinCount - n);\n this.save();\n }", "public static char coinFlip() {\n\t\tint coin = 0;\n\n\t\tRandom rand = new Random();\n\n\t\tcoin = rand.nextInt(2);\n\n\t\tif (coin == 0) {\n\t\t\treturn 'T';\n\t\t} else {\n\t\t\treturn 'H';\n\t\t}\n\n\t}", "private static int coinChange(int[] arr,int n, int sum) {\n\t\tint[][] dp = new int[n+1][sum+1];\n\t\tfor(int i=0;i<n+1;i++) {\n\t\t\tdp[i][0]=1;\n\t\t}\n\t\tfor(int i=0;i<sum+1;i++) {\n\t\t\t\n\t\t\tif(i%arr[0]==0)\n\t\t\tdp[0][i]=i/arr[0];\n\t\t\telse\n\t\t\t\tdp[0][i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<n+1;i++) {\n\t\t\tfor(int j=1;j<sum+1;j++) {\n\t\t\t\tif(arr[i-1]>j)\n\t\t\t\t\tdp[i][j]=dp[i-1][j];\n\t\t\t\telse\n\t\t\t\t\tdp[i][j]=Math.min(dp[i-1][j], dp[i][j-arr[i-1]]+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[n][sum];\n\t}", "private static int minCoins_my_way_infinite_coins_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) {// coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) {// coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) {\n // IMPORTANT: This code assumes that you can use only 1 coin of the same value (you can't use infinite number of coins of the same value).\n //return 0;\n\n // This code assumes that you can use infinite number of coins of the same value.\n // e.g. currentCoin=1 and amount=8, then 8 coins of 1s can be used\n if (amount % currentCoin == 0) { // coins=(1) amount=8 should return 8 because you can use 8 coins of value 1 to make amount=8\n return amount / currentCoin;\n }\n return 0; // coins=(3) amount=8 should return 0 because you can't use 1 or more coins of value 3 to make amount=8\n }\n }\n\n // IMPORTANT\n // You don't need any coin to make amount=0\n // By seeing recursive call, you will figure out that amount can reach to 0. So, you need an exit condition for amount==0\n if (amount == 0) {\n return 0;\n }\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {\n minUsingCurrentCoin = 0;\n } else {\n /*\n if currentCoin=1 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount will be 8.\n if currentCoin=3 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount be 2\n you need to consider both these situations for coming up with the correct code\n\n Case 1:\n coins = (1,6) amount=8\n currentCoin=1. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 8\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 1 1 1 (6) 7 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 1 2 2 (6) 6 = 1 2+1=3\n 1 3 3 (6) 5 = 0 0\n 1 4 4 (6) 4 = 0 0\n 1 5 5 (6) 3 = 0 0\n 1 6 6 (6) 2 = 0 0\n 1 7 7 (6) 1 = 0 0\n 1 8 8 (6) 0 = 0 8 (special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin)\n\n Case 2:\n coins = (3,6) amount=8\n currentCoin=3. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 2\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 3 1 3 (6) 3 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 3 2 6 (6) 2 = 0 0\n\n */\n int maxNumberOfCoinsThatCanBeUsedToMakeAmount = amount / currentCoin;\n\n int min = 0;\n\n for (int i = 1; i <= maxNumberOfCoinsThatCanBeUsedToMakeAmount; i++) {\n int amountConsumedByCurrentCoin = i * currentCoin;\n\n int minFromRemaining = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount - amountConsumedByCurrentCoin);\n\n if (minFromRemaining == 0) {// If I could not make remaining amount using remaining coins, then I cannot make total amount including current coin (except one special condition)\n if (amountConsumedByCurrentCoin == amount) {// special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin\n min = i;\n } else {\n min = 0;\n }\n } else {\n min = i + minFromRemaining;\n }\n\n if (minUsingCurrentCoin == 0 && min > 0) {\n minUsingCurrentCoin = min;\n } else if (minUsingCurrentCoin > 0 && min == 0) {\n // don't change minUsingCurrentCoin\n } else {\n if (min < minUsingCurrentCoin) {\n minUsingCurrentCoin = min;\n }\n }\n }\n }\n\n int minWaysUsingRestOfTheCoins = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "private static void split (int coin, int rest)\r\n\t{\r\n\r\n\t\tmaxct[coin] = rest / ctvalue[coin];\r\n\r\n\t\tfor (ct[coin]=0;ct [coin]<=maxct[coin];ct[coin]++)\r\n\t\t{\r\n\r\n\t\t\tif (coin>0)\r\n\t\t\t{\r\n\t\t\t\tsplit(--coin,rest - ct[coin]*ctvalue[coin]);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tct[0]= rest - ct[coin]*ctvalue[coin]; \r\n\t\t\t System.out.println(String.format(\"coins divided over %sx2EUR %sx1EUR %sx50ct %sx20ct %sx10ct %sx5ct %sx2ct %sx1ct\",ct[7],ct[6],ct[5],ct[4],ct[3],ct[2],ct[1],ct[0]));\r\n\t\t\t\tchange++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "public double getChange() \n\t{\n\t\treturn purchase.getPayment().getChange();\n\t}", "int getBonusMoney();" ]
[ "0.71410954", "0.6492485", "0.6483764", "0.6407681", "0.63871527", "0.63690686", "0.6190565", "0.6107949", "0.60841525", "0.5982337", "0.59709406", "0.596822", "0.59669334", "0.5902251", "0.5858232", "0.5843424", "0.58246744", "0.5774405", "0.5765463", "0.575084", "0.5734841", "0.5702303", "0.5696761", "0.5659812", "0.56523913", "0.56510854", "0.56399584", "0.5639846", "0.56372565", "0.5602286", "0.55990434", "0.5588216", "0.55866027", "0.55688757", "0.55504954", "0.55455965", "0.554325", "0.55406296", "0.55306655", "0.552846", "0.55141294", "0.5511746", "0.54565233", "0.5455279", "0.543215", "0.5400263", "0.5382597", "0.5374236", "0.5344238", "0.5337824", "0.5303083", "0.52977073", "0.52938557", "0.5274333", "0.5256741", "0.5250185", "0.5210619", "0.5201953", "0.51854473", "0.51635194", "0.51549137", "0.51499873", "0.51493233", "0.51475555", "0.5146868", "0.51459616", "0.5131641", "0.51263756", "0.5102002", "0.51004237", "0.50795096", "0.50715554", "0.5070869", "0.50707364", "0.50652814", "0.5062963", "0.50598645", "0.5047513", "0.5043311", "0.5038671", "0.5035097", "0.503482", "0.50343865", "0.50174844", "0.50170815", "0.5006557", "0.5005843", "0.50048715", "0.50043297", "0.49936113", "0.49853548", "0.49823305", "0.497947", "0.49752283", "0.49601123", "0.49526152", "0.49484485", "0.4947389", "0.49408036", "0.49337858" ]
0.74217314
0
Creates new form holdersframe
public holdersframe() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }", "Frame createFrame();", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "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 }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimension(200, 100));\n final JInternalFrame frame = new JInternalFrame(\"Frame 1\", true);\n frame.getContentPane().add(chartPanel);\n frame.setClosable(true);\n frame.setIconifiable(true);\n frame.setMaximizable(true);\n frame.setResizable(true);\n return frame;\n\n }", "public void buildEditFrame() {\n\n\tframe.addWindowListener(new WindowAdapter() {\n\t public void windowClosing(WindowEvent e) {\n\t\t//System.exit(0);\n\t }\n\t});\n\n\t// show the frame\n frame.setSize(Width, Height);\n\tframe.setLocation(screenSize.width/2 - Width/2,\n\t\t\t screenSize.height/2 - Height/2);\n\tframe.getContentPane().setLayout(new BorderLayout());\n\tframe.getContentPane().add(jp, BorderLayout.CENTER);\n\n\tframe.pack();\n//\t((CDFEdit)getFrame()).getDialog().setVisible(false);\n\tframe.setVisible(true);\n\n\t// Deprecated API - jp.requestDefaultFocus(); \n\tjp.requestFocus();\n\tframe.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\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}", "FRAME createFRAME();", "public NewJFrame() {\n initComponents();\n \n }", "public NewFrame() {\n initComponents();\n }", "private void initiateBlueEssencePurchaseFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n// q5.setPreferredSize(new Dimension(1000, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q5);\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(account);\r\n frame.add(account);\r\n\r\n JLabel q6 = new JLabel(\"Name of the champion you wish to purchase?\");\r\n// q6.setPreferredSize(new Dimension(1000, 100));\r\n// q6.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q6);\r\n frame.add(q6);\r\n\r\n JTextField name = new JTextField();\r\n// name.setPreferredSize(new Dimension(1000, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(name);\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/shopicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateBlueEssencePurchaseEnter(frame, account, name);\r\n }", "public FrameForm() {\n initComponents();\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initiateEarnBlueEssenceFields(JFrame frame) {\r\n JLabel q1 = new JLabel(\"Add amount to mainAccount or altAccount?\");\r\n new Label(q1);\r\n// q1.setPreferredSize(new Dimension(750, 100));\r\n// q1.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q1);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(750, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q2 = new JLabel(\"Amount of Blue Essence Earned\");\r\n new Label(q2);\r\n// q2.setPreferredSize(new Dimension(750, 100));\r\n// q2.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q2);\r\n\r\n JTextField amount = new JTextField();\r\n new TextField(amount);\r\n// amount.setPreferredSize(new Dimension(750, 100));\r\n// amount.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(amount);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/be.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateEarnBlueEssenceEnter(frame, account, amount);\r\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public NewJFrame() {\r\n initComponents();\r\n }", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "@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}", "private Node createFormContents() {\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setAlignment(Pos.CENTER);\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(25, 25, 25, 25));\n\n\t\t// Add the components to the grid.\n\n\t\t// Add the labels.\n\t\tgrid.add(typeNameLBL, 0, 0);\n\t\tgrid.add(unitsLBL, 0, 1);\n\t\tgrid.add(unitMeasureLBL, 0, 2);\n\t\tgrid.add(validityDaysLBL, 0, 3);\n\t\tgrid.add(reorderPointLBL, 0, 4);\n\t\tgrid.add(notesLBL, 0, 5);\n\t\tgrid.add(statusLBL, 0, 6);\n\n\t\t// Add the text fields.\n\t\tgrid.add(typeNameTF, 1, 0);\n\t\tgrid.add(unitsTF, 1, 1);\n\t\tgrid.add(unitMeasureTF, 1, 2);\n\t\tgrid.add(validityDaysTF, 1, 3);\n\t\tgrid.add(reorderPointTF, 1, 4);\n\t\tgrid.add(notesTF, 1, 5);\n\t\tgrid.add(statusCB, 1, 6);\n\n\t\t// Add the button.\n\t\tgrid.add(submitBTN, 0, 7);\n\t\tgrid.add(cancelBTN, 1, 7);\n\n\t\t// Add the message label.\n\t\tgrid.add(messageLBL, 0, 8, 2, 1);\n\n\t\t// Event handlers.\n\n\t\tsubmitBTN.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\tprocessAction(e);\n\t\t\t}\n\t\t});\n\n\t\tcancelBTN.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\tnew Manager();\n\t\t\t}\n\t\t});\n\n\t\treturn grid;\n\t}", "public void rebuildFrame(){\n \n // Re-initialize frame with default attributes\n controlFrame.dispose();\n controlFrame = buildDefaultFrame(\"CSCI 446 - A.I. - Montana State University\");\n \n // Initialize header with default attributes\n header = buildDefaultHeader();\n \n // Initialize control panel frame with default attributes\n controlPanel = buildDefaultPanel(BoxLayout.Y_AXIS);\n \n // Combine objects\n controlPanel.add(header, BorderLayout.NORTH);\n controlFrame.add(controlPanel);\n \n }", "public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}", "public void createButtonFrame()\n {\n JFrame createFrame = new JFrame();\n createFrame.setSize(560,200);\n Container pane2;\n pane2 = createFrame.getContentPane();\n JPanel createPanel = new JPanel(null);\n createEvent = new JTextArea(\"MM/DD/YYYY\");\n timeField1 = new JTextArea(\"00:00\");\n timeField2 = new JTextArea(\"00:00\");\n EventNameField = new JTextArea(\"UNTILED NAME\");\n JLabel EnterEventLabel = new JLabel(\"Enter Event Name:\");\n JLabel EnterDateLabel = new JLabel(\"Date:\");\n JLabel EnterStartLabel = new JLabel(\"Start:\");\n JLabel EnterEndLabel = new JLabel(\"End:\");\n JLabel toLabel = new JLabel(\"to\");\n pane2.add(createPanel);\n createPanel.add(createEvent);\n createPanel.add(timeField1);\n createPanel.add(EventNameField);\n createPanel.add(timeField2);\n createPanel.add(create);\n createPanel.add(EnterEventLabel);\n createPanel.add(EnterDateLabel);\n createPanel.add(EnterStartLabel);\n createPanel.add(EnterEndLabel);\n createPanel.add(toLabel);\n\n createPanel.setBounds(0, 0, 400, 200); //panel\n createEvent.setBounds(20, 90, 100, 25); //Date field\n timeField1.setBounds(150, 90, 80, 25); //Time field\n timeField2.setBounds(280, 90, 80, 25); //Time field 2\n create.setBounds(380, 100, 150, 50); //Create Button\n\n EnterStartLabel.setBounds(150, 65, 80, 25);\n EnterEndLabel.setBounds(280, 65, 80, 25);\n toLabel.setBounds(250, 90, 80, 25);\n EnterDateLabel.setBounds(20, 65, 80, 25);\n EventNameField.setBounds(20, 30, 300, 25); //Event Name Field\n EnterEventLabel.setBounds(20, 5, 150, 25);\n\n\n\n\n createFrame.setVisible(true);\n createFrame.setResizable(false);\n }", "public FrameInsert() {\n initComponents();\n }", "private Node createFrameHolder(Data<X,Y> dataItem){\n Node frameHolder = dataItem.getNode();\n if (frameHolder == null){\n frameHolder = new StackPane();\n dataItem.setNode(frameHolder);\n }\n frameHolder.getStyleClass().add(getStyleClass(dataItem.getExtraValue()));\n return frameHolder;\n }", "public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "public void buildFrame();", "public DisplayStaffMemberFrame() {\n initComponents();\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "private void initiateBlueEssenceDifferenceFields(JFrame frame) {\r\n JLabel q7 = new JLabel(\"Check difference for mainAccount or altAccount?\");\r\n new Label(q7);\r\n// q7.setPreferredSize(new Dimension(1000, 100));\r\n// q7.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q7);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q8 = new JLabel(\"Name of the champion you wish to check the difference for?\");\r\n new Label(q8);\r\n// q8.setPreferredSize(new Dimension(1000, 100));\r\n// q8.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q8);\r\n\r\n JTextField name = new JTextField();\r\n new TextField(name);\r\n// name.setPreferredSize(new Dimension(1000, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/be.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateBlueEssenceDifferenceEnter(frame, account, name);\r\n }", "private Frame buildFrame() {\n return new Frame(command, headers, body);\n }", "private void setFrame() {\r\n this.getContentPane().setLayout(null);\r\n this.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent evt) {\r\n close();\r\n }\r\n });\r\n MainClass.frameTool.startup(this, FORM_TITLE, FORM_WIDTH, FORM_HEIGHT, \r\n false, true, false, false, FORM_BACKGROUND_COLOR,\r\n SNAKE_ICON);\r\n }", "public NewRoomFrame() {\n initComponents();\n }", "private void initiateFavouriteChampionFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Favourite champion for mainAccount or altAccount?\");\r\n new Label(q5);\r\n// q5.setPreferredSize(new Dimension(1200, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1200, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q6 = new JLabel(\"Name of the champion you wish to favourite?\");\r\n new Label(q6);\r\n// q6.setPreferredSize(new Dimension(1200, 100));\r\n// q6.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q6);\r\n\r\n JTextField name = new JTextField();\r\n new TextField(name);\r\n// name.setPreferredSize(new Dimension(1200, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/m7fflair.png\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(1200, 250));\r\n frame.add(label);\r\n\r\n initiateFavouriteChampionEnter(frame, account, name);\r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "protected JInternalFrame getNewInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.getContentPane();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 400);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t\treturn frame;\n\t}", "private void initiateRiotPointsPurchaseFields(JFrame frame) {\r\n JLabel q7 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n// q7.setPreferredSize(new Dimension(1000, 100));\r\n// q7.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q7);\r\n frame.add(q7);\r\n\r\n JTextField account = new JTextField();\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(account);\r\n frame.add(account);\r\n\r\n JLabel q8 = new JLabel(\"Name of the champion you wish to purchase?\");\r\n// q8.setPreferredSize(new Dimension(1000, 100));\r\n// q8.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q8);\r\n frame.add(q8);\r\n\r\n JTextField name = new JTextField();\r\n// name.setPreferredSize(new Dimension(1000, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(name);\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/shopicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateRiotPointsPurchaseEnter(frame, account, name);\r\n }", "public NewJFrame17() {\n initComponents();\n }", "private void buildAndDisplayFrame() {\n\n\t\tframe.add(panelForIncomingCall, BorderLayout.NORTH);\n\t\tpanelForIncomingCall.add(welcomeThenDisplayCallInfo);\n\n\t\tframe.add(backgroundPanel, BorderLayout.CENTER);\n\t\tbackgroundPanel.add(userInstructions);\n\t\tbackgroundPanel.add(startButton);\n\t\tbackgroundPanel.add(declineDisplay);\n\n\t\tframe.add(acceptDeclineBlockBottomPanel, BorderLayout.SOUTH);\n\t\tacceptDeclineBlockBottomPanel.add(acceptButton);\n\t\tacceptDeclineBlockBottomPanel.add(declineButton);\n\t\tacceptDeclineBlockBottomPanel.add(blockButton);\n\n\t\tframe.setSize(650, 700); // sizes frame to whatever we want\n\t\tframe.setLocationRelativeTo(null); // puts at center of screen\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"80dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"35dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"12dlu\"),\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"100dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"50dlu\"),\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"53dlu\"),\r\n\t\t\t\tFormSpecs.UNRELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.PARAGRAPH_GAP_ROWSPEC,}));\r\n\t\t\r\n\t\tJLabel uxAddCourseLabel = new JLabel(\"Add Course\");\r\n\t\tuxAddCourseLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxAddCourseLabel, \"2, 2, 6, 1\");\r\n\t\t\r\n\t\tJLabel uxSearchByLabel = new JLabel(\"Search by\");\r\n\t\tuxSearchByLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxSearchByLabel, \"3, 4, 7, 1\");\r\n\t\t\r\n\t\tJLabel uxClickCourseLabel = new JLabel(\"Double Click a Course to Add It\");\r\n\t\tuxClickCourseLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxClickCourseLabel, \"8, 4, 3, 1, left, bottom\");\r\n\t\t\r\n\t\tJLabel uxCourseNumberLabel = new JLabel(\"Course number\");\r\n\t\tuxCourseNumberLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberLabel, \"3, 6, 8, 1\");\r\n\t\t\r\n\t\tsearchResults = new DefaultListModel<Course>();\r\n\t\tuxSearchResultsList = new JList<Course>(searchResults);\r\n\t\tuxSearchResultsList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tuxSearchResultsList.addMouseListener(manager.new ResultsDoubleClickListener());\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(uxSearchResultsList);\r\n\t\tframe.getContentPane().add(scrollPane, \"8, 6, 3, 24, fill, fill\");\r\n\t\t\r\n\t\tuxCourseNumberField = new JTextField();\r\n\t\tuxCourseNumberField.setText(courseNumberDefaultText);\r\n\t\tuxCourseNumberField.setForeground(Color.GRAY);\r\n\t\tuxCourseNumberField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberField, \"3, 8, 4, 1, fill, default\");\r\n\t\tuxCourseNumberField.setColumns(10);\r\n\t\tuxCourseNumberField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJLabel uxCourseNameLabel = new JLabel(\"Course name\");\r\n\t\tuxCourseNameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameLabel, \"3, 10, 7, 1\");\r\n\t\t\r\n\t\tuxCourseNameField = new JTextField();\r\n\t\tuxCourseNameField.setText(courseNameDefaultText);\r\n\t\tuxCourseNameField.setForeground(Color.GRAY);\r\n\t\tuxCourseNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameField, \"3, 12, 4, 1, fill, default\");\r\n\t\tuxCourseNameField.setColumns(10);\r\n\t\tuxCourseNameField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJCheckBox uxCheckBox = new JCheckBox(\"Show Global Campus\");\r\n\t\tuxCheckBox.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCheckBox, \"3, 13, 2, 2\");\r\n\t\tuxCheckBox.addActionListener(manager.new GlobalCampusListener());\r\n\t\t\r\n\t\tJButton uxSearchButton = new JButton(\"Search\");\r\n\t\tuxSearchButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxSearchButton, \"6, 14, 1, 1\");\r\n\t\tuxSearchButton.addActionListener(manager.new SearchButtonListener());\r\n\t\t\r\n\t\tselectedCourses = new DefaultListModel<Course>();\r\n\t\tuxSelectedCoursesList = new JList<Course>(selectedCourses);\r\n\t\tuxSelectedCoursesList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\t\r\n\t\tJScrollPane scrollPane2 = new JScrollPane(uxSelectedCoursesList);\r\n\t\tframe.getContentPane().add(scrollPane2, \"3, 16, 4, 14, default, fill\");\r\n\t\t\r\n\t\tJButton uxRemoveCourseButton = new JButton(\"Remove Course\");\r\n\t\tuxRemoveCourseButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxRemoveCourseButton, \"4, 31, 3, 1\");\r\n\t\tuxRemoveCourseButton.addActionListener(manager.new RemoveItemButtonListener());\r\n\t\t\r\n\t\tJButton uxCreateScheduleButton = new JButton(\"Create Schedule\");\r\n\t\tuxCreateScheduleButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCreateScheduleButton, \"10, 31, 1, 1\");\r\n\t\tuxCreateScheduleButton.addActionListener(manager.new CreateScheduleListener());\r\n\t\t\r\n\t\tframe.getRootPane().setDefaultButton(uxSearchButton);\r\n\t\t\t\t\r\n\t\tframe.pack();\r\n\t\t\r\n\t\tDimension frameSize = frame.getSize();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\tframe.setLocation((int) (0.5 * (screenSize.getWidth() - frameSize.getWidth())), (int) (0.5 * (screenSize.getHeight() - frameSize.getHeight())));\r\n\t}", "public NewJFrame() {\n initComponents();\n\n }", "static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void buildFrame(){\n this.setVisible(true);\n this.getContentPane();\n this.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\t \n\t }", "private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }", "private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public NewJFrame1() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 410, 288);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_COLSPEC,\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\n\t\t\tnew RowSpec[] {\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\n\t\t\t\tFormFactory.RELATED_GAP_ROWSPEC,\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,}));\n\t\t\n\t\tlblLogin = new JLabel(\"Login\");\n\t\tframe.getContentPane().add(lblLogin, \"12, 6\");\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tframe.getContentPane().add(lblUsername, \"10, 10\");\n\t\t\n\t\tusernameField = new JTextField();\n\t\tframe.getContentPane().add(usernameField, \"12, 10, fill, default\");\n\t\tusernameField.setColumns(10);\n\t\t\n\t\tlblPassword = new JLabel(\"Password:\");\n\t\tframe.getContentPane().add(lblPassword, \"10, 14\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tframe.getContentPane().add(passwordField, \"12, 14\");\n\t\t\n\t\tbtnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.login(usernameField.getText(), passwordField.getText());\n\t\t\t\t\tparent.setVisible(true);\n\t\t\t\t\tframe.dispose();\t\t\t\t\t\n\t\t\t\t\tparentProjWindow.displayProjects();\n\t\t\t\t\t\n\t\t\t\t} catch (RemoteAccessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Server unreacheable!\", \"Network Error!\", 0, null);\n\t\t\t\t}\t\n\t\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong credentials!\", \"Access denied!\", 0, null);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnLogin, \"12, 18\");\n\t}", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }", "public JexlEngine.Frame createFrame(Object... values) {\r\n return scope != null? scope.createFrame(values) : null;\r\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "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}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\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 static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "private void customizeFrame(JFrame frame) {\r\n frame.setTitle(getTitle());\r\n frame.setResizable(false);\r\n frame.setPreferredSize(new Dimension(width + 15, height + 36));\r\n frame.setVisible(true);\r\n\r\n frame.setLayout(new BorderLayout());\r\n frame.add(panel, BorderLayout.CENTER);\r\n frame.setLocationRelativeTo(null);\r\n\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n frame.pack();\r\n }", "public addStFrame() {\n initComponents();\n }", "private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}", "public void 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 }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "void frameSetUp() {\r\n\t\tJFrame testFrame = new JFrame();\r\n\t\ttestFrame.setSize(700, 400);\r\n\t\ttestFrame.setResizable(false);\r\n\t\ttestFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttestFrame.setLayout(new GridLayout(0, 2));\r\n\t\tmainFrame = testFrame;\r\n\t}", "SQLEntryForm(){\n super(); \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setLocationRelativeTo(null);\n this.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n this.setLayout(new BorderLayout());\n \n \n submit = new JButton(\"Submit\");\n back = new JButton(\"Back\");\n \n // create 3 Panels to organize content in JFrame with BorderLayout\n centerPanel = new JPanel(new SpringLayout());\n JPanel southPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));\n JPanel northPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));\n \n // instructions go at top of GUI and submit button goes at bottom\n instructions = new JLabel();\n northPanel.add(instructions);\n southPanel.add(submit);\n southPanel.add(back);\n \n \n\n // add panels\n this.add(northPanel, BorderLayout.NORTH);\n this.add(southPanel, BorderLayout.SOUTH);\n this.add(new JScrollPane(centerPanel), BorderLayout.CENTER);\n }", "protected void createFrame(String x) {\n InternalFrame frame = new InternalFrame();\n frame.setVisible(true);\n JOptionPane.showMessageDialog(frame, x, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n JLabel invalid = new JLabel(x);\n invalid.setBounds(180, 500, 200, 100);\n frame.add(invalid);\n try {\n frame.setSelected(true);\n } catch (java.beans.PropertyVetoException e) {\n e.printStackTrace();\n }\n }", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void initiateBuyRiotPointsFields(JFrame frame) {\r\n JLabel q3 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n new Label(q3);\r\n// q3.setPreferredSize(new Dimension(750, 100));\r\n// q3.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q3);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(750, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q4 = new JLabel(\"Amount of money you wish to spend (5, 10, 20, 35, 50, or 100)$\");\r\n new Label(q4);\r\n// q4.setPreferredSize(new Dimension(750, 100));\r\n// q4.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q4);\r\n\r\n JTextField amount = new JTextField();\r\n new TextField(amount);\r\n// amount.setPreferredSize(new Dimension(750, 100));\r\n// amount.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(amount);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/rp.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateBuyRiotPointsEnter(frame, account, amount);\r\n }", "FRAMESET createFRAMESET();", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.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 }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "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 }", "public frameAddDepartments() {\n initComponents();\n }", "private void makeFrame() {\n\t\tframe = new JFrame(calc.getTitle());\n\n\t\tJPanel contentPane = (JPanel) frame.getContentPane();\n\t\tcontentPane.setLayout(new BorderLayout(8, 8));\n\t\tcontentPane.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tdisplay = new JTextField();\n\t\tdisplay.setEditable(false);\n\t\tcontentPane.add(display, BorderLayout.NORTH);\n\n\t\tJPanel buttonPanel = new JPanel(new GridLayout(6, 5));\n\n\t\taddButton(buttonPanel, \"A\");\n\t\taddButton(buttonPanel, \"B\");\n\t\taddButton(buttonPanel, \"C\");\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\tJCheckBox check = new JCheckBox(\"HEX\");\n\t\tcheck.addActionListener(this);\n\t\tbuttonPanel.add(check);\n\n\t\taddButton(buttonPanel, \"D\");\n\t\taddButton(buttonPanel, \"E\");\n\t\taddButton(buttonPanel, \"F\");\n\t\taddButton(buttonPanel, \"(\");\n\t\taddButton(buttonPanel, \")\");\n\n\t\taddButton(buttonPanel, \"7\");\n\t\taddButton(buttonPanel, \"8\");\n\t\taddButton(buttonPanel, \"9\");\n\t\taddButton(buttonPanel, \"AC\");\n\t\taddButton(buttonPanel, \"^\");\n\n\t\taddButton(buttonPanel, \"4\");\n\t\taddButton(buttonPanel, \"5\");\n\t\taddButton(buttonPanel, \"6\");\n\t\taddButton(buttonPanel, \"*\");\n\t\taddButton(buttonPanel, \"/\");\n\n\t\taddButton(buttonPanel, \"1\");\n\t\taddButton(buttonPanel, \"2\");\n\t\taddButton(buttonPanel, \"3\");\n\t\taddButton(buttonPanel, \"+\");\n\t\taddButton(buttonPanel, \"-\");\n\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\taddButton(buttonPanel, \"0\");\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\taddButton(buttonPanel, \"=\");\n\n\t\tcontentPane.add(buttonPanel, BorderLayout.CENTER);\n\n\t\tframe.pack();\n\t\thexToggle();\n\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\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 }", "public DelVecchioMCSRframe() {\n\t\tallergyTF.setBounds(595, 170, 147, 20);\n\t\tallergyTF.setColumns(10);\n\t\tsib1NameTF.setToolTipText(\"Enter Name\");\n\t\tsib1NameTF.setBounds(518, 201, 141, 20);\n\t\tsib1NameTF.setColumns(10);\n\t\trel1NameTF.setToolTipText(\"Name\");\n\t\trel1NameTF.setBounds(123, 122, 109, 20);\n\t\trel1NameTF.setColumns(10);\n\t\tcheckOtherTF.setToolTipText(\"Other\");\n\t\tcheckOtherTF.setVisible(false);\n\t\tcheckOtherTF.setBounds(588, 121, 86, 20);\n\t\tcheckOtherTF.setColumns(10);\n\t\tMotherEmailTF.setToolTipText(\"Enter Email\");\n\t\tMotherEmailTF.setBounds(166, 301, 141, 20);\n\t\tMotherEmailTF.setColumns(10);\n\t\tmotherOccupationTF.setToolTipText(\"Enter Occupation\");\n\t\tmotherOccupationTF.setBounds(166, 276, 141, 20);\n\t\tmotherOccupationTF.setColumns(10);\n\t\tmotherEmploymentTF.setToolTipText(\"Enter Where You Work\");\n\t\tmotherEmploymentTF.setBounds(166, 251, 141, 20);\n\t\tmotherEmploymentTF.setColumns(10);\n\t\tmotherAddressTF.setToolTipText(\"Enter Address\\\\\");\n\t\tmotherAddressTF.setBounds(229, 226, 141, 20);\n\t\tmotherAddressTF.setColumns(10);\n\t\tmotherFirstNameTF.setToolTipText(\"Enter First Name\");\n\t\tmotherFirstNameTF.setBounds(166, 74, 141, 20);\n\t\tmotherFirstNameTF.setColumns(10);\n\t\tchildHomePhoneFTF.setToolTipText(\"Your Home Phone\");\n\t\tchildHomePhoneFTF.setBounds(131, 636, 176, 20);\n\t\tchildHomePhoneFTF.setColumns(10);\n\t\tchildCityTF.setToolTipText(\"Your City\");\n\t\tchildCityTF.setBounds(131, 589, 176, 20);\n\t\tchildCityTF.setColumns(10);\n\t\tchildStreetTF.setToolTipText(\"Your Street Address\");\n\t\tchildStreetTF.setBounds(131, 561, 176, 20);\n\t\tchildStreetTF.setColumns(10);\n\t\tsubdivisionTF.setToolTipText(\"Enter Your Subdivision\");\n\t\tsubdivisionTF.setBounds(131, 508, 176, 20);\n\t\tsubdivisionTF.setColumns(10);\n\t\totherGenderTF.setToolTipText(\"Enter Gender\");\n\t\totherGenderTF.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\t\tdo_otherGenderTF_focusLost(arg0);\n\t\t\t}\n\t\t});\n\t\totherGenderTF.setBounds(250, 195, 132, 20);\n\t\totherGenderTF.setColumns(10);\n\t\tchildPreferredNameTF.setToolTipText(\"Student's Preferred Name\");\n\t\tchildPreferredNameTF.setBounds(131, 145, 171, 20);\n\t\tchildPreferredNameTF.setColumns(10);\n\t\tchildLastNameTF.setToolTipText(\"Student's Last Name\");\n\t\t\n\t\tchildLastNameTF.setBounds(131, 120, 171, 20);\n\t\tchildLastNameTF.setColumns(10);\n\t\tchildMiddleNameTF.setToolTipText(\"Student's Middle Name\");\n\t\tchildMiddleNameTF.setBounds(131, 95, 171, 20);\n\t\tchildMiddleNameTF.setColumns(10);\n\t\tchildFirstNameTF.setToolTipText(\"Student's First Name\");\n\t\t\n\t\tchildFirstNameTF.setForeground(Color.BLACK);\n\t\tchildFirstNameTF.setCaretColor(Color.BLACK);\n\t\tchildFirstNameTF.setBounds(131, 70, 171, 20);\n\t\tchildFirstNameTF.setColumns(10);\n\t\totherRaceTF.setToolTipText(\"Enter Race\");\n\t\totherRaceTF.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\t\tdo_otherRaceTF_focusLost(arg0);\n\t\t\t}\n\t\t});\n\t\totherRaceTF.setBounds(250, 220, 132, 20);\n\t\totherRaceTF.setColumns(10);\n\t\tjbInit();\n\t}", "private void favouriteChampion() {\r\n JFrame recordWindow = new JFrame(\"Favourite a champion\");\r\n// recordWindow.setLocationRelativeTo(null);\r\n// recordWindow.getContentPane().setLayout(new BoxLayout(recordWindow.getContentPane(), BoxLayout.Y_AXIS));\r\n initiateFavouriteChampionFields(recordWindow);\r\n new Frame(recordWindow);\r\n// recordWindow.pack();\r\n// recordWindow.setVisible(true);\r\n }", "private void initiateAccountPrintFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Print details for mainAccount or altAccount?\");\r\n new Label(q5);\r\n// q5.setPreferredSize(new Dimension(1000, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/printicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(1000, 100));\r\n frame.add(label);\r\n\r\n initiateAccountPrintEnter(frame, account);\r\n }", "Composite createBlockContent( Composite parent, FormToolkit toolkit );", "public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }" ]
[ "0.66855675", "0.6339264", "0.6163837", "0.6082234", "0.6056488", "0.6048005", "0.60399044", "0.6010413", "0.59807765", "0.5977786", "0.59293073", "0.5907425", "0.59023243", "0.58942986", "0.5846303", "0.58223724", "0.58154553", "0.5812392", "0.58119845", "0.58061457", "0.5780139", "0.57641435", "0.5757669", "0.5756145", "0.5748542", "0.5748157", "0.5748157", "0.5748157", "0.5748157", "0.5748157", "0.5748157", "0.5748157", "0.5733161", "0.5721871", "0.5710325", "0.5705582", "0.5699398", "0.56822795", "0.5682123", "0.56590563", "0.56573695", "0.5651236", "0.5637186", "0.5632777", "0.5627235", "0.5623826", "0.5623048", "0.5617803", "0.56053215", "0.56052136", "0.5600779", "0.559817", "0.55976546", "0.5596726", "0.55922675", "0.5569981", "0.5565348", "0.5563278", "0.55631274", "0.5552657", "0.5548826", "0.55361897", "0.553562", "0.55265194", "0.55243224", "0.5514361", "0.5506655", "0.5498201", "0.54976547", "0.54961956", "0.54818285", "0.5481404", "0.54717517", "0.54629076", "0.5462895", "0.5456876", "0.5453323", "0.54448205", "0.5442597", "0.5440093", "0.5432151", "0.54263425", "0.5425839", "0.54238737", "0.542205", "0.5413378", "0.5412897", "0.5412889", "0.54123557", "0.54090285", "0.5406264", "0.5393948", "0.53931314", "0.53905827", "0.53881717", "0.5386033", "0.5381337", "0.5372603", "0.53666717", "0.53611475" ]
0.68126875
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel18 = new javax.swing.JPanel(); jPanel89 = new javax.swing.JPanel(); jPanel91 = new javax.swing.JPanel(); jLabel202 = new javax.swing.JLabel(); jTextField135 = new javax.swing.JTextField(); jScrollPane52 = new javax.swing.JScrollPane(); jTable26 = new javax.swing.JTable(); jButton68 = new javax.swing.JButton(); jPanel92 = new javax.swing.JPanel(); jPanel94 = new javax.swing.JPanel(); jScrollPane55 = new javax.swing.JScrollPane(); jTextArea29 = new javax.swing.JTextArea(); jLabel211 = new javax.swing.JLabel(); jPanel93 = new javax.swing.JPanel(); jButton69 = new javax.swing.JButton(); jButton70 = new javax.swing.JButton(); jPanel95 = new javax.swing.JPanel(); jLabel210 = new javax.swing.JLabel(); jTextField137 = new javax.swing.JTextField(); jTextField136 = new javax.swing.JTextField(); jLabel212 = new javax.swing.JLabel(); jLabel204 = new javax.swing.JLabel(); jTextField141 = new javax.swing.JTextField(); jLabel208 = new javax.swing.JLabel(); jTextField138 = new javax.swing.JTextField(); jTextField139 = new javax.swing.JTextField(); jLabel205 = new javax.swing.JLabel(); jPanel21 = new javax.swing.JPanel(); jComboBox26 = new javax.swing.JComboBox<>(); jLabel207 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel18.setBackground(new java.awt.Color(170, 170, 254)); jPanel91.setBackground(new java.awt.Color(227, 227, 253)); jPanel91.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel202.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel202.setText("FILTER BY CARD NUMBER:"); jTextField135.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jTable26.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane52.setViewportView(jTable26); jButton68.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/refresh.png"))); // NOI18N javax.swing.GroupLayout jPanel91Layout = new javax.swing.GroupLayout(jPanel91); jPanel91.setLayout(jPanel91Layout); jPanel91Layout.setHorizontalGroup( jPanel91Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel91Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel91Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane52, javax.swing.GroupLayout.PREFERRED_SIZE, 619, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel91Layout.createSequentialGroup() .addComponent(jLabel202, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField135, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton68, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(57, Short.MAX_VALUE)) ); jPanel91Layout.setVerticalGroup( jPanel91Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel91Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel91Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton68, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField135, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel202)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane52, javax.swing.GroupLayout.PREFERRED_SIZE, 497, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel92.setBackground(new java.awt.Color(217, 217, 250)); jPanel92.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); jPanel94.setBackground(new java.awt.Color(218, 218, 252)); jPanel94.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jTextArea29.setColumns(20); jTextArea29.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jTextArea29.setRows(5); jScrollPane55.setViewportView(jTextArea29); jLabel211.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel211.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel211.setText("NURSE TREATMENT:"); jPanel93.setBackground(new java.awt.Color(184, 168, 253)); jPanel93.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jButton69.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton69.setText("CANCEL"); jButton70.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton70.setText("ATTEND"); javax.swing.GroupLayout jPanel93Layout = new javax.swing.GroupLayout(jPanel93); jPanel93.setLayout(jPanel93Layout); jPanel93Layout.setHorizontalGroup( jPanel93Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel93Layout.createSequentialGroup() .addGap(33, 33, 33) .addComponent(jButton70, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton69, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30)) ); jPanel93Layout.setVerticalGroup( jPanel93Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel93Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel93Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton69, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton70, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(21, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel94Layout = new javax.swing.GroupLayout(jPanel94); jPanel94.setLayout(jPanel94Layout); jPanel94Layout.setHorizontalGroup( jPanel94Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel94Layout.createSequentialGroup() .addGap(50, 50, 50) .addGroup(jPanel94Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel211, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane55, javax.swing.GroupLayout.PREFERRED_SIZE, 370, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(48, Short.MAX_VALUE)) .addGroup(jPanel94Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel93, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel94Layout.setVerticalGroup( jPanel94Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel94Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel211) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane55, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE) .addComponent(jPanel93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel95.setBackground(new java.awt.Color(184, 168, 253)); jPanel95.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel210.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel210.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel210.setText("NURSE CHARGES:"); jTextField137.setEditable(false); jTextField137.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jTextField137.setHorizontalAlignment(javax.swing.JTextField.CENTER); jTextField137.setFocusable(false); jTextField137.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField137ActionPerformed(evt); } }); jTextField136.setEditable(false); jTextField136.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jTextField136.setFocusable(false); jLabel212.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel212.setText("DATE:"); jLabel204.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel204.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel204.setText("NAME:"); jTextField141.setEditable(false); jTextField141.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jTextField141.setHorizontalAlignment(javax.swing.JTextField.RIGHT); jTextField141.setFocusable(false); jTextField141.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField141ActionPerformed(evt); } }); jLabel208.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel208.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel208.setText("CONSULTATION FEE:"); jTextField138.setEditable(false); jTextField138.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jTextField138.setHorizontalAlignment(javax.swing.JTextField.CENTER); jTextField138.setFocusable(false); jTextField139.setEditable(false); jTextField139.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jTextField139.setHorizontalAlignment(javax.swing.JTextField.RIGHT); jTextField139.setFocusable(false); jLabel205.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel205.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel205.setText("CARD NO:"); javax.swing.GroupLayout jPanel95Layout = new javax.swing.GroupLayout(jPanel95); jPanel95.setLayout(jPanel95Layout); jPanel95Layout.setHorizontalGroup( jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel95Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel95Layout.createSequentialGroup() .addComponent(jLabel208, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField139)) .addGroup(jPanel95Layout.createSequentialGroup() .addComponent(jLabel205, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField137, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel204))) .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel95Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField138, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE) .addComponent(jLabel212, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField136, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel95Layout.createSequentialGroup() .addGap(142, 142, 142) .addComponent(jLabel210, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField141))) .addContainerGap()) ); jPanel95Layout.setVerticalGroup( jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel95Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel205) .addComponent(jTextField137, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel204)) .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField138, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel212) .addComponent(jTextField136, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel95Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel208, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField139, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel210) .addComponent(jTextField141, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); javax.swing.GroupLayout jPanel92Layout = new javax.swing.GroupLayout(jPanel92); jPanel92.setLayout(jPanel92Layout); jPanel92Layout.setHorizontalGroup( jPanel92Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel92Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(55, 55, 55)) .addGroup(jPanel92Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel95, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel92Layout.setVerticalGroup( jPanel92Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel92Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel95, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(27, 27, 27) .addComponent(jPanel94, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(126, 126, 126)) ); javax.swing.GroupLayout jPanel89Layout = new javax.swing.GroupLayout(jPanel89); jPanel89.setLayout(jPanel89Layout); jPanel89Layout.setHorizontalGroup( jPanel89Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel89Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel91, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(jPanel92, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel89Layout.setVerticalGroup( jPanel89Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel89Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel89Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel92, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel91, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(14, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18); jPanel18.setLayout(jPanel18Layout); jPanel18Layout.setHorizontalGroup( jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 1322, Short.MAX_VALUE) .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel18Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) ); jPanel18Layout.setVerticalGroup( jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 703, Short.MAX_VALUE) .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel18Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel89, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) ); jTabbedPane1.addTab("PHARMACY", jPanel18); jPanel21.setBackground(new java.awt.Color(170, 170, 254)); jComboBox26.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jComboBox26.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jLabel207.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel207.setText("PATIENT TYPE"); javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21); jPanel21.setLayout(jPanel21Layout); jPanel21Layout.setHorizontalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 1322, Short.MAX_VALUE) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGap(529, 529, 529) .addComponent(jLabel207) .addGap(3, 3, 3) .addComponent(jComboBox26, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(530, 530, 530))) ); jPanel21Layout.setVerticalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 569, Short.MAX_VALUE) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGap(274, 274, 274) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel207) .addComponent(jComboBox26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(274, Short.MAX_VALUE))) ); jTabbedPane1.addTab("STORE", jPanel21); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane1) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 101, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
Is the view now checked?
public void onCheckboxClicked(View view) { boolean checked = ((CheckBox) view).isChecked(); // Check which checkbox was clicked switch (view.getId()) { case R.id.cb_cod: if (cb_cod.isChecked()) { cod = "1"; } else { cod = "0"; } break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasActiveView();", "boolean isInview();", "void onCheckViewedComplete(boolean isViewed);", "boolean hasClickView();", "boolean isAllInview();", "boolean isChecked();", "boolean isChecked();", "boolean getIsChecked();", "boolean isCheckedOut();", "private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}", "boolean getCheckState();", "boolean hasCallView();", "@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}", "boolean hasTopicView();", "boolean isValid(View view);", "private boolean checkWfState(String view_name, String objid)\n {\n ASPManager mgr = getASPManager();\n ASPContext ctx = mgr.getASPContext();\n String objid_ = (String)ctx.findGlobalObject(prefix_wf_ob_dr + view_name);\n if (\"ALL\".equals(objid_))\n return true;\n \n if (!mgr.isEmpty(objid) && objid.equals(objid_))\n return true;\n \n return false;\n }", "@Override\n\tpublic boolean isChecked() {\n\t\treturn checked;\n\t}", "public boolean isChecked() {\n return checked;\n }", "public Boolean isChecked(){\n return aSwitch.isChecked();\n }", "boolean hasParentalStatusView();", "boolean hasAdScheduleView();", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "public Byte getIsView() {\n return isView;\n }", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "public boolean isOn(){\n return state;\n }", "boolean hasCurrentStateTime();", "public boolean checkIn(){\n return state.checkIn();\n }", "public boolean isChecked()\n\t{\n\t\treturn checked;\n\t}", "public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }", "boolean hasLocationView();", "public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}", "private static boolean m36209e(View view) {\n return view == null || !view.isShown();\n }", "public boolean isChecked() {\n\t\treturn checked;\n\t}", "boolean hasHasState();", "boolean getVisible(ActionEvent event) {\n JCheckBox box = (JCheckBox) event.getSource();\n return box.isSelected();\n }", "public boolean isViewable()\n {\n return this.isEditable() || this.viewable;\n }", "public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }", "public java.lang.Boolean getView() {\n return view;\n }", "public boolean isChecked() {\r\n\t\treturn getCheck().isSelected();\r\n\t}", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "protected boolean isActiveAdView(View view) {\r\n\t\t\tboolean ret = false;\r\n\t\t\tif (view != null) {\r\n\t\t\t\tif (view.getVisibility() != View.GONE) {\r\n\t\t\t\t\tret = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}", "public boolean getViewfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"viewfact\")).booleanValue());\n }", "public void setIsView(Byte isView) {\n this.isView = isView;\n }", "boolean hasActive();", "public final boolean mo5379l() {\n RecyclerView recyclerView = this.f9709b;\n return recyclerView != null && recyclerView.hasFocus();\n }", "boolean isReadyForShowing();", "public boolean shouldShow()\n {\n Timestamp today = DateUtils.getToday();\n Timestamp lastHintTimestamp = prefs.getLastHintTimestamp();\n return (lastHintTimestamp.isOlderThan(today));\n }", "public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }", "public boolean isFlagged();", "Boolean getIsChanged();", "boolean hasPerformAt();", "protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }", "public boolean isConicalView();", "public Boolean getIsCheck()\r\n\t{\r\n\t\treturn isCheck;\r\n\t}", "boolean hasHotelGroupView();", "public void toppingChecked(View view) {\n Log.d(\"Method\", \"toppingChecked()\");\n displayQuantity();\n }", "boolean isEdit();", "boolean hasArtilleryFactorySelected();", "public boolean getViewplan() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"viewplan\")).booleanValue());\n }", "public boolean canReadWriteOnMyLatestView()\n {\n \t \treturn getAccessBit(2);\n }", "public boolean CheckBox() {\n if (AseguradoCulpable.isSelected()) {\n return true;\n } else {\n return false;\n }\n }", "@JsProperty boolean getChecked();", "boolean isCitySelected();", "boolean isSetState();", "boolean hasFeedPlaceholderView();", "public boolean visible() {\n \treturn model.isVisible();\n }", "public void washingtonTrue(View view) { //Sets washington to be true\n washington = true;\n }", "protected boolean isOn() {\r\n\t\treturn this.isOn;\r\n\t}", "public void setView(java.lang.Boolean view) {\n this.view = view;\n }", "boolean hasGenderView();", "boolean isTodo();", "public static boolean isView(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase VIEW:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean isSetQuick();", "public boolean isMakeVisible()\r\n {\r\n return myMakeVisible;\r\n }", "Boolean getIsAnswered();", "public boolean isClicked() { return clicked; }", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "boolean isSetTarget();", "boolean hasCurrentAction();", "public boolean getIsChosen();", "public boolean takeControl() {\n\t\tif (!sharedState.isFindingObject()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// returns true if the shared state return in 1\r\n\t\treturn sharedState.getCurrentBehaviour()==1; \r\n\t}", "public void toggleChecker(View view) {\n ((CheckedTextView)view.findViewById(R.id.checkedTextView)).toggle();\n }", "public boolean checkChangeSavedAction(){\n ((AccountDetailFragment) getFragment(AccountDetailFragment.class)).syncData();\n if(mLastSaveAccount != null){\n return mLastSaveAccount.equalAllFields(mCurrentAccount);\n }else{\n return true;\n }\n }", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }", "public boolean getViewMissing() {\n return view == null;\n }", "public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }", "public boolean isEntered();", "boolean hasShoppingPerformanceView();", "boolean isSetDate();", "private static boolean m36208d(View view) {\n return view != null && view.hasWindowFocus();\n }", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }" ]
[ "0.75501776", "0.74544835", "0.7021176", "0.69602036", "0.68626857", "0.6827037", "0.6827037", "0.6771586", "0.67702115", "0.6595876", "0.65151024", "0.64800894", "0.6469104", "0.63461", "0.632834", "0.6256027", "0.6239415", "0.6226599", "0.6218813", "0.62153125", "0.6206983", "0.6204181", "0.61890423", "0.6174757", "0.6174757", "0.6174757", "0.6174757", "0.6174757", "0.6174757", "0.6174757", "0.6174757", "0.61687785", "0.615116", "0.61484563", "0.6105927", "0.6101301", "0.60656595", "0.6059824", "0.6047755", "0.60435975", "0.6037514", "0.6020947", "0.60113853", "0.6006725", "0.6004225", "0.6000614", "0.5999486", "0.5999486", "0.5999486", "0.5996781", "0.5991882", "0.59871596", "0.59819204", "0.5975271", "0.5973485", "0.59658784", "0.59625095", "0.59277874", "0.59209836", "0.59175986", "0.59155697", "0.59149253", "0.59122556", "0.58988196", "0.5897705", "0.5888056", "0.5881949", "0.5877258", "0.5872999", "0.58521575", "0.5852089", "0.58490086", "0.584742", "0.5843932", "0.58379215", "0.5833307", "0.5832019", "0.58244723", "0.58218753", "0.58094513", "0.57991916", "0.57988316", "0.57973593", "0.578419", "0.5783247", "0.5780732", "0.57773495", "0.57740587", "0.5764717", "0.575725", "0.57569486", "0.57544667", "0.57490504", "0.5744421", "0.5743357", "0.5740414", "0.572567", "0.5717409", "0.5713498", "0.5707455", "0.5702671" ]
0.0
-1
TODO Autogenerated method stub
@Override public Member createMember(Member member, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public Member updateMember(Member member, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { 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 boolean deactivateMember(Long id, String principalId) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { return false; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\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 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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public Member getMember(Long id) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { 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 Member getMemberByName(String name) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { 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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Member> getAllMembers(int start, int numberOfRecords) throws NotFoundException, ExistException, MissingParameter, InvalidParameter { 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
public static void main(String[] args) { String str1 ="fxstvf"; String str2 ="fxstvf"; System.out.println(isPermutation(str1, str2)); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\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 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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
subnetList = subnetDao.listSubnets(start, limit); totalCount = subnetDao.getSubnetsCount();
@JSON(serialize=false) public String listShowHuaSanSubnet() throws Exception { return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.SubnetResponse getSubnetResponse();", "int getListSnIdCount();", "public List<Subnet> selectSubnet() {\n\n\t\tList<Subnet> customers = new ArrayList<Subnet>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from subnet\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tSubnet customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new Subnet();\n\t\t\t\tcustomer.setVpc_name(resultSet.getString(1));\n\t\t\t\tcustomer.setSubnet_name(resultSet.getString(2));\n\t\t\t\tcustomer.setCidr(resultSet.getString(3));\n\t\t\t\tcustomer.setAcl(resultSet.getString(4));\n\t\t\t\tcustomer.setSubnetId(resultSet.getString(5));\n\t\t\t\tcustomer.setVpcId(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "int getListCount();", "@Repository\npublic interface WrcDestinationDao {\n\n\n List<WrcDestinationInfo> getTopDestList(int i);\n}", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@Test\n void getAllUserRolesSuccess() {\n List<UserRoles> userRoles = genericDao.getAll();\n //assert that you get back the right number of results assuming nothing alters the table\n assertEquals(6, userRoles.size());//\n log.info(\"get all userRoles test: all userRoles;\" + genericDao.getAll());\n }", "@Test\n public void retriveAllTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n List<Servizio> lista = manager.retriveAll();\n assertEquals(7,lista.size(),\"It should return a list of length 7\");\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "entities.Torrent.SubnetRequest getSubnetRequest();", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "@SkipValidation\r\n\tpublic String invokeTerritoryList() throws Exception{\r\n\t\t\r\n\t\t //territoryList=dao_impl.fetchTerritory(); ------>>>>>Written in prepare method, so commented\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t bloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t regionList = dao_impl.fetchRegion();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t \r\n\t\t System.out.println(\"size of bloodGrpList in AddMRAction class --->> \"+bloodGrpList.size());\r\n\t\t \r\n\t\t return \"SUCCESS\";\r\n\t\t\r\n\t}", "public int findTotalVariants() throws DAOException;", "private void listBalances() {\n\t\t\r\n\t}", "int getServiceAccountsCount();", "int getServicesCount();", "int getServicesCount();", "List<Subdivision> findAll();", "@Test\n void test_getALlreviews() throws Exception{\n\n List<ReviewMapping> reviewList=new ArrayList<>();\n\n for(long i=1;i<6;i++)\n {\n reviewList.add( new ReviewMapping(i,new Long(1),new Long(1),\"good\",3));\n }\n\n Mockito.when(reviewRepository.findAll()).thenReturn(reviewList);\n List<ReviewMapping> e=reviewService.GetReviewMappings();\n assertThat(e.size(),equalTo(5));\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "long getCount();", "long getCount();", "@Test\n void getAllSuccess() {\n List<RunCategory> categories = dao.getAll();\n assertEquals(13, categories.size());\n }", "@Override\r\n\tpublic List findAll(PageBean pagebean) {\n\t\tList list=bankcardMapper.selectByExample(null,new RowBounds(pagebean.getOffset(), pagebean.getLimit()));\r\n\t\tint count=bankcardMapper.countByExample(null);\r\n\t\tpagebean.setCount(count);\t\r\n\t\treturn list;\r\n\t}", "public int count () {\n return member_id_list.length;\r\n }", "public int getListSnIdCount() {\n return listSnId_.size();\n }", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public int size(){\n return list.size();\n }", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "int getTotalCount();", "ArrayList<Bet> selectLostBetsOfAccount(Account account) throws DAOException;", "int findAllCount() ;", "public List<User> GetAllUsers() {\n/* 38 */ return this.userDal.GetAllUsers();\n/* */ }", "Long getAllCount();", "@Test\n\tpublic void getAllByRegion() {\n\t\tList<String> consequenceTypeList = new ArrayList<String>();\n\t\tconsequenceTypeList.add(\"2KB_upstream_variant\");\n\t\tconsequenceTypeList.add(\"splice_region_variant\");\n\t\tList<Snp> snps = snpDBAdaptor.getAllByRegion(new Region(\"1\", 10327, 12807), consequenceTypeList);\n\t\tthis.printSNPList(\"getAllByRegion\", snps, 50);\n\t}", "public List viewTotalInscritosBD();", "int getContactListCount();", "int getContactListCount();", "int getContactListCount();", "int getContactListCount();", "public int size(){\n\n \treturn list.size();\n\n }", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "public static void main(String[] args) {\n\n\n carsDAO carsDAO = new carsDAO();\n\n carsDAO.find2ndWatch();\n\n System.out.println(carsDAO.find2ndWatch().size());\n\n List<Car> aa = carsDAO.find2ndWatch();\n\n System.out.println();\n\n\n\n\n\n\n\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public int getListSnIdCount() {\n return listSnId_.size();\n }", "@Test\n void getAllSuccess(){\n\n List<CompositionInstrument> compositionInstruments = genericDao.getAll();\n assertEquals(4, compositionInstruments.size());\n }", "public int size(){ return itemCount;}", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "public void testFindAccountList(){\n\t\tString begin = \"2013-01-01\" ;\n\t\tString end = \"2014-01-01\" ;\n\t\tAccount account = new Account() ;\n\t\tList<Account> list = this.bean.findAccountList(begin, end, account) ;\n\t\tAssert.assertTrue(list.size()>2) ;\n\t}", "public List<UserGroup> GetActiveGroups() {\n/* 44 */ return this.userDal.GetActiveGroups();\n/* */ }", "ArrayList<Bet> selectWonBetsOfAccount(Account account) throws DAOException;", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "@Test\n public void test_getSupervisors_1() throws Exception {\n clearDB();\n\n List<User> res = instance.getSupervisors();\n\n assertEquals(\"'getSupervisors' should be correct.\", 0, res.size());\n }", "@Override\r\n public Long findListCount(Map<String, Object> params) {\n return assetDao.findListCount(params);\r\n }", "private static void getListTest() {\n\t\tList<CartVo> list=new CartDao().getList();\r\n\t\t\r\n\t\tfor(CartVo cartVo : list) {\r\n\t\t\tSystem.out.println(cartVo);\r\n\t\t}\r\n\t}", "@Override\n\tpublic int selectReserveCount() {\n\t\treturn dgCallServiceMapper.selectReserveCount();\n\t}", "public int getCallsNb();", "public int size(){\r\n return boats.size();\r\n }", "public List<Brands> LoadAllBrands() {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands`\";\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }", "int getItemsCount();", "int getItemsCount();", "@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}", "@Override\n public int getItemCount() {\n return entityList.size();\n }", "@Override\n\tpublic int getSubcount(int subAccountId) {\n\t\t\n\t\tSession session = sessionFactory.openSession();\n\t\t\n\t\tTypedQuery<Subscribe> query = session.createQuery(\"select s from Subscribe s where s.subscriber.kullaniciid= :id\");\n\t\t\n\t\tquery.setParameter(\"id\",subAccountId);\n\t\t\n\t\tList<Subscribe> list = query.getResultList();\n\t\t\n\t\n\t\t\n\t\tsession.close();\n\t\t\n\t\treturn list.isEmpty() ? 0 : list.size();\n\t}", "List<Subscription> findAll();", "long getTotalProductsCount();", "@Override\n public ArrayList<SamleImageDetails> getSampleImageLinks(String orinNo) throws PEPPersistencyException{\n \tLOGGER.info(\"inside getSampleImageLinksDetails()dao impl\");\n \tList<SamleImageDetails> sampleImgList = new ArrayList<SamleImageDetails>();\n \tSession session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getSampleImageLinks());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){ \t\n \t\n \tSamleImageDetails sampleImage = new SamleImageDetails(); \t\n \tsampleImage.setOrinNo(row[0]!=null?row[0].toString():null);\n \tsampleImage.setImageId(row[1]!=null?row[1].toString():null);\n \t//Null check\n \tif(row[2]!=null){\n \t\tsampleImage.setImageName(row[2]!=null?row[2].toString():null);\n \t}else {\n \t\tsampleImage.setImageName(\"\");\n \t}\n \tif(row[3] !=null){\n \t\tsampleImage.setImageLocation(row[3]!=null?row[3].toString():null);\n \t}else{\n \t\tsampleImage.setImageLocation(\"\");\n \t}\n \t\n \tsampleImage.setImageShotType(row[4]!=null?row[4].toString():null);\n \t\n \tif(row[5] !=null){\n \t\t\n \t\tif(row[5].toString().equalsIgnoreCase(\"ReadyForReview\") || row[5].toString().equalsIgnoreCase(\"Ready_For_Review\") || row[5].toString().contains(\"Ready_\")){\n \t\t\t\n \t\t\tsampleImage.setLinkStatus(\"ReadyForReview\");\n \t\t}else{\n \t\t\t\n \t\t\tsampleImage.setLinkStatus(row[5]!=null?row[5].toString():null);\n \t\t} \t\t\n \t}else{\n \t\tLOGGER.info(\"Link Status is null\");\n \t\tsampleImage.setLinkStatus(\"Initiated\");\n \t}\n \t\n \t\n \t\n \tif(row[6] !=null){\n \t\t\n \t\tif(row[6].toString().equalsIgnoreCase(\"Ready_For_Review\") || row[6].toString().contains(\"Ready_\")){\n \t\t\tLOGGER.info(\"if condtion ReadyForReview \");\n \t\t\tsampleImage.setImageStatus(\"ReadyForReview\");\n \t\t}else{\n \t\t\t\n \t\t\tsampleImage.setImageStatus(row[6]!=null?row[6].toString():null);\n \t\t} \t\t\n \t}else{\n \t\tLOGGER.info(\"imageStatus as----null in DAO \");\n \t\tsampleImage.setImageStatus(\"Initiated\");\n \t}\n \t\n \tif(row[7] !=null){\n \t\tsampleImage.setImageSampleId(row[7]!=null?row[7].toString():null);\n \t}else {\n \t\tsampleImage.setImageSampleId(\"\");\n \t}\n \tsampleImage.setImageSamleReceived(row[8]!=null?row[8].toString():null);\n \tsampleImage.setImageSilhouette(row[9]!=null?row[9].toString():null);\n \tif(row[10] !=null){\n \t\tsampleImage.setTiDate(row[10]!=null?row[10].toString():null);\n \t}else {\n \t\t\n \t\tsampleImage.setTiDate(\"\");\n \t}\n \tif(row[11] !=null){\n \t\tsampleImage.setSampleCoordinatorNote(row[11]!=null?row[11].toString():null);\n \t}else {\n \t\t\n \t\tsampleImage.setSampleCoordinatorNote(\"\");\n \t} \t\n \tsampleImgList.add(sampleImage);\n \t\n \t//RejectCode\n \tif(row[13] !=null && row[14] !=null && row[15] !=null){\n \t\tsampleImage.setRejectCode(row[13].toString());\n \t\tsampleImage.setRejectReason(row[14].toString());\n\n \t\tString rejectionTimeStamp = StringUtils.replace(row[15].toString(),\"T\",\" \");\n \t\tString formattedTimeStamp = StringUtils.substringBeforeLast(rejectionTimeStamp, \"-\");\n \t\tsampleImage.setRejectionTimestamp(formattedTimeStamp);\n \t} \n }\n }catch(Exception e){\n \te.printStackTrace();\n }\n finally{\n \ttx.commit(); \t\n \tsession.close();\n }\n \t\n \t\n \treturn (ArrayList<SamleImageDetails>) sampleImgList; \n \t\n }", "private void getBlockListNetworkCall(final Context context, int offset, int limit) {\n\n HashMap<String, Object> serviceParams = new HashMap<String, Object>();\n HashMap<String, Object> tokenServiceHeaderParams = new HashMap<String, Object>();\n\n tokenServiceHeaderParams.put(Keys.TOKEN, UserSharedPreference.readUserToken());\n serviceParams.put(Keys.LIST_OFFSET, offset);\n serviceParams.put(Keys.LIST_LIMIT, limit);\n\n new WebServicesVolleyTask(context, false, \"\",\n EnumUtils.ServiceName.get_blocked_user,\n EnumUtils.RequestMethod.GET, serviceParams, tokenServiceHeaderParams, new AsyncResponseCallBack() {\n\n @Override\n public void onTaskComplete(TaskItem taskItem) {\n\n if (taskItem != null) {\n\n if (taskItem.isError()) {\n if (getUserVisibleHint())\n showNoResult(true);\n } else {\n try {\n\n if (taskItem.getResponse() != null) {\n\n JSONObject jsonObject = new JSONObject(taskItem.getResponse());\n\n // todo parse actual model\n JSONArray favoritesJsonArray = jsonObject.getJSONArray(\"users\");\n\n Gson gson = new Gson();\n Type listType = new TypeToken<List<BlockUserBO>>() {\n }.getType();\n List<BlockUserBO> newStreams = (List<BlockUserBO>) gson.fromJson(favoritesJsonArray.toString(),\n listType);\n\n totalRecords = jsonObject.getInt(\"total_records\");\n if (totalRecords == 0) {\n showNoResult(true);\n } else {\n if (blockListAdapter != null) {\n if (startIndex != 0) {\n //for the case of load more...\n blockListAdapter.removeLoadingItem();\n } else {\n //for the case of pulltoRefresh...\n blockListAdapter.clearItems();\n }\n }\n\n showNoResult(false);\n setUpBlockListRecycler(newStreams);\n }\n }\n } catch (Exception ex) {\n showNoResult(true);\n ex.printStackTrace();\n }\n }\n }\n }\n });\n }", "private int getResourceListSize() {\n return dataList.getResourceEndIndex();\n }", "public int getCount() {\n return list.size();\n }", "@Override\n\tpublic int regionAllcount() throws Exception {\n\t\treturn dao.regionAllcount();\n\t}", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public int size(){\n return items.size();\n }", "List<Object> getCountExtent();", "private void loadProducts() {\n Call<List<Product>> productsCall = productRepository.getAllProducts();\n productsCall.enqueue(new Callback<List<Product>>() {\n @Override\n public void onResponse(Call<List<Product>> call, Response<List<Product>> response) {\n if (errMess != null ) {\n errMess.setValue(\"\");\n }\n products.setValue(response.body());\n// System.out.println(\"**************************** here and there \\n \");\n// System.out.println(products.getValue().size());\n// System.out.println(\"end here is the end of the list \");\n// System.out.println(response.body().size());\n }\n\n @Override\n public void onFailure(Call<List<Product>> call, Throwable t) {\n //System.out.println(\"some error occur while loading data\");\n //System.out.println(t);\n errMess = new MutableLiveData<>();\n errMess.setValue(\"error while loading data\");\n }\n });\n }", "@Override\n public int getItemCount() {\n //neste caso 10\n return mList.size();\n }", "public int size(){\n return numItems;\n }", "@Override\n public void onFailure(Call<List<NbaResults>> call, Throwable t) {\n\n\n }", "int getCouponListCount();", "public interface RoleJdbcRepository {\n List<RoleViewDto> searchRoleList();\n\n Long searchRampAreaPageableTotalCount(RoleFilterDto filter);\n\n\n List<RoleViewDto> searchRampAreaPageable(RoleFilterDto filter);\n}", "@org.junit.Test\r\n public void listAll() throws Exception {\r\n System.out.println(\"listAll\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n int size1 = service.listAll().size();\r\n assertEquals(size1, 0);\r\n service.insertReview(review);\r\n int size2 = service.listAll().size();\r\n assertEquals(size2, 1);\r\n }", "public int size(){\n return count;\n }", "public int getSize(){\r\n return repo.findAll().size();\r\n }", "@Test(enabled = false)\n public void getPrivateNetworkIPsByVirtualDatacenterTestLimit()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n // Test Default\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n IpsPoolManagementDto entity = response.getEntity(IpsPoolManagementDto.class);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(Integer.valueOf(entity.getCollection().size()),\n AbstractResource.DEFAULT_PAGE_LENGTH);\n\n // Test 30\n validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?limit=30\";\n response = get(validURI, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(entity.getCollection().size(), 30);\n\n // Test 120\n validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?limit=120\";\n response = get(validURI, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(entity.getCollection().size(), 120);\n\n }", "List<Object> getCountList();", "@Test\n @DisplayName(\"Testataan kaikkien tilausten haku\")\n void getAllReservations() {\n assertEquals(0, reservationsDao.getAllReservations().size());\n\n TablesEntity table1 = new TablesEntity();\n table1.setSeats(2);\n tablesDao.createTable(table1);\n // Test that returns the same number as created reservations\n ReservationsEntity firstReservation = new ReservationsEntity(\"amal\",\"46111222\", new Date(System.currentTimeMillis()), table1.getId(),new Time(1000),new Time(2000));\n reservationsDao.createReservation(firstReservation);\n\n TablesEntity table2 = new TablesEntity();\n table2.setSeats(2);\n tablesDao.createTable(table2);\n reservationsDao.createReservation(new ReservationsEntity(\"juho\", \"46555444\", new Date(System.currentTimeMillis()), table2.getId(), new Time(1000),new Time(2000)));\n\n List<ReservationsEntity> reservations = reservationsDao.getAllReservations();\n assertEquals(2, reservations.size());\n assertEquals(firstReservation, reservations.get(0));\n }", "public int listAmount() {\n return count;\n }" ]
[ "0.5969783", "0.57738674", "0.5750008", "0.5665161", "0.5654168", "0.5652518", "0.5652518", "0.5652518", "0.5599697", "0.5591864", "0.55839115", "0.5531606", "0.5501066", "0.54697347", "0.5455098", "0.54058784", "0.5385216", "0.5366792", "0.5366792", "0.5360379", "0.53467095", "0.53399765", "0.53296596", "0.53296596", "0.532738", "0.5324986", "0.53157854", "0.53157353", "0.53157324", "0.53102696", "0.53102696", "0.53096646", "0.5289212", "0.52830327", "0.52812994", "0.5272286", "0.5271286", "0.52693015", "0.526758", "0.52653795", "0.5263087", "0.5255274", "0.5255274", "0.5255274", "0.5255274", "0.5248607", "0.5246647", "0.5244906", "0.5243087", "0.5243087", "0.5240881", "0.52321583", "0.5223644", "0.5213488", "0.52063245", "0.52063245", "0.52063245", "0.52063245", "0.52063245", "0.52063245", "0.5199066", "0.5194796", "0.51881236", "0.5185566", "0.5183873", "0.51820767", "0.5176938", "0.5176192", "0.5169717", "0.5158578", "0.51513135", "0.5146236", "0.5146236", "0.514376", "0.5137374", "0.5134556", "0.5133303", "0.5131028", "0.51299626", "0.5127276", "0.5124934", "0.51242864", "0.51222765", "0.51173663", "0.51173663", "0.51173663", "0.5112908", "0.510411", "0.5100785", "0.50955254", "0.5094082", "0.50893664", "0.50884277", "0.5087715", "0.5084886", "0.5079541", "0.50717187", "0.5070501", "0.5069335", "0.5068586", "0.5068263" ]
0.0
-1
Using this function the message is decrypted back using the shared secret key and returned to the decoder.
public String Decrypt(String Message, int PrimeNo, String EncoderKeyPath) throws IOException { Scanner sc = new Scanner(System.in); Key key1 = new Key(); char[] msg=new char[Message.length()]; int s, x; System.out.println("Enter Your Secret Key To Decode "); x=sc.nextInt(); int key = key1.Skey(PrimeNo, x, EncoderKeyPath); char s1; int len=Message.length(); int res=0; for(int i=0;i<len;i++) { res=i%key; s=Message.charAt(i); s-=res; s1= (char) s; msg[i]=s1; } String msg1 = new String(msg); return msg1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String decryptMsg(String msg);", "public static byte[] decrypt(byte[] message, byte[] key) throws Exception {\n byte[] initialValue = new byte[initialValueSize];\r\n System.arraycopy(message, 0, initialValue, 0, initialValueSize);\r\n IvParameterSpec initialValueSpec = new IvParameterSpec(initialValue);\r\n //get ciphertext from byte array input\r\n byte[] ciphertext = new byte[message.length - initialValueSize];\r\n\t\tSystem.arraycopy(message, initialValueSize, ciphertext, 0, message.length - initialValueSize);\r\n //initialize key, only 128 bits key for AES in Java\r\n key = Arrays.copyOf(hashMessage(key), 16);\r\n //initialize AES decryption algorithm\r\n\t\tSecretKeySpec keySpec = new SecretKeySpec(key, \"AES\");\r\n\t\tCipher aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\t\taesCipher.init(Cipher.DECRYPT_MODE, keySpec, initialValueSpec);\r\n //decrypt message by applying the decryption algorithm\r\n\t\tbyte[] decryptedMessage = aesCipher.doFinal(ciphertext);\r\n return decryptedMessage;\r\n\t}", "public String decrypt(String key);", "void decryptMessage(String Password);", "void decrypt(ChannelBuffer buffer, Channel c);", "@Override\n public String decryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] decMsg = new char[msg.length()];\n int actKey = key % 65536;\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n decMsg[ind] = (char) ((letter - actKey < 0) ? letter - actKey + 65536 : letter - actKey);\n }\n return new String(decMsg);\n }\n }", "public byte[] decrypt(byte[] message, PrivateKey key) throws GeneralSecurityException {\n ByteBuffer buffer = ByteBuffer.wrap(message);\n int keyLength = buffer.getInt();\n byte[] encyptedPublicKey = new byte[keyLength];\n buffer.get(encyptedPublicKey);\n\n Cipher cipher = Cipher.getInstance(\"RSA\");\n cipher.init(Cipher.DECRYPT_MODE, key);\n\n byte[] encodedPublicKey = cipher.doFinal(encyptedPublicKey);\n\n aes.setKeyValue(new String(encodedPublicKey));\n byte[] encryptedMessage = new byte[buffer.remaining()];\n buffer.get(encryptedMessage);\n String decrypt_message = \"\";\n try {\n decrypt_message = aes.decrypt(new String(encryptedMessage));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return decrypt_message.getBytes();\n }", "private byte[] decryptUpperTransportPDU(@NonNull final AccessMessage accessMessage) throws InvalidCipherTextException {\n byte[] decryptedUpperTransportPDU;\n byte[] key;\n final int transportMicLength = accessMessage.getAszmic() == SZMIC ? MAXIMUM_TRANSMIC_LENGTH : MINIMUM_TRANSMIC_LENGTH;\n //Check if the key used for encryption is an application key or a device key\n final byte[] nonce;\n if (APPLICATION_KEY_IDENTIFIER == accessMessage.getAkf()) {\n key = mMeshNode.getDeviceKey();\n //If its a device key that was used to encrypt the message we need to create a device nonce to decrypt it\n nonce = createDeviceNonce(accessMessage.getAszmic(), accessMessage.getSequenceNumber(), accessMessage.getSrc(), accessMessage.getDst(), accessMessage.getIvIndex());\n decryptedUpperTransportPDU = SecureUtils.decryptCCM(accessMessage.getUpperTransportPdu(), key, nonce, transportMicLength);\n } else {\n final List<ApplicationKey> keys = mUpperTransportLayerCallbacks.getApplicationKeys(accessMessage.getNetworkKey().getKeyIndex());\n if (keys.isEmpty())\n throw new IllegalArgumentException(\"Unable to find the app key to decrypt the message\");\n\n nonce = createApplicationNonce(accessMessage.getAszmic(), accessMessage.getSequenceNumber(), accessMessage.getSrc(),\n accessMessage.getDst(), accessMessage.getIvIndex());\n\n if (MeshAddress.isValidVirtualAddress(accessMessage.getDst())) {\n decryptedUpperTransportPDU = decrypt(accessMessage, mUpperTransportLayerCallbacks.gerVirtualGroups(), keys, nonce, transportMicLength);\n } else {\n decryptedUpperTransportPDU = decrypt(accessMessage, keys, nonce, transportMicLength);\n }\n }\n\n if (decryptedUpperTransportPDU == null)\n throw new IllegalArgumentException(\"Unable to decrypt the message, invalid application key identifier!\");\n\n final byte[] tempBytes = new byte[decryptedUpperTransportPDU.length];\n ByteBuffer decryptedBuffer = ByteBuffer.wrap(tempBytes);\n decryptedBuffer.order(ByteOrder.LITTLE_ENDIAN);\n decryptedBuffer.put(decryptedUpperTransportPDU);\n decryptedUpperTransportPDU = decryptedBuffer.array();\n return decryptedUpperTransportPDU;\n }", "public static byte[] decryptSMS(String secretKeyString, byte[] encryptedMsg) throws Exception {\n // generate AES secret key from the user input secret key\n Key key = generateKey(secretKeyString);\n // get the cipher algorithm for AES\n Cipher c = Cipher.getInstance(\"AES\");\n // specify the decryption mode\n c.init(Cipher.DECRYPT_MODE, key);\n // decrypt the message\n byte[] decValue = c.doFinal(encryptedMsg);\n return decValue;\n }", "public byte[] Tdecryption() {\n int[] plaintext = new int[message.length];\n\n for (int j = 0, k = 1; j < message.length && k < message.length; j = j + 2, k = k + 2) {\n sum = delta << 5;\n l = message[j];\n r = message[k];\n for (int i = 0; i < 32; i++) {\n r = r - (((l << 4) + key[2]) ^ (l + sum) ^ ((l >> 5) + key[3]));\n l = l - (((r << 4) + key[0]) ^ (r + sum) ^ ((r >> 5) + key[1]));\n sum = sum - delta;\n }\n plaintext[j] = l;\n plaintext[k] = r;\n }\n return this.Inttobyte(plaintext);\n }", "public static String decrypt(String input) {\n\t\t Base64.Decoder decoder = Base64.getMimeDecoder();\n\t String key = new String(decoder.decode(input));\n\t return key;\n\t}", "public void decryptMessageClick(View view) {\n\n String receivedMessage = mMessageContentEditText.getText().toString();\n mMessage.extractEncryptedMessageAndKey(receivedMessage);\n\n if(!decryptMessage()) showToast(\"Error! failed to decrypt text.\");\n\n else{\n\n showDecryptedMessage();\n }\n }", "@Override\n\tpublic void Decrypt(Object key) {\n\n\t}", "public String Decrypt(String s);", "public String decrypt(String msg) {\n \n StringBuilder sb = new StringBuilder(msg);\n \n for (int i=0; i< sb.length(); i++) {\n char decrypted = decrypt(sb.charAt(i));\n sb.setCharAt(i, decrypted);\n }\n \n return sb.toString();\n }", "public byte[] decrypt(byte[] input, KeyPair keyPair) throws Exception {\n\t\treturn decrypt(input, keyPair.getPrivate());\t\n\t}", "private byte[] decode(byte[] msg) {\r\n\t\treturn Base64.decode(msg); \r\n\t}", "PGPPrivateKey decryptSecretKey(PGPSecretKey secretKey, String password);", "private String decryptKey(String keyValue) {\n if (keyValue != null) {\n byte[] encryptedKey = Base64.decode(keyValue);\n AWSKMS client = AWSKMSClientBuilder.defaultClient();\n DecryptRequest request = new DecryptRequest()\n .withCiphertextBlob(ByteBuffer.wrap(encryptedKey));\n ByteBuffer plainTextKey = client.decrypt(request).getPlaintext();\n return new String(plainTextKey.array(), Charset.forName(\"UTF-8\"));\n }\n return null;\n }", "public String tselDecrypt(String key, String message)\n\t{\n\n\t\tif (key == null || key.equals(\"\")) \n\t\t{\n\t\t\treturn message;\n\t\t}\n\n\t\tif (message == null || message.equals(\"\")) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\tCryptoUtils enc = new CryptoUtils(key, Cipher.DECRYPT_MODE);\n\t\tString messageEnc = enc.process(message);\n\n\t\treturn messageEnc;\n\t}", "public String decrypt(String message) {\t\n\t\tchar [] letters = new char [message.length()];\n\t\tString newMessage = \"\";\n\n\t\t//create an array of characters from message\n\t\tfor(int i=0; i< message.length(); i++){\n\t\t\tletters[i]= message.charAt(i);\n\t\t}\n\n\t\tfor(int i=0; i<letters.length; i++){\n\t\t\tif(Character.isLetter(letters[i])){ //check to see if letter\n\t\t\t\tif(Character.isUpperCase(letters[i])){ //check to see if it is uppercase\n\t\t\t\t\tnewMessage += letters[i]; //add that character to new string\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//new message is the string that needs to be decrypted now \n\t\t//change the letters into numbers\n\t\tint [] decryptNums = new int[newMessage.length()];\n\t\tString alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t\tfor(int i=0; i < newMessage.length(); i++){\n\t\t\tchar c = newMessage.charAt(i);\n\t\t\tint x = alphabet.indexOf(c) + 1;\n\t\t\tdecryptNums[i] = x;\n\t\t}\n\n\n\t\t//generate key from those numbers\n\t\tint[] keyNum = new int [decryptNums.length];\n\t\tfor(int i=0; i<decryptNums.length; i++){\n\t\t\tint x = getKey();\n\t\t\tkeyNum[i] = x;\n\t\t}\n\n\t\t//subtract letter number from key number\n\t\tint[] finalNum = new int [keyNum.length];\n\t\tfor(int i=0; i<keyNum.length; i++){\n\t\t\tint x= decryptNums[i]-keyNum[i];\n\t\t\tif(keyNum[i] >=decryptNums[i] ){\n\t\t\t\tx = x+26;\n\t\t\t\tfinalNum[i]=x;\n\t\t\t}else{\n\t\t\t\tfinalNum[i]=x;\n\t\t\t}\n\t\t}\n\n\t\t//now re match the alphabet to it \n\t\tchar[] finalChar = new char [finalNum.length];\n\n\t\tfor(int i=0; i< finalNum.length; i++){\n\t\t\tint x = finalNum[i]-1;\n\t\t\tchar c = alphabet.charAt(x);\n\t\t\tfinalChar[i]=c;\n\t\t}\n\n\t\tString decrypt = \"\";\n\t\tfor(int i=0; i< finalChar.length; i++){\n\t\t\tdecrypt += finalChar[i];\n\t\t}\n\t\t\n\t\treturn decrypt;\n\t}", "private static byte[] decryptCbcDes(SSL2ServerVerifyMessage message, TlsContext context) {\n byte[] keyMaterial = makeKeyMaterial(context, \"0\");\n byte[] clientReadKey = Arrays.copyOfRange(keyMaterial, 0, 8);\n // According to the RFC draft, DES keys must be parity-adjusted, though\n // it won't matter much in practice\n DESParameters.setOddParity(clientReadKey);\n byte[] iv = context.getSSL2Iv();\n\n CBCBlockCipher cbcDes = new CBCBlockCipher(new DESEngine());\n ParametersWithIV cbcDesParams = new ParametersWithIV(new DESParameters(clientReadKey), iv);\n cbcDes.init(false, cbcDesParams);\n\n return processEncryptedBlocks(\n cbcDes,\n message.getEncryptedPart().getValue(),\n message.getPaddingLength().getValue());\n }", "public int decrypt(){\n int message = 0;\n \n try {\n is_obj = socket_obj.getInputStream();\n isr_obj = new InputStreamReader(is_obj);\n br_obj = new BufferedReader(isr_obj);\n \n message = br_obj.read();\n \n //System.out.println(\"Proper Clock value received from Server is: \" +message);\n \t\t//return message/10; \n }\n catch (Exception e )\n {\n e.printStackTrace();\n }\n \treturn message/10;\n\t\n \n }", "public static byte [] decryptAndVerify(PrivateKey decryptionKey, byte [] receivedCipherText){\r\n\t\tif(receivedCipherText == null) return null;\r\n\t\ttry {\r\n\t\t\t// NOTE: If both signAndEncrypt() and decryptAndVeryfy() methods use byte [] as cipherText, then base64 conversion\r\n\t\t\t// can be avoided here\r\n\t\t\t// convert incoming message to bytes\r\n\t\t\t// byte [] inputBuffer = StringUtil.base64Decode(receivedCipherText);\r\n\t\t\t// note that we make a copy to avoid overwriting the received cipher text\r\n\t\t\tbyte [] inputBuffer = Arrays.copyOf(receivedCipherText,receivedCipherText.length);\r\n\r\n\t\t\t// obtain the decryption key, and the cursor (current location in input buffer after the key)\r\n\t\t\tbyte [] wrappedEncryptionKey = unpackFromByteArray(inputBuffer, 0);\r\n\t\t\tint cursor = wrappedEncryptionKey.length+2;\r\n\t\t\t// unwrap the enclosed symmetric key using our public encryption key\r\n\t\t\tCipher unwrapper = Cipher.getInstance(encryptionAlgorithm);\r\n\t\t\tunwrapper.init(Cipher.UNWRAP_MODE, decryptionKey);\r\n\t\t\tKey k = unwrapper.unwrap(wrappedEncryptionKey,symmetricKeyAlgorithm,Cipher.SECRET_KEY);\r\n\r\n\t\t\t// decrypt the message. Note that decryption reduces the size of the message, so should fit\r\n\t\t\t// in the inputBuffer. We don't need the length of the decrypted message, since all lengths are\r\n\t\t\t// included in the message\r\n\t\t\tCipher decryptor = Cipher.getInstance(symmetricKeyAlgorithm);\r\n\t\t\tdecryptor.init(Cipher.DECRYPT_MODE, k);\r\n\t\t\tdecryptor.doFinal(inputBuffer,cursor,inputBuffer.length-cursor,inputBuffer,cursor);\r\n\r\n\t\t\t// locate the sender's public key used for signatures and update cursor\r\n\t\t\tbyte [] senderVerificationKey = unpackFromByteArray(inputBuffer, cursor);\r\n\t\t\tcursor += senderVerificationKey.length+2;\r\n\r\n\t\t\t// reconstruct the sender's public key used for message signing, and verify the signature\r\n\t\t\t// TODO: Note that the generation of the public key relies on the sender public key\r\n\t\t\t// using the algorithm defined by publicKeyAlgorithm. We need to encode the algorithm\r\n\t\t\t// as well\r\n\t\t\tX509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(senderVerificationKey);\r\n\t\t\tKeyFactory keyFactory = KeyFactory.getInstance(publicKeyAlgorithm);\r\n\t\t\tPublicKey pubKey = keyFactory.generatePublic(pubKeySpec);\r\n\r\n\t\t\t// locate the signature and update cursor\r\n\t\t\t// note: it is possible to reduce signature copy since verifier allows us to directly use the \r\n\t\t\t// signature bits in inpuBuffer, but the size is small, so we leave this here for the moment\r\n\t\t\tbyte [] signature = unpackFromByteArray(inputBuffer, cursor);\r\n\t\t\tcursor += signature.length+2;\r\n\r\n\t\t\t// locate the plainText\r\n\t\t\tbyte [] plainText = unpackFromByteArray(inputBuffer, cursor);\r\n\r\n\t\t\t// verify the signature\r\n\t\t\tSignature verifier = Signature.getInstance(signatureAlgorithm);\r\n\t\t\tverifier.initVerify(pubKey);\r\n\t\t\tverifier.update(plainText);\r\n\t\t\tif(!verifier.verify(signature)){\r\n\t\t\t\tthrow new ModelException(\"Unable to verify the message \"+new String(Arrays.copyOf(plainText, 10)));\r\n\t\t\t}\r\n\r\n\t\t\t// return the plain text\r\n\t\t\treturn plainText;\r\n\t\t} catch(Exception e){\r\n\t\t\tlogger.log(Level.WARNING,\"Unable to decrypt or verify incoming message \"+receivedCipherText, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String decode(String message)\n\t{\n\t\treturn decode(message, 0);\n\t}", "@Override\n public String decryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] decMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n if (letter >= 'a' && letter <= 'z') {\n int temp = letter - 'a' - key;\n decMsg[ind] = (char) ('a' + (char) ((temp < 0) ? temp + 26 : temp));\n } else if (letter >= 'A' && letter <= 'Z') {\n int temp = letter - 'A' - key;\n decMsg[ind] = (char) ('A' + (char) ((temp < 0) ? temp + 26 : temp));\n } else {\n decMsg[ind] = letter;\n }\n }\n return new String(decMsg);\n }\n }", "IMessage decode(byte[] data) throws InvalidMessageException;", "public static String decode(String decode, String decodingName) {\r\n\t\tString decoder = \"\";\r\n\t\tif (decodingName.equalsIgnoreCase(\"base64\")) {\r\n\t\t\tbyte[] decoded = Base64.decodeBase64(decode);\r\n\t\t\ttry {\r\n\t\t\t\tdecoder = new String(decoded, \"UTF-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"PBEWithMD5AndDES\")) {\r\n\t\t\t// Key generation for enc and desc\r\n\t\t\tKeySpec keySpec = new PBEKeySpec(secretKey.toCharArray(), salt, iterationCount);\r\n\t\t\tSecretKey key;\r\n\t\t\ttry {\r\n\t\t\t\tkey = SecretKeyFactory.getInstance(\"PBEWithMD5AndDES\").generateSecret(keySpec);\r\n\t\t\t\t// Prepare the parameter to the ciphers\r\n\t\t\t\tAlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);\r\n\t\t\t\t// Decryption process; same key will be used for decr\r\n\t\t\t\tdcipher = Cipher.getInstance(key.getAlgorithm());\r\n\t\t\t\tdcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);\r\n\t\t\t\tif (decode.indexOf(\"(\", 0) > -1) {\r\n\t\t\t\t\tdecode = decode.replace('(', '/');\r\n\t\t\t\t}\r\n\t\t\t\tbyte[] enc = Base64.decodeBase64(decode);\r\n\t\t\t\tbyte[] utf8 = dcipher.doFinal(enc);\r\n\t\t\t\tString charSet = \"UTF-8\";\r\n\t\t\t\tString plainStr = new String(utf8, charSet);\r\n\t\t\t\treturn plainStr;\r\n\t\t\t} catch (InvalidKeySpecException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException\r\n\t\t\t\t\t| InvalidAlgorithmParameterException | IllegalBlockSizeException | BadPaddingException\r\n\t\t\t\t\t| IOException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"DES/ECB/PKCS5Padding\")) {\r\n\t\t\t// Get a cipher object.\r\n\t\t\tCipher cipher;\r\n\t\t\ttry {\r\n\t\t\t\tcipher = Cipher.getInstance(\"DES/ECB/PKCS5Padding\");\r\n\t\t\t\tcipher.init(Cipher.DECRYPT_MODE, generateKey());\r\n\t\t\t\t// decode the BASE64 coded message\r\n\t\t\t\tBASE64Decoder decoder1 = new BASE64Decoder();\r\n\t\t\t\tbyte[] raw = decoder1.decodeBuffer(decode);\r\n\t\t\t\t// decode the message\r\n\t\t\t\tbyte[] stringBytes = cipher.doFinal(raw);\r\n\t\t\t\t// converts the decoded message to a String\r\n\t\t\t\tdecoder = new String(stringBytes, \"UTF8\");\r\n\t\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IOException\r\n\t\t\t\t\t| IllegalBlockSizeException | BadPaddingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn decoder;\r\n\t}", "public byte[] decrypt(byte[] input, Key privKey) throws Exception {\n\t\tcipher.init(Cipher.DECRYPT_MODE, privKey);\n\t\treturn cipher.doFinal(input);\t\n\t}", "@Override\n\tpublic void decodeMsg(byte[] message) {\n\t\t\n\t\tIoBuffer buf = IoBuffer.allocate(message.length).setAutoExpand(true);\n\t\tbuf.put(message);\n\t\tbuf.flip();\n\t\t\n\t\tslaveId = buf.get();\n\t\tcode = buf.get();\n\t\toffset = buf.getShort();\n\t\tdata = buf.getShort();\n\n\t\tif(buf.remaining() >= 2)\n\t\t\tcrc16 = buf.getShort();\n\t}", "public void receive_message(){\n logical_clock++;\n \n decrypt();\n System.out.println(\"Receive Message Clock:\" +logical_clock);\n }", "public void decrypt(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tString message = \"\";\n\t\tfor(int i = 0; i < chars.length; i++)\n\t\t{\n\t\t\tif(chars[i] == (char)32)\n\t\t\t{\n\t\t\t\tBigInteger encrypted = new BigInteger(message);\n\t\t\t\tconvertToString(encrypted.modPow(privateKey, publicKey).toString());\n\t\t\t\tmessage = \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmessage += chars[i];\n\t\t\t}\n\t\t}\n\t\tmyView.setDecryptText(myDecryptedMessage);\n\t\tmyDecryptedMessage = \"\";\n\t}", "static String aes256CtrArgon2HMacDecrypt(\n Map<String, String> encryptedMsg, String password) throws Exception {\n byte[] argon2salt = Hex.decode(encryptedMsg.get(\"kdfSalt\"));\n byte[] argon2hash = Argon2Factory.createAdvanced(\n Argon2Factory.Argon2Types.ARGON2id).rawHash(16,\n 1 << 15, 2, password, argon2salt);\n\n // AES decryption: {cipherText + IV + secretKey} -> plainText\n byte[] aesIV = Hex.decode(encryptedMsg.get(\"cipherIV\"));\n IvParameterSpec ivSpec = new IvParameterSpec(aesIV);\n Cipher cipher = Cipher.getInstance(\"AES/CTR/NoPadding\");\n Key secretKey = new SecretKeySpec(argon2hash, \"AES\");\n cipher.init(Cipher.DECRYPT_MODE, secretKey, ivSpec);\n byte[] cipherTextBytes = Hex.decode(encryptedMsg.get(\"cipherText\"));\n byte[] plainTextBytes = cipher.doFinal(cipherTextBytes);\n String plainText = new String(plainTextBytes, \"utf8\");\n\n // Calculate and check the MAC code: HMAC(plaintext, argon2hash)\n Mac mac = Mac.getInstance(\"HmacSHA256\");\n Key macKey = new SecretKeySpec(argon2hash, \"HmacSHA256\");\n mac.init(macKey);\n byte[] hmac = mac.doFinal(plainText.getBytes(\"utf8\"));\n String decodedMac = Hex.toHexString(hmac);\n String cipherTextMac = encryptedMsg.get(\"mac\");\n if (! decodedMac.equals(cipherTextMac)) {\n throw new InvalidKeyException(\"MAC does not match: maybe wrong password\");\n }\n\n return plainText;\n }", "public static String decryptText(byte[] byteCipherText, SecretKey secKey) throws Exception {\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.DECRYPT_MODE, secKey);\r\n\r\n byte[] bytePlainText = aesCipher.doFinal(byteCipherText);\r\n\r\n return new String(bytePlainText);\r\n\r\n}", "public byte[] aesDecryptCipheredSecret(byte[] cipheredSecret) {\n return null;\n }", "private BigInteger decrypt(BigInteger encryptedMessage) {\n return encryptedMessage.modPow(d, n);\n }", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "String decrypt(String input) {\n\t\treturn new String(BaseEncoding.base64().decode(input));\n\t}", "@Override\n public void decrypt() {\n algo.decrypt();\n String cypher = vigenereAlgo(false);\n this.setValue(cypher);\n }", "@Override\n public byte[] decrypt(byte[] ciphertext) {\n ECPoint point = checkPointOnCurve(ciphertext);\n BigInteger privateKeyInverse = privateKey.getS().modInverse(privateKey.getParams().getOrder());\n return point.multiply(privateKeyInverse).getEncoded(true);\n }", "public static byte [] decrypt(byte [] cipherText, SecretKey key){\r\n\t\ttry {\r\n\t\t\tbyte [] initVector = unpackFromByteArray(cipherText, 0);\r\n\t\t\tint cursor = initVector.length+2;\t\t\t\r\n\t\t\tCipher cipher = Cipher.getInstance(symmetricKeyCryptoMode);\r\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, key, new IvParameterSpec(initVector));\t\t\t\r\n\t\t\treturn cipher.doFinal(cipherText,cursor,cipherText.length-cursor);\r\n\t\t} catch (Exception e){\r\n\t\t\tthrow new ModelException(ExceptionReason.INVALID_PARAMETER, \"Error decrypting cipherText \"+cipherText,e);\r\n\t\t}\r\n\t}", "public String decrypt(String text) {\n byte[] dectyptedText = null;\n try {\n // decrypt the text using the private key\n cipher.init(Cipher.DECRYPT_MODE, publicKey);\n byte[] data=Base64.decode(text, Base64.NO_WRAP);\n String str=\"\";\n for(int i=0;i<data.length;i++)\n {\n str+=data[i]+\"\\n\";\n }\n android.util.Log.d(\"ali\",str);\n dectyptedText = cipher.doFinal(Base64.decode(text, Base64.NO_WRAP));\n return new String(dectyptedText);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public String decrypt(String input) throws Throwable {\n byte[] inputByteArray = Base64.getDecoder().decode(input);\n String keyString = \"\";\n\n // read the private key\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(\n new InputStreamReader(context.getAssets().open(\"Put your private key in assets and Enter its name here\"), \"UTF-8\"));\n String line;\n while ((line = reader.readLine()) != null) {\n keyString += line;\n }\n reader.close();\n }catch (IOException e){\n Toast.makeText(context, \"Couldn't create file reader\", Toast.LENGTH_SHORT).show();\n }\n\n // fetching the key from public key\n keyString = keyString.replaceAll(NEW_LINE_CHARACTER, EMPTY_STRING)\n .replaceAll(PRIVATE_KEY_START_KEY_STRING, EMPTY_STRING)\n .replaceAll(PRIVATE_KEY_END_KEY_STRING, EMPTY_STRING);\n\n byte[] privateKey = keyString.getBytes();\n\n Key generatePrivate = KeyFactory.getInstance(\"RSA\").\n generatePrivate(new PKCS8EncodedKeySpec(Base64.getDecoder().decode(privateKey)));\n\n // create RSA Cipher instance\n Cipher cipherInstance = Cipher.getInstance(\"RSA/None/PKCS1Padding\");\n cipherInstance.init(Cipher.DECRYPT_MODE, generatePrivate);\n\n // encrypt string\n byte[] decryptedByteArray = cipherInstance.doFinal(inputByteArray);\n return new String(decryptedByteArray);\n }", "public static byte[] decrypt(byte[] decrypt, SecretKeySpec keySpec)\n {\n\tbyte[] message = null;\n\t\t\n\ttry {\n\t // Extract the cipher parameters from the end of the input array\n\t byte[] cipherText = new byte[decrypt.length - AES_PARAM_LEN];\n\t byte[] paramsEnc = new byte[AES_PARAM_LEN];\n\t\t\t\n\t System.arraycopy(decrypt, 0, cipherText, 0, cipherText.length);\n\t System.arraycopy(decrypt, cipherText.length, paramsEnc, 0, paramsEnc.length);\n\n\t // Initialize the parameters\n\t AlgorithmParameters params = AlgorithmParameters.getInstance(\"AES\");\n\t params.init(paramsEnc);\n\t \n\t // Initialize the cipher for decryption\n\t Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t cipher.init(Cipher.DECRYPT_MODE, keySpec, params);\n\t\t\t\n\t // Decrypt the ciphertext\n\t message = cipher.doFinal(cipherText);\n\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t}\n\t\t\n\treturn message;\n }", "public String decodePassword(String encodedPassword, String key);", "public static byte[]\r\n blockDecrypt (byte[] in, int inOffset, Object sessionKey) {\r\nif (DEBUG) trace(IN, \"blockDecrypt(\"+in+\", \"+inOffset+\", \"+sessionKey+\")\");\r\nif (DEBUG && debuglevel > 6) System.out.println(\"CT=\"+toString(in, inOffset, BLOCK_SIZE));\r\n //\r\n // ....\r\n //\r\n byte[] result = new byte[BLOCK_SIZE];\r\n \t int i;\r\n\t for ( i = 0; i < frog_Algorithm.BLOCK_SIZE; i++ ) result[i] = in[i+inOffset];\r\n\t result = frog_procs.decryptFrog( result, ((frog_InternalKey) sessionKey).keyD );\r\n\r\nif (DEBUG && debuglevel > 6) {\r\nSystem.out.println(\"PT=\"+toString(result));\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"blockDecrypt()\");\r\n return result;\r\n }", "public String decrypt(String input)\n {\n CaesarCipherTwo cipher = new CaesarCipherTwo(26 - mainKey1, 26 - mainKey2);\n return cipher.encrypt(input);\n }", "byte unwrap(byte[] keyHandle, short keyHandleOffset, short keyHandleLength, byte[] applicationParameter, short applicationParameterOffset, ECPrivateKey unwrappedPrivateKey);", "public String decrypt(String msg) {\n if (map == null) {\n getMapping();\n }\n\n // Find cipher match\n String ch = \"\";\n for (int j = 0; j < map.length; j++) {\n if ((map[j][0] + \"\").equals(msg)) {\n ch = (char)j + \"\";\n }\n }\n\n return ch;\n }", "public BigIntegerMod decrypt(Ciphertext ciphertext);", "void decryptCode() {\n StringBuilder temp = new StringBuilder(\"\");\n\n // go through entire phrase\n for (int i = 0; i < this.getText().length(); ++i) {\n\n // append char to temp if char at i is not a multiple of z\n if (!(i % Character.getNumericValue(this.secretKey.charAt(7)) == 0) || i == 0)\n temp.append(this.getText().charAt(i));\n }\n\n this.setText(temp);\n\n \n // Step 2:\n\n // split phrase up into words\n ArrayList<String> words = new ArrayList<>(Arrays.asList(this.text.toString().split(\" \")));\n\n for (int i = 0; i < words.size(); ++i) {\n\n // if y1x3x4 is at the end of the word, remove it from word\n \n if (words.get(i).substring(words.get(i).length() - 3, words.get(i).length())\n .equals(this.getSecretKey().substring(3, 6)))\n words.set(i, words.get(i).substring(0, words.get(i).length() - 3));\n\n // if x1x2 is at the end of the word\n else {\n // remove x1x2 from end\n words.set(i, words.get(i).substring(0, words.get(i).length() - 2));\n \n // move last char to beginning\n words.set(i, words.get(i).charAt(words.get(i).length() - 1) + words.get(i).substring(0, words.get(i).length() - 1));\n }\n }\n\n temp = new StringBuilder(\"\");\n\n for (String word : words)\n temp.append(word + \" \");\n\n this.setText(temp);\n }", "public String ebcDecrypt(String ciphertext, String key) {\n\t\treturn AESEBC.AESDecrypt(ciphertext, key);\n\t}", "public String getData(String key) {\n return decrypt(message, key);\n }", "public static byte[] decrypt(byte[] encryptedData, SecretKey secretKey) throws GeneralSecurityException {\n Cipher aesCipher = Cipher.getInstance(SECRETKEY_CIPHER_WRAP_ALGORITHM);\n \n int offset = aesCipher.getBlockSize();\n final byte[] iv = Arrays.copyOfRange(encryptedData, 0, offset);\n \n aesCipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv));\n \n return aesCipher.doFinal(Arrays.copyOfRange(encryptedData, offset, encryptedData.length));\n }", "Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);", "public String decrypt(final byte[] hexEncodedMessage) throws KeyException, IllegalBlockSizeException {\n if (key == null) {\n throw new KeyException(\"Secret key not set\");\n }\n\n try {\n final Cipher cipher = Cipher.getInstance(\"AES\");\n cipher.init(Cipher.DECRYPT_MODE, key);\n\n return new String(cipher.doFinal(hexEncodedMessage));\n } catch (NoSuchAlgorithmException |\n InvalidKeyException |\n BadPaddingException |\n NoSuchPaddingException e) {\n e.printStackTrace();\n throw new UnsupportedOperationException();\n }\n }", "String decryptHiddenField(String encrypted);", "private String decrypt(SecretKey key, String encrypted) {\n\t\ttry {\n\t\t\tCipher cipher = Cipher.getInstance(\"AES\");\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, key);\n\n\t\t\tbyte[] original = cipher.doFinal(Base64.decodeBase64(encrypted));\n\n\t\t\treturn new String(original);\n\t\t} catch (InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException\n\t\t\t\t| NoSuchPaddingException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\n\t\treturn null;\n\t}", "public String decode(String message) {\n if (message == null || message.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(message);\n StringBuilder target = new StringBuilder();\n while (source.length() >= 8) {\n String substring = source.substring(0,8);\n source.delete(0, 8);\n target.append(decodeByte(substring));\n }\n int bitOverlap = target.length() % 8;\n if (bitOverlap > 0 && target.length() > 8) {\n target.delete(target.length() - bitOverlap, target.length());\n }\n return target.toString();\n }", "private byte[] handleUpdate(byte[] message) {\n\t\tbyte[] newSecretBytes = Arrays.copyOfRange(message, \"update:\".getBytes().length, message.length);\n\n/*\n\t\tSystem.out.println(\"THIS IS A TEST:\");\n\t\tSystem.out.println(\"newSecretBytes:\");\n\t\tComMethods.charByChar(newSecretBytes, true);\n\t\tSystem.out.println(\"newSecretBytes, reversed:\");\n\t\tString toStr = DatatypeConverter.printBase64Binary(newSecretBytes);\n\t\tbyte[] fromStr = DatatypeConverter.parseBase64Binary(toStr);\n\t\tComMethods.charByChar(fromStr, true);\n*/\n\t\tString newSecret = DatatypeConverter.printBase64Binary(newSecretBytes);\n\t\tboolean success = replaceSecretWith(currentUser, newSecret);\n\t\t\n\t\tif (success) {\n\t\t\tComMethods.report(\"SecretServer has replaced \"+currentUser+\"'s secret with \"+newSecret+\".\", simMode);\n\t\t\treturn preparePayload(\"secretupdated\".getBytes());\n\t\t} else {\n\t\t\tComMethods.report(\"SecretServer has FAILED to replace \"+currentUser+\"'s secret with \"+newSecret+\".\", simMode);\n\t\t\treturn preparePayload(\"writingfailure\".getBytes());\n\t\t}\n\t}", "public static String decrypt(String seed, String encrypted)\r\nthrows Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] enc = Base64.decode(encrypted.getBytes(), Base64.DEFAULT);\r\nbyte[] result = decrypt(rawKey, enc);\r\nreturn new String(result);\r\n}", "public static String decrypt(byte[] decode, String base64EncodedCipherText)\n throws GeneralSecurityException {\n try {\n// final SecretKeySpec key = generateKey(password);\n final SecretKeySpec key = new SecretKeySpec(ENCRYPTION_SECRET_KEY.getBytes(), \"AES-256-CBC\");\n log(\"base64EncodedCipherText\", base64EncodedCipherText);\n byte[] decodedCipherText = Base64.decode(base64EncodedCipherText, Base64.NO_WRAP);\n log(\"decodedCipherText\", decodedCipherText);\n\n byte[] decryptedBytes = decrypt(key, decode, decodedCipherText);\n\n log(\"decryptedBytes\", decryptedBytes);\n String message = new String(decryptedBytes, CHARSET);\n log(\"message\", message);\n\n\n return message;\n } catch (UnsupportedEncodingException e) {\n if (DEBUG_LOG_ENABLED)\n Log.e(TAG, \"UnsupportedEncodingException \", e);\n\n throw new GeneralSecurityException(e);\n }\n }", "public static String decryptMsg(byte[] cipherText, SecretKey secret) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidParameterSpecException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException, UnsupportedEncodingException {\r\n Cipher cipher = null;\r\n cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\r\n cipher.init(Cipher.DECRYPT_MODE, secret);\r\n String decryptString = new String(cipher.doFinal(cipherText), \"UTF-8\");\r\n return decryptString;\r\n }", "public String decrypt(final String value) {\n\t\treturn encryptor.decrypt(value);\n\t}", "public String decrypt(String cipherText);", "public static SecretKey unwrap(byte [] wrappedKey, PrivateKey decryptionKey) {\r\n\t\ttry {\r\n\t\t\tCipher unwrapper = Cipher.getInstance(encryptionAlgorithm);\r\n\t\t\tunwrapper.init(Cipher.UNWRAP_MODE, decryptionKey);\r\n\t\t\treturn (SecretKey) unwrapper.unwrap(wrappedKey,symmetricKeyAlgorithm,Cipher.SECRET_KEY);\r\n\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException e) {\r\n\t\t\tthrow new ModelException(ExceptionReason.INVALID_PARAMETER, \"Unable to unwrap key \"+new String(Arrays.copyOf(wrappedKey, 10))+\"...\",e);\r\n\t\t}\r\n\t}", "private BigInteger decrypt(BigInteger encrypted, BigInteger privateKey, BigInteger modulus){\n return encrypted.modPow(privateKey, modulus);\n }", "public static byte[] aesDecrypt(byte[] ciphertext, SecretKey decryptionKey) {\n\t\t\n\t\tbyte[] result = null;\n\t\tCipher cipher;\n\t\ttry {\n\t\t\t// Using our custom-constant salt and iteration count\n\t\t\tcipher = Cipher.getInstance(\"PBEWithSHA256And256BitAES-CBC-BC\");\n\t\t\tbyte[] salt = \"Extr3m3lyS3cr3tSalt!\".getBytes();\n\t\t\tint count = 20;\n\t\t\tPBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, count);\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, decryptionKey, pbeParamSpec);\n\t\t\tresult = cipher.doFinal(ciphertext);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\treturn result;\n\t}", "public static BinaryMessageDecoder<ContentKey> getDecoder() {\n return DECODER;\n }", "public static String decrypt(String strToDecrypt)\n {\n try\n {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5PADDING\");\n final SecretKeySpec secretKey = new SecretKeySpec(key, \"AES\");\n cipher.init(Cipher.DECRYPT_MODE, secretKey);\n final String decryptedString = new String(cipher.doFinal(Base64.decodeBase64(strToDecrypt)));\n return decryptedString;\n }\n catch (Exception e)\n {\n e.printStackTrace();\n\n }\n return null;\n }", "public String decryptString(String encryptedMessage) {\n return new String(decrypt(new BigInteger(encryptedMessage)).toByteArray());\n }", "public String entschlüsseln(SecretKey key, String nachricht) throws Exception{\n BASE64Decoder myDecoder2 = new BASE64Decoder();\n byte[] crypted2 = myDecoder2.decodeBuffer(nachricht);\n\n // Entschluesseln\n Cipher cipher2 = Cipher.getInstance(\"AES\");\n cipher2.init(Cipher.DECRYPT_MODE, key);\n byte[] cipherData2 = cipher2.doFinal(crypted2);\n String erg = new String(cipherData2);\n\n // Klartext\n return(erg);\n\n}", "@GetMapping(\"/encrypt-decrypt/{smallMsg}\")\n\tpublic String encryptDecrypt(@PathVariable String password, @RequestParam(\"message\") String message) {\n\t\tSystem.out.println(\"IN CONTROLLER KEY IS : \"+password);\n String response = service1.authenticateUser(password, message);\n return \"RESPONSE AFTER DECRYPTION : \"+response;\n\t}", "String decrypt(PBEncryptStorage pbeStorage, String password, byte[] salt);", "@Override\n public void onClick(View v) {\n String secretPass2 = edt.getText().toString().trim();\n String msg = message;\n // originalMessage = msg.replace(User.CHAT_WITH_NAME + \":-\", \"\").trim();\n\n String decryptMessage = AES.decrypt(msg, secretPass2);\n textView.setText(Html.fromHtml(title));\n textView.append(\"\\n\");\n if (decryptMessage != null && !decryptMessage.isEmpty()) {\n\n try {\n textView.append(\" \" + decryptMessage + \" \\n\");\n\n // delay 10 second\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // Actions to do after 10 seconds\n textView.setText(Html.fromHtml(title));\n textView.append(\"\\n\");\n textView.append(\" \" + message + \" \\n\");\n }\n }, 10000);\n\n // end of delay\n } catch (Exception e) {\n textView.append(\" \" + message + \" \\n\");\n }\n } else {\n textView.append(\" \" + message + \" \\n\");\n Toast.makeText(ChatActivity.this, \"Wrong Key\", Toast.LENGTH_SHORT).show();\n }\n\n b.dismiss();\n }", "public byte[] decrypt(final PrivateKeyInterface key, final byte[] data)\n throws DecryptionFailedException\n {\n return this.decryptionCipher().decrypt(key, data);\n }", "private byte[] handleView() {\n\t\tString secret = ComMethods.getValueFor(currentUser, secretsfn);\n\t\tif (secret.equals(\"\")) {\n\t\t\treturn \"error\".getBytes();\n\t\t} else {\n\t\t\tbyte[] secretInBytes = DatatypeConverter.parseBase64Binary(secret);\n\n\t\t\tComMethods.report(\"SecretServer has retrieved \"+currentUser+\"'s secret and will now return it.\", simMode);\n\t\t\treturn preparePayload(secretInBytes);\n\t\t}\n\t}", "Binder getToken(Binder data) {\n byte[] signedAnswer = data.getBinaryOrThrow(\"data\");\n try {\n if (publicKey.verify(signedAnswer, data.getBinaryOrThrow(\"signature\"), HashType.SHA512)) {\n Binder params = Boss.unpack(signedAnswer);\n // now we can check the results\n if (!Arrays.equals(params.getBinaryOrThrow(\"server_nonce\"), serverNonce))\n addError(Errors.BAD_VALUE, \"server_nonce\", \"does not match\");\n else {\n // Nonce is ok, we can return session token\n createSessionKey();\n Binder result = Binder.fromKeysValues(\n \"client_nonce\", params.getBinaryOrThrow(\"client_nonce\"),\n \"encrypted_token\", encryptedAnswer\n );\n\n version = Math.min(SERVER_VERSION, params.getInt(\"client_version\", 1));\n\n byte[] packed = Boss.pack(result);\n return Binder.fromKeysValues(\n \"data\", packed,\n \"signature\", myKey.sign(packed, HashType.SHA512)\n );\n }\n }\n } catch (Exception e) {\n addError(Errors.BAD_VALUE, \"signed_data\", \"wrong or tampered data block:\" + e.getMessage());\n }\n return null;\n }", "protected byte[] engineSharedSecret() throws KeyAgreementException {\n return Util.trim(ZZ);\n }", "public String decrypt (String input) {\n return new CaesarCipherTwo(ALPHABET_LENGTH-mainKey1, ALPHABET_LENGTH-mainKey2).encrypt(input);\n }", "private String decrypt(String encryptedData) throws Exception {\n Key key = generateKey();\n Cipher c = Cipher.getInstance(ALGO);\n c.init(Cipher.DECRYPT_MODE, key);\n byte[] decordedValue = Base64.getDecoder().decode(encryptedData);\n byte[] decValue = c.doFinal(decordedValue);\n String result = new String(decValue);\n return result;\n }", "public static void dec(String cipherText, String key) {\n char msg[] = cipherText.toCharArray();\n int msglen = msg.length;\n int i,j;\n \n // Creating new char arrays\n char keygenerator[] = new char[msglen];\n char encMsg[] = new char[msglen];\n char decdMsg[] = new char[msglen];\n \n /* Generate key, using keyword in cyclic manner equal to the length of original message i.e plaintext */\n for(i = 0, j = 0; i <msglen; ++i, ++j)\n {\n if(j == key.length() - 1)\n {\n j = 0;\n }\n keygenerator[i] = key.charAt(j);\n }\n \n //Decryption\n for(i = 0; i < msglen; ++i) {\n decdMsg[i] = (char)((((encMsg[i] - keygenerator[i]) + 26) % 26) + 'A');\n }\n\n System.out.println(\"Decrypted Message: \" + String.valueOf(decdMsg));\n }", "public String decrypt(String text) {\n return content.decrypt(text);\n }", "public byte[] decrypt(byte[] data) throws Exception {\n // call overriden function with offset = 0\n return decrypt(data, 0);\n }", "@Test\r\n public void testDecrypt()\r\n {\r\n System.out.println(\"decrypt\");\r\n String input = \"0fqylTncsgycZJQ+J5pS7v6/fj8M/fz4bavB/SnIBOQ=\";\r\n KeyMaker km = new KeyMaker();\r\n SecretKeySpec sks = new SecretKeySpec(km.makeKeyDriver(\"myPassword\"), \"AES\");\r\n EncyptDecrypt instance = new EncyptDecrypt();\r\n String expResult = \"Hello how are you?\";\r\n String result = instance.decrypt(input, sks);\r\n assertEquals(expResult, result);\r\n }", "String decryptString(String toDecrypt) throws NoUserSelectedException, IllegalValueException;", "public void decodeMessage() {\n StringBuilder decoded = new StringBuilder();\n\n for (int i = 0; i < message.length(); i += 3) {\n if (message.charAt(i) == message.charAt(i + 1)) {\n decoded.append(message.charAt(i));\n } else if (message.charAt(i) == message.charAt(i + 2)) {\n decoded.append(message.charAt(i));\n } else {\n decoded.append(message.charAt(i + 1));\n }\n }\n\n message = decoded;\n }", "public PrivateKey decryptPrivateKeyFile(String filePath, SecretKey secretKey) {\n\t\tPath path = Paths.get(filePath);\n\t\tbyte[] fileData = null;\n\t\ttry {\n\t\t\tfileData = Files.readAllBytes(path);\n\t\t} catch ( IOException e ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Decrypting data to PEM format\n\t\tCipher cipher = null;\n\t\tbyte[] pemData = null;\n\t\ttry {\n\t\t\tcipher = Cipher.getInstance(\"DES/ECB/PKCS5Padding\");\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, secretKey);\n\t\t\tpemData = cipher.doFinal(fileData);\n\t\t} catch ( NoSuchAlgorithmException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Non-existing algorithm for Cipher: DES/ECB/PKCS5Padding\");\n\t\t\tSystem.exit(1);\n\t\t} catch ( NoSuchPaddingException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Non-existing padding for Cipher: DES/ECB/PKCS5Padding\");\n\t\t\tSystem.exit(1);\n\t\t} catch ( InvalidKeyException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Invalid secret key\");\n\t\t\treturn null;\n\t\t\t//System.exit(1);\n\t\t} catch ( IllegalBlockSizeException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Actual encrypted private key data byte size (\" + Integer.toString(fileData.length) + \") doesn't match with expected by Cipher\");\n\t\t\tSystem.exit(1);\n\t\t} catch ( BadPaddingException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Bad padding in private key file data expected by Cipher\");\n\t\t\treturn null;\n\t\t\t//System.exit(1);\n\t\t}\n\n\t\tString privKeyPEM = null;\n\t\ttry {\n\t\t\tprivKeyPEM = new String(pemData, \"UTF-8\");\n\t\t} catch ( UnsupportedEncodingException e ) {\n\t\t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Non-supported character encoding for PEM data: UTF-8\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//System.out.println(\"PEM format:\\n\" + privKeyPEM);\n\n // Decoding Base64\n privKeyPEM = privKeyPEM.replace(\"-----BEGIN PRIVATE KEY-----\\n\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\").replaceAll(\"\\\\s\",\"\");\n\t\t//System.out.println(\"Base64 code:\\n\" + privKeyPEM + \"\\n\");\n\t\tbyte[] pkcs8Data = Base64.getDecoder().decode(privKeyPEM);\n\t\t//System.out.println(\"PKCS8 encrypted key:\\n\" + new String(pkcs8Data, \"UTF-8\") + \"\\n\");\n\n\t\t// Generating private key\n \tPKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(pkcs8Data);\n \tKeyFactory keyFactory = null;\n \tPrivateKey privateKey = null;\n \ttry {\n \t\tkeyFactory = KeyFactory.getInstance(\"RSA\");\n \t\tprivateKey = keyFactory.generatePrivate(keySpec);\n \t} catch ( NoSuchAlgorithmException e ) {\n \t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Non-existing algorithm for KeyFactory: RSA\");\n\t\t\tSystem.exit(1);\n \t} catch ( InvalidKeySpecException e ) {\n \t\tSystem.err.println(\"[ERROR-PRIVATE KEY DECRYPT] Invalid encoding to generate private key\");\n\t\t\tSystem.exit(1);\n \t}\n\t\treturn privateKey;\n \n }", "private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}", "public static byte[] decrypt(final byte[] input, final PrivateKey key) throws DattackSecurityException {\n return execEncryptionOperation(input, Cipher.DECRYPT_MODE, key);\n }", "@Around(\"decryptPointCut()\")\n public Object aroundDecrypt(ProceedingJoinPoint joinPoint) throws Throwable {\n Object responseObj = joinPoint.proceed(); // 方法执行\n handleDecrypt(responseObj); // 解密CryptField注解字段\n return responseObj;\n\n }", "@Override\n public String decrypt(String encryptedText) {\n if (StringUtils.isBlank(encryptedText)) {\n return null;\n }\n\n try {\n byte[] decoded = Base64.getDecoder().decode(encryptedText);\n\n byte[] iv = Arrays.copyOfRange(decoded, 0, GCM_IV_LENGTH);\n\n Cipher cipher = Cipher.getInstance(ENCRYPT_ALGORITHM);\n GCMParameterSpec ivSpec = new GCMParameterSpec(GCM_TAG_LENGTH * Byte.SIZE, iv);\n cipher.init(Cipher.DECRYPT_MODE, getKeyFromPassword(), ivSpec);\n\n byte[] ciphertext = cipher.doFinal(decoded, GCM_IV_LENGTH, decoded.length - GCM_IV_LENGTH);\n\n return new String(ciphertext, StandardCharsets.UTF_8);\n } catch (NoSuchAlgorithmException\n | IllegalArgumentException\n | InvalidKeyException\n | InvalidAlgorithmParameterException\n | IllegalBlockSizeException\n | BadPaddingException\n | NoSuchPaddingException e) {\n LOG.debug(ERROR_DECRYPTING_DATA, e);\n throw new EncryptionException(e);\n }\n }", "public static byte [] decrypt(byte [] cipherText, PrivateKey decryptionKey) {\r\n\t\tif(cipherText == null) return null;\r\n\t\ttry {\r\n\t\t\t// note that we make a copy to avoid overwriting the received cipher text\r\n\t\t\tbyte [] inputBuffer = Arrays.copyOf(cipherText,cipherText.length);\r\n\r\n\t\t\t// obtain the decryption key, and the cursor (current location in input buffer after the key)\r\n\t\t\tbyte [] wrappedEncryptionKey = unpackFromByteArray(inputBuffer, 0);\r\n\t\t\tint cursor = wrappedEncryptionKey.length+2;\r\n\t\t\t// unwrap the enclosed symmetric key using our public encryption key\r\n\t\t\tCipher unwrapper = Cipher.getInstance(encryptionAlgorithm);\r\n\t\t\tunwrapper.init(Cipher.UNWRAP_MODE, decryptionKey);\r\n\t\t\tKey k = unwrapper.unwrap(wrappedEncryptionKey,symmetricKeyAlgorithm,Cipher.SECRET_KEY);\r\n\r\n\t\t\t// decrypt the message.\r\n\t\t\tCipher decryptor = Cipher.getInstance(symmetricKeyAlgorithm);\r\n\t\t\tdecryptor.init(Cipher.DECRYPT_MODE, k);\r\n\t\t\tdecryptor.doFinal(inputBuffer,cursor,inputBuffer.length-cursor,inputBuffer,cursor);\r\n\t\t\t\r\n\t\t\t// locate the plainText\r\n\t\t\tbyte [] plainText = unpackFromByteArray(inputBuffer, cursor);\r\n\t\t\t// return the plain text\r\n\t\t\treturn plainText;\r\n\t\t} catch(Exception e){\r\n\t\t\tlogger.log(Level.WARNING,\"Unable to decrypt cipherText \"+cipherText, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n protected Message receiveMessage() throws IOException {\n String encoded = this.din.readUTF();\n this.lastMessage = new Date();\n String decodedXml = new String(\n DatatypeConverter.parseBase64Binary(encoded));\n\n return Message.msgFromXML(decodedXml);\n }", "private String uncompressLogoutMessage(final String originalMessage) {\n final byte[] binaryMessage = Base64.decodeBase64(originalMessage);\n\n Inflater decompresser = null;\n try {\n // decompress the bytes\n decompresser = new Inflater();\n decompresser.setInput(binaryMessage);\n final byte[] result = new byte[binaryMessage.length * 10];\n\n final int resultLength = decompresser.inflate(result);\n\n // decode the bytes into a String\n return new String(result, 0, resultLength, \"UTF-8\");\n } catch (final Exception e) {\n logger.error(\"Unable to decompress logout message\", e);\n throw new RuntimeException(e);\n } finally {\n if (decompresser != null) {\n decompresser.end();\n }\n }\n }", "public String decrypt(String encryptedString) throws Exception\n {\n if ( key == null )\n {\n throw new Exception(\"CodecUtil must be initialised with the storeKey first.\");\n }\n try\n {\n Cipher pbeCipher = Cipher.getInstance(\"PBEWithMD5AndDES\");\n pbeCipher.init(Cipher.DECRYPT_MODE, key, new PBEParameterSpec(salt, 20));\n return new String(pbeCipher.doFinal(base64Decode(encryptedString)), \"UTF-8\");\n }\n catch (Exception e)\n {\n throw new Exception(\"Decryption error :\" + e.getMessage());\n }\n }", "@Override\n public void onClick(final View arg0) {\n if (key != null) {\n if (encrypt != null) {\n decrypt = key.decrypt(encrypt);\n messageTxt.setText(new String(decrypt.toByteArray()));\n } else if (messageTxt.getText().length() > 0\n && !messageTxt.getText().equals(\"\")) {\n String encryptedMessage = messageTxt.getText().toString();\n encryptedMessage = encryptedMessage.replace(\" \", \"\");\n encryptedMessage = encryptedMessage.trim();\n Log.i(\"encryptedMessage\", encryptedMessage);\n try {\n decrypt = (BigInteger) key.decrypt(new BigInteger(\n encryptedMessage));\n messageTxt.setText(new String(decrypt.toByteArray()));\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(ShhActivity.this, \"Your text cannot be decrypted\",\n Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(ShhActivity.this, \"Your text cannot be decrypted\",\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public String decrypt(final PrivateKeyInterface key, final String data)\n throws DecryptionFailedException\n {\n return this.decryptionCipher().decrypt(key, data);\n }", "public String decrypt(String encrypted) {\n try {\n IvParameterSpec iv = new IvParameterSpec(initVector);\n SecretKeySpec skeySpec = new SecretKeySpec(privateKey, \"AES\");\n\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5PADDING\");\n cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv);\n\n byte[] original = cipher.doFinal(Base64Coder.decode(encrypted));\n\n return new String(original);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return null;\n }", "private static String decrypt(String in){\n\n\t\t\tString alphabet = \"1234567890\";\n\n\t\t\tString scramble1 = \"<;\\'_$,.?:|)\";\n\t\t String scramble2 = \"XYZVKJUTHM\";\n\t\t String scramble3 = \"tuvwxyz&*}\";\n\t\t String scramble4 = \"~!-+=<>%@#\";\n\t\t String scramble5 = \"PUDHCKSXWZ\";\n\n\t\t char messageIn[] = in.toCharArray();\n\t\t String r = \"\";\n\n\t\t for(int i = 0; i < in.length(); i++){\n\t\t if(i % 3 == 0){\n\t\t int letterIndex = scramble1.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 1){\n\t\t int letterIndex = scramble2.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 2){\n\t\t int letterIndex = scramble3.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }\n\t\t }\n\t\treturn r;\n\t}" ]
[ "0.6417802", "0.62720525", "0.6256136", "0.6226051", "0.6140043", "0.6133488", "0.6114281", "0.6078222", "0.6059993", "0.60211664", "0.60205036", "0.5963017", "0.59612983", "0.59507483", "0.59156287", "0.58919215", "0.58658034", "0.5837264", "0.5808111", "0.5796144", "0.57658994", "0.57502", "0.5731361", "0.57284343", "0.5717019", "0.57132894", "0.57083523", "0.56524354", "0.56478226", "0.5628732", "0.5613687", "0.5600907", "0.5595695", "0.5576459", "0.556605", "0.5557745", "0.55569094", "0.5492291", "0.54664576", "0.5438963", "0.54354066", "0.5434672", "0.5426575", "0.54227453", "0.54203033", "0.54136676", "0.54098165", "0.54045784", "0.53973883", "0.53959656", "0.5384563", "0.5368785", "0.53685987", "0.5367523", "0.5364522", "0.5362756", "0.53480303", "0.5344852", "0.53368646", "0.53209877", "0.53167725", "0.5313152", "0.5307777", "0.5307528", "0.5293919", "0.5283258", "0.5280403", "0.5274845", "0.52693623", "0.52643263", "0.52640074", "0.52557594", "0.52554566", "0.5243566", "0.5240828", "0.5237609", "0.5236347", "0.5235526", "0.52227616", "0.5202494", "0.51952356", "0.5191843", "0.51909274", "0.51883996", "0.51793724", "0.5178924", "0.51769096", "0.5175737", "0.51754975", "0.5167798", "0.51568544", "0.51430017", "0.5140475", "0.51397824", "0.5131138", "0.512682", "0.5119692", "0.5104765", "0.5099715", "0.5095406" ]
0.64165115
1
Construct an empty Championship class
public Championship() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Championship()\n {\n drivers = new ListOfDrivers();\n venues = new ListOfVenues();\n }", "public DefensivePlayers(){}", "public Challenger() {\r\n\t\tname = \"TBD\";\r\n\t\trank = -1;\r\n\t}", "Classroom() {}", "public BaseballCard(){\r\n\r\n\t}", "public BeanGame () {\n\t}", "public Player() {}", "public Player() {}", "public Player() {}", "public Player() {}", "public GamePlayer() {}", "public OrchardGame() {\n\t\t\n\t}", "public Classroom() {\n\t}", "public Player(){}", "public Player(){}", "public Player() { \n grid = new Cell[GRID_DIMENSIONS][GRID_DIMENSIONS]; //size of grid\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n grid[i][j] = new Cell(); //creating all Cells for a new grid\n }\n }\n \n fleet = new LinkedList<Boat>(); //number of boats in fleet\n for (int i = 0; i < NUM_BOATS; i++) {\n Boat temp = new Boat(BOAT_LENGTHS[i]); \n fleet.add(temp);\n }\n shipsSunk = new LinkedList<Boat>();\n }", "public Player() {\n this(\"\", \"\", \"\");\n }", "private GameBoard() {}", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "public Community()\r\n {\r\n //\r\n }", "public Chromosome(){\n super();\n }", "public Battle(){\r\n\t\t\r\n\t}", "public poker_class ()\n\t{\n\t face = \"Two\";\n\t suit = \"Clubs\";\n\t}", "public Chauffeur() {\r\n\t}", "public Battle() {\r\n\t\tnbVals = 0;\r\n\t\tplayer1 = new Deck();\r\n\t\tplayer2 = new Deck();\r\n\t\ttrick = new Deck();\r\n\t}", "public Chant(){}", "public MiniGame() {\n\n\t}", "private UniqueChromosomeReconstructor() { }", "public Player() {\r\n\t\tthis.gemPile = new int[4];\r\n\t\tthis.hand = new ArrayList<Card>();\r\n\t\tthis.bag = new ArrayList<Card>();\r\n\t\tthis.discard = new ArrayList<Card>();\r\n\t\tthis.lockedCards = new ArrayList<Card>();\r\n\t\tthis.toUse = new ArrayList<Integer>();\r\n\t\tnewTurn();\r\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Competition() {\n\t\tmatches = new ArrayList<Match>();\n\t}", "Community() {}", "public Game() {}", "public Player() {\t\n\t}", "public Scoreboard() {\n\t}", "public Chick() {\n\t}", "public FootballPlayerV3()\n {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Player() {\n fleetMap = new Map();\n battleMap = new Map();\n sunkShipNum = 0;\n }", "public Card () {}", "public Battle() {\r\n\t\tfoesPokemon = new Pokemon[] {\r\n\t\t\t\tnew Totodile(12),\r\n\t\t\t\tnew Bulbasaur(15),\r\n\t\t\t\tnew Combusken(20),\r\n\t\t\t\tnew Raichu(25),\r\n\t\t\t\tnew Venausaur(50),\r\n\t\t\t\tnew Blaziken(50)\r\n\t\t};\r\n\t\tyourPokemon = new Pokemon[] {\r\n\t\t\t\tnew Torchic(14),\r\n\t\t\t\tnew Ivysaur(18),\r\n\t\t\t\tnew Croconaw(20),\r\n\t\t\t\tnew Raichu(25),\r\n\t\t\t\tnew Blaziken(29),\r\n\t\t\t\tnew Feraligatr(40)\r\n\t\t};\r\n\t}", "public StudentPlayer() {\n super(\"260740998\");\n }", "public Grid ()\n {\n mGrid = new Move[3][3];\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(Player.NONE, row, column);\n }", "public StudentPlayer() {\n super(\"260719721\");\n }", "public Member() {\n //Empty constructor!\n }", "public Player() {\n//\t\thand = new Hand();\n\t\tthis.cardsInhand = new ArrayList<Card>();\n\t}", "public FruitStand() {}", "public Player(){\n\n }", "public JumbleBoard()\n {\n }", "public Game() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (int i = 0; i < NBCARDS; i++) {\r\n\t\t\tcards.add(new Card());\r\n\t\t}\r\n\t\tplayers = new ArrayList<Player>();\r\n\t\tfor (int i = 0; i < NBPLAYER; i++) {\r\n\t\t\tplayers.add(new Player(i + 1));\r\n\t\t}\r\n\t}", "public Spaceship(int x, int y)\r\n\t{\r\n\t\tsuper(x, y);\r\n\t}", "public Hand () //No arg\n\t{\n\t\tthis.cardsInHand = 0;\n\t\tthis.handSize = 5;\n\t}", "public Leagues() {\n }", "public BoardGame()\n\t{\n\t\tplayerPieces = new LinkedHashMap<String, GamePiece>();\n\t\tplayerLocations = new LinkedHashMap<String, Location>();\n\t\t\n\t}", "public StudentPlayer() {\n super(\"260622641\");\n }", "public Hand() {\n }", "public Card()\n {}", "public Player()\n\t{\n\t\tmyName = DEFAULT_NAME;\n\t\tmyHand = new PokerHand(5);\n\t\tmyNumberWins = 0;\n\t\tmyAmAI = false;\n\t}", "public Player()\r\n\t{\r\n\t\tpCards = new String[DECK_SIZE];\r\n\t\thandCount = 0;\r\n\t\tstand = false;\r\n\t}", "public Player(){\r\n\r\n }", "public Mueble() {\n }", "public StudentPlayer() {\r\n super(\"260767897\");\r\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Board() {\n initialize(3, null);\n }", "public ParkingSpace() {}", "public AbstractPlayer() {\r\n }", "public PersonalBoard(){\n this(0);\n }", "public Ship(){\n\t}", "public Player(){\r\n cards = new ArrayList<String>();\r\n indexes = new ArrayList<Integer>();\r\n }", "public Player() {\n hand = new Hand();\n }", "public PlayableGame() {\r\n\r\n }", "public Board() {\n this.board = new Piece[16];\n }", "public Game() {\n\n\t}", "public Genetic() {\r\n }", "public CombatShip(CombatShipBase initTypeBase, int initFaction) {\n baseShip = initTypeBase;\n faction = initFaction;\n }", "public Game() {\n board = new FourBoard();\n }", "public Membership() {\n // This constructor is intentionally empty.\n }", "public Cheats() {\n\t\tinitComponents();\n\t}", "public PizzaCutter()\r\n {\r\n //intentionally left blank\r\n }", "public PlayerPiece()\n {\n // initialise instance variables\n //Use the values listed in the comments\n //above that are next to each instance variable\n pieceName = \"no name\";\n pieceType = \"human\";\n currentHealth = 100;\n maxHealth = 100;\n locX = 7;\n locY = 8;\n attackPower = 25;\n defensePower = 20;\n currentSpecialPower = 50;\n maxSpecialPower = 50;\n \n }", "public Party() {\n // empty constructor\n }", "public Hand() {\n this.hole1 = new BlankCard();\n this.hole2 = new BlankCard();\n showCards = false;\n }", "public KarateChop() {\n super(SkillFactory.KARATE_CHOP, \"Karate Chop\", SkillDescription.KARATE_CHOP, 25,\n Pokemon.Type.FIGHTING, SkillCategory.PHYSICAL, 100, 50, 2);\n makesPhysicalContact = true;\n }", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "public Hand(){}", "public Card() { this(12, 3); }", "public Pokemon() {\n }", "public Member() {}", "public SlideChromosome() {\n\t\tsuper();\n\t\tthis.moves = new ArrayList<MoveElement>();\n\t\tthis.board = null;\n\t}", "public Player(){\r\n\t\tname = \"\";\r\n\t\tchip = 0;\r\n\t\tbet = 0;\r\n\t\tplayerHand = new PlayerHand();\r\n\t\ttable = null;\r\n\t}", "private HabitContract() {\n }", "public Game(int[][] chips) {\n board = new FourBoard();\n board.setChips(chips);\n }", "public Hazmat() {\n }", "public CardGameFramework()\n {\n this(1, 0, 0, null, 4, 13);\n }", "public Chat(){ }", "public Piece(boolean a_empty){\n this.empty = a_empty;\n }", "private GameInformation() {\n }", "public Game() {\n }", "public Boat() {\n }", "public CardGameFramework() {\n this(1, 0, 0, null, 4, 13);\n }" ]
[ "0.76943076", "0.65417266", "0.6469239", "0.64342695", "0.63944936", "0.6208152", "0.6164633", "0.6164633", "0.6164633", "0.6164633", "0.61624724", "0.61478484", "0.61377656", "0.60893136", "0.60893136", "0.6070356", "0.6055248", "0.60519826", "0.604893", "0.6043335", "0.6031172", "0.6020569", "0.5998986", "0.59886366", "0.5972094", "0.5971164", "0.5958413", "0.59294367", "0.5909139", "0.590516", "0.5904189", "0.5903778", "0.59027797", "0.59023887", "0.5896803", "0.5893548", "0.5890641", "0.5885159", "0.5873278", "0.586927", "0.58519745", "0.5846528", "0.5839609", "0.58393455", "0.5835769", "0.58302784", "0.582839", "0.58261776", "0.58239484", "0.5820839", "0.5820179", "0.58178544", "0.5813566", "0.5805542", "0.5799291", "0.579568", "0.5788711", "0.57848454", "0.577501", "0.5764275", "0.5757517", "0.5751402", "0.57512695", "0.57475215", "0.574544", "0.57384795", "0.5735211", "0.57324725", "0.57317513", "0.5731456", "0.57252234", "0.57166964", "0.57039005", "0.57039", "0.570336", "0.57003355", "0.5695247", "0.5687141", "0.5686287", "0.5686037", "0.5678157", "0.5677356", "0.56727475", "0.5666712", "0.5658019", "0.56567574", "0.5656633", "0.56469494", "0.5643517", "0.5635073", "0.5626816", "0.56228447", "0.56100476", "0.56096244", "0.558185", "0.5581471", "0.55791783", "0.55700904", "0.5568279", "0.55509484" ]
0.85245323
0
Used by the OLCUT configuration system, and should not be called by external code.
@Override public void postConfig() { if ((k != SELECT_ALL) && (k < 1)) { throw new PropertyException("","k","k must be -1 to select all features, or a positive number, found " + k); } if (numBins < 2) { throw new PropertyException("","numBins","numBins must be >= 2, found " + numBins); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void config() {\n\t}", "private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_HOST, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_HOST, szValue );\n }\n // Check to see if the ldap port has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_PORT );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_PORT, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_PORT, szValue );\n }\n\n // Check to see if the admin pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_UID );\n }\n\n // Check to see if the admin pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_PW );\n }\n\n // Check to see if the admin pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n }\n\n // Check to see if the admin pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n }\n\n // Check to see if the log pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_UID );\n }\n\n // Check to see if the log pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_PW );\n }\n\n // Check to see if the log pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n }\n\n // Check to see if the log pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n }\n\n // Check to see if ssl enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL, szValue );\n }\n \n // Check to see if start tls enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_STARTTLS );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n }\n\n // Check to see if the ssl debug enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL_DEBUG );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n }\n\n // Check to see if the trust store location has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE, szValue );\n }\n\n // Check to see if the trust store password has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_PW, szValue );\n // never display password value to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.TRUST_STORE_PW );\n }\n\n // Check to see if the trust store onclasspath parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_ONCLASSPATH );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n }\n\n // Check to see if the suffix has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_SUFFIX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SUFFIX, szValue );\n LOG.info( PREFIX, GlobalIds.SUFFIX, szValue );\n\n }\n\n // Check to see if the config realm name has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_REALM );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_REALM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_REALM, szValue );\n }\n\n // Check to see if the config node dn has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_ROOT_DN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_ROOT_PARAM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_ROOT_PARAM, szValue );\n }\n\n // Check to see if the ldap server type has been overridden by a system property:\n szValue = System.getProperty( EXT_SERVER_TYPE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SERVER_TYPE, szValue );\n LOG.info( PREFIX, GlobalIds.SERVER_TYPE, szValue );\n }\n\n // Check to see if ARBAC02 checking enforced in service layer:\n szValue = System.getProperty( EXT_IS_ARBAC02 );\n if( StringUtils.isNotEmpty( szValue ))\n {\n Boolean isArbac02 = Boolean. valueOf( szValue );\n config.setProperty( GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n LOG.info( PREFIX, GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n }\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public abstract String getConfig();", "public OlcDistProcConfig()\n {\n super();\n }", "private Config() {\n }", "private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "C getConfiguration();", "protected DiscoveryVOSConfig() {\n\t\tsuper(BRANCH_ROOT + \".DiscoveryVOS.com.discoveryVOS.\".replace('.', File.separatorChar));\n\t}", "public void loadConfig() {\n\t}", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "private PSConfigDeNormalizer()\n {\n\n }", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "private OptimoveConfig() {\n }", "public void initialConfig() {\n }", "public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "public SystemConfigurations() {\n\t\tsetOs();\n\t\tsetFileSeparator();\n\t\tsetWorkDiretory();\n\t\t\n\t}", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}", "public void printConfig();", "public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "@Override\n public void reconfigure()\n {\n }", "void setConfiguration();", "@Override\n public boolean hasAdditionalConfig() { return true; }", "@Test\n\tpublic void testConfigLoading(){\n\t\tassertEquals(2,occurrencePortalConfig.getSupportedLocale().size());\n\t\tassertNotNull(occurrencePortalConfig.getResourceBundle(Locale.ENGLISH));\n\t\t\n\t\tassertEquals(\"cc0\",occurrencePortalConfig.getLicenseShortName(\"http://creativecommons.org/publicdomain/zero/1.0/\"));\n\t}", "private void outputConfig() {\n //output config info to the user\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Input configuration: {0} items, {1} transactions, \", new Object[]{numItems, numTransactions});\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"minsup = {0}%\", minSup);\n }", "protected void additionalConfig(ConfigType config){}", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }", "@Override\n public void checkConfiguration() {\n }", "public void loadConfiguration(){\n\t\t\n\t\tString jarLoc = this.getJarLocation();\n\t\tTicklerVars.jarPath = jarLoc;\n\t\tTicklerVars.configPath=TicklerVars.jarPath+TicklerConst.configFileName;\n\t\t\n\t\t//Read configs from conf file\n\t\tif (new File(TicklerVars.configPath).exists()){\n\t\t\ttry {\n\t\t\t\tString line;\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(TicklerVars.configPath));\n\t\t\t\twhile ((line =reader.readLine())!= null) {\n\t\t\t\t\tif (line.contains(\"Tickler_local_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.ticklerDir = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Tickler_sdcard_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length()-1);\n\t\t\t\t\t\tTicklerVars.sdCardPath = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Frida_server_path\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.fridaServerLoc = loc;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Config path does not exist\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"WARNING...... Configuration file does not exist!!!!\\nThe following default configurations are set:\\n\");\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n\t\t\tSystem.out.println(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t\tSystem.out.println(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\n\t\tString x = TicklerVars.ticklerDir;\n\t\tif (TicklerVars.ticklerDir == null || TicklerVars.ticklerDir.matches(\"\\\\s*/\") ){\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler_local_directory. Workspace is set at \"+ TicklerVars.ticklerDir);\n\t\t\tOutBut.printStep(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t}\n\t\t\n\t\tif (TicklerVars.sdCardPath == null || TicklerVars.sdCardPath.matches(\"\\\\s*/\")) {\n\t\t\tTicklerVars.sdCardPath = TicklerConst.sdCardPathDefault;\t\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler's temp directory on the device. It is set to \"+ TicklerVars.sdCardPath);\n\t\t\tOutBut.printStep(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\t\n\t}", "@Override\n protected Path getConfigurationPath() {\n return null;\n }", "void configure();", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "void configurationUpdated();", "private OspfConfigUtil() {\n\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "private final void config() {\n\t\tfinal File configFile = new File(\"plugins\" + File.separator\n\t\t\t\t+ \"GuestUnlock\" + File.separator + \"config.yml\");\n\t\tif (!configFile.exists()) {\n\t\t\tthis.plugin.saveDefaultConfig();\n\t\t\tMain.INFO(\"Created default configuration-file\");\n\t\t}\n\t}", "default boolean isConfigured(ConnectPoint connectPoint) {\n throw new NotImplementedException(\"isConfigured is not implemented\");\n }", "private void saveConfiguration() {\n }", "public abstract IOpipeConfiguration config();", "@Override\n\tpublic void configure(JobConf arg0) {\n\t\t\n\t}", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public abstract CONFIG build();", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "public void testSettingValues() throws Exception {\n this.l2Manager.dsoL2Config().garbageCollection().setInterval(142);\n ((Client) this.l1Manager.commonL1Config().getBean()).setLogs(\"whatever\");\n ((Server) this.l2Manager.commonl2Config().getBean()).setData(\"marph\");\n\n // A sub-config object\n this.l1Manager.dsoL1Config().instrumentationLoggingOptions().setLogDistributedMethods(true);\n\n this.factory.activateConfigurationChange();\n\n System.err.println(this.l2Manager.systemConfig());\n System.err.println(this.l1Manager.dsoL1Config());\n\n assertEquals(142, this.l2Manager.dsoL2Config().garbageCollection().getInterval());\n assertEquals(new File(\"whatever\"), this.l1Manager.commonL1Config().logsPath());\n assertEquals(new File(\"marph\"), this.l2Manager.commonl2Config().dataPath());\n assertTrue(this.l1Manager.dsoL1Config().instrumentationLoggingOptions().logDistributedMethods());\n }", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "public Object\tgetConfiguration();", "@Override\n\tprotected void configure() {\n\n\t}", "private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}", "public ConfigData(FileConfiguration CoreConfig, FileConfiguration outConfig) {\n\t\t// core configuration is configuration that is Global.\n\t\t// we try to avoid these now. Normally the primary interest is the\n\t\t// GriefPrevention.WorldConfigFolder setting.\n\t\tString DefaultConfigFolder = DataStore.dataLayerFolderPath + File.separator + \"WorldConfigs\" + File.separator;\n\t\tString DefaultTemplateFile = DefaultConfigFolder + \"_template.cfg\";\n\t\t// Configurable template file.\n\t\tTemplateFile = CoreConfig.getString(\"GriefPrevention.WorldConfig.TemplateFile\", DefaultTemplateFile);\n\t\tif (!(new File(TemplateFile).exists())) {\n\t\t\tTemplateFile = DefaultTemplateFile;\n\n\t\t}\n this.GlobalClaims = CoreConfig.getBoolean(\"GriefPrevention.GlobalClaimsEnabled\",true);\n this.GlobalPVP = CoreConfig.getBoolean(\"GriefPrevention.GlobalPVPEnabled\",true);\n this.GlobalSiege = CoreConfig.getBoolean(\"GriefPrevention.GlobalSiegeEnabled\",true);\n this.GlobalSpam = CoreConfig.getBoolean(\"GriefPrevention.GlobalSpamEnabled\",true);\n this.AllowAutomaticMigration = CoreConfig.getBoolean(\"GriefPrevention.AllowAutomaticMigration\",true);\n outConfig.set(\"GriefPrevention.GlobalClaimsEnabled\",GlobalClaims);\n outConfig.set(\"GriefPrevention.GlobalPVPEnabled\",GlobalPVP);\n outConfig.set(\"GriefPrevention.GlobalSiegeEnabled\",GlobalSiege);\n outConfig.set(\"GriefPrevention.GlobalSpamEnabled\",GlobalSpam);\n outConfig.set(\"GriefPrevention.AllowAutomaticMigration\",AllowAutomaticMigration);\n this.DisabledGPCommands = CoreConfig.getStringList(\"GriefPrevention.DisabledCommands\");\n outConfig.set(\"GriefPrevention.DisabledCommands\",DisabledGPCommands);\n\n\n\t\tString SingleConfig = CoreConfig.getString(\"GriefPrevention.WorldConfig.SingleWorld\", NoneSpecifier);\n\t\tSingleWorldConfigLocation = SingleConfig;\n\t\tif (!SingleConfig.equals(NoneSpecifier) && new File(SingleConfig).exists()) {\n\t\t\tGriefPrevention.AddLogEntry(\"SingleWorld Configuration Mode Enabled. File \\\"\" + SingleConfig + \"\\\" will be used for all worlds.\");\n\t\t\tYamlConfiguration SingleReadConfig = YamlConfiguration.loadConfiguration(new File(SingleConfig));\n\t\t\tYamlConfiguration SingleTargetConfig = new YamlConfiguration();\n\t\t\tthis.SingleWorldConfig = new WorldConfig(\"Single World\", SingleReadConfig, SingleTargetConfig);\n\t\t\ttry {\n\t\t\t\tSingleTargetConfig.save(SingleConfig);\n\t\t\t} catch (IOException exx) {\n\t\t\t}\n\t\t}\n\t\tthis.SiegeCooldownSeconds = CoreConfig.getInt(\"GriefPrevention.Siege.CooldownTime\",1000 * 60 * 60);\n outConfig.set(\"GriefPrevention.Siege.CooldownTime\",SiegeCooldownSeconds);\n\t\toutConfig.set(\"GriefPrevention.WorldConfig.SingleWorld\", SingleConfig);\n\t\toutConfig.set(\"GriefPrevention.WorldConfig.TemplateFile\", TemplateFile);\n\t\t// check for appropriate configuration in given FileConfiguration. Note\n\t\t// we also save out this configuration information.\n\t\t// configurable World Configuration folder.\n\t\t// save the configuration.\n\n\t\tWorldConfigLocation = CoreConfig.getString(\"GriefPrevention.WorldConfigFolder\");\n\t\tif (WorldConfigLocation == null || WorldConfigLocation.length() == 0) {\n\t\t\tWorldConfigLocation = DefaultConfigFolder;\n\t\t}\n\t\tFile ConfigLocation = new File(WorldConfigLocation);\n\t\tif (!ConfigLocation.exists()) {\n\t\t\t// if not found, create the directory.\n\t\t\tGriefPrevention.instance.getLogger().log(Level.INFO, \"mkdirs() on \" + ConfigLocation.getAbsolutePath());\n\t\t\tConfigLocation.mkdirs();\n\n\t\t}\n\n\t\t/*\n\t\t * GriefPrevention.instance.getLogger().log(Level.INFO,\n\t\t * \"Reading WorldConfigurations from \" +\n\t\t * ConfigLocation.getAbsolutePath()); if(ConfigLocation.exists() &&\n\t\t * ConfigLocation.isDirectory()){ for(File lookfile:\n\t\t * ConfigLocation.listFiles()){ //System.out.println(lookfile);\n\t\t * if(lookfile.isFile()){ String Extension =\n\t\t * lookfile.getName().substring(lookfile.getName().indexOf('.')+1);\n\t\t * String baseName = Extension.length()==0? lookfile.getName():\n\t\t * lookfile.\n\t\t * getName().substring(0,lookfile.getName().length()-Extension.length\n\t\t * ()-1); if(baseName.startsWith(\"_\")) continue; //configs starting with\n\t\t * underscore are templates. Normally just _template.cfg. //if baseName\n\t\t * is an existing world... if(Bukkit.getWorld(baseName)!=null){\n\t\t * GriefPrevention.instance.getLogger().log(Level.INFO, \"World \" +\n\t\t * baseName + \" Configuration found.\"); } //read it in...\n\t\t * GriefPrevention.AddLogEntry(lookfile.getAbsolutePath());\n\t\t * FileConfiguration Source = YamlConfiguration.loadConfiguration(new\n\t\t * File(lookfile.getAbsolutePath())); FileConfiguration Target = new\n\t\t * YamlConfiguration(); //load in the WorldConfig... WorldConfig wc =\n\t\t * new WorldConfig(baseName,Source,Target); try { Target.save(lookfile);\n\t\t * \n\t\t * }catch(IOException iex){\n\t\t * GriefPrevention.instance.getLogger().log(Level.SEVERE,\n\t\t * \"Failed to save to \" + lookfile.getAbsolutePath()); }\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 * } else if(ConfigLocation.exists() && ConfigLocation.isFile()){\n\t\t * GriefPrevention.instance.getLogger().log(Level.SEVERE,\n\t\t * \"World Configuration Folder found, but it's a File. Double-check your GriefPrevention configuration files, and try again.\"\n\t\t * );\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "@Override\n\tpublic Map<String, String> getConf() {\n\t\treturn null;\n\t}", "@Override\n public void configure() {\n }", "public String getConfig();", "private void configurateSensor()\n\t{\n\t\t// change state of measurement in RestApi\n\t\trestApiUpdate(\"CONFIGURING\", \"state1\");\n\t\tcheckFirmwareVersion();\n\t\t// Write configuration file to sensor\n\t\tsetAndWriteFiles();\n\n\t\t// push comment to RestApi\n\t\ttry\n\t\t{\n\t\t\trestApiUpdate(ConnectionManager.getInstance().currentSensor(0).getSerialNumber(), \"comment\");\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t\t// change state of measurement in RestApi\n\t\trestApiUpdate(\"SENSOR_OUTBOX\", \"state2\");\n\n\t\t// print address\n\t\tint index2 = customerList.getSelectionIndex();\n\t\tfor (Measurement element : mCollect.getList())\n\t\t{\n\t\t\tif (mCollect.getList().get(index2).getLinkId() == element.getLinkId())\n\t\t\t{\n\t\t\t\taData = new AddressData(element.getId());\n\t\t\t\tprintLabel(aData.getCustomerData(), element.getLinkId());\n\t\t\t}\n\n\t\t}\n\n\t\t// set configuration success message\n\t\tstatusBar.setText(\"Sensor is configurated.Please connect another sensor.\");\n\n\t\t// writing date to sensor for synchronization\n\t\t try\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).synchronize();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t\t// resetData();\n\t\t try\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).disconnect();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t}", "@Override\n\tpublic void onConfigurationUpdate() {\n\t}", "@Override\n public void initialize() {\n // TODO Auto-generated method stub\n String name = (String)getConfigParameterValue(\"OutputPath\");\n File file = new File(name);\n try {\n bout = new BufferedWriter(new FileWriter(file));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n }\n output = new HashSet<String>();\n }", "default Component getConfigComponent()\r\n {\r\n return null;\r\n }", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "private void defaultConfig(){\n\t\t\n\t\t String status =\"\";\n\t\t try {\n\t\t \tstatus =\"reading control file\";\n\t\t \tString aFile = controlfileTF.getText();\n\t\t\t config.controlfile = aFile;\n\n\t\t BufferedReader input = new BufferedReader(new FileReader(aFile));\n\t\t try {\n\t\t \n\t\t config.outputdir = input.readLine();\t\t \n\t\t outputdirTF.setText(config.outputdir);\n\t\t config.reginputdir = input.readLine();\t\t \n\t\t reginputdirTF.setText(config.reginputdir);\n\t\t config.grdinputdir = input.readLine();\t\t \n\t\t grdinputdirTF.setText(config.grdinputdir);\n\t\t config.eqchtinputdir = input.readLine();\t\t \n\t\t eqchtinputdirTF.setText(config.eqchtinputdir);\n\t\t config.spchtinputdir = input.readLine();\t\t \n\t\t spchtinputdirTF.setText(config.spchtinputdir);\n\t\t config.trchtinputdir = input.readLine();\t\t \n\t\t trchtinputdirTF.setText(config.trchtinputdir);\n\t\t config.restartinputdir = input.readLine();\t\t \n\t\t restartinputdirTF.setText(config.restartinputdir);\n\t\t config.calibrationdir = input.readLine();\t\t \n\t\t calibrationdirTF.setText(config.calibrationdir);\n\t\t \n\t\t config.runstage = input.readLine();\n\t\t if (config.runstage.equalsIgnoreCase(\"eq\")) {\n\t\t \trunstageRB[0].setSelected(true);\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sp\")) {\n\t\t \trunstageRB[1].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"tr\")) {\n\t\t \trunstageRB[2].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sptr\")) {\n\t\t \trunstageRB[3].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.initmode = input.readLine();\t\t \n\t\t if (config.initmode.equalsIgnoreCase(\"lookup\")) {\n\t\t \tinitmodeRB[0].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"restart\")) {\n\t\t \tinitmodeRB[1].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"sitein\")) {\n\t\t \tinitmodeRB[2].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.climatemode = input.readLine();\t\t \n\t\t if (config.climatemode.equalsIgnoreCase(\"normal\")) {\n\t\t \tclmmodeRB[0].setSelected(true);\n\t\t } else if (config.climatemode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tclmmodeRB[1].setSelected(true);\t\t \t\n\t\t }\n\n\t\t config.co2mode = input.readLine();\t\t \n\t\t if (config.co2mode.equalsIgnoreCase(\"initial\")) {\n\t\t \tco2modeRB[0].setSelected(true);\n\t\t } else if (config.co2mode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tco2modeRB[1].setSelected(true);\n\t\t }\n\n\t\t config.casename = input.readLine();\t\t \n\t\t casenameTF.setText(config.casename);\n \n\t\t }catch (Exception e){\n\t\t \t JOptionPane.showMessageDialog(f, status+\" failed\");\n\t\t }\n\t\t finally {\n\t\t input.close();\n\t\t }\n\t\t }\n\t\t catch (IOException ex){\n\t\t ex.printStackTrace();\n\t\t }\t\t\n\t\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n protected void configure() {\n }", "public interface ConfigProperties {\n ConfigFileReader config = new ConfigFileReader();\n // Common configuration properties\n String WORKING_DIRECTORY = System.getProperty(\"user.dir\");\n String TestAppName = config.getProperty(\"testappname\");\n String TestExecutionType = config.getProperty(\"testexecutiontype\");\n String OsType = config.getProperty(\"ostype\");\n // String AppType = config.getProperty(\"apptype\");\n String AppType = config.getProperty(\"apptype\");\n String AppiumVersion = config.getProperty(\"appiumversion\");\n long EXPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"explicit.wait\"));\n long IMPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"implicit.wait\"));\n long DEFAULT_WAIT_TIME = Integer.parseInt(config.getProperty(\"default.wait\"));\n String APPLICATION_NAME = config.getProperty(\"key\");\n String APPIUM_PORT = config.getProperty(\"appium.server.port\");\n String APPIUM_SYSTEM_PORT = config.getProperty(\"appium.system.port\");\n int NEW_COMMAND_TIMEOUT = Integer.parseInt(config.getProperty(\"new.command.timeout\"));\n String DEVICE_READY_TIMEOUT = config.getProperty(\"device.ready.timeout\");\n String HubAddress = config.getProperty(\"HubAddress\");\n String DEVICE_CATEGORY = config.getProperty(\"Device.category\");\n String TabletSize = config.getProperty(\"Tablet.size\");\n String ExecutionEnvironment = config.getProperty(\"execution.environment\");\n //String User_Type = config.getProperty(\"usertype\");\n String User_Type = config.getProperty(\"usertype\");\n String Full_Reset = config.getProperty(\"full.reset\");\n String No_Reset = config.getProperty(\"no.reset\");\n // iOS specific configuration properties\n String IOS_AUTOMATION_NAME = config.getProperty(\"ios.automation.name\");\n String IOS_BROWSER_NAME = config.getProperty(\"ios.browser.name\");\n String IOS_PLATFORM_NAME = config.getProperty(\"ios.platform.name\");\n String IOS_PLATFORM_VERSION = config.getProperty(\"ios.platform.version\");\n String IOS_DEVICE_NAME = config.getProperty(\"ios.device.name\");\n String IOS_BUNDLE_ID = config.getProperty(\"ios.bundle.id\");\n String IOS_APPLICATION_PATH = getConfigFileLocation(config.getProperty(\"ios.application.apppath\"));\n String IOS_UDID = config.getProperty(\"ios.udid\");\n // Android specific configuration properties\n String ANDROID_AUTOMATION_NAME = config.getProperty(\"android.automation.name\");\n String ANDROID_APP_PKG = config.getProperty(\"android.app.pkg\");\n String ANDROID_APP_ACTIVITY = config.getProperty(\"android.application.activity\");\n String ANDROID_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"android.application.apppath\"));\n String ANDROID_DEVICE_NAME = config.getProperty(\"android.device.name\");\n String ANDROID_PLATFORM_VERSION = config.getProperty(\"android.platform.version\");\n // Windows specific configuration properties\n String WINDOWS_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"windows.application.apppath\"));\n String WINDOWS_DEVICE_NAME = config.getProperty(\"windows.device.name\");\n boolean SCREENSHOT_ON_PASS = Boolean.parseBoolean(config.getProperty(\"screenshotOnPass\"));\n }", "@Override\n\tpublic Properties getConfig() {\n\t\treturn null;\n\t}", "public void init() {\n if (getConfig().isEnabled()) {\n super.init();\n }\n }", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public abstract void initialSettings();", "@Override\n\tpublic void configure(ComponentConfiguration arg0) {\n\t\t\n\t}", "@Override\n public void configure(ConfigurationElement config) throws CoreException {\n programName = getConfigString(config, \"programName\");\n if (programName == null) {\n throw new CoreException(\"Missing DefaultOperatorAction property 'programName'.\");\n }\n dialogTitle = getValue(config, \"dialogTitle\", programName);\n xmlFileName = getValue(config, \"xmlFileName\", ParamUtils.NO_XML_FILE_SPECIFIED);\n //multiIFile = getValue(config, \"multiIFile\", \"false\");\n \n super.configure(config);\n if (programName.equals(OCSSW.OCSSW_INSTALLER)) {\n OCSSW.checkOCSSW();\n }\n super.setEnabled(programName.equals(OCSSW.OCSSW_INSTALLER) || OCSSW.isOCSSWExist());\n }", "@Override\n\tpublic void configure() {\n\n\t}", "public synchronized static void initConfig(ITestContext context) {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tfor (CatPawConfigProperty prop : CatPawConfigProperty.values()) {\n\t\t\t// Check if parameter is here\n\t\t\tString newValue = context.getCurrentXmlTest().getAllParameters().get(prop.getName());\n\t\t\tif (newValue != null && newValue != \"\") {\n\t\t\t\tinitialValues.put(prop, newValue);\n\t\t\t}\n\t\t}\n\t\tinitConfig(initialValues);\n\n\n\t}", "void setConfigFileName( String s );", "public void printConfig() {\n\t\tProperty props = Property.getInstance();\n\t\tSystem.out.println(\"You are using the following settings. If this is correct, \"\n\t\t\t\t+ \"you do not have to do anything. If they are not correct, please alter \" + \"your config files.\");\n\t\tString[] importantSettings = new String[] { \"apkname\", \"alphabetFile\", \"learningAlgorithm\", \"EquivMethod\",\"deviceName\" };\n\t\tfor (int i = 0; i < importantSettings.length; i++) {\n\t\t\tSystem.out.printf(\"%-25s%s%n\", importantSettings[i], \" = \" + props.get(importantSettings[i]));\n\t\t}\n\t}", "@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }", "@SuppressWarnings({ \"rawtypes\" })\r\n protected static void transferConfigurationFrom(Map conf, Properties prop) {\r\n // transfer zookeeper information so that SignalMechanism can create Zookeeper frameworks\r\n if (null != conf.get(CONFIG_KEY_STORM_ZOOKEEPER_PORT)) {\r\n prop.put(PORT_ZOOKEEPER, conf.get(CONFIG_KEY_STORM_ZOOKEEPER_PORT).toString());\r\n }\r\n if (null != conf.get(CONFIG_KEY_STORM_NIMBUS_PORT)) {\r\n prop.put(PORT_THRIFT, conf.get(CONFIG_KEY_STORM_NIMBUS_PORT).toString());\r\n }\r\n if (null != conf.get(CONFIG_KEY_STORM_NIMBUS_HOST)) {\r\n prop.put(HOST_NIMBUS, conf.get(CONFIG_KEY_STORM_NIMBUS_HOST).toString());\r\n }\r\n if (null != conf.get(CONFIG_KEY_STORM_ZOOKEEPER_SERVERS)) {\r\n Object zks = conf.get(CONFIG_KEY_STORM_ZOOKEEPER_SERVERS);\r\n String tmp = zks.toString();\r\n if (zks instanceof Collection) {\r\n tmp = \"\";\r\n for (Object o : (Collection) zks) {\r\n if (tmp.length() > 0) {\r\n tmp += \",\";\r\n }\r\n tmp += o.toString();\r\n }\r\n }\r\n prop.put(HOST_ZOOKEEPER, tmp);\r\n }\r\n if (null != conf.get(RETRY_TIMES_ZOOKEEPER)) {\r\n prop.put(RETRY_TIMES_ZOOKEEPER, conf.get(RETRY_TIMES_ZOOKEEPER).toString());\r\n }\r\n if (null != conf.get(RETRY_INTERVAL_ZOOKEEPER)) {\r\n prop.put(RETRY_INTERVAL_ZOOKEEPER, conf.get(RETRY_INTERVAL_ZOOKEEPER).toString());\r\n }\r\n\r\n // if storm has a configuration value and the actual configuration is not already\r\n // changed, than change the event bus configuration\r\n if (null != conf.get(HOST_EVENT)) {\r\n prop.put(HOST_EVENT, conf.get(HOST_EVENT));\r\n }\r\n if (null != conf.get(Configuration.PORT_EVENT)) {\r\n prop.put(PORT_EVENT, conf.get(PORT_EVENT));\r\n }\r\n if (null != conf.get(EVENT_DISABLE_LOGGING)) {\r\n prop.put(EVENT_DISABLE_LOGGING, conf.get(EVENT_DISABLE_LOGGING));\r\n }\r\n if (null != conf.get(PIPELINE_INTERCONN_PORTS)) {\r\n prop.put(PIPELINE_INTERCONN_PORTS, conf.get(PIPELINE_INTERCONN_PORTS));\r\n }\r\n // TODO use transfer above\r\n transfer(conf, prop, MONITORING_VOLUME_ENABLED, false);\r\n transfer(conf, prop, WATCHER_WAITING_TIME, false);\r\n if (prop.size() > 0) {\r\n System.out.println(\"Reconfiguring infrastructure settings: \" + prop + \" from \" + conf);\r\n configure(prop, false);\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\t@NeedsAttention(\"CAL logging should not be tied to AUTO_SCREEN_SHOT and WebReporter.java\")\n\tpublic synchronized static void initConfig(Map<CatPawConfigProperty, String> initialValues) {\n\t\t/*\n\t\t * Internally, HtmlUnit uses Apache commons logging. Each class that\n\t\t * uses logging in HtmlUnit creates a Logger by using the LogFactory,\n\t\t * and the defaults it generates. So to modify the Logger that is\n\t\t * created, we need to set this attribute\n\t\t * \"org.apache.commons.logging.Log\" to the Logger we want it to use.\n\t\t * \n\t\t * Note: this has to be the *first* thing done prior to any apache code\n\t\t * getting a handle, so we're putting it in here because the next call\n\t\t * is to XMLConfiguration (apache code).\n\t\t */\n\t\t// NoOpLog essentially disables logging of HtmlUnit\n\t\tLogFactory.getFactory().setAttribute(\"org.apache.commons.logging.Log\",\n\t\t\t\t\"org.apache.commons.logging.impl.NoOpLog\");\n\n\t\tconfig = new XMLConfiguration();\n\n\t\t// don't auto throw, let each config value decide\n\t\tconfig.setThrowExceptionOnMissing(false);\n\t\t// because we can config on the fly, don't auto-save\n\t\tconfig.setAutoSave(false);\n\n\t\t/*\n\t\t * Set defaults\n\t\t */\n\t\tCatPawConfigProperty[] configProps = CatPawConfigProperty.values();\n\t\tfor (int i = 0; i < configProps.length; i++) {\n\t\t\tconfig.setProperty(configProps[i].getName(), configProps[i].getDefaultValue());\n\t\t}\n\n\t\t/*\n\t\t * Load the user-defined config, (maybe) overriding defaults\n\t\t */\n\t\tXMLConfiguration userConfig = null;\n\t\ttry {\n\t\t\tuserConfig = new XMLConfiguration(CatPawConfig.class.getResource(configLocatiton));\n\t\t} catch (ConfigurationException e) {\n\t\t\t// we can safely ignore this exception\n\t\t} finally {\n\t\t\t// only load in the user config if defined\n\t\t\tif (userConfig != null) {\n\t\t\t\t/*\n\t\t\t\t * We need to treat this as a separate configuration, because if\n\t\t\t\t * we load it into our config, it will append values rather than\n\t\t\t\t * overwrite values... so lets do this manually\n\t\t\t\t */\n\t\t\t\tIterator<String> keys = userConfig.getKeys();\n\t\t\t\twhile (keys.hasNext()) {\n\t\t\t\t\tString key = keys.next();\n\t\t\t\t\t// System.out.println(\"key--->\"+key);\n\t\t\t\t\tconfig.setProperty(key, userConfig.getString(key));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Load in environment variables (if defined)\n\t\t */\n\t\tCatPawConfigProperty[] clawsConfigProps = CatPawConfigProperty.values();\n\t\tfor (int i = 0; i < clawsConfigProps.length; i++) {\n\t\t\tString value = System.getenv(\"CLAWS_\" + clawsConfigProps[i].name());\n\t\t\tif ((value != null) && (!value.equals(\"\"))) {\n\t\t\t\tconfig.setProperty(clawsConfigProps[i].getName(), value);\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Load in System properties variables (if defined)\n\t\t */\n\t\tfor (int i = 0; i < clawsConfigProps.length; i++) {\n\t\t\tString value = System.getProperty(\"CLAWS_\" + clawsConfigProps[i].name());\n\t\t\tif ((value != null) && (!value.equals(\"\"))) {\n\t\t\t\tconfig.setProperty(clawsConfigProps[i].getName(), value);\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Load in our supplied values (if defined)\n\t\t */\n\t\tif (initialValues != null) {\n\t\t\t// System.out.println(\"initialValues contains \" +\n\t\t\t// initialValues.size() + \" key value pair.\");\n\t\t\tfor (CatPawConfigProperty configProperty : initialValues.keySet()) {\n\t\t\t\t// System.out.println(\"configProperty.getName(--->\" +\n\t\t\t\t// configProperty.getName() + \"---->>>>\" +\n\t\t\t\t// initialValues.get(configProperty));\n\t\t\t\tconfig.setProperty(configProperty.getName(), initialValues.get(configProperty));\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Set dynamically configurable values which are safe to set at this\n\t\t * point Safe means they; 1. Do not connect to a remote machine to\n\t\t * determine value. 2. Do not have a requirement on another mandatory\n\t\t * config variable. Otherwise set the value dynamically at first use, in\n\t\t * loadValueAtFirstUsage(CatPawConfigProperty configProperty)\n\t\t */\n\n\t\t// Find Selenium configuration\n\t\tString useLocalRC = config.getString(CatPawConfigProperty.SELENIUM_USE_LOCAL_RC.getName());\n\t\tif (useLocalRC.equalsIgnoreCase(\"true\")) {\n\t\t\tconfig.setProperty(CatPawConfigProperty.SELENIUM_HOST.getName(), \"localhost\");\n\t\t}\n\n\t}", "public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }", "private void configureNode() {\n\t\twaitConfigData();\n\t\tpropagateConfigData();\n\n\t\tisConfigured = true;\n\t}", "private ConfigHelper() {\n //does nothing\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Incorrect Configuration: \"+super.toString();\r\n\t}", "public BaseConfig() {\n\t\tlong current = System.currentTimeMillis();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(current);\n\t\tthis.start_hours = cal.get(Calendar.HOUR_OF_DAY);\n\t\tthis.start_minutes = cal.get(Calendar.MINUTE);\n\t\tthis.stop_hours = this.start_hours;\n\t\tthis.stop_minutes = this.start_minutes;\n\t\tthis.force_on = false;\n\t\tthis.force_off = false;\n\t\tthis.sensor_type = SensorType.LIGHT;\n\t\tthis.sensing_threshold = .5f;\n\t\tthis.sensorInterval = 3000;\n\t\t/*String address;\n\t\ttry {\n\t\t\taddress = InetAddress.getLocalHost().toString();\n\t\t\taddress = address.substring(address.indexOf('/') + 1);\n\t\t\tserverIP = address;\n\t\t\tserverPort = 9999;\n\t\t} catch (UnknownHostException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t}", "public void initialize() {\n final ConfigurationManager config = ConfigurationManager.getInstance();\n boolean overrideLog = System.getProperty(\"azureus.overridelog\") != null;\n\n for (int i = 0; i < ignoredComponents.length; i++) {\n ignoredComponents[i] = new ArrayList();\n }\n\n if (!overrideLog) {\n config.addListener(new COConfigurationListener() {\n public void configurationSaved() {\n checkLoggingConfig();\n }\n });\n }\n\n checkLoggingConfig();\n config.addParameterListener(CFG_ENABLELOGTOFILE, new ParameterListener() {\n public void parameterChanged(String parameterName) {\n FileLogging.this.reloadLogToFileParam();\n }\n });\n }", "private static void processLocalConfig() {\n String localConfigFile = getConfigValue(SYSPROP_LOCAL_CONFIG_FILE);\n if (localConfigFile == null || localConfigFile.isEmpty()) {\n log.log(Level.FINE, \"No local configuration defined, skipping associated processing\");\n return;\n }\n\n log.log(Level.FINE, \"Processing configuration file {0}\", localConfigFile);\n Path p = Paths.get(localConfigFile);\n if (!Files.exists(p)) {\n log.log(Level.WARNING, \"Path {0} does not exist\", p.toString());\n return;\n } else if (!Files.isRegularFile(p)) {\n log.log(Level.WARNING, \"Path {0} is not a file\", p.toString());\n return;\n } else if (!Files.isReadable(p)) {\n log.log(Level.WARNING, \"File {0} is not readable\", p.toString());\n return;\n }\n\n Properties prop = new Properties();\n try (BufferedReader reader = Files.newBufferedReader(p, StandardCharsets.UTF_8)) {\n prop.load(reader);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Error occurred while reading \" + p.toString(), e);\n }\n CONFIG_VALUES.putAll(prop);\n }", "private void loadConfigValues() throws IOException {\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"ec2-service.properties\");\n if (null != propertiesFile) {\n logger.info(\"Use EC2 properties file: \" + propertiesFile.getAbsolutePath());\n Properties EC2Prop = new Properties();\n FileInputStream ec2PropFile = null;\n try {\n EC2Prop.load(new FileInputStream(propertiesFile));\n ec2PropFile = new FileInputStream(propertiesFile);\n EC2Prop.load(ec2PropFile);\n\n } catch (FileNotFoundException e) {\n logger.warn(\"Unable to open properties file: \" + propertiesFile.getAbsolutePath(), e);\n } catch (IOException e) {\n logger.warn(\"Unable to read properties file: \" + propertiesFile.getAbsolutePath(), e);\n } finally {\n IOUtils.closeQuietly(ec2PropFile);\n }\n managementServer = EC2Prop.getProperty(\"managementServer\");\n cloudAPIPort = EC2Prop.getProperty(\"cloudAPIPort\", null);\n\n try {\n if (ofDao.getOfferingCount() == 0) {\n String strValue = EC2Prop.getProperty(\"m1.small.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.small\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.large.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.large\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.medium.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.medium\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.2xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.2xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.4xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"cc1.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"cc1.4xlarge\", strValue);\n }\n } catch (Exception e) {\n logger.error(\"Unexpected exception \", e);\n }\n } else\n logger.error(\"ec2-service.properties not found\");\n }", "private void processConfigurationFile() throws RuntimeException {\n try {\n // Read all the lines and join them in a single string\n List<String> lines = Files.readAllLines(Paths.get(this.confFile));\n String content = lines.stream().reduce(\"\", (a, b) -> a + b);\n\n // Use the bson document parser to extract the info\n Document doc = Document.parse(content);\n this.mongoDBHostname = doc.getString(\"CLARUS_keystore_db_hostname\");\n this.mongoDBPort = doc.getInteger(\"CLARUS_keystore_db_port\");\n this.clarusDBName = doc.getString(\"CLARUS_keystore_db_name\");\n } catch (IOException e) {\n throw new RuntimeException(\"CLARUS configuration file could not be processed\", e);\n }\n }", "protected abstract void _init(DynMap config);", "public interface HubConfig {\n\n String HUB_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"hub-modules-deploy-timestamps.properties\";\n String USER_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-modules-deploy-timestamps.properties\";\n String USER_CONTENT_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-content-deploy-timestamps.properties\";\n\n String HUB_CONFIG_DIR = \"hub-internal-config\";\n String USER_CONFIG_DIR = \"user-config\";\n String ENTITY_CONFIG_DIR = \"entity-config\";\n String STAGING_ENTITY_SEARCH_OPTIONS_FILE = \"staging-entity-options.xml\";\n String FINAL_ENTITY_SEARCH_OPTIONS_FILE = \"final-entity-options.xml\";\n\n String DEFAULT_STAGING_NAME = \"data-hub-STAGING\";\n String DEFAULT_FINAL_NAME = \"data-hub-FINAL\";\n String DEFAULT_TRACE_NAME = \"data-hub-TRACING\";\n String DEFAULT_JOB_NAME = \"data-hub-JOBS\";\n String DEFAULT_MODULES_DB_NAME = \"data-hub-MODULES\";\n String DEFAULT_TRIGGERS_DB_NAME = \"data-hub-TRIGGERS\";\n String DEFAULT_SCHEMAS_DB_NAME = \"data-hub-SCHEMAS\";\n\n String DEFAULT_ROLE_NAME = \"data-hub-role\";\n String DEFAULT_USER_NAME = \"data-hub-user\";\n\n Integer DEFAULT_STAGING_PORT = 8010;\n Integer DEFAULT_FINAL_PORT = 8011;\n Integer DEFAULT_TRACE_PORT = 8012;\n Integer DEFAULT_JOB_PORT = 8013;\n\n String DEFAULT_AUTH_METHOD = \"digest\";\n\n String DEFAULT_SCHEME = \"http\";\n\n Integer DEFAULT_FORESTS_PER_HOST = 4;\n\n String DEFAULT_CUSTOM_FOREST_PATH = \"forests\";\n\n String getHost();\n\n // staging\n String getStagingDbName();\n void setStagingDbName(String stagingDbName);\n\n String getStagingHttpName();\n void setStagingHttpName(String stagingHttpName);\n\n Integer getStagingForestsPerHost();\n void setStagingForestsPerHost(Integer stagingForestsPerHost);\n\n Integer getStagingPort();\n void setStagingPort(Integer stagingPort);\n\n String getStagingAuthMethod();\n void setStagingAuthMethod(String stagingAuthMethod);\n\n String getStagingScheme();\n void setStagingScheme(String stagingScheme);\n\n boolean getStagingSimpleSsl();\n void setStagingSimpleSsl(boolean stagingSimpleSsl);\n\n @JsonIgnore\n SSLContext getStagingSslContext();\n void setStagingSslContext(SSLContext stagingSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getStagingSslHostnameVerifier();\n void setStagingSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier stagingSslHostnameVerifier);\n\n String getStagingCertFile();\n void setStagingCertFile(String stagingCertFile);\n\n String getStagingCertPassword();\n void setStagingCertPassword(String stagingCertPassword);\n\n String getStagingExternalName();\n void setStagingExternalName(String stagingExternalName);\n\n // final\n String getFinalDbName();\n void setFinalDbName(String finalDbName);\n\n String getFinalHttpName();\n void setFinalHttpName(String finalHttpName);\n\n Integer getFinalForestsPerHost();\n void setFinalForestsPerHost(Integer finalForestsPerHost);\n\n Integer getFinalPort();\n void setFinalPort(Integer finalPort);\n\n String getFinalAuthMethod();\n void setFinalAuthMethod(String finalAuthMethod);\n\n String getFinalScheme();\n void setFinalScheme(String finalScheme);\n\n @JsonIgnore\n boolean getFinalSimpleSsl();\n void setFinalSimpleSsl(boolean finalSimpleSsl);\n\n @JsonIgnore\n SSLContext getFinalSslContext();\n void setFinalSslContext(SSLContext finalSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getFinalSslHostnameVerifier();\n void setFinalSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier finalSslHostnameVerifier);\n\n String getFinalCertFile();\n void setFinalCertFile(String finalCertFile);\n\n String getFinalCertPassword();\n void setFinalCertPassword(String finalCertPassword);\n\n String getFinalExternalName();\n void setFinalExternalName(String finalExternalName);\n\n // traces\n String getTraceDbName();\n void setTraceDbName(String traceDbName);\n\n String getTraceHttpName();\n void setTraceHttpName(String traceHttpName);\n\n Integer getTraceForestsPerHost();\n void setTraceForestsPerHost(Integer traceForestsPerHost);\n\n Integer getTracePort();\n void setTracePort(Integer tracePort);\n\n String getTraceAuthMethod();\n void setTraceAuthMethod(String traceAuthMethod);\n\n String getTraceScheme();\n void setTraceScheme(String traceScheme);\n\n @JsonIgnore\n boolean getTraceSimpleSsl();\n void setTraceSimpleSsl(boolean traceSimpleSsl);\n\n @JsonIgnore\n SSLContext getTraceSslContext();\n void setTraceSslContext(SSLContext traceSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getTraceSslHostnameVerifier();\n void setTraceSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier traceSslHostnameVerifier);\n\n String getTraceCertFile();\n void setTraceCertFile(String traceCertFile);\n\n String getTraceCertPassword();\n void setTraceCertPassword(String traceCertPassword);\n\n String getTraceExternalName();\n void setTraceExternalName(String traceExternalName);\n\n // jobs\n String getJobDbName();\n void setJobDbName(String jobDbName);\n\n String getJobHttpName();\n void setJobHttpName(String jobHttpName);\n\n Integer getJobForestsPerHost();\n void setJobForestsPerHost(Integer jobForestsPerHost);\n\n Integer getJobPort();\n void setJobPort(Integer jobPort);\n\n String getJobAuthMethod();\n void setJobAuthMethod(String jobAuthMethod);\n\n String getJobScheme();\n void setJobScheme(String jobScheme);\n\n boolean getJobSimpleSsl();\n void setJobSimpleSsl(boolean jobSimpleSsl);\n\n @JsonIgnore\n SSLContext getJobSslContext();\n void setJobSslContext(SSLContext jobSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getJobSslHostnameVerifier();\n void setJobSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier jobSslHostnameVerifier);\n\n String getJobCertFile();\n void setJobCertFile(String jobCertFile);\n\n String getJobCertPassword();\n void setJobCertPassword(String jobCertPassword);\n\n String getJobExternalName();\n void setJobExternalName(String jobExternalName);\n\n String getModulesDbName();\n void setModulesDbName(String modulesDbName);\n\n Integer getModulesForestsPerHost();\n void setModulesForestsPerHost(Integer modulesForestsPerHost);\n\n\n // triggers\n String getTriggersDbName();\n void setTriggersDbName(String triggersDbName);\n\n Integer getTriggersForestsPerHost();\n void setTriggersForestsPerHost(Integer triggersForestsPerHost);\n\n // schemas\n String getSchemasDbName();\n void setSchemasDbName(String schemasDbName);\n\n Integer getSchemasForestsPerHost();\n void setSchemasForestsPerHost(Integer schemasForestsPerHost);\n\n // roles and users\n String getHubRoleName();\n void setHubRoleName(String hubRoleName);\n\n String getHubUserName();\n void setHubUserName(String hubUserName);\n\n\n String[] getLoadBalancerHosts();\n void setLoadBalancerHosts(String[] loadBalancerHosts);\n\n String getCustomForestPath();\n void setCustomForestPath(String customForestPath);\n\n String getModulePermissions();\n void setModulePermissions(String modulePermissions);\n\n String getProjectDir();\n void setProjectDir(String projectDir);\n\n @JsonIgnore\n HubProject getHubProject();\n\n void initHubProject();\n\n @JsonIgnore\n String getHubModulesDeployTimestampFile();\n @JsonIgnore\n String getUserModulesDeployTimestampFile();\n @JsonIgnore\n File getUserContentDeployTimestampFile();\n\n @JsonIgnore\n ManageConfig getManageConfig();\n void setManageConfig(ManageConfig manageConfig);\n @JsonIgnore\n ManageClient getManageClient();\n void setManageClient(ManageClient manageClient);\n\n @JsonIgnore\n AdminConfig getAdminConfig();\n void setAdminConfig(AdminConfig adminConfig);\n @JsonIgnore\n AdminManager getAdminManager();\n void setAdminManager(AdminManager adminManager);\n\n DatabaseClient newAppServicesClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Staging database\n * @return - a DatabaseClient\n */\n DatabaseClient newStagingClient();\n\n DatabaseClient newStagingClient(String databaseName);\n\n /**\n * Creates a new DatabaseClient for accessing the Final database\n * @return - a DatabaseClient\n */\n DatabaseClient newFinalClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Job database\n * @return - a DatabaseClient\n */\n DatabaseClient newJobDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Trace database\n * @return - a DatabaseClient\n */\n DatabaseClient newTraceDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Hub Modules database\n * @return - a DatabaseClient\n */\n DatabaseClient newModulesDbClient();\n\n @JsonIgnore\n Path getHubPluginsDir();\n @JsonIgnore\n Path getHubEntitiesDir();\n\n @JsonIgnore\n Path getHubConfigDir();\n @JsonIgnore\n Path getHubDatabaseDir();\n @JsonIgnore\n Path getHubServersDir();\n @JsonIgnore\n Path getHubSecurityDir();\n @JsonIgnore\n Path getUserSecurityDir();\n @JsonIgnore\n Path getUserConfigDir();\n @JsonIgnore\n Path getUserDatabaseDir();\n @JsonIgnore\n Path getEntityDatabaseDir();\n @JsonIgnore\n Path getUserServersDir();\n @JsonIgnore\n Path getHubMimetypesDir();\n\n @JsonIgnore\n AppConfig getAppConfig();\n void setAppConfig(AppConfig config);\n\n void setAppConfig(AppConfig config, boolean skipUpdate);\n\n String getJarVersion() throws IOException;\n}", "public void reConfigure();", "public void updateConfig() {\n String[] config = getConfiguration();\n Config.MEASUREMENT_INTERVAL = (int)Double.parseDouble(config[2]);\n Config.MAX_INJECTION = Double.parseDouble(config[3]);\n Config.MIN_INJECTION = Double.parseDouble(config[4]);\n Config.MAX_CUMULATIVE_DOSE = Double.parseDouble(config[5]);\n }", "@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }", "String getConfigName();" ]
[ "0.7045853", "0.63961256", "0.6259792", "0.6209592", "0.6195203", "0.61761594", "0.6174581", "0.6150871", "0.61485523", "0.6140146", "0.607946", "0.60318017", "0.602004", "0.59724975", "0.59639305", "0.5959717", "0.5947007", "0.5937612", "0.59234494", "0.58939373", "0.5893658", "0.58785766", "0.58712506", "0.58610916", "0.5835486", "0.58117396", "0.5801585", "0.57980424", "0.57962734", "0.5782555", "0.57671595", "0.5762539", "0.57557297", "0.5742595", "0.5737217", "0.5732835", "0.5725263", "0.57249457", "0.57218945", "0.5721359", "0.5718817", "0.57147944", "0.5712903", "0.57012695", "0.5692487", "0.5691365", "0.56899655", "0.56864685", "0.5685364", "0.5682183", "0.5680133", "0.5671339", "0.56699884", "0.5669701", "0.5664178", "0.56500185", "0.56296223", "0.562669", "0.5614262", "0.5609553", "0.56029147", "0.5598603", "0.559371", "0.5586628", "0.55814457", "0.55766505", "0.55740726", "0.55737644", "0.55656874", "0.5563718", "0.5563718", "0.55601937", "0.5556945", "0.55441755", "0.554227", "0.5540829", "0.5539274", "0.553798", "0.5535323", "0.55313265", "0.55282426", "0.55224025", "0.55179626", "0.5517178", "0.55155253", "0.5513914", "0.5512072", "0.5510501", "0.5506032", "0.55021966", "0.54939014", "0.5491199", "0.54816526", "0.54798055", "0.54795945", "0.5478684", "0.5466118", "0.54602736", "0.5455177", "0.5455157", "0.5447777" ]
0.0
-1
int a = 1/0;
@GetMapping("/consumer/hystrix/timeout/{id}") // @HystrixCommand(fallbackMethod = "orderInfo_TimeOutHandler",commandProperties = { // @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "8000") // }) @HystrixCommand public String orderInfo_TimeOut(@PathVariable("id") Integer id){ return paymentHystrixService.paymentInfo_TimeOut(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doStuff() {\n System.out.println(7/0);\r\n }", "public int division(int a, int b) {\n return a / b;\n }", "public static void main(String[] args) {\n\n int a=5;\n int b=0;\n\n System.out.println(\"a/b = \" + a/b);\n\n }", "public static void abc(int a, int b) throws DivideByZero {\n\t\t\n\t\tif(b == 0) {\n\t\t\tDivideByZero er = new DivideByZero();\n\t\t\tthrow er;\n\t\t}\n\t\t\n\t\tdouble c = a/b;\n\t\t\n\t}", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "double divide (double a, double b) {\n\t\tdouble result = a/b;\n\t\treturn result;\n\t}", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}", "public static double floor(double a) {\t\n\t\treturn ((a<0)?(int)(a-1):(int)a);\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public int a() {\n return 366;\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public int division(){\r\n return Math.round(x/y);\r\n }", "public static double div(double a, double b){\r\n\t\treturn a/b;\r\n\t}", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public void setRational(int a)\n {\n num = a / gcd(a, 1);\n den = 1;\n }", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }", "BaseNumber divide(BaseNumber operand);", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public Fraction(){\n numerator = 0;\n denominator = 1;\n }", "public void divide() {\n\t\t\n\t}", "public double divide(double a, double b) {\n\t\treturn a/b;\n\t}", "public static void main(String[] args) {\n\t\tint a=20;\n\t\tint b=0;\n\t\tint c=a/b;\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(\"division=\"+c);\n\t\tSystem.out.println(c);\n\n\t}", "@Test(expected = ArithmeticException.class)\n\tpublic void divisionByZeroTest() {\n\t\tMathOperation division = new Division();\n\t\tdivision.operator(TWENTY, ZERO);\n\t}", "public static void devidebyzero_mitigation() {\n\t\tint b = 0;\n\t\tint c = 10;\n\t\tint a = 0;\n\t\tif(b!=0) {\n\t\t a = c/b;\n\t\t}\n\t\tSystem.out.println(\"The value of a in mitigationstrategy Example = \" +a);\n\t}", "double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }", "@Test\n\tvoid testWhenDenominatorIsZero() {\n\t\ttry {\n\t\t\tcalculator.divide(1, 0);\n\t\t} catch (Exception e) {\n\t\t\tassertNotNull(e);\n\t\t\tassertEquals(ArithmeticException.class,e.getClass());\n\t\t}\n\t\n\t}", "public double result() {return 0;}", "public static double div(double a, double b) {\n return a / b;\n }", "@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}", "public float main(){\n return 0;\n }", "public static void main(String args[]) {\nint a;\nint b;\na=100;\nSystem.out.println(\"variable a =\"+a);\nSystem.out.println(a);\nb=a/2;\nSystem.out.println(\"variable b=a/2=\" + b);\nSystem.out.println(\"Java drives the Web.\");\n}", "@Override\n\tpublic double dividir(double numerador, double denominador) throws ArithmeticException {\n\t\treturn 0;\n\t}", "public void divide(int value) {\r\n\t\tif (value == 0) {\r\n\t\t\ttotal = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttotal /= value;\r\n\t\t}\r\n\t\thistory += \" / \" + value;\r\n\t}", "public boolean almostZero(double a);", "public void divide (int value) {\r\n\t\thistory = history + \" / \" + value;\r\n\t\tif (value == 0)\r\n\t\t\ttotal = 0;\r\n\t\telse\r\n\t\t\ttotal = total / value;\r\n\t}", "@Override\n public Float div(Float lhs, Float rhs) {\n\t\n\tassert(rhs != 0);\n\t\n\tfloat res = lhs/rhs;\n\treturn res;\n }", "void doStuff1() throws RuntimeException{\n System.out.println(7/0);\r\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public int getDenominator() { \n return denominator; \n }", "@Override\n public double calculate(double input)\n {\n return input/getValue();\n }", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "void doStuff2() throws Exception{\n System.out.println(7/0);\r\n }", "public Rational() {\n\tnumerator = 0;\n\tdenominator = 1;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a,b;\n\t\tdouble resultado;\n\t\t\n\t\ta = 5;\n\t\tb = 2;\n\t\t\n\t\tresultado = (double) a / b;\n\t\t\n\t\tSystem.out.println(resultado);\n\t\t\n\t}", "boolean getFractional();", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "public Fraction()\r\n {\r\n this.numerator = 0;\r\n this.denominator = 1;\r\n }", "@Test\n public void testZeroA() {\n assertEquals(0, PiGenerator.powerMod(0, 5, 42));\n }", "public static int DIV_ROUND_UP(int a, int b) {\n\treturn (a + b - 1) / b;\n }", "float getA();", "double doubleValue()\n {\n double top = 1.0 * numerator;\n double bottom=1.0*denominator;\n top=top/bottom;\n return top;\n\n }", "void imprimeCalculos(){\n int a,b;\n a=calculaX();\n b=calculaY();\n System.out.println(\"Valor de X=\"+a);\n System.out.println(\"Valor de Y=\"+b);\n if(a==0){\n proporcion=0;\n }else{\n proporcion=(b/a);\n System.out.println(\"Valor de proporcion es: \"+proporcion);\n }\n }", "@Override\r\n\tpublic int divNo(int a, int b) throws ArithmeticException {\n\t\tif(b==0)\r\n\t\t\tthrow new ArithmeticException();\r\n\t\treturn a/b;\r\n\t}", "private int p(final int x) {\n assert(valid(x));\n return (x-1)/2;\n }", "public static double sigmFunc(double a){\n if (a > 0){\n return 1;\n } else return 0;\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "public static void main(String[] args) {\n\t\tfinal double d = 1 / 2; \n\t\tSystem.out.println(d); \n\t}", "private static int calc(int c) {\n\t\treturn 1;\n\t}", "public static double divide(int left, int right){\n double output = (double)left/right;\n if (output == Double.POSITIVE_INFINITY) {\n throw new ArithmeticException(\"Cannot divide by 0\");\n }\n return (double)left / right;\n }", "public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public Divide(Expression a, Expression b) {\n super(Expression.X_IS_UNDEFINED);\n this.a = a;\n this.b = b;\n }", "static int valDiv2 (){\n return val/2;\n }", "public static double Div(double x, double y) \n\t{\n\t\t\n\t\tif(y !=0)\n\t\t\treturn x / y;\n\t\telse \n\t\t\tSystem.out.println(\"FEL\");\n\t\t\treturn 0;\n\t\t\n\t}", "public Fraction() {\n this.numerator = 0;\n this.denominator = 1;\n }", "public int dividir(int a, int b) throws ExececaoCalculo{\n \n if(b==0){\n //ExececaoCalculo é uma class que esta nesse pacote atual\n throw new ExececaoCalculo(a, b);\n }\n return a/b;\n }", "public void divide(Rational s) {\n\tnumerator *= s.denominator;\n\tdenominator *= s.numerator;\n }", "public static strictfp final \n\tvoid myMethod5()throws Exception{\n\t\tdouble dnum=100/3;\t\n\t}", "@Override\n\tpublic double DivideOperation(double dividend, double divisor) {\n\t\treturn 0;\n\t}", "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "public static int division(int x, int y) {\n\t\treturn x/y;\n\t}", "Rational divide(Rational p){\n Rational firstarg=new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n\n firstarg.numerator=firstarg.numerator*p.denominator;\n firstarg.denominator=p.numerator*firstarg.denominator;\n return firstarg;\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "@Test\n\tpublic void divisionTest() {\n\t\tMathOperation division = new Division();\n\n\t\tassertEquals(0, division.operator(ZERO, FIVE).intValue());\n\t\tassertEquals(4, division.operator(TWENTY, FIVE).intValue());\n\t}", "float mo106363e();", "public void divide (int value) {\n\t\tif (value != 0) {\n\t\t\ttotal = total/value;\n\t\t}\n\t\telse {\n\t\t\ttotal = 0;\n\t\t}\n\n\t\thistory = history + \" / \" + value;\n\t}", "public int getDenominator()\r\n {\r\n return denominator;\r\n }", "public int devision(int a, int b) {\n\t\tSystem.out.println(\"Division Method is Called\");\n\t\tint c=a/b;\n\t\treturn c;\n\t}", "public void main(int number)\n {\n Double f = 100.00/0.0;\n System.out.println(1 + 2 + \"3\");\n System.out.println(\"1\" + 2 + 3);\n char ch = 'd';\n if (ch > 3.00) {\n System.out.println(\"ch > 3.00\");\n System.out.println((int)ch);\n }\n byte b = 10;\n // bytes are promoted to int before being added.\n // since the JVM has no instructions for arithmetic on\n // char byte or short. \n // b = (byte)(b + a); \n b += 10;\n System.out.println(\"b = \" + b);\n \n float ff = 7/2;\n System.out.println(ff);\n \n final int a = 10;\n final int x = a;\n byte bb = x;\n System.out.println(\"bb = \" + bb);\n }", "public int div(int a, int b) {\n\t\t\treturn compute(a, b, OPER_DIV);\n\t\t}", "public static void main(String[] args) {\nint a=10;\nSystem.out.println(a);\na+=2;\nSystem.out.println(a);\na-=2;\nSystem.out.println(a);\na*=2;\nSystem.out.println(a);\na/=2;\nSystem.out.println(a);\na%=2;\nSystem.out.println(a);\n\t}", "@Test(expectedExceptions=ArithmeticException.class)\n\tpublic void a_test() {\n\t\tSystem.out.println(\"a test\");\n\t\tint i=9/0; //Arithmetic Exception\n\t}", "public static double division (double e, double f) {\n\t\tdouble divi = e / f;\n\t\treturn divi; \n\t}", "double d();", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "public static int p(int i)\n {\n return (i - 1) / 2;\n }", "public static void main(String[]args) {\n\t\tdouble d=10;\n\t\tint num=10;\n\t\t\n\t\tSystem.out.println(d);\n\t\tint i=(int) 12.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)130;\n\t\tSystem.out.println(b);\n\t\t\n\t double number =12;\n\t\tdouble result = number/5;\n\t\tSystem.out.println(result);\n\t\t\n\t\tdouble newNum=10;\n\t\tnewNum=newNum/3;\n\t\tSystem.out.println(newNum);\n\t\t\n\t\tdouble num1=10+10.5;\n\t\t\n\t\tSystem.out.println(num1);\n\t\t\n\t\n\t\t\n\t}", "public float h0() {\n float f10;\n float f11;\n long l10 = this.i;\n long l11 = 0L;\n long l12 = l10 - l11;\n Object object = l12 == 0L ? 0 : (l12 < 0L ? -1 : 1);\n if (object == false) {\n return 0.0f;\n }\n l11 = 0x100000L;\n long l13 = l10 - l11;\n Object object2 = l13 == 0L ? 0 : (l13 < 0L ? -1 : 1);\n if (object2 < 0) {\n f11 = l10;\n f10 = 1024.0f;\n return f11 / f10;\n }\n l11 = 0x40000000L;\n long l14 = l10 - l11;\n Object object3 = l14 == 0L ? 0 : (l14 < 0L ? -1 : 1);\n if (object3 < 0) {\n f11 = l10;\n f10 = 8;\n return f11 / f10;\n }\n f11 = l10;\n f10 = 1.07374182E9f;\n return f11 / f10;\n }", "public Divide(){\n }", "private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }", "boolean isZero();", "public Object getNoAccess() {\r\n return new Integer(3 / 0);\r\n }", "int main()\n{\n int a;\n std::cin>>a;\n int b=(a%10)+(a/1000);\n std::cout<<b;\n}", "void unsetFractional();", "public Divide(Expression a) {\n super(Expression.X_COMES_AFTER);\n this.a = a;\n }", "public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}", "public void setRational(int a, int b)\n {\n if (b == 0)\n {\n throw new IllegalArgumentException(\"Denominator cannot be zero\");\n }\n int g = gcd(a, b);\n num = a / gcd(a, b);\n den = b / gcd(a, b); \n }" ]
[ "0.65310943", "0.64259505", "0.6385744", "0.63476974", "0.62813896", "0.62725616", "0.6201653", "0.6199399", "0.61656195", "0.61420083", "0.6124005", "0.6095102", "0.6051479", "0.59800905", "0.59662414", "0.59469974", "0.5930179", "0.5912947", "0.58687913", "0.58682466", "0.58626163", "0.58616793", "0.5851436", "0.5822677", "0.58109754", "0.5799032", "0.5785477", "0.5759728", "0.5754671", "0.5696632", "0.56454206", "0.5637002", "0.56260735", "0.56045645", "0.55874884", "0.5567896", "0.55675155", "0.5561802", "0.5556914", "0.5555598", "0.5554816", "0.5532244", "0.5528059", "0.5527678", "0.55224085", "0.5517534", "0.55114025", "0.5503862", "0.54917234", "0.54887134", "0.5488279", "0.5486787", "0.54792744", "0.5478498", "0.5468347", "0.5460757", "0.54593426", "0.54573053", "0.5456147", "0.5443734", "0.5438161", "0.54351556", "0.5433555", "0.54330444", "0.5432938", "0.541982", "0.5402338", "0.5394453", "0.5392088", "0.5391133", "0.53852516", "0.5382082", "0.5380473", "0.5362282", "0.53609043", "0.5358406", "0.5340824", "0.5329192", "0.5318472", "0.531718", "0.53144586", "0.53129935", "0.53108203", "0.5308486", "0.53073686", "0.53048295", "0.52904165", "0.52794707", "0.52651674", "0.5261763", "0.52588683", "0.5252647", "0.52451736", "0.52414435", "0.52339745", "0.52336913", "0.52283734", "0.52185255", "0.52111274", "0.5206087", "0.5193259" ]
0.0
-1
Creates a new instance of ProfessorDepartamentoMBean
public ProfessorDepartamentoMBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConsultarVacinacaoMBean() {\r\n }", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public Departement() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public NewUserMBean() {\r\n }", "public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }", "@Override\n\tpublic DAOProveedor crearDAOProveedor() {\n\t\treturn new DAOProveedor();\n\t}", "public FAQsMBean() {\r\n faq=new FAQs();\r\n faqsfacade=new FAQsFacade();\r\n }", "public DepartmentAccessBean constructDepartments() throws Exception {\n\n\tif (deparments == null) {\t\n\t\t// Construct workers bean\n\t\tif (getDepartmentcode() != null) {\n\t\t\tdeparments = new DepartmentAccessBean();\n\t\t\tdeparments.setInitKey_division(getDepartmentcode().intValue());\n\t\t\tdeparments.refreshCopyHelper();\n\t\t}\n\t}\n\treturn deparments;\n}", "public static ObjectInstance getFauxJBossManagementMBeanObjectInstance()\n {\n ObjectName o = null;\n try\n {\n o = new ObjectName(getFauxJBossWebApplicationMBean().getObjectName());\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'JBoss Web Application' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new J2EEApplication().getClass().getName());\n }", "public interface FarmMemberServiceMBean \n{\n /** The default object name. */\n ObjectName OBJECT_NAME = ObjectNameFactory.create(\"jboss:service=FarmMember\");\n\n /** \n * Gets the name of the partition used by this service. This is a \n * convenience method as the partition name is an attribute of HAPartition.\n * \n * @return the name of the partition\n */\n String getPartitionName();\n \n /**\n * Get the underlying partition used by this service.\n * \n * @return the partition\n */\n HAPartition getHAPartition();\n \n /**\n * Sets the underlying partition used by this service.\n * Can be set only when the MBean is not in a STARTED or STARTING state.\n * \n * @param clusterPartition the partition\n */\n void setHAPartition(HAPartition clusterPartition);\n}", "public QuotationDetailProStaffManagedBean() {\n }", "public TipoMBean() throws Exception {\n\t\tthis.listAll();\n\t}", "public FacturaBean() {\n }", "@Override\n\tpublic SADepartamento generarSADepartamento() {\n\t\treturn new SADepartamentoImp();\n\t}", "public Department(){}", "private DepartmentManager() {\n }", "public AtributoAsientoBean() {\n }", "public static Planoaquisicoes createEntity(EntityManager em) {\n Planoaquisicoes planoaquisicoes = new Planoaquisicoes()\n .avisolicitacao(DEFAULT_AVISOLICITACAO)\n .custoestimado(DEFAULT_CUSTOESTIMADO)\n .aportelocal(DEFAULT_APORTELOCAL)\n .aporteagente(DEFAULT_APORTEAGENTE)\n .descricao(DEFAULT_DESCRICAO)\n .metodo(DEFAULT_METODO)\n .revisao(DEFAULT_REVISAO)\n .prequalificado(DEFAULT_PREQUALIFICADO)\n .situacao(DEFAULT_SITUACAO)\n .idplanoaquisicoes(DEFAULT_IDPLANOAQUISICOES);\n return planoaquisicoes;\n }", "public static EtudeProfil createEntity(EntityManager em) {\n EtudeProfil etudeProfil = new EtudeProfil()\n .anneeEtudeDebut(DEFAULT_ANNEE_ETUDE_DEBUT)\n .anneEtudeFin(DEFAULT_ANNE_ETUDE_FIN)\n .comment(DEFAULT_COMMENT);\n return etudeProfil;\n }", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }", "@Override\n\tpublic DAOProducto crearDAOProductoAlmacen() {\n\t\treturn new DAOProducto();\n\t}", "public PerfilActBean() {\r\n }", "public static Departament createEntity(EntityManager em) {\n Departament departament = new Departament()\n .nameDepartament(DEFAULT_NAME_DEPARTAMENT)\n .idDepartament(DEFAULT_ID_DEPARTAMENT)\n .shortDsc(DEFAULT_SHORT_DSC);\n return departament;\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "BeanPedido crearPedido(BeanCrearPedido pedido);", "public EmpleadoService() {\n super();\n emf = Persistence.createEntityManagerFactory(\"up_h2\");\n empDAO = new EmpleadoDAO(emf);\n }", "public static Department createEntity(EntityManager em) {\n Department department = new Department().departmentName(DEFAULT_DEPARTMENT_NAME);\n return department;\n }", "public BOEmpresa() {\r\n\t\tdaoEmpresa = new DAOEmpresaJPA();\r\n\t}", "public ProfesorDAOImpl() {\n super();\n }", "public ISegPermisoDAO getSegPermisoDAO() {\r\n return new SegPermisoDAO();\r\n }", "public PapelBean() {\n }", "public ClientSoapMBean() {\r\n\t}", "public static Department createEntity(EntityManager em) {\n Department department = new Department()\n .name(DEFAULT_NAME)\n .shortName(DEFAULT_SHORT_NAME)\n .nameInBangla(DEFAULT_NAME_IN_BANGLA)\n .description(DEFAULT_DESCRIPTION);\n return department;\n }", "@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}", "public PacienteDAO(){ \n }", "public static Department createEntity(EntityManager em) {\n Department department = new Department()\n .name(DEFAULT_NAME)\n .departmentHead(DEFAULT_DEPARTMENT_HEAD)\n .status(DEFAULT_STATUS)\n .individualId(DEFAULT_INDIVIDUAL_ID);\n return department;\n }", "public static PortalMapeadorViejo create(final TaskProcessor processor, final GenerarIdEnMensajeViejo generadorDeIdsCompartido) {\r\n\t\tfinal PortalMapeadorViejo portal = new PortalMapeadorViejo();\r\n\t\tportal.mapeadorVortex = ConversorDefaultDeMensajes.create();\r\n\t\tportal.initializeWith(processor, ReceptorNulo.getInstancia(), generadorDeIdsCompartido);\r\n\t\treturn portal;\r\n\t}", "public Object clonar() {\n\t\treturn new DCmdAccConsLstDeclaracionContribucionParafiscalPatrocinador();\n\t}", "public TestManagedBeanFactory() {\n super(\"TestManagedBeanFactory\");\n }", "public RegistroBean() {\r\n }", "MBeanDomain(String name) {\n\n\t\tthis.name = name;\n\t\tthis.mbeanMap = new HashMap<String, List<MBean>>();\n\t}", "public static DAO getProfessorDAO() {\n return new ProfessorDAO(entityManager, Professor.class);\n }", "public void createProbleemWizard() throws InstantiationException,\n\t\t\tIllegalAccessException {\n\n\t\tif (getMelding().getProbleem() != null) {\n\t\t\tmodelRepository.evictObject(getMelding().getProbleem());\n\t\t}\n\t\tprobleem = null;\n\t\tif (\"bord\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteBordProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkBordProbleem\", null);\n\n\t\t\t}\n\n\t\t} else if (\"ander\".equals(probleemType)) {\n\n\t\t\tif (trajectType.endsWith(\"Route\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"RouteAnderProbleem\", null);\n\n\t\t\t} else if (trajectType.contains(\"Netwerk\")) {\n\t\t\t\tprobleem = (Probleem) modelRepository.createObject(\n\t\t\t\t\t\t\"NetwerkAnderProbleem\", null);\n\t\t\t}\n\t\t}\n\t\tgetMelding().setProbleem(probleem);\n\t}", "public Perfil create(Perfil perfil);", "public FMISComLocal create() throws javax.ejb.CreateException;", "public static GestorPersonas instanciar(){\n \n if(gestor == null){\n gestor = new GestorPersonas();\n }\n return gestor;\n }", "public void createDepartament(int id, String denumire, int numarRaioane) {\n\t\tif (departamentOperations.checkDepartament(id) == true)\n\t\t\tSystem.out.println(\"Departament existent!\");\n\t\tDepartament newDepartament = new Departament(id, denumire, numarRaioane);\n\t\tList<Departament> list = departamentOperations.getAllDepartamente();\n\t\tdepartamentOperations.addDepartament(newDepartament);\n\t\tdepartamentOperations.printListOfDepartamente(list);\n\t}", "public ProductosBean() {\r\n }", "public static TipoDeMarcacao createEntity(EntityManager em) {\n TipoDeMarcacao tipoDeMarcacao = new TipoDeMarcacao()\n .nome(DEFAULT_NOME)\n .ativo(DEFAULT_ATIVO);\n return tipoDeMarcacao;\n }", "public NewJSFManagedBean() {\n }", "public ConstrutorDeLeilao para(String produto) {\n\t\t\r\n\t\t this.leilao = new Leilao(produto);\r\n\t\treturn this;\r\n\t}", "public SufficientFundsDaoOjb() {\n }", "public static Profesional createEntity(EntityManager em) {\n Profesional profesional = new Profesional()\n .profesion(DEFAULT_PROFESION)\n .matricula(DEFAULT_MATRICULA);\n return profesional;\n }", "public static DepartmentManager getInstance() {\n if (instance == null) {\n instance = new DepartmentManager();\n }\n return instance;\n }", "public ClasseBean() {\r\n }", "public ClasseBean() {\r\n }", "protected final MareaPesca createInstance() {\n MareaPesca mareaPesca = new MareaPesca();\n return mareaPesca;\n }", "public ProdutoDTO()\n {\n super();\n }", "public PedidoFactoryImpl() {\n\t\tsuper();\n\t}", "public PersonBean() {\n\t}", "public static MonthlyManagement createEntity(EntityManager em) {\n MonthlyManagement monthlyManagement = new MonthlyManagement()\n .driverId(DEFAULT_DRIVER_ID)\n .orderId(DEFAULT_ORDER_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .driverName(DEFAULT_DRIVER_NAME)\n .bankAccount(DEFAULT_BANK_ACCOUNT)\n .repaymentTime(DEFAULT_REPAYMENT_TIME)\n .money(DEFAULT_MONEY)\n .overdue(DEFAULT_OVERDUE)\n .periods(DEFAULT_PERIODS)\n .nextMoney(DEFAULT_NEXT_MONEY)\n .nextDate(DEFAULT_NEXT_DATE)\n .periodsStatus(DEFAULT_PERIODS_STATUS)\n .remark(DEFAULT_REMARK);\n return monthlyManagement;\n }", "public AfficherEtatManagedBean() {\r\n\r\n }", "public Profesor(String nombre, String direccion, String telefono, String email, String despacho, int salario,\n\t\t\tGregorianCalendar fecha, String tutoria, int categoria) {\n\t\tsuper(nombre, direccion, telefono, email, despacho, salario, fecha);\n\t\tthis.tutoria = tutoria;\n\t\tthis.categoria = categoria;\n\t}", "public TestManagedBeanFactory(String name) {\n \n super(name);\n \n }", "public Propiedad(int pNumFinca, String pModalidad, double pAreaTerreno, double pValorMetroCuadrado,\n double pValorFiscal, String pProvincia, String pCanton, String pDistrito, String pDirExacta,\n String pTipo, String pEstado, double pPrecio) {\n this();\n numFinca = pNumFinca;\n areaTerreno = pAreaTerreno;\n valorMetroCuadrado = pValorMetroCuadrado;\n valorFiscal = pValorFiscal;\n modalidad = pModalidad;\n provincia = pProvincia;\n canton = pCanton;\n distrito = pDistrito;\n dirExacta = pDirExacta;\n tipo = pTipo;\n estado = pEstado;\n precio = pPrecio;\n }", "public Department() \n {\n name = \"unnamed department\";\n }", "public ControladorPrueba() {\r\n }", "public ServicePatente() {\n this.success = false;\n // instanciando dao\n this.daoPatente = \n new br.com.ifba.scop.patente.dao.DAOPatente();\n }", "protected abstract AbstractExtendedDepictor createExtendedDepictor();", "public ParticipantBean() {\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public ClasificacionBean() {\r\n }", "public DepartmentsDaoImpl() {\n\t\tsuper();\n\t}", "public PersonaVO() {\n }", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "DeploymentDescriptor createDeploymentDescriptor();", "public void setDepartamento(String departamento) {\n this.departamento = departamento;\n }", "public ExportaDatosWSBean() {\n }", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public Produto() {}", "public TypeProjet getTypeProjet (String nomProjet) throws RemoteException {\r\n\t\t\t\t \t\t \r\n\t\t return new TypeProjetImpl(nomProjet,database);\t\t\r\n\t\t}", "public FinPagamentosListagemBean()\n {\n }", "@Override\n\tpublic ProfessorDao GetProfessorInstance() throws Exception {\n\t\treturn new SqliteProfessorDaoImpl();\n\t}", "@Override\r\n\tpublic MedicalPersonnelDaoImpl concreteDaoCreator() {\n\t\treturn new MedicalPersonnelDaoImpl();\r\n\t}", "public ClientMBean() {\n }", "public static DetaisDevis createEntity(EntityManager em) {\n DetaisDevis detaisDevis = new DetaisDevis()\n .qteProduit(DEFAULT_QTE_PRODUIT)\n .totalHT(DEFAULT_TOTAL_HT)\n .totalTVA(DEFAULT_TOTAL_TVA)\n .totalTTC(DEFAULT_TOTAL_TTC);\n return detaisDevis;\n }", "private JTabbedPane getServiceTabbedPane() {\r\n if (this.serviceTabbedPane == null) {\r\n this.serviceTabbedPane = new JTabbedPane();\r\n this.serviceTabbedPane.addTab(\"Points of Contact\", null, getServicePOCPanel(), null);\r\n }\r\n return this.serviceTabbedPane;\r\n }", "public <T> T createDomainManager() throws LauncherException {\n return (T)domainManager(\".\");\n }", "private Produto passarProdutoParaDto(ProdutoDto produtoDto) {\n\t\tProduto produto = new Produto();\n\t\tproduto.setNome(produtoDto.getNome());\n\t\tproduto.setQuantidade(produtoDto.getQuantidade());\n\t\tproduto.setValor(produtoDto.getValor());\n\t\t\n\t\treturn produto;\n\t}", "public static BonCommande createEntity(EntityManager em) {\n BonCommande bonCommande = new BonCommande()\n .numero(DEFAULT_NUMERO)\n .dateEmission(DEFAULT_DATE_EMISSION)\n .dateReglement(DEFAULT_DATE_REGLEMENT)\n .acheteurId(DEFAULT_ACHETEUR_ID);\n return bonCommande;\n }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public PonenciaBean() {\r\n controlador= new PonenciaAutorJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorPonencia= new PonenciaJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorEvento= new EventoJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorTrabajoInvestigacion= new TrabajoInvestigacionJpaController(JPAUtil.getEntityManagerFactory());\r\n \r\n ponenciaModificar= new Ponencia(0, \"\", new Date());\r\n ponenciaAgregar= new Ponencia(0, \"\", new Date());\r\n ponencias= new ArrayList<>();\r\n eventos= new ArrayList<>();\r\n trabajos= new ArrayList<>();\r\n String temp = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getParameter(\"identificacion\");\r\n identificacionInvestigador=Integer.parseInt(temp);\r\n \r\n eventos= controladorEvento.findEventoEntities();\r\n trabajos=controladorTrabajoInvestigacion.findTrabajoInvestigacionEntities();\r\n List<PonenciaAutor> listaPonenciaAutor = controlador.findPonenciaAutorEntities();\r\n for(PonenciaAutor pa: listaPonenciaAutor){\r\n if(pa.getInvestigadorIdentificacion().getIdentificacion()== identificacionInvestigador){\r\n ponencias.add(pa.getPonenciaId());\r\n }\r\n }\r\n }", "public CalificacionBean() {\n }", "public Profesional(int aniosExperiencia, String departamento,\n\t\t\tString titulo, String fechaIngreso) {\n\t\tsuper();\n\t\tthis.aniosExperiencia = aniosExperiencia;\n\t\tthis.departamento = departamento;\n\t\tthis.titulo = titulo;\n\t\tthis.fechaIngreso = fechaIngreso;\n\t}", "public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.manageable.modelAdapter.ReporterMBean();\n }", "public static Projet createEntity(EntityManager em) {\n Projet projet = new Projet()\n .nom(DEFAULT_NOM)\n .description(DEFAULT_DESCRIPTION)\n .photo(DEFAULT_PHOTO)\n .photoContentType(DEFAULT_PHOTO_CONTENT_TYPE)\n .video(DEFAULT_VIDEO)\n .videoContentType(DEFAULT_VIDEO_CONTENT_TYPE)\n .objectif(DEFAULT_OBJECTIF)\n .soldeCours(DEFAULT_SOLDE_COURS)\n .nbJoursRestant(DEFAULT_NB_JOURS_RESTANT);\n return projet;\n }", "public MnjMfgFabinsProdLEOImpl() {\n }", "public static ComplexTypeMBean getComplexTypeMBean()\n {\n return new ComplexType();\n }", "protected ContaCapitalCadastroDaoFactory() {\n\t\t\n\t}" ]
[ "0.63126016", "0.5652977", "0.55512947", "0.55277807", "0.5519037", "0.545411", "0.5384018", "0.53312904", "0.5321444", "0.5313232", "0.53038645", "0.5282404", "0.5240213", "0.52345526", "0.5182117", "0.5181243", "0.5162294", "0.50831735", "0.5064435", "0.50591034", "0.50561696", "0.5055889", "0.50271773", "0.5008512", "0.5007008", "0.50040615", "0.5000598", "0.5000348", "0.49897054", "0.49728507", "0.49706239", "0.4960953", "0.49571908", "0.49393505", "0.4930135", "0.49272844", "0.4920621", "0.49077943", "0.49036628", "0.489454", "0.48925802", "0.48919317", "0.48880398", "0.48862526", "0.48856318", "0.48813337", "0.48476732", "0.48448044", "0.48426878", "0.48393327", "0.48320863", "0.48308465", "0.48292765", "0.48251128", "0.4798453", "0.4798453", "0.47832814", "0.47629878", "0.47565287", "0.47532156", "0.47523546", "0.47397673", "0.47372815", "0.47365725", "0.4734116", "0.47245532", "0.47222015", "0.47164336", "0.47052404", "0.47002336", "0.46962306", "0.46951714", "0.46907565", "0.46902236", "0.46844503", "0.46827808", "0.46709543", "0.46703973", "0.46699843", "0.46657982", "0.4665328", "0.46646804", "0.46599537", "0.4658684", "0.46565387", "0.4656048", "0.46542007", "0.46483627", "0.46383235", "0.46381927", "0.46371892", "0.46336132", "0.46309602", "0.46296877", "0.46252772", "0.46252573", "0.46249276", "0.4623281", "0.462228", "0.46212044" ]
0.8407177
0
Indicate that this provider only supports PreAuthenticatedAuthenticationToken (sub)classes.
public final boolean supports(Class<?> authentication) { return PreAuthenticatedAuthenticationToken.class.isAssignableFrom(authentication); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean supports(AuthenticationToken token) {\n return true;\n }", "@Override\r\n public boolean supports(final Class cls) {\r\n \r\n return UsernamePasswordAuthenticationToken.class.isAssignableFrom(cls);\r\n }", "@Override\n\tpublic boolean supports(Class<?> auth) {\n\t\treturn auth.equals(UsernamePasswordAuthenticationToken.class);\n\t}", "@Override\npublic boolean supports(Class<?> authentication) {\n return true;\n}", "@Override\n public boolean supports(Class<?> aClass) {\n return JwtAuthToken.class.equals(aClass);\n }", "@Override\n public boolean supports(Class<?> authentication) {\n return authentication.equals(\n UsernamePasswordAuthenticationToken.class);\n }", "public boolean isAuthenticationRequired() {\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean supports(Class authentication) {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean supports(Class<?> authentication) {\n\t\treturn authentication.equals(UsernamePasswordAuthenticationToken.class);\n\t}", "@Override\n public boolean supports(AuthenticationToken token) {\n return token instanceof StatelessAuthenticationToken;\n }", "@Override\n\tpublic boolean supports(Class<?> authentication) {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean supports(Class<?> authentication) {\n\t\treturn authentication.equals(AuthTokenAuthentication.class);\n\t}", "public boolean isAuthRequired() {\n\t\treturn false;\n\t}", "public boolean isNotNullSupportsPreauthOverage() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsPreauthOverage);\n }", "public boolean isAuthenticated() {\n return false;\n }", "public java.lang.Boolean getSupportsPreauthOverage() {\n return genClient.cacheGet(CacheKey.supportsPreauthOverage);\n }", "public boolean hasSupportsPreauthOverage() {\n return genClient.cacheHasKey(CacheKey.supportsPreauthOverage);\n }", "private boolean isAuthenticationRequired(String token) {\n Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication();\n\n //authenticate if no auth\n if (existingAuth == null || !existingAuth.isAuthenticated()) {\n return true;\n }\n\n //revalidate if token was changed\n if (existingAuth instanceof JwtAuthentication && !StringUtils.equals(token, (String) existingAuth.getCredentials())) {\n return true;\n }\n\n //always try to authenticate in case of anonymous user\n if (existingAuth instanceof AnonymousAuthenticationToken) {\n return true;\n }\n\n return false;\n }", "public boolean supports(Class<?> authentication) {\n return authentication.equals(UsernamePasswordAuthenticationToken.class);\n }", "@Override\n public boolean delegationTokensRequired() throws Exception {\n if (hbaseConf == null) {\n LOG.debug(\n \"HBase is not available (not packaged with this application), hence no \"\n + \"tokens will be acquired.\");\n return false;\n }\n try {\n if (!HadoopUtils.isKerberosSecurityEnabled(UserGroupInformation.getCurrentUser())) {\n return false;\n }\n } catch (IOException e) {\n LOG.debug(\"Hadoop Kerberos is not enabled.\");\n return false;\n }\n return hbaseConf.get(\"hbase.security.authentication\").equals(\"kerberos\")\n && kerberosLoginProvider.isLoginPossible(false);\n }", "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "@Override\n public <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass) {\n if (!ISecured.class.isAssignableFrom(componentClass)) {\n return true; \n }\n\n // Deny all others\n if (!((B4WebSession) Session.get()).isSignedIn()) {\n throw new RestartResponseAtInterceptPageException(LoginPage.class);\n }\n \n return true;\n }", "@Override\n\tprotected AuthenticationToken createToken(ServletRequest request, ServletResponse response) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean isAuthenticated() {\n\t\treturn isAuthenticated;\n\t}", "@Override\n public boolean isAuthenticated() {\n return !person.isGuest();\n }", "@Override\n public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {\n security.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\");\n }", "@Override\n public boolean shouldApply(HttpServletRequest httpServletRequest) {\n boolean shouldApply = false;\n\n if (jwtProperties != null) {\n String serializedJWT = getJWTFromCookie(httpServletRequest);\n shouldApply = (serializedJWT != null && isAuthenticationRequired(serializedJWT));\n }\n\n return shouldApply;\n }", "@Override\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\n\t}", "private boolean authenticationIsRequired(String username) {\n Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication();\n\n if (existingAuth == null || !existingAuth.isAuthenticated()) {\n return true;\n }\n\n // Limit username comparison to providers which use usernames (ie\n // UsernamePasswordAuthenticationToken)\n // (see SEC-348)\n\n if (existingAuth instanceof UsernamePasswordAuthenticationToken && !existingAuth.getName().equals(username)) {\n return true;\n }\n\n // Handle unusual condition where an AnonymousAuthenticationToken is\n // already\n // present\n // This shouldn't happen very often, as BasicProcessingFitler is meant\n // to be\n // earlier in the filter\n // chain than AnonymousAuthenticationFilter. Nevertheless, presence of\n // both an\n // AnonymousAuthenticationToken\n // together with a BASIC authentication request header should indicate\n // reauthentication using the\n // BASIC protocol is desirable. This behaviour is also consistent with\n // that\n // provided by form and digest,\n // both of which force re-authentication if the respective header is\n // detected (and\n // in doing so replace\n // any existing AnonymousAuthenticationToken). See SEC-610.\n return existingAuth instanceof AnonymousAuthenticationToken;\n }", "@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\npublic boolean isCredentialsNonExpired() {\n\treturn true;\n}", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Override\n public boolean isClientAuthEnabled() {\n return true;\n }", "final public boolean requiresAuthentication()\r\n {\r\n return requires_AUT;\r\n }", "public void clearSupportsPreauthOverage() {\n genClient.clear(CacheKey.supportsPreauthOverage);\n }", "public boolean canHandle(HttpServletRequest request) {\n if (log.isDebugEnabled()) {\n log.debug(\"Inside Token2Authenticator canHandle method\");\n }\n return StringUtils.isNotEmpty(request.getParameter(Token2Constants.CODE));\n }", "public abstract boolean isLoginRequired();", "@Override\n protected AuthenticationInfo doGetAuthenticationInfo(\n AuthenticationToken token) throws AuthenticationException {\n return null;\n }", "public boolean tokenEnabled() {\n return tokenSecret != null && !tokenSecret.isEmpty();\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return Boolean.TRUE;\n }", "@Override\n\tprotected Class<VerificationToken> clazz() {\n\t\treturn VerificationToken.class;\n\t}", "@Override\n\tpublic void validateConfigurationWithoutLogin() {\n\t\tcheckAuthorization();\n\t}", "public boolean isAuthenticated() {\r\n return SecurityContextHolder.getContext().getAuthentication() != null;\r\n }", "@Override\n public F.Promise<Optional<Result>> beforeAuthCheck(Http.Context context) {\n return F.Promise.pure(Optional.empty());\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }", "public Gateway setSupportsPreauthOverage(java.lang.Boolean supportsPreauthOverage) {\n return genClient.setOther(supportsPreauthOverage, CacheKey.supportsPreauthOverage);\n }", "@Override\r\n protected void additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) {\n }", "boolean isAuthenticated();", "@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "protected EscidocAuthenticationProvider() {\r\n }", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Login.class.equals(clazz);\n\t}", "@Override\n public boolean supports(Class<?> clazz) {\n return false;\n }", "@Override\n public boolean supports(Class<?> clazz) {\n return false;\n }", "public boolean isKerberosToken() {\n\t\treturn kerberosToken;\n\t}", "public NonAuthenticatedJwtToken(final String token) {\n super(null);\n this.token = token;\n super.setAuthenticated(false);\n }", "@Override\n\tpublic boolean authenticate(OrderBean bean) {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isAccessAllowed(ServletRequest arg0, ServletResponse arg1, Object arg2) throws Exception {\n\t\tString header = ((HttpServletRequest) arg0).getHeader(\"X-Requested-With\");\n\t\tif (ShiroUtil.getShiroUser() != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (\"XMLHttpRequest\".equalsIgnoreCase(header)) {\n\t\t\t\t// ajax判断是否登陆,并可返回json\n\t\t\t\targ1.setCharacterEncoding(\"utf-8\");\n\t\t\t\targ1.getWriter().write(\"用户登录失效,重新登录\");\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\n\t}", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "public void testCheckTokenEndPointIsDisabled() throws Exception {\n // perform POST to /oauth/check_token endpoint with authentication\n this.mockMvc\n .perform(MockMvcRequestBuilders.post(\"/oauth/check_token\").param(\"token\", \"some random value\")\n .principal(new UsernamePasswordAuthenticationToken(testClientId, \"\",\n Arrays.asList(new SimpleGrantedAuthority(\"ROLE_USER\")))))\n // we expect a 403 not authorized\n .andExpect(MockMvcResultMatchers.status().is(403));\n }", "@Override\n public boolean isType(PrincipalTypes principalType) {\n return false;\n }", "@Override\n\tpublic boolean isCredentialsNonExpired()\n\t{\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\tif (handler instanceof HandlerMethod) {\n\t\t\tHandlerMethod handlerMethod = (HandlerMethod) handler;\n\t\t\tMethod method = handlerMethod.getMethod();\n\t\t\tTokenCheck annotation = method.getAnnotation(TokenCheck.class);\n\t\t\tHttpSession session = request.getSession();\n\t\t\tif (annotation != null) {\n\n\t\t\t\tboolean tokenCheck = annotation.check();\n\t\t\t\tif (tokenCheck) {\n\t\t\t\t\tif (isRepeatSubmit(request)) {\n\t\t\t\t\t\tString rootPath = session.getServletContext().getContextPath();\n\t\t\t\t\t\tresponse.sendRedirect(rootPath + \"/user/tokenError\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t//session.removeAttribute(CommonConstants.SSM_TOKEN);\n\t\t\t\t}\n\t\t\t\tboolean generateToken = annotation.generateToken();\n\t\t\t\tif (generateToken) {\n\t\t\t\t\tsession.setAttribute(CommonConstants.SSM_TOKEN, UUID.randomUUID().toString());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn super.preHandle(request, response, handler);\n\t\t}\n\t}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn false;\n\t}", "@Override\n public boolean supports(Class<?> clazz) {\n return clazz == ClimbUserForm.class;\n }", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@java.lang.Override\n public boolean hasToken() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "@Override\r\n\tpublic void list_validParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParent();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }", "@Override\n\tprotected Set<RequestTypeEnum> provideAllowableRequestTypes() {\n\t\treturn Collections.singleton(RequestTypeEnum.POST);\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "private boolean isTokenBasedAuthentication(String authorizationHeader) {\n return authorizationHeader != null && authorizationHeader.toLowerCase()\n .startsWith(AUTHENTICATION_SCHEME.toLowerCase());\n }", "private boolean isAuthenticated(final ContainerRequestContext requestContext) {\n // Return true if the user is authenticated or false otherwise\n return requestContext.getSecurityContext().getUserPrincipal() != null;\n }", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\r\n\tpublic Map<String, Claim> verifyJWT(String token) {\n\t\treturn null;\r\n\t}" ]
[ "0.6695665", "0.6640934", "0.6357351", "0.6295239", "0.61887693", "0.6162225", "0.60881275", "0.60776335", "0.60205257", "0.60192347", "0.5978735", "0.5921772", "0.5767981", "0.5743673", "0.56341827", "0.56136864", "0.5609765", "0.55659276", "0.55561167", "0.5507544", "0.547997", "0.54542565", "0.54128724", "0.5363529", "0.5357768", "0.5355017", "0.5309129", "0.5290383", "0.5275907", "0.5274518", "0.52509445", "0.5245587", "0.5239023", "0.52334404", "0.52094287", "0.52033377", "0.5189074", "0.5187185", "0.51699454", "0.51696956", "0.5164246", "0.5124236", "0.51188475", "0.5113629", "0.51050276", "0.509373", "0.50881386", "0.508681", "0.5081618", "0.5036534", "0.50317276", "0.5028613", "0.5028613", "0.5028613", "0.5024941", "0.5023615", "0.5019021", "0.5019021", "0.5013781", "0.5008157", "0.50052446", "0.49938518", "0.49663398", "0.49604702", "0.4954309", "0.4941101", "0.4936594", "0.49337298", "0.49337298", "0.49337298", "0.4930386", "0.49191377", "0.4899093", "0.4899093", "0.48904076", "0.48886782", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4886922", "0.4881873", "0.48785487", "0.48756877", "0.48756877", "0.48756877", "0.4866847", "0.48660123", "0.48653033", "0.48650312" ]
0.6455178
2
save the current specified start date from the UI
@Override protected void onSaveInstanceState(@NonNull Bundle outState) { if (txtv_start_date != null) { outState.putString(KEY_START_DATE, txtv_start_date.getText().toString()); } // save the current specified end date from the UI if (txtv_end_date != null) { outState.putString(KEY_END_DATE, txtv_end_date.getText().toString()); } super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartDate(Date s);", "void setStartDate(Date startDate);", "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "public void setStartDate(java.util.Date value);", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void setDateSaved(String dateSaved)\n {\n this.dateSaved = dateSaved; \n }", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setStartDate(String date){\n\t\tthis.startDate = date;\n\t}", "@Override\n\tpublic void setStartDate(Date startDate) {\n\t\tmodel.setStartDate(startDate);\n\t}", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartdate(Date startdate) {\r\n this.startdate = startdate;\r\n }", "public void setStart( Calendar start );", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setStartdate(Date startdate) {\n this.startdate = startdate;\n }", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public void SetDate(Date date);", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "protected void saveLocalDate() {\n\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public String getDate(){ return this.start_date;}", "void setCreateDate(Date date);", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "void setInvoicedDate(Date invoicedDate);", "public void setDateStart (Timestamp DateStart);", "public void setStartDate(String startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(java.sql.Date newStartDate) {\n\tstartDate = newStartDate;\n}", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "void setDate(Date data);", "public void setStartDate(Date value)\n {\n validateStartDate(value);\n setAttributeInternal(STARTDATE, value);\n \n }", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "void setEndDate(Date endDate);", "public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }", "void setEventStartDate(Date startEventDate);", "@Test\n public void testSetStartDate() {\n System.out.println(\"setStartDate\");\n Calendar newStart = new GregorianCalendar(2000, 01, 01);\n String startDate = newStart.toString();\n DTO_Ride instance = dtoRide;\n instance.setStartDate(startDate);\n \n String result = instance.getStartDate();\n assertEquals(newStart, newStart);\n }", "@Override\n\tpublic void setStartDate(java.util.Date startDate) {\n\t\t_esfTournament.setStartDate(startDate);\n\t}", "public void setStartDate(Date startDate)\r\n {\r\n m_startDate = startDate;\r\n }", "public void setSelectedDate(Date selectedDate);", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public Date getStartDate();", "public Date getStartDate();", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public void setEndDate(java.util.Date value);", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public abstract void setStartTime(Date startTime);", "public void setStartedDate(Date value) {\n this.startedDate = value;\n }", "public void setRequestDate(Date requestDate);", "public void setDate() {\n this.date = new Date();\n }", "private static Date dateToString(Date start) {\n\t\treturn start;\n\t}", "public Date getSelectedDate();", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "long getStartDate();", "@Override\n\tprotected void setDate() {\n\n\t}", "void setDate(java.lang.String date);", "public void setStartDate(LocalDateTime startDate) {\n this.startDate = startDate;\n }", "private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }", "@FXML\n void saveBtnClicked(ActionEvent event) {\n reportSettingsDAO = new ReportSettingsDAO();\n reportSettings = new ReportSettings();\n\n if (weeklyRadioBtn.isSelected()) {\n reportSettings.setFrequency(\"WEEKLY\");\n } else {\n reportSettings.setFrequency(\"MONTHLY\");\n }\n\n LocalDate tmpDate = nextDate.getValue();\n reportSettings.setNextDate(Date.valueOf(tmpDate));\n\n reportSettingsDAO.updateDate(reportSettings);\n\n }", "public void setDate(String date){\n this.date = date;\n }", "public String getStartDate();", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setInstdte(Date instdte) {\r\n this.instdte = instdte;\r\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setDueDate(Date d){dueDate = d;}", "public void setStartExecDate(java.util.Calendar startExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTEXECDATE$8);\n }\n target.setCalendarValue(startExecDate);\n }\n }", "String getStartDate();", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public LocalDate getStart_date(){\n return this.start_date;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }" ]
[ "0.69874436", "0.69574773", "0.6795759", "0.6695753", "0.66409457", "0.6535966", "0.63943785", "0.63734525", "0.6284657", "0.6272397", "0.6272397", "0.6257615", "0.6230032", "0.62039834", "0.62039834", "0.62039834", "0.6191889", "0.61882085", "0.6184073", "0.61277616", "0.6112625", "0.6112211", "0.611076", "0.6105143", "0.60853803", "0.60785353", "0.6076688", "0.60671043", "0.6054352", "0.6054352", "0.6054352", "0.6027239", "0.6026071", "0.6018009", "0.60151964", "0.60109323", "0.60076445", "0.60001254", "0.59589636", "0.5950272", "0.5936859", "0.5936859", "0.5928106", "0.59151894", "0.5904093", "0.5895239", "0.5892078", "0.5888736", "0.5887893", "0.58643097", "0.5855741", "0.5844453", "0.58385926", "0.58385926", "0.5825998", "0.5823341", "0.58063215", "0.57880443", "0.57880443", "0.57861507", "0.57858604", "0.5782104", "0.5773206", "0.5769116", "0.57647884", "0.57613814", "0.5742701", "0.5733763", "0.5729753", "0.5729753", "0.5729753", "0.5727845", "0.5722027", "0.57205474", "0.5720438", "0.5717634", "0.5714716", "0.5702577", "0.5694082", "0.56746167", "0.5668025", "0.56590325", "0.56566507", "0.56481653", "0.56472915", "0.5646923", "0.5644655", "0.5638665", "0.5636289", "0.56242925", "0.56242925", "0.5621592", "0.5621592", "0.5621592", "0.5621592", "0.5621592", "0.5621592", "0.5621592", "0.5621592", "0.5621592" ]
0.69029194
2
get the saved start date and update the text view
@Override protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) { String savedStartDate = savedInstanceState.getString(KEY_START_DATE, null); if (savedStartDate != null) { txtv_start_date.setText(savedStartDate); } // get the saved end date and update the text view String savedEndDate = savedInstanceState.getString(KEY_END_DATE, null); if (savedEndDate != null) { txtv_end_date.setText(savedEndDate); } super.onRestoreInstanceState(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateText() {\n\n dateText = dateFormat.format(c.getTime());\n timeText = timeFormat.format(c.getTime());\n dateEt.setText(dateText + \" \"+ timeText);\n}", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "private void updateLabel() {\n EditText dob = (EditText) findViewById(R.id.dateofbirth);\n\n String dateFormat = \"MM/dd/yyyy\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormat,\n Locale.US);\n dob.setText(sdf.format(cal.getTime()));\n }", "protected void updateDate() {\r\n\t\tDate date = new Date();\r\n\t\tdate.setTime(mTime);\r\n\t\tDateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());\r\n\t\tString text = dateFormat.format(date);\r\n\t\tmDatePickerText.setText(text);\r\n\t}", "public void updateDate(){\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date curDate=new Date(System.currentTimeMillis());\n String date=formatter.format(curDate);\n TextView TextTime=(TextView)this.findViewById(R.id.tv_date);\n TextTime.setText(date);\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tString st=stext.getText().toString();\n\t\t\tinitdate(st);\n\t\t}", "public void fillInTerm(){\n Cursor res = db.getAllTerms();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\", Locale.US);\n\n res.moveToLast();\n String name = \"Term \" + (1 + res.getInt(0));\n long startNum = res.getLong(2);\n long endNum = res.getLong(3);\n String start = sdf.format(startNum);\n String end = sdf.format(endNum);\n\n //fill in new dates\n try {\n\n Calendar c = Calendar.getInstance();\n c.setTime(sdf.parse(end));\n c.add(Calendar.DATE, 1);\n start = sdf.format(c.getTime());\n c.add(Calendar.MONTH, 6);\n c.add(Calendar.DATE, -1);\n end = sdf.format(c.getTime());\n } catch (ParseException e){\n Toast.makeText(TermsActivity.this, \"There was a problem with your dates.\", Toast.LENGTH_SHORT).show();\n }\n\n termHeader.setText(name);\n editStart.setText(start);\n editEnd.setText(end);\n }", "public void updateTextViews() {\n // Set the inputs according to the initial input from the entry.\n //TextView dateTextView = (TextView) findViewById(R.id.date_textview);\n //dateTextView.setText(DateUtils.formatDateTime(getApplicationContext(), mEntry.getStart(), DateUtils.FORMAT_SHOW_DATE));\n\n EditText dateEdit = (EditText) findViewById(R.id.date_text_edit);\n dateEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_NUMERIC_DATE | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_ALL));\n\n EditText startTimeEdit = (EditText) findViewById(R.id.start_time_text_edit);\n startTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_SHOW_TIME));\n\n EditText endTimeEdit = (EditText) findViewById(R.id.end_time_text_edit);\n endTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getEnd(), DateUtils.FORMAT_SHOW_TIME));\n\n\n TextView descriptionView = (TextView) findViewById(R.id.description);\n descriptionView.setText(mEntry.getDescription());\n\n\n enableSendButtonIfPossible();\n }", "private void updateStartTime() {\n Date date = startTimeCalendar.getTime();\n String startTime = new SimpleDateFormat(\"HH:mm\").format(date);\n startHourText.setText(startTime);\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public String getDate(){ return this.start_date;}", "private void updateDateTxtV()\n {\n String dateFormat =\"EEE, d MMM yyyy\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormat, Locale.CANADA);\n dateStr = sdf.format(cal.getTime());\n dateTxtV.setText(dateStr);\n\n //unix datetime for saving in db\n dateTimeUnix = cal.getTimeInMillis() / 1000L;\n }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "private void updateLabel(EditText view) {\n String myFormat = \"MM/dd/yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n view.setText(sdf.format(myCalendar.getTime()));\n }", "private void updateDisplay() {\r\n date1.setText(\r\n new StringBuilder()\r\n // Month is 0 based so add 1\r\n .append(pDay).append(\"/\")\r\n .append(pMonth + 1).append(\"/\")\r\n .append(pYear).append(\" \"));\r\n }", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "private void updateDisplay() \n\t{\n\t\t// updates the date in the TextView\n if(bir.hasFocus())\n {\n\t\tbir.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }else\n {\n\t\taniv.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }\n\n\n\t}", "public void setDateText(String date);", "private void updateDateDisplay() {\n\t\tStringBuilder date = new StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t.append(mMonth + 1).append(\"-\").append(mDay).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \");\n\n\t\tchangeDateButton.setText(date);\t\n\t}", "@Override\n public void updateDate(int year, int month, int day) {\n calendar = new GregorianCalendar();\n calendar.set(year, month, day);\n // set the textview\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMMM dd, yyyy\");\n sdf.setCalendar(calendar);\n expiration.setText(sdf.format(calendar.getTime()));\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n month=month+1;\n String currentInfo=\"\";\n Cursor cursor=myDb.getRow(mId1);// finding selected row item to store the selected date\n if(cursor.moveToFirst()){\n do{\n currentInfo=cursor.getString(cursor.getColumnIndex(myDb.KEY_DATE));\n\n }while (cursor.moveToNext());\n cursor.close();\n }\n currentInfo =year+\"-\"+month+\"-\"+day;\n //Storing the date at selected row\n myDb.updateRow(mId1, currentInfo);\n\n populateListViewFromDB();\n }", "public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n txtDate.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);}", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "@Override\n public void onDateSet(DatePickerDialog view, int year, int month, int date)\n {\n String dateSet = \"\" + year + \"-\" + (++month) + \"-\" + date;\n selectDateTextView.setText(dateSet);\n\n\n\n\n// _device_id = \"2345\";\n// _expiry_date = T.parseDate(dateSet);\n// _document_type = \"Driving Licence\";\n//\n// uploadDocumentImage();\n }", "private void updateDisplay() { \n\t \tmDateDisplay.setText( \n\t \t\t\tnew StringBuilder()\n\t \t\t\t.append(mYear).append(\"/\")\n\t \t\t\t// Month is 0 based so add 1 \n\t \t\t\t.append(mMonth + 1).append(\"/\") \n\t \t\t\t.append(mDay).append(\" \")); \n\t \t\t\t \n\t \t\t\t \n\t \t\t\t \n\t }", "private void nastavViews() {\n tv_steps = (TextView) findViewById(R.id.textview1);\n den = (TextView) findViewById(R.id.time1);\n kcalTv = (TextView) findViewById(R.id.kCalTv);\n df = new SimpleDateFormat(\"EEE, d. MMM\");\n df2 = new SimpleDateFormat(\"dd-MMM-yyyy\");\n c = Calendar.getInstance().getTime();\n aktualnyDatum = df.format(c);\n aktualnyDatum2 = df2.format(c);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t\t/*\n\t\t * if (com.fitmi.utils.Constants.sDate.length() == 0) {\n\t\t * //Constants.sDate = \"Tuesday, February 10, 2015\";\n\t\t * \n\t\t * Calendar c = Calendar.getInstance();\n\t\t * System.out.println(\"Current time => \" + c.getTime()); //\n\t\t * SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\t * SimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t * com.fitmi.utils.Constants.sDate = df.format(c.getTime());\n\t\t * \n\t\t * stringDate = formattedDate;\n\t\t * \n\t\t * SimpleDateFormat postFormat = new\n\t\t * SimpleDateFormat(\"yyyy-MM-dd kk:mm:ss\");\n\t\t * com.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());\n\t\t * \n\t\t * }\n\t\t */\n\n\t\t/*\n\t\t * Calendar c = Calendar.getInstance(); SimpleDateFormat targetFormatter\n\t\t * = new SimpleDateFormat( \"EEEE, MMM dd, yyyy\", Locale.ENGLISH); String\n\t\t * formattedDate = targetFormatter.format(c.getTime());\n\t\t * dateTextView.setText(formattedDate); stringDate = formattedDate;\n\t\t * \n\t\t * \n\t\t * \n\t\t * dateTextView.setText(com.fitmi.utils.Constants.sDate);\n\t\t */\n\n\t\t// changed by avinash and saikat da\n\t\t/*Calendar c = Calendar.getInstance();\n\t\tSystem.out.println(\"Current time => \" + c.getTime());\n\t\t// SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\tcom.fitmi.utils.Constants.sDate = df.format(c.getTime());\n\t\tSimpleDateFormat postFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd kk:mm:ss\");\n\t\tcom.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());*/\n\t\tif (com.fitmi.utils.Constants.sTempDate.length() == 0) {\n\t\t\t//Constants.sDate = \"Tuesday, February 10, 2015\";\n\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tSystem.out.println(\"Current time => \" + c.getTime());\t\n\t\t\t//\tSimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\t\t//SimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t\tcom.fitmi.utils.Constants.sDate = df.format(c.getTime());\t\n\n\n\t\t\tSimpleDateFormat postFormat = new SimpleDateFormat(\"yyyy-MM-dd kk:mm:ss\");\t\t\t\n\t\t\tcom.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());\n\n\n\t\t\tSimpleDateFormat dformat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tcom.fitmi.utils.Constants.conditionDate = dformat.format(c.getTime());\n\t\t\tSystem.out.println(\"Calender post format :\"+com.fitmi.utils.Constants.postDate); \n\t\t\t//Toast.makeText(getActivity(), Constants.postDate, Toast.LENGTH_LONG).show();\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\ttoday=\tcom.fitmi.utils.Constants.sTempDate;\n\t\t}\n\t\tdateTextView.setText(com.fitmi.utils.Constants.sDate);\n\t}", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "private void updateDateAndTimeTextView(Calendar instance) {\n\t\tmCalendar = instance;\n\n\t\t// update the dateText view with the corresponding date\n\t\tbtUpdateDateAndHour.setText(android.text.format.DateFormat\n\t\t\t\t.getDateFormat(this).format(mCalendar.getTime())\n\t\t\t\t+ \" \"\n\t\t\t\t+ functions.getTimeFromDate(mCalendar.getTime()));\n\t}", "@Override\n protected void onSaveInstanceState(@NonNull Bundle outState) {\n if (txtv_start_date != null) {\n outState.putString(KEY_START_DATE, txtv_start_date.getText().toString());\n }\n // save the current specified end date from the UI\n if (txtv_end_date != null) {\n outState.putString(KEY_END_DATE, txtv_end_date.getText().toString());\n }\n super.onSaveInstanceState(outState);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n txtdate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }", "private void setDueDateView(){\n mDueDate.setText(mDateFormatter.format(mDueDateCalendar.getTime()));\n }", "private void updateText() {\n updateDateText();\n\n TextView weightText = findViewById(R.id.tvWeight);\n TextView lowerBPText = findViewById(R.id.tvLowerBP);\n TextView upperBPText = findViewById(R.id.tvUpperBP);\n\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n\n double weight = mUser.weight.getWeightByDate(mDate.getTime());\n int upperBP = mUser.bloodPressure.getUpperBPByDate(mDate.getTime());\n int lowerBP = mUser.bloodPressure.getLowerBPByDate(mDate.getTime());\n\n weightText.setText(String.format(Locale.getDefault(), \"Paino\\n%.1f\", weight));\n lowerBPText.setText(String.format(Locale.getDefault(), \"AlaP\\n%d\", lowerBP));\n upperBPText.setText(String.format(Locale.getDefault(), \"YläP\\n%d\", upperBP));\n\n ((EditText)findViewById(R.id.etWeight)).setText(\"\");\n ((EditText)findViewById(R.id.etLowerBP)).setText(\"\");\n ((EditText)findViewById(R.id.etUpperBP)).setText(\"\");\n }", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "public void run() {\n txtSpclDate.requestFocus();\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "public void updateTextLabel() {\n waktu.setText(dateFormat.format(c.getTime()));\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n startshowDate(arg1, arg2+1, arg3);\n //endshowDate(arg1, arg2+1, arg3);\n }", "String getStartDate();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDate now = new Date();\n\t\t\t\tString ss = DateFormat.getDateTimeInstance().format(now);\n\t\t\t\tlblDate.setText(ss);\n\t\t\t}", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "public void setStartDate(Date s);", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "private void updateLabel() {\n String myFormat = \"EEE, d MMM yyyy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateText.setText(sdf.format(myCalendar.getTime()));\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n cal.set(year, monthOfYear, dayOfMonth);\n\n edt.setText(dateFormatter.format(cal.getTime()));\n\n }", "java.lang.String getStartDate();", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public TelaEntradaProduto() {\n initComponents();\n data = new Date(System.currentTimeMillis());\n SimpleDateFormat formatador = new SimpleDateFormat(\"dd/MM/yyyy\");\n JTFdata.setText(formatador.format(data));\n }", "public String getStartDate();", "@Override\r\n public void onDateSet(DatePicker view, int year, int monthOfYear,\r\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\r\n myCalendar.set(Calendar.MONTH, monthOfYear);\r\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\r\n\r\n int s=monthOfYear+1;\r\n txt_date.setText(dayOfMonth+\"-\"+s+\"-\"+year);\r\n\r\n\r\n\r\n\r\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n ETdateFrom.setText(new StringBuilder().append(arg3).append(\"-\")\n .append(arg2+1).append(\"-\").append(arg1));\n }", "private void updateDatedeparture() {\n String myFormat = \"MM/dd/yy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);\n\n departureDate.setText(sdf.format(myCalendar.getTime()));\n }", "void showDate()\n {\n Date d=new Date();\n SimpleDateFormat s=new SimpleDateFormat(\"dd-MM-yyyy\");\n date.setText(s.format(d));\n }", "private void updateDisplay() {\r\n\t\tbtnBirthDate.setText(new StringBuilder()\r\n\t\t// Month is 0 based so add 1\r\n\t\t\t\t.append(mMonth + 1).append(\"-\").append(mDay).append(\"-\").append(mYear).append(\" \"));\r\n\t}", "@Override\n public void onDateSet(DatePickerDialog view, int year, int monthOfYear, int dayOfMonth,int yearEnd, int monthOfYearEnd, int dayOfMonthEnd) {\n tglawal = year+\"-\"+(++monthOfYear)+\"-\"+dayOfMonth;\n tglakhir = yearEnd+\"-\"+(++monthOfYearEnd)+\"-\"+dayOfMonthEnd;\n String date = \"Anda Memilih Tanggal dari - \"+dayOfMonth+\"/\"+(++monthOfYear)+\"/\"+year+\" Hingga \"+dayOfMonthEnd+\"/\"+(++monthOfYearEnd)+\"/\"+yearEnd;\n //mengatur textview dengan string tanggal\n dateTextView.setText(date);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n ((EditText) findViewById(R.id.editTextRecipeLastEaten)).setText(dayOfMonth + \"/\" + (month+1) + \"/\" +year);\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, dayOfMonth);\n\n dateLastEaten = calendar.getTime();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n txtDate.setText(dayOfMonth + \"-\"\n + (monthOfYear + 1) + \"-\" + year);\n\n }", "public void onClick(View v) {\n\t\t \tint days = 0;\n\t\t \ttry {\n\t\t \tdays = Integer.valueOf(WorkingDays.getText().toString());\n\t\t \tdays = days + 1;\n\t\t\t\tWorkingDays.setText(String.format(\"%d\", days));\n\t\t \t} catch (Throwable t) {\n//\t\t\t\t\tLog.e(TAG, t.getMessage());\n\t\t\t\t}\n\t\t \t\n\t\t \t\n\t\t\t\tcal.set(StartDate.getYear(), StartDate.getMonth(), StartDate.getDayOfMonth());\n\t\t\t\tcal= weekendOffset(cal);\n\t\t Calendar updatedc;\n\t\t\t\ttry {\n\t\t\t\t\tprojectdays = Integer.valueOf(WorkingDays.getText().toString());\n\t\t\t\t\tif(projectdays!=0)\n\t\t\t\t\t {\n\t\t\t\t\t updatedc = compute_day_date(cal,projectdays); \n\t\t\t\t\t Result.setText(String.format(\"%1$tA, %1$td %1$tB %1$ty\", updatedc));\n\t\t\t\t\t }\n\t\t\t\t\telse // 0 days is not a valid entry\n\t\t\t\t\t {\n\t\t\t\t\t\tWorkingDays.setText(\"1\");\n\t\t\t\t\t }\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tLog.e(TAG, t.getMessage());\n\t\t\t\t}\n\t\t }", "@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\n }", "private void prepareInformation() {\r\n TextView textDate = findViewById(R.id.textDate);\r\n String date = event.getStartDateFormatted() + \" - \" + event.getEndDateFormatted();\r\n textDate.setText(date);\r\n\r\n TextView textNumber = findViewById(R.id.textNumber);\r\n textNumber.setText(event.contactNumber);\r\n\r\n TextView textWebsite = findViewById(R.id.textWebsite);\r\n textWebsite.setText(event.homePage);\r\n\r\n TextView textMail = findViewById(R.id.textMail);\r\n textMail.setText(event.mail);\r\n\r\n TextView textDescription = findViewById(R.id.textDescription);\r\n textDescription.setText(event.description);\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startYear = year;\n startMonth = monthOfYear + 1;\n startDay = dayOfMonth;\n try {\n dateChoisie = df.parse(String.valueOf(startYear + \"-\" + startMonth + \"-\" + startDay));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.e(\"DATE CHOISIE\",df.format(dateChoisie));\n switch (v.getId()){\n case R.id.buttonDateDebut:\n editDateDebut.setText(df.format(dateChoisie));\n break;\n case R.id.buttonDateFin:\n editDateFin.setText(df.format(dateChoisie));\n break;\n }\n }", "@Override\r\n\tpublic void dateDialogCallBack(String date) {\n\t\tnoteGlobal.dateString=date;\r\n\t\tnoteGlobal.getPlan(date);\r\n\t\tdateTextView.setText(date);\r\n\t\tdateString = date;\r\n\t\taddPlan_View();\r\n\t}", "@Override\n public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n //melakukan set calendar untuk menampung tanggal yang dipilih\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n //textview berubah menyesuaikan ketika sudah memilih tanggal\n txtview_date_result.setText(\"Date : \"+date_format.format(newDate.getTime()));\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_start_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday)+\"\" );\n }", "@Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) \n\t\t\t\t\t{\n\t\t\t\t\t\tstartdate.setText(String.format(\"%02d\",dayOfMonth) + \"/\" +String.format(\"%02d\",(monthOfYear + 1)) + \"/\" + year); \n\t\t\t\t\t}", "public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int month, int day) {\n DateFormatSymbols dateFormatSymbols = new DateFormatSymbols();\n String dateString = dateFormatSymbols.getMonths()[month] + \" \" + day + \", \" + year;\n mStudentBirthdateTextView.setText(dateString);\n\n // Save the date as a long\n try {\n String dateStringForStorage = String.valueOf(day) + \"/\"\n + String.valueOf(month + 1) + \"/\"\n + String.valueOf(year);\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = sdf.parse(dateStringForStorage);\n\n mStudentBirthdate = date.getTime();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n String myFormat = \"dd/MM/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n date_text.setText(sdf.format(myCalendar.getTime()));\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n String myFormat = \"dd/MM/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n start_Journey_Date_ET.setText(sdf.format(myCalendar.getTime()));\n\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n String currentdate = String.valueOf(dayOfMonth);\n if (currentdate.toString().length() == 1) {\n currentdate = \"0\" + currentdate;\n Log.e(\"currentMinutes\", \"currentdate-->\" + currentdate);\n }\n\n String currentmonth = String.valueOf(monthOfYear + 1);\n if (currentmonth.toString().length() == 1) {\n currentmonth = \"0\" + currentmonth;\n Log.e(\"currentMinutes\", \"currentMinutes-->\" + currentmonth);\n }\n\n tvStartDate.setText(currentdate + \"/\" + currentmonth + \"/\" + year);\n // et_start_date.setText((monthOfYear + 1) + \"/\" + dayOfMonth + \"/\" + year);\n\n msaveyear = year;\n msavemonth = Integer.parseInt(currentmonth) - 1;\n msaveday = Integer.parseInt(currentdate);\n\n myear = year;\n mmonth = Integer.parseInt(currentmonth) - 1;\n mday = Integer.parseInt(currentdate);\n }", "private void updateDateHeading(Calendar startDate) {\r\n TextView textViewDateHeading = findViewById(R.id.tv_current_heading);\r\n\r\n String dateHeading = \"\";\r\n SimpleDateFormat dateFormat;\r\n\r\n // Check if endDate is today, so either today or this week is displayed\r\n Calendar today = Calendar.getInstance();\r\n if((endDate.get(Calendar.DAY_OF_YEAR) == today.get(Calendar.DAY_OF_YEAR))\r\n && (endDate.get(Calendar.YEAR) == today.get(Calendar.YEAR))) {\r\n if(dataType.equals(\"NON-SED\")) {\r\n dateHeading = getString(R.string.day_heading_today);\r\n } else {\r\n dateHeading = getString(R.string.week_heading_this_week);\r\n }\r\n } else { // not today or this week\r\n if(dataType.equals(\"NON-SED\")) {\r\n dateFormat = new SimpleDateFormat(getString(R.string.day_heading_date_format));\r\n dateHeading = dateFormat.format(endDate.getTime());\r\n } else {\r\n dateFormat = new SimpleDateFormat(getString(R.string.week_heading_date_format));\r\n dateHeading = getString(R.string.week_heading_with_dates,\r\n dateFormat.format(startDate.getTime()),\r\n dateFormat.format(endDate.getTime()));\r\n }\r\n }\r\n\r\n textViewDateHeading.setText(dateHeading);\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n int mMonth = month + 1;\n String bydate = year + \"-\" + mMonth + \"-\" + day;\n mIdTvMoonatCenterShortLine.setText(bydate);\n\n List<SleepDataInfo> all = manager.findAllSleep();\n SleepDataInfo sleepDataInfo_total = manager.findSleepDataInfo(SPUtil.getUserName(getApplication()), bydate);\n RefreshView(sleepDataInfo_total); /*选择日期后刷新ui*/\n }", "@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException 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\n\t\t\t\t\t\t}", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n\n\n myear = selectedYear;\n mmonth = selectedMonth;\n mday = selectedDay;\n\n // set selected date into textview\n /* tvDisplayDate.setText(new StringBuilder().append(mmonth + 1)\n .append(\"-\").append(mday).append(\"-\").append(myear)\n .append(\" \"));*/\n\n Log.e(\"newdate\", \"onDateSet: new date shw--> \" + new StringBuilder().append(mmonth)\n .append(\"-\").append(mday).append(\"-\").append(myear)\n .append(\" \"));\n\n String currentdate = String.valueOf(mday);\n if (currentdate.toString().length() == 1) {\n currentdate = \"0\" + currentdate;\n Log.e(\"currentMinutes\", \"currentdate-->\" + currentdate);\n }\n\n String currentmonth = String.valueOf(mmonth + 1);\n if (currentmonth.toString().length() == 1) {\n currentmonth = \"0\" + currentmonth;\n Log.e(\"currentMinutes\", \"currentMinutes-->\" + currentmonth);\n }\n\n tvEndDate.setText(currentdate + \"/\" + currentmonth + \"/\" + myear);\n\n myear = msaveyear;\n mmonth = msavemonth;\n mday = msaveday;\n\n }", "void showdate(){\n \n Date d = new Date();\n SimpleDateFormat s = new SimpleDateFormat(\"yyyy-MM-dd\");\n jLabel4.setText(s.format(d));\n}", "void setStartDate(Date startDate);", "private void setUpdatedDateAndTime() {\n // Calendar whose Date object will be converted to a readable date String and time String\n // initially set to the current date and time\n Calendar updatedCalendar = Calendar.getInstance();\n updatedCalendar.clear();\n // subtract 1 because Calendar month numbering is 0-based, ex. January is 0\n updatedCalendar.set(UPDATED_YEAR, UPDATED_MONTH-1, UPDATED_DAY, UPDATED_HOUR, UPDATED_MINUTE);\n\n Date updatedTime = updatedCalendar.getTime();\n time = DateFormat.getTimeInstance(DateFormat.SHORT).format(updatedTime);\n // format date to show day of week, month, day, year\n date = DateFormat.getDateInstance(DateFormat.FULL).format(updatedTime);\n }", "private void updateLabel() {\n String myFormat = \"dd-MM-YYYY\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateInput.setText(sdf.format(myCalendar.getTime()));\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Calendar c = Calendar.getInstance();\n c.set(Calendar.YEAR, year);\n c.set(Calendar.MONTH, month);\n c.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n String currentDateString = DateFormat.getDateInstance(DateFormat.FULL).format(c.getTime());\n\n if (datePickerType != null) {\n if (datePickerType.equals(\"startDatePicker\")) {\n TextView textView = findViewById(R.id.textViewDatePicker);\n textView.setText(currentDateString);\n startDate = c;\n }\n else if (datePickerType.equals(\"endDatePicker\")) {\n TextView textView = findViewById(R.id.textViewDatePickerEndDate);\n textView.setText(currentDateString);\n endDate = c;\n }\n }\n }", "public String getStartDate() {\n\t\treturn startDate.getText();\n\t}", "private void refreshDateEntryOfTheMarket1(Calendar dateEntryOfTheMarket1){\n mEntryDate1.setText(displayDateFormatter.format(dateEntryOfTheMarket1.getTime()));\n }", "public registration() {\n initComponents();\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date d = new Date();\n String dt = df.format(d);\n tdate.setText(dt);\n \n }", "public void updateDate()\n\t{\n\t\t// Translate year, month and day into a Date object.\n\t\tmDate = new GregorianCalendar(mYear, mMonth, mDay, mHour, mMin).getTime();\n\t\t\n\t\t// Update arguments to preserve selected value on rotation.\n\t\tgetArguments().putSerializable(CrimeFragment.EXTRA_DATE, mDate);\n\t}", "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 }", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public Date getStart() {\n return start;\n }", "@Override\n\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\t\t\t\t int dayOfMonth) {\n\t\t\t\tmyCalendar.set(Calendar.YEAR, year);\n\t\t\t\tmyCalendar.set(Calendar.MONTH, monthOfYear);\n\t\t\t\tmyCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n\t\t\t\tdateEdittext.setText(sdf.format(myCalendar.getTime()));\n\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(Calendar.YEAR, year);\n currentDate.set(Calendar.MONTH, monthOfYear);\n currentDate.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n //updateLabel();\n SimpleDateFormat sdf1 = new SimpleDateFormat(DATE_FORMAT_calender);\n Log.e(\"data123456789\",sdf1.format(currentDate.getTime()));\n updateAttendanceDetails();\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "private void refreshDateSale1(Calendar dateSale1){\n mSaleDate1.setText(displayDateFormatter.format(dateSale1.getTime()));\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n ETdateTo.setText(new StringBuilder().append(arg3).append(\"-\")\n .append(arg2+1).append(\"-\").append(arg1));\n }", "private void updateDisplay(int year, int month, int day) {\n\t\tDate = new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString();\r\n\t\tSystem.out.println(\"BirthDate==>\" + Date);\r\n\t\t btnBirthDate.setText(fun.getBirthDate(String.valueOf(month+1),String.valueOf(day),String.valueOf(year)));\r\n\t\t//btnBirthDate.setText(new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString());\r\n\t\t// Date=new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString();\r\n\t}", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public String getStartDate() {\n return startDate;\n }" ]
[ "0.6810126", "0.6725245", "0.65979594", "0.65857506", "0.65591687", "0.65537214", "0.6511159", "0.6485707", "0.6472049", "0.6438129", "0.6434693", "0.6405474", "0.6368971", "0.6331852", "0.6299523", "0.6256162", "0.6214406", "0.6183942", "0.6175227", "0.61579233", "0.614799", "0.6122793", "0.61106414", "0.61051476", "0.61026895", "0.60973936", "0.6093563", "0.60927045", "0.60874367", "0.6079531", "0.6072438", "0.6066351", "0.6063372", "0.6056477", "0.60527885", "0.60452735", "0.6019546", "0.6009485", "0.60061896", "0.60029966", "0.59863317", "0.5976822", "0.5974706", "0.5952451", "0.59438246", "0.5931917", "0.5929014", "0.5927465", "0.592711", "0.59154457", "0.59149396", "0.5910795", "0.5910697", "0.5907832", "0.5895853", "0.58934397", "0.5891807", "0.5889316", "0.5885918", "0.5884996", "0.5883807", "0.58747804", "0.5873816", "0.5873136", "0.5871664", "0.58709717", "0.5870084", "0.5860422", "0.5851562", "0.5846385", "0.58459896", "0.584474", "0.58392745", "0.58363324", "0.58267766", "0.5819029", "0.58189875", "0.58175033", "0.58167666", "0.58153445", "0.58113456", "0.58033884", "0.5799232", "0.5788193", "0.5788069", "0.5784208", "0.57834643", "0.57773256", "0.5776935", "0.5770879", "0.5768523", "0.5768215", "0.57665205", "0.57542753", "0.57535076", "0.5752969", "0.57499444", "0.5748684", "0.5745657", "0.57442355" ]
0.65226156
6
System.out.println("findInternalProducts: " + Thread.currentThread().getName());
public Observable<SearchResult> findInternalProducts(String query) { Observable<Long> productIndexObservable = getProductIndexObservable(query); return productIndexObservable .flatMap(this::productDetails); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "private void getAllProducts() {\n }", "Product getPProducts();", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}", "@Test\n public void testGetProductInfo() throws Exception {\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "String getTheirProductId();", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public void softwareWareResources() {\n\t\tSystem.out.println(\"softwareResources\");\r\n\t}", "@Override\n\t\tpublic List<ProductInfo> getProducts() {\n\t\t\treturn TargetProducts;\n\t\t}", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "public static void main(String[] args)\n {\n Semaphore salesSem = new Semaphore(1);\n Semaphore invSem = new Semaphore(1);\n Inventory inventory = new Inventory();\n inventory.initiateProducts();\n\n System.out.println(inventory.toString());\n\n List<Sale> sales = new ArrayList<>();\n\n long startTime = System.currentTimeMillis();\n for(int i = 0; i < 250; i++)\n {\n sales.add(new Sale(inventory, salesSem, invSem));\n sales.get(i).start();\n }\n\n for(Sale s : sales) {\n try {\n s.getThread().join();\n } catch (InterruptedException ex) {\n System.out.println(\"Interrupted!\" + ex.getMessage());\n }\n }\n long stopTime = System.currentTimeMillis();\n\n System.out.println(inventory.toString());\n\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Time consumed: \" + elapsedTime + \"ms.\");\n }", "@Override\n\tpublic String getServletInfo()\n\t{\n\t\treturn \"C.R.U.D. Products\";\n\t}", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "@Override\n\t@Transactional\n\tpublic List<UploadProducts> getProductInfoForDeviceTracking(UploadProducts productDetails) {\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- Start\");\n\t\tList<UploadProducts> productlist=new ArrayList<UploadProducts>();\n\t\ttry {\n\t\t\tproductlist=uploadProductDAO.getProductInfoForDeviceTracking(productDetails);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\t\t}\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- End\");\n\t\treturn productlist;\n\t}", "com.hps.july.persistence.Worker getTechStuff() throws java.rmi.RemoteException, javax.ejb.FinderException;", "public void displayProducts() {\r\n\t\tSystem.out.println(\"All Products : \");\r\n\t\tfor(int i=0; i<currentBranchNumber; ++i) \r\n\t\t\tbranchs[i].displayProducts();\r\n\t}", "public void getSystemInfo(){\n //get system info\n System.out.println(\"System Information\");\n System.out.println(\"------------------\");\n System.out.println(\"Available Processors: \"+Runtime.getRuntime().availableProcessors());\n System.out.println(\"Max Memory to JVM: \"+String.valueOf(Runtime.getRuntime().maxMemory()/1000000)+\" MB\");\n System.out.println(\"------------------\");\n System.out.println();\n }", "@Test\n void searchProduct() {\n List<DummyProduct> L1= store.SearchProduct(\"computer\",null,-1,-1);\n assertTrue(L1.get(0).getProductName().equals(\"computer\"));\n\n List<DummyProduct> L2= store.SearchProduct(null,\"Technology\",-1,-1);\n assertTrue(L2.get(0).getCategory().equals(\"Technology\")&&L2.get(1).getCategory().equals(\"Technology\"));\n\n List<DummyProduct> L3= store.SearchProduct(null,null,0,50);\n assertTrue(L3.get(0).getProductName().equals(\"MakeUp\"));\n\n List<DummyProduct> L4= store.SearchProduct(null,\"Fun\",0,50);\n assertTrue(L4.isEmpty());\n }", "@Test\n public void testLookupPoolsProvidingProduct() {\n Product parentProduct = TestUtil.createProduct(\"1\", \"product-1\");\n Product childProduct = TestUtil.createProduct(\"2\", \"product-2\");\n productCurator.create(childProduct);\n productCurator.create(parentProduct);\n \n Set<String> productIds = new HashSet<String>();\n productIds.add(childProduct.getId());\n \n Pool pool = TestUtil.createPool(owner, parentProduct.getId(),\n productIds, 5);\n poolCurator.create(pool);\n \n \n List<Pool> results = poolCurator.listAvailableEntitlementPools(null, owner, \n childProduct.getId(), false);\n assertEquals(1, results.size());\n assertEquals(pool.getId(), results.get(0).getId());\n }", "String getProduct();", "void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }", "void printEditionInformation();", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "List<Product> retrieveProducts();", "public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }", "public static void printInfo(){\n }", "@Test\n\tpublic void searchForProductLandsOnCorrectProduct() {\n\t}", "public String productList(ProductDetails p);", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "public static void main(String[] args) throws InterruptedException {\n signin();\n\n\n //test case 4\n searchProduct();\n //test case 5:\n //searchInvalidProduct();\n\n }", "public void printData () {\n System.out.println (products.toString ());\n }", "public static void main(String[] args) {\n ProductsDAO pdao = new ProductsDAO();\n\n //System.out.println(odao.findOrderById(new BigDecimal(112968)).getProduct());\n Products p = pdao.findBroductsById(\"2A45C\");\n System.out.println(p);\n p.getOrders().forEach(System.out::println);\n }", "private void get_products_search()\r\n\r\n {\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n AppConfig.SALES_RETURN_PRODUCT_LIST + \"[\" + Chemist_ID + \",\"+client_id +\"]\", this, true);\r\n\r\n// MakeWebRequest.MakeWebRequest(\"out_array\", AppConfig.SALES_RETURN_PRODUCT_LIST, AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n// null, this, false, j_arr.toString());\r\n //JSONArray jsonArray=new JSONArray();\r\n }", "public void printClientList() {\n uiService.underDevelopment();\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public void runDemo()\n {\n demoAddProduct(); // test we can add items to the list (test printing all the list)\n demoRemoveProduct(); // this will delete the product in the list, the list now has 0 items\n demoRenameProduct(); // this will add a product to the list and rename it, the list now has 1 items\n demoLowStock(); // this test finds a product which is low on stock\n demoFindId(); // this test does not add any products to the list, the \"findProduct\" method will search through all the list of products\n demoGetMatchingName(); // this test does not add any products to the list, the \"getMatchingName\" method will search through all the list of products\n demoDeliver(); // this test does not add any products to the list, its using the product added in the rename test \n demoSellProducts(); // this test does not add any products to the list, its using the product added in the rename test \n demoAddProductWhenTheresAlreadyOne(); // this test attempts to add a product which is already listed\n demoSellProductsWhensStocksTooLow(); // this test is to sell a product when there isn't enough stock\n demoRemoveProductWhichDoesNotExist(); // this test is to remove a product that doesn't exist\n }", "public static void main(String[] args) {\n ExecutorService threadPool = Executors.newCachedThreadPool();\n\n try{\n for (int i = 0; i < 10; i++) {\n threadPool.execute(() ->{\n System.out.println(Thread.currentThread().getName()+\"\\t 办理业务\");\n });\n //try {TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) {e.printStackTrace();}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally {\n threadPool.shutdown();\n }\n\n\n\n }", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "@Override\n public String getProductName() {\n return ProductName.REFLECTIONS_II_BOOSTER_PACK;\n }", "public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}", "public static void print() {\n System.out.println(threadLocal.get().toString());\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "Object getProduct();", "void print() {\n for (Process process : workload) {\n System.out.println(process);\n }\n }", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "public Collection getThreads();", "@Override\n\tpublic java.lang.String getParallelModule() {\n\t\treturn _scienceApp.getParallelModule();\n\t}", "public List<Product> getProducts();", "public List<Product> getProducts();", "private void search(String product) {\n // ..\n }", "List<JModuleInfo> queryAll();", "public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }", "public void printProcessQueue()\n\t{\n\t\tProcesses.print();\n\t}", "List<ProductInfo> findUpAll();", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "List<Product> getProductsList();", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "public static void main(String[] args) {\nLibraryServis servise = new CityLibraryService();\r\nCatalog bookCatalog = servise.getMainCatalog();\r\nviewCatalogInfo(bookCatalog);\r\n\r\n\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "@Test\n\tpublic void Products_20869_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to product catalog create page\n\t\tsugar().productCategories.navToListView();\n\t\tsugar().navbar.selectMenuItem(sugar().productCategories, \"createProductCatalog\");\n\n\t\t// Verify Product Category created above is listed in Search and Select Product Categories\" list.\n\t\tVoodooSelect productCategory = (VoodooSelect)sugar().productCatalog.createDrawer.getEditField(\"productCategory\");\n\t\tproductCategory.click();\n\t\tproductCategory.selectWidget.getControl(\"searchForMoreLink\").click();\n\t\t// TODO: VOOD-1162 - Need lib support for search & select Team drawer\n\t\tnew VoodooControl(\"span\", \"css\", \".search-and-select .list.fld_name\").assertElementContains(sugar().productCategories.getDefaultData().get(\"name\"),true);\n\t\tsugar().productCategories.searchSelect.cancel();\n\t\tsugar().productCatalog.createDrawer.cancel();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "public Product[] getConsumerVisibleProducts () {\n return null;\n }", "long getTotalProductsCount();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "private void cmdInfoOpStack() throws NoSystemException {\n MSystem system = system(); \n Deque<MOperationCall> callStack = system.getCallStack();\n int index = callStack.size();\n\t\tfor (MOperationCall call : callStack) {\n\t\t\tLog.print(index-- + \". \");\n\t\t\tLog.println(call.toString() + \" \" + call.getCallerString());\n\t\t}\n\t\tif (callStack.isEmpty()) {\n\t\t\tLog.println(\"no active operations.\");\n\t\t}\n }", "public static void main(String[] args) {\n ProductService service = new ProductService();\n service.sortByPriceAndRating();\n service.view();\n System.out.println(\"==================\");\n System.out.println(service.filterByName(\"sofa\"));\n\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public String getNameProd() {\n\t\treturn nameProd;\n\t}", "private void printAvailableBooks() {\n\t\t\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public final synchronized String list()\r\n { return a_info(true); }", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "public int getThreadUsed();", "public boolean printUsedBy() {\n return !matchMajorVersionOnly;\n }", "@Override\n\tpublic List<ProductInfo> getProducts() {\n\t\treturn shoppercnetproducts;\n\t}", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "private void getloggersStatus() { \n\t\tAppClientFactory.getInjector().getSearchService().isClientSideLoggersEnabled(new SimpleAsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tAppClientFactory.setClientLoggersEnabled(result);\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void test() {\n String name = AddressService.class.getName();\n System.out.print(name + \"xxxx\");\n Logs.d(name);\n }", "private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }", "@Override\n\tpublic int run() {\n\t\tSystem.out.println(\"Id das prateleiras existentes:\" + shelfBusiness.getAllIds());\n\t\t\n\t\tSystem.out.println(shelfBusiness.consultar());\n\t\t\n\t\t//TODO introduzir info count produts - nao funciona\n//\t\tSystem.out.println(\"Quantidade de produtos\" + productsIds.lenght);\n\n\n\t\treturn 1;\n\t}", "public void clientInfo() {\n uiService.underDevelopment();\n }", "public static void printExecutionTime() {\n long endTime = System.currentTimeMillis();\n\n logger.info(\"Completed Execution in: \" + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + \" seconds.\");\n }", "private static void printFunctionCalls() {\n dvm.printFunctionCalls();\n }", "public long getThreads() { return threads; }", "static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }", "@Test\n public void test4(){\n System.out.println(Runtime.getRuntime().availableProcessors());\n }", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}", "@Test\n public void selectAll() {\n List<ProductCategory>productCategories=categoryService.selectAll();\n for (ProductCategory productCategory:productCategories\n ) {\n System.out.println(productCategory);\n }\n }", "public void printPackagePowerUsage() {\n }", "static void jinfo() {\n\n }", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }", "public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }" ]
[ "0.5850681", "0.56485856", "0.5532794", "0.54994076", "0.5284315", "0.526221", "0.5254483", "0.5174347", "0.51564074", "0.5142737", "0.51135904", "0.5108162", "0.51021427", "0.50920045", "0.507778", "0.5036003", "0.50329375", "0.5032575", "0.50293726", "0.5007744", "0.49986202", "0.49901897", "0.49651664", "0.49572736", "0.49435845", "0.49381036", "0.49248448", "0.49193627", "0.4885018", "0.48650864", "0.48614115", "0.4856929", "0.48538452", "0.48469174", "0.4840147", "0.48340058", "0.4833768", "0.48296222", "0.48243526", "0.48229927", "0.4821375", "0.4819432", "0.48112863", "0.48105076", "0.4808722", "0.48078713", "0.48053536", "0.47953576", "0.4794445", "0.47870484", "0.47787863", "0.47703236", "0.47703236", "0.4766805", "0.4764599", "0.4758626", "0.47475958", "0.47468185", "0.47404614", "0.47404614", "0.47384354", "0.47337568", "0.47326386", "0.47326386", "0.47266844", "0.47241083", "0.47135386", "0.47092113", "0.47073936", "0.4703352", "0.4703352", "0.4703352", "0.47003686", "0.46950948", "0.46948934", "0.46947116", "0.46882847", "0.46856216", "0.4680993", "0.46795407", "0.46788138", "0.4677347", "0.4675902", "0.46703413", "0.46702585", "0.46700445", "0.4669823", "0.46683446", "0.4661846", "0.46603316", "0.46596092", "0.46573636", "0.46554786", "0.4648835", "0.4648549", "0.4648376", "0.46455735", "0.46446654", "0.46443006", "0.46428838", "0.46419063" ]
0.0
-1
System.out.println("productDetails: " + Thread.currentThread().getName());
private Observable<SearchResult> productDetails(Long productId) { Observable<Product> productObservable = retrieveProductFromProductSystem(productId); Observable<Long> quantityObservable = retrieveQuantityFromInventoryService(productId); return Observable.zip(productObservable, quantityObservable, SearchResult::new); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "public String getProdDetailsName(){\n String prodName = productDetailsName.toString();\n return prodName;\n }", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "public static void print() {\n System.out.println(threadLocal.get().toString());\n }", "public void info()\n {\n System.out.println(toString());\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public String getThread()\n\t{\n\t\treturn this.thread;\n\t}", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "private void printThreadingNotes(String currentMethodLabel) {\n System.out.println(\"\\n###########################################\");\n System.out.println(\"current method = \" + currentMethodLabel);\n System.out.println(\"In application thread? = \" + Platform.isFxApplicationThread());\n System.out.println(\"Current system time = \" + java.time.LocalDateTime.now().toString().replace('T', ' '));\n }", "@Override\n\tpublic String getServletInfo()\n\t{\n\t\treturn \"C.R.U.D. Products\";\n\t}", "@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }", "public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}", "@Override\n public void run() {\n\n System.out.println(ThreadLocalInstance.getInstance());\n }", "@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}", "public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }", "public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public String getProductName() {\r\n return productName;\r\n }", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public String getCurrentThreadTimeInfo() {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\tif(!bean.isCurrentThreadCpuTimeSupported())\n\t\t\treturn timeInfo;\n\t\tlong userTime = bean.getCurrentThreadUserTime();\n\t\tlong cpuTime = bean.getCurrentThreadCpuTime();\n\n\t\tsb.append(userTime).append(\"#\").append(cpuTime);\n\t\ttimeInfo = sb.toString();\n//\t\tSystem.out.println(\"lib: \" + timeInfo);\n\t\treturn timeInfo;\n\t}", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public void printData () {\n System.out.println (products.toString ());\n }", "public String getThreadName() {\n return threadName;\n }", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public String getProduct() {\r\n return this.product;\r\n }", "public void printTask() {\r\n\t\tSystem.out.println(\"ID: \" + this.id + \" | Description: \" + this.description + \" | Processor: \" + this.processor);\r\n\t\tSystem.out.println(\"Status: \" + this.status + \" | Fälligkeitsdatum: \" + this.formatedDueDate);\r\n\t\tSystem.out.println(\"----------\");\r\n\t}", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "public static void printTicketDetails(Ticket ticket){\n System.out.println(ticket.statusOfTicket());\n }", "public String getProduct() {\n return this.product;\n }", "public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }", "@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}", "public String getThreadName() {\n return null;\n }", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "@Override\n\tpublic void run() {\n\t\tfor(int i = 0 ; i < 5; i++) {\n\t\t\tSystem.out.println(getName());\n\t\t\t//currentThread(); //Thread 객체 참조를 리턴\n\t\t\t\n\t\t}\n\t}", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "public static void printInfo(){\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public String info() {\n return name();\n }", "public String info() {\n return name();\n }", "public String getProductName() {\r\n\t\treturn productName;\r\n\t}", "@Override\n\tpublic String call() throws Exception {\n\t\t\n\t\tString name = Thread.currentThread().getName();\n\t\tSystem.out.println(name + \" is running...\");\n\t\tlong s = getRandomSleep();\n\t\tSystem.out.println(name + \" will sleep \" + s);\n\t\tThread.sleep(s);\n\t\treturn name + \" \"+runtimeFmt();\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public String getProduct()\n {\n return product;\n }", "public String getInfo(){\n return \" name: \" + this.name;\n }", "public String product() {\n return this.product;\n }", "java.lang.String getDetails();", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "public static void printExecutionTime() {\n long endTime = System.currentTimeMillis();\n\n logger.info(\"Completed Execution in: \" + (endTime - ClientExecutorEngine.getStartTime())/1000.0 + \" seconds.\");\n }", "public void getSystemInfo(){\n //get system info\n System.out.println(\"System Information\");\n System.out.println(\"------------------\");\n System.out.println(\"Available Processors: \"+Runtime.getRuntime().availableProcessors());\n System.out.println(\"Max Memory to JVM: \"+String.valueOf(Runtime.getRuntime().maxMemory()/1000000)+\" MB\");\n System.out.println(\"------------------\");\n System.out.println();\n }", "protected String logInstanceName() {\n\t\treturn getClass().getName();\n\t}", "void getInfo() {\n\tSystem.out.println(\"My name is \"+name+\" and I am going to \"+school+\" and my grade is \"+grade);\n\t}", "public String getProductName() {\n\t\treturn productName;\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public String getPerformanceName()\r\n {\r\n return performanceName;\r\n }", "@Override\n\t@Transactional\n\tpublic List<UploadProducts> getProductInfoForDeviceTracking(UploadProducts productDetails) {\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- Start\");\n\t\tList<UploadProducts> productlist=new ArrayList<UploadProducts>();\n\t\ttry {\n\t\t\tproductlist=uploadProductDAO.getProductInfoForDeviceTracking(productDetails);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\t\t}\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- End\");\n\t\treturn productlist;\n\t}", "public String toString() {\n return \"appName=\" + _appName\n + \", readTimeout=\" + _readTimeout + \", poolSize=\" + _poolSize\n + \", numberOfOperations=\" + numOfOps + \", shutdown=\" + _shutdown;\n }", "public String getDetails() {\n return toString();\n }", "public String getLogDetails() {\r\n return logDetails;\r\n }", "@Override\n\tpublic ITrace getCurrentTrace() {\n\t\treturn tracePerThread.get();\n\t}", "public String getNameProd() {\n\t\treturn nameProd;\n\t}", "@Override \n public String toString() {\n return getName() + \"(\" + getClass().getName() + \")\";\n }", "public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\t}", "public ThreadingProfile getThreadingProfile()\n {\n return threadingProfile;\n }", "public void printDetails()\n {\n System.out.println(\"Name: \" + foreName + \" \"\n + lastName + \"\\nEmail: \" + emailAddress);\n }", "public void printLog() {\n Runnable runnable = new Runnable() \n\t{\n @Override\n public void run() \n\t {\n\t\tmainClass os=new mainClass();\n\t\tos.run();\t\t\t\n\t\t\t\t\n }\n };\n\tThread thread = new Thread(runnable);\n thread.start();\n }", "public String toString() {\n\t\treturn getClass().getName();\n\t}", "void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }", "public void test() {\n String name = AddressService.class.getName();\n System.out.print(name + \"xxxx\");\n Logs.d(name);\n }", "public static void main(String[] args) {\n ExecutorService threadPool = Executors.newCachedThreadPool();\n\n try{\n for (int i = 0; i < 10; i++) {\n threadPool.execute(() ->{\n System.out.println(Thread.currentThread().getName()+\"\\t 办理业务\");\n });\n //try {TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) {e.printStackTrace();}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally {\n threadPool.shutdown();\n }\n\n\n\n }", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "public java.lang.String getProduct() {\n return product;\n }", "public static void main(String[] args) {\n\r\n System.out.println(Thread.currentThread().getName());\r\n System.out.println(Thread.currentThread().getId());\r\n\r\n MyFirstThread helloThread1 = new MyFirstThread();\r\n MyFirstThread helloThread2 = new MyFirstThread();\r\n helloThread1.start();\r\n helloThread2.start();\r\n\r\n\r\n }", "String currentProduct() {\n if (PageFlowContext.getPolicy() != null && PageFlowContext.getPolicy().getProductTypeId() != null) {\n return PageFlowContext.getPolicy().getProductTypeId();\n } else {\n return \"\";\n }\n }", "public void carDetails() {\n\t\t\r\n\t}", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}", "public String toString(){\n return \"info\";\n }", "void printloadDetails(loadDetails iLoadDetails)\n {\n System.out.println(iLoadDetails.getLorryName());\n System.out.println(iLoadDetails.getEstateName());\n System.out.println(iLoadDetails.getDate());\n }", "public java.lang.String getProductName() {\n return productName;\n }", "public String getLogDetails() {\n return logDetails;\n }", "public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }", "public String getRunInfo(){\n return runner.getRunInfo();\n }", "public String getCurrentPrintJob()\n {\n return printerSimulator.getCurrentPrintJob();\n }" ]
[ "0.6583843", "0.64686435", "0.6366419", "0.632798", "0.6311851", "0.6191661", "0.61354065", "0.6132241", "0.60391325", "0.5984607", "0.59762025", "0.59468377", "0.5914183", "0.5876388", "0.5859423", "0.5829386", "0.58214253", "0.5766576", "0.569076", "0.56837165", "0.56836015", "0.5681946", "0.5660854", "0.56597155", "0.565096", "0.561482", "0.56144184", "0.5596324", "0.5596324", "0.5596324", "0.5582349", "0.5562679", "0.55442107", "0.5538404", "0.5536143", "0.5529523", "0.5522295", "0.5514608", "0.5511426", "0.5510163", "0.5498947", "0.5498947", "0.54954463", "0.54943335", "0.5488982", "0.54751885", "0.54696894", "0.54666823", "0.5466043", "0.5462882", "0.54561895", "0.5445678", "0.54393744", "0.54393744", "0.5439037", "0.5435187", "0.5431818", "0.5431451", "0.54219747", "0.5419084", "0.5418376", "0.5417107", "0.5415718", "0.540055", "0.5398308", "0.5396225", "0.5392449", "0.53890735", "0.5371158", "0.5371158", "0.53636813", "0.53515875", "0.5349794", "0.5346295", "0.5339849", "0.53335303", "0.5333414", "0.53283054", "0.53184617", "0.5315791", "0.5312238", "0.53089666", "0.53032637", "0.53027064", "0.5299201", "0.5298011", "0.5294711", "0.5294711", "0.5289347", "0.5289032", "0.5288829", "0.5284257", "0.5283309", "0.5278006", "0.5270559", "0.5263049", "0.52602357", "0.5259492", "0.52572674", "0.52528703", "0.52512896" ]
0.0
-1
System.out.println("toSearchResult: " + Thread.currentThread().getName());
private SearchResult toSearchResult(Merchant1Product product) { return new SearchResult(new Product(product.getIdentifier(), product.getOrigin()), product.getQuantity()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void searchStarted (Search search);", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public void search() {\r\n \t\r\n }", "List<SearchResult> search(SearchQuery searchQuery);", "public void onSearchStarted();", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "public static void printResults() {\n resultMap.entrySet().stream().forEach((Map.Entry<File, String> entry) -> {\n System.out.println(String.format(\"%s processed by thread: %s\", entry.getKey(), entry.getValue()));\n });\n System.out.println(String.format(\"processed %d entries\", resultMap.size()));\n }", "public void search() {\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "@Override\n\tpublic void search() {\n\t}", "void searchProbed (Search search);", "void searchFinished (Search search);", "@Override\n public String doSearchResult() {\n return null;\n }", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "@Test(dependsOnMethods=\"searchIngoogle\")\n public void captureTheResult() throws InterruptedException {\n driver.navigate().to(getURL);\n Thread.sleep(2000);\n String searchResult = Reusable_Library2.captureText(driver, \"//*[@id='result-stats']\", \"Search Results\");\n //split\n String[] arraySearch = searchResult.split(\" \");\n System.out.println(\"My search number is \" + arraySearch[1]);\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public static void main(String[] args) throws IOException{\n \n List<List<String>> results;\n String query = \"ADD QUERY OR CATEGORY FOR SEARCH\";\n \n //ADD USER ID WHO SEARCHES\n Long userId = 1;\n PersonalizedSearch searchObj = new PersonalizedSearch();\n \n final CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(\"elastic\",\"elastic\"));\n \n \n RestHighLevelClient client = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(\"localhost\",9200),\n new HttpHost(\"localhost\",9201))\n .setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n @Override\n public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder hacb) {\n return hacb.setDefaultCredentialsProvider(credsProvider);\n }\n }));\n \n /**\n * ---------COMMENT OUT ONE OF THE FOLLOWING TO DO A PERSONALIZED SEARCH FOR A SIGNED IN OR/AND AN ANONYMOUS USER--------\n */\n\n System.out.println(\"Starting collecting queryless/queryfull submissions...\");\n System.out.println(\"\");\n// searchObj.performQuerylessSearchWithPersonalization(client);\n// searchObj.performQueryfullSearchWithPersonalization(client);\n// results = searchObj.performPharm24PersonalizedQueryfullSearch(client, userId, query);\n// results = searchObj.performPharm24PersonalizedQuerylessSearch(client, userId, query);\n \n for(int i=0; i<results.size(); i++){\n for(int j = 0; j<results.get(i).size();j++){\n System.out.println(results.get(i).get(j));\n }\n System.out.println(\"-------RERANKED---------\");\n }\n\n System.out.println(\"\");\n System.out.println(\"I\\'m done!\");\n \n \n }", "void search();", "void search();", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public IScapSyncSearchResult[] getResults();", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public MultiThreadedTabuSearch() {}", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "SearchResult findNext(SearchResult result);", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "boolean getUseSearchResult();", "void showProcessList(TimelyResultProcessor resultProcessor);", "@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }", "@Override\n public void passSearchRequest(SearchReq searchReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (searchReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> searchResult = checkFilesInFileList(searchReq.getFileName(), node.getFileList());\n logMe(\"Received SEARCH for \\\"\" + searchReq.getFileName() + \"\\\" from \" + searchReq.getCred().getNodeIp() + \":\" + searchReq.getCred().getNodePort() + \" at \" + getCurrentTime());\n if (!searchResult.isEmpty()) {\n SearchRes searchRes = new SearchRes(searchReq.getSeqNumber(), searchResult.size(), searchReq.getCred(), searchReq.getHopCount(), searchResult);\n searchOk(searchRes);\n } else {\n //logMe(\"File is not available at \" + node.getCredential().getIp() + \" : \" + node.getCredential().getPort() + \"\\n\");\n if (searchReq.getHopCount() <= TTL) {\n searchReq.setHopCount(searchReq.incHops());\n List<NetworkDetails> StatTableSearchResult = checkFilesInStatTable(searchReq.getFileName(), node.getNetworkDetailsTable());\n // Send search request to stat table members\n for (NetworkDetails networkDetails : StatTableSearchResult) {\n if (networkDetails.getQuery().equals(searchReq.getFileName())) {\n Cred cred = networkDetails.getServedNode();\n node.incForwardedQueryCount();\n search(searchReq, cred);\n }\n }\n //TODO: Wait and see for stat members rather flooding whole routing table\n // Send search request to routing table members\n for (Cred cred : node.getRoutingTable()) {\n node.incForwardedQueryCount();\n if (search(searchReq, cred)) {\n break;\n }\n }\n } else {\n// logMe(\"Search request from\" + searchRequest.getCredential().getIp() + \":\" + searchRequest.getCredential().getPort() + \"is blocked by hop TTL\\n\");\n }\n }\n// Thread.currentThread().interrupt();\n }", "entities.Torrent.LocalSearchRequest getLocalSearchRequest();", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "@Override\n public void run() {\n\n System.out.println(ThreadLocalInstance.getInstance());\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n \n List<ResultDAO> retListPredLookUp = new ArrayList<ResultDAO>();\n List<ResultDAO> retListPredSearch = new ArrayList<ResultDAO>();\n List<ResultDAO> retListObj = new ArrayList<ResultDAO>();\n List<ResultDAO> retListSubj = new ArrayList<ResultDAO>();\n \n List<List<ResultDAO>> retList = new ArrayList<List<ResultDAO>>();\n List<ResultDAO> retListPred = new ArrayList<ResultDAO>();\n \n // initialize with some default values\n int topK = Constants.TOPK;\n \n // we just need two threads to perform the search\n ExecutorService pool = Executors.newFixedThreadPool(2);\n \n try {\n if (request.getParameter(\"topk\") != null) {\n topK = Integer.parseInt(request.getParameter(\"topk\"));\n }\n \n QueryEngine.setTopK(topK);\n \n String subject = request.getParameter(\"subject\");\n String predicate = request.getParameter(\"predicate\");\n String object = request.getParameter(\"object\");\n \n // This is simple search mode. just qyerying for terms\n if (!Constants.PREDICTIVE_SEARCH_MODE) {\n // fetch the answer terms\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n retList = webTupleProc.getRetList();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n\n // get the predicates \n retListPredSearch = webTupleProc.getRetListPredSearch();\n\n } else {\n if (!subject.equals(\"Subject\") && !subject.equals(\"\")) {\n retListSubj = QueryEngine.doSearch(subject);\n }\n if (!object.equals(\"Object\") && !object.equals(\"\")) {\n retListObj = QueryEngine.doSearch(object);\n }\n }\n \n } else { // This is advanced search mode. where the system tries to predict the best matches based on the\n // input combination\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n // get the subjects and objects\n retList = webTupleProc.getRetList();\n \n // get the predicates\n retListPredLookUp = webTupleProc.getRetListPredLookUp();\n retListPredSearch = webTupleProc.getRetListPredSearch();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n }\n \n }\n \n // set the request parameter for results display\n if (retListSubj.size() > 0) {\n request.setAttribute(\"matchingListSubj\", retListSubj);\n }\n if (retListObj.size() > 0) {\n request.setAttribute(\"matchingListObj\", retListObj);\n }\n if (retListPredLookUp.size() > 0) {\n request.setAttribute(\"matchingListPredLookup\", retListPredLookUp);\n }\n if (retListPredSearch.size() > 0) {\n request.setAttribute(\"matchingListPredSearch\", retListPredSearch);\n }\n \n // for resetting the text boxes\n request.setAttribute(\"subject\", subject);\n request.setAttribute(\"predicate\", predicate);\n request.setAttribute(\"object\", object);\n request.setAttribute(\"topk\", topK);\n \n // redirect to page\n request.getRequestDispatcher(\"entry.jsp\").forward(request, response);\n \n }\n \n catch (Throwable theException) {\n System.out.println(theException);\n }\n \n }", "entities.Torrent.LocalSearchResponse getLocalSearchResponse();", "public void onSearchResults(String term, List<WikiPage> results);", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "public static void main(String[] args) throws RuntimeException, URISyntaxException\r\n {\n String latitude = \"53.3498\";\r\n String longitude = \"6.2603\";\r\n String radius = \"500\";\r\n int resultsPerPage = 50;\r\n\r\n try\r\n {\r\n // Perform the search by calling the searchTrips method\r\n LocationResultTrips resultSet = Nearby.searchTrips(latitude, longitude, radius, resultsPerPage);\r\n\r\n // Loop through the results and print each attribute of each individual result in the set\r\n for (int i = 0; i < resultSet.results.size(); i++)\r\n {\r\n System.out.println(\"ID: \"\r\n + resultSet.results.get(i).tripDetails.tripID);\r\n System.out.println(\"Name: \"\r\n + resultSet.results.get(i).tripDetails.tripName);\r\n System.out.println(\"URL: \"\r\n + resultSet.results.get(i).tripDetails.tripURL);\r\n System.out.println(\"Submitted: \" + resultSet.results\r\n .get(i).tripDetails.submittedDate);\r\n\r\n System.out.println(\"Start Date: \" + resultSet.results\r\n .get(i).tripSchedule.startDate);\r\n System.out.println(\"End Date: \"\r\n + resultSet.results.get(i).tripSchedule.endDate);\r\n\r\n System.out.println(\"User ID: \"\r\n + resultSet.results.get(i).user.userID);\r\n System.out.println(\"User Name: \"\r\n + resultSet.results.get(i).user.userName);\r\n System.out.println(\"User Profile Page: \"\r\n + resultSet.results.get(i).user.userURL);\r\n\r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n\r\n catch (IllegalArgumentException | IllegalStateException | IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }", "private void FetchSearchResult(String tag, String searchCriteria) {\n\t\t/** invoking the search call */\n\t\tmLog.info(\"Fetching Search Result\");\n\t\tspiceManager.execute(\n\t\t\t\tnew MVMediaSearchRequest(AppHelper\n\t\t\t\t\t\t.getToken(SearchActivity.this), tag, searchCriteria,\n\t\t\t\t\t\tmPageCount), Constants.CACHE_KEY_SEARCH_KEY,\n\t\t\t\tDurationInMillis.ALWAYS_EXPIRED, new MVSearchRequestListner(\n\t\t\t\t\t\tSearchActivity.this));\n\n\t}", "public GameList getSearchResult(){ return m_NewSearchResult;}", "public static /*synchronized*/ void addSelectionResultLog(long start, long end, int resultSize){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + QUERY_COUNT + \": \" + resultSize + \" trajectories in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "@Override\r\n\tpublic String run() {\n\t\treturn this.getClass().getName() + \"BingCrawler running.\";\r\n\t}", "List<String> parallelSearch(String rootPath, String textToSearch, List<String> extensions) throws InterruptedException {\n // Here the results will be put.\n List<String> results = new ArrayList<>();\n\n // Queue for intercommunication between \"file system walker\" and \"searchers\"\n BlockingQueue<File> queue = new LinkedBlockingDeque<>();\n\n // Thread that walks the file system and put files with provided extension in queue.\n Thread fileFinder = new Thread(new FileFinder(queue, new File(rootPath), extensions));\n\n List<Thread> searchers = new ArrayList<>();\n for (int i = 0; i < SEARCHERS_COUNT; i++) {\n // Searcher takes file from queue and looks for text entry in it.\n searchers.add(new Thread(new TextInFileSearcher(queue, textToSearch, results)));\n }\n\n // Run all the guys.\n fileFinder.start();\n searchers.forEach(Thread::start);\n searchers.forEach(t -> {\n try {\n t.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n fileFinder.join();\n\n return results;\n }", "@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}", "entities.Torrent.NodeSearchResult getResults(int index);", "@Override\n public String getServletInfo() {\n return \"Manages searches\";\n }", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "void clientThreadQueryResult(String queryId, Thread thread);", "@Override\n public void run() {\n ThreadLocalSingleton singleton = ThreadLocalSingleton.getInstance();\n System.out.println(singleton);\n }", "public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }", "@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}", "void stateProcessed (Search search);", "@Override\n public void run() {\n \t\t((ChangePlaceActivity) activity).onSearchPlaceSuccess(list);\n }", "@Override\n public List<String> apply(String s) throws Exception {\n Log.d(TAG, \"apply\" + s + \". Thread: \" + Thread.currentThread().getName());\n //“map” our search queries to a list of search results\n //Because map can run any arbitrary function\n // we’ll use our RestClient to transform our search query into the list of actual results we want to display.\n return restClient.searchForCity(s);\n }", "public void listThreads() {\n\t\tthis.toSlave.println(MasterProcessInterface.LIST_THREADS_COMMAND);\n\t}", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "@Override\n\tpublic void doJob() {\n\t\tSystem.out.println(\"Studying\");\n\t}", "@Override\n public void threadStarted() {\n }", "public void onSearchSubmit(String queryTerm);", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "public abstract ISearchCore getSearchCore();", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tfor(int i = 0; i < agentList.size(); ++i)\n\t\t{\n\t\t\t//System.out.println(\"Living \" + agentList.get(i).getStringName());\n\t\t\tagentList.get(i).live();\n\t\t}\n\t\t//long progTime = (System.nanoTime() - start)/1000;\n\t\t//if(progTime > 2000)System.out.println(\"Thread took \" + progTime + \" us.\");\n\t\t\n\t\t//System.out.println(\"ThreadFinished in \" + progTime + \" Ás\");\n\t}", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "entities.Torrent.SearchResponse getSearchResponse();", "@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }", "@Override\r\n\tpublic void run() {\n while(true) {\r\n\r\n\r\n\r\n\t\t\tsynchronized(lock)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\trecv_from_crawler();\r\n\t\t\t\t\tSystem.out.println(\"url from crawler 2--->\"+url.toString()+ \" thread---> \"+Thread.currentThread().getName());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\ttry{\r\n\r\n\t\t\t\tget_document_from_db();\r\n\t textTags2.indexing(d,url.toString(),is_Recrawling);\r\n\t }catch (IOException e){\r\n\t\t\t System.out.println(e);\r\n\t }\r\n\r\n\t\t\t// System.out.println(\"time indexer for one doc--->\"+(System.nanoTime()-startTime));\r\n\t\t //System.out.println(\"total time indexing--->\"+(System.nanoTime()-startTime));\r\n\r\n\t\t}\r\n\r\n\t}", "public SearchContext getSearchContext() \n {\n return mSearchContext;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tint wkid = map.getSpatialReference().getID();\n\n\t\t\t\t\t\t\tLocator locator = Locator\n\t\t\t\t\t\t\t\t\t.createOnlineLocator(floorInfo\n\t\t\t\t\t\t\t\t\t\t\t.getLocatorServerPath());\n\t\t\t\t\t\t\t// Create suggestion parameter\n\t\t\t\t\t\t\tLocatorFindParameters params = new LocatorFindParameters(\n\t\t\t\t\t\t\t\t\taddress);\n\n\t\t\t\t\t\t\t// ArrayList<String> outFields = new\n\t\t\t\t\t\t\t// ArrayList<String>();\n\t\t\t\t\t\t\t// outFields.add(\"*\");\n\t\t\t\t\t\t\t// params.setOutFields(outFields);\n\t\t\t\t\t\t\t// Set the location to be used for proximity based\n\t\t\t\t\t\t\t// suggestion\n\t\t\t\t\t\t\t// params.setLocation(map.getCenter(),map.getSpatialReference());\n\t\t\t\t\t\t\t// Set the radial search distance in meters\n\t\t\t\t\t\t\t// params.setDistance(50000.0);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tlocatorResults = locator.find(params);\n\t\t\t\t\t\t\t\t// HashMap<String, String> params = new\n\t\t\t\t\t\t\t\t// HashMap<String,\n\t\t\t\t\t\t\t\t// String>();\n\t\t\t\t\t\t\t\t// params.put(\"货架编号\", address);\n\t\t\t\t\t\t\t\t// locatorResults = locator.geocode(params,\n\t\t\t\t\t\t\t\t// null,\n\t\t\t\t\t\t\t\t// map.getSpatialReference());\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 出错:\"\n\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\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\tif (locatorResults != null\n\t\t\t\t\t\t\t\t\t&& locatorResults.size() > 0) {\n\t\t\t\t\t\t\t\t// Add the first result to the map and zoom to\n\t\t\t\t\t\t\t\t// it\n\t\t\t\t\t\t\t\tfor (LocatorGeocodeResult result : locatorResults) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 结果:\"\n\t\t\t\t\t\t\t\t\t\t\t+ result.getAddress());\n\n\t\t\t\t\t\t\t\t\tif (result.getAddress() != null\n\t\t\t\t\t\t\t\t\t\t\t&& address.equals(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getAddress())) {\n\n\t\t\t\t\t\t\t\t\t\tfloorInfo.getShelfList().add(result);\n\t\t\t\t\t\t\t\t\t\t// shelfList.add(result);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsearchTime++;\n\t\t\t\t\t\t\tSystem.out.println(\"已查找次数:\" + searchTime);\n\t\t\t\t\t\t\tif (searchTime >= mSearchCount) {\n\t\t\t\t\t\t\t\tmHandler.post(mMarkAndRoute);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "public Thread getThread();", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "abstract public boolean performSearch();", "@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}", "entities.Torrent.SearchRequest getSearchRequest();", "public Object getResult(String term) throws ExecutionException, InterruptedException {\n CompletableFuture<HashMap<String, Object>> responseApple = getMovieAndSongsFromApple(term);\n CompletableFuture<HashMap<String, Object>> responseTvMaze = getShowsFromTvMaze(term);\n CompletableFuture.allOf(responseApple,responseTvMaze).join();\n SearchResult responses = new SearchResult();\n HashMap<String, Object> providers = new HashMap<>();\n providers.put(\"Apple\", responseApple.get());\n providers.put(\"TvMaze\", responseTvMaze.get());\n responses.setProviders(providers);\n\n return responses;\n }", "public void testSearchByAuthor() throws InterruptedException {\n Message m1 = new Message(\"test\",\"bla bla\",_u1);\n Message.incId();\n Thread.sleep(2000);\n Message m2 = new Message(\"test2\",\"bla2 bla2\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n\n this.searchEngine.addData(m1); \n this.searchEngine.addData(m2);\n\n /* SearchHit[] msgs = this.searchEngine.searchByAuthor(_u1.getDetails().getUsername(), 0, 2);\n assertTrue(msgs.length == 2);\n assertTrue(msgs[0].getMessage().equals(m2));\n assertTrue(msgs[1].getMessage().equals(m1));*/\n }", "void perform() {\r\n\t\tSystem.out.println(\"I sing in the key of - \" + key + \" - \"\r\n\t\t\t\t+ performerID);\r\n\t}", "public void runTestSearch() throws TorqueException {\r\n\t}", "public abstract boolean isSearchInProgress();", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "protected void retrieveMatchingWorkItems(List searchResults) throws NbaBaseException { \t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\tListIterator results = searchResults.listIterator();\n\t\tsetMatchingWorkItems(new ArrayList());\t\t//SPR2992\n\t\twhile (results.hasNext()) {\n\t\t\tNbaTransactionSearchResultVO resultVO = (NbaTransactionSearchResultVO) results.next();\n\t\t\tNbaAwdRetrieveOptionsVO retOpt = new NbaAwdRetrieveOptionsVO();\n\t\t\tretOpt.setWorkItem(resultVO.getTransactionID(), false);\n\t\t\tretOpt.requestSources();\t\t\t\t \n\t\t\tretOpt.setLockWorkItem();\n\t\t\tNbaDst aWorkItem = retrieveWorkItem(getUser(), retOpt);\t//SPR3009, NBA213\n\t\t\tgetMatchingWorkItems().add(aWorkItem);\t//SPR2992\n\t\t}\n\t\t//NBA213 deleted code\n\t}", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void run() {\n\t\tsynchronized (s1) {\n\t\t\ts1.out(threadname);\n\t\t}\n\n//\t\ts1.out(threadname);\n\t\tSystem.out.println(threadname + \" exiting..\");\n\t}", "public void SearchPhrase(Object_Ord temp) {\n\tif (!Doneloading) {\r\n\t return;\r\n\t}\r\n\tif (temp == null) {\r\n\t return;\r\n\t} else if (temp.Ordet.equals(\"\")) {\r\n\t return;\r\n\t}\r\n\ttemp.Set_Searched();\r\n\t//PrintAction( this.getClass().toString() + \" Searching for phrase \" + temp.Ordet );\r\n\tThread thread = new Thread_PhraseSearcher(this, temp);\r\n\tThreadsRunning++;\r\n\tThreadsStarted++;\r\n }" ]
[ "0.66925234", "0.6025825", "0.5748648", "0.5662231", "0.5560133", "0.55355966", "0.5529224", "0.5528665", "0.5474996", "0.5473295", "0.5470631", "0.54628795", "0.5392084", "0.5384122", "0.53777915", "0.5358175", "0.53164226", "0.53081906", "0.5305032", "0.53015167", "0.52987164", "0.5273985", "0.52617204", "0.5253196", "0.5253196", "0.52522117", "0.5238176", "0.5234619", "0.5226799", "0.5216089", "0.5212629", "0.52080077", "0.5171797", "0.51629275", "0.5145737", "0.5145669", "0.5145658", "0.51344156", "0.5132851", "0.5124599", "0.50792015", "0.50692046", "0.50648767", "0.50619274", "0.50605845", "0.50508094", "0.5036925", "0.50342715", "0.5027821", "0.50250936", "0.5019772", "0.50172013", "0.5001029", "0.49903494", "0.49874112", "0.4985946", "0.49814272", "0.4978615", "0.49762934", "0.4974555", "0.49740452", "0.49724522", "0.4970629", "0.4957135", "0.49551228", "0.49520797", "0.49430788", "0.4937747", "0.49371213", "0.49292034", "0.49280033", "0.49280033", "0.49274576", "0.49216115", "0.49182823", "0.49083304", "0.49033356", "0.49027124", "0.4894261", "0.488827", "0.48784277", "0.4875792", "0.4872309", "0.4872309", "0.48666906", "0.48659328", "0.4865025", "0.48648697", "0.48636696", "0.48629928", "0.4862702", "0.48619166", "0.48596007", "0.48460445", "0.4826601", "0.48255062", "0.4825212", "0.482372", "0.48220435", "0.48148912", "0.48129854" ]
0.0
-1
System.out.println("toSearchResult: " + Thread.currentThread().getName());
private SearchResult toSearchResult(Merchant2Product product) { return new SearchResult(new Product(product.getIdentifier(), product.getOrigin()), product.getQuantity()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "void searchStarted (Search search);", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public void search() {\r\n \t\r\n }", "public void onSearchStarted();", "List<SearchResult> search(SearchQuery searchQuery);", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public static void printResults() {\n resultMap.entrySet().stream().forEach((Map.Entry<File, String> entry) -> {\n System.out.println(String.format(\"%s processed by thread: %s\", entry.getKey(), entry.getValue()));\n });\n System.out.println(String.format(\"processed %d entries\", resultMap.size()));\n }", "public void search() {\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "@Override\n\tpublic void search() {\n\t}", "void searchProbed (Search search);", "void searchFinished (Search search);", "@Override\n public String doSearchResult() {\n return null;\n }", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "@Test(dependsOnMethods=\"searchIngoogle\")\n public void captureTheResult() throws InterruptedException {\n driver.navigate().to(getURL);\n Thread.sleep(2000);\n String searchResult = Reusable_Library2.captureText(driver, \"//*[@id='result-stats']\", \"Search Results\");\n //split\n String[] arraySearch = searchResult.split(\" \");\n System.out.println(\"My search number is \" + arraySearch[1]);\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "public static void main(String[] args) throws IOException{\n \n List<List<String>> results;\n String query = \"ADD QUERY OR CATEGORY FOR SEARCH\";\n \n //ADD USER ID WHO SEARCHES\n Long userId = 1;\n PersonalizedSearch searchObj = new PersonalizedSearch();\n \n final CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(\"elastic\",\"elastic\"));\n \n \n RestHighLevelClient client = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(\"localhost\",9200),\n new HttpHost(\"localhost\",9201))\n .setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n @Override\n public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder hacb) {\n return hacb.setDefaultCredentialsProvider(credsProvider);\n }\n }));\n \n /**\n * ---------COMMENT OUT ONE OF THE FOLLOWING TO DO A PERSONALIZED SEARCH FOR A SIGNED IN OR/AND AN ANONYMOUS USER--------\n */\n\n System.out.println(\"Starting collecting queryless/queryfull submissions...\");\n System.out.println(\"\");\n// searchObj.performQuerylessSearchWithPersonalization(client);\n// searchObj.performQueryfullSearchWithPersonalization(client);\n// results = searchObj.performPharm24PersonalizedQueryfullSearch(client, userId, query);\n// results = searchObj.performPharm24PersonalizedQuerylessSearch(client, userId, query);\n \n for(int i=0; i<results.size(); i++){\n for(int j = 0; j<results.get(i).size();j++){\n System.out.println(results.get(i).get(j));\n }\n System.out.println(\"-------RERANKED---------\");\n }\n\n System.out.println(\"\");\n System.out.println(\"I\\'m done!\");\n \n \n }", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "void search();", "void search();", "public IScapSyncSearchResult[] getResults();", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public MultiThreadedTabuSearch() {}", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "SearchResult findNext(SearchResult result);", "public void ClickSearchOnline() throws InterruptedException {\n\n searchOnline.click();\n //sameOriginAndDestination();\n\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"ok, here is \" + Thread.currentThread().getName() + \" \" + \"thread, i'll do something here..\");\n\t\t\t}", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "boolean getUseSearchResult();", "void showProcessList(TimelyResultProcessor resultProcessor);", "@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }", "@Override\n public void passSearchRequest(SearchReq searchReq) {\n\n// if (searchRequest.getCredential().getIp() == node.getCredential().getIp() && searchRequest.getCredential().getPort() == node.getCredential().getPort()) {\n if (searchReq.getCred().equals(node.getCred())) {\n return; // search query loop has eliminated\n }\n List<String> searchResult = checkFilesInFileList(searchReq.getFileName(), node.getFileList());\n logMe(\"Received SEARCH for \\\"\" + searchReq.getFileName() + \"\\\" from \" + searchReq.getCred().getNodeIp() + \":\" + searchReq.getCred().getNodePort() + \" at \" + getCurrentTime());\n if (!searchResult.isEmpty()) {\n SearchRes searchRes = new SearchRes(searchReq.getSeqNumber(), searchResult.size(), searchReq.getCred(), searchReq.getHopCount(), searchResult);\n searchOk(searchRes);\n } else {\n //logMe(\"File is not available at \" + node.getCredential().getIp() + \" : \" + node.getCredential().getPort() + \"\\n\");\n if (searchReq.getHopCount() <= TTL) {\n searchReq.setHopCount(searchReq.incHops());\n List<NetworkDetails> StatTableSearchResult = checkFilesInStatTable(searchReq.getFileName(), node.getNetworkDetailsTable());\n // Send search request to stat table members\n for (NetworkDetails networkDetails : StatTableSearchResult) {\n if (networkDetails.getQuery().equals(searchReq.getFileName())) {\n Cred cred = networkDetails.getServedNode();\n node.incForwardedQueryCount();\n search(searchReq, cred);\n }\n }\n //TODO: Wait and see for stat members rather flooding whole routing table\n // Send search request to routing table members\n for (Cred cred : node.getRoutingTable()) {\n node.incForwardedQueryCount();\n if (search(searchReq, cred)) {\n break;\n }\n }\n } else {\n// logMe(\"Search request from\" + searchRequest.getCredential().getIp() + \":\" + searchRequest.getCredential().getPort() + \"is blocked by hop TTL\\n\");\n }\n }\n// Thread.currentThread().interrupt();\n }", "entities.Torrent.LocalSearchRequest getLocalSearchRequest();", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "@Override\n public void run() {\n\n System.out.println(ThreadLocalInstance.getInstance());\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n \n List<ResultDAO> retListPredLookUp = new ArrayList<ResultDAO>();\n List<ResultDAO> retListPredSearch = new ArrayList<ResultDAO>();\n List<ResultDAO> retListObj = new ArrayList<ResultDAO>();\n List<ResultDAO> retListSubj = new ArrayList<ResultDAO>();\n \n List<List<ResultDAO>> retList = new ArrayList<List<ResultDAO>>();\n List<ResultDAO> retListPred = new ArrayList<ResultDAO>();\n \n // initialize with some default values\n int topK = Constants.TOPK;\n \n // we just need two threads to perform the search\n ExecutorService pool = Executors.newFixedThreadPool(2);\n \n try {\n if (request.getParameter(\"topk\") != null) {\n topK = Integer.parseInt(request.getParameter(\"topk\"));\n }\n \n QueryEngine.setTopK(topK);\n \n String subject = request.getParameter(\"subject\");\n String predicate = request.getParameter(\"predicate\");\n String object = request.getParameter(\"object\");\n \n // This is simple search mode. just qyerying for terms\n if (!Constants.PREDICTIVE_SEARCH_MODE) {\n // fetch the answer terms\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n retList = webTupleProc.getRetList();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n\n // get the predicates \n retListPredSearch = webTupleProc.getRetListPredSearch();\n\n } else {\n if (!subject.equals(\"Subject\") && !subject.equals(\"\")) {\n retListSubj = QueryEngine.doSearch(subject);\n }\n if (!object.equals(\"Object\") && !object.equals(\"\")) {\n retListObj = QueryEngine.doSearch(object);\n }\n }\n \n } else { // This is advanced search mode. where the system tries to predict the best matches based on the\n // input combination\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n // get the subjects and objects\n retList = webTupleProc.getRetList();\n \n // get the predicates\n retListPredLookUp = webTupleProc.getRetListPredLookUp();\n retListPredSearch = webTupleProc.getRetListPredSearch();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n }\n \n }\n \n // set the request parameter for results display\n if (retListSubj.size() > 0) {\n request.setAttribute(\"matchingListSubj\", retListSubj);\n }\n if (retListObj.size() > 0) {\n request.setAttribute(\"matchingListObj\", retListObj);\n }\n if (retListPredLookUp.size() > 0) {\n request.setAttribute(\"matchingListPredLookup\", retListPredLookUp);\n }\n if (retListPredSearch.size() > 0) {\n request.setAttribute(\"matchingListPredSearch\", retListPredSearch);\n }\n \n // for resetting the text boxes\n request.setAttribute(\"subject\", subject);\n request.setAttribute(\"predicate\", predicate);\n request.setAttribute(\"object\", object);\n request.setAttribute(\"topk\", topK);\n \n // redirect to page\n request.getRequestDispatcher(\"entry.jsp\").forward(request, response);\n \n }\n \n catch (Throwable theException) {\n System.out.println(theException);\n }\n \n }", "entities.Torrent.LocalSearchResponse getLocalSearchResponse();", "public void onSearchResults(String term, List<WikiPage> results);", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "public static void main(String[] args) throws RuntimeException, URISyntaxException\r\n {\n String latitude = \"53.3498\";\r\n String longitude = \"6.2603\";\r\n String radius = \"500\";\r\n int resultsPerPage = 50;\r\n\r\n try\r\n {\r\n // Perform the search by calling the searchTrips method\r\n LocationResultTrips resultSet = Nearby.searchTrips(latitude, longitude, radius, resultsPerPage);\r\n\r\n // Loop through the results and print each attribute of each individual result in the set\r\n for (int i = 0; i < resultSet.results.size(); i++)\r\n {\r\n System.out.println(\"ID: \"\r\n + resultSet.results.get(i).tripDetails.tripID);\r\n System.out.println(\"Name: \"\r\n + resultSet.results.get(i).tripDetails.tripName);\r\n System.out.println(\"URL: \"\r\n + resultSet.results.get(i).tripDetails.tripURL);\r\n System.out.println(\"Submitted: \" + resultSet.results\r\n .get(i).tripDetails.submittedDate);\r\n\r\n System.out.println(\"Start Date: \" + resultSet.results\r\n .get(i).tripSchedule.startDate);\r\n System.out.println(\"End Date: \"\r\n + resultSet.results.get(i).tripSchedule.endDate);\r\n\r\n System.out.println(\"User ID: \"\r\n + resultSet.results.get(i).user.userID);\r\n System.out.println(\"User Name: \"\r\n + resultSet.results.get(i).user.userName);\r\n System.out.println(\"User Profile Page: \"\r\n + resultSet.results.get(i).user.userURL);\r\n\r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n\r\n catch (IllegalArgumentException | IllegalStateException | IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }", "private void FetchSearchResult(String tag, String searchCriteria) {\n\t\t/** invoking the search call */\n\t\tmLog.info(\"Fetching Search Result\");\n\t\tspiceManager.execute(\n\t\t\t\tnew MVMediaSearchRequest(AppHelper\n\t\t\t\t\t\t.getToken(SearchActivity.this), tag, searchCriteria,\n\t\t\t\t\t\tmPageCount), Constants.CACHE_KEY_SEARCH_KEY,\n\t\t\t\tDurationInMillis.ALWAYS_EXPIRED, new MVSearchRequestListner(\n\t\t\t\t\t\tSearchActivity.this));\n\n\t}", "public GameList getSearchResult(){ return m_NewSearchResult;}", "public static /*synchronized*/ void addSelectionResultLog(long start, long end, int resultSize){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + QUERY_COUNT + \": \" + resultSize + \" trajectories in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "@Override\r\n\tpublic String run() {\n\t\treturn this.getClass().getName() + \"BingCrawler running.\";\r\n\t}", "List<String> parallelSearch(String rootPath, String textToSearch, List<String> extensions) throws InterruptedException {\n // Here the results will be put.\n List<String> results = new ArrayList<>();\n\n // Queue for intercommunication between \"file system walker\" and \"searchers\"\n BlockingQueue<File> queue = new LinkedBlockingDeque<>();\n\n // Thread that walks the file system and put files with provided extension in queue.\n Thread fileFinder = new Thread(new FileFinder(queue, new File(rootPath), extensions));\n\n List<Thread> searchers = new ArrayList<>();\n for (int i = 0; i < SEARCHERS_COUNT; i++) {\n // Searcher takes file from queue and looks for text entry in it.\n searchers.add(new Thread(new TextInFileSearcher(queue, textToSearch, results)));\n }\n\n // Run all the guys.\n fileFinder.start();\n searchers.forEach(Thread::start);\n searchers.forEach(t -> {\n try {\n t.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n fileFinder.join();\n\n return results;\n }", "@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}", "@Override\n public String getServletInfo() {\n return \"Manages searches\";\n }", "entities.Torrent.NodeSearchResult getResults(int index);", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "void clientThreadQueryResult(String queryId, Thread thread);", "@Override\n public void run() {\n ThreadLocalSingleton singleton = ThreadLocalSingleton.getInstance();\n System.out.println(singleton);\n }", "public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }", "@Override\n\tpublic boolean onSearchRequested()\n\t{\n \tstartSearch(getCurSearch(), true, null, false);\n \treturn true;\n\t}", "void stateProcessed (Search search);", "@Override\n public void run() {\n \t\t((ChangePlaceActivity) activity).onSearchPlaceSuccess(list);\n }", "public void listThreads() {\n\t\tthis.toSlave.println(MasterProcessInterface.LIST_THREADS_COMMAND);\n\t}", "@Override\n public List<String> apply(String s) throws Exception {\n Log.d(TAG, \"apply\" + s + \". Thread: \" + Thread.currentThread().getName());\n //“map” our search queries to a list of search results\n //Because map can run any arbitrary function\n // we’ll use our RestClient to transform our search query into the list of actual results we want to display.\n return restClient.searchForCity(s);\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "@Override\n public void threadStarted() {\n }", "@Override\n\tpublic void doJob() {\n\t\tSystem.out.println(\"Studying\");\n\t}", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }", "public void onSearchSubmit(String queryTerm);", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();", "public abstract ISearchCore getSearchCore();", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tfor(int i = 0; i < agentList.size(); ++i)\n\t\t{\n\t\t\t//System.out.println(\"Living \" + agentList.get(i).getStringName());\n\t\t\tagentList.get(i).live();\n\t\t}\n\t\t//long progTime = (System.nanoTime() - start)/1000;\n\t\t//if(progTime > 2000)System.out.println(\"Thread took \" + progTime + \" us.\");\n\t\t\n\t\t//System.out.println(\"ThreadFinished in \" + progTime + \" Ás\");\n\t}", "public abstract void performSearch(SearchCaller caller, SearchManager manager, Connection connection, MediaSearch mediaSearch);", "entities.Torrent.SearchResponse getSearchResponse();", "@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }", "public SearchContext getSearchContext() \n {\n return mSearchContext;\n }", "@Override\r\n\tpublic void run() {\n while(true) {\r\n\r\n\r\n\r\n\t\t\tsynchronized(lock)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\trecv_from_crawler();\r\n\t\t\t\t\tSystem.out.println(\"url from crawler 2--->\"+url.toString()+ \" thread---> \"+Thread.currentThread().getName());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\ttry{\r\n\r\n\t\t\t\tget_document_from_db();\r\n\t textTags2.indexing(d,url.toString(),is_Recrawling);\r\n\t }catch (IOException e){\r\n\t\t\t System.out.println(e);\r\n\t }\r\n\r\n\t\t\t// System.out.println(\"time indexer for one doc--->\"+(System.nanoTime()-startTime));\r\n\t\t //System.out.println(\"total time indexing--->\"+(System.nanoTime()-startTime));\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public Thread getThread();", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tint wkid = map.getSpatialReference().getID();\n\n\t\t\t\t\t\t\tLocator locator = Locator\n\t\t\t\t\t\t\t\t\t.createOnlineLocator(floorInfo\n\t\t\t\t\t\t\t\t\t\t\t.getLocatorServerPath());\n\t\t\t\t\t\t\t// Create suggestion parameter\n\t\t\t\t\t\t\tLocatorFindParameters params = new LocatorFindParameters(\n\t\t\t\t\t\t\t\t\taddress);\n\n\t\t\t\t\t\t\t// ArrayList<String> outFields = new\n\t\t\t\t\t\t\t// ArrayList<String>();\n\t\t\t\t\t\t\t// outFields.add(\"*\");\n\t\t\t\t\t\t\t// params.setOutFields(outFields);\n\t\t\t\t\t\t\t// Set the location to be used for proximity based\n\t\t\t\t\t\t\t// suggestion\n\t\t\t\t\t\t\t// params.setLocation(map.getCenter(),map.getSpatialReference());\n\t\t\t\t\t\t\t// Set the radial search distance in meters\n\t\t\t\t\t\t\t// params.setDistance(50000.0);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tlocatorResults = locator.find(params);\n\t\t\t\t\t\t\t\t// HashMap<String, String> params = new\n\t\t\t\t\t\t\t\t// HashMap<String,\n\t\t\t\t\t\t\t\t// String>();\n\t\t\t\t\t\t\t\t// params.put(\"货架编号\", address);\n\t\t\t\t\t\t\t\t// locatorResults = locator.geocode(params,\n\t\t\t\t\t\t\t\t// null,\n\t\t\t\t\t\t\t\t// map.getSpatialReference());\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 出错:\"\n\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\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\tif (locatorResults != null\n\t\t\t\t\t\t\t\t\t&& locatorResults.size() > 0) {\n\t\t\t\t\t\t\t\t// Add the first result to the map and zoom to\n\t\t\t\t\t\t\t\t// it\n\t\t\t\t\t\t\t\tfor (LocatorGeocodeResult result : locatorResults) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"查找:\" + address + \" 结果:\"\n\t\t\t\t\t\t\t\t\t\t\t+ result.getAddress());\n\n\t\t\t\t\t\t\t\t\tif (result.getAddress() != null\n\t\t\t\t\t\t\t\t\t\t\t&& address.equals(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getAddress())) {\n\n\t\t\t\t\t\t\t\t\t\tfloorInfo.getShelfList().add(result);\n\t\t\t\t\t\t\t\t\t\t// shelfList.add(result);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsearchTime++;\n\t\t\t\t\t\t\tSystem.out.println(\"已查找次数:\" + searchTime);\n\t\t\t\t\t\t\tif (searchTime >= mSearchCount) {\n\t\t\t\t\t\t\t\tmHandler.post(mMarkAndRoute);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}", "abstract public boolean performSearch();", "entities.Torrent.SearchRequest getSearchRequest();", "public Object getResult(String term) throws ExecutionException, InterruptedException {\n CompletableFuture<HashMap<String, Object>> responseApple = getMovieAndSongsFromApple(term);\n CompletableFuture<HashMap<String, Object>> responseTvMaze = getShowsFromTvMaze(term);\n CompletableFuture.allOf(responseApple,responseTvMaze).join();\n SearchResult responses = new SearchResult();\n HashMap<String, Object> providers = new HashMap<>();\n providers.put(\"Apple\", responseApple.get());\n providers.put(\"TvMaze\", responseTvMaze.get());\n responses.setProviders(providers);\n\n return responses;\n }", "public void testSearchByAuthor() throws InterruptedException {\n Message m1 = new Message(\"test\",\"bla bla\",_u1);\n Message.incId();\n Thread.sleep(2000);\n Message m2 = new Message(\"test2\",\"bla2 bla2\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n\n this.searchEngine.addData(m1); \n this.searchEngine.addData(m2);\n\n /* SearchHit[] msgs = this.searchEngine.searchByAuthor(_u1.getDetails().getUsername(), 0, 2);\n assertTrue(msgs.length == 2);\n assertTrue(msgs[0].getMessage().equals(m2));\n assertTrue(msgs[1].getMessage().equals(m1));*/\n }", "void perform() {\r\n\t\tSystem.out.println(\"I sing in the key of - \" + key + \" - \"\r\n\t\t\t\t+ performerID);\r\n\t}", "public void runTestSearch() throws TorqueException {\r\n\t}", "public abstract boolean isSearchInProgress();", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "protected void retrieveMatchingWorkItems(List searchResults) throws NbaBaseException { \t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\tListIterator results = searchResults.listIterator();\n\t\tsetMatchingWorkItems(new ArrayList());\t\t//SPR2992\n\t\twhile (results.hasNext()) {\n\t\t\tNbaTransactionSearchResultVO resultVO = (NbaTransactionSearchResultVO) results.next();\n\t\t\tNbaAwdRetrieveOptionsVO retOpt = new NbaAwdRetrieveOptionsVO();\n\t\t\tretOpt.setWorkItem(resultVO.getTransactionID(), false);\n\t\t\tretOpt.requestSources();\t\t\t\t \n\t\t\tretOpt.setLockWorkItem();\n\t\t\tNbaDst aWorkItem = retrieveWorkItem(getUser(), retOpt);\t//SPR3009, NBA213\n\t\t\tgetMatchingWorkItems().add(aWorkItem);\t//SPR2992\n\t\t}\n\t\t//NBA213 deleted code\n\t}", "private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void run() {\n\t\tsynchronized (s1) {\n\t\t\ts1.out(threadname);\n\t\t}\n\n//\t\ts1.out(threadname);\n\t\tSystem.out.println(threadname + \" exiting..\");\n\t}", "public void onSuccess(Object result) {\n\t\t\tSystem.err.println(\"showing results...\");\n\t\t\t//refgview.getNavPanel().getBrowseView().displayTargets((NodeDTO[])result);\n\n\t\t\trefgview.getSearchPanel().displaySearchTargets((NodeDTO[])result);\n\t\t}" ]
[ "0.66892076", "0.6023595", "0.57465863", "0.5659184", "0.5556345", "0.5532011", "0.55261827", "0.5525504", "0.5475144", "0.5471984", "0.54699975", "0.5459457", "0.53890944", "0.53810203", "0.5374496", "0.53551817", "0.53152347", "0.5309679", "0.5301677", "0.5300797", "0.530018", "0.5270404", "0.5258438", "0.5253561", "0.5249412", "0.5249412", "0.5237452", "0.5236119", "0.5224168", "0.52172476", "0.5210733", "0.52070886", "0.5172216", "0.51656085", "0.5148519", "0.51479876", "0.5144551", "0.5134279", "0.5133638", "0.5122178", "0.50765187", "0.50706613", "0.50664866", "0.50593925", "0.505836", "0.5047626", "0.5038391", "0.50327855", "0.5024652", "0.5023208", "0.5020514", "0.5017628", "0.49982616", "0.49878755", "0.49863893", "0.49854562", "0.49793", "0.4978144", "0.4977244", "0.49727672", "0.4971001", "0.49704167", "0.496874", "0.49553907", "0.4954481", "0.49490994", "0.49405998", "0.49373788", "0.49371567", "0.49283993", "0.49283993", "0.49261492", "0.49250355", "0.49197614", "0.49174067", "0.49099588", "0.49011028", "0.49009353", "0.48919734", "0.48860958", "0.48760328", "0.4875668", "0.48701233", "0.48701233", "0.48672462", "0.48635545", "0.48632178", "0.4862856", "0.48610392", "0.486074", "0.48602527", "0.48589596", "0.48570535", "0.48451474", "0.4824146", "0.48238024", "0.4822993", "0.482129", "0.48189044", "0.48151907", "0.4811054" ]
0.0
-1
System.out.println("retrieveProductFromProductSystem: " + Thread.currentThread().getName());
private Observable<Product> retrieveProductFromProductSystem(Long productId) { return new GetProductCommand(productId, productService).observe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "String getProduct();", "public String getProduct() {\r\n return this.product;\r\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public String getProduct() {\n return this.product;\n }", "public String getProduct()\n {\n return product;\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "public String getProductName() {\r\n return productName;\r\n }", "public java.lang.String getProduct() {\n return product;\n }", "@Override\n\tpublic Product getProduct() {\n\t\tSystem.out.println(\"B生产成功\");\n\t\treturn product;\n\t}", "public String product() {\n return this.product;\n }", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "Object getProduct();", "public void getProduct() {\n\t\tUtil.debug(\"getProduct\",this);\n\t\ttry {\n\t\t\tinputStream.skip(inputStream.available());\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\toutputStream.write(new byte[] { 'x', 13 });\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\n\t\t// wait for reply\n\t\tUtil.delay(RESPONSE_DELAY);\n\t}", "public String getDatabaseProduct();", "public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\t}", "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "public String getProductName() {\r\n\t\treturn productName;\r\n\t}", "String getTheirProductId();", "public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public String getProductName() {\n\t\treturn productName;\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "public static void main(String[] args)\n {\n Semaphore salesSem = new Semaphore(1);\n Semaphore invSem = new Semaphore(1);\n Inventory inventory = new Inventory();\n inventory.initiateProducts();\n\n System.out.println(inventory.toString());\n\n List<Sale> sales = new ArrayList<>();\n\n long startTime = System.currentTimeMillis();\n for(int i = 0; i < 250; i++)\n {\n sales.add(new Sale(inventory, salesSem, invSem));\n sales.get(i).start();\n }\n\n for(Sale s : sales) {\n try {\n s.getThread().join();\n } catch (InterruptedException ex) {\n System.out.println(\"Interrupted!\" + ex.getMessage());\n }\n }\n long stopTime = System.currentTimeMillis();\n\n System.out.println(inventory.toString());\n\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Time consumed: \" + elapsedTime + \"ms.\");\n }", "public Product getProduct() {\n\t\treturn product;\n\t}", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p = new Product(id, \"product\"+id++);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tc.addProduct(p);\n\t\t\t\t\t\t\tSystem.out.println(\"成产好了一个产品\");\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public java.lang.String getProductName() {\n return productName;\n }", "Product getPProducts();", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public String getProductProcess() {\n return productProcess;\n }", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public T getProduct() {\n return this.product;\n }", "@Override\n\tpublic String getServletInfo()\n\t{\n\t\treturn \"C.R.U.D. Products\";\n\t}", "public String getNameProd() {\n\t\treturn nameProd;\n\t}", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "@SuppressWarnings(\"unchecked\")\n private void fetchProductInformation() {\n // Query the App Store for product information if the user is is allowed\n // to make purchases.\n // Display an alert, otherwise.\n if (SKPaymentQueue.canMakePayments()) {\n // Load the product identifiers fron ProductIds.plist\n String filePath = NSBundle.getMainBundle().findResourcePath(\"ProductIds\", \"plist\");\n NSArray<NSString> productIds = (NSArray<NSString>) NSArray.read(new File(filePath));\n\n StoreManager.getInstance().fetchProductInformationForIds(productIds.asStringList());\n } else {\n // Warn the user that they are not allowed to make purchases.\n alert(\"Warning\", \"Purchases are disabled on this device.\");\n }\n }", "public void start() {\n\t\tinstanceConfigUpdated();\n\n\t\tnew Thread(getUsageData, \"ResourceConsumptionManager : GetUsageData\").start();\n\n\t\tLoggingService.logInfo(MODULE_NAME, \"started\");\n\t}", "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "public String getProductName(){\n return productRelation.getProductName();\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "public void printData () {\n System.out.println (products.toString ());\n }", "@Override\n public String getName() {\n return getSoftwareSystem().getName() + \" - System Context\";\n }", "public void getSystemInfo(){\n //get system info\n System.out.println(\"System Information\");\n System.out.println(\"------------------\");\n System.out.println(\"Available Processors: \"+Runtime.getRuntime().availableProcessors());\n System.out.println(\"Max Memory to JVM: \"+String.valueOf(Runtime.getRuntime().maxMemory()/1000000)+\" MB\");\n System.out.println(\"------------------\");\n System.out.println();\n }", "public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }", "private void getAllProducts() {\n }", "public static void print() {\n System.out.println(threadLocal.get().toString());\n }", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public static void main(String[] args) {\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n// new Thread(consumer).start();\n TLinkedBlockQueue<String> stringTLinkedBlockQueue = new TLinkedBlockQueue<>();\n\n Producter1 producter1 = new Producter1(stringTLinkedBlockQueue);\n Consumer1 consumer1 = new Consumer1(stringTLinkedBlockQueue);\n\n Thread thread = new Thread(producter1);\n thread.setName(\"生一\");\n Thread thread2 = new Thread(producter1);\n thread2.setName(\"生二\");\n Thread thread3 = new Thread(producter1);\n thread3.setName(\"生三\");\n\n thread.start();\n thread2.start();\n thread3.start();\n\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Thread c1 = new Thread(consumer1);\n Thread c2 = new Thread(consumer1);\n Thread c3 = new Thread(consumer1);\n c1.setName(\"消一\");\n c2.setName(\"消二\");\n c3.setName(\"消三\");\n\n c1.start();\n c2.start();\n\n\n }", "public String getProductInstanceReference() {\n return productInstanceReference;\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "public String getProdName() {\n\t\treturn prodName;\n\t}", "public String getProdDetailsName(){\n String prodName = productDetailsName.toString();\n return prodName;\n }", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "List<Product> retrieveProducts();", "public String getAcsProduct() {\n return acsProduct;\n }", "@Override\n\tpublic String call() throws Exception {\n\t\t\n\t\tString name = Thread.currentThread().getName();\n\t\tSystem.out.println(name + \" is running...\");\n\t\tlong s = getRandomSleep();\n\t\tSystem.out.println(name + \" will sleep \" + s);\n\t\tThread.sleep(s);\n\t\treturn name + \" \"+runtimeFmt();\n\t}", "public void softwareWareResources() {\n\t\tSystem.out.println(\"softwareResources\");\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"begin\");\n\t\t(new ReadInventoryThread()).start();\n\t\t(new Thread(new PrintData())).start();\n\t\t(new ReadInventoryThread()).start();\n\t\tSystem.out.println(\"end\");\n\t}", "public int getNameCostProductRpcAttempt() {\n\t\t\t\treturn nameCostProductRpcAttempt;\n\t\t\t}", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public Thread getThread();", "@Test\n public void testGetProductInfo() throws Exception {\n }", "protected String getSubsystem() {\n return subsystem;\n }", "public void printProduct(int id)\n {\n Product product = findProduct(id);\n \n if(product != null) \n {\n System.out.println(product.toString());\n }\n }", "public static void main(String[] args) {\n\t Product a = new Product(123, \"Shiseido Face Cream\", 85.00 , 2);\r\n\t Product b = new Product(111, \"Chanel Perfume\", 65.00, 5);\r\n\t \r\n\t System.out.println(a.toString());\r\n\t System.out.println(b.toString());\r\n\t \r\n}", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public String getThread()\n\t{\n\t\treturn this.thread;\n\t}", "@Override\n\t@Transactional\n\tpublic List<UploadProducts> getProductInfoForDeviceTracking(UploadProducts productDetails) {\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- Start\");\n\t\tList<UploadProducts> productlist=new ArrayList<UploadProducts>();\n\t\ttry {\n\t\t\tproductlist=uploadProductDAO.getProductInfoForDeviceTracking(productDetails);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\t\t}\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- End\");\n\t\treturn productlist;\n\t}", "@Override\n public void run() {\n\n System.out.println(ThreadLocalInstance.getInstance());\n }", "public String getUserecommendedproduct() {\r\n return userecommendedproduct;\r\n }", "public org.mrk.grpc.catalog.Product getProduct() {\n return product_ == null ? org.mrk.grpc.catalog.Product.getDefaultInstance() : product_;\n }", "String currentProduct() {\n if (PageFlowContext.getPolicy() != null && PageFlowContext.getPolicy().getProductTypeId() != null) {\n return PageFlowContext.getPolicy().getProductTypeId();\n } else {\n return \"\";\n }\n }", "public Product getProductFromName(String prodName) throws BackendException;", "private void getProductHandler(RoutingContext routingContext) {\n\n HttpServerResponse httpServerResponse = routingContext.response();\n\n try {\n\n Long productId = Long.parseLong(routingContext.request().getParam(\"productId\"));\n Instant start = Instant.now();\n\n logger.info(\"Received the get request for the productid \" + productId + \" at \" + start);\n Product inputProduct = new Product.ProductBuilder(productId).build();\n\n // Create future for external api call\n Future<Product> externalApiPromise =\n Future.future(promise -> messagingExternalApiVerticle(promise, productId));\n\n // Create future for DB call\n Future<Product> productDBPromise =\n Future.future(promise -> callDBService(promise, inputProduct, DBAction.GET));\n\n // Concatenate result from external api and database future\n CompositeFuture.all(externalApiPromise, productDBPromise)\n .setHandler(\n result -> {\n if (result.succeeded()) {\n Product productInfo = externalApiPromise.result();\n Product productDBInfo = productDBPromise.result();\n\n productInfo.setPrice(productDBInfo.getPrice());\n productInfo.setCurrency(productDBInfo.getCurrency());\n productInfo.setLast_updated(productDBInfo.getLast_updated());\n\n logger.info(\"The retrieved product is \" + productInfo.toString());\n\n Gson gson = new GsonBuilder().create();\n String json = gson.toJson(productInfo);\n\n Long duration = Duration.between(start, Instant.now()).toMillis();\n logger.info(\n \"Total time taken to process the request \" + duration + \" milli-seconds\");\n\n httpServerResponse.setStatusCode(SUCCESS_CODE);\n httpServerResponse.end(new JsonObject(json).encodePrettily());\n\n } else {\n logger.error(result.cause());\n httpServerResponse.setStatusCode(INTERNAL_SERVER_ERROR);\n httpServerResponse.end(\n \"Error due to \"\n + result.cause().getMessage()\n + \". Please try again after sometime.\");\n }\n });\n\n } catch (Exception e) {\n logger.error(e);\n httpServerResponse.setStatusCode(INTERNAL_SERVER_ERROR);\n httpServerResponse.end(\n \"Error due to \" + e.getMessage() + \". Please try again after sometime.\");\n }\n }", "public String getCurrentPrintJob()\n {\n return printerSimulator.getCurrentPrintJob();\n }", "TradingProduct getTradingProduct();", "public LoadThread getThread() {\r\n return thread;\r\n }", "String getProductId();", "public void storageProduct(Product product) throws InterruptedException {\n\t\tsynchronized (this) {\r\n\t\t\tboolean producerRunning=true;\r\n\t\t\tThread currentThread=Thread.currentThread();\r\n\t\t\tif(currentThread instanceof Producer){\r\n\t\t\t\tproducerRunning=((Producer) currentThread).isRunning();\r\n\t\t\t}else{\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t//如果最后一个未被消费产品与第一个未被消费的产品的下标紧挨着,\r\n\t\t\t//则说明没有存储空间,如果没有存储空间而且生产者线程还在运行,则等待仓库释放产品。\r\n\t\t\twhile((rear+1)%CAPACITY==front&&producerRunning){\r\n\t\t\t\twait();\r\n\t\t\t\tproducerRunning=((Producer) currentThread).isRunning();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!producerRunning){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tproducts[rear]=product;\r\n\t\t\tSystem.out.println(\"Producer[\" + Thread.currentThread().getName()\r\n\t\t\t\t\t+ \"] storageProduct: \" + product);\r\n\t\t\t//将rear下标循环后移一位\r\n\t\t\trear=(rear+1)%CAPACITY;\r\n\t\t\tSystem.out.println(\"仓库中还没有被消费的产品数量:\"\r\n\t\t\t\t\t+ (rear + CAPACITY - front) % CAPACITY);\r\n\t\t\tnotify();\r\n\t\t}\r\n\t}", "DescribeProductResult describeProduct(DescribeProductRequest describeProductRequest);", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public ProductInfo call() throws DataLoadException {\n\t\t\treturn new ProductInfo();\r\n\t\t}", "public String getProductQuantity() throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\twaitForVisibility(quantityInputFieldShoppingCart);\n\t\treturn quantityInputFieldShoppingCart.getAttribute(\"value\");\n\t}", "@Override\n public void run() {\n new ImpresionTicketAsync(entity,printerBluetooth,null,getActivity()).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }", "public String getDatabaseName()\n {\n return \"product\";\n }", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }" ]
[ "0.6467457", "0.5928863", "0.5837101", "0.5826282", "0.58239174", "0.5803378", "0.5796728", "0.5782722", "0.5725375", "0.57109475", "0.57102066", "0.57078594", "0.5696753", "0.5696321", "0.5696321", "0.56861264", "0.56861264", "0.56861264", "0.5677826", "0.56219393", "0.56099063", "0.5593184", "0.5578607", "0.5571191", "0.5558633", "0.5541099", "0.5526504", "0.5525499", "0.54982185", "0.54982185", "0.54932207", "0.5491207", "0.5489196", "0.5478274", "0.5463182", "0.5450494", "0.5432286", "0.5396611", "0.5395274", "0.5391646", "0.5368844", "0.5361911", "0.5360503", "0.5341004", "0.5316061", "0.5315326", "0.53106666", "0.53094506", "0.53053486", "0.5300509", "0.52925", "0.5271076", "0.526979", "0.5264958", "0.5247898", "0.5246093", "0.52410775", "0.52391106", "0.52349085", "0.52300644", "0.5229478", "0.5217736", "0.52150035", "0.5211129", "0.5205773", "0.5202202", "0.5184857", "0.51800066", "0.5170721", "0.5163334", "0.51537377", "0.51467764", "0.51412416", "0.51393133", "0.51364434", "0.51328546", "0.5131317", "0.512944", "0.51201195", "0.5114039", "0.5113149", "0.51106995", "0.5103928", "0.50959605", "0.5094785", "0.5094032", "0.509338", "0.5079494", "0.5077784", "0.50751495", "0.50749475", "0.50694066", "0.50612515", "0.5054961", "0.5050846", "0.50503683", "0.504438", "0.50431514", "0.5039749", "0.5039226" ]
0.54903877
32
System.out.println("retrieveQuantityFromInventoryService: " + Thread.currentThread().getName());
private Observable<Long> retrieveQuantityFromInventoryService(Long productId) { return new GetInventoryCommand(productId, inventoryService).observe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n Semaphore salesSem = new Semaphore(1);\n Semaphore invSem = new Semaphore(1);\n Inventory inventory = new Inventory();\n inventory.initiateProducts();\n\n System.out.println(inventory.toString());\n\n List<Sale> sales = new ArrayList<>();\n\n long startTime = System.currentTimeMillis();\n for(int i = 0; i < 250; i++)\n {\n sales.add(new Sale(inventory, salesSem, invSem));\n sales.get(i).start();\n }\n\n for(Sale s : sales) {\n try {\n s.getThread().join();\n } catch (InterruptedException ex) {\n System.out.println(\"Interrupted!\" + ex.getMessage());\n }\n }\n long stopTime = System.currentTimeMillis();\n\n System.out.println(inventory.toString());\n\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Time consumed: \" + elapsedTime + \"ms.\");\n }", "public String getProductQuantity() throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\twaitForVisibility(quantityInputFieldShoppingCart);\n\t\treturn quantityInputFieldShoppingCart.getAttribute(\"value\");\n\t}", "private int getFromSellableInventoryService() {\n Map<String, String> pathVars = Maps.newHashMap();\n pathVars.put(\"location\", LOCATION);\n pathVars.put(\"sku\", SKU);\n try {\n InventoryDto inventory = restTemplate.getForObject(\n \"http://localhost:9093/inventory/locations/{location}/skus/{sku}\", InventoryDto.class, pathVars);\n\n return inventory.getCount();\n } catch (RestClientException e) {\n return 0;\n }\n }", "@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }", "void printTotalQuantity();", "long getQuantity();", "long getQuantity();", "public int getAgentsQty();", "void printQuantity(Quantity iQuantity)\n {\n System.out.println(iQuantity.getElementValue());\n }", "@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "void consumeWorkUnit();", "public int getQuantity()\r\n {\r\n return _quantity;\r\n }", "public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "int getQuantity();", "public java.math.BigDecimal getQty() throws java.rmi.RemoteException;", "public int getQuantity() { \n return myOrderQuantity;\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}", "public static void print() {\n System.out.println(threadLocal.get().toString());\n }", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "int getBuyQuantity();", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "Quantity getQuantity();", "@Test\n public void clientRequest() {\n List<Thread> threadList = new LinkedList<>(); \n\tfor (int i = 0; i < clientNumber; i ++){\n\t SimpleClient clientx = new SimpleClient(i+1);\n\t threadList.add(clientx);\n\t clientx.start();\n\t}\n\tfor (Thread thread : threadList){\n\t try {\n\t\tthread.join();\n\t } catch (InterruptedException ex) {\n\t\tLogger.getLogger(ServiceProfileClientTest.class.getName()).log(Level.SEVERE, null, ex);\n\t }\n\t}\n\t\n\n\t\n\t\n\tSystem.out.println(\"SetReq = \" + setReq);\n\tSystem.out.println(\"TotalTimeSet = \" + totalSetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastSetTime);\n\tSystem.out.println(\"AverageProcRate = \" + setReq.get()*1000000/(totalSetTime.get()));\n\t\n\tSystem.out.println(\"GetReq = \" + getReq);\n\tSystem.out.println(\"TotalTimeGet = \" + totalGetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastGetTime);\n\tSystem.out.println(\"AverageProcRate = \" + getReq.get()*1000000/(totalGetTime.get()));\n\t\n\tSystem.out.println(\"RemvReq = \" + removeReq);\n\tSystem.out.println(\"TotalTimeRemove = \" + totalRemoveTime);\n\tSystem.out.println(\"LastProcTime = \" + lastRemoveTime);\n\tSystem.out.println(\"AverageTimeProcRate = \" + removeReq.get()*1000000/(totalRemoveTime.get()));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"begin\");\n\t\t(new ReadInventoryThread()).start();\n\t\t(new Thread(new PrintData())).start();\n\t\t(new ReadInventoryThread()).start();\n\t\tSystem.out.println(\"end\");\n\t}", "public int getQuantity()\n {\n return quantity;\n }", "public int getQuantity()\n {\n \treturn quantity;\n }", "public void processRequest(String itemName, double itemPrice, Long orderId) {\n Item item = new Item(itemName, itemPrice);\n\n itemRepository.save(item);\n\n// System.out.println(item.toString());\n processQueue(item);\n }", "int getSellQuantity();", "String getQuantity() {\n return Integer.toString(quantity);\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public static void main(String[] args) throws Exception {\n \r\n long beginTime = System.nanoTime();\r\n for (int i = 0; i < 50000000; i++) {\r\n// System.out.println(getFlowNo());\r\n getFlowNo();\r\n \r\n }\r\n long endTime = System.nanoTime();\r\n System.out.println(\"onLineWithTransaction cost:\"+((endTime-beginTime)/1000000000) + \"s \" + ((endTime-beginTime)%1000000000) + \"us\");\r\n// \r\n// System.out.println(System.currentTimeMillis());\r\n// TimeUnit.SECONDS.sleep(3);\r\n// System.out.println(System.currentTimeMillis());\r\n }", "@Override\r\npublic void run() {\n\tfor (int i = 0; i < 10; i++) {\r\n\t\ttry {\r\n\t\t\tbQueue.take();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"------苹果的数量是:\"+\" \"+\" \"+bQueue.size());\r\n\t}\r\n}", "@Test\n public void testRecordCurrentInventoryLevel() throws Exception {\n System.out.println(\"recordCurrentInventoryLevel\");\n Long factoryId = 1L;\n int result = FactoryInventoryManagementModule.recordCurrentInventoryLevel(factoryId);\n assertEquals(0, result);\n }", "public int getQuantity();", "@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "public Product getProductInventory() {\n return productInventory;\n }", "private Integer doSomething(Integer input) {\n System.out.println(\"The thread name is \"+Thread.currentThread().getName()+\" for handed data is \"+input);\n return input;\n }", "@Override\n public Object call() throws Exception {\n for (int x = 0; x < 500; x++) {\n if (this.ticket > 0) {\n System.out.println(\"买票,ticket = \" + this.ticket--);\n }\n }\n return \"票卖光了\";\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}", "public double getQuantity() {\n return quantity;\n }", "private void getSleepData() {\n\n }", "public int getQty() {\n return qty;\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "double GetTaskPrice(int Catalog_ID);", "private static ExecutionService getInstance() {\r\n\t\treturn \r\n\t\t\t\tnew ExecutionService() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void buy(String security, double price, int volume) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"buy is\"+price+volume);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void sell(String security, double price, int volume) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"sell is\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t}", "public void run() {\n\t\t\ttry {\r\n\t\t\t\tlatch.await();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t String reString = \"\";\r\n\t\t\t ISaleorderInfoTable ibst;\r\n\t\t\t try {\t\r\n\t\t\t\tHashMap params = new HashMap();\r\n\t\t\t\tHashMap hash = new HashMap();\r\n\t\t\t\tList<HashMap> idslist = new ArrayList<HashMap>();\r\n\t\t\t\thash.put(\"ID\", \"PzPjS9IhAQrgU38AAAEBCnFz7GM=\");\r\n\t\t\t\tidslist.add(hash);\r\n\t\t\t\tparams.put(\"idslist\", idslist);\r\n\t\t\t\t//2015-07-17 审核放到事务中进行,所以只修改产品即可\r\n\t\t\t\t//hash.put(\"editproduct\", true);\r\n\t\t\t\tibst = SaleorderInfoTableFactory.getRemoteInstance();\r\n\t\t\t\treString = ibst.boardAudit(params);\r\n\t\t\t\tSystem.out.println(\"子线程\"+Thread.currentThread().getName()+\"正在执行=============>\"+reString);\r\n\t\t\t\tif(reString==\"\"){\r\n\r\n\t\t\t\t totalCount+=1; //多少人抢到这线程\r\n\t\t\t\t}\r\n\t\t\t } catch (BOSException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t} catch (EASBizException e) {\r\n\t\t\t // TODO Auto-generated catch block\r\n\t\t\t e.printStackTrace();\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "private void requestData() {\n Jc11x5Factory.getInstance().getJobPriceList(mHandler);\n }", "public void start() {\n\t\tinstanceConfigUpdated();\n\n\t\tnew Thread(getUsageData, \"ResourceConsumptionManager : GetUsageData\").start();\n\n\t\tLoggingService.logInfo(MODULE_NAME, \"started\");\n\t}", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public void run() {\n\t\tSystem.out.println(Thread.currentThread().getName());\n\t}", "public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }", "public String getsubTotalPriceonCartPage() throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\twaitForVisibility(subTotal);\n\t\treturn subTotal.getText();\n\t}", "private static int th() {\n return (int) Thread.currentThread().getId();\n }", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public int getQuantity() {\n return this.quantity;\n }", "long getQuantite();", "public synchronized String getName(){\n \treturn item_name;\n }", "public Long getQuantity() {\r\n return quantity;\r\n }", "public long getAmountRequested();", "public Integer getQuantity();", "public int getJobId() ;", "public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }", "public int getCount() {\n lock.lock();\n try {\n System.out.println(Thread.currentThread().getName() + \" gets Count: \" + count.incrementAndGet());\n return count.intValue();\n } finally {\n lock.unlock();\n }\n }", "@Override\n public void run() {\n new ImpresionTicketAsync(entity,printerBluetooth,null,getActivity()).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public static void main(String[] args) {\n\t\tIShopCarService shopCarService = new ShopCarServiceImpl();\n\t\tMsg msg= shopCarService.getNum(333333);\n\t\tSystem.out.println(msg.getObj());\n\t}", "public java.lang.String getOperationName(){\n return localOperationName;\n }", "public Inventory getInventory(){\n return inventory;\n }", "public void test() {\n String name = AddressService.class.getName();\n System.out.print(name + \"xxxx\");\n Logs.d(name);\n }", "long requestId();", "long requestId();", "public void queryOrder(){\n\t\ttry{\n\t\t\tlock.lock();\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"查询到数据:\"+System.currentTimeMillis());\n\t\t\tThread.sleep(2000);\n\t\t}catch( Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tlock.unlock();\n\t\t}\n\t}", "public Double getProductQty() {\n return productQty;\n }", "public Long getQuantity() {\n return quantity;\n }", "public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(threadNum, threadNum, 10L, TimeUnit.SECONDS, linkedBlockingDeque);\n\n final CountDownLatch countDownLatch = new CountDownLatch(NUM);\n\n long start = System.currentTimeMillis();\n\n for (int i = 0; i < NUM; i++) {\n threadPoolExecutor.execute(\n () -> {\n inventory--;\n System.out.println(\"线程执行:\" + Thread.currentThread().getName());\n\n countDownLatch.countDown();\n }\n );\n }\n\n threadPoolExecutor.shutdown();\n\n try {\n countDownLatch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n long end = System.currentTimeMillis();\n System.out.println(\"执行线程数:\" + NUM + \" 总耗时:\" + (end - start) + \" 库存数为:\" + inventory);\n }", "@Test(priority=0)\n \n\tpublic void phonePrice() throws InterruptedException {\n \t\n \tobjHome = new FlipkartHome(driver);\n \tobjHome.selectSamsung();\n \t\n \t\n \t//select the first samsung phone displayed\n \tobjPhoneList = new samsungPhoneList(driver);\n \tobjPhoneList.selectFirstPhone();\n \t\n \t//Add to cart, increase quantity and display price\n \tobjPhoneDetail = new phoneDetail(driver);\n \tobjPhoneDetail.addToCart();\n \tobjPhoneDetail.printItemPrice();\n \t\n }", "void service() {\n System.out.println(\"Doing some work\");\n }", "public CQ getProductServiceQuantity() { \r\n\t\tCQ retVal = this.getTypedField(12, 0);\r\n\t\treturn retVal;\r\n }", "public int getQuantity(){\n\t\treturn quantity;\n\t}", "@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "@Override\n public void run() {\n\n System.out.println(ThreadLocalInstance.getInstance());\n }", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }", "public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "public void runDemo()\n {\n manager.printAllProducts();\n \n int noProducts = manager.numberProductsInStock();\n \n int amount = 0;\n \n System.out.println(\"No of products in stock = \" + noProducts);\n \n demoDeliverProducts();\n demoSellProducts();\n }" ]
[ "0.59917414", "0.59258664", "0.5682427", "0.5611266", "0.5589217", "0.55470866", "0.55470866", "0.55111", "0.5401936", "0.53730935", "0.5360414", "0.5356706", "0.53557813", "0.5348529", "0.5317185", "0.5311692", "0.53053445", "0.5301254", "0.52941453", "0.52808964", "0.5260443", "0.5259659", "0.52572966", "0.52557456", "0.52509886", "0.52419", "0.5221798", "0.5195161", "0.5180019", "0.5170422", "0.516523", "0.5150662", "0.5150381", "0.5150378", "0.51363164", "0.5134888", "0.51270026", "0.50963384", "0.50906056", "0.50821733", "0.50742424", "0.50624263", "0.5062165", "0.5057584", "0.5048996", "0.5048771", "0.50458944", "0.504505", "0.5031133", "0.5025753", "0.5021735", "0.5006183", "0.5004479", "0.50040746", "0.50040746", "0.50040746", "0.50040746", "0.50040746", "0.50040746", "0.50027096", "0.49948558", "0.49924302", "0.49891135", "0.49838862", "0.49819413", "0.49799606", "0.49761942", "0.4965259", "0.4956684", "0.49557182", "0.49544147", "0.4942896", "0.49427643", "0.4938106", "0.49370533", "0.4933605", "0.4932234", "0.4930263", "0.49293432", "0.4926113", "0.49254847", "0.49254847", "0.49206555", "0.49168983", "0.49150264", "0.49139977", "0.49139872", "0.49114534", "0.4907096", "0.49057794", "0.4905054", "0.49033323", "0.49033323", "0.4899515", "0.48994178", "0.48967138", "0.48950428", "0.48901904", "0.4886375", "0.48799944" ]
0.54733783
8
Clears current rates table and loads new one from specified file.
public static void reLoadRates(String fileName) throws RateTableEcseption { m_rt.reLoadTable(fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load(File filename) throws IOException {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n this.capacity = table.size();\n this.highScores = table.getHighScores();\n } catch (IOException e) {\n throw e;\n } catch (ClassNotFoundException e2) {\n System.out.println(e2);\n this.capacity = HighScoresTable.DEFAULT_CAPACITY;\n this.highScores.clear();\n System.out.println(\"table has been cleared. new size is: \" + HighScoresTable.DEFAULT_CAPACITY);\n }\n }", "public void load(File filename) throws IOException {\n HighScoresTable scoresTable = loadFromFile(filename);\n this.scoreInfoList.clear();\n this.scoreInfoList = scoresTable.scoreInfoList;\n }", "private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }", "public void refreshData(File file) throws IOException{\n\t\tmodel = new FileDataModel(file);\n\t}", "public void reload() {\r\n\t\tList<Object> data = currencyImpl.getAll();\r\n\t\twrite.lock();\r\n\t\tIterator<ConcurrentHashMap<String, List<Object>>> iter = cachedData.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tConcurrentHashMap<String, List<Object>> map = (ConcurrentHashMap<String, List<Object>>) iter.next();\r\n\t\t\tmap.clear();\r\n\t\t}\r\n\t\tpopulateCachedData((List<Object>)data);\r\n\t\twrite.unlock();\r\n\t}", "private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}", "public static HighScoresTable loadFromFile(File filename) {\n HighScoresTable newScoresTable = new HighScoresTable(4);\n ObjectInputStream inputStream = null;\n try {\n inputStream = new ObjectInputStream(new FileInputStream(filename));\n List<ScoreInfo> scoreFromFile = (List<ScoreInfo>) inputStream.readObject();\n if (scoreFromFile != null) {\n //scoreFromFile.clear();\n newScoresTable.scoreInfoList.addAll(scoreFromFile);\n }\n } catch (FileNotFoundException e) { // Can't find file to open\n System.err.println(\"Unable to find file: \" + filename);\n //return scoresTable;\n } catch (ClassNotFoundException e) { // The class in the stream is unknown to the JVM\n System.err.println(\"Unable to find class for object in file: \" + filename);\n //return scoresTable;\n } catch (IOException e) { // Some other problem\n System.err.println(\"Failed reading object\");\n e.printStackTrace(System.err);\n //return scoresTable;\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException e) {\n System.err.println(\"Failed closing file: \" + filename);\n }\n }\n return newScoresTable;\n\n\n }", "public void reset(final File file) {\n if (file == null) {\n return;\n }\n final Source source = new Source(file);\n reset(source);\n }", "public void reload() {\n\t\tif (file.lastModified() <= fileModified)\n\t\t\treturn;\n\t\n\t\treadFile();\n\t}", "public void readSpeedFile(File file) {\n\t/** predefine the periods **/\n\tperiods = Period.universalDefine();\n\t\n\tspeedTables = new ArrayList<SpeedTable>();\n\t\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tSpeedTable speedTable = new SpeedTable();\n\t\t\tfor (int i = 0; i < lineElements.length; i++) {\n\t\t\t\tdouble fromTime = periods.get(i).fromTime();\n\t\t\t\tdouble toTime = periods.get(i).toTime();\n\t\t\t\tdouble speed = Double.parseDouble(lineElements[i]);\n\t\t\t\tPeriodSpeed periodSpeed = new PeriodSpeed(fromTime, toTime, speed);\n\t\t\t\tspeedTable.add(periodSpeed);\n\t\t\t}\n\t\t\t\n\t\t\tspeedTables.add(speedTable);\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n\t\n\t// create the all one speed table\n\tallOneSpeedTable = new SpeedTable();\n\tfor (int i = 0; i < periods.size(); i++) {\n\t\tdouble fromTime = periods.get(i).fromTime();\n\t\tdouble toTime = periods.get(i).toTime();\n\t\tallOneSpeedTable.add(new PeriodSpeed(fromTime, toTime, 1));\n\t}\n\t/*\n\tfor (int i = 0; i < speedTables.size(); i++) {\n\t\tSystem.out.println(\"For category \" + i);\n\t\tspeedTables.get(i).printMe();\n\t}*/\n}", "protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }", "public static void clearFile() {\n if (data.delete())\n data = new File(\"statistics.data\");\n }", "@Override\r\n public void updateTable() {\n FileManager fileManager = new FileManager();\r\n InputStream input = fileManager.readFileFromRAM(fileManager.XML_DIR, FILE_NAME);\r\n if(input != null){\r\n dropTable();\r\n createTable();\r\n parserXml(input); \r\n }else{\r\n Log.i(FILE_NAME,\"file is null\");\r\n }\r\n \r\n }", "public void reload(String filename) throws IOException, RemoteException, Error;", "@Override\n\tpublic void importData(String filePath) {\n\t\tString[] allLines = readFile(filePath);\n\n\t\t//Obtains the date to give to all sales from the cell in the first line and first column of the csv\n\t\t//And formats it into the expected format.\n\t\tString[] firstLine = allLines[0].split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\", -1);\n\t\tString[] title = firstLine[0].split(\"\\\\(\");\n\t\tSimpleDateFormat oldFormat = new SimpleDateFormat(\"MMMMM, yyyy\");\n\t\tSimpleDateFormat newFormat = new SimpleDateFormat(\"MMM yyyy\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = oldFormat.parse(title[1].replaceAll(\"[()]\", \"\"));\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"There was parsing the date in the first cell of the first line of the csv.\\n\" \n\t\t\t\t\t+ \" A date of the format 'October, 2017' was expected.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.monthAndYear = newFormat.format(date);\n\n\t\t//Parses data for each currency and places it in class variable listForex by calling importForex() on each currency line of csv\n\t\t//Considers that the first line of currencies is the fourth line of csv.\n\t\t//Stops if counter reaches the total number of lines of csv, or if the line is shorter than 15 characters,\n\t\t//so that it doesn't try to parse the summary lines below the last currency line.\n\t\tint counter = 3;\n\t\twhile (counter< allLines.length && allLines[counter].length() > 15) {\n\t\t\timportForex(allLines[counter]);\n\t\t\tcounter++;\n\t\t}\n\n\t\tChannel apple = obtainChannel(\"Apple\", new AppleFileFormat(), false);\n\n\t\t//Places the imported data in the app,\n\t\t//making sure not to replace the existing list of FX rates for this month and year if there is one.\n\t\t//It does however update the FX rate value for currencies that are already in the data for this month.\n\t\tif (apple.getHistoricalForex().containsKey(monthAndYear)) {\n\t\t\tHashMap<String, Double> existingList = apple.getHistoricalForex().get(monthAndYear);\n\t\t\tfor (String s : existingList.keySet()) {\n\t\t\t\tlistForex.put(s, existingList.get(s));\n\t\t\t}\t\n\t\t}\n\t\tapple.addHistoricalForex(monthAndYear, listForex);\n\t}", "public static HighScoresTable loadFromFile(File filename) {\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n HighScoresTable table = (HighScoresTable) ois.readObject();\n ois.close();\n return table;\n } catch (Exception e) { //filename was not found - return empty table.\n return new HighScoresTable(HighScoresTable.DEFAULT_CAPACITY);\n }\n }", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "public void unwatchFile(final File file) {\n final Source source = new Source(file);\n unwatch(source);\n }", "static void populateDB() {\n initializeJSON();\n JSONArray thisArray = new JSONArray(getRateString());\n JSONObject desiredObject = thisArray.getJSONObject(0);\n Iterator<String> keyList = desiredObject.keys();\n\n CurrencyInterface dbConn = new DatabaseConnection();\n while (keyList.hasNext()) {\n String abbrev = keyList.next().toString();\n Object actualRates = desiredObject.get(abbrev);\n String actualRateStr = actualRates.toString();\n double rate = Double.parseDouble(actualRateStr);\n rate = 1/rate;\n // ^ actualRates produces an Integer object, can't cast directly to a Double\n // Also inverting value since values are given as USD/x where my calculations are x/USD.\n dbConn.saveCurrency(new Currency(abbrev, rate));\n }\n }", "public void removeFromRateTables(entity.RateTable element);", "void reloadFromDiskSafe();", "private void reloadPlanTable() {\n\t\t\r\n\t}", "private void changeToScanTable() {\n\t\tswitch (fileType) {\n\t\tcase INVENTORY:\n\t\t\ttableView.setItems(presentationInventoryData);\n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\ttableView.setItems(presentationInitialData);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttableView.getColumns().clear();\n\t\t\tbreak;\n\t\t} // End switch statement\n\t}", "private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "@Override\r\n\tpublic void updateRate(Rates rates) {\n\t\tsession.saveOrUpdate(rates);\r\n\t\tsession.beginTransaction().commit();\r\n\t}", "public void loadFile(File file) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\t// read the column names\n\t\t\tList<String> first = stringToList(in.readLine());\n\t\t\tcolNames = first;\n\t\t\t\n\t\t\t// each line makes a row in the data model\n\t\t\tString line;\n\t\t\tdata = new ArrayList<List>();\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tdata.add(stringToList(line));\n\t\t\t}\n\t\t\t\n\t\t\tin.close();\n\t\t\t\n\t\t\t// Send notifications that the whole table is now different\n\t\t\tfireTableStructureChanged();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void savePreviousRates() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\t\n\t\ttry {\n\t\t\tfis = openFileInput(getResString(R.string.INTERNAL_STORAGE_CACHE));\n\t\t\t\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream(1024);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tint read = -1;\n\t\t\twhile( (read = fis.read(buffer) ) != -1 ) {\n\t\t\t\tbaos.write(buffer, 0, read);\n\t\t\t}\n\t\t\tbaos.close();\n\t\t\tfis.close();\n\n\t\t\t// write to old rates cache\n\t\t\tfos = openFileOutput(getResString(R.string.PREVIOUS_INTERNAL_STORAGE_CACHE), MODE_PRIVATE);\n\t\t\tbaos.writeTo(fos);\n\t\t\tfos.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tLog.e(TAG, \"Error saving previous rates!\");\n\t\t}\n\t\tfinally {\n\t\t\ttry { if ( fis != null ) fis.close(); } catch (IOException e) { }\n\t\t\ttry { if ( fos != null ) fos.close(); } catch (IOException e) { }\n\t\t}\n\t}", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public void resetHighscoreTable()\r\n\t{\r\n\t\tcreateArray();\r\n\t\twriteFile();\r\n\t}", "public static void reload() {\n mods.clear();\n tableMap.clear();\n List<TableInfo> tableInfos = new ArrayList<>();\n\n List<File> files = FileUtil.loopFiles(\"system\", pathname -> pathname.isFile()\n && pathname.getName().startsWith(\"table_\")\n && StrUtil.endWithAnyIgnoreCase(pathname.getName(), \".xls\", \".xlsx\"));\n\n for (File file : files) {\n log.info(file.getAbsolutePath());\n List<TableInfo> tableInfos2 =\n XlsUtils.readAll(file, \"tables\", TableInfo.class);\n List<SelectOps> selOpts =\n XlsUtils.readAll(file, \"tables_select_ops\", SelectOps.class);\n List<ButtonInfo> buttonInfos =\n XlsUtils.readAll(file, \"tables_btns\", ButtonInfo.class);\n for (TableInfo tableInfo : tableInfos2) {\n if (!StrUtil.isEmpty(tableInfo.getUrl())) continue;\n List<ColumnInfo> columnInfos =\n XlsUtils.readAll(file, tableInfo.getName(), ColumnInfo.class).stream().filter(\n columnInfo -> StrUtil.equals(columnInfo.getIsactive(), \"Y\")\n ).collect(Collectors.toList());\n tableInfo.setColumns(columnInfos);\n for (ColumnInfo columnInfo : columnInfos) {\n columnInfo.setName(columnInfo.getName().toLowerCase());\n if (columnInfo.getView_type() == ColumnType.select) {\n columnInfo.setSelectOps(selOpts.stream()\n .filter(selectOps -> StrUtil.equalsIgnoreCase(\n selectOps.getGroupname(),\n columnInfo.getSelGroup())\n ).collect(Collectors.toList())\n );\n }\n tableInfo.setButtons(buttonInfos.stream().filter(\n it -> StrUtil.equalsIgnoreCase(tableInfo.getName(), it.getTable())).collect(Collectors.toList()));\n }\n }\n log.info(\"**************** stop reload xlsx *********************\");\n log.info(JSONUtil.toJsonStr(tableInfos2));\n tableInfos.addAll(tableInfos2);\n }\n tableInfos.forEach(c -> {\n tableMap.put(c.getName(), c);\n });\n tableInfos.forEach(c -> {\n int i = 0;\n for (ColumnInfo columnInfo : c.getColumns()) {\n if (columnInfo.getList_size() == 0)\n columnInfo.setList_size(StrUtil.length(columnInfo.getRemark()));\n if (StrUtil.isEmpty(columnInfo.getApiName()))\n columnInfo.setApiName(columnInfo.getName());\n if (StrUtil.contains(columnInfo.getApiName(), \";\")) {\n// columnInfo.setApiName(StrUtil.replace(columnInfo.getApiName(), \";\", \"$\"));\n columnInfo.setApiName(\"col_\" + i);\n }\n if (StrUtil.isNotEmpty(columnInfo.getLinkTable()) && StrUtil.isEmpty(columnInfo.getLinkTableName())) {\n if (tableMap.containsKey(columnInfo.getLinkTable()))\n columnInfo.setLinkTableName(tableMap.get(columnInfo.getLinkTable()).getRemark());\n }\n i++;\n }\n String upTableStr = c.getUpTable();\n if (StrUtil.isNotEmpty(upTableStr)) {\n TableInfo upTable = tableMap.get(upTableStr);\n upTable.getItemTables().add(c);\n }\n });\n\n\n for (TableInfo tableInfo : tableInfos) {\n if (!StrUtil.equalsIgnoreCase(tableInfo.getIsmenu(), \"Y\")) continue;\n String modInfo = tableInfo.getMod();\n if (!mods.contains(modInfo))\n mods.add(modInfo);\n }\n }", "private void flush() throws IOException {\n if (!rates.isEmpty()) {\n writeRates();\n rates.clear();\n firstBatch = false;\n }\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "public void reset() {\n\t\ttry {\n\t\ttr.reset();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception when reset the table reader\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "private void reloadData() throws IOException\n {\n /* Reload data from file, if it is modified after last scan */\n long mtime = loader.getModificationTime();\n if (mtime < lastKnownMtime) {\n return;\n }\n lastKnownMtime = mtime;\n\n InputStream in = loader.getInputStream();\n BufferedReader bin = new BufferedReader(new InputStreamReader(in));\n cache.clear();\n String line;\n while ((line = bin.readLine()) != null) {\n try {\n Map<String, Object> tuple = reader.readValue(line);\n updateLookupCache(tuple);\n } catch (JsonProcessingException parseExp) {\n logger.info(\"Unable to parse line {}\", line);\n }\n }\n IOUtils.closeQuietly(bin);\n IOUtils.closeQuietly(in);\n }", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void init() {\r\n File f = new File(\"data/essentials/list/rare_drop_table.txt\");\r\n try (BufferedReader br = new BufferedReader(new FileReader(f))) {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n if (s.contains(\" //\")) {\r\n s = s.substring(0, s.indexOf(\" //\"));\r\n }\r\n String[] arg = s.replaceAll(\" - \", \";\").split(\";\");\r\n int id = Integer.parseInt(arg[1]);\r\n int amount = 1;\r\n int amount2 = amount;\r\n if (arg[2].contains(\"-\")) {\r\n String[] amt = arg[2].split(\"-\");\r\n amount = Integer.parseInt(amt[0]);\r\n amount2 = Integer.parseInt(amt[1]);\r\n } else {\r\n amount = Integer.parseInt(arg[2]);\r\n }\r\n DropFrequency df = DropFrequency.RARE;\r\n switch (arg[3].toLowerCase()) {\r\n case \"common\":\r\n df = DropFrequency.COMMON;\r\n break;\r\n case \"uncommon\":\r\n df = DropFrequency.UNCOMMON;\r\n break;\r\n case \"rare\":\r\n df = DropFrequency.RARE;\r\n break;\r\n case \"very rare\":\r\n df = DropFrequency.VERY_RARE;\r\n break;\r\n }\r\n TABLE.add(new ChanceItem(id, amount, amount2, 1000, 0.0, df));\r\n }\r\n } catch (Throwable t) {\r\n log.error(\"Error reading rare drops from [{}].\", f.getAbsolutePath(), t);\r\n }\r\n int slot = 0;\r\n for (ChanceItem item : TABLE) {\r\n int rarity = 1000 / item.getDropFrequency().ordinal();\r\n item.setTableSlot(slot | ((slot += rarity) << 16));\r\n }\r\n tableRarityRatio = (int) (slot * 1.33);\r\n }", "public static void loadRatings() {\r\n\t\tString line = \"\";\r\n\t\tList<String> lineArray = null;\r\n\t\tboolean first = true;\r\n\t\tProbabilityOfDefault pd;\r\n\t\tInteger year;\r\n\t\tDouble value;\r\n\t\tString rating;\r\n\t\t\r\n\t\tCalendar gc = GregorianCalendar.getInstance();\r\n\r\n\t\tDate asOfDate = BusinessDate.getInstance().getDate();\r\n\t\t\r\n\t\tRatingStore ratStore = RatingStore.getInstance();\r\n\t\t\r\n\t\tString delimiter = \"\\t\";\r\n\t\tScanner scanner = null;\r\n\t\tif (null != ps.getPreference(PreferencesStore.PD_FILE_DELIMITER)) { delimiter = ps.getPreference(PreferencesStore.PD_FILE_DELIMITER); }\r\n\t\r\n\t\t\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tscanner = new Scanner(new File(ps.getPreference(PreferencesStore.DIRECTORY) + ps.getPreference(PreferencesStore.PD_FILE)));\r\n\t\t while (scanner.hasNext()) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t \tline = scanner.nextLine();\r\n\t\t\t\tif (first) {\r\n\t\t\t\t\tfirst = false;\r\n\t\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tlineArray = FileUtils.parseLine(line, delimiter);\r\n\t\t\t\t\r\n\t\t\t\tyear = InputHandlers.intMe(lineArray.get(1).replaceAll(\"y\", \"\"));\r\n\t\t\t\tvalue = InputHandlers.doubleMe(lineArray.get(2));\r\n\t\t\t\trating = lineArray.get(3);\r\n\t\t\t\t\r\n\t\t\t\tgc.setTime(asOfDate);\r\n\t\t\t\tgc.add(Calendar.YEAR, year);\r\n\t\t\t\t\t\r\n\t\t\t\tpd = new ProbabilityOfDefault(rating, gc.getTime(), value);\r\n\t\t\t\tratStore.getRating(rating).addPD(pd);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tif (null != scanner) { scanner.close(); }\r\n\t\t}\r\n\t\t\r\n\t\tl.info(\"Loaded \" + ratStore.getSize() + \" ratings\");\r\n\t\t\r\n\t}", "private void saveRatesData() throws CoeusUIException {\r\n if(getFunctionType() == TypeConstants.DISPLAY_MODE) {\r\n dlgRates.dispose();\r\n return ;\r\n }\r\n try{\r\n //Bug Fix id 1654\r\n //dlgRates.setCursor(new Cursor(Cursor.WAIT_CURSOR));\r\n try{\r\n if(!validate()) {\r\n throw new CoeusUIException();\r\n }\r\n }catch (CoeusUIException coeusUIException) {\r\n throw coeusUIException;\r\n }\r\n\r\n saveFormData();\r\n \r\n Hashtable ratesData = new Hashtable();\r\n CoeusVector cvData = queryEngine.getDetails(queryKey, InstituteRatesBean.class);\r\n \r\n //Bug Fix: 1742: Performance Fix - Start 1\r\n //cvData.sort(\"acType\");\r\n //Bug Fix: 1742: Performance Fix - End 1\r\n \r\n ratesData.put(InstituteRatesBean.class, cvData);\r\n\r\n cvData = queryEngine.getDetails(queryKey, KeyConstants.RATE_CLASS_DATA);\r\n ratesData.put(KeyConstants.RATE_CLASS_DATA, cvData);\r\n\r\n cvData = queryEngine.getDetails(queryKey, KeyConstants.RATE_TYPE_DATA);\r\n ratesData.put(KeyConstants.RATE_TYPE_DATA, cvData);\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setFunctionType(UPDATE_RATE_DATA);\r\n requesterBean.setDataObject(ratesData);\r\n \r\n AppletServletCommunicator appletServletCommunicator = new \r\n AppletServletCommunicator(CONNECTION_STRING, requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responderBean = appletServletCommunicator.getResponse();\r\n \r\n if(responderBean == null) {\r\n //Could not contact server.\r\n CoeusOptionPane.showErrorDialog(COULD_NOT_CONTACT_SERVER);\r\n throw new CoeusUIException();\r\n }\r\n \r\n if(responderBean.isSuccessfulResponse()) {\r\n cleanUp();\r\n dlgRates.dispose();\r\n }else {\r\n //Server Error\r\n CoeusOptionPane.showErrorDialog(responderBean.getMessage());\r\n throw new CoeusUIException();\r\n }\r\n }catch (CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }", "public void reload() {\n\n\t\tPlayerCache.reloadFile(); // load /save playercache.dat\n\n\t\t// next, update all playercaches\n\n\t\tupdatePlayerCaches();\n\n\n\t}", "private void prepareRates() {\n // set the Currency as GBP (symbol) which is applicable in all rates\n Currency gbp = Currency.getInstance(\"GBP\");\n rates.add(new Rate(\"Morning\", gbp, 15d, LocalTime.of(5, 0), LocalTime.of(10, 0)));\n rates.add(new Rate(\"Evening\", gbp, 18d, LocalTime.of(16, 30), LocalTime.of(20, 0)));\n rates.add(new Rate(\"Night\", gbp, 20d, LocalTime.of(20, 0), LocalTime.of(23, 0)));\n rates.add(new Rate(\"Default\", gbp, 10d, null, null));\n }", "public File updateTable(Table table) throws FileNotFoundException {\n\t\treturn table.update(table.getName() + \".csv\");\n\t}", "private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}", "private void importCountries(JTFFile file) {\n for (SimpleData country : file.getCountries()) {\n if (countriesService.exist(country)) {\n country.setId(countriesService.getSimpleData(country.getName()).getId());\n } else {\n countriesService.create(country);\n }\n }\n }", "@Override\n public final void clearData() {\n synchronized (tableRows) {\n statModel.clearData();\n tableRows.clear();\n tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));\n statModel.addRow(tableRows.get(TOTAL_ROW_LABEL));\n }\n }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void readTable() {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setRowCount(0);\n\n }", "public void adm4L(String filename) {\n\t\ttry { // Read from file\n\t\t\tFileInputStream fstream = new FileInputStream(filename);\n\t\t\tDataInputStream in = new DataInputStream(fstream);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString strLine;\n\t\t\ttry { // Insert into price table\n\t\t\t\twhile((strLine = br.readLine()) != null) {\n\t\t\t\t\tString[] tokens = strLine.split(\",\");\n\t\t\t\t\tint high_price = 0;\n\t\t\t\t\ttry { high_price = Integer.parseInt(tokens[3]);\n\t\t\t\t\t} catch(NumberFormatException e) {System.out.println(\"STATEMENT CONTAINS INVALID DATA\");}\n\t\t\t\t\tint low_price = 0;\n\t\t\t\t\ttry { high_price = Integer.parseInt(tokens[4]);\n\t\t\t\t\t} catch(NumberFormatException e) {System.out.println(\"STATEMENT CONTAINS INVALID DATA\");}\n\t\t\t\t\tquery = \"insert into PRICE values(?,?,?,?,?)\";\n\t\t\t\t\tPreparedStatement updateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,tokens[0]);\n\t\t\t\t\tupdateStatement.setString(2,tokens[1]);\n\t\t\t\t\tupdateStatement.setString(3,tokens[2]);\n\t\t\t\t\tupdateStatement.setInt(4,high_price);\n\t\t\t\t\tupdateStatement.setInt(5,low_price);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"PRICES LOADED\");\n\t\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\t} catch(IOException e) {System.out.println(\"FILE NOT FOUND\");}\n\t}", "public synchronized void refresh()\n {\n // Update the last modified time\n // This returns zero (i.e. Jan 1 1970) if the file does not exist\n this.lastModifiedTime = this.file.lastModified() / 1000;\n }", "void load(final File file) {\n this.file = Preconditions.checkNotNull(file);\n this.gameModelPo = gameModelPoDao.loadFromFile(file);\n visibleAreaService.setMapSize(getMapSize());\n initCache();\n }", "protected void loadFile(String s) {\n\t\tpush();\n\t\tfile.load(s, curves);\n\t\trecalculateCurves();\n\t\tpushNew();\n\t}", "public void clearFile(File file){\n try{\n PrintWriter writer = new PrintWriter(file);\n writer.close();\n }\n catch(IOException e){\n System.out.println(\"IOException\");\n }\n }", "private static void loadNewFormat(String filename, Stats stats) throws IOException {\n System.out.println(\"Analysing file: \" + filename);\n getConsole().println(\"Analysing file: \" + filename.substring(0, Integer.min(filename.length(), 60)) + (filename.length() > 60 ? \"...\" : \"\"));\n\n lastStatusMessageTime = System.nanoTime();\n String line;\n long numOfKeys = 0,\n actualKey = 0,\n startFileTime = System.nanoTime();\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n while ((line = reader.readLine()) != null) {\n String tuple[] = line.replace(\",\", \";\").split(\";\", 7);\n if (tuple.length == 7 && tuple[0].matches(\"\\\\d+\")) {\n numOfKeys++;\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n return;\n }\n\n try (BufferedReader reader = new BufferedReader(new FileReader(filename))) {\n int pos = filename.lastIndexOf('.');\n String icsn = filename;\n if (pos >= 0) {\n icsn = icsn.substring(0, pos);\n }\n stats.changeCard(icsn);\n while ((line = reader.readLine()) != null) {\n String tuple[] = line.replace(\",\", \";\").split(\";\", 7);\n if (tuple.length != 7 || !tuple[0].matches(\"\\\\d+\")) {\n continue;\n }\n\n try {\n Params params = new Params();\n params.setModulus(new BigInteger(tuple[1], 16));\n params.setExponent(new BigInteger(tuple[2], 2));\n params.setP(new BigInteger(tuple[3], 16));\n params.setQ(new BigInteger(tuple[4], 16));\n params.setTime(Long.valueOf(tuple[6]));\n stats.process(params);\n\n actualKey++;\n showProgress(actualKey, numOfKeys, startFileTime);\n } catch (NumberFormatException ex) {\n String message = \"\\nKey \" + actualKey + \" is not correct.\";\n getConsole().println(message);\n System.out.println(message);\n System.out.println(\" \" + line);\n }\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n } finally {\n consoleDoneLine();\n }\n }", "private void loadAlarms() {\n\n try {\n if (!Files.exists(Paths.get(alarmsFile))) {\n\n System.out.println(\"Alarms file not found attemping to create default\");\n Files.createFile(Paths.get(alarmsFile));\n\n } else {\n List<String> fileLines = Files.readAllLines(Paths.get(alarmsFile));\n\n for (int i = 0; i < fileLines.size() - 1; i += 4) {\n int hour = Integer.parseInt(fileLines.get(i));\n int minute = Integer.parseInt(fileLines.get(i + 1));\n int period = Integer.parseInt(fileLines.get(i + 2));\n String name = fileLines.get(i + 3);\n\n System.out.println(\"Adding new alarm from file. \" + name);\n addEntry(hour, minute, period, name);\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(AlarmsEditPanel.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(AlarmsEditPanel.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(AlarmsEditPanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.RateTable[] getRateTables();", "public BaseballElimination(String filename) {\n if (filename == null) {\n throw new IllegalArgumentException(\"filename is null!\");\n }\n\n teamsRecord_ = new HashMap<>();\n teamsSchedule_ = new TeamsSchedule_();\n readFileAndStoreData_(filename);\n }", "public void reset() {\n\t\tdroppedFiles.clear();\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t((DefaultTableModel) table.getModel()).setRowCount(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }", "public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "private static void populateTable(String name, File fileObj, Statement stat) {\n\t\tString tableName = \"\";\n\t\tScanner scan = null;\n\t\tString line = \"\";\n\t\tString[] splitLine = null;\n\t\t\n\t\ttableName = \"stevenwbroussard.\" + name;\n\t\ttry {\n\t\t\tscan = new Scanner(fileObj);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Failed make thread with file.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t//use a for loop to go through, later use a while loop\n\t\twhile (scan.hasNext() != false) {\n\t\t//for (int i = 0; i < 10; i++) {\n\t\t\tline = scan.nextLine();\n\t\t\tsplitLine = line.split(\"\\\\,\");\n\t\t\t\n\t\t\t//if the type for integer column is NULL\n\t\t\tif (splitLine[0].equals(\"NULL\")) {\n\t\t\t\tsplitLine[0] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[1].equals(\"NULL\")) {\n\t\t\t\tsplitLine[1] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[4].equals(\"NULL\")) {\n\t\t\t\tsplitLine[4] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[5].equals(\"NULL\")) {\n\t\t\t\tsplitLine[5] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[7].equals(\"NULL\")) {\n\t\t\t\tsplitLine[7] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[9].equals(\"NULL\")) {\n\t\t\t\tsplitLine[9] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[11].equals(\"NULL\")) {\n\t\t\t\tsplitLine[11] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[13].equals(\"NULL\")) {\n\t\t\t\tsplitLine[13] = \"-1\";\n\t\t\t}\n\t\t\t\n\t\t\t//if the type for double column is NULL\n\t\t\tif (splitLine[6].equals(\"NULL\")) {\n\t\t\t\tsplitLine[6] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[8].equals(\"NULL\")) {\n\t\t\t\tsplitLine[8] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[10].equals(\"NULL\")) {\n\t\t\t\tsplitLine[10] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[12].equals(\"NULL\")) {\n\t\t\t\tsplitLine[12] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[14].equals(\"NULL\")) {\n\t\t\t\tsplitLine[14] = \"-1.0\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstat.executeQuery(comd.insert(tableName, \n\t\t\t\t\t \t Integer.parseInt(splitLine[0]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[1]), \n\t\t\t\t\t \t splitLine[2], \n\t\t\t\t\t \t splitLine[3], \n\t\t\t\t\t \t Integer.parseInt(splitLine[4]),\n\t\t\t\t\t \t Integer.parseInt(splitLine[5]),\n\t\t\t\t\t \t Double.parseDouble(splitLine[6]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[7]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[8]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[9]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[10]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[11]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[12]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[13]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[14])));\n\t\t\t}\n\t\t\tcatch(SQLException s) {\n\t\t\t\tSystem.out.println(\"SQL insert statement failed.\");\n\t\t\t\ts.printStackTrace();\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }", "@Scheduled(fixedRate = 5 * 1000 * 60 * 60)\n public void save(){\n // delete old currencies amounts\n repository.deleteAllInBatch();\n\n FxRates rates = currencyTableService.getCurrencies();\n List<CurrencyTable> currencyTables = transform(rates);\n // add euro in currency list\n CurrencyTable euro = new CurrencyTable();\n euro.setCurrency(\"EUR\");\n euro.setExchangeRate(BigDecimal.ONE);\n\n repository.save(euro);\n repository.saveAll(currencyTables);\n }", "public void loadHours(String fileName)\r\n\t{\r\n\t\t//try block to try and open the file\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//declare local variables that will be assigned to the employee. These will be converted after split. \r\n\t\t\tString empID = \"\";\r\n\t\t\tString dailyHours = \"\";\r\n\t\t\tString day = \"\";\r\n\t\t\t//scan for the file \r\n\t\t\tScanner infile = new Scanner(new FileInputStream(fileName));\r\n\t\t\t\r\n\t\t\t//while loop if there is a next line\r\n\t\t\twhile(infile.hasNext())\r\n\t\t\t{\r\n\t\t\t\t//declare the line that was pulled as a single string \r\n\t\t\t\tString line = infile.nextLine();\r\n\t\t\t\t\r\n\t\t\t\t//break the line up by the delimiter (,)\r\n\t\t\t\tString fields[] = line.split(\",\");\r\n\t\t\t\t\r\n\t\t\t\t//assign the first field to day, 2nd to employeeID, and 3rd to dailyHours\r\n\t\t\t\tday = fields[0];\r\n\t\t\t\tempID = fields[1];\r\n\t\t\t\tdailyHours = fields[2];\r\n\t\t\t\t\r\n\t\t\t\t//cycle the Employee arrayList and see which employee ID matches the added ID\r\n\t\t\t\tfor (Employee employee : empList)\r\n\t\t\t\t{\r\n\t\t\t\t\t//selection structure checking if the empID matches the Employee list ID\r\n\t\t\t\t\tif(employee.getEmpoyeeId().equalsIgnoreCase(empID))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//add the hours to the employee object (convert dailyHours to a Double)\r\n\t\t\t\t\t\temployee.addHours(Double.parseDouble(dailyHours));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//now that the hours have been added to that individual employee, the hours need to be added to the date in the \r\n\t\t\t\t\t\t//DailyHours class by calling findEntryByDate\r\n\t\t\t\t\t\taddToDailyReport(day, Double.parseDouble(dailyHours), employee.getSalary());\r\n\t\t\t\t\t}//end employee ID found\r\n\t\t\t\t\t\r\n\t\t\t\t\t//else not found so set to null\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\temployee = null;\r\n\t\t\t\t\t}//end not found \r\n\t\t\t\t}//end for loop cycling the empList\t\r\n\t\t\t}//end the file has no more lines\r\n\t\t}//end try block\r\n\t\t\r\n\t\t//catch block incase try fails for OPENING THE FILE\r\n\t\tcatch(IOException ex)\r\n\t\t{\r\n\t\t\t//call ex object and display message\r\n\t\t\tex.printStackTrace();\r\n\t\t}//end of catch block\t\r\n\t}", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "@Override\r\n\tpublic void reload() {\n\t\tallcode.clear();\r\n\t\tinit();\r\n\t}", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void clear() {\n tableCache.invalidateAll();\n }", "public void reload();", "public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}", "public void newFile() {\r\n \t\tcurFile = null;\r\n \t}", "public void openFile(File file) {\n// new FileSystem().readFile(addressBook, file);\n// addressBook.fireTableDataChanged();\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public MoneyStorage(String filePath) {\n fileName = filePath;\n dateTimeFormatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n deletedEntries = new Stack<>();\n deletedBanks = new Stack<>();\n }", "void reload();", "void reload();", "void reload();", "public void refreshFnkt() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tfillTable();\r\n\t}", "public void reload(){\n Map<String,ExchangeRateProvider> newProviders = new ConcurrentHashMap<>();\n for(ExchangeRateProvider prov : Bootstrap.getServices(ExchangeRateProvider.class)){\n newProviders.put(prov.getProviderContext().getProvider(), prov);\n }\n this.conversionProviders = newProviders;\n }", "private void importRealizer(JTFFile file) {\n if (file.getRealizer() != null) {\n file.getRealizer().setNote(daoNotes.getNote(NoteType.getEnum(file.getRealizer().getTemporaryContext().getIntNote())));\n file.getRealizer().setTheCountry(DataUtils.getDataByTemporaryId(\n file.getRealizer().getTemporaryContext().getCountry(), file.getCountries()));\n\n if (realizersService.exists(file.getRealizer())) {\n file.getRealizer().setId(realizersService.getRealizer(file.getRealizer().getFirstName(), file.getRealizer().getName()).getId());\n } else {\n realizersService.create(file.getRealizer());\n }\n\n file.getFilm().setTheRealizer(file.getRealizer());\n }\n }", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void load(){\n gameRounds = 0;\n mRound = new Round(players);\n mRound.loadRound();\n }", "@Override\n public void fromFile(final String file) {\n // Model会关心文件路径,所以这里需要这个操作\n this.jsonFile = file;\n final JsonObject data = Ut.ioJObject(this.jsonFile);\n this.fromJson(data);\n }", "void readFromFile(String file)\n {\n try\n {\n employees.clear();\n FileReader inputFile = new FileReader(fileName);\n BufferedReader input = new BufferedReader(inputFile);\n String line = input.readLine();\n \n while(line != null)\n {\n Employee worker = new Employee();\n StringTokenizer stringParser = new StringTokenizer(line, \",\");\n while(stringParser.hasMoreElements())\n {\n worker.setName(stringParser.nextElement().toString());\n worker.setHours(Integer.parseInt(stringParser.nextElement().toString()));\n worker.setRate(Float.parseFloat(stringParser.nextElement().toString()));\n }\n employees.add(worker);\n line = input.readLine();\n }\n inputFile.close();\n }\n catch(FileNotFoundException e)\n {\n e.getStackTrace();\n }\n catch(IOException e)\n {\n e.getStackTrace();\n }\n }", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void setRateTables(entity.RateTable[] value);", "public void readFile() \n\t{\n\t\tArrayList<String> tempStations = new ArrayList<>();\n\t\t//create arraylist local variable tempStations which will hold the list of stations temporarily for a specific line to be added to the stations hashmap \n\n\t\tString mtrSystemFile = \"MTRsystem_partial.csv\";\n\t\t//store the csv file name in a string\n\t\tFile file = new File(mtrSystemFile);\n\t\t//create a file object for the MTRSystems csv file\n\n\t\ttry \n\t\t{\n\t\t\tScanner inputStream = new Scanner(file);\n\t\t\t//pass the file through to new scanner object to be scanned\n\n\t\t\twhile (inputStream.hasNext())\n\t\t\t//so long as the scanner object has another token to read from the csv file\n\t\t\t{\n\t\t\t\tString line = inputStream.nextLine();\n\t\t\t\t//store the next line in the string variable\n\t\t\t\tcells = line.split(\",\");\n\t\t\t\t//split each line into cells separated by a comma\n\t\t\t\tint celli = 1;\n\t\t\t\t//assign int index to 1, so that only stations are read excluding line name stored at position 0\n\n\t\t\t\twhile (celli <= cells.length - 1)\n\t\t\t\t//whilst the index is less than or equal the last position of the array\n\t\t\t\t{\n\t\t\t\t\tif (celli == 1 || celli == cells.length - 1)\n\t\t\t\t\t//if the index is at the second position in the array or at the last\n\t\t\t\t\t{\n\t\t\t\t\t\tallTermini.add((cells[celli]));\n\t\t\t\t\t\t//add termini to the ArrayList\n\t\t\t\t\t}\n\t\t\t\t\ttempStations.add(cells[celli]);\n\t\t\t\t\t//add station to the ArrayList\n\t\t\t\t\tcelli++;\n\t\t\t\t}\n\n\t\t\t\taddToStations(cells[0], tempStations);\n\t\t\t\t//add the line name and the list of stations for that line to the hashmap\n\t\t\t\ttempStations.clear();\n\t\t\t\t//Clear the temporary list for the next line\n\n\t\t\t\tcells = null;\n\t\t\t}\n\t\t\tinputStream.close();\n\t\t} catch (FileNotFoundException e) \n\t\t{\n\t\t\tSystem.out.println(\"file not found\");\n\t\t}\n\t}", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "@Override\n public void load(String filename, DatasourceSchema datasourceSchema)\n throws BigQueryLoaderException {\n GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader(\n bigQueryRepository, filename, datasourceSchema);\n gcsFileToBqTableLoader.load();\n\n // 2- crée la table si elle n'existe pas\n if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) {\n LOGGER.info(\"Table \" + datasourceSchema.getFullTableName() + \" already exists\");\n } else {\n try {\n bigQueryRepository\n .runDDLQuery(\"CREATE TABLE \" + datasourceSchema.getFullTableName() + \" AS \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM \" + datasourceSchema\n .getFullTableTmpName() + \" LIMIT 0\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot create table \" + datasourceSchema.getFullTableTmpName(), e);\n }\n }\n\n // 3- déverse tout la table cible avec le champ load date time\n try {\n bigQueryRepository.runDDLQuery(\"INSERT INTO `\" + datasourceSchema.getFullTableName() + \"` \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM `\" + datasourceSchema\n .getFullTableTmpName() + \"`\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot insert from \" + datasourceSchema.getFullTableTmpName()\n + \" into destination table \" + datasourceSchema.getFullTableName(), e);\n }\n\n // 4- drop la table temporaire\n bigQueryRepository.dropTable(datasourceSchema.getTmpTableId());\n }", "public CustomerOrderDataBase(String file) {\r\n this.FILE_NAME = file;\r\n orderInfo = new ArrayList<>(4000000);\r\n console = new Scanner(System.in);\r\n try {\r\n loadFile();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void restore() {\n\t\ttry {\n\t\t\tFile latest = null;\n\t\t\t// restore the last file back into memory\n\t\t\tList<File> files = FindFile.find(getName(), \"shouts.*.js\", false, false);\n\n\t\t\tfor (int i = 0; i < files.size(); ++i) {\n\t\t\t\tFile f = files.get(i);\n\t\t\t\tif (latest == null) {\n\t\t\t\t\tlatest = f;\n\t\t\t\t}\n\t\t\t\tif (f.lastModified() > latest.lastModified()) {\n\t\t\t\t\tlatest = f;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (latest == null) {\n\t\t\t\tlog.info(\"no files found to restore\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tinfo(\"loading latest file %s\", latest);\n\n\t\t\tString json = String.format(\"[%s]\", FileIO.fileToString(latest.getAbsoluteFile()));\n\n\t\t\tShout[] saved = Encoder.fromJson(json, Shout[].class);\n\n\t\t\tfor (int i = 0; i < saved.length; ++i) {\n\t\t\t\tshouts.add(saved[i]);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tLogging.logError(e);\n\t\t}\n\t}", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }" ]
[ "0.57483685", "0.5673907", "0.56607926", "0.56525064", "0.5636148", "0.5576247", "0.541205", "0.5365977", "0.53345174", "0.5325178", "0.52946043", "0.52621996", "0.5259174", "0.52401817", "0.5231781", "0.51952875", "0.51745105", "0.5119607", "0.51082844", "0.509959", "0.50891876", "0.508713", "0.5047506", "0.5029571", "0.5004278", "0.4984831", "0.49769285", "0.49742433", "0.49735215", "0.4972608", "0.4958175", "0.4945915", "0.4940149", "0.4932467", "0.49213284", "0.48988158", "0.48986387", "0.48910272", "0.48904306", "0.48902178", "0.48888144", "0.48863855", "0.4882239", "0.48753762", "0.4871319", "0.4869253", "0.4835811", "0.4828242", "0.48282254", "0.4799894", "0.4784101", "0.47662818", "0.47623307", "0.47570655", "0.4749237", "0.4741354", "0.47214273", "0.47162217", "0.47148058", "0.46990213", "0.46929616", "0.4691548", "0.4682935", "0.46782568", "0.4677497", "0.46756172", "0.46683636", "0.4662756", "0.4652677", "0.46500987", "0.46491894", "0.46438718", "0.4639354", "0.46335056", "0.4632206", "0.4631327", "0.46227226", "0.46123374", "0.46109977", "0.46065032", "0.46061304", "0.46032584", "0.46017215", "0.46017215", "0.46017215", "0.45978156", "0.4595163", "0.45918316", "0.4586998", "0.45806047", "0.45727128", "0.455669", "0.4556455", "0.4554657", "0.45536125", "0.45495713", "0.45478964", "0.4547252", "0.4547247", "0.45376462" ]
0.75097823
0
Returns new Currency object with type "typeTo" and appropriately converted value
public static Currency convert(Currency cur, String typeTo) throws CurrencyException { Currency.checkType(typeTo); Currency result = new Currency(typeTo); if(cur.getType().equals(typeTo)) { throw new CurrencyException("Can not convert currency " + typeTo + " to itself."); } return result.setValue(cur.getValue() * m_rt.getRate(cur.getType(), typeTo)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TokenlyCurrency getCurrencyType();", "private BigDecimal getConversion(String toCurrency) {\n Map<String, String> urlPathVariable = new HashMap<>();\n urlPathVariable.put(\"from\", baseCurrency);\n urlPathVariable.put(\"to\", toCurrency);\n\n ResponseEntity<CurrencyConversion> responseEntity = restTemplate.getForEntity(\"http://currency-conversion/api/v1/from/{from}/to/{to}\", CurrencyConversion.class, urlPathVariable);\n return responseEntity.getBody().getConversionRate();\n }", "@Override\n\tpublic CurrencyConversionBean getCoversionAmount(Double amount, String fromcurrency, String tocurrency) {\n\t\treturn new CurrencyConversionBean(amount, fromcurrency,tocurrency);\n\t}", "public abstract String getCurrencyType();", "private void getCurrencyConversion(String fromCurrency, String toCurrency, final String currencyValueToConvert) {\n String url = this.apiBaseUrl + \"/currency/convert/\" + currencyValueToConvert + \"/from/\" + fromCurrency + \"/to/\" + toCurrency;\n\n makeApiRequest(url);\n }", "Currency getCurrency();", "public CurrencyConversion() {\n }", "public abstract void setCurrencyType(String currencyType);", "public interface CurrencyConvertible<R> {\n\n /**\n * Returns a copy of the object with any currency amounts converted into the reporting currency.\n *\n * @param reportingCurrency the currency into which all currency amounts should be converted\n * @param marketData market data for multiple scenarios containing any FX rates needed to perform the conversion\n * @return a copy of the object with any currency amounts converted into the reporting currency\n */\n public abstract R convertedTo(Currency reportingCurrency, CalculationMarketData marketData);\n\n}", "@Override\n public Amount getConvertedAmount(Amount from, Currency toCurrency) \n throws CurrencyLookupException, ValueOutOfRangeException {\n BigDecimal value = from.getValue();\n if (value.doubleValue() < 0 || value.doubleValue() > 1000000000) {\n throw new ValueOutOfRangeException(\n \"Value must a non-negative number less than one billion\", value);\n }\n BigDecimal rate = getConversionRate(from.getCurrency(), toCurrency);\n Amount amt = new Amount(rate.multiply(from.getValue()), toCurrency);\n return amt;\n }", "Uom getCurrencyUom();", "public RateType_VO(Integer type) {\n ratetype = type;\n}", "Pokemon.Currency getCurrency();", "public Currency getCurrency();", "public abstract R convertedTo(Currency resultCurrency, ScenarioFxRateProvider rateProvider);", "CsticValueModel createInstanceOfCsticValueModel(int valueType);", "public abstract R convertedTo(Currency reportingCurrency, CalculationMarketData marketData);", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "@GetMapping(\"/{fromCurrency}/{toCurrency}/{fromAmount}\")\n\tpublic ResponseEntity<CurrencyDto> getConvertedCurrency(@PathVariable(\"fromCurrency\") String fromCurrency, @PathVariable(\"toCurrency\") String toCurrency, @PathVariable(\"fromAmount\") Double fromAmount) {\n\t\tCurrencyDto currencyDto = currencyService.getConvertedCurrency(fromCurrency, toCurrency, fromAmount);\n\t\treturn ResponseEntity.ok().body(currencyDto);\n\t}", "public CurrencyOffer toModelFromDTO(CurrencyOfferDTO currencyDTO);", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "@SOAPMethod(\"ConversionRate\")\n String conversionRate(@SOAPProperty(\"FromCurrency\") String fromCurrency,\n @SOAPProperty(\"ToCurrency\") String toCurrency);", "public BigDecimal convertCurrency(BigDecimal amount, Currency from, Currency to)\n\t\t\tthrows CurrencyNotSupportedException, JSONException, StorageException, EndpointException, ServiceException {\n\t\tCurrencyConverter converter = new CurrencyConverterBuilder().strategy(Strategy.YAHOO_FINANCE_FILESTORE)\n\t\t\t\t.buildConverter();\n\n\t\t// set the refresh rate to set timer to update new exchange rates\n\t\tconverter.setRefreshRateSeconds(86400);\n\n\t\t// convert between currencies\n\t\t// general format of conversion is convertCurrency(amount, fromCurrency,\n\t\t// toCurrency)\n\t\t// example conversion of 100 USD to EUR is:\n\t\tBigDecimal convertedAmount = converter.convertCurrency(amount, from, Currency.USD);\n\t\t\n\t\tLOGGER.info(\"Converted amount : \" + (convertedAmount != null ? convertedAmount.doubleValue() : \"null\"));\n\n\t\treturn convertedAmount;\n\n\t}", "abstract Valuable createMoney(double value);", "public CurrencyOfferDTO fromModelToDTO(CurrencyOffer currency);", "@Override\r\n\tpublic Currency fromString(String code) {\n\t\tCurrency currency = null;\r\n\t\t\r\n\t\tswitch(code.toUpperCase()) {\r\n\t\t\tcase \"EUR\": currency = new Currency(code, \"Euro\"); break;\r\n\t\t\tcase \"USD\": currency = new Currency(code, \"US Dollar\"); break;\r\n\t\t\tcase \"INR\": currency = new Currency(code, \"Rupees\"); break;\r\n\t\t}\r\n\t\t\r\n\t\treturn currency;\r\n\t}", "public BigDecimal convert(String fromCode, BigDecimal fromValue, String toCode)\n {\n if (fromCode.equals(toCode)) return fromValue; // Because conversion rates are not accurate\n\n return fromValue.divide(currencyRates.get(fromCode), 2, RoundingMode.HALF_UP).multiply(currencyRates.get(toCode));\n }", "private void convertAmount() {\r\n\t\tSystem.out.println(\"Select the currency to convert FROM.\");\r\n\t\tString currencyCodeFrom = signalThreeLetters();\r\n\t\tif (currencyCodeFrom == null){\r\n\t\t\treturn;\r\n }\r\n\t\tSystem.out.println(\"Select the currency to convert TO.\");\r\n\t\tString currencyCodeTo = signalThreeLetters();\r\n\t\tif (currencyCodeTo == null){\r\n\t\t\treturn;\r\n }\r\n //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is initially null\r\n\t\t//also if both currencies are not in the system it will say both currencies are not in the system instead of one of them\r\n if (currencies == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n else {Currency currencyFrom = currencies.getCurrencyByCode(currencyCodeFrom);\r\n Currency currencyTo = currencies.getCurrencyByCode(currencyCodeTo);\r\n if (currencyFrom == null & currencyTo == null){\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom +\"\\\" and \\\"\"+ currencyCodeTo+ \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyFrom == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeFrom + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;}\r\n \r\n if (currencyTo == null) {\r\n \tSystem.out.println(\"\\\"\" + currencyCodeTo + \"\\\" is not on the system. Returning to menu.\");\r\n \treturn;\r\n }\r\n System.out.println();\r\n System.out.print(\"How many \" + currencyCodeFrom + \" would you like to convert to \" + currencyCodeTo + \"? Amount: \");\r\n String amountStr = keyboardInput.getLine();\r\n Amount amount = new Amount(currencyFrom, Double.parseDouble(amountStr));\r\n System.out.println();\r\n System.out.printf(\"%.2f %s = %.2f %s\", amount.getAmount(), amount.getCurrency().getCode(), \r\n amount.getAmountIn(currencyTo), currencyTo.getCode());\r\n System.out.println(); \r\n //Next line below(line167) is invokes my overloaded method\r\n System.out.println(amount.getAmountIn(currencyTo, currencyFrom));\r\n System.out.println(); \r\n \r\n\t}\r\n}", "public double convert(double amount, Unit u);", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "public Price priceType(String priceType) {\n this.priceType = priceType;\n return this;\n }", "public float convertTo(Currency newCurrency, float amount){\n\t\treturn amount * getConversionRateTo(newCurrency);\n\t}", "@GetMapping(\"/currency-converter/from/{fromCurrency}/to/{toCurrency}/quantity/{quantity}\")\n public CurrencyConversionBean convertCurrency(@PathVariable String fromCurrency,\n @PathVariable String toCurrency,\n @PathVariable BigDecimal quantity) {\n Map<String, String> uriVariables = new HashMap<>();\n uriVariables.put(\"fromCurrency\", fromCurrency);\n uriVariables.put(\"toCurrency\", toCurrency);\n\n ResponseEntity<CurrencyConversionBean> responseEntity = new RestTemplate().getForEntity(\n \"http://localhost:8000/currency-exchange/from/{fromCurrency}/to/{toCurrency}\",\n CurrencyConversionBean.class,\n uriVariables);\n\n CurrencyConversionBean response = responseEntity.getBody();\n\n // Using Feign to solve the complex code ssee method below\n\n System.out.println(response.getTotalCalculatedAmount());\n System.out.println(response.getId());\n System.out.println(response.getFromCurrency());\n\n return new CurrencyConversionBean(\n response.getId(),\n fromCurrency,\n toCurrency,\n response.getConversionMultiple(),\n quantity,\n quantity.multiply(response.getConversionMultiple()),\n response.getPort());\n }", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "public Pokemon.Currency.Builder getCurrencyBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getCurrencyFieldBuilder().getBuilder();\n }", "@Override\n public Number convert(final Number value) {\n return c2.convert(c1.convert(value));\n }", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "@GetMapping(\"/currency-converter/from/{from}/to/{to}/quantity/{quantity}\")\n\tpublic CurrencyConversionBean convertCurrency(@PathVariable String from, @PathVariable String to,@PathVariable BigDecimal quantity) {\n\t\ttry {\n\t\tMap<String,String> requestVariable=new HashMap<String,String>();\n\t\trequestVariable.put(\"from\", from);\n\t\trequestVariable.put(\"to\", to);\n\t\t\n\t\tResponseEntity<CurrencyConversionBean> responseEntity = new RestTemplate().\n\t\t\t\tgetForEntity(\"http://localhost:8001/currency-exchange/from/{from}/to/{to}\", CurrencyConversionBean.class,requestVariable);\n\t\t\n\t\tCurrencyConversionBean response = responseEntity.getBody();\n\t\tSystem.out.println(\"------------response:-\"+response);\n\t\tCurrencyConversionBean currencyConversionBean=new CurrencyConversionBean(response.getId(),from,to,response.getConversionMultiple(),quantity,quantity.multiply(response.getConversionMultiple()),response.getPort());\n\n\t\treturn currencyConversionBean;\n\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\treturn null;\n\t}", "@Override\n public ConversionResultDto convert(String sourceCurrency, String targetCurrency, BigDecimal sourceCurrencyAmount) {\n BigDecimal exchangeRate = fxRatesService.getPairExchangeRate(sourceCurrency, targetCurrency);\n BigDecimal targetCurrencyAmount = sourceCurrencyAmount.multiply(exchangeRate).setScale(ratesScale, RoundingMode.DOWN);\n log.trace(\"Conversion Saved: {} {} --> {} {}\", sourceCurrencyAmount, sourceCurrency, targetCurrencyAmount, targetCurrency);\n ConversionTransaction transactionEntity = conversionTransactionRepository.save(ConversionTransaction.builder()\n .sourceCurrency(sourceCurrency)\n .sourceAmount(sourceCurrencyAmount)\n .targetCurrency(targetCurrency)\n .exchangeRate(exchangeRate)\n .resultAmount(targetCurrencyAmount)\n .build());\n\n return transactionMapper.conversionEntityToResult(transactionEntity);\n }", "protected <T> T convert(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }", "public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}", "@GetMapping(\"/currency-converter-feign/from/{fromCurrency}/to/{toCurrency}/quantity/{quantity}\")\n public CurrencyConversionBean convertCurrencyFeign(@PathVariable String fromCurrency,\n @PathVariable String toCurrency,\n @PathVariable BigDecimal quantity) {\n\n // Use the proxy to get data from the currency exchange service\n CurrencyConversionBean response = proxy.retrieveExchangeValue(fromCurrency, toCurrency);\n\n logger.info(\"{}\", response);\n\n return new CurrencyConversionBean(\n response.getId(),\n fromCurrency,\n toCurrency,\n response.getConversionMultiple(),\n quantity,\n quantity.multiply(response.getConversionMultiple()),\n response.getPort());\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "FROM toObject(CONTEXT context, final TO value);", "double requestCurrentRate(String fromCurrency,\n String toCurrency);", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "private Valuable makeValuable(double value) {\n if (currency.equals(\"Baht\")) {\n if (value == 1 || value == 2 || value == 5 || value == 10)\n return new Coin(value, currency);\n else if (value == 20 || value == 50 || value == 100 || value == 500 || value == 1000) {\n return new BankNote(value, currency);\n }\n } else if (currency.equals(\"Ringgit\")) {\n if (value == 0.05 || value == 0.1 || value == 0.2 || value == 0.5)\n return new Coin(value, currency);\n else if (value == 1 || value == 2 || value == 5 || value == 10 || value == 20 || value == 50 || value == 100)\n return new BankNote(value, currency);\n }\n throw new IllegalArgumentException(\"Cannot create \" + value + \" \" + currency);\n }", "Uom getOrigCurrencyUom();", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "public interface TypeConverter {\n\n /**\n * Converts the value to the specified type\n * \n * @param type the requested type\n * @param value the value to be converted\n * @return the converted value\n * @throws {@link NoTypeConversionAvailableException} if conversion not possible\n */\n <T> T convertTo(Class<T> type, Object value);\n\n /**\n * Converts the value to the specified type in the context of an exchange\n * <p/>\n * Used when conversion requires extra information from the current\n * exchange (such as encoding).\n *\n * @param type the requested type\n * @param exchange the current exchange\n * @param value the value to be converted\n * @return the converted value\n * @throws {@link NoTypeConversionAvailableException} if conversion not possible\n */\n <T> T convertTo(Class<T> type, Exchange exchange, Object value);\n}", "public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public String getMoneyType() {\n return moneyType;\n }", "@GetMapping(\"/currency-converter-feign/from/{from}/to/{to}/quantity/{quantity}\")\n\tpublic CurrencyConversionBean convertCurrencyFeign(@PathVariable String from, @PathVariable String to,\n\t\t\t@PathVariable BigDecimal quantity) {\n\t\ttry {\n\t\tCurrencyConversionBean response = proxy.retrieveExchangeValue(from, to);\n\t\tSystem.out.println(\"Response from Currency Exchange Service:- \"+response);\n\t\t\n\t\tCurrencyConversionBean currencyConversionBean=new CurrencyConversionBean(response.getId(), from, to, response.getConversionMultiple(), quantity,\n\t\t\t\tquantity.multiply(response.getConversionMultiple()), response.getPort());\n\t\tSystem.out.println(\"Result from Currency Conversion service:- \"+currencyConversionBean);\n\t\treturn currencyConversionBean;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "QuoteType createQuoteType();", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n RawObject oldKeyRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"keys\");\n Object[] oldDataKeyValue = \n (Object[])oldKeyRawObject.getElements();\n RawObject oldValueRawObject = (RawObject)oldDataRawObject.\n getSuper().getValues().get(\"values\");\n \n ArrayList<RawObject> newDataKeyValue = \n new ArrayList<RawObject>();\n RawObject myEnumRawObject = new RawObject(myEnumType, \"DATA\");\n newDataKeyValue.add(myEnumRawObject);\n \n RawObject newKeyRawObject = new RawObject\n (oldKeyRawObject.getType(), newDataKeyValue.toArray());\n Map<String, Object> \n newDataSuperValue = new HashMap<String, Object>();\n newDataSuperValue.put(\"keys\", newKeyRawObject);\n newDataSuperValue.put(\"values\", oldValueRawObject);\n RawObject newDataSuperRawObject = \n new RawObject(newDataSuperType, newDataSuperValue, null);\n Map<String, Object> newDataValue = \n new HashMap<String, Object>();\n RawObject newDataRawObject = \n new RawObject(newDataType, newDataValue, \n newDataSuperRawObject);\n return newDataRawObject;\n }", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "private com.google.protobuf.SingleFieldBuilder<\n Pokemon.Currency, Pokemon.Currency.Builder, Pokemon.CurrencyOrBuilder> \n getCurrencyFieldBuilder() {\n if (currencyBuilder_ == null) {\n currencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.Currency, Pokemon.Currency.Builder, Pokemon.CurrencyOrBuilder>(\n getCurrency(),\n getParentForChildren(),\n isClean());\n currency_ = null;\n }\n return currencyBuilder_;\n }", "public static String convert(String currencyfrom, String currencyto,List<Time> times, Double amount){\n if(currencyfrom.equals(currencyto)){\n return String.format(\"%.2f\",amount);\n }\n if(times.size() > 0) { // if the time list is empty return null\n times.sort((i, j) -> i.getDate().compareTo(j.getDate())); // sort time list by its date from old to new\n for (int i = times.size()-1; i >= 0; i-=1) { // search time object from new to old\n for (int j = 0; j < times.get(i).getExchanges().size(); j += 1) { // check whether the exchange rete between these 2 currencies in this time object\n if (times.get(i).getExchanges().get(j).getFromCurrency().getName().equals(currencyfrom) && times.get(i).getExchanges().get(j).getToCurrency().getName().equals(currencyto)) {\n return String.format(\"%.2f\", amount * times.get(i).getExchanges().get(j).getRate());\n }\n }\n return \"No such exchange rate between \" + currencyfrom + \" and \" + currencyto;// if the corresponding exchange rate is not found in all time object\n }\n\n }\n return null;\n }", "@Override\n\tpublic Metro Convertir() {\n\n\t\treturn new Metro(getValor() * 0.01);\n\t}", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public interface CurrencyExchangeInterface {\n float changeCurrency(float price, Currency $toConvert);\n}", "public interface AmountFactory {\r\n Amount amountFrom(BigDecimal amountValue);\r\n\r\n Amount amountFrom(BigDecimal amountValue, BigDecimal multiplier);\r\n}", "public Item convertToItem(Object value, XQItemType type) throws XQException;", "public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }", "@Override\n\tpublic Price convertToCurrency(Price price, Currency currency) {\n if (price == null || currency == null) {\n throw new IllegalArgumentException(\"Price or currency is null\");\n }\n\n\t\tBigDecimal convertRate = CurrencyRateUtils.getCurrencyRate(price.getCurrency(), currency);\n if (convertRate == null) {\n convertRate = BigDecimal.ONE;\n }\n\n BigDecimal newPrice = price.getValue().multiply(convertRate).setScale(2, RoundingMode.HALF_UP);\n price.setValue(newPrice);\n\n return price;\n\t}", "Pokemon.CurrencyOrBuilder getCurrencyOrBuilder();", "void setCurrency(Currency currency);", "public void currencyConvertBeforeCreation() throws FortnoxException {\n\n\t\tif (isDefaultAccountingCurrency()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// First make sure that this payment isn't booked\n\t\tif (this.voucherNumber!=null) {\n\t\t\tthrow new FortnoxException(\"Not allowed to currency convert a booked payment\");\n\t\t}\n\t\t\n\t\tif (!hasWriteOffs() && !hasAmountCurrency()) {\n\t\t\t// There's no currency amount specified to convert\n\t\t\tthrow new FortnoxException(\"There's no amount currency to convert\");\n\t\t}\n\n\t\tif (!hasCurrencyRate()) {\n\t\t\tthrow new FortnoxException(\"There's no currency rate set on the payment\");\n\t\t}\n\n\t\t// Currency convert amount(s) on write-offs\n\t\tcurrencyConvertWriteOffAmounts();\n\t\t\n\t\t// Currency convert main amount\n\t\tthis.amount = this.amountCurrency * this.currencyRate;\n\t\t\n\t}", "public interface ICustomCurrency\n{\n\n}", "public Object convert(Object fromValue) {\n RawObject oldDataRawObject = (RawObject) fromValue;\n Object[] oldElements = oldDataRawObject.getElements();\n Map<String, Object> integerClassValues = \n new HashMap<String, Object>();\n integerClassValues.put(\"data\", oldElements[0]);\n RawObject integerClassObject = \n new RawObject(integerClassType, integerClassValues, null);\n RawObject[] newElements = new RawObject[1];\n newElements[0] = integerClassObject;\n RawObject newDataRawObject = \n new RawObject(newDataType, newElements);\n return newDataRawObject;\n }", "public interface Currency extends Model {\n String getCode();\n void setCode(String strCode);\n String getCurrencyName();\n void setCurrenyName(String strCurrencyName);\n String getCurrencySymbol();\n void setCurrencySymbol(String strCurrencySymbol);\n String getIsDefault();\n void setIsDefault(String strIsDefault);\n double getCurrencyRate();\n void setCurrencyRate(double dCurrencyRate);\n}", "protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "PriceModel createInstanceOfPriceModel();", "public String getCurrency() {\n return this.currency;\n }", "public BigDecimal getConversionRate(Currency fromCurrency, Currency toCurrency) \n throws CurrencyLookupException {\n verifyNonNullArg(fromCurrency, \"fromCurrency\");\n verifyNonNullArg(toCurrency, \"toCurrency\");\n BigDecimal numDollarsFrom = getUSDPerUnitOf(fromCurrency);\n BigDecimal numDollarsTo = getUSDPerUnitOf(toCurrency);\n return numDollarsFrom.divide(numDollarsTo, new MathContext(2, RoundingMode.HALF_UP));\n }", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }", "@Override\r\n\tpublic double calculate(String fromCurrency, String toCurrency,\r\n\t\t\tLong quantity) {\r\n\t\tcurrFxRatesGraph = exchngRateMapping.getCurrencyFxRatesGraph();\r\n\t\tdouble calcValue=0.00;\r\n\t\tGraphPath<String, Double> graphPath=null;\r\n\t\ttry {\r\n\t\t\tgraphPath = DijkstraShortestPath.findPathBetween(currFxRatesGraph, fromCurrency, toCurrency);\r\n\t\t\tif ( graphPath == null) {\r\n\t\t\t\tthrow new NoConversionMatchFoundException(\"No conversion pairing found for pair \"+fromCurrency+\" and \"+toCurrency);\r\n\t\t\t}else {\r\n\t\t\t\tList<Double> listOfpath = graphPath.getEdgeList();\r\n\t\t\t\t\r\n\t\t\t\tBigDecimal rate = new BigDecimal(1.00);\r\n\t\t\t\tfor (Double edge : listOfpath) {\r\n\t\t\t\t\trate = rate.multiply(BigDecimal.valueOf(edge.doubleValue()));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcalcValue = rate.multiply(BigDecimal.valueOf(quantity)).doubleValue();\r\n\t\t\t\t\r\n\t\t\t\tString precision = currencyPrecisionConfig.getProp().getProperty(toCurrency);\r\n\t\t\t\t\r\n\t\t\t\tif(!isInvalidPrecision(precision)) {\r\n\t\t\t\t\tString frmtCalcValue = fmt.format(\"%.\"+precision+\"f\", calcValue).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcalcValue = Double.parseDouble(frmtCalcValue);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tlog.error(\"Precision value for currency \"+toCurrency+\" is invalid,please check \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(NoConversionMatchFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(IllegalArgumentException e) {\r\n\t\t\tlog.error(\"Invalid Currency passed for calculation, Please look for option 1 & 2 to add currencies and pair in system\");\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn calcValue;\r\n\t}", "@Test\n public void desiredCurNumberConversionEUR(){\n CurrencyRates one = new CurrencyRates();\n assertEquals(\"EUR\", one.desiredCurNumberConversion(4));\n }", "public Double convert(product_uom from, Double value, product_uom to) throws Exception {\r\n\t\tif ((from == null) || (to == null))\r\n\t\t\treturn null;\r\n\t\treturn from.convert(value, to);\r\n\t}", "public X10Cast createCoercion(Position pos, Expr expr, Type toType) {\n try {\n // FIXME: Have to typeCheck, because the typechecker has already desugared this to a conversion chain\n return (X10Cast) xnf.X10Cast( pos, \n xnf.CanonicalTypeNode(pos, toType), \n expr, \n Converter.ConversionType.UNKNOWN_IMPLICIT_CONVERSION ).typeCheck(this);\n } catch (SemanticException e) {\n // work around for XTENLANG-1335\n try {\n return (X10Cast) xnf.X10Cast( pos, \n xnf.CanonicalTypeNode(pos, toType), \n expr, \n Converter.ConversionType.UNCHECKED ).typeCheck(this);\n } catch (SemanticException x) {\n // return null;\n }\n // end work around for XTENLANG-1335\n return null;\n }\n }", "public static Currency createCurrency (String country) {\n\n\t\tswitch(country.toUpperCase()) {\n\t\t\n\t\tcase \"INDIA\" : \n\t\t\treturn new Rupee(); \n\t\t\n\t\tcase \"SINGAPORE\" : \n\t\t\treturn new SGDDollar(); \n\t\t\n\t\tcase \"US\" : \n\t\t\treturn new USDollar();\n\t\t\n\t\tdefault : \n\t\t\tthrow new IllegalArgumentException(\"No such currency\");\n\t\t}\n\t}", "public Object getCurrency() {\n\t\treturn null;\n\t}", "<T> T convert(Object o, Class<T> type);", "public Object convert(Class aType, Object aValue)\n throws ConversionException\n {\n // Deal with a null value\n if (aValue == null) {\n if (useDefault) {\n return (defaultValue);\n }\n throw new ConversionException(\"No value specified\");\n }\n \n // Deal with the no-conversion-needed case\n if (sModel.getClass() == aValue.getClass()) {\n return (aValue);\n }\n \n // Parse the input value as a String into elements\n // and convert to the appropriate type\n try {\n final List list = parseElements(aValue.toString());\n final String[] results = new String[list.size()];\n \n for (int i = 0; i < results.length; i++) {\n results[i] = (String) list.get(i);\n }\n return (results);\n }\n catch (Exception e) {\n if (useDefault) {\n return (defaultValue);\n }\n throw new ConversionException(aValue.toString(), e);\n }\n }", "public Double convert(product_uom from, Double value, String uom_to) {\r\n\t\tif (from == null)\r\n\t\t\treturn null;\r\n\r\n\t\tproduct_uom p = searchUoM(from.getCategory_id(), uom_to);\r\n\t\tif (p == null)\r\n\t\t\treturn null;\r\n\r\n\t\t// can't happen to have an incompatible conversion, as I'm searching in\r\n\t\t// the same category!\r\n\t\ttry {\r\n\t\t\treturn convert(from, value, p.getId());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should never happen\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Money convertToMoney(float amount) {\n return new Money(amount);\n }", "public Builder mergeCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (((bitField0_ & 0x00000400) == 0x00000400) &&\n currency_ != Pokemon.Currency.getDefaultInstance()) {\n currency_ =\n Pokemon.Currency.newBuilder(currency_).mergeFrom(value).buildPartial();\n } else {\n currency_ = value;\n }\n onChanged();\n } else {\n currencyBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "@Override\n\tpublic CurrencyConversionBean calculateConversionAmount(CurrencyConversionRequest currencyConversionRequestRequest) {\n\t\treturn new CurrencyConversionBean(currencyConversionRequestRequest.getAmount(), currencyConversionRequestRequest.getFromcurrency(),currencyConversionRequestRequest.getToCurrency());\n\t}", "public BigDecimal convert(\n String targetCurrency,\n String sourceCurrency,\n BigDecimal amount)\n {\n if (!exchangeRates.containsKey(targetCurrency))\n throw new IllegalArgumentException(\"Target currency is not registered.\");\n\n if (!exchangeRates.containsKey(sourceCurrency))\n throw new IllegalArgumentException(\"Source currency is not registered.\");\n\n BigDecimal targetRate = exchangeRates.get(targetCurrency);\n BigDecimal sourceRate = exchangeRates.get(sourceCurrency);\n\n BigDecimal baseAmount = amount.multiply(sourceRate);\n BigDecimal targetAmount = baseAmount.divide(targetRate, scale, roundingMode);\n\n return targetAmount;\n }", "@Override\n public C convert(Object key, Object previousValue, Metadata previousMetadata, Object value, Metadata metadata, EventType eventType) {\n return (C) GODZILLA;\n }", "@Test\n public void desiredCurNumberConversionUSD(){\n //standard set up\n CurrencyRates one = new CurrencyRates();\n //checks if 2 corresponds to USD\n assertEquals(\"USD\", one.desiredCurNumberConversion(2));\n }", "com.google.protobuf.StringValue getCurrencyCode();", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "public NumberToNumber(Class<T> targetType)\r\n/* 21: */ {\r\n/* 22:52 */ this.targetType = targetType;\r\n/* 23: */ }", "@Override\n\tpublic BasicMarketData convert(MarketDataLevel1 from) {\n\t\treturn null;\n\t}", "protected VariableConverter getVariableConverter(Object value, Class<?> type) {\n VariableConverter converter = null;\n Class<?> toType = ConstructorUtils.getWrapper(type);\n for (VariableConverter variableConverter : getVariableConverters()) {\n if (variableConverter.canConvert(value, toType)) {\n converter = variableConverter;\n break;\n }\n }\n return converter;\n }", "public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }", "String getTradeCurrency();" ]
[ "0.63783604", "0.628286", "0.6243844", "0.6199834", "0.6055534", "0.60035264", "0.57813716", "0.5778239", "0.57322085", "0.57234466", "0.56900966", "0.5678757", "0.56645894", "0.5639659", "0.5629179", "0.56170917", "0.55669165", "0.5557102", "0.5525597", "0.5513343", "0.5503381", "0.5489799", "0.54843265", "0.54764575", "0.5459556", "0.54306835", "0.5360968", "0.5356047", "0.53306454", "0.5322866", "0.5312418", "0.53028417", "0.53001225", "0.52901965", "0.52807313", "0.52798563", "0.5277222", "0.5267077", "0.52613103", "0.5257823", "0.52573186", "0.52514565", "0.5246517", "0.5226253", "0.52254176", "0.5195745", "0.5194043", "0.51876295", "0.51818764", "0.51780224", "0.5175962", "0.51490027", "0.5114939", "0.51028556", "0.50786614", "0.50633276", "0.506242", "0.5062223", "0.5048715", "0.5048679", "0.50485367", "0.5036136", "0.50360966", "0.503175", "0.5028791", "0.5026703", "0.5026313", "0.50161004", "0.50085866", "0.5002728", "0.50009865", "0.49859467", "0.49818122", "0.4979873", "0.4977901", "0.49765596", "0.49599004", "0.49561372", "0.4953379", "0.49512503", "0.4945145", "0.4944003", "0.49403858", "0.49380183", "0.49303353", "0.4929494", "0.49274012", "0.49261287", "0.49234465", "0.49186477", "0.49168468", "0.49162012", "0.49079993", "0.49042535", "0.49000904", "0.48843193", "0.48788655", "0.48715284", "0.48709112", "0.4870688" ]
0.7656251
0
Returns new Currency object that contains a sum of 2 currency objects
public static Currency Add(Currency op1, Currency op2) throws CurrencyException { if(!op1.getType().equals(op2.getType())) throw new CurrencyException("Addition: different currency types!"); Currency result = new Currency(op1.getType()); return result.setValue(op1.getValue()+op2.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Fraction add(Fraction f1, Fraction f2)// to construct a new object of the same class and store the value of the sum in that object and then return the object\n\t{\n\t\tint num1= f1.numerator*f2.denominator + f2.numerator*f1.denominator;\n\t\tint den1= f1.denominator*f2.denominator;\n\t\tFraction f3= new Fraction(num1,den1);\n\t\treturn f3;\n\t\n}", "public USMoney plus(USMoney a)\r\n { \r\n int sumDollars = getDollars() + a.getDollars();\r\n \r\n int sumCents = getCents() + a.getCents();\r\n \r\n USMoney c = new USMoney(sumDollars, sumCents);\r\n \r\n return c;\r\n }", "public Money add(Money moneyA, Money moneyB) throws NoSuchExchangeRateException {\n return Money(moneyA.amount.add(convert(moneyB, moneyA.currency).amount), moneyA.currency);\n }", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "@Test\n public void testIsSameCurrency() {\n \n Money moneyUsd = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"USD\"));\n Money moneyUsd2 = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"USD\"));\n Money moneyCad = new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"CAD\"));\n\n assertTrue(\"Currencies same\", moneyUsd.isSameCurrency(moneyUsd2));\n assertTrue(\"Currencies same symmetric\", moneyUsd2.isSameCurrency(moneyUsd));\n assertFalse(\"Currencies different\", moneyUsd.isSameCurrency(moneyCad));\n \n }", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "Currency getCurrency();", "@Test\n public void finalSumTest1(){\n // set up\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n // checks if function add up all values correctly\n assertEquals(233.32, one.finalSumAUD(sumList1), 0.0);\n }", "@Override\n protected Currency clone() {\n final Currency currency = new Currency();\n if (data != null) {\n currency.data = data.clone();\n }\n return currency;\n\n }", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public Currency getCurrency();", "public static Currency Subtract(Currency op1, Currency op2) throws CurrencyException {\r\n\t\tif(!op1.getType().equals(op2.getType()))\r\n\t\t\tthrow new CurrencyException(\"Subtraction: different currency types!\");\r\n\t\t\r\n\t\tCurrency result = new Currency(op1.getType());\r\n\r\n\t\treturn result.setValue(op1.getValue()-op2.getValue());\t\r\n\t}", "public Fraccion suma() {\r\n return new Fraccion(operador1.getNumerador()*operador2.getDenominador() + operador1.getDenominador()*operador2.getNumerador(),\r\n operador1.getDenominador()*operador2.getDenominador());\r\n }", "List<CurrencyDTO> getCurrencies();", "public static CryptoCurrency CryptoCurrency(DBObject row) {\n\t\tCryptoCurrency currency = new CryptoCurrency();\n\t\tcurrency.setAvgPrice((int) row.get(\"price\"));\n\t\tcurrency.setMarketPlace((String) row.get(\"market\"));\n\t\tcurrency.setPair((String) row.get(\"pair\"));\n\t\tcurrency.setDate((LocalDate) row.get(\"date\"));\n\t\treturn currency;\n\n\t}", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}", "public Builder mergeCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (((bitField0_ & 0x00000400) == 0x00000400) &&\n currency_ != Pokemon.Currency.getDefaultInstance()) {\n currency_ =\n Pokemon.Currency.newBuilder(currency_).mergeFrom(value).buildPartial();\n } else {\n currency_ = value;\n }\n onChanged();\n } else {\n currencyBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "public static Rational add(Rational num1, Rational num2){\r\n Rational sum = new Rational();\r\n // add common denominator\r\n sum.denominator = num1.getDenominator() * num2.getDenominator();\r\n sum.numerator = (num1.getNumerator() * num2.getDenominator()) + \r\n (num1.getDenominator() * num2.getNumerator());\r\n \r\n sum.reduce();\r\n \r\n return sum;\r\n }", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "@NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public CurrencyRates() {\n this(DSL.name(\"currency_rates\"), null);\n }", "@Test\n public void FinalConvertEURStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to EUR\n double retValue = one.AUDtoNewCurrency(4, one.exchangeRate, finalSum);\n assertEquals(144.66, retValue, 0.0);\n\n }", "public static BIGNUM add(BIGNUM bn1, BIGNUM bn2) {\n\t\tint diff = 0;\n\t\tdouble COMB = 0;\n\t\tdouble newE = 0;\n\t\tif (bn1.E > bn2.E) {\n\t\t\t\n\t\t\tdouble factor = bn1.E - bn2.E;\n\t\t\tif (factor > 52 ) {\n\t\t\t\treturn bn1;\n\t\t\t}\n\t\t\tCOMB = bn1.NUM + bn2.NUM / Math.pow(10, factor);\n\t\t\tnewE = bn1.E;\n\t\t} else {\n\t\t\tdouble factor = bn2.E - bn1.E;\n\t\t\tif (factor > 52 ) {\n\t\t\t\treturn bn2;\n\t\t\t}\n\t\t\tCOMB = bn2.NUM + bn1.NUM / Math.pow(10, factor);\n\t\t\tnewE = bn2.E;\n\t\t}\n\t\t\n\t\tBIGNUM result = new BIGNUM(COMB, newE);\n\t\treturn result;\n\t}", "@Override\n\tpublic CurrencyConversionBean getCoversionAmount(Double amount, String fromcurrency, String tocurrency) {\n\t\treturn new CurrencyConversionBean(amount, fromcurrency,tocurrency);\n\t}", "public static void main(String[] args) {\n Money r1 = new Money(10, 0);\n Money r2 = new Money(2, 0);\n Money r3 = r1.minus(r2);\n r3.cents();\n System.out.println(r3.cents());\n }", "@Test\n public void testBuyTwoGetOneFree_1() throws Exception {\n Product apple = new Product(\n \"Apple\",\n \"SKU-0003\",\n ToMoney.from(\n Composite.function(Multiply.by(40),\n BinaryFunctionUnaryFunction.adapt(new UnaryCompositeBinaryFunction<Number, Number, Number>(Subtract.instance(),\n new Identity<Number>(),\n Divide.by(3))))));\n\n assertEquals(new Money(0*40),apple.getPrice(0));\n assertEquals(new Money(1*40),apple.getPrice(1));\n assertEquals(new Money(2*40),apple.getPrice(2));\n assertEquals(new Money(2*40),apple.getPrice(3));\n assertEquals(new Money(3*40),apple.getPrice(4));\n assertEquals(new Money(4*40),apple.getPrice(5));\n assertEquals(new Money(4*40),apple.getPrice(6));\n assertEquals(new Money(5*40),apple.getPrice(7));\n assertEquals(new Money(6*40),apple.getPrice(8));\n assertEquals(new Money(6*40),apple.getPrice(9));\n assertEquals(new Money(7*40),apple.getPrice(10));\n }", "public Complex suma(Complex c){\n return this;\n }", "public OVecR2 suma(OVecR2 b){\n //TODO: implementar\n return new OVecR2();\n }", "public static double connection1 (String currency1, String currency2, Match []a){\n\t\tdouble exchangeRate = 0.0;\n\t\tfor(int i=0; i <a.length; i++){\n\t\t\t//If you have both currencies...\n\t\t\tif (a[i].getCurrency1().equalsIgnoreCase(currency1) && a[i].getCurrency2().equalsIgnoreCase(currency2)){\n\t\t\t\t//get the exchange rate\n\t\t\t\texchangeRate = a[i].getExchangeRate();\t\n\t\t\t}\n\t\t}\n\t\treturn exchangeRate;\n\n\t}", "@Override\n\tpublic CurrencyConversionBean calculateConversionAmount(CurrencyConversionRequest currencyConversionRequestRequest) {\n\t\treturn new CurrencyConversionBean(currencyConversionRequestRequest.getAmount(), currencyConversionRequestRequest.getFromcurrency(),currencyConversionRequestRequest.getToCurrency());\n\t}", "public interface ExchangeRateService {\n BigDecimal exchange(Currency curr1, Currency curr2, BigDecimal amount);\n}", "public Complex Plus (Complex z) {\nreturn new Complex(u+z.u,v+z.v);\n\n}", "public static Seq plus(Constant c1, Constant c2) {\n return new Constant((c1.num < c2.num)?c1.num:c2.num, (c1.value + c2.value)); \n }", "public Cart merge(Cart other) {\n other.getItems().forEach(item -> add(new Item(item)));\n return this;\n }", "public static void main(String[] args) {\n System.out.println(\"Creating three Money objects money1, money2, and money3,\");\n System.out.println(\"with the monetary values $0.00, $53.30, and 4.60 respectively.\");\n System.out.println();\n Money money1 = new Money();\n Money money2 = new Money(53,30);\n Money money3 = new Money(4,60);\n\n //Test the class by printing out the values using the getter methods and the toString method.\n System.out.println(\"TESTING PRINTING VALUES\");\n System.out.println(\"Dollars and cents for money1 are \" + money1.getDollars() +\n \" and \" + money1.getCents() + \", and \" +\n \"money1 is displayed as \" + money1.toString() + \".\");\n\n System.out.println(\"Dollars and cents for money2 are \" + money2.getDollars() +\n \" and \" + money2.getCents() + \", and \" +\n \"money2 is displayed as \" + money2.toString() + \".\");\n\n System.out.println(\"Dollars and cents for money3 are \" + money3.getDollars() +\n \" and \" + money3.getCents() + \", and \" +\n \"money3 is displayed as \" + money3.toString() + \".\");\n System.out.println();\n\n //Test the add method by adding together two instances of Money objects.\n System.out.println(\"TESTING THE ADD() METHOD\");\n System.out.println(\"money2 + money3 = \" + (money2.add(money3)).toString() + \".\");\n System.out.println();\n\n //Does the Money class correctly handle all possibilities for input? Did you check edge cases?\n //Also, for the purpose of this exercise, the Money object should not allow negative values.\n System.out.println(\"TESTING CONSTRUCTOR FOR DISALLOWING NEGATIVE VALUES\");\n System.out.println(\"Result of trying to create a money object called negativeDollars with a negative dollars value:\");\n Money negativeDollars = new Money(-3,0);\n System.out.println(\"Dollars and cents for negativeDollars are \" + negativeDollars.getDollars() +\n \" and \" + negativeDollars.getCents() + \", and \" +\n \"negativeDollars is displayed as \" + negativeDollars.toString() + \".\");\n System.out.println();\n\n System.out.println(\"Result of trying to create a money object called negativeCents with a negative cents value:\");\n Money negativeCents = new Money(6,-25);\n System.out.println(\"Dollars and cents for negativeCents are \" + negativeCents.getDollars() +\n \" and \" + negativeCents.getCents() + \", and \" +\n \"negativeCents is displayed as \" + negativeCents.toString() + \".\");\n System.out.println();\n\n //Step 2: Have the parameterized constructor normalize the arguments. That is, convert cents to dollars and cents if cents > 99.\n //Modify the add method to normalize the returned object as well.\n //Modify the constructor to zero out any negative inputs.\n System.out.println(\"TESTING NORMALIZING THE ARGUMENTS TO THE CONSTRUCTOR\");\n System.out.println(\"Creating a new money object tooManyCents with dollars value of 10 and cents value of 225.\");\n Money tooManyCents = new Money(10,225);\n System.out.println(\"Dollars and cents for tooManyCents are \" + tooManyCents.getDollars() +\n \" and \" + tooManyCents.getCents() + \", and \" +\n \"tooManyCents is displayed as \" + tooManyCents.toString() + \".\");\n System.out.println();\n\n System.out.println(\"TESTING NORMALIZING THE ARGUMENTS TO THE ADD() METHOD\");\n System.out.println(\"Creating two money objects addMoney1 and addMoney2, with monetary values of $3.60 and $5.80 respectively.\");\n Money addMoney1 = new Money(3,60);\n Money addMoney2 = new Money(5,80);\n System.out.println(\"addMoney1 + addMoney2 = \" + addMoney1.add(addMoney2));\n System.out.println();\n\n //Step 3: Include a subtract method that subtracts the parameter from the instance to which it is applied.\n //There are several ways we can handle a resulting negative amount. We could crash the program,\n //simply zero out the result, ignore the method if the result is zero, or throw an exception.\n //For now, if the result is negative, zero out the returning object and print an error message. Later we will look at how to throw\n //an exception.\n System.out.println(\"TESTING SUBTRACT() METHOD\");\n System.out.println(\"Creating two new money objects, biggerMoney and smallerMoney, with monetary values of $6.25 and 4.50 respectively.\");\n Money biggerMoney = new Money(6,25);\n Money smallerMoney = new Money(4,50);\n System.out.println(\"biggerMoney.subtract(smallerMoney) = \" + biggerMoney.subtract(smallerMoney) + \".\");\n System.out.println();\n System.out.println(\"smallerMoney.subtract(biggerMoney) results in: \");\n Money result = (smallerMoney.subtract(biggerMoney));\n System.out.println(\"The dollars and cents values for the object returned by smallerMoney.subtract(biggerMoney) are \" +\n result.getDollars() + \" and \" + result.getCents() + \".\");\n System.out.println(\"The object returned a display value of \" + result.toString() + \".\");\n }", "public CurrencyConversion() {\n }", "public ArmCurrency getCompositeDiscountAmount() {\n ArmCurrency rtnVal = new ArmCurrency(0.00);\n try {\n rtnVal = rtnVal.add(settleAmt != null ? settleAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(manualAmt != null ? manualAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(promoAmt != null ? promoAmt : new ArmCurrency(0.00)).round();\n } catch (CurrencyException ce) {\n ce.printStackTrace();\n }\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "@Test(expected=CurrencyMismatchRuntimeException.class)\n public void testAdd() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n\n Money sum = moneyUsd.add(moneyUsd2);\n assertTrue(\"Addition result has same currency\", sum.getCurrency().equals(moneyUsd.getCurrency()));\n assertTrue(\"Addition result has base rounding mode\", sum.getRoundingMode().equals(moneyUsd.getRoundingMode()));\n assertTrue(\"Amounts add up\", sum.getAmount().equals( magnitude1.add(magnitude2)));\n \n // Different currencies should throw an exception\n sum = moneyUsd.add(moneyCad);\n \n fail(\"Addition: different currencies should throw an exception\");\n \n }", "public Money add(Money input) {\n long newAmount = this.amount + input.getAmount();\n this.amount = newAmount;\n Money addedAmount = new Money(currency, newAmount);\n return addedAmount;\n }", "public Balance add(final BigDecimal augend) {\r\n return new Balance(this.value.add(augend));\r\n }", "public double Sumar(double operador_1, double operador_2){\n return SumaC(operador_1, operador_2);\n }", "public Polynomial plus(Polynomial poly) {\n\t\tPolynomial a = this;\n\t\tPolynomial b = poly;\n\n\t\tPolynomial c = new Polynomial(0, Math.max(\n\t\t\t\ta.degree, b.degree), this.field);\n\t\tif (a.field == b.field) {\n\n\t\t\tfor (int i = 0; i <= a.degree; i++) {\n\t\t\t\tc.coefficients[i] += a.coefficients[i];\n\t\t\t}\n\n\t\t\tfor (int i = 0; i <= b.degree; i++) {\n\t\t\t\tc.coefficients[i] += b.coefficients[i];\n\t\t\t}\n\n\t\t\tc = this.modField(c);\n\n\t\t} else {\n\t\t\t// TODO: throw exception or some such.\n\t\t}\n\n\t\treturn c;\n\t}", "Uom getCurrencyUom();", "public KualiDecimal getCurrencyTotal(CashDrawer drawer);", "@Test\n public void FinalConvertJPYStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to JPY\n double retValue = one.AUDtoNewCurrency(5, one.exchangeRate, finalSum);\n assertEquals(17205.02, retValue, 0.0);\n\n }", "BigDecimal getSumOfTransactionsRest(TransferQuery query);", "public Polynomial addition(int position_1, int position_2) {\n Polynomial polynomial;\n if (collection.get(position_1).getLength() > collection.get(position_2).getLength())\n polynomial = new Polynomial(collection.get(position_1).getLength());\n else\n polynomial = new Polynomial(collection.get(position_2).getLength());\n\n for (int i = 0; i < polynomial.getLength(); i++) {\n double a, b;\n try {\n a = collection.get(position_1).getValue(i);\n } catch (Exception e) {\n a = 0;\n }\n try {\n b = collection.get(position_2).getValue(i);\n } catch (Exception e) {\n b = 0;\n }\n\n polynomial.setValue(i, a + b);\n }\n\n return polynomial;\n }", "public Option<CurrencyExchangeRate> indirectRateFor(final Currency curA, final Currency curB) throws NoSuchExchangeRateException {\n\n // TODO Improve this to attempt to use defaultCurrency first\n Option<CurrencyExchangeRate> directRateFor = directRateFor(curA, curB);\n if (!directRateFor.isEmpty()) {\n return directRateFor;\n } else {\n List<CurrencyExchangeRate> ratesWithCurA = new ArrayList<CurrencyExchangeRate>();\n List<CurrencyExchangeRate> ratesWithCurB = new ArrayList<CurrencyExchangeRate>();\n for (CurrencyExchangeRate r : this.rates) {\n if (r.base.currency == curA || r.counter.currency == curA) {\n ratesWithCurA.add(r);\n }\n if (r.base.currency == curB || r.counter.currency == curB) {\n ratesWithCurB.add(r);\n }\n }\n List<Currency> curs = new ArrayList<Currency>();\n for (Currency cur : this.currencies) {\n if ((containsBaseCurrency(ratesWithCurA, cur) || containsCounterCurrency(ratesWithCurA, cur)) && \n (containsBaseCurrency(ratesWithCurB, cur) || containsCounterCurrency(ratesWithCurB, cur))) {\n curs.add(cur);\n }\n }\n if (curs.size() > 0) {\n Money m = Money(1d, curs.get(0));\n return Some.some(new CurrencyExchangeRate(convert(m, curA), convert(m, curB)));\n } else {\n return None.none();\n }\n }\n }", "public static Node add(Node poly1, Node poly2) {\r\n\t\t/** COMPLETE THIS METHOD **/\r\n\t\t// FOLLOWING LINE IS A PLACEHOLDER TO MAKE THIS METHOD COMPILE\r\n\t\t// CHANGE IT AS NEEDED FOR YOUR IMPLEMENTATION\r\n\t\t//Equation for the first polynomial\r\n\t\tNode Equation1=poly1;\r\n\t\t//Equation for the second polynomial\r\n Node Equation2=poly2;\r\n Node Summation= null;\r\n Node hold=null;\r\n //this will hold the temporary adding\r\n float tmp =0;\r\n\r\n \r\n if(Equation1==null) {\r\n \treturn Equation2;\r\n }\r\n if(Equation2==null) {\r\n \treturn Equation1;\r\n }\r\n\r\n //loops through both equations and check to see if both are null\r\n while(Equation1!=null && Equation2!=null) {\r\n \t\r\n \t//if the degree is higher when the terms are compared then just place \r\n \t//the equation down\r\n \t\r\n \t\r\n \t\r\n \tif(Equation2.term.degree <Equation1.term.degree) {\r\n \t\t\r\n \t//\tSummation = new Node(Equation2.term.coeff,Equation2.term.degree,Summation);\r\n \t\tSummation = new Node(Equation1.term.coeff,Equation1.term.degree,Summation);\r\n \t\t\r\n \t\t\r\n \t\t//goes to next term to see if this term will match the equation\r\n \t\t\r\n \t\t\tEquation2 =Equation2.next;\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \telse if(Equation2.term.degree >Equation1.term.degree) {\r\n \t\tSummation = new Node(Equation1.term.coeff,Equation1.term.degree,Summation);\r\n \t\t//goes to next term to see if this term will match the equation\r\n \t\t\r\n \t\tEquation1= Equation1.next;\r\n \t}\r\n \t\t\r\n \telse if(Equation1.term.degree==Equation2.term.degree) {\r\n \t\ttmp= Equation1.term.coeff + Equation2.term.coeff;\r\n \t\tif(tmp==0) {\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\r\n \t\t\t\tSummation = new Node(tmp,Equation1.term.degree,Summation);\r\n \t\t\r\n \t\t\t\t\r\n \t\t\t\tif(Equation1!=null) {\r\n \t\t\t\tEquation1=Equation1.next;\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tif(Equation2!=null){\r\n \t\t\t\t\tEquation2=Equation2.next;\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\r\n \t\t\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }\r\n \r\n \r\n \r\n if(Equation1 == null) {\r\n \t\r\n \tEquation2= Equation2.next;\r\n \twhile(Equation2!= null) {\r\n \t\t\r\n \t\tSummation = new Node(Equation2.term.coeff,Equation2.term.degree,Summation);\r\n \t\tEquation2 = Equation2.next;\r\n \t}\r\n }\r\n \r\n if(Equation2 == null) {\r\n \t\r\n \tEquation1=Equation1.next;\r\n \twhile(Equation1!= null) {\r\n \t\t\r\n \t\tSummation = new Node(Equation1.term.coeff,Equation1.term.degree,Summation);\r\n \t\tEquation1 = Equation1.next;\r\n \t}\r\n }\r\n \r\n \r\n \t\twhile(Summation!=null) {\r\n \t\t\thold = new Node(Summation.term.coeff,Summation.term.degree,hold );\r\n \t\t\tSummation = Summation.next;\r\n \t\t}\r\n \r\n\t\treturn hold;\r\n\t}", "public PhanSo congPS(PhanSo ps2){\n int a = tuSo*ps2.mauSo + ps2.tuSo*mauSo;\n int b = mauSo*ps2.mauSo;\n\n return new PhanSo(a,b);\n }", "public T sum(T first, T second);", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public ArmCurrency getCompositeAmount() {\n return this.compositeAmount;\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public CurrencyRates(Name alias) {\n this(alias, CURRENCY_RATES);\n }", "@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }", "BigDecimal getAmount();", "public Pokemon.Currency.Builder getCurrencyBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getCurrencyFieldBuilder().getBuilder();\n }", "public OldSwedishCurrency()\r\n\t{\r\n\t\tthis(0, 0, 0);\r\n\t}", "@Override\n\tpublic Double getSumofCost(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT SUM(h.cost) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tDouble total=this.getJdbcTemplate().queryForObject(sql, Double.class, supplyStartDate, supplyLastDate);\n\t\treturn total;\n\t}", "@Test\n public void testFinalConvertAUDStandard(){\n // set up\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to USD\n double retValue = one.AUDtoNewCurrency(1, one.exchangeRate, finalSum);\n assertEquals(233.32, retValue, 0.0);\n\n }", "public Money getTotalBalance();", "@Override\r\n\tpublic double calculate(String fromCurrency, String toCurrency,\r\n\t\t\tLong quantity) {\r\n\t\tcurrFxRatesGraph = exchngRateMapping.getCurrencyFxRatesGraph();\r\n\t\tdouble calcValue=0.00;\r\n\t\tGraphPath<String, Double> graphPath=null;\r\n\t\ttry {\r\n\t\t\tgraphPath = DijkstraShortestPath.findPathBetween(currFxRatesGraph, fromCurrency, toCurrency);\r\n\t\t\tif ( graphPath == null) {\r\n\t\t\t\tthrow new NoConversionMatchFoundException(\"No conversion pairing found for pair \"+fromCurrency+\" and \"+toCurrency);\r\n\t\t\t}else {\r\n\t\t\t\tList<Double> listOfpath = graphPath.getEdgeList();\r\n\t\t\t\t\r\n\t\t\t\tBigDecimal rate = new BigDecimal(1.00);\r\n\t\t\t\tfor (Double edge : listOfpath) {\r\n\t\t\t\t\trate = rate.multiply(BigDecimal.valueOf(edge.doubleValue()));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcalcValue = rate.multiply(BigDecimal.valueOf(quantity)).doubleValue();\r\n\t\t\t\t\r\n\t\t\t\tString precision = currencyPrecisionConfig.getProp().getProperty(toCurrency);\r\n\t\t\t\t\r\n\t\t\t\tif(!isInvalidPrecision(precision)) {\r\n\t\t\t\t\tString frmtCalcValue = fmt.format(\"%.\"+precision+\"f\", calcValue).toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcalcValue = Double.parseDouble(frmtCalcValue);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tlog.error(\"Precision value for currency \"+toCurrency+\" is invalid,please check \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(NoConversionMatchFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(IllegalArgumentException e) {\r\n\t\t\tlog.error(\"Invalid Currency passed for calculation, Please look for option 1 & 2 to add currencies and pair in system\");\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn calcValue;\r\n\t}", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "public void addCustomerMoney(Coin c){\n customerMoney.add(c);\n }", "public static Object add(Object val1, Object val2) {\n\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).add((BigDecimal) val2);\n\t\t} else if (isFloat(val1) && isInt(val2)) {\n\t\t\treturn ((BigDecimal) val1).add(new BigDecimal((BigInteger) val2));\n\t\t} else if (isInt(val1) && isFloat(val2)) {\n\t\t\treturn new BigDecimal((BigInteger) val1).add((BigDecimal) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).add((BigInteger) val2);\n\t\t} else if (isString(val1) || isString(val2)) {\n\t\t\treturn val1.toString() + val2.toString();\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in add\");\n\t}", "Uom getOrigCurrencyUom();", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 + num2;\n\t\t}", "public static RationalNumber add(RationalNumber r1, RationalNumber r2)\n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t//sum of the numerator storage:\n\t\tint sumOfNum = 0;\n\t\t\n\t\t//Extracting the numerator from the instances.\n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\t//finding the greatest common denominator:\n\t\tint lowestCommon = lowestCommonFactor(r1.getDenominator(), r2.getDenominator());\n\t\t\n\t\t//Adding the numerator:\n\t\tnum1 *= (lowestCommon / r1.getDenominator());\n\t\tnum2 *= (lowestCommon / r2.getDenominator());\n\t\tsumOfNum = num1 + num2;\t//NUMERATOR SUM ALONE!\n\t\t//converting from an integer into a fraction\n\t\tRationalNumber ans = new RationalNumberImpl_Luong(sumOfNum,lowestCommon);\n\t\treturn ans;\n\t}", "public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}", "@Test\n public void FinalConvertSGDStandard(){\n CurrencyRates one = new CurrencyRates();\n\n //Initialise list of sums\n ArrayList<Double> sumList1 = new ArrayList<Double>();\n sumList1.add(10.50);\n sumList1.add(11.50);\n sumList1.add(80.00);\n sumList1.add(10.12);\n sumList1.add(50.60);\n sumList1.add(70.60);\n\n double finalSum = one.finalSumAUD(sumList1);\n\n //converts AUD to SGD\n double retValue = one.AUDtoNewCurrency(3, one.exchangeRate, finalSum);\n assertEquals(221.65, retValue, 0.0);\n\n }", "public interface ICurrencyExchangeService {\n/**\n * Requests the current exchange rate from one currency\n * to another.\n * @param fromCurrency the original Currency\n * @param toCurrency the 'destination' or final Currency\n * @return the currency exchange rate\n */\n\n double requestCurrentRate(String fromCurrency,\n String toCurrency);\n}", "private static Suma creaObjetoSuma (){\n Suma suma = new Suma(4,6);\n return suma; \n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public interface AmountFactory {\r\n Amount amountFrom(BigDecimal amountValue);\r\n\r\n Amount amountFrom(BigDecimal amountValue, BigDecimal multiplier);\r\n}", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public static ChipSet addChipSets(ChipSet cs1, ChipSet cs2) {\n\t\tChipSet cs = new ChipSet();\n\n\t\tHashSet<CtColor> allcolors = new HashSet<CtColor>();\n\t\tallcolors.addAll(cs1.getColors());\n\t\tallcolors.addAll(cs2.getColors());\n\n\t\tfor (CtColor color : allcolors)\n\t\t\tcs.setNumChips(color, cs1.getNumChips(color) + cs2.getNumChips(color));\n\n\t\treturn cs;\n\t}", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "public String getCurrency() {\n return this.currency;\n }", "public Option<CurrencyExchangeRate> directRateFor(final Currency curA, final Currency curB ) {\n Option<CurrencyExchangeRate> find = sequence(rates).find(new Predicate<CurrencyExchangeRate>() {\n public boolean matches(CurrencyExchangeRate r) {\n return (r.base.currency == curA && r.counter.currency == curB || r.base.currency == curB && r.counter.currency == curA);\n }\n });\n return find;\n }", "public static Currency convert(Currency cur, String typeTo) throws CurrencyException {\r\n\t\tCurrency.checkType(typeTo);\r\n\t\t\r\n\t\tCurrency result = new Currency(typeTo);\r\n\t\tif(cur.getType().equals(typeTo)) {\r\n\t\t\tthrow new CurrencyException(\"Can not convert currency \" + typeTo + \" to itself.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result.setValue(cur.getValue() * m_rt.getRate(cur.getType(), typeTo));\r\n\t}", "Money getCashSettlementAmount();", "public Complex add(Complex other) {\r\n Complex result = new Complex();\r\n result.real = this.real + other.real;\r\n result.imaginary = this.imaginary + other.imaginary;\r\n return result;\r\n }", "public Object getCurrency() {\n\t\treturn null;\n\t}", "public void addCurrency(String csymbol, String cname, BigDecimal crate, BigDecimal cunit) {\n CurrencyExchangeRateBean bean = new CurrencyExchangeRateBean();\n bean.setCurrencyId(csymbol);\n bean.setExchangeRate(crate);\n bean.setUnit(cunit);\n currencies.add(bean);\n }", "public void addCurrency(String csymbol, String cname, BigDecimal crate, BigDecimal cunit) {\n CurrencyExchangeRateBean bean = new CurrencyExchangeRateBean();\n bean.setCurrencyId(csymbol);\n bean.setExchangeRate(crate);\n bean.setUnit(cunit);\n currencies.add(bean);\n }", "String getTradeCurrency();", "public Percentage plus(Percentage other) {\n return new Percentage(amount.plus(other.amount));\n }", "public void add(Money money2) {\n dollars += money2.getDollars();\n cents += money2.getCents();\n if (cents >= 100) {\n dollars += 1;\n cents -= 100;\n }\n }", "@Test\n public void testSubtract() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n\n Money sum = moneyUsd.subtract(moneyUsd2);\n assertTrue(\"Subtraction result has same currency\", sum.getCurrency().equals(moneyUsd.getCurrency()));\n assertTrue(\"Subtraction result has base rounding mode\", sum.getRoundingMode().equals(moneyUsd.getRoundingMode()));\n assertTrue(\"Subtraction difference is as expected\", sum.getAmount().equals( magnitude1.subtract(magnitude2)));\n \n // Different currencies should throw an exception\n try {\n sum = moneyUsd.subtract(moneyCad);\n fail(\"Subtraction: different currencies should throw an exception\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n }", "@SuppressWarnings(\"unchecked\")\n private static Unit<? extends Quantity> getInstance(Element[] leftElems,\n Element[] rightElems) {\n\n // Merges left elements with right elements.\n Element[] result = new Element[leftElems.length + rightElems.length];\n int resultIndex = 0;\n for (int i = 0; i < leftElems.length; i++) {\n Unit unit = leftElems[i]._unit;\n int p1 = leftElems[i]._pow;\n int r1 = leftElems[i]._root;\n int p2 = 0;\n int r2 = 1;\n for (int j = 0; j < rightElems.length; j++) {\n if (unit.equals(rightElems[j]._unit)) {\n p2 = rightElems[j]._pow;\n r2 = rightElems[j]._root;\n break; // No duplicate.\n }\n }\n int pow = (p1 * r2) + (p2 * r1);\n int root = r1 * r2;\n if (pow != 0) {\n int gcd = gcd(Math.abs(pow), root);\n result[resultIndex++] = new Element(unit, pow / gcd, root / gcd);\n }\n }\n\n // Appends remaining right elements not merged.\n for (int i = 0; i < rightElems.length; i++) {\n Unit unit = rightElems[i]._unit;\n boolean hasBeenMerged = false;\n for (int j = 0; j < leftElems.length; j++) {\n if (unit.equals(leftElems[j]._unit)) {\n hasBeenMerged = true;\n break;\n }\n }\n if (!hasBeenMerged)\n result[resultIndex++] = rightElems[i];\n }\n\n // Returns or creates instance.\n if (resultIndex == 0)\n return ONE;\n else if ((resultIndex == 1) && (result[0]._pow == result[0]._root))\n return result[0]._unit;\n else {\n Element[] elems = new Element[resultIndex];\n for (int i = 0; i < resultIndex; i++) {\n elems[i] = result[i];\n }\n return new ProductUnit<Quantity>(elems);\n }\n }" ]
[ "0.59264445", "0.5872528", "0.582814", "0.57477033", "0.57436305", "0.5742557", "0.57185197", "0.56976026", "0.5599686", "0.5597158", "0.55714333", "0.5530722", "0.55253816", "0.5497655", "0.54693484", "0.5425071", "0.54083794", "0.53859377", "0.5373828", "0.53580564", "0.5326289", "0.52798426", "0.52430713", "0.5240878", "0.52369803", "0.521929", "0.52177286", "0.51952153", "0.5192228", "0.5182986", "0.51661044", "0.516098", "0.5152785", "0.5129123", "0.5123919", "0.5108588", "0.51082623", "0.51025224", "0.5082284", "0.50821483", "0.50753206", "0.5070817", "0.50695246", "0.50621116", "0.5030978", "0.5029319", "0.5011461", "0.5006586", "0.49961957", "0.49960583", "0.498582", "0.49517438", "0.49474388", "0.4939944", "0.49376738", "0.49294108", "0.4921162", "0.49210227", "0.49210227", "0.49207854", "0.49192303", "0.4914375", "0.49120912", "0.49118", "0.49115494", "0.49037886", "0.48966527", "0.48938885", "0.48911077", "0.48903334", "0.48883104", "0.48871598", "0.48784953", "0.48696163", "0.48675555", "0.48524842", "0.484437", "0.4843743", "0.48422167", "0.48346484", "0.4832809", "0.48304096", "0.482996", "0.482996", "0.48200843", "0.48017317", "0.48011103", "0.47986868", "0.47968426", "0.47932518", "0.47921908", "0.47890174", "0.4782688", "0.47795463", "0.47795463", "0.4778057", "0.47771955", "0.47657895", "0.476418", "0.47617304" ]
0.6723115
0
Returns new Currency object that contains a result of subtraction
public static Currency Subtract(Currency op1, Currency op2) throws CurrencyException { if(!op1.getType().equals(op2.getType())) throw new CurrencyException("Subtraction: different currency types!"); Currency result = new Currency(op1.getType()); return result.setValue(op1.getValue()-op2.getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Money subtract(Money input) {\n long newAmount = this.amount - input.getAmount();\n this.amount = newAmount;\n Money subtractedAmount = new Money(currency, newAmount);\n return subtractedAmount;\n }", "public Balance subtract(final BigDecimal subtrahend) {\r\n return new Balance(this.value.subtract(subtrahend));\r\n }", "@Test\n public void testSubtract() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n\n Money sum = moneyUsd.subtract(moneyUsd2);\n assertTrue(\"Subtraction result has same currency\", sum.getCurrency().equals(moneyUsd.getCurrency()));\n assertTrue(\"Subtraction result has base rounding mode\", sum.getRoundingMode().equals(moneyUsd.getRoundingMode()));\n assertTrue(\"Subtraction difference is as expected\", sum.getAmount().equals( magnitude1.subtract(magnitude2)));\n \n // Different currencies should throw an exception\n try {\n sum = moneyUsd.subtract(moneyCad);\n fail(\"Subtraction: different currencies should throw an exception\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n }", "public Money subtract(Money moneyA, Money moneyB) throws NoSuchExchangeRateException {\n return Money(moneyA.amount.subtract(convert(moneyB, moneyA.currency).amount), moneyA.currency);\n }", "public static void main(String[] args) {\n Money r1 = new Money(10, 0);\n Money r2 = new Money(2, 0);\n Money r3 = r1.minus(r2);\n r3.cents();\n System.out.println(r3.cents());\n }", "public AmmoAmountUncapped subtract(AmmoAmountUncapped c){\n if (!canBuy(c)){ // c is\n throw new IllegalArgumentException(\"Cost is greater than available amounts\");\n } else {\n Map<AmmoColor,Integer> newMap = new EnumMap<>(getAmounts());\n for (Map.Entry<AmmoColor, Integer> i: c.getAmounts().entrySet()){\n newMap.put(i.getKey(), getAmounts().get(i.getKey())-i.getValue());\n }\n return new AmmoAmountUncapped(newMap);\n }\n }", "public Fraction subtract(Fraction f){\n return new Fraction(this.numerator * f.denominator - f.numerator * this.denominator, this.denominator * f.denominator);\n }", "BigDecimal getOrigAmount();", "public ArmCurrency getSubTotal() {\n try {\n return (getPrice().subtract(getCompositeDiscountAmount()).round());\n } catch (CurrencyException ce) {\n ce.printStackTrace();\n }\n return (getPrice());\n }", "BigDecimal getPreviousClosePrice();", "@Override\n protected Currency clone() {\n final Currency currency = new Currency();\n if (data != null) {\n currency.data = data.clone();\n }\n return currency;\n\n }", "public Percentage minus(Percentage other) {\n return new Percentage(amount.minus(other.amount));\n }", "public Complex subtract(Complex other) {\r\n Complex result = new Complex();\r\n result.real = this.real - other.real;\r\n result.imaginary = this.imaginary - other.imaginary;\r\n return result;\r\n }", "Currency getCurrency();", "public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "BaseNumber subtract(BaseNumber operand);", "public Fraction subtract(Fraction subtrahend)\n {\n int newDenominator = (this.getDenominator() * subtrahend.getDenominator());\n int convertedNumerator1 = (this.getNumerator() * subtrahend.getDenominator());\n int convertedNumerator2 = (subtrahend.getNumerator() * this.getDenominator());\n int newNumerator = convertedNumerator1 - convertedNumerator2;\n \n Fraction newFraction =new Fraction(newNumerator, newDenominator);\n return newFraction;\n }", "public Currency getCurrency();", "public ArmCurrency getCompositeDiscountAmount() {\n ArmCurrency rtnVal = new ArmCurrency(0.00);\n try {\n rtnVal = rtnVal.add(settleAmt != null ? settleAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(manualAmt != null ? manualAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(promoAmt != null ? promoAmt : new ArmCurrency(0.00)).round();\n } catch (CurrencyException ce) {\n ce.printStackTrace();\n }\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "public Money negate() {\n return new Money(getAmount().negate(), getCurrency());\n }", "public vec3 minus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}", "public static Volume do_calc() {\n\t\treturn new Volume();\n\t}", "public static Object subtract(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract((BigDecimal) val2);\n\t\t} else if (isFloat(val1) && isInt(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract(new BigDecimal(\n\t\t\t\t\t(BigInteger) val2));\n\t\t} else if (isInt(val1) && isFloat(val2)) {\n\t\t\treturn new BigDecimal((BigInteger) val1)\n\t\t\t\t\t.subtract((BigDecimal) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).subtract((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in subtract\");\n\t}", "public BigDecimal getPriceStdOld();", "public Complex sub(Complex c) {\n return new Complex(this.re - c.re, this.im - c.im);\n }", "Uom getOrigCurrencyUom();", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public vec3 minus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}", "public static CryptoCurrency CryptoCurrency(DBObject row) {\n\t\tCryptoCurrency currency = new CryptoCurrency();\n\t\tcurrency.setAvgPrice((int) row.get(\"price\"));\n\t\tcurrency.setMarketPlace((String) row.get(\"market\"));\n\t\tcurrency.setPair((String) row.get(\"pair\"));\n\t\tcurrency.setDate((LocalDate) row.get(\"date\"));\n\t\treturn currency;\n\n\t}", "public Rational subtract(Rational other)\n\t{\n\t\tint diffNumer = (getNumer() * other.getDenom()) - (getDenom() * other.getNumer());\n\t\tint diffDenom = (getDenom() * other.getDenom());\n\n\t\tRational difference = new Rational(diffNumer, diffDenom);\n\t\tdifference.normalize();\n\t\treturn difference;\n\t}", "@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}", "public Polynomial minus(Polynomial poly) {\n\t\tPolynomial a = this;\n\t\tPolynomial b = poly;\n\n\t\tPolynomial c = new Polynomial(0, Math.max(\n\t\t\t\ta.degree, b.degree), this.field);\n\t\tif (a.field == b.field) {\n\n\t\t\tfor (int i = 0; i <= a.degree; i++) {\n\t\t\t\tc.coefficients[i] += a.coefficients[i];\n\t\t\t}\n\n\t\t\tfor (int i = 0; i <= b.degree; i++) {\n\t\t\t\tc.coefficients[i] -= b.coefficients[i];\n\t\t\t}\n\n\t\t\tc = this.modField(c);\n\n\t\t} else {\n\t\t\t// TODO: throw exception or some such.\n\t\t}\n\n\t\treturn c;\n\t}", "@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }", "public void subtract(Money money2) {\n dollars -= money2.getDollars();\n cents -= money2.getCents();\n if (cents < 0) {\n dollars -= 1;\n cents += 100;\n }\n if (dollars < 0) {\n dollars = 0;\n cents = 0;\n }\n }", "public double getCEMENTAmount();", "public static BIGNUM subtract(BIGNUM bn1, BIGNUM bn2) {\n\t\tBIGNUM newbn = new BIGNUM(-bn2.NUM, bn2.E);\n\t\treturn add(bn1, newbn);\n\t}", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public <V extends Number> FluentExp<V> minus (SQLExpression<V> expr)\n {\n return new Sub<V>(this, expr);\n }", "public ComplexNumber sub(ComplexNumber c) {\n\t\tif (c == null) {\n\t\t\tthrow new NullPointerException(\"The given complex number is null!\");\n\t\t}\n\t\tdouble real = getReal() - c.getReal();\n\t\tdouble imaginary = getImaginary() - c.getImaginary();\n\n\t\treturn new ComplexNumber(real, imaginary);\n\t}", "public void subtract(float amount) {\n Money amountMoney = new Money(amount);\n subtract(amountMoney);\n }", "public static OperationMBean getSubtractOperationMBean()\n {\n return new Operation(\"subtract\");\n }", "public OldSwedishCurrency()\r\n\t{\r\n\t\tthis(0, 0, 0);\r\n\t}", "@Override\n\tpublic double substract(double a, double b) {\n\t\treturn (a-b);\n\t}", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "public void testMinus() {\n \tMeasurement a = new Measurement(2,6);\n \tMeasurement b = new Measurement(1,5);\n \tMeasurement c = a.minus(b);\n \t\n assertTrue(a.getFeet() == 2);\n assertTrue(a.getInches() == 6);\n assertTrue(b.getFeet() == 1);\n assertTrue(b.getInches() == 5);\n \n assertTrue(c.getFeet() == 1);\n assertTrue(c.getInches() == 1);\n }", "public static double Subtract(double _a,double _b){\n\t\tBigDecimal a=new BigDecimal(Double.toString(_a));\n\t\tBigDecimal b=new BigDecimal(Double.toString(_b));\t\n\t\treturn a.subtract(b).doubleValue();\n\t}", "public Inventory<T> subtract(final T item) {\n if (item == null) {\n return this;\n }\n final Map<T, Integer> freshMap = new HashMap<>();\n freshMap.putAll(items);\n if (freshMap.get(item) <= 0) {\n freshMap.put(item, 0);\n } else {\n freshMap.put(item, freshMap.get(item) - 1);\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public Fraction minus(Fraction other) {\n int finder = MathUtils.findLowestCommonMultiple(denominator, other.getDenominator());\n\n int idk = finder/denominator;\n int idc = finder/other.getDenominator();\n int fraction = (idk * getNumerator()) - (idc * other.getNumerator());\n return new Fraction(fraction, finder);\n\n }", "public static Rational subtract(Rational num1, Rational num2){\r\n Rational difference = new Rational();\r\n \r\n // subtract common denominator\r\n difference.denominator = num1.getDenominator() * num2.getDenominator();\r\n difference.numerator = (num1.getNumerator() * num2.getDenominator()) -\r\n (num2.getNumerator() * num1.getDenominator());\r\n \r\n difference.reduce();\r\n return difference;\r\n }", "public Inatnum subtract(Inatnum a){//purpose: to subtract 2 values\n\t\ttry {return(this.pred().subtract(a).pred());}//take the previous value of this and the previous value of a until one of them hits zero and then return the other value\n\t\tcatch(Exception e) {System.out.println(\"Error add: \"+ e.getMessage());// otherwise return an error, this needs to be greater than or equal to a otherise we'd get a negative\n\t\t\t\t \t\t\t\t\t\t\t// and there are no negative natural numbers\n\t\treturn null;}\n\t\t\t}", "public static ObjectInstance getDivideToSubtractOperationCallObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 4);\n properties.put(\"sourceEndpoint\", StringMangler\n .EncodeForJmx(getDivideEndpointMBean().getUrl()));\n properties.put(\"sourceOperation\", getDivideOperationMBean()\n .getName());\n properties.put(\"targetEndpoint\", StringMangler\n .EncodeForJmx(getSubtractEndpointMBean().getUrl()));\n properties.put(\"targetOperation\", getSubtractOperationMBean()\n .getName());\n properties.put(\"jmxType\", new OperationCall().getJmxType());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"'Divide-Subtract' OperationCall ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new OperationCall().getClass().getName());\n }", "public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }", "public Coordinate subtract(Coordinate other) {\n return new Coordinate(usubtract(_coord, other._coord));\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "public void subtract() {\n\t\t\n\t}", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "double getMoney();", "public Complex subtract(Complex complex) {\r\n double real = this.real_part - complex.real_part;\r\n double imag = this.imaginary_part - complex.imaginary_part;\r\n return new Complex(real, imag);\r\n }", "public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }", "public Polynomial subtract(Polynomial p){\n\t\tPolynomial sum = new Polynomial();\n\n\t\t\n\t\t for (int i = 0 ; i < p.maxindex; i++) {\n\t\t //if (p.data[i] != 0)\n\t\t sum.setCoefficient(i, this.data[i]-p.data[i]);\n\t\t }\n\t\t if(this.maxindex>p.maxindex)\n\t\t {\n\t\t\t for(int i=p.maxindex-1;i<=this.maxindex;i++)\n\t\t\t\t sum.setCoefficient(i, this.data[i]);\n\t\t }\n\t\t \n\t\t return sum;\n\t}", "public ArmCurrency getPrice(boolean withQty) {\n ArmCurrency rtnVal = price;\n if (withQty) {\n rtnVal = price.multiply((double)qty).round();\n }\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "public BigInt minus(BigInt rhs) throws BigIntException {\n if (null == rhs) {\n throw new BigIntException(\"null parameter\");\n }\n\n if (!isPositive && rhs.isPositive) {\n // -x-y=-(x+y)\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n BigInt result = num1.plus(num2);\n result.swapSign();\n\n return result;\n } else if (!isPositive && !rhs.isPositive) {\n // -x-(-y)=y-x\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n return num2.minus(num1);\n } else if (isPositive && !rhs.isPositive) {\n // x-(-y)=x+y\n return plus(new BigInt(rhs.number, true));\n }\n\n // x-y\n int length = Math.max(number.size(), rhs.number.size());\n\n // Set the bigger and the smaller number\n ArrayList<Integer> bigger, smaller;\n boolean isDiffPositive = isGreater(rhs);\n if (isDiffPositive) {\n // this is greater\n bigger = new ArrayList<Integer>(number);\n smaller = new ArrayList<Integer>(rhs.number);\n } else {\n // rhs is greater\n bigger = new ArrayList<Integer>(rhs.number);\n smaller = new ArrayList<Integer>(number);\n }\n\n ArrayList<Integer> diff = new ArrayList<Integer>();\n int digit_diff = 0;\n for (int i = 0; i < length; ++i) {\n int subtracting_current_digit = getDigit(bigger, i);\n int subtracted_current_digit = getDigit(smaller, i);\n\n digit_diff = subtracting_current_digit - subtracted_current_digit;\n if (0 > digit_diff) {\n // The subtracted is bigger so we need to borrow\n borrow(bigger, i);\n digit_diff += 10;\n }\n\n diff.add(digit_diff);\n }\n\n return new BigInt(diff, isDiffPositive);\n }", "public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "@Override\r\n\tpublic void minusFromCost() {\n\t\t\r\n\t}", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public double removeBalance() {\n\n if (validPurchase) {\n validPurchase = false; // resets valid purchase to false\n return balance.getBalance(); // gives balance\n }\n else { // if no valid purchase was made\n return 0.0;\n }\n }", "public ResourceSpec subtract(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot subtract null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tcheckArgument(other.lessThanOrEqual(this), \"Cannot subtract a larger ResourceSpec from this one.\");\n\n\t\tfinal ResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.subtract(other.cpuCores),\n\t\t\tthis.taskHeapMemory.subtract(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.subtract(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.subtract(other.managedMemory));\n\n\t\ttarget.extendedResources.putAll(extendedResources);\n\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> {\n\t\t\t\tfinal Resource subtracted = v1.subtract(v2);\n\t\t\t\treturn subtracted.getValue().compareTo(BigDecimal.ZERO) == 0 ? null : subtracted;\n\t\t\t});\n\t\t}\n\t\treturn target;\n\t}", "public Complex minus(Complex a) {\n float real = this.re - a.re;\n float imag = this.im - a.im;\n return new Complex(real, imag);\n }", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "BigDecimal getClosePrice();", "@Override\n public Polynomial subtract(Polynomial q) {\n if (q == null)\n throw new NullPointerException(\"cannot subtract null polynomials\");\n\n return subSparse(this, toSparsePolynomial(q));\n }", "public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}", "CleanPrice getCleanPrice();", "public ArmCurrency getOriginalVATAmount() {\n ArmCurrency rtnVal = this.itemOriginalVat;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "public void deductCoin(int c) {\n setCoin(getCoin() - c);\n }", "Rational subtract(Rational p){\n\n Rational firstarg =new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n firstarg=firstarg.lowestform();\n p=p.lowestform();\n //need to get it in it's lowest form before you can work with it\n int tempgcd=gcd(firstarg.denominator,p.denominator);\n if(firstarg.denominator==p.denominator)\n {\n // if both denominators are the same just got to add the numerator\n p.numerator=firstarg.numerator-p.numerator;;\n return p;\n }\n else if(tempgcd==1)\n {\n int tempdenominator=p.denominator;\n\n p.denominator=firstarg.denominator*p.denominator;\n p.numerator=p.numerator*firstarg.denominator;\n\n //calculate the second fraction\n firstarg.numerator=firstarg.numerator*tempdenominator;\n firstarg.denominator=firstarg.denominator*tempdenominator;\n\n //now just add the numerators\n p.numerator=firstarg.numerator-p.numerator;;\n\n return p;\n }\n else if(tempgcd>1)\n {\n\n p.denominator=tempgcd*p.denominator;\n p.numerator=p.numerator*tempgcd;\n //calculate the second fraction by getting the gcd and multiplying it by the top and bottom of bot fractions\n firstarg.numerator=firstarg.numerator*tempgcd;\n firstarg.denominator=firstarg.denominator*tempgcd;\n //now just add the numerators\n p.numerator=firstarg.numerator-p.numerator;\n\n return p;\n }\n return null;\n\n }", "public Vector<T> subtract(T aScalar);", "public Vector3 sub(Vector3 other) {\n\t\treturn new Vector3(x - other.x, y - other.y, z - other.z);\n\t}", "public ArmCurrency getRetailExportOriginalVatLessTotalVat()\n throws CurrencyException {\n return getRetailExportOriginalVat().subtract(getRetailExportTotalVat());\n }", "public Polynomial subtract(Polynomial p){\n\t\tfor(int i=0; i<degreecoeff.length;i++) {\n\t\t\t\n\t\t\tp.degreecoeff[i]=degreecoeff[i]-p.degreecoeff[i];\n\t\t}\n\t\treturn p;\n\t}", "public T negative() {\n T A = copy();\n ops.changeSign(A.mat);\n return A;\n }", "public Function subtract(Function f) {\r\n Function diff = new Function();\r\n for (int i = 0; i < this.cindex; i++){\r\n diff.addTerm(this.co[i],this.degree[i]); \r\n }\r\n for (int i = 0; i < f.cindex; i++){\r\n diff.addTerm(-1*f.co[i],f.degree[i]); \r\n }\r\n for (int i = 0; i < this.sinindex; i++){\r\n diff.addTerm(this.sinc[i],\"sin\",this.sind[i]); \r\n } \r\n for (int i = 0; i < f.sinindex; i++){\r\n diff.addTerm(-1*f.sinc[i],\"sin\",f.sind[i]); \r\n }\r\n for (int i = 0; i < this.cosindex; i++){\r\n diff.addTerm(this.cosc[i],\"cos\",this.cosd[i]); \r\n }\r\n for (int i = 0; i < f.cosindex; i++){\r\n diff.addTerm(-1*f.cosc[i],\"cos\",f.cosd[i]); \r\n }\r\n for (int i = 0; i < this.tanindex; i++){\r\n diff.addTerm(this.tanc[i],\"tan\",this.tand[i]); \r\n }\r\n for (int i = 0; i < f.tanindex; i++){\r\n diff.addTerm(-1*f.tanc[i],\"tan\",f.tand[i]); \r\n }\r\n return diff; \r\n\t}", "@Override\n public Float minus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs - rhs;\n\treturn res;\n }", "BigDecimal getClosingDebitBalance();", "IVec3 sub(IVec3 v);", "public static NumberP Subtraction(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Subtraction\n ); \t\n }", "BigDecimal getClosingCreditBalance();", "BigDecimal getAmount();", "Price getTradePrice();", "public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }", "public final void minus (Unit unit) throws ArithmeticException {\n\t\tboolean error = false;\n\t\tif (((mksa|unit.mksa)&_abs)!=0) {\t// Special dates\n\t\t\tif (mksa == unit.mksa)\t\t// date1 - date2\n\t\t\t\tmksa ^= _abs;\t\t\t// ... not a date any more\n\t\t\telse if ((unit.mksa&_abs)!=0) error = true;\n\t\t}\n\t\telse error = (mksa&(~_pic)) != (unit.mksa&(~_pic));\n\t\tif (error) throw new ArithmeticException\n\t\t(\"****Unit: can't combine: \" + symbol + \" - \" + unit.symbol);\n\t\tvalue -= (unit.value*unit.factor)/factor;\n\t}", "public BigDecimal getPriceListOld();", "public Object getCurrency() {\n\t\treturn null;\n\t}", "Uom getCurrencyUom();", "public Person reduceDebt(Float returnedMoney){\n this.debt += returnedMoney;\n return this;\n }" ]
[ "0.67580676", "0.67464566", "0.6431859", "0.64294815", "0.61336386", "0.6088866", "0.59486455", "0.588643", "0.5865706", "0.5861485", "0.5849033", "0.58485925", "0.583484", "0.57654154", "0.5737856", "0.57349485", "0.5734419", "0.5726743", "0.56955975", "0.56616336", "0.56456286", "0.56251454", "0.55876017", "0.5582436", "0.5580769", "0.5558393", "0.5551182", "0.55470896", "0.5541827", "0.5538867", "0.5533414", "0.5519829", "0.551594", "0.55010766", "0.54916096", "0.5489928", "0.54812634", "0.54659975", "0.54527104", "0.5445142", "0.54451156", "0.5444236", "0.5442115", "0.54226243", "0.540858", "0.54032016", "0.5401791", "0.5385323", "0.53800297", "0.53699994", "0.5367735", "0.5365177", "0.5352373", "0.535178", "0.535152", "0.5321377", "0.53207684", "0.5313316", "0.5312599", "0.5312328", "0.52993953", "0.5291585", "0.52887547", "0.5286202", "0.52831787", "0.5280077", "0.52799094", "0.5276178", "0.5271651", "0.5271275", "0.52655655", "0.5257873", "0.52487165", "0.52476126", "0.52441984", "0.52406687", "0.52397525", "0.5235203", "0.52336985", "0.52284014", "0.5228153", "0.52259535", "0.52250344", "0.52241313", "0.5223624", "0.52225566", "0.5222016", "0.52176857", "0.52173454", "0.520829", "0.52072394", "0.52067083", "0.5198665", "0.51962745", "0.5186962", "0.5186173", "0.51843566", "0.5181768", "0.517163", "0.51652163" ]
0.73873466
0
1 for Configuration.ORIENTATION_PORTRAIT 2 for Configuration.ORIENTATION_LANDSCAPE 0 for Configuration.ORIENTATION_SQUARE
public int getScreenOrientation() { Display getOrient = getWindowManager().getDefaultDisplay(); int orientation = Configuration.ORIENTATION_UNDEFINED; if (getOrient.getWidth() == getOrient.getHeight()) { orientation = Configuration.ORIENTATION_SQUARE; } else { if (getOrient.getWidth() < getOrient.getHeight()) { orientation = Configuration.ORIENTATION_PORTRAIT; } else { orientation = Configuration.ORIENTATION_LANDSCAPE; } } return orientation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "@Override\n public void onConfigurationChanged(Configuration config) {\n super.onConfigurationChanged(config);\n\n if (config.orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n } else if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n }\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n try {\n super.onConfigurationChanged(newConfig);\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }", "private int getOrientation() {\n return getContext().getResources().getConfiguration().orientation;\n }", "public interface Orientation {\n\n int LEFT = 0; //左\n int TOP = 1; //顶\n int RIGHT = 2; //右\n int BOTTOM = 4; //底\n int ALL = 8; //所有方向\n int NONE = 16; //无方向\n\n}", "private boolean isLandscapeOrientation(){\n return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; \n }", "public abstract double getOrientation();", "static boolean m6825a(Context context) {\n return context.getResources().getConfiguration().orientation == 2;\n }", "public int getOrientation(){ return mOrientation; }", "public int getNaturalOrientation() {\n if ((!this.mIsLandScapeDefault || this.mBaseDisplayWidth >= this.mBaseDisplayHeight) && this.mBaseDisplayWidth < this.mBaseDisplayHeight) {\n return 1;\n }\n return 2;\n }", "boolean getLandscape();", "String getLockOrientationPref();", "private int m25306b() {\n int rotation = ((WindowManager) this.f19002e.getSystemService(\"window\")).getDefaultDisplay().getRotation();\n if (this.f19007j == C1747a.UNSPECIFIED) {\n return -1;\n }\n if (this.f19007j != C1747a.HORIZONTAL) {\n return rotation != 2 ? 1 : 9;\n } else {\n switch (rotation) {\n case 2:\n case 3:\n return 8;\n default:\n return 0;\n }\n }\n }", "public IOrientation getOrientation();", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n // background.setImageDrawable(ContextCompat.getDrawable(getContext(),\n // resid));\n background.setBackgroundResource(resid);\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n // background.setImageDrawable(ContextCompat.getDrawable(getContext(),\n // resid_land));\n background.setBackgroundResource(resid_land);\n }\n }", "public interface UseLandscape {\n}", "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "public ZeroSides calculateShouldZeroSides() {\r\n if (!(getContext() instanceof Activity)) {\r\n return ZeroSides.NONE;\r\n }\r\n Activity activity = (Activity) getContext();\r\n int i = activity.getResources().getConfiguration().orientation;\r\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\r\n if (i != 2) {\r\n return ZeroSides.NONE;\r\n }\r\n if (rotation == 1) {\r\n return ZeroSides.RIGHT;\r\n }\r\n if (rotation == 3) {\r\n return Build.VERSION.SDK_INT >= 23 ? ZeroSides.LEFT : ZeroSides.RIGHT;\r\n }\r\n if (rotation == 0 || rotation == 2) {\r\n return ZeroSides.BOTH;\r\n }\r\n return ZeroSides.NONE;\r\n }", "void setOrientation(int orientation) {\n }", "public Orientation getOrientation(){return this.orientation;}", "private int getOrientation(int rotation) {\n // Sensor orientation is 90 for most devices, or 270 for some devices (eg. Nexus 5X)\n // We have to take that into account and rotate JPEG properly.\n // For devices with orientation of 90, we simply return our mapping from ORIENTATIONS.\n // For devices with orientation of 270, we need to rotate the JPEG 180 degrees.\n return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360;\n }", "public final Orientation getOrientation() {\n return orientation == null ? Orientation.HORIZONTAL : orientation.get();\n }", "private int getOrientation(int rotation) {\n // Sensor orientation is 90 for most devices, or 270 for some devices (eg. Nexus 5X)\n // We have to take that into account and rotate JPEG properly.\n // For devices with orientation of 90, we simply return our mapping from ORIENTATIONS.\n // For devices with orientation of 270, we need to rotate the JPEG 180 degrees.\n if (isFrontFacing && INVERSE_ORIENTATIONS.get(rotation) == 180) {\n return (ORIENTATIONS.get(rotation) + mSensorOrientation + 90) % 360;\n } else {\n return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360;\n }\n\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setContentView(R.layout.activity_main);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n CamB.setRotation(0);\n\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n CamB.setRotation(90);\n }\n }", "public static int getOrientation(@CheckForNull Context context) {\n /*\n * Display display = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE\n * )).getDefaultDisplay(); int orientation = display.getOrientation(); if (orientation ==\n * ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) return Configuration.ORIENTATION_LANDSCAPE; else\n * if (orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) return\n * Configuration.ORIENTATION_PORTRAIT; else if (orientation ==\n * ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) return Configuration.ORIENTATION_UNDEFINED;\n * return orientation;\n */\n if (context == null)\n context = CardManager.getApplicationContext();\n return context.getResources().getConfiguration().orientation;\n\n }", "@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n int orientation;\n if (DisplayContent.this.isStackVisible(3) || ((!HwFreeFormUtils.isFreeFormEnable() && DisplayContent.this.isStackVisible(5)) || (this.mDisplayContent != null && this.mWmService.mAtmService.mHwATMSEx.isSplitStackVisible(this.mDisplayContent.mAcitvityDisplay, -1)))) {\n TaskStack taskStack = this.mHomeStack;\n if (taskStack == null || !taskStack.isVisible() || !DisplayContent.this.mDividerControllerLocked.isMinimizedDock() || ((DisplayContent.this.mDividerControllerLocked.isHomeStackResizable() && this.mHomeStack.matchParentBounds()) || (orientation = this.mHomeStack.getOrientation()) == -2)) {\n return -1;\n }\n return orientation;\n }\n int orientation2 = super.getOrientation();\n if (this.mWmService.mContext.getPackageManager().hasSystemFeature(\"android.hardware.type.automotive\")) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"Forcing UNSPECIFIED orientation in car for display id=\" + DisplayContent.this.mDisplayId + \". Ignoring \" + orientation2);\n }\n return -1;\n } else if (orientation2 == -2 || orientation2 == 3) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"No app is requesting an orientation, return \" + DisplayContent.this.mLastOrientation + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastOrientation;\n } else {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"App is requesting an orientation, return \" + orientation2 + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return orientation2;\n }\n }", "public int getOrientation()\n\t{\n\t\treturn orientation;\n\t}", "public String orientation() {\n\t\tif (orientation == null)\n\t\t\tarea();\n\t\treturn orientation;\n\t}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t}", "String getPreviewRotationPref();", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n \tsuper.onConfigurationChanged(newConfig);\n \t//If mode is landscape\n\t\tif (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\t\t\t//Set corresponding xml view\n\t\t\tsetContentView(R.layout.activity_game_initializerlandscape);\n\t\t\tinitializeGame();\n\t\t} else {\n\t\t\tsetContentView(R.layout.activity_game_initializer);\n\t\t\tinitializeGame();\n\t\t} \t\n }", "default void onOrientationChange(int orientation) { }", "@Generated\n @Selector(\"orientation\")\n @NInt\n public native long orientation();", "int getHorizontalResolution();", "public int getOrientation()\n {\n return m_orientation;\n }", "@Override\n \tpublic void onConfigurationChanged(Configuration newConfig) {\n \t\tsuper.onConfigurationChanged(newConfig);\n \t\t\n \t\tif (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n \t\t\tmBrowPage.getFrameBackground().setBackgroundResource(R.drawable.bg_h);\n \t\t} else if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n \t\t\tmBrowPage.getFrameBackground().setBackgroundResource(R.drawable.bg);\n \t\t}\n \t}", "public final double getPatternOrientation()\r\n\t{\r\n\t\treturn _orientation;\r\n\t}", "public void onLayoutOrientationChanged(boolean isLandscape);", "public int getOrientationOnly() {\n return (int) this.orientation;\n }", "public int getNewOrientation() {\n return newOrientation;\n }", "public ImageOrientation getOrientation()\n\t{\n\t\treturn ImageOrientation.None;\n\t}", "public int getDeviceRotation();", "public String getOrientation(){\n\n if(robot.getRotation()%360 == 0){\n return \"NORTH\";\n } else if(robot.getRotation()%360 == 90\n ||robot.getRotation()%360 == -270){\n return \"EAST\";\n } else if(robot.getRotation()%360 == 180\n ||robot.getRotation()%360 == -180){\n return \"SOUTH\";\n } else if(robot.getRotation()%360 == 270\n ||robot.getRotation()%360 == -90){\n return \"WEST\";\n } else\n\n errorMessage(\"Id:10T error\");\n return null;\n }", "private XYMultipleSeriesRenderer.Orientation getOrientation() {\n String orientation = mData.getConfiguration(\"bar-orientation\", \"\");\r\n if (orientation.equalsIgnoreCase(\"vertical\")) {\r\n return XYMultipleSeriesRenderer.Orientation.HORIZONTAL;\r\n } else {\r\n return XYMultipleSeriesRenderer.Orientation.VERTICAL;\r\n }\r\n }", "public static boolean isPortrait(Configuration configuration) {\n return configuration.orientation == Configuration.ORIENTATION_PORTRAIT;\n }", "private Orientation() {\n }", "private void normalizeOrientation() {\n\t\twhile (this.orientation >= 2 * Math.PI) {\n\t\t\torientation -= 2 * Math.PI;\n\t\t}\n\t\twhile (this.orientation < 0) {\n\t\t\torientation += 2 * Math.PI;\n\t\t}\n\t}", "static int correctOrientation(final Context context, final CameraCharacteristics characteristics) {\n final Integer lensFacing = characteristics.get(CameraCharacteristics.LENS_FACING);\n final boolean isFrontFacing = lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_FRONT;\n TermuxApiLogger.info((isFrontFacing ? \"Using\" : \"Not using\") + \" a front facing camera.\");\n\n Integer sensorOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);\n if (sensorOrientation != null) {\n TermuxApiLogger.info(String.format(\"Sensor orientation: %s degrees\", sensorOrientation));\n } else {\n TermuxApiLogger.info(\"CameraCharacteristics didn't contain SENSOR_ORIENTATION. Assuming 0 degrees.\");\n sensorOrientation = 0;\n }\n\n int deviceOrientation;\n final int deviceRotation =\n ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation();\n switch (deviceRotation) {\n case Surface.ROTATION_0:\n deviceOrientation = 0;\n break;\n case Surface.ROTATION_90:\n deviceOrientation = 90;\n break;\n case Surface.ROTATION_180:\n deviceOrientation = 180;\n break;\n case Surface.ROTATION_270:\n deviceOrientation = 270;\n break;\n default:\n TermuxApiLogger.info(\n String.format(\"Default display has unknown rotation %d. Assuming 0 degrees.\", deviceRotation));\n deviceOrientation = 0;\n }\n TermuxApiLogger.info(String.format(\"Device orientation: %d degrees\", deviceOrientation));\n\n int jpegOrientation;\n if (isFrontFacing) {\n jpegOrientation = sensorOrientation + deviceOrientation;\n } else {\n jpegOrientation = sensorOrientation - deviceOrientation;\n }\n // Add an extra 360 because (-90 % 360) == -90 and Android won't accept a negative rotation.\n jpegOrientation = (jpegOrientation + 360) % 360;\n TermuxApiLogger.info(String.format(\"Returning JPEG orientation of %d degrees\", jpegOrientation));\n return jpegOrientation;\n }", "@Override\n public int getCameraOrientation() {\n return characteristics_sensor_orientation;\n }", "public java.lang.Integer getOrientation () {\n\t\treturn orientation;\n\t}", "@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n WindowState win = getWindow(this.mGetOrientingWindow);\n if (win != null) {\n int req = win.mAttrs.screenOrientation;\n if (policy.isKeyguardHostWindow(win.mAttrs)) {\n DisplayContent.this.mLastKeyguardForcedOrientation = req;\n if (this.mWmService.mKeyguardGoingAway) {\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n return -2;\n }\n }\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, win + \" forcing orientation to \" + req + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastWindowForcedOrientation = req;\n }\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n boolean isUnoccluding = DisplayContent.this.mAppTransition.getAppTransition() == 23 && DisplayContent.this.mUnknownAppVisibilityController.allResolved();\n if (policy.isKeyguardShowingAndNotOccluded() || isUnoccluding) {\n return DisplayContent.this.mLastKeyguardForcedOrientation;\n }\n return -2;\n }", "@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n if (this.mIgnoreRotationForApps && !HwFoldScreenState.isFoldScreenDevice()) {\n return 2;\n }\n if (!this.mWmService.mDisplayFrozen) {\n int orientation = this.mAboveAppWindowsContainers.getOrientation();\n if (orientation != -2) {\n return orientation;\n }\n } else if (this.mLastWindowForcedOrientation != -1) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen, return \" + this.mLastWindowForcedOrientation);\n }\n return this.mLastWindowForcedOrientation;\n } else if (policy.isKeyguardLocked()) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen while keyguard locked, return \" + this.mLastOrientation);\n }\n return this.mLastOrientation;\n }\n return this.mTaskStackContainers.getOrientation();\n }", "private void determineOrientation(float[] rotationMatrix) {\n\t\t\t float[] orientationValues = new float[3];\n\t\t SensorManager.getOrientation(rotationMatrix, orientationValues);\n\t\t double azimuth = Math.toDegrees(orientationValues[0]);\n\t\t double pitch = Math.toDegrees(orientationValues[1]);\n\t\t double roll = Math.toDegrees(orientationValues[2]);\n\t\t if (pitch <= 10)\n\t\t { \n\t\t if (Math.abs(roll) >= 170)\n\t\t {\n\t\t onFaceDown();\n\t\t }\n\t\t else if (Math.abs(roll) <= 10)\n\t\t {\n\t\t onFaceUp();\n\t\t }\n\t\t }\n\t\t\t\n\t\t}", "private static boolean isLandscapePortraitValue(String pageSizeChunk) {\n return CssConstants.LANDSCAPE.equals(pageSizeChunk) || CssConstants.PORTRAIT.equals(pageSizeChunk);\n }", "int getMaxRotation();", "private boolean checkOrientation(int testedOrientation) {\n int orientation = getNavigationView().getContext().getResources().getConfiguration().orientation;\n return orientation == testedOrientation;\n }", "boolean getNoOrientation();", "private static OrientationImage createOrientation(int detect, Class imageType) {\n\t\tif( isScaleSpace(detect)) {\n\t\t\tClass integralType = GIntegralImageOps.getIntegralType(imageType);\n\t\t\tOrientationIntegral orientationII = FactoryOrientationAlgs.sliding_ii(null, integralType);\n\t\t\treturn FactoryOrientation.convertImage(orientationII, imageType);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void onOrientationChanged(int orientation);", "private void mLockScreenRotation()\n {\n switch (this.getResources().getConfiguration().orientation)\n {\n case Configuration.ORIENTATION_PORTRAIT:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n case Configuration.ORIENTATION_LANDSCAPE:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n }\n }", "public void setNewOrientation(int value) {\n this.newOrientation = value;\n }", "public interface OrientationListener {\n\t \n /**\n * On orientation changed.\n *\n * @param azimuth the azimuth\n * @param pitch the pitch\n * @param roll the roll\n */\n public void onOrientationChanged(float azimuth, \n float pitch, float roll);\n \n /**\n * Top side of the phone is up\n * The phone is standing on its bottom side.\n */\n public void onTopUp();\n \n /**\n * Bottom side of the phone is up\n * The phone is standing on its top side.\n */\n public void onBottomUp();\n \n /**\n * Right side of the phone is up\n * The phone is standing on its left side.\n */\n public void onRightUp();\n \n /**\n * Left side of the phone is up\n * The phone is standing on its right side.\n */\n public void onLeftUp();\n \n /**\n * screen down.\n */\n public void onFlipped();\n}", "org.stu.projector.Orientation getOrientations(int index);", "public static boolean isLandscape(Configuration configuration) {\n return configuration.orientation == Configuration.ORIENTATION_LANDSCAPE;\n }", "public void computeScreenConfiguration(Configuration config) {\n int i;\n int i2;\n int i3;\n boolean rotated;\n int i4;\n DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode, config);\n calculateBounds(displayInfo, this.mTmpBounds);\n config.windowConfiguration.setBounds(this.mTmpBounds);\n int dw = displayInfo.logicalWidth;\n int dh = displayInfo.logicalHeight;\n config.orientation = dw <= dh ? 1 : 2;\n config.windowConfiguration.setWindowingMode(getWindowingMode());\n config.windowConfiguration.setDisplayWindowingMode(getWindowingMode());\n config.windowConfiguration.setRotation(displayInfo.rotation);\n float density = this.mDisplayMetrics.density;\n config.screenWidthDp = (int) (((float) this.mDisplayPolicy.getConfigDisplayWidth(dw, dh, displayInfo.rotation, config.uiMode, displayInfo.displayCutout)) / density);\n config.screenHeightDp = (int) (((float) this.mDisplayPolicy.getConfigDisplayHeight(dw, dh, displayInfo.rotation, config.uiMode, displayInfo.displayCutout)) / density);\n this.mDisplayPolicy.getNonDecorInsetsLw(displayInfo.rotation, dw, dh, displayInfo.displayCutout, this.mTmpRect);\n int leftInset = this.mTmpRect.left;\n int topInset = this.mTmpRect.top;\n config.windowConfiguration.setAppBounds(leftInset, topInset, displayInfo.appWidth + leftInset, displayInfo.appHeight + topInset);\n boolean rotated2 = displayInfo.rotation == 1 || displayInfo.rotation == 3;\n int i5 = config.screenLayout & -769;\n if ((displayInfo.flags & 16) != 0) {\n i = 512;\n } else {\n i = 256;\n }\n config.screenLayout = i5 | i;\n config.compatScreenWidthDp = (int) (((float) config.screenWidthDp) / this.mCompatibleScreenScale);\n config.compatScreenHeightDp = (int) (((float) config.screenHeightDp) / this.mCompatibleScreenScale);\n config.compatSmallestScreenWidthDp = computeCompatSmallestWidth(rotated2, config.uiMode, dw, dh, displayInfo.displayCutout);\n config.densityDpi = displayInfo.logicalDensityDpi;\n if (!displayInfo.isHdr() || !this.mWmService.hasHdrSupport()) {\n i2 = 4;\n } else {\n i2 = 8;\n }\n if (!displayInfo.isWideColorGamut() || !this.mWmService.hasWideColorGamutSupport()) {\n i3 = 1;\n } else {\n i3 = 2;\n }\n config.colorMode = i2 | i3;\n config.touchscreen = 1;\n config.keyboard = 1;\n config.navigation = 1;\n int keyboardPresence = 0;\n int navigationPresence = 0;\n InputDevice[] devices = this.mWmService.mInputManager.getInputDevices();\n int len = devices != null ? devices.length : 0;\n int i6 = 0;\n while (i6 < len) {\n InputDevice device = devices[i6];\n if (device.isVirtual()) {\n rotated = rotated2;\n } else {\n rotated = rotated2;\n if (this.mWmService.mInputManager.canDispatchToDisplay(device.getId(), displayInfo.type == 5 ? 0 : this.mDisplayId)) {\n int sources = device.getSources();\n int presenceFlag = device.isExternal() ? 2 : 1;\n if (!this.mWmService.mIsTouchDevice) {\n config.touchscreen = 1;\n } else if ((sources & 4098) == 4098) {\n config.touchscreen = 3;\n }\n if ((sources & 65540) == 65540) {\n config.navigation = 3;\n navigationPresence |= presenceFlag;\n i4 = 2;\n } else if ((sources & 513) == 513 && config.navigation == 1) {\n i4 = 2;\n config.navigation = 2;\n navigationPresence |= presenceFlag;\n } else {\n i4 = 2;\n }\n if (device.getKeyboardType() == i4) {\n config.keyboard = i4;\n keyboardPresence |= presenceFlag;\n }\n }\n }\n i6++;\n rotated2 = rotated;\n }\n if (config.navigation == 1 && this.mWmService.mHasPermanentDpad) {\n config.navigation = 2;\n navigationPresence |= 1;\n }\n boolean hardKeyboardAvailable = config.keyboard != 1;\n if (hardKeyboardAvailable != this.mWmService.mHardKeyboardAvailable) {\n this.mWmService.mHardKeyboardAvailable = hardKeyboardAvailable;\n this.mWmService.mH.removeMessages(22);\n this.mWmService.mH.sendEmptyMessage(22);\n }\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n config.keyboardHidden = 1;\n config.hardKeyboardHidden = 1;\n config.navigationHidden = 1;\n this.mWmService.mPolicy.adjustConfigurationLw(config, keyboardPresence, navigationPresence);\n }", "@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}", "private int orientation(Waypoint w1, Waypoint w3, Waypoint w2){\n\t\tdouble w1x = w1.getX();\n\t\tdouble w1y = w1.getY();\n\t\tdouble w2x = w2.getX();\n\t\tdouble w2y = w2.getY();\n\t\tdouble w3x = w3.getX();\n\t\tdouble w3y = w3.getY();\n\t\tdouble val = (w3y - w1y) * (w2x - w3x) - (w3x - w1x) * (w2y - w3y);\n\t\t\n\tif ( val == 0) //colinear\n\t\treturn 0;\n\t\n\treturn (val > 0) ? 1: 2; //clock or counterclock wise\n\t\n\t}", "public void setOrientation(Direction orientation);", "void setLandscape(boolean ls);", "public static void TestDefaultOrientation(String myAzimuth, Context context)\n\t{\n\t\tdouble lat = Double.parseDouble(context.getString(R.string.default_orientation_lat));\n\t\tdouble lng = Double.parseDouble(context.getString(R.string.default_orientation_lng));\n\t\tdouble lat_north = Double.parseDouble(context.getString(R.string.default_orientation_lat_north));\n\t\tdouble lng_north = Double.parseDouble(context.getString(R.string.default_orientation_lng_north));\n\t\tdouble lat_east = Double.parseDouble(context.getString(R.string.default_orientation_lat_east));\n\t\tdouble lng_east = Double.parseDouble(context.getString(R.string.default_orientation_lng_east));\n\t\tdouble lat_south = Double.parseDouble(context.getString(R.string.default_orientation_lat_south));\n\t\tdouble lng_south = Double.parseDouble(context.getString(R.string.default_orientation_lng_south));\n\t\tdouble lat_west = Double.parseDouble(context.getString(R.string.default_orientation_lat_west));\n\t\tdouble lng_west = Double.parseDouble(context.getString(R.string.default_orientation_lng_west));\n\n\t\tLocation POI = new Location(\"POI\");\n\t\tPOI.setLatitude(lat);\n\t\tPOI.setLongitude(lng);\n\t\tLocation POI_north = new Location(\"POI_north\");\n\t\tPOI_north.setLatitude(lat_north);\n\t\tPOI_north.setLongitude(lng_north);\n\t\tLocation POI_east = new Location(\"POI_east\");\n\t\tPOI_east.setLatitude(lat_east);\n\t\tPOI_east.setLongitude(lng_east);\n\t\tLocation POI_south = new Location(\"POI_south\");\n\t\tPOI_south.setLatitude(lat_south);\n\t\tPOI_south.setLongitude(lng_south);\n\t\tLocation POI_west = new Location(\"POI_west\");\n\t\tPOI_west.setLatitude(lat_west);\n\t\tPOI_west.setLongitude(lng_west);\n\n\t\tfloat angle_north = POI.bearingTo(POI_north);\n\t\tfloat angle_east = POI.bearingTo(POI_east);\n\t\tfloat angle_south = POI.bearingTo(POI_south);\n\t\tfloat angle_west = POI.bearingTo(POI_west);\n\n\t\tStringBuilder b = new StringBuilder();\n\t\tb.append(\"angle_north: \").append(String.valueOf(angle_north)).append('\\n');\n\t\tb.append(\"angle_east: \").append(String.valueOf(angle_east)).append('\\n');\n\t\tb.append(\"angle_south: \").append(String.valueOf(angle_south)).append('\\n');\n\t\tb.append(\"angle_west: \").append(String.valueOf(angle_west)).append('\\n');\n\t\tToast.makeText(context, b.toString(), Toast.LENGTH_LONG).show();\n\n\t\treturn;\n\t}", "@Override\n\tpublic void setOrientation(float orientation) {\n\t\t\n\t}", "private void flipOrientation() {\n try {\n if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_0) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_180);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_90) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_270);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_180) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_0);\n } else {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_90);\n }\n } catch (Settings.SettingNotFoundException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "void orientation(double xOrientation, double yOrientation, double zOrientation);", "int getVerticalResolution();", "int getOrientationsCount();", "@Test\n public void testCondition4()\n {\n Double[] angles = {75.0, 75.0, 71.0};\n _renderable.orientation(angles);\n Double testVal[] = _renderable.orientation();\n assertEquals(\"x angle did not get set,\", angles[0], testVal[0], 2);\n assertEquals(\"y angle did not get set,\", angles[1], testVal[1], 2);\n assertEquals(\"z angle did not get set,\", angles[2], testVal[2], 2);\n }", "public void onConfigurationChanged(Configuration configuration) {\n super.onConfigurationChanged(configuration);\n if (!LPFit.f99531a.mo120373a()) {\n return;\n }\n if (OrientationUtils.f98458a.mo119477a()) {\n getLayoutParams().width = DisplayUtils.m87168a(getContext());\n getLayoutParams().height = DisplayUtils.m87170b(getContext());\n ViewGroup.LayoutParams layoutParams = getLayoutParams();\n if (!(layoutParams instanceof ConstraintLayout.LayoutParams)) {\n layoutParams = null;\n }\n ConstraintLayout.LayoutParams layoutParams2 = (ConstraintLayout.LayoutParams) layoutParams;\n if (layoutParams2 != null) {\n layoutParams2.topMargin = 0;\n }\n C27930a.C27931a.m133870a(C27930a.f96561a, null, 1, null);\n return;\n }\n getLayoutParams().width = DisplayUtils.m87168a(getContext());\n getLayoutParams().height = (int) (((float) getLayoutParams().width) / VideoParams.f96577a.mo116006l());\n ViewGroup.LayoutParams layoutParams3 = getLayoutParams();\n if (!(layoutParams3 instanceof ConstraintLayout.LayoutParams)) {\n layoutParams3 = null;\n }\n ConstraintLayout.LayoutParams layoutParams4 = (ConstraintLayout.LayoutParams) layoutParams3;\n if (layoutParams4 != null) {\n Integer value = C27930a.f96561a.mo115977a().getValue();\n layoutParams4.topMargin = value != null ? value.intValue() : 0;\n }\n C27930a.C27931a aVar = C27930a.f96561a;\n int i = getLayoutParams().height;\n Integer value2 = C27930a.f96561a.mo115977a().getValue();\n if (value2 == null) {\n value2 = 0;\n }\n aVar.mo115979a(Integer.valueOf(i + value2.intValue()));\n }", "public interface OrientationChangeEventListener {\n\n /* compiled from: organic_product */\n public enum DeviceOrientation {\n PORTRAIT,\n LANDSCAPE_LEFT,\n LANDSCAPE_RIGHT\n }\n\n void mo469a(DeviceOrientation deviceOrientation);\n}", "public String getPortrait() {\n return portrait;\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tnotOrientationChange=false;\n\t super.onConfigurationChanged(newConfig);\n\t}", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "PieceOrientation(int value) {\n this.value = value;\n }", "AxisOrientation getAxisOrientation();", "public abstract void setRequestedOrientation(int requestedOrientation);", "protected int getExifOrientation(final File imageFile) {\n try {\n final ImageMetadata metadata = Imaging.getMetadata(imageFile);\n TiffImageMetadata tiffImageMetadata;\n\n if (metadata instanceof JpegImageMetadata) {\n tiffImageMetadata = ((JpegImageMetadata) metadata).getExif();\n } else if (metadata instanceof TiffImageMetadata) {\n tiffImageMetadata = (TiffImageMetadata) metadata;\n } else {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n if(tiffImageMetadata==null){\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n TiffField field = tiffImageMetadata.findField(TiffTagConstants.TIFF_TAG_ORIENTATION);\n if (field != null) {\n return field.getIntValue();\n } else {\n TagInfo tagInfo = new TagInfoShort(\"Orientation\", 0x115, TiffDirectoryType.TIFF_DIRECTORY_IFD0); // MAGIC_NUMBER\n field = tiffImageMetadata.findField(tagInfo);\n if (field != null) {\n return field.getIntValue();\n } else {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n }\n } catch (ImageReadException | IOException e) {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n }", "public static MediumOrientationMedOrient get(int value) {\n\t\tswitch (value) {\n\t\t\tcase CONST_PORTRAIT_VALUE: return CONST_PORTRAIT;\n\t\t\tcase CONST_LANDSCAPE_VALUE: return CONST_LANDSCAPE;\n\t\t\tcase CONST_REVERSE_PORTRAIT_VALUE: return CONST_REVERSE_PORTRAIT;\n\t\t\tcase CONST_REVERSE_LANDSCAPE_VALUE: return CONST_REVERSE_LANDSCAPE;\n\t\t\tcase CONST_PORTRAIT90_VALUE: return CONST_PORTRAIT90;\n\t\t\tcase CONST_LANDSCAPE90_VALUE: return CONST_LANDSCAPE90;\n\t\t}\n\t\treturn null;\n\t}", "public static void setOrientationFromResources(Activity activity) {\n if (activity.getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) {\n String orinetation = activity.getResources().getString(R.string.orientation);\n\n if (\"portrait\".equals(orinetation)) {\n activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n } else {\n activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n }\n\n }\n }", "private Bitmap fixOrientation(Bitmap bitmap) {\n if (bitmap == null) {\n return null;\n }\n\n ExifInterface exif = null;\n try {\n exif = new ExifInterface(currentPhotoPath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED);\n\n Matrix matrix = new Matrix();\n switch (orientation) {\n case ExifInterface.ORIENTATION_ROTATE_90:\n matrix.postRotate(90);\n break;\n case ExifInterface.ORIENTATION_ROTATE_180:\n matrix.postRotate(180);\n break;\n case ExifInterface.ORIENTATION_ROTATE_270:\n matrix.postRotate(270);\n break;\n default:\n break;\n }\n bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n return bitmap;\n }", "public void onSetOrientation() {\n }", "public AccOrientation calculateAngle(SensorEvent event) {\t\t\n\t final int _DATA_X = 0;\n\t final int _DATA_Y = 1;\n\t final int _DATA_Z = 2;\n\t // Angle around x-axis thats considered almost perfect vertical to hold\n\t // the device\n\t final int PIVOT = 20;\n\t // Angle around x-asis that's considered almost too vertical. Beyond\n\t // this angle will not result in any orientation changes. f phone faces uses,\n\t // the device is leaning backward.\n\t final int PIVOT_UPPER = 65;\n\t // Angle about x-axis that's considered negative vertical. Beyond this\n\t // angle will not result in any orientation changes. If phone faces uses,\n\t // the device is leaning forward.\n\t final int PIVOT_LOWER = -10;\n\t // Upper threshold limit for switching from portrait to landscape\n\t final int PL_UPPER = 295;\n\t // Lower threshold limit for switching from landscape to portrait\n\t final int LP_LOWER = 320;\n\t // Lower threshold limt for switching from portrait to landscape\n\t final int PL_LOWER = 270;\n\t // Upper threshold limit for switching from landscape to portrait\n\t final int LP_UPPER = 359;\n\t // Minimum angle which is considered landscape\n\t final int LANDSCAPE_LOWER = 235;\n\t // Minimum angle which is considered portrait\n\t final int PORTRAIT_LOWER = 60;\n\t \n\t // Internal value used for calculating linear variant\n\t final float PL_LF_UPPER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float PL_LF_LOWER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t // Internal value used for calculating linear variant\n\t final float LP_LF_UPPER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float LP_LF_LOWER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t \n\t int mSensorRotation = -1; \n\t \n\t\t\tfinal boolean VERBOSE = true;\n float[] values = event.values;\n float X = values[_DATA_X];\n float Y = values[_DATA_Y];\n float Z = values[_DATA_Z];\n float OneEightyOverPi = 57.29577957855f;\n float gravity = (float) Math.sqrt(X*X+Y*Y+Z*Z);\n float zyangle = (float)Math.asin(Z/gravity)*OneEightyOverPi;\n int rotation = -1;\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n AccOrientation result = new AccOrientation();\n \n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n result.orientation = orientation;\n result.angle = zyangle; \n result.threshold = 0;\n if ((zyangle <= PIVOT_UPPER) && (zyangle >= PIVOT_LOWER)) {\n // Check orientation only if the phone is flat enough\n // Don't trust the angle if the magnitude is small compared to the y value\n \t/*\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n normalize to 0 - 359 range\n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n mOrientation.setText(String.format(\"Orientation: %d\", orientation));\n */ \n // Orientation values between LANDSCAPE_LOWER and PL_LOWER\n // are considered landscape.\n // Ignore orientation values between 0 and LANDSCAPE_LOWER\n // For orientation values between LP_UPPER and PL_LOWER,\n // the threshold gets set linearly around PIVOT.\n if ((orientation >= PL_LOWER) && (orientation <= LP_UPPER)) {\n float threshold;\n float delta = zyangle - PIVOT;\n if (mSensorRotation == ROTATION_090) {\n if (delta < 0) {\n // Delta is negative\n threshold = LP_LOWER - (LP_LF_LOWER * delta);\n } else {\n threshold = LP_LOWER + (LP_LF_UPPER * delta);\n }\n rotation = (orientation >= threshold) ? ROTATION_000 : ROTATION_090;\n if (mShowLog) \n \tLog.v(TAG, String.format(\"CASE1. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n } else {\n if (delta < 0) {\n // Delta is negative\n threshold = PL_UPPER+(PL_LF_LOWER * delta);\n } else {\n threshold = PL_UPPER-(PL_LF_UPPER * delta);\n }\n rotation = (orientation <= threshold) ? ROTATION_090: ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE2. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n }\n result.threshold = threshold;\n } else if ((orientation >= LANDSCAPE_LOWER) && (orientation < LP_LOWER)) {\n rotation = ROTATION_090;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE3. 90 (%d)\", orientation));\n } else if ((orientation >= PL_UPPER) || (orientation <= PORTRAIT_LOWER)) {\n rotation = ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE4. 00 (%d)\", orientation)); \n } else {\n \tif (mShowLog)\n \t\tLog.v(TAG, \"CASE5. \"+orientation);\n }\n if ((rotation != -1) && (rotation != mSensorRotation)) {\n mSensorRotation = rotation;\n if (mSensorRotation == ROTATION_000) {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 00\");\n }\n else if (mSensorRotation == ROTATION_090) \n {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 90\");\n } \n }\n result.rotation = rotation;\n } else {\n \t//Log.v(TAG, String.format(\"Invalid Z-Angle: %2.4f (%d %d)\", zyangle, PIVOT_LOWER, PIVOT_UPPER));\n }\t\n return result;\n\t\t}", "@Test\n public final void testIsOrientation() {\n boolean result = ship.isOrientation();\n assertTrue(result);\n this.ship.setOrientation(false);\n result = ship.isOrientation();\n assertFalse(result);\n }", "public int getPreferredOptionsPanelGravity() {\n int rotation = getRotation();\n if (this.mInitialDisplayWidth < this.mInitialDisplayHeight) {\n if (rotation != 1) {\n return (rotation == 2 || rotation != 3) ? 81 : 8388691;\n }\n return 85;\n } else if (rotation == 1) {\n return 81;\n } else {\n if (rotation != 2) {\n return rotation != 3 ? 85 : 81;\n }\n return 8388691;\n }\n }", "public int getCameraSensorRotation();", "public int getRotations();", "public char getOrientation() {\n return orientation;\n }", "public float getOrientacion() { return orientacion; }", "public abstract float doLandscapeLayout(float screenWidth, float screenHeight);", "@Override\n public boolean isKeepsOrientation() {\n return keepsOrientation;\n }" ]
[ "0.72221386", "0.6755196", "0.6687939", "0.6610794", "0.65797865", "0.65770584", "0.64276445", "0.62702256", "0.62682235", "0.6249382", "0.6211982", "0.6211776", "0.6209449", "0.61845434", "0.61226046", "0.61186975", "0.61099756", "0.60484916", "0.59878755", "0.5987682", "0.59598213", "0.5888839", "0.5833725", "0.5831025", "0.5816849", "0.5811352", "0.5792783", "0.57922333", "0.57756245", "0.57125896", "0.56973493", "0.5691687", "0.56892604", "0.56671524", "0.5663474", "0.56617665", "0.5641859", "0.56217253", "0.56212085", "0.56185836", "0.56099486", "0.5608912", "0.5606054", "0.56047654", "0.55952746", "0.55908984", "0.5575526", "0.55685455", "0.5561296", "0.55575347", "0.5545185", "0.554376", "0.5531952", "0.5529758", "0.5518425", "0.549326", "0.54856056", "0.5472173", "0.5436534", "0.54317963", "0.5423252", "0.54091036", "0.5401729", "0.54002905", "0.5399531", "0.5386603", "0.53685963", "0.5359492", "0.53336835", "0.5333298", "0.53329974", "0.5329401", "0.5328458", "0.5324156", "0.530816", "0.530746", "0.53063077", "0.5303727", "0.52969134", "0.5289264", "0.5285986", "0.52704906", "0.52603835", "0.5248495", "0.5245901", "0.52456754", "0.5244741", "0.52245027", "0.52136344", "0.5206865", "0.5205676", "0.52041745", "0.51984435", "0.51943785", "0.51920396", "0.5181651", "0.5178914", "0.5166808", "0.5164926", "0.51586777" ]
0.6781764
1
===============================Get Comment list ========================
public void getCommnentList() { String urlData = ""; HashMap<String, String> param = new HashMap<String, String>(); param.put("max", "" + MyApplication.Max_post_per_page); param.put("page", "0"); if (PostType.equalsIgnoreCase("ads")) { urlData = "ads/" + postId + "/get-comments"; } else { urlData = "feeds/" + postId + "/get-comments"; } APIHandler.Instance().POST_BY_AUTHEN(urlData, param, new APIHandler.RequestComplete() { @Override public void onRequestComplete(final int code, final String response) { LiveVideoPlayerActivity.this.runOnUiThread(new Runnable() { @Override public void run() { try { JSONObject mJsonObject = new JSONObject(response); int codeServer = mJsonObject.getInt("code"); if (codeServer == 1) { JSONArray msg = mJsonObject.getJSONArray("msg"); for (int index = 0; index < msg.length(); index++) { JSONObject mObject = msg.getJSONObject(index); CommentList mCategoryList = new CommentList(); mCategoryList.setID(mObject.getString("ID")); mCategoryList.setCreatedAt(mObject.getString("CreatedAt")); mCategoryList.setUserId(mObject.getString("UserId")); mCategoryList.setPostId(mObject.getString("PostId")); mCategoryList.setContent(mObject.getString("Content")); mCategoryList.setUserNmae(mObject.getString("UserName")); mCategoryList.setUserPic(mObject.getString("AvatarUrl")); mCommentslistAdapter.addnewItem(mCategoryList); } } } catch (Exception e) { PopupAPI.make(mContext, "Error", "Can't connect to server"); } } }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }", "@Override\r\n\tpublic List<Comment> findAllComment() {\n\t\treturn commentDao.findAllComment();\r\n\t}", "@Override\n public List<NutricionistComment> findAllComments() {\n return nutricionistCommentDAO.findAllComments();\n }", "public List<CommentInfo> getComments() {\n \treturn this.comments;\n }", "public List<ReturnComment> getComments() {\n return (List<ReturnComment>) get(\"comments\");\n }", "public List<Comment> showComment() {\n\t\treturn cdi.showComment();\n\t}", "public List<Comment> getComments() {\n return this.comments;\n }", "@RequestMapping(\"/comment\")\n public List<Comment> gettAllComments() {\n return commentService.getAllComments();\n }", "List<Comment> findAll();", "@GetMapping(value= \"/comment/\")\n\tpublic List<Comment> getAll() {\n\t\tlogger.debug(\"Getting all comments.\");\n\t\treturn service.getAllComments();\n\t}", "public List<CommentsEntity> getAllComments(){\n\t\tfinal List<CommentsEntity> comments = entityManager.createQuery(\"SELECT comments FROM CommentsEntity comments\", CommentsEntity.class)\n\t\t\t\t.getResultList();\n\t\tSystem.out.println(\"[REPO] Found comments query success\");\n\t\treturn comments;\n\t}", "public List<CommentDTO> getComments() {\n\t\treturn comments;\n\t}", "@Override\r\n\tpublic List<?> commentList(Integer id) {\n\t\treturn commentDAO.commentList(id);\r\n\t}", "public List<String> getComments() {\n return comments;\n }", "List<Comment> getComments(long mediaId);", "private void getComments()\n\t{\n\t\tfinalHttp.get(RequestAddress.GET_SINGLE_FOOTPRINT_COMMENTS + footprintId,\n\t\t\t\tnew AjaxCallBack<String>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable t, int errorNo, String strMsg)\n\t\t\t{\n\t\t\t\tcommentListView.setRefreshFail();\n\t\t\t\tif (strMsg != null)\n\t\t\t\t{\n\t\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:failure\", strMsg);\n\t\t\t\t\tToastHelper.showToast(CommentActivity.this, \"加载失败,错误代码:\" \n\t\t\t\t\t\t\t+ errorNo + \"\\n错误信息:\" + strMsg, Toast.LENGTH_SHORT);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onLoading(long count, long current) //每1秒钟自动被回调一次\n\t\t\t{\n\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:onLoading\", current+\"/\"+count);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result)\n\t\t\t{\n\t\t\t\tLog.v(\"GET_DEFAULT_SHIRT:success\", result);\n\t\t\t\tType type = new TypeToken<ArrayList<FootprintComment>>(){ }.getType();\n\t\t\t\tGson gson = new Gson();\n//\t\t\t\tJsonParser jsonParser = new JsonParser();\n//\t\t\t\tJsonObject jsonObject = (JsonObject) jsonParser.parse(result);\n//\t\t\t\tif ( !jsonObject.get(\"result\").getAsBoolean())\n//\t\t\t\t{\n//\t\t\t\t\tToastHelper.showToast(CommentActivity.this, \"加载失败,错误信息:\\n\" + \n//\t\t\t\t\t\t\tjsonObject.get(\"data\").getAsString(), Toast.LENGTH_SHORT);\n//\t\t\t\t\tcommentListView.setRefreshFail();\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse {\n\t\t\t\t\tcommentListView.setRefreshSuccess();\n\t\t\t\t\tcomments = gson.fromJson(result, type);\n\t\t\t\t\tcommentAdapter.setComments(comments);\n\t\t\t\t\tcommentAdapter.notifyDataSetChanged();\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "@PropertyGetter(role = COMMENT)\n\tList<CtComment> getComments();", "@RequestMapping(\"/comments\")\n public List<CommentDTO> getAllComments() {\n return commentService.getAllComments();\n }", "public ListaEnlazada<Comment> getComments() {\r\n return comments;\r\n }", "public String[] getComments() {\n return comments;\n }", "public String[] getComments() {\n return comments;\n }", "java.lang.String getComments();", "@Override\r\n\tpublic List<Comment> getAllComment(Integer page, Integer limit) {\n\t\treturn commentDao.getAllComment(page,limit);\r\n\t}", "public ReactorResult<java.lang.String> getAllComments_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), COMMENTS, java.lang.String.class);\r\n\t}", "public List<BlogComment> getCommentsByPost(Long id);", "@Override\n\tpublic Collection<Comment> getAllComments() {\n\t\treturn commentMap.values();\n\t}", "@Override\n public List<Comments> getAllComments() throws Exception {\n Query query = entityManager.createQuery(\"SELECT c FROM Comments c\", Comments.class);\n return query.getResultList();\n }", "@GetMapping(\"getcomment/{id}\")\n public ResponseEntity<List<Comment>> getComment(@PathVariable Long id) {\n\n List<Comment> c = this.userServices.getComment(id);\n\n if (c.size() <= 0) {\n\n return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n }\n\n return ResponseEntity.status(HttpStatus.CREATED).body(c);\n\n }", "public List<Comment> getAllComments(int postID) {\n \n List<Comment> comments = new ArrayList<>();\n\n try {\n \n //Sorted in desc order of postID to make the most recent comment come to the top\n PreparedStatement statement = connection.prepareStatement(\"SELECT * FROM Comment WHERE postID = ? ORDER BY commentID DESC;\");\n statement.setInt(1, postID);\n ResultSet results = statement.executeQuery();\n\n while (results.next()) {\n\n // For all results create a new comment object and add into list to be returned\n Comment comment = new Comment();\n comment.setCommentBody(results.getString(\"commentBody\"));\n comment.setCommentID(results.getInt(\"commentID\"));\n comment.setPostID(postID);\n comment.setUserEmail(results.getString(\"email\"));\n \n\n PreparedStatement newStatement = connection.prepareStatement(\"SELECT * FROM user WHERE email = ?;\");\n newStatement.setString(1, comment.getUserEmail());\n ResultSet newResults = newStatement.executeQuery();\n\n while (newResults.next()) {\n comment.setOwnerProfileImage(newResults.getString(\"profileImageURL\"));\n comment.setOwner(newResults.getString(\"firstName\") + \" \" + newResults.getString(\"lastName\"));\n }\n\n comments.add(comment);\n\n }\n\n } catch (SQLException e) {\n System.out.println(e);\n }\n\n return comments;\n }", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "public String getAllComments() {\n\t\tString concatinatedComments = \"\";\n\t\tfor (CommentModel comment : comments) {\n\t\t\tString commentContent = comment.getContent();\n\t\t\tconcatinatedComments = concatinatedComments.concat(\" \"\n\t\t\t\t\t+ commentContent);\n\t\t}\n\t\treturn concatinatedComments;\n\t}", "public List<FreeTextType> getCommentList() {\n return commentList;\n }", "public List<Comment> getAllComments(long messageId){\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\n\t\treturn new ArrayList<Comment>(comments.values());\n\t\t\n\t}", "List<Comment> findCommentsToLifeHack(long id) throws DaoException;", "List<Comments> selectAll();", "public String getComments() {\n return comments;\n }", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllComments_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), COMMENTS);\r\n\t}", "public List<Comment> getCreatedComments() {\n return createdComments;\n }", "public Comments getComments(Long id) {\r\n\t\treturn comDao.findById(id);\r\n\t}", "public String getComments() {\r\n return this.comments;\r\n }", "public String getComments() {\n return _comments;\n }", "public List<CapComments> getCapComments() {\n \t\t\t\tList<CapComments> cap=(List<CapComments>) commentRepo.findAll();\r\n \t\t\t\tCollections.reverse(cap);\r\n \t\t\t\treturn cap;\r\n \t\t\t}", "@Override\n\tpublic List<Object> commentList(int boardNo) {\n\t\treturn template.selectList(\"comment.commentList\",boardNo);\n\t}", "@Override\n\tpublic List<CommentDTO> findAll() {\n\t\tList<Comment> comments = commentRepository.findAllByOrderByDateDesc();\n\t\tif(comments != null) {\n\t\t\tList<CommentDTO> commentsDTO = new ArrayList<>();\n\t\t\tfor(Comment comment : comments) {\n\t\t\t\tCommentDTO commentDTO = new CommentDTO(comment);\n\t\t\t\tUserDTO userDTO = new UserDTO(comment.getUser());\n\t\t\t\tcommentDTO.setUserDTO(userDTO);\n\t\t\t\tcommentsDTO.add(commentDTO);\n\t\t\t}\n\t\t\treturn commentsDTO;\n\t\t}\n\t\treturn null;\n\t}", "public List<Comment> getComments(String query) throws UnsupportedEncodingException, SSOException{\n String fields = \"name,description,content,cat,source,title,relid,reltype,state,createdby,updateddate,rating\";\n\t\t\n List<AssetInfo> assetinfoList = search(wcs.getCsSiteName(), \"FW_Comment\", query, fields, null, null, null, null).getAssetinfos();\n List<Comment> assets = null;\n \n \n if(assetinfoList!= null && assetinfoList.size()>0){\n \tassets = new ArrayList<Comment>();\n\t for(AssetInfo info : assetinfoList){\n\t \t\n\t \t\t\n\t \t\n\t \tString relid = Mapper.getField(\"relid\",info.getFieldinfos());\n\t \tString reltype = Mapper.getField(\"reltype\",info.getFieldinfos());\n\n\n\t \tComment a = new Comment();\n\t \ta.setId(info.getId().split(\":\")[1]);\n\t \ta.setDescription(Mapper.getField(\"description\",info.getFieldinfos()) );\n\t \ta.setName(Mapper.getField(\"name\",info.getFieldinfos()) );\n\t \ta.setTitle(Mapper.getField(\"title\",info.getFieldinfos()) );\n\t \ta.setContent(Mapper.getField(\"content\",info.getFieldinfos()) );\n\t \ta.setState(Mapper.getField(\"state\",info.getFieldinfos()) );\n\t \ta.setRating(Mapper.getField(\"rating\",info.getFieldinfos()) );\t\t \t\n\t \ta.setRelid(relid);\n\t \ta.setReltype(reltype);\n\n\t \ta.setCreatedby(Mapper.getField(\"createdby\",info.getFieldinfos()) );\n\t \ta.setCreateddate(Mapper.getField(\"updateddate\",info.getFieldinfos()) );\n\n\n\t \tassets.add(a);\n\t }\n }\n \n return assets;\t\t\n\t}", "public List<CommentEntity> listComment(int page, int size) {\n\t\treturn queryPage(page,size);\n\t}", "public String getComments() {\n return this.comments;\n }", "@Override\n @Cacheable(\"application-cache\")\n public List<Comment> getAll() {\n Session session = sessionFactory.getCurrentSession();\n return session.createQuery(\"SELECT a FROM Comment a\", Comment.class).getResultList();\n }", "public String getComments() {\n\t\treturn comments;\n\t}", "public java.lang.String getComments () {\r\n\t\treturn comments;\r\n\t}", "public String getComments() {\n\t\treturn this.comments;\n\t}", "@Override\n public List<Comment> getCommentsByUser(Long userId ) {\n return userDao.getCommentByUser(userId);\n }", "List<KnowledgeComment> selectAll();", "public List<Comment> getAllComments(long messageId) {\r\n\t\tMap<Long, Comment> comments = messages.get(messageId).getComments();\r\n\t\treturn new ArrayList<Comment>(comments.values());\r\n\t}", "@Override\n public List<CommentDto> getByCocktailId(int cocktailId) throws DaoException {\n List<CommentDto> commentDtoList = new ArrayList<>();\n try (Connection connection = connectionPool.getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(GET_COMMENTS_BY_COCKTAIL_ID_SQL)) {\n preparedStatement.setInt(1, cocktailId);\n ResultSet resultSet = preparedStatement.executeQuery();\n while (resultSet.next()) {\n CommentDto commentDto = new CommentDto();\n commentDto.setCommentId(resultSet.getInt(ID));\n commentDto.setText(resultSet.getString(COMMENTS_COMMENT));\n commentDto.setMark(resultSet.getInt(COMMENTS_MARK));\n commentDto.setUserId(resultSet.getInt(COMMENTS_USER_ID));\n commentDto.setLogin(resultSet.getString(USERS_LOGIN));\n commentDtoList.add(commentDto);\n }\n } catch (SQLException e) {\n logger.error(e);\n throw new DaoException(\"Can't handle CommentDaoImpl.getByCocktailId\", e);\n }\n return commentDtoList;\n }", "public ArrayList<Comment> getPostComments(int postID)\n {\n ArrayList<Comment> commentsList = new ArrayList<>();\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n String query = \"SELECT * FROM Comment WHERE postID=\"+\"'\"+postID+\"'\";\n Cursor c = database.rawQuery(query, null);\n if (c.moveToFirst())\n {\n do\n {\n Comment comment = new Comment ();\n comment.setCommentBody(c.getString(c.getColumnIndex(\"commentBody\")));\n comment.setCommentedBy(c.getString(c.getColumnIndex(\"commentedBy\")));\n comment.setCommentID(c.getColumnIndex(\"commentID\"));\n comment.setPostID(c.getColumnIndex(\"postID\"));\n\n\n // Adding comment to commentsList\n commentsList.add(comment);\n } while (c.moveToNext());\n }\n else\n {\n Log.i(TAG, \"There are no comments on the specified post.\");\n }\n dbH.close();\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n Log.i(TAG, \"Error in getting comments from DB.\");\n\n }\n\n return commentsList;\n }", "ImmutableList<SchemaOrgType> getCommentList();", "public java.lang.String getComments () {\n\t\treturn comments;\n\t}", "public void getCommentList(){\n Retrofit retrofit = ApiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n\n final SharedPreferences sharedPref = getSharedPreferences(\"TOKENSHARED\", Context.MODE_PRIVATE);\n final String token = sharedPref.getString(\"TOKEN\", null);\n\n Call<List<JsonResponseComment>> call = apiInterface.getComments(heritageId, \"Token \" + token);\n call.enqueue(new Callback<List<JsonResponseComment>>() {\n @Override\n public void onResponse(Call<List<JsonResponseComment>> call, Response<List<JsonResponseComment>> response) {\n if (response.isSuccessful()) {\n final ArrayList<JsonResponseComment> heritageList = (ArrayList<JsonResponseComment>) response.body();\n //Log.d(\"RESPONSE\", response.body());\n setCommentRecyclerView(heritageList);\n } else {\n Toast.makeText(getApplicationContext(), \"Sorry for inconvince server is down\" + response.code(), Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<JsonResponseComment>> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"Sorry for inconvince server is down\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic List<CommentVnEntity> GetCommentByMotel(Integer motel_id) {\n\t\treturn commentDao.ListCommentByMotel(motel_id);\n\t}", "public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public List<Commentary> fetchAll(int id_Note) {\n return commentaryRepository.findAll(id_Note);\n }", "com.google.protobuf.ByteString\n getCommentsBytes();", "@Override\r\n\tpublic List<CommentVO> commentRead(Integer boardkey) throws Exception {\n\r\n\t\treturn session.selectList(namespace + \".commentRead\", boardkey);\r\n\r\n\t}", "protected List<CommentDocument> getCommentsByRef(HttpServletRequest servletRequest, String documentId, int limit) throws RepositoryException, QueryException {\r\n if (documentId == null) {\r\n return null;\r\n }\r\n \r\n //Get the references to the context and the query manager\r\n HstRequestContext requestContext = getRequestContext(servletRequest);\r\n HstQueryManager hstQueryManager = getHstQueryManager(requestContext.getSession(), requestContext);\r\n\r\n //Determine search base\r\n String mountContentPath = requestContext.getResolvedMount().getMount().getContentPath();\r\n Node mountContentNode = requestContext.getSession().getRootNode().getNode(PathUtils.normalizePath(mountContentPath));\r\n\r\n //Create and execute query\r\n @SuppressWarnings(\"unchecked\")\r\n\t\tHstQuery hstQuery = hstQueryManager.createQuery(mountContentNode, CommentDocument.class);\r\n Filter filter = hstQuery.createFilter();\r\n filter.addEqualTo(\"website:reference/@hippo:docbase\", documentId.toLowerCase());\r\n hstQuery.setFilter(filter);\r\n if (limit > 0) {\r\n hstQuery.setLimit(limit);\r\n }\r\n\r\n HstQueryResult result = hstQuery.execute();\r\n \r\n if (result.getSize() == 0) {\r\n return Collections.emptyList();\r\n }\r\n \r\n //Read results\r\n List<CommentDocument> comments = new ArrayList<CommentDocument>(result.getSize());\r\n HippoBeanIterator iterator = result.getHippoBeans();\r\n\r\n while (iterator.hasNext()) {\r\n //Get all incoming comment links\r\n CommentDocument comment = (CommentDocument) iterator.nextHippoBean();\r\n\r\n if (comment != null) {\r\n comments.add(comment);\r\n }\r\n }\r\n\r\n return comments;\r\n }", "public int getComments() {\n return comments;\n }", "public int getComments() {\n return comments;\n }", "private List<ApartmentReviewBean> getReviewComments(String query, int id) {\n\t\tResultSet rs=null;\n\t\tList<ApartmentReviewBean> apartmentReviews = new ArrayList<ApartmentReviewBean>();\n\t\ttry {\n\t\t\t\n\t\t\t//pstmt = con.prepareStatement(query);\n\t\t\tPreparedStatement pstmt = dataSource.getConnection().prepareStatement(query);\n\t\t\tpstmt.setInt(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tApartmentReviewBean review = new ApartmentReviewBean();\n\t\t\t\treview.setComments(rs.getString(\"comments\"));\n\t\t\t\treview.setRating(rs.getInt(\"rating\"));\n\t\t\t\tapartmentReviews.add(review);\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn apartmentReviews;\n\t\n\t}", "public Message[] getComments (String sig) {\n Vector<Message> comments = new Vector<Message>();\n Logger.write(\"VERBOSE\", \"DB\", \"getComments(...)\");\n \n try {\n ResultSet commentSet = query(DBStrings.getComments.replace(\"__PARENT__\", sig));\n while (commentSet.next()) {\n Message cmnt = new MessageFactory().newCMNT(sig, commentSet.getString(\"msgText\"));\n cmnt.timestamp = Long.parseLong(commentSet.getString(\"creationTime\"));\n cmnt.signature = commentSet.getString(\"sig\");\n comments.add(cmnt);\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return comments.toArray(new Message[0]); \n }", "public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}", "@GetMapping(\"/{postId}/allComments\")\n public String showComments(@PathVariable(\"postId\") Long postId, Model model) {\n \tmodel.addAttribute(\"allComments\", mainService.allCommentsForPost(postId));\n \treturn \"comments.jsp\";\n }", "public List<Board> getCommentList(String boardUpper) throws SQLException {\n\t\treturn dao.getCommentList(boardUpper);\n\t}", "@Transactional\n\tpublic List<Comment> getListForQuiz(int quiz) {\n\t\ttry {\n\t List<Comment> comments =new ArrayList<Comment>();\n\t Set<Comment> commentsByUser=commentDao.getCommentsListForQuiz(quiz);\n\t \tfor (Iterator<Comment> it = commentsByUser.iterator(); it\n\t\t\t\t\t.hasNext();) {\n\t \t\tComment f = it.next();\n\t \t\tcomments.add(f);\n\t \t}\n\t if(comments==null || comments.size()==0) {\n\t return null;\n\t }\n\t return comments;\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@JsonProperty(\"taskComments\")\n @Override\n public Collection<TaskCommentRepresentationModel> getContent() {\n return super.getContent();\n }", "public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllComments_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_asNode(model, instanceResource, COMMENTS);\r\n\t}", "@Override\n\tpublic Collection<Comment> getAll(String summonerCommentId) {\n\t\treturn getSummonerComments(summonerCommentId).getComments();\n\t}", "void displayAllComments();", "public List<CommentBean> process(String url) {\n \t \t\n \tList<CommentBean> comments = new ArrayList<>();\n \t\n \ttry {\n \n\t YouTube youtubeService = getService();\n\t YouTube.CommentThreads.List request = youtubeService.commentThreads().list(\"snippet,replies\");\n\t String video_id = getVideoId(url);\n\t if(video_id == null) {\n\t \treturn null;\n\t }\n\t CommentThreadListResponse response = request.setKey(DEVELOPER_KEY).setVideoId(video_id).setOrder(\"time\").execute(); \n\t \n\t String nextpage = response.getNextPageToken();\n\t \t \t \n\t for(CommentThread t: response.getItems()) {\n\t \tCommentBean cb = new CommentBean();\n\t \tString name = t.getSnippet().getTopLevelComment().getSnippet().getAuthorDisplayName();\n\t \tString comment = utilities.cleanHTML(t.getSnippet().getTopLevelComment().getSnippet().getTextDisplay()); \n\t \tString date = t.getSnippet().getTopLevelComment().getSnippet().getUpdatedAt().toString(); \n\t \tLong rating = t.getSnippet().getTopLevelComment().getSnippet().getLikeCount();\n\t \tcb.setName(name);\n\t \tcb.setComment(comment);\n\t \tcb.setDate(date);\n\t \tcb.setRating(rating.toString());\n\t \tcomments.add(cb); \t\n\t \t \t\n\t \t \t\n\t }\n\t while(nextpage != null) {\n\t \trequest = youtubeService.commentThreads().list(\"snippet,replies\");\n\t \tresponse = request.setKey(DEVELOPER_KEY).setVideoId(getVideoId(url)).setPageToken(nextpage).execute();\n\t \t\n\t \tnextpage = response.getNextPageToken();\n\t \t for(CommentThread t: response.getItems()) {\n\t \t\tCommentBean cb = new CommentBean();\n\t \t\tString name = t.getSnippet().getTopLevelComment().getSnippet().getAuthorDisplayName();\n\t \tString comment = utilities.cleanHTML(t.getSnippet().getTopLevelComment().getSnippet().getTextDisplay()); \n\t \tString date = t.getSnippet().getTopLevelComment().getSnippet().getUpdatedAt().toString();\n\t \tString rating = String.valueOf(t.getSnippet().getTopLevelComment().getSnippet().getLikeCount()); \n\t \tcb.setName(name);\n\t \tcb.setComment(comment);\n\t \tcb.setDate(date);\n\t \tcb.setRating(rating.toString());\n\t \tSystem.out.println(\"comments: \" + comment);\n\t \tcomments.add(cb);\n\t \t\n//\t \tif(comments.size() == 500) {\n//\t \t\tnextpage = null;\n//\t \t}\n\t \t\t \t\n\t }\n\t \t\n\t \t\n\t }\n \t}\n \tcatch(Exception e) { \t\t\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n \tSystem.out.println(\"task completed!\");\n \n \treturn comments;\n \t\n }", "TrackerComments getTrackerComments(final Integer id);", "@Override\r\n\tpublic List<BoardQaComments> getBoardQaCommentsList(\r\n\t\t\tHttpServletRequest request, Integer pageNo, Integer bdNoQa) throws Throwable {\n\t\treturn this.boardQaCommentsDao.findAll(request, pageNo, bdNoQa);\t// 모든 댓글 불러오기\r\n\t}", "@Security.Authenticated(Authenticators.Admin.class)\n public Result commentsList(){\n return ok(commentslist.render(Comment.findAll()));\n }", "org.hl7.fhir.String getComments();", "public List<Bugcomment> getComments(int userId) {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "public static List<Comment> getCommentsByPostId(int postId) throws SQLException {\n try (\n PreparedStatementContainer container = PreparedStatementContainer.of(\n DatabaseConnector.getConnection(),\n \"select * from comment where postID = ?\",\n postId\n );\n ResultSet resultSet = container.query()\n ) {\n List<Comment> comments = new ArrayList<>();\n while (resultSet.next()) {\n comments.add(getComment(resultSet));\n }\n return comments;\n }\n }", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }", "public long getCommentCount() {\n return comments;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn comments.size();\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn comments.size();\n\t\t}", "public static ReactorResult<java.lang.String> getAllComments_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, COMMENTS, java.lang.String.class);\r\n\t}", "@Override\n public CRModel getAllComment(int currentPage, int size) {\n Integer total = upcDao.getAllCommentCount();\n if (total > 0) {\n Map<String,Object> res = new HashMap<>();\n res.put(\"total\",total);\n List<UPCModel> commentList = upcDao.getAllComment((currentPage-1)*size,size);\n if (commentList != null) {\n res.put(\"records\",commentList);\n return new CRModel(StatusCode.SUCCESS,\"\",res);\n }\n }\n return new CRModel(StatusCode.WARNING, \"获取所有评论\"+Message.WARNING,null);\n }", "@RestReturn(value=JComment.class, entity=JComment.class, code={\n @RestCode(code=200, message=\"OK\", description=\"All comments for user\")\n })\n @RequestMapping(value=\"\", method= RequestMethod.GET, params=\"username\")\n public ResponseEntity<Collection<JComment>> getMyComments(HttpServletRequest request,\n HttpServletResponse response,\n @RequestParam(required=true) String username) {\n\n final Iterable<DComment> dCommentIterable = rnrService.getMyComments(username);\n\n return new ResponseEntity<Collection<JComment>>((Collection<JComment>)CONVERTER.convert(dCommentIterable), HttpStatus.OK);\n }", "String getComment();", "String getComment();", "public String getCommentContent() {\n return commentContent;\n }", "public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Observable<CommentListResp> getComments(String postId) {\n\n return api.getComments(new PostRelatedReq(new PostRelatedReq.Snippet(pref.getString(Constants.BG_ID, \"\"), postId))).subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }", "ImmutableList<SchemaOrgType> getCommentCountList();", "@Override\n\tpublic List<Comment> findCommentbyuserId(String userId) {\n\t\treturn commentDao.findCommentbyuserId(userId);\n\t}", "@Override\n\tprotected CloudBaseAdapter getAdapter() {\n\t\treturn new CommentsAdapter(ca(), mListData, mLoadingImages);\n\t}" ]
[ "0.8078008", "0.8071732", "0.7909489", "0.78795326", "0.7850282", "0.78183746", "0.7797433", "0.7776005", "0.7751977", "0.77460766", "0.7744831", "0.7689996", "0.7662827", "0.7660674", "0.7585407", "0.75495744", "0.75055635", "0.74327904", "0.7424941", "0.7411389", "0.7411389", "0.74113774", "0.7365434", "0.72797984", "0.72772", "0.7224555", "0.7190076", "0.7167862", "0.71530694", "0.71337473", "0.71294284", "0.71173596", "0.7074156", "0.7045623", "0.7018746", "0.70117766", "0.70061", "0.7002932", "0.69859517", "0.6984434", "0.69838184", "0.6973308", "0.69717073", "0.69625056", "0.6948889", "0.69437546", "0.69410455", "0.69051623", "0.6902881", "0.6897419", "0.6857625", "0.68552923", "0.68536144", "0.68495536", "0.6845764", "0.684565", "0.68451", "0.68446887", "0.6836594", "0.6823215", "0.68051004", "0.67850643", "0.67818505", "0.67745006", "0.6654477", "0.6645097", "0.66406846", "0.66406846", "0.6615861", "0.66111016", "0.6596904", "0.65917957", "0.6580517", "0.6554407", "0.6549306", "0.6542256", "0.6532088", "0.6524229", "0.651823", "0.6515793", "0.65049374", "0.65036035", "0.64881253", "0.6476162", "0.64683056", "0.6453295", "0.6451597", "0.64426196", "0.6439558", "0.64311606", "0.642603", "0.64241886", "0.6405707", "0.6405707", "0.6373921", "0.63649863", "0.6355553", "0.63527006", "0.63382876", "0.63246" ]
0.68920416
50
//////////////////////////////////////////////////////////////////// Media Controller ////////////////////////////////////////////////////////////////////
private boolean isInPlaybackState() { return (mMediaPlayer != null && mStatus != STATUS_STOPPED && mStatus != STATUS_IDLE && mStatus != STATUS_PREPARING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IMediaController {\n}", "public abstract String playMedia ();", "protected void onMediaControllerConnected() {\n }", "public abstract void chooseMedia();", "public MediaController getController() {\n return mController;\n }", "public void importMedia(){\r\n \r\n }", "public void startApp() throws MIDletStateChangeException {\n\t\t// #ifdef includePhoto\n\t\t// [NC] Added in the scenario 07\n\t\timageModel = new ImageAlbumData();\n\n\t\tAlbumListScreen album = new AlbumListScreen();\n\t\timageRootController = new BaseController(this, imageModel, album);\n\t\t\n\t\t// [EF] Add in scenario 04: initialize sub-controllers\n\t\tMediaListController photoListController = new MediaListController(this, imageModel, album);\n\t\tphotoListController.setNextController(imageRootController);\n\t\t\n\t\tAlbumController albumController = new AlbumController(this, imageModel, album);\n\t\talbumController.setNextController(photoListController);\n\t\talbum.setCommandListener(albumController);\n\t\t//#endif\n\t\t\n\t\t//#if (includeMusic && includePhoto)||(includeMusic && includeVideo) || (includeVideo && includePhoto)\n\t\tSelectTypeOfMedia mainscreen = new SelectTypeOfMedia();\n//\t\tmainscreen.initMenu();\n//\t\tmainscreen.setCommandListener(selectcontroller);\n//\t\tDisplay.getDisplay(this).setCurrent(mainscreen);\n//\t\tScreenSingleton.getInstance().setMainMenu(mainscreen);\n//\t\t//#elif includePhoto\t\t\n\t\timageRootController.init(imageModel);\n\t\t// [Demostenes] - adicionado para executar os comandos handleCommand dos controladores e outros comandos.\n\t\t// #begin\n\t\tCommand command = new Command(\"command\",0,1);\n\t\t\n\t\t//#ifdef includePhoto\n\t\timageRootController.commandAction(command, mainscreen);\n\t\t//#endif\n\t\t\n\t\tphotoListController.commandAction(command, mainscreen);\t\t\n\t\talbumController.commandAction(command, mainscreen);\n\t\t\n//\t\t//#if (includeMusic && includePhoto)||(includeMusic && includeVideo) || (includeVideo && includePhoto)\n//\t\tselectcontroller.commandAction(command, mainscreen);\n//\t\t//#endif\n\t\t\t\t\t\n\t\tMediaController mediaController = new MediaController(this, imageModel, album);\n\t\tmediaController.commandAction(command, album);\n\t\t\n\t\tInputStream storedMusic = null;\n\t\ttry {\n\t\t\tstoredMusic = new FileInputStream(\"file\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// #end\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void newMedia(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "String getMedia();", "private void addMediaMenu(){\n\t\t\n\t}", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(14)\n java.lang.String media();", "public void showMediaList(){\r\n mediaView.showMediaList(getMediaList());\r\n }", "public void setMedia(String m) {\n\t\tmedia = m;\n\t}", "public Media() {\n\t}", "public File getMediaDir() {\r\n return mediaDir;\r\n }", "@NonNull\n public MediaViewController getMediaViewController() {\n return mMediaViewController;\n }", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(13)\n void media(\n java.lang.String p);", "@Override\n public void run() {\n MediaBrowser.Builder builder = new MediaBrowser.Builder(mContext)\n .setSessionToken(token)\n .setControllerCallback(sHandlerExecutor, callback);\n if (connectionHints != null) {\n builder.setConnectionHints(connectionHints);\n }\n controller.set(builder.build());\n }", "abstract public MediaFile getMainFile();", "@Override\r\n\tpublic void start() {\n\t\tmediaPlayer.start();\r\n\t}", "private void loadMedia() {\n\t\tmt = new MediaTracker(this);\n\t\timage_topbar = getToolkit().getImage(str_topbar);\n\t\timage_return = getToolkit().getImage(str_return);\n\t\timage_select = getToolkit().getImage(str_select);\n\t\timage_free = getToolkit().getImage(str_free);\n\t\timage_message = getToolkit().getImage(str_message);\n\t\timage_tradition = getToolkit().getImage(str_tradition);\n\t\timage_laizi = getToolkit().getImage(str_laizi);\n\t\timage_head = getToolkit().getImage(str_head);\n\t\timage_headframe = getToolkit().getImage(str_headframe);\n\t\timage_headmessage = getToolkit().getImage(str_headmessage);\n\t\timage_help = getToolkit().getImage(str_help);\n\t\timage_honor = getToolkit().getImage(str_honor);\n\t\timage_beans = getToolkit().getImage(str_beans);\n\t\t\n\t\t\n\t\tmt.addImage(image_free, 0);\n\t\tmt.addImage(image_head, 0);\n\t\tmt.addImage(image_headframe, 0);\n\t\tmt.addImage(image_headmessage, 0);\n\t\tmt.addImage(image_help, 0);\n\t\tmt.addImage(image_honor, 0);\n\t\tmt.addImage(image_laizi, 0);\n\t\tmt.addImage(image_message, 0);\n\t\tmt.addImage(image_return, 0);\n\t\tmt.addImage(image_select, 0);\n\t\tmt.addImage(image_topbar, 0);\n\t\tmt.addImage(image_tradition, 0);\n\t\tmt.addImage(image_beans, 0);\n\t\t\n\t\t\n\t\ttry {\n\t\t\tmt.waitForAll();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public MediaControl getMediaControl() {\n return this;\n }", "public MediaField getMedia() {\n\treturn mediaField;\n \n }", "void mo80555a(MediaChooseResult mediaChooseResult);", "Media getMedia(long mediaId);", "public void setMedia(java.lang.String media) {\n this.media = media;\n }", "private void playMedia() throws IOException{\n Map<String,Object> properties = new HashMap<String, Object>();\n String bitrate = System.getProperty(\"bitrate\");\n if(bitrate!=null){\n properties.put(\"bitrate\", Integer.parseInt(System.getProperty(\"bitrate\")));\n }\n synchronized (streamSpec.getAudioMedias()) {\n frameIterator = frameIteratorFactory.getIterator(streamSpec.getAudioMedias().get(0), properties);\n frameIterator.open(streamSpec.getAudioMedias().get(0), properties);\n updateCurrentMedia(streamSpec.getAudioMedias().get(0));\n }\n logger.info(\"now playing \" + currentMetadata() + \" with properties \" + properties);\n status = Status.PLAYING;\n for (StreamListener listener : streamListeners) {\n listener.mediaChanged();\n }\n }", "public void playMedia() {\n\t\tif (MainActivity.mPlayer == null) {\n\t\t\tMainActivity.mPlayer = new MediaPlayer();\n\t\t\tMainActivity.mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t}\n\t\tif (!MainActivity.currentSong.getTitleKey().equals(song.getTitleKey())) {\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t\tMainActivity.mPlayer.reset();\n\t\t}\n\n\t\ttitle = song.getTitle();\n\t\talbumTitle = album.getAlbum();\n\t\talbumArt = album.getAlbumArt();\n\n\t\ttry {\n\t\t\tMainActivity.mPlayer.setDataSource(this, song.getUri());\n\t\t\tMainActivity.mPlayer.prepare();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalStateException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tMainActivity.mPlayer.setOnPreparedListener(new OnPreparedListener() {\n\t\t\t@Override\n\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\tmp.start();\n\t\t\t}\n\t\t});\n\t\tMainActivity.mPlayer.setOnCompletionListener(new OnCompletionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tnext();\n\t\t\t}\n\n\t\t});\n\n\t\tnew Handler(getMainLooper()).post(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tupdateMainActivity();\n\t\t\t\tupdateNowPlaying();\n\t\t\t}\n\t\t});\n\t}", "public void setMediaEncryption(MediaEncryption menc);", "public void exportMedia(){\r\n \r\n }", "public SieteYMedia(){\r\n\t\ttitle = \"Siete y Media v1.0\";\r\n\t\twidth = 1024;\r\n\t\theight = 748;\r\n\t}", "public interface MediaPlayer {\r\n\r\n public void play(String mediaType,String fileName);\r\n}", "public java.lang.String getMedia() {\n return media;\n }", "private void setController() {\n if (controller == null) {\n controller = new MusicController(this);\n }\n controller.setPrevNextListeners(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playNext();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playPrev();\n }\n }\n );\n\n controller.setMediaPlayer(this);\n controller.setAnchorView(findViewById(R.id.song_list));\n controller.setEnabled(true);\n }", "URI getMediaURI();", "public CalculoMedia() {\n initComponents();\n \n }", "@Override\r\n\tpublic void mediaStateChanged(MediaPlayer mediaPlayer, int newState)\r\n\t{\n\r\n\t}", "public interface MultimediaControl {\n\n public void play();//Method adding play functionality\n\n public void stop();//Method adding stop functionality\n\n public void previous();//Method adding previous functionality\n\n public void next();//Method adding next functionality\n}", "@Override\r\n public void handleMediaEvent(MediaEvent event) {\r\n if(running){\r\n try {\r\n Media media = event.getSource();\r\n String pluginName = media.getPluginName();\r\n Map<String,Object> location = SharedLocationService.getLocation(media.getPluginLocationId());\r\n switch(event.getEventType()){\r\n case PLAYER_PLAY:\r\n Map<String,Object> playerData = media.getNowPlayingData();\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"type\",((MediaPlugin.ItemType)playerData.get(\"ItemType\")).toString().toLowerCase());\r\n if ((MediaPlugin.ItemType)playerData.get(\"ItemType\") == MediaPlugin.ItemType.AUDIO) {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title artist\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"album artist\",(String)playerData.get(MediaPlugin.ItemDetails.ALBUM_ARTIST.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n } else {\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"title\",(String)playerData.get(MediaPlugin.ItemDetails.TITLE.toString()));\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"duration\",playerData.get(MediaPlugin.ItemDetails.DURATION.toString()).toString());\r\n }\r\n break;\r\n case PLAYER_PAUSE:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n case PLAYER_STOP:\r\n publishMediaItem((String)location.get(\"floorname\"),(String)location.get(\"name\"),pluginName,\"action\",event.getEventType().toString().toLowerCase());\r\n break;\r\n }\r\n } catch (Exception ex) {\r\n LOG.error(\"Could not publish to broker: {}\", ex.getMessage(), ex);\r\n }\r\n }\r\n }", "public void play()\n {\n this.mediaPlayer = new MediaPlayer(file);\n this.mediaPlayer.setVolume(volume);\n\n // Listener for end of media.\n mediaPlayer.setOnEndOfMedia(() -> {\n this.mediaPlayer.stop();\n });\n\n mediaPlayer.play();\n }", "public void recordVideo() {\n\n }", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "public interface IMediaPresenter {\n\n void onCreate(int isLiveStreaming, int iCodec);\n void onResume();\n void onPause();\n void onDestroy();\n void pauseDisplay();\n void resumeDisplay();\n}", "@Override\r\n\tpublic void mediaChanged(MediaPlayer arg0, libvlc_media_t arg1, String arg2)\r\n\t{\n\t\t\r\n\t}", "MediaService getService() {\n return MediaService.this;\n }", "public void getMedia() {\n\tif (sound != null && soundData == null) {\n\t soundData = parent.getAudioClip(sound);\n\t}\n\tif (soundData == null) {\n\t System.out.println(\"SoundArea: Unable to load data \"+sound);\n\t}\n\tisReady = true;\n }", "public interface DisplayHandler {\n\t\n\tpublic void onNoMedia(DefMediaPlayer player);\n\t\n public void onPlay(DefMediaPlayer player);\n\n public void onStop(DefMediaPlayer player);\n\n}", "public static void generateUploadRichMedia()\n\t{\t\n\t\t\n\t\tAdvRMContentDetail rmContentDetail = new AdvRMContentDetail();\n\t\trmContentDetail.getContentId();\n\t\trmContentDetail.getAdGroupLandingURL();\n\t\trmContentDetail.getRmContent().getContentProvider();\n\t\n\t\t\n\t}", "public MediaController(@NonNull Context context, @NonNull MediaSession.Token token) {\n if (context == null) {\n throw new IllegalArgumentException(\"context shouldn't be null\");\n }\n if (token == null) {\n throw new IllegalArgumentException(\"token shouldn't be null\");\n }\n if (token.getBinder() == null) {\n throw new IllegalArgumentException(\"token.getBinder() shouldn't be null\");\n }\n mSessionBinder = token.getBinder();\n mTransportControls = new TransportControls();\n mToken = token;\n mContext = context;\n }", "private SoundController() {\n\t\tsoundbank = new HashMap<String, Sound>();\n\t\tmusicbank = new HashMap<String, Music>();\n\t\tactives = new IdentityMap<String,ActiveSound>();\n\t\tcollection = new Array<String>();\n\t\tcooldown = DEFAULT_COOL;\n\t\ttimeLimit = DEFAULT_LIMIT;\n\t\tframeLimit = DEFAULT_FRAME;\n\t\tcurrent = 0;\n\t}", "@Override\r\n\tpublic void onMedia(HttpRequest paramHttpRequest, Media media) {\n\t\tif (paramHttpRequest.getAttibute(request_object) != null) {\r\n\t\t\tHttpRequest request = (HttpRequest) paramHttpRequest\r\n\t\t\t\t\t.getAttibute(request_object);\r\n\t\t\tObject message = paramHttpRequest.getAttibute(message_object);\r\n\t\t\tif (message != null) {\r\n\t\t\t\tOutMessage msg = null;\r\n\t\t\t\tif (message instanceof BroadcastMessage) {\r\n\t\t\t\t\tmsg = (BroadcastMessage) paramHttpRequest\r\n\t\t\t\t\t\t\t.getAttibute(message_object);\r\n\t\t\t\t\tMedia m = msg.getMedia();\r\n\t\t\t\t\tif (m instanceof Video) {\r\n\t\t\t\t\t\tMpvideo mv = new Mpvideo((Video) m);\r\n\t\t\t\t\t\tmv.setMedia_id(media.getMedia_id());\r\n\t\t\t\t\t\tmsg.setMsgtype(MsgType.mpvideo.name());\r\n\t\t\t\t\t\t((BroadcastMessage) msg).setMpvideo(mv);\r\n\t\t\t\t\t\tmsg.setVideo(null);\r\n\r\n\t\t\t\t\t\tHttpRequest upload = RequestFactory.videoMsgRequest(\r\n\t\t\t\t\t\t\t\tthis, session.getApp().getAccess_token(),\r\n\t\t\t\t\t\t\t\tmv.toJson());\r\n\t\t\t\t\t\tupload.setAttribute(request_object, request);\r\n\t\t\t\t\t\tupload.setAttribute(message_object, msg);\r\n\t\t\t\t\t\tsession.execute(request);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (message instanceof OutMessage) {\r\n\t\t\t\t\tmsg = (OutMessage) paramHttpRequest\r\n\t\t\t\t\t\t\t.getAttibute(message_object);\r\n\t\t\t\t}\r\n\t\t\t\tif (msg != null) {\r\n\t\t\t\t\tmsg.getMedia().setMedia_id(media.getMedia_id());\r\n\t\t\t\t\trequest.setContent(msg.toJson());\r\n\t\t\t\t\tsession.execute(request);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void play() {\n\n\t}", "public interface MediaBrowserProvider {\n MediaBrowserCompat getMediaBrowser();\n}", "public List<JRMediaObject> getMedia() {\n return mMedia;\n }", "public interface MediaPlayer {\n public void play(String audioType, String fileName);\n}", "public interface MediaPlayer {\n public void play(String audioType, String fileName);\n}", "public abstract MediaItem getMediaItem(String id);", "public interface VideoCastController {\n\n int CC_ENABLED = 1;\n int CC_DISABLED = 2;\n int CC_HIDDEN = 3;\n\n int NEXT_PREV_VISIBILITY_POLICY_HIDDEN = 1;\n int NEXT_PREV_VISIBILITY_POLICY_DISABLED = 2;\n int NEXT_PREV_VISIBILITY_POLICY_ALWAYS = 3;\n\n /**\n * Sets the bitmap for the album art\n */\n void setImage(Bitmap bitmap);\n\n /**\n * Sets the title\n */\n void setTitle(String text);\n\n /**\n * Sets the subtitle\n */\n void setSubTitle(String text);\n\n /**\n * Sets the playback state, and the idleReason (this is only used when the state is idle).\n * Values that can be passed to this method are from {@link MediaStatus}\n */\n void setPlaybackStatus(int state);\n\n /**\n * Assigns a {@link OnVideoCastControllerListener} listener to be notified of the changes in\n * the {@link }VideoCastController}\n */\n void setOnVideoCastControllerChangedListener(OnVideoCastControllerListener listener);\n\n /**\n * Sets the type of stream. {@code streamType} can be\n * {@link com.google.android.gms.cast.MediaInfo#STREAM_TYPE_LIVE} or\n * {@link com.google.android.gms.cast.MediaInfo#STREAM_TYPE_BUFFERED}\n */\n void setStreamType(int streamType);\n\n /**\n * Updates the position and total duration for the seekbar that presents the progress of media.\n * Both of these need to be provided in milliseconds.\n */\n void updateSeekbar(int position, int duration);\n\n /**\n * Adjust the visibility of control widgets on the UI.\n */\n void updateControllersStatus(boolean enabled);\n\n /**\n * Can be used to show a loading icon during processes that could take time.\n */\n void showLoading(boolean visible);\n\n /**\n * Closes the activity related to the UI.\n */\n void closeActivity();\n\n /**\n * This can be used to adjust the UI for playback of live versus pre-recorded streams. Certain\n * UI widgets may need to be updated when playing a live stream. For example, the progress bar\n * may not be needed for a live stream while it may be required for a pre-recorded stream.\n */\n void adjustControllersForLiveStream(boolean isLive);\n\n /**\n * Updates the visual status of the Closed Caption icon. Possible states are provided by\n * <code>CC_ENABLED, CC_DISABLED, CC_HIDDEN</code>\n */\n void setClosedCaptionState(int status);\n\n void onQueueItemsUpdated(int queueLength, int position);\n\n void setNextPreviousVisibilityPolicy(int policy);\n}", "public int getMediaCount() {\n return mediaCount_;\n }", "public MediaField getMediaField() {\n\treturn mediaField;\n }", "void mo23488a(Handler handler, MediaSourceEventListener mediaSourceEventListener);", "public interface MediaPlayer {\n public void play();\n}", "public interface MediaPlayer {\n void play(String audioType, String fileName);\n}", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "private void audioManipulatorResetMediaPlayer() {\n\t\tcontroller.audioManipulatorResetMediaPlayer();\n\t}", "@Override\n public void onPrepared(MediaPlayer mp) {\n playMedia();\n }", "public void setMedia(List<JRMediaObject> media) {\n mMedia = media;\n }", "public void testMultimedia() {\n AudioPlayer newAudioProduct = new AudioPlayer(\"DP-X1A\", \"Onkyo\",\n \"DSD/FLAC/ALAC/WAV/AIFF/MQA/Ogg-Vorbis/MP3/AAC\", \"M3U/PLS/WPL\");\n Screen newScreen = new Screen(\"720x480\", 40, 22);\n MoviePlayer newMovieProduct = new MoviePlayer(\"DBPOWER MK101\", \"OracleProduction\", newScreen,\n MonitorType.LCD);\n ArrayList<MultimediaControl> productList = new ArrayList<MultimediaControl>();\n productList.add(newAudioProduct);\n productList.add(newMovieProduct);\n for (MultimediaControl p : productList) {\n System.out.println(p);\n p.play();\n p.stop();\n p.next();\n p.previous();\n }\n }", "@Override\r\n\tpublic void opening(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "private Media(Element media)\n\t\t{\n\t\t\tthis.mediaElement = media;\n\t\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "@Override\r\n\tpublic void mediaMetaChanged(MediaPlayer mediaPlayer, int metaType)\r\n\t{\n\r\n\t}", "@Override\r\n\tpublic Media display() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic void dmr_play(String uri, String name, String player, String album) throws RemoteException {\n\t\t\tUtils.printLog(TAG, \"dmr_play uri \" + uri+\" name=\"+name+\" player=\"+player+\" album=\"+album);\r\n\t\t\t// if(mVideoContrl != null && nSreenTVService != null\r\n\t\t\t// && playStatus.endsWith(\"PAUSED_PLAYBACK\")){\r\n\t\t\t// mVideoPlayerHander.sendEmptyMessage(VIDEO_PLAY_START_OR_PAUSE);\r\n\t\t\t// }else{\r\n\t\t\tif (uri == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tmList = new ArrayList<MediaBean>();\r\n\t\t\tMediaBean bean = new MediaBean();\r\n\t\t\tbean.mPath = uri;\r\n\r\n\t\t\t// if (uri.startsWith(\"http\")) {\r\n\t\t\r\n\t\t\t// Utils.printLog(TAG, \"URLDecoder path =\" + uri);\r\n\t\t\t// bean.mName = Utils.getRealName(uri);\r\n\t\t\t// } else {\r\n\t\t\t// bean.mName = Utils.getRealName(uri);\r\n\t\t\t// }\r\n\t\t\tbean.mName = name;\r\n\t\t\tif (bean.mName == null || bean.mName.equalsIgnoreCase(\"\") || bean.mName.equals(\"unkown\")) {\r\n\t\t\t\tbean.mName = Utils.getRealName(uri);\r\n\t\t\t}\r\n\r\n\t\t\tmList.add(bean);\r\n\t\t\tmCurrIndex = 0;\r\n\t\t\tif (mVideoContrl != null) {\r\n\t\t\t\tmVideoPlayerHander.sendEmptyMessage(PLAYER_URL);\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate void setControllerVariables() {\n\t\tcontrollerVars.setAudioManager((AudioManager) act.getSystemService(Context.AUDIO_SERVICE));\n\t\tcontrollerVars.setActVolume((float) controllerVars.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setMaxVolume((float) controllerVars.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setVolume(controllerVars.getActVolume() / controllerVars.getMaxVolume());\n\n\t\t//Hardware buttons setting to adjust the media sound\n\t\tact.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\t// the counter will help us recognize the stream id of the sound played now\n\t\tcontrollerVars.setCounter(0);\n\n\t\t// Load the sounds\n\t\tcontrollerVars.setSoundPool(new SoundPool(20, AudioManager.STREAM_MUSIC, 0));\n\t\tcontrollerVars.getSoundPool().setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\t\t @Override\n\t\t public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t \tcontrollerVars.setLoaded(true);\n\t\t }\n\t\t});\t\t\n\t}", "public void showCastMiniController() {\n }", "public interface AdvancedMediaPlayer {\n public void playVlc(String fileName);\n public void playMp4(String fileName);\n}", "public void play() {\n\t\t\r\n\t}", "public Media() {\n assetId = MediaID.generate();\n created = Date.from(Instant.now());\n }", "public interface OnMediaPlayingListener {\n /**\n * duration for the media file\n * @param duration milliseconds\n */\n void onStart(int duration);\n\n void onComplete();\n\n /**\n * media play progress\n * @param currentPosition milliseconds\n */\n void onProgress(int currentPosition);\n}", "protected void loadMedia(Page page) {\n \t\tif (mMessageStream == null) {\n \t\t\treturn;\n \t\t}\n \n \t\tmMetaData.setTitle(\"odr\");\n \t\ttry {\n \t\t\tString ip = getLocalIpAddress();\n \t\t\tString fileName = page.getUri().getLastPathSegment();\n \n \t\t\tMediaProtocolCommand cmd = mMessageStream.loadMedia(\"http://\" + ip\n \t\t\t\t\t+ \":1993/\" + fileName, mMetaData, true);\n \t\t\tcmd.setListener(new MediaProtocolCommand.Listener() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void onCompleted(MediaProtocolCommand mPCommand) {\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void onCancelled(MediaProtocolCommand mPCommand) {\n \t\t\t\t}\n \t\t\t});\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \n \t\t\tshowCrouton(R.string.chromecast_failed, null, AppMsg.STYLE_ALERT);\n \t\t}\n \t}", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public String getMediaUrl() {\n return this.MediaUrl;\n }", "public interface SoundboardMediaProvider {\n\n /**\n * Play a sound from the beginning, with a specified track to play next once this one is complete.\n * @param context The initiating android context\n * @param soundId The resource ID of the sound to be played\n * @param playNextListener The on-completion listener to use to determine the next track to play\n */\n void play(final Context context, final int soundId, final OnCompletionPlayNextListener playNextListener);\n\n /**\n * Switch over to a new track at the current timestamp of the track that is currently playing.\n * If no track is currently playing, the new track is started from the beginning.\n * @param context The android context that is initiating this action\n * @param soundIdToSwitchTo The resource ID of the track to switch to\n */\n void switchTrack( final Context context, final int soundIdToSwitchTo, final OnCompletionPlayNextListener playNextListener);\n\n /**\n * Halt the underlying media player and clean everything up.\n */\n void stop();\n\n /**\n * Get the resource ID of the track that is currently playing.\n * @return The resource ID of the currently playing track, or {@code null} if there is no track\n * currently playing\n */\n Integer getCurrentlyPlayingSoundId();\n}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Media getMedia() {\r\n return media;\r\n }", "public FilmstripController getFilmstripController();", "public void setMediaField(MediaField m) {\n\tmediaField = m;\n }", "@Override\n public void onMediaClicked(int position) {\n }", "private void initialMusic(){\n\n }", "public void play(){\n\t\t\n\t}", "public List<Medium> getAllMedia() throws ContestManagementException {\n return null;\r\n }", "public List<Medium> getAllMedia() throws ContestManagementException {\n return null;\r\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public interface AdvancedMediaPlayer {\r\n void playMp4(String fileName);\r\n\r\n void playVlc(String fileName);\r\n}", "private void to(){\n\tmediaPlayer = new android.media.MediaPlayer();\n\ttry{\n\t mediaPlayer.setDataSource(sdPath);\n\t mediaPlayer.prepare();\n\t mediaPlayer.start();\n\t Thread.sleep(1000);\n\t}\n\tcatch(Exception e){}\n }", "@Override\r\n\tpublic void mediaParsedChanged(MediaPlayer mediaPlayer, int newStatus)\r\n\t{\n\r\n\t}", "protected void connect(){\n MediaBrowserCompat mediaBrowser = mediaBrowserProvider.getMediaBrowser();\n if (mediaBrowser.isConnected()) {\n onConnected();\n }\n }", "public AudioController(){\n\t sounds = new LinkedList<>();\n\t removables = new LinkedList<>();\n\t availableIds = new HashSet<>();\n\t populateIds();\n\t}", "MediaTypesLibrary createMediaTypesLibrary();", "private void mediaSessionInitializer() {\n mMediaSessionCompat = new MediaSessionCompat(getContext(), TAG);\n\n // Set flags for external clients in a car and media buttons\n mMediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS\n | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS);\n\n // Don't let external client restart the player when not in UI\n mMediaSessionCompat.setMediaButtonReceiver(null);\n\n // Set available actions to support outside UI\n mStateBuilder = new PlaybackStateCompat.Builder()\n .setActions(PlaybackStateCompat.ACTION_PLAY |\n PlaybackStateCompat.ACTION_PLAY_PAUSE |\n PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |\n PlaybackStateCompat.ACTION_PLAY_PAUSE);\n\n // Set the playback state for compat\n mMediaSessionCompat.setPlaybackState(mStateBuilder.build());\n\n // Handle callbacks from media controller\n mMediaSessionCompat.setCallback(new SessionCallbacks());\n\n // Start the Media Session since the activity is active\n mMediaSessionCompat.setActive(true);\n }", "@Override\n\tpublic void start(Stage primaryStage)throws Exception\n\t{\n\t\tString path=\"src/java_javafx/javafx_media/Videos/Blank Space - Taylor Swift 1080p.mp4\";\n\t\t//Instantiating Media Class\n\t\tMedia media=new Media(new File(path).toURI().toString());\n\t\t//Instantiating MediaPlayer class\n\t\tMediaPlayer mediaPlayer=new MediaPlayer(media);\n\t\t//Instantiating MediaView class\n\t\tMediaView mediaView=new MediaView(mediaPlayer);\n \t\t//by setting this property to true, the Video will be played\n\t\tmediaPlayer.setAutoPlay(true);\n\t\t//setting group and scene\n\t\tStackPane root=new StackPane();\n\t\troot.getChildren().add(mediaView);\n\t\tScene scene=new Scene(root,1920,1080);\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Playing Video\");\n\t\tprimaryStage.show();\n\t}" ]
[ "0.73468655", "0.73248225", "0.7131102", "0.67800313", "0.6715933", "0.6680948", "0.6517802", "0.6483514", "0.64765686", "0.6421639", "0.6348561", "0.63364345", "0.629482", "0.6285314", "0.6232242", "0.6229896", "0.6224468", "0.6222277", "0.6221447", "0.62129486", "0.61750716", "0.61508113", "0.613388", "0.60862875", "0.6074355", "0.6049982", "0.6044789", "0.6041136", "0.60156673", "0.59908843", "0.5988095", "0.59848267", "0.5961989", "0.5952675", "0.5944166", "0.5941152", "0.5921521", "0.59164536", "0.5902453", "0.5882151", "0.588023", "0.5869415", "0.5831054", "0.58282775", "0.5827843", "0.58244956", "0.5817969", "0.58179367", "0.5794461", "0.5778744", "0.577117", "0.57594115", "0.5754551", "0.5753614", "0.57535547", "0.57535547", "0.5750778", "0.57424456", "0.57420075", "0.5741517", "0.5740889", "0.5732088", "0.5728501", "0.5727198", "0.57268536", "0.5723493", "0.5723193", "0.5717924", "0.571784", "0.5714961", "0.5713177", "0.5709331", "0.5708841", "0.57058865", "0.57007724", "0.56991255", "0.5698565", "0.56892705", "0.56764543", "0.5661469", "0.56580967", "0.56570303", "0.5633572", "0.56317675", "0.5625057", "0.5623606", "0.56180805", "0.5617574", "0.5614434", "0.5609727", "0.56068903", "0.56068903", "0.56061125", "0.56046325", "0.56038827", "0.5603114", "0.56016386", "0.5598758", "0.5598209", "0.5596072", "0.55952555" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.rider_tracking_fragment, container, false); //getting reference to the widgets in layout progressBar = view.findViewById(R.id.viewTrackingProgressBar); message = view.findViewById(R.id.viewTrackingMessage); //method call to get bookings getPlacedBookings(view, getContext()); 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
check if the retruned object is null
@Override public void onSuccess(QuerySnapshot queryDocumentSnapshots) { if(queryDocumentSnapshots.isEmpty()){ //displays "no bookings" message message.setVisibility(View.VISIBLE); progressBar.setVisibility(View.GONE); } for (QueryDocumentSnapshot bookingInfo : queryDocumentSnapshots) { Booking booking = bookingInfo.toObject(Booking.class); //getting user id String bUserId = booking.getUserId().trim(); //check if current users id matches the queried user id if(bUserId.equals(userId)){ //get bike model of the current user getBikeModel(booking, view, bookings, context); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasObject(){\n return _object != null;\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public static boolean checkObjNull(Object obj) {\n Optional<Object> optional = Optional.ofNullable(obj);\n if (!optional.isPresent()) {\n return true;\n }\n return false;\n }", "private boolean isNull(Object anObject) {\n\t\tif(anObject == null) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "private static boolean isNotNull(Object object) {\n\t\tif (object != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }", "boolean checkNull();", "public boolean isNull(){\n return false;\n }", "public boolean isNull() {\n return this.data == null;\n }", "@Test\r\n public void testRetrieveNull() {\r\n\r\n assertNull(instance.retrieve(paymentDetail1));\r\n }", "private static void assertObjectInGetInternalStateIsNotNull(Object object) {\n if (object == null) {\n throw new IllegalArgumentException(\"The object containing the field cannot be null\");\n }\n }", "private boolean m16125a(Object obj) {\n return obj == null || obj.toString().equals(\"\") || obj.toString().trim().equals(\"null\");\n }", "public boolean canProcessNull() {\n return false;\n }", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "public final boolean checkIfInZone(L2Object obj) { return (getSiege(obj) != null); }", "public TestCase isNull( Object obj );", "public static boolean isObjectNull(BasicDBObject dbObject, Enum field) {\n //if (dbObject == null || dbObject.toString() == null) \n return dbObject.get(field.toString()) != null;\n }", "public static boolean isNull()\r\n {\r\n return (page == null);\r\n }", "public boolean isEmpty()\n {return data == null;}", "public boolean isEmpty( Object object ){\n if( object == null ){\n return true;\n }\n return false;\n }", "boolean isNilValue();", "public boolean isNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }", "boolean getActiveNull();", "default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }", "public static boolean checkObjNotNull(Object obj) {\n Optional<Object> optional = Optional.ofNullable(obj);\n if (optional.isPresent()) {\n return true;\n }\n return false;\n }", "protected synchronized boolean isObjectPresent() { return objPresent; }", "private static boolean empty(Object object) {\n\t\treturn false;\n\t}", "public static <T> void checkNull(T obj){\n if(obj == null){\n throw new IllegalArgumentException(\"Object is null\");\n }\n }", "private boolean isPresent(JSONObject object, String key) {\n\n\t\treturn !(object.isNull(key));\n\n\t}", "@Override\n public Object getObject()\n {\n return null;\n }", "public boolean isSetObject() {\n return this.object != null;\n }", "@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }", "@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }", "@Override\n\tpublic Boolean validate(Object obj) throws BusinessException {\n\t\treturn null;\n\t}", "public boolean isEmpty(){\n return raiz == null;\n }", "public boolean isEmpty(){\n return thing == null;\n }", "public boolean isValid()\r\n {\r\n \treturn this.vp.data != null;\r\n }", "public TestCase notNull( Object obj );", "boolean isEmpty(){\n return (book == null);\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "boolean getOrderPersonIdNull();", "public boolean isNull() {\n return false;\n }", "public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}", "private ResponseEntity<?> checkNull(CategoryVO cat) {\n\t\tif(cat!=null)\n\t\t\treturn new ResponseEntity<>(cat,HttpStatus.OK);\n\t\treturn new ResponseEntity<>(cat,HttpStatus.BAD_REQUEST);\n\t}", "public boolean isNullInstance()\n {\n return code == null;\n }", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public boolean checkValue(Object obj) {\n\treturn (obj instanceof Long) || (obj == null) ;\n }", "@Override\n public boolean isEmpty() {\n return getSnapshot() == null;\n }", "protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "public M csrtIsIncomeNull(){if(this.get(\"csrtIsIncomeNot\")==null)this.put(\"csrtIsIncomeNot\", \"\");this.put(\"csrtIsIncome\", null);return this;}", "boolean isIsNotNull();", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "public boolean isNonNull() {\n return true;\n }", "@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}", "public boolean repOK(){\n if(passenger == null) return false;\n if(car == null) return false;\n return true;\n }", "@Test(expectedExceptions = DataAccessException.class)\r\n public void testFindActivityRecordNull() {\r\n recordDao.findActivityRecord(null);\r\n }", "@Test\n\tpublic void testGetResponseNull() throws Throwable {\n\t\tGetResponse testedObject = new GetResponse();\n\t\t\n\t\tassertNull(testedObject.getPipelineStatus());\n\t\tassertNull(testedObject.getPerformanceTest());\n\t\tassertNull(testedObject.getMainJob());\n\t\tassertNull(testedObject.getDashboard());\n\t\tassertNull(testedObject.getSonar());\n\t\tassertNull(testedObject.getFunctionalTest());\n\t}", "public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "public boolean isMissingData() {\n return myModel.getRealtimeTimestamp() == 0;\n }", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "@Test\n\tpublic void testGetSonarNull() throws Throwable {\n\t\tGetResponse testedObject = new GetResponse();\n\t\tSonarAnalysisInfo result = testedObject.getSonar();\n\t\tassertNull(result);\n\t}", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void getDataFromNullMessageEntityObjectNegativeTest() {\r\n\r\n\t\tMessageEntity message = null;\r\n\r\n\t\tmesServ.getDataFromMessageEntity(message);\r\n\t}", "protected <T> T emptyToNull(T obj) {\r\n if (isEmpty(obj)) {\r\n return null;\r\n } else {\r\n return obj;\r\n }\r\n }", "@Test\n\tpublic void testNoData() {\n\t\tvar supplierId = \"1\";\n\t\tvar resp = summaryRepo.findById(supplierId);\n\t\tassertFalse(resp.isPresent());\n\t}", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "public void resultIsNull(){\n if(alertDialog.isShowing()){\n return;\n }\n if(inActive){\n return;\n }\n }", "@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}", "protected boolean isEmpty(Object obj) {\r\n return (obj == null || obj instanceof String\r\n && ((String) obj).trim().length() == 0);\r\n }", "public static boolean naoExiste(Object o){\n\t\tboolean naoExiste = o==null;\n\t\tif (o instanceof String) {\n\t\t\tString texto = (String) o;\n\t\t\tnaoExiste = texto.equals(\"null\");\n\t\t}\n\t\treturn naoExiste;\n\t}", "boolean getPageNoNull();", "public boolean isUnsaved(Object obj) {\n return null;\r\n }", "@Test\n\tpublic void testFindCustomerByGuidWithNullReturn() {\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(getMockPersistenceEngine()).retrieveByNamedQuery(with(any(String.class)), with(any(Object[].class)));\n\t\t\t\twill(returnValue(Collections.emptyList()));\n\t\t\t}\n\t\t});\n\t\tassertNull(this.importGuidHelper.findCustomerByGuid(NON_EXIST_GUID));\n\t}", "public boolean is_Empty(){\n \treturn this.ship==null;\n }", "@Test\r\n public void lookProfileByNull() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // A not connected user looked at member profile\r\n member.lookedBy(null);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }", "public boolean isNull() {\n\t\treturn false;\n\t}", "public boolean isNull(int index) {\n\t\treturn JSONNull.NULL.equals(this.getObj(index));\n\t}", "default boolean isPresent() {\n return get() != null;\n }", "default boolean isPresent() {\n return get() != null;\n }", "@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }", "public boolean getPageNoNull() {\n return pageNoNull_;\n }", "public boolean isNull() {\r\n\t\treturn target == null;\r\n\t}", "public boolean anyNull () ;", "public boolean isNull() {\n return channel instanceof NullChannel;\n }", "public boolean allowsNull() {\n return this.allowsNullValue;\n }", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }", "public boolean getPageNoNull() {\n return pageNoNull_;\n }", "private Item checkItemNotNull(Item item) throws NullPointerException {\n if (item == null) {\n throw new NullPointerException(\"The item must not be null\");\n }\n return item;\n }", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "public final boolean empty() {\n return data == null;\n }", "private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Override\n\tpublic JSONObject get(JSONObject obj) {\n\t\treturn null;\n\t}" ]
[ "0.6596349", "0.6591556", "0.6485084", "0.647666", "0.6401519", "0.63368374", "0.6251392", "0.6243141", "0.62381786", "0.6227495", "0.6224764", "0.62161547", "0.61445254", "0.6110445", "0.60802895", "0.60622674", "0.6052382", "0.60326296", "0.60176086", "0.598643", "0.597514", "0.595191", "0.5950332", "0.5947886", "0.59437126", "0.5928426", "0.5904124", "0.59023875", "0.58922315", "0.5888323", "0.5880276", "0.58779126", "0.58519274", "0.5834", "0.583042", "0.5829768", "0.5822349", "0.58126664", "0.58117443", "0.57960147", "0.57687694", "0.5767286", "0.5762507", "0.5759234", "0.5754243", "0.57474345", "0.57438856", "0.57438856", "0.57438856", "0.57438856", "0.57438856", "0.57438856", "0.57438856", "0.5735831", "0.5729932", "0.57203907", "0.57164603", "0.56903553", "0.5688758", "0.56750417", "0.56647396", "0.5663612", "0.5659338", "0.56465286", "0.5644747", "0.5633044", "0.5632855", "0.5625069", "0.5624625", "0.5621977", "0.56211495", "0.5619872", "0.56183136", "0.56136554", "0.5603139", "0.5600591", "0.55956477", "0.55952704", "0.55948925", "0.5588478", "0.5586502", "0.55816096", "0.55628455", "0.55604494", "0.5556365", "0.55535954", "0.55530727", "0.55530727", "0.5548553", "0.55482066", "0.5537098", "0.5523687", "0.5522275", "0.55195624", "0.5513905", "0.5494493", "0.5493183", "0.54907584", "0.5484841", "0.5480141", "0.54790044" ]
0.0
-1
get users bike make and model
private void getBikeModel(final Booking booking, final View view, final ArrayList<Booking> trackingDaos, final Context context) { try { final String vehicleId = booking.getVehicleId().trim(); //query to get information of the registered bike db.collection("my_vehicle").document(booking.getVehicleId()) .get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() { @Override public void onSuccess(DocumentSnapshot documentSnapshot) { Vehicle vehicle = documentSnapshot.toObject(Vehicle.class); String mVehicleId = documentSnapshot.getId(); if (mVehicleId.equals(vehicleId)) { booking.setModel(vehicle.getManufacturer() + " " + vehicle.getModel()); } //variable initilizations to pass into booking constructor long bookId = booking.getBookingID(); String sType = booking.getServiceType(); String makeNModel = booking.getModel(); String status = booking.getStatus(); String message = booking.getMessage(); Date dateOfService = booking.getDateOfService(); String workshopId = booking.getWorkshopId(); String category = booking.getRepairCategory(); String description = booking.getRepairDescription(); String messageSeen = booking.getMessageSeen(); String viewColor = null; if (status.equals("accepted") || status.equals("progress")) { viewColor = String.valueOf(context.getResources().getColor(R.color.green)); } if (status.equals("completed")) { viewColor = String.valueOf(context.getResources().getColor(R.color.red)); } //adding all the variables trackingDaos.add(new Booking(bookId, sType, viewColor, makeNModel, message , status, messageSeen, category, description, workshopId, dateOfService, "")); //Tracking adapter initilizations, setup and passing values to the adapter recyclerView = view.findViewById(R.id.tracking_recycler_view); recyclerView.setHasFixedSize(true); layoutManager = new LinearLayoutManager(getActivity()); trackingAdapter = new TrackingAdapter(trackingDaos); progressBar.setVisibility(View.GONE); recyclerView.setLayoutManager(layoutManager); recyclerView.setAdapter(trackingAdapter); //tracking recylcer view on item click listener trackingAdapter.setOnItemClickListener(new TrackingAdapter.OnItemClickListener() { @Override public void onItemClick(int position) { Booking data = trackingDaos.get(position); //values passed into the bundler object to pass data to next ativity Bundle bundle = new Bundle(); bundle.putLong("bookingID", data.getBookingID()); bundle.putString("bookingStatus", data.getStatus()); bundle.putString("serviceType", data.getServiceType()); bundle.putString("serviceDate", String.valueOf(data.getDateOfService())); bundle.putString("model", data.getModel()); bundle.putString("workshopID", data.getWorkshopId()); bundle.putString("repairCat", data.getRepairCategory()); bundle.putString("repairDesc", data.getRepairDescription()); bundle.putString("message", data.getMessage()); //display tracking summary TrackingViewDetails trackingViewDetails = new TrackingViewDetails(); trackingViewDetails.setArguments(bundle); trackingViewDetails.show(getActivity().getSupportFragmentManager(), "View Details"); } }); } }) .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { //log error Log.d(TAG, e.toString()); } }); }catch (Exception e){ e.printStackTrace(); Log.d(TAG, e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}", "People getObjUser();", "People getUser();", "@Override\r\n public UserModel queryUserModel(String userName) {\n System.out.println(\"query sys user build user model.\");\r\n return new UserModel(\"111\", \"sys\", \"123456\");\r\n }", "public String getMake(){\n return make;\n }", "private Bike getBikeFromRS(ResultSet rs){ //Help method to get a bike from a ResultSet query\n try{\n int bID = rs.getInt(cBikeID);\n LocalDate date = rs.getDate(cDate).toLocalDate();\n Double price = rs.getDouble(cPrice);\n String make = rs.getString(cMake);\n int typeId = rs.getInt(cTypeId);\n String typeName = rs.getString(cTypeName);\n double rentalPrice = rs.getDouble(cRentalPrice);\n int stationId = rs.getInt(cStationId);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double lat = rs.getDouble(cLatitude);\n double lng = rs.getDouble(cLongitude);\n double chargingLvl = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bID, dateTime, lat, lng, chargingLvl);\n BikeType t = new BikeType(typeName,rentalPrice);\n t.setTypeId(typeId);\n Bike bike = new Bike(date, price, make, t, stationId);\n bike.setBikeId(bID);\n bike.setBikeData(bd);\n return bike;\n }catch(Exception e){\n System.out.println(\"Exception \" + e);\n }\n return null;\n }", "public String getMake() {\n return make;// the\n }", "String getModelB();", "public ArrayList getCars(User user){\n c=db.rawQuery(\"select mde_id from modele_salvate where usr_id='\" + user.getId() + \"'\", new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int model=c.getInt(0);\n lista.add(model);\n }\n return lista;\n }", "public String getBikeName() {\n return bikeName;\n }", "@Override\r\n\tpublic Map<Integer, String> getUomIdAndModel() {\n\t\tList<UomVO> list = partUom();\r\n\t\t/*\r\n\t\t * for (UomVO ob : list) { map.put(ob.getId(), ob.getUomModel()); }\r\n\t\t */\r\n\t\t///\r\n\t\tMap<Integer, String> map = list.stream().collect(Collectors.toMap(UomVO::getId, UomVO::getUomModel));\r\n\t\treturn map;\r\n\r\n\t}", "public String getMake() {\r\n return make;\r\n }", "BankTellers getBankTeller(String userName);", "@Override\n public List<Vehicle> getVehiclesByMake(String make){\n List<VehicleDetails> results = repo.findByMake(make);\n return mapper.mapAsList(results, Vehicle.class);\n }", "public static String getDeviceModel() {\n String deviceName = SystemProperties.get(\"prize.system.boot.rsc\");\n // prize modify for bug66476 by houjian end\n deviceName = !TextUtils.isEmpty(deviceName) ? deviceName : Build.MODEL + DeviceInfoUtils.getMsvSuffix();\n //prize modified by xiekui, fix bug 74122, 20190408-start\n return UtilsExt.useDeviceInfoSettingsExt() == null ? deviceName : UtilsExt.useDeviceInfoSettingsExt().customeModelInfo(deviceName);\n //prize modified by xiekui, fix bug 74122, 20190408-end\n }", "public String getMake(){\n\t\treturn this.make;\n\t}", "@Override\n public ExtensionResult doGetModelMobils(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n\n String tipe = getEasyMapValueByName(extensionRequest, \"type\");\n String merek = getEasyMapValueByName(extensionRequest, \"merk\");\n\n String url = \"https://bububibap.herokuapp.com/getToyota/\";\n List<List<String>> models = getModelModel(url, \"mobil\", \"model\", tipe);\n List<ButtonBuilder> buttonBuilders = new ArrayList<>();\n List<String> model = models.get(type_index);\n for (String mod : model) {\n ButtonTemplate button = new ButtonTemplate();\n //button.setPictureLink(appProperties.getToyotaImgUrl());\n //button.setPicturePath(appProperties.getToyotaImgUrl());\n button.setTitle(mod);\n button.setSubTitle(mod);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(mod);\n bookAction.setValue(\"model \" + mod);\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n buttonBuilders.add(buttonBuilder);\n }\n String btnBuilders = \"\";\n for (ButtonBuilder buttonBuilder : buttonBuilders) {\n btnBuilders += buttonBuilder.build();\n btnBuilders += \"&split&\";\n }\n\n CarouselBuilder carouselBuilder = new CarouselBuilder(btnBuilders);\n output.put(OUTPUT, carouselBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public Bidder getBidder() {\n return Bootstrap.getInstance().getUserRepository().fetchAll().stream()\n .filter(user -> user.getType() == UserType.BIDDER && user.getId() == this.bidderId)\n .map(user -> (Bidder) user)\n .findFirst().orElse(null);\n }", "public String getMake() {\n return make;\n }", "List<Car> getByBrandAndModel(String brand, String model);", "@Override\n\tpublic String getMake() {\n\t\treturn make;\n\t}", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "@Override\n\tpublic List<String> findCarModel() {\n\t\tList<String> carModelInfoList = chargeCarMapper.selectCarModelInfo();\n\t\treturn carModelInfoList;\n\t}", "@Override\n\tpublic Puser getModel() {\n\t\treturn puser;\n\t}", "public String getMake()\n\t{\n\t\treturn make;\n\t}", "public void getDeviceByModelNumber()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Model number \");\r\n\t\t\tString searchModelNumber = sc.nextLine();\r\n\t\t\t\r\n\t\t\tDevice d = record.getDeviceByModelNumber(searchModelNumber);\r\n\t\t\tprintDeviceDetails(d);\r\n\t\t}", "@Override\r\n\tpublic User getModel() {\n\t\treturn user;\r\n\t}", "U getCreateby();", "public String getMake() {\r\n\t\treturn this.make;\r\n\t}", "UserModel retrieveUserModel(String username, String password);", "@Override\n\tpublic User getModel() {\n\t\treturn user;\n\t}", "public People getObjUser() {\n return instance.getObjUser();\n }", "public Image getBikeImage() {\r\n\t\treturn bikeImage;\r\n\t}", "public Motile getUser() {\n return user;\n }", "@Override\n public List<ModelPerson> selectmodel(ModelPerson person) {\n List<ModelPerson> result = null;\n JSONArray response = null;\n\n try {\n request = new HttpRequest( HTTP_URL_SELECTMODEL );\n request.configPostType(HttpRequest.MineType.VALUES);\n request.addParameter(\"id\" , person.getId() );\n request.addParameter(\"pw\" , person.getPw() );\n request.addParameter(\"email\", person.getEmail());\n request.addParameter(\"name\" , person.getName() );\n\n httpCode = request.post();\n\n if( httpCode == HttpURLConnection.HTTP_OK ) {\n response = request.getJSONArrayResponse();\n }\n\n // GSon을 사용하여 JSONArray을 List<ModelPerson> 으로 변환\n result = new Gson().fromJson( response.toString() , new TypeToken< List<ModelPerson> >(){}.getType() );\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }", "public static User getUserModel(UserEntity entity){\r\n\t\t\r\n\t\t//build and return model\r\n\t\treturn User.getBuilder()\r\n\t\t\t\t.withId(entity.getId())\r\n\t\t\t\t.withFirstName(entity.getFirstName())\r\n\t\t\t\t.withLastName(entity.getLastName())\r\n\t\t\t\t.withDob(getReadableDate(entity.getDob()))\r\n\t\t\t\t.build();\r\n\t\t\r\n\t}", "public List<Goods> getGoodsByUserId(Integer user_id);", "User getUserInformation(Long user_id);", "@Override\r\n\tpublic List<UserPredictModel> retrieveUserPredictModels() {\n\t\treturn\tuserPredictRepo.findAll();\r\n\t}", "private void getVehicleByParse() {\n\t\tvehicles = new ArrayList<DCVehicle>();\n\t\tfinal ParseUser user = ParseUser.getCurrentUser();\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCVehicle\");\n\n\t\tquery.setCachePolicy(ParseQuery.CachePolicy.NETWORK_ELSE_CACHE);\n\t\tquery.whereEqualTo(\"vehiclePrivateOwner\", user);\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(final List<ParseObject> vehicleList,\n\t\t\t\t\tParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\t// Loop through all vehicles that we got from the query\n\t\t\t\t\tfor (int i = 0; i < vehicleList.size(); i++) {\n\t\t\t\t\t\t// Convert parse object (DC Vehicle) into vehicle\n\t\t\t\t\t\tDCVehicle vehicle = ParseUtilities\n\t\t\t\t\t\t\t\t.convertVehicle(vehicleList.get(i));\n\n\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\tParseFile photo = (ParseFile) vehicleList.get(i).get(\n\t\t\t\t\t\t\t\t\"vehiclePhoto\");\n\t\t\t\t\t\tbyte[] data = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (photo != null)\n\t\t\t\t\t\t\t\tdata = photo.getData();\n\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (data == null) {\n\t\t\t\t\t\t\tvehicle.setPhotoSrc(null);\n\t\t\t\t\t\t\tvehicle.setPhoto(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvehicle.setPhotoSrc(data);\n\t\t\t\t\t\t\tvehicle.setPhoto(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvehicles.add(vehicle);\n\t\t\t\t\t\tvehicleObjects.add(vehicleList.get(i));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set adapter\n\t\t\t\t\tadapter = new VehicleListAdapter(VehiclesListActivity.this,\n\t\t\t\t\t\t\tvehicles, vehiclePicker, addJournyActivity);\n\t\t\t\t\tlist.setAdapter(adapter);\n\t\t\t\t} else {\n\t\t\t\t\tLog.e(\"Get Vehicle\", e.getMessage());\n\t\t\t\t}\n\n\t\t\t\t// Disable loading bar\n\t\t\t\tloading.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t}", "public static String getCondorDeviceModel() {\n String deviceModel = SystemProperties.get(\"ro.pri_condor_market_model\");\n return !TextUtils.isEmpty(deviceModel) ? deviceModel : \"\";\n }", "Data<User> getMe();", "public String getMake() {\n\t\treturn make; \n\t}", "String getManufacturer();", "String getModelA();", "HouseAndRoom getHouseAndRoom(String username, long houseId);", "public String getVehicleMake() {\n return vehicleMake;\n }", "@Override\n public List<VehicleModel> getVehicleModels(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,2,3);\n List<VehicleModel> vehicleModels = new ArrayList<>();\n try {\n List<Map<String, Object>> data = get(\"SELECT * FROM TblVehicleModel\");\n for(Map<String,Object> map: data)\n vehicleModels.add(new VehicleModel(map));\n return vehicleModels;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "@Override\n\tpublic Users getModel() {\n\t\treturn this.user;\n\t}", "public String getMake() {\r\n return (String) store.get(Names.make);\r\n }", "@Override\n public List<Vehicle> findByMake(String make) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles.make\", Operation.EQ, make));\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "public ArrayList<UserModel> getEveryOne(){\n\n ArrayList <UserModel> returnList = new ArrayList<>();\n\n //get all the data from the database\n\n String queryString =\"SELECT * FROM \" + USER_TABLE;\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.rawQuery(queryString , null);\n\n if(cursor.moveToFirst())\n {\n do{\n\n String name = cursor.getString(0);\n int id = cursor.getInt(4);\n String bluetoothaddress = cursor.getString(2);\n byte[] image = cursor.getBlob(1);\n String macaddress = cursor.getString(3);\n UserModel user = new UserModel(name,image,macaddress,bluetoothaddress,id);\n returnList.add(user);\n } while(cursor.moveToNext());\n }\n else {\n //failure\n }\n cursor.close();\n db.close();\n return returnList;\n\n }", "public List BestClient();", "public Bike getBike(int bikeId){\n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(BIKE_BY_ID + bikeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n Bike bike = getBikeFromRS(rs);\n return bike;\n }\n }catch(Exception e){\n System.out.println(\"Exception\" + e);\n }\n return null;\n }", "void display()\r\n\t{\r\n\t\tSystem.out.println(\"bikeid=\"+bikeid+\" bike name==\"+bikename);\r\n\t}", "public void model(){\n\t\t\t String model = \"Honda Shine\";\r\n\t\t\t System.out.println(\"bike model is\"+ model);\r\n\t\t }", "public Bundle buildUserModelBundle(UserModel userModel, String requestPath){\n Bundle bundle = new Bundle();\n try{\n if(requestPath.equals(\"ProfileFragment\")) {\n bundle.putString(\"type\", context.getString(R.string.profile_user));\n bundle.putBoolean(\"isIdentity\", userModel.getUserId().equals(MainActivity.currentUserModel.getUserId()));\n bundle.putString(\"id\", userModel.getUserId());\n bundle.putString(\"name\", userModel.getName());\n bundle.putString(\"image\", userModel.getImage());\n bundle.putInt(\"movies_watched\", userModel.getTotalWatched());\n bundle.putInt(\"movies_reviewed\", userModel.getTotalReviews());\n bundle.putInt(\"followers\", userModel.getFollowers());\n bundle.putInt(\"following\", userModel.getFollowing());\n bundle.putString(\"privacy\", userModel.getPrivacy());\n bundle.putBoolean(\"is_following\", userModel.getIsFollowing());\n }\n }catch (Exception e){\n EmailHelper emailHelper = new EmailHelper(context, EmailHelper.TECH_SUPPORT, \"Error: ModelHelper\", e.getMessage() + \"\\n\" + StringHelper.convertStackTrace(e));\n emailHelper.sendEmail();\n }\n return bundle;\n }", "@Override\n public List<NominationDTO> findAllNomsForTheCurrentUser() {\n Contact userContact = _contactRepository.findByUserIsCurrentUser();\n //for this contact find its employed by BA\n BusinessAssociate ba = userContact.getEmployedBy();\n\n Set<Contract> baContracts = ba.getContracts();\n\n UserDetails user1 = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n com.oilgascs.gps.security.GPSUserDetails user = (com.oilgascs.gps.security.GPSUserDetails)user1;\n // set the session bu if not set to \n /* if(user.getBu() == null) {\n\t BusinessUnit newBU = new BusinessUnit();\n\t newBU.setId((long)1);\n\t newBU.setBusinessUnit(\"B1\");\n\t user.setBu(newBU);\n }*/\n List<Long> contractIdList = new ArrayList<>();\n baContracts.forEach(contract->{\n //\tif(user.getBu().getBusinessUnit().equals(contract.getBusinessUnit()))\n \t\tcontractIdList.add(contract.getId());\n \t});\n\n List<Nomination> noms = _nomNominationRepository.findAllNomsByContractIdList(contractIdList);\n return noms.stream()\n .map(_nominationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public User getModel() {\n\t\treturn model;\r\n\t}", "@Override\n public List<Vehicle> getVehicles(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n\n //get the vehicles - > for each vehicle, with the vehicle model field (String model = vehicle.getForeignKey(\"model\"))\n List<Vehicle> vehicles = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblVehicles\");\n for(Map<String,Object> map: data) {\n //create a vehicle\n Vehicle vehicle = new Vehicle(map);\n\n //get the model number\n String model = vehicle.getForeignKey(\"model\");\n\n //get the model from Tbl\n if (model != null) {\n VehicleModel vehicleModel = new VehicleModel(get(\"SELECT * FROM TblVehicleModel WHERE modelNum = ?\", model).get(0));\n vehicle.setModel(vehicleModel);\n }\n //adding\n vehicles.add(vehicle);\n }\n return vehicles;\n }catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "TasteProfile.UserProfile getUserProfile (String user_id);", "public int bikeNum(){\n return bike;\n }", "@Override\n\tpublic List<Businessrecord> findBusinessrecordbyGiveUserId(String giveUserid) {\n\t\treturn businessrecordDao.findBusinessrecordbyGiveUserId(giveUserid);\n\t}", "public Building getRoof();", "public static Serviceable getModel(AppModels type)\n {\n Serviceable tempObj;\n switch (type) {\n case KEYWORD_USER:\n tempObj = new KeywordUser();\n break;\n case QUIZ:\n tempObj = new Quiz();\n \n break;\n default:\n tempObj = null;\n break;\n }\n \n return tempObj;\n }", "public static List<String> getActuators(RunTimeModel model){\n\t\tList<String> actuators = new ArrayList<>();\n\t\t//to name an activator: original name... it's ok...\n\t\tactuators.addAll(getActuators(model.getAppData().get(0).\n\t\t\t\tgetSpecification().getIfdo().getAction()));///if do\n\t\t\n\t\tif(model.getAppData().get(0).getSpecification().getElseIfDo() != null) {\n\t\t\tfor(ElseIfDoSpec elseif : model.getAppData().get(0).getSpecification().getElseIfDo()) {\n\t\t\t\tactuators.addAll(getActuators(elseif.getAction()));////else if do\n\t\t\t}\n\t\t}\n\t\t\n\t\tactuators.addAll(getActuators(model.getAppData().get(0).\n\t\t\t\tgetSpecification().getElseDo().getAction()));///else do...\n\t\t\n\t\treturn actuators;\n\t}", "public Building getBuilding();", "public List<UserParam> findUesrDetailInfo(UserEntity userEntity);", "ModelData getModel();", "@GetMapping(\"/seDrivers\")\n public String seDrivers(Model model) {\n int id = 123;\n drivers = adminRepo.read(id);\n model.addAttribute(\"drivers\", drivers);\n return \"seDrivers\";\n }", "UserSettings getByUser(HawkularUser user);", "@Override\n\tpublic Bmi getBmi(int weight, float height) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Bmi bmi = restTemplate.getForObject(BASE_URL + BMI_URL, Bmi.class, weight, height);\n\t\t logger.debug(\"BMI Info :\" + bmi);\n\t\treturn bmi;\n\t}", "public List<UserExtraDTO> getSpecificUser(Set<UserExtra> list)\n\t{\n\t\tList<UserExtraDTO> users=new ArrayList<UserExtraDTO>();\n\n\t\tIterator<UserExtra> it=list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tUserExtra userEx=it.next();\n\t\t\tOptional<User> user=userService.findByid(userEx.getId());\n\t\t\tusers.add(new UserExtraDTO(user.get(),userEx));\n\t\t}\n\n\n\n\t\treturn users;\n\t}", "public static GenderBO getForModel(Gender model)\n\t{\n\t\tfor(GenderBO bo : values())\n\t\t{\n\t\t\tif(bo.getModel().getName().equals(model.getName()))\n\t\t\t{\n\t\t\t\treturn bo;\n\t\t\t}\n\t\t}\n\t\treturn DEFAULT;\n\t}", "List<Order> getByUser(User user);", "User getUser(User user) ;", "Data<User> getMe(String fields);", "public String getCarmake()\n {\n return carmake;\n }", "public String getBuyer() {\n return buyer;\n }", "public UserModel getUser(Integer id) {\n UserModel userModel = userRepository.findById(id).get();\n return userModel;\n }", "public int getMakerId();", "public Entity getBorrower();", "public String getCarmodel()\n {\n return carmodel;\n }", "HumanProfile getUserProfile();", "List<Booking> getBookingByUserID(LibraryUser libraryUser);", "List<ClientResponse> findUsersClient(User user) throws BaseException;", "public synchronized void getGoodFromUser() throws RemoteException {\n\t\tConcurrentHashMap<String, Good> map = null;\n\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\t//send signed message\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tResult res = null;\n\n\t\t\ttry {\n\t\t\t\tres = notary.getGoodsFromUser(this.id, cnonce, cryptoUtils.signMessage(toSign));\n\t\t\t} catch (InvalidSignatureException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\n\t\t\t//verify received message\n\t\t\tString toVerify = toSign + res.getContent().hashCode();\n\t\t\tif (!cryptoUtils.verifySignature(notaryID, toVerify, res.getSignature())) {\n\t\t\t\tSystem.err.println(\"ERROR: Signature could not be verified\");\n\t\t\t}\n\n\t\t\tmap = (ConcurrentHashMap<String, Good>) res.getContent();\n\n\t\t\t//System.out.println(\"g3.1\");\n\t\t}\n\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"Goods owned:\");\n\t\t\tfor (String s : map.keySet()) {\n\t\t\t\tSystem.out.println(\"> \" + s);\n\t\t\t}\n\t\t}\n\t\tgoods = map;\n\t}", "public Vehicle getMake(String make) {\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\tVehicle temp = vehicles.get(i);\n\n\t\t\tif (temp.getMake().equals(make)) {\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public BowlingGame getGame();", "@Override\n\tpublic List<Businessrecord> findBusinessrecordbyGetUserId(String getUserid) {\n\t\treturn businessrecordDao.findBusinessrecordbyGetUserId(getUserid);\n\t}", "UserModel findUserModelById(Long id);", "List<BankWallet> findByUser(User user);", "private String generateModel() {\n\t\tString model = \"\";\n\t\tint caseNumber = randomGenerator.nextInt(6) + 1;\n\t\t\n\t\tswitch (caseNumber) {\n\t\tcase 1: \n\t\t\tmodel = \"compact\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tmodel = \"intermediate\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tmodel = \"fullSized\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tmodel = \"van\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tmodel = \"suv\";\n\t\t\tbreak;\n\t\tcase 6: \n\t\t\tmodel = \"pickup\";\n\t\t\tbreak;\n\t\tdefault: \n\t\t\tmodel = \"\";\n\t\t\tbreak;\n\t\t}\n\t\treturn model;\n\t}", "public BikeData getBikeDataFromRS(ResultSet rs){\n try{\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n return bd;\n }catch(Exception e){\n System.out.println(\"Exception \" + e);\n }\n return null;\n }", "public ProductModel getBag(String setName) {\n\t\treturn null;\r\n\t}", "public boolean selectFromAvailableModels() throws Exception{\r\n\t\t\r\n\t\tboolean rB=false;\r\n\t\t\t\r\n\t\tbaseFolder = soappProperties.getBaseModelFolder() ;\r\n\t\t\t\t\t // sth like: \"D:/data/projects/_classifierTesting/bank2/models\"\r\n\t\t\r\n\t\tactiveModel = soappProperties.getActiveModel() ; // sth like \"bank2\" \r\n\t\t// this refers to the name of the project as it is contained in the model file!!\r\n\t\t// on first loading, a catalog of available model will be created for faster access if it does not exists\r\n\t\r\n\t\tif (activeModel.length()>0){ \r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"checking model catalog associated with selected project ...\") ;\r\n\t\t\tcheckCreateLocationCatalog() ;\r\n\t\t} else{\r\n\t\t\t// alternatively, we set the active model to blank here, and provide the package name ;\r\n\t\t\t// whenever the active model name is given (and existing) it will be preferred!\r\n\t\t\t \r\n\t\t\tmodelPackageName = soappProperties.getModelPackageName();\r\n\t\t\tactiveModel = getModelThroughPackage(modelPackageName ) ;\r\n\t\t}\r\n\t\t\r\n\t\t// now reading from the modelcatalog.dat\r\n\t\t\r\n\t\t/*\r\n\t \t_MODELSELECT_LATEST = 1;\r\n\t\t_MODELSELECT_FIRSTFOUND = 2;\r\n\t\t_MODELSELECT_BEST = 4;\r\n\t\t_MODELSELECT_ROBUST = 8;\r\n\t\t_MODELSELECT_VERSION = 16 ;\r\n\t\t */\r\n\t\tModelCatalogItem mcItem= null, mci = null ;\r\n\r\n\t\tif (soappModelCatalog.size()>0){\r\n\t\t\tint m=0;\r\n\t\t\tboolean mciOK=false;\r\n\t\t\t\r\n\t\t\twhile ( (mciOK==false) && (mcItem==null) && (m<soappModelCatalog.size())){\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_FIRSTFOUND){\r\n\t\t\t\t\tmci = soappModelCatalog.getItem(m);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_LATEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getLatestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_BEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getBestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_VERSION){\r\n\t\t\t\t\tmci = soappModelCatalog.getItemByModelname( activeModel, soappProperties.preferredModelVersion ) ;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// checking whether the model contains the required fields mcItem.requiredfields\r\n\t\t\t\tif (modelCheckRequirements(mci) == false ){\r\n\t\t\t\t\tsoappModelCatalog.addToExcludedItems(mci);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmciOK=true;\r\n\t\t\t\t\tmcItem = mci;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm++;\r\n\t\t\t} // ->\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmcItem=null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tactiveModel = \"\" ;\r\n\t\tactiveVersion = \"\" ;\r\n\t\t\r\n\t\tif (mcItem!=null){\r\n\t\t\tactiveVersion = mcItem.modelVersion;\r\n\t\t\tactiveModel = mcItem.modelName;\r\n\t\t\trB=true;\r\n\t\t\t\r\n\t\t\tif (activeModel.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\t\t\tif (activeVersion.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\r\n\t\t}else{ // mcItem ?\r\n\t\t\tout.print(2,\"No matching model (by required fields) found in the list (n=\"+soappModelCatalog.size()+\") of available models.\");\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "public String getBrand() {\n\treturn brands;\r\n}", "private RestModel getBlackDuckModel() {\n CentralConfigDescriptor centralConfig = centralConfigService.getDescriptor();\n ExternalProvidersDescriptor external = centralConfig.getExternalProvidersDescriptor();\n BlackDuckSettingsDescriptor blackDuckDescriptor = null;\n if (external != null) {\n blackDuckDescriptor = external.getBlackDuckSettingsDescriptor();\n }\n\n if (blackDuckDescriptor == null) {\n blackDuckDescriptor = new BlackDuckSettingsDescriptor();\n // set default values\n blackDuckDescriptor.setConnectionTimeoutMillis(20000l);\n if (centralConfigService.defaultProxyDefined()) {\n ProxyDescriptor defaultProxy = centralConfigService.getDescriptor().getDefaultProxy();\n blackDuckDescriptor.setProxy(defaultProxy);\n }\n }\n return ConfigModelPopulator.populateBlackDuckInfo(blackDuckDescriptor);\n }", "public List<Item> getReqs(String name, ItemService iservice) {\n List<User> users = this.listAll();\n User seller = null;\n for(User us : users) { //get the appropriate seller\n if(us.getName().matches(name)) {\n seller = us;\n }\n }\n\n List<Item> items = iservice.listAll();\n List<Item> requests = new ArrayList<>();\n for(Item it : items) {\n if(it.getSellerId() == seller.getUserID())\n requests.add(it);\n }\n return requests;\n }", "public People getUser() {\n return instance.getUser();\n }", "public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }" ]
[ "0.55728346", "0.5444426", "0.53613275", "0.53023183", "0.5277271", "0.5268108", "0.5252493", "0.5247713", "0.51745313", "0.51723427", "0.5112118", "0.51101243", "0.51095617", "0.5099708", "0.5098925", "0.50757295", "0.5061375", "0.5060969", "0.5040558", "0.4978883", "0.49715525", "0.49544027", "0.4952316", "0.4937884", "0.49350443", "0.4927809", "0.491629", "0.48904812", "0.48844185", "0.48662043", "0.48610365", "0.48549232", "0.48520097", "0.48399088", "0.48340282", "0.48332885", "0.4827518", "0.48201457", "0.48162776", "0.48147732", "0.48107138", "0.48087305", "0.48041418", "0.48032415", "0.4803088", "0.47916856", "0.47903985", "0.47737283", "0.47598925", "0.47533813", "0.4746502", "0.47404543", "0.47285235", "0.47265878", "0.47243884", "0.4722347", "0.47193456", "0.47185937", "0.47183678", "0.47143492", "0.47034916", "0.46998072", "0.46855584", "0.4680036", "0.46792552", "0.46721223", "0.46706435", "0.46677312", "0.46647805", "0.46636355", "0.46601817", "0.4659299", "0.4657875", "0.46527967", "0.46511322", "0.46452537", "0.46432424", "0.4642871", "0.46401778", "0.46380967", "0.4637091", "0.4635014", "0.46331054", "0.46322083", "0.46280912", "0.46277297", "0.46263346", "0.46259245", "0.46235284", "0.46217424", "0.46190345", "0.46188292", "0.4618303", "0.46171385", "0.46150017", "0.46144766", "0.46130443", "0.46129623", "0.46103913", "0.46063843", "0.46061578" ]
0.0
-1
/ Must execute compteAverageDelay before this method
private void computeAverageFrequencyDelayValue() { this.averageFrequencyDelayValue = value * this.averageDelay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processDelay() {\n if (errorCounter > 0) {\n if (delayCounter >= AppyAdService.getInstance().maxDelay()) {\n setAdProcessing(true);\n errorCounter = AppyAdService.getInstance().maxErrors() - 1;\n delayCounter = 0;\n }\n else delayCounter++;\n }\n }", "public double getAverageDelayTime() {\r\n return delayCount == 0 ? 0d : totalDelayTime / delayCount;\r\n }", "public void run() {\n int tempRate;\n long frameTimeNanos = OppoRampAnimator.this.mChoreographer.getFrameTimeNanos();\n float timeDelta = ((float) (frameTimeNanos - OppoRampAnimator.this.mLastFrameTimeNanos)) * 1.0E-9f;\n OppoRampAnimator.this.mLastFrameTimeNanos = frameTimeNanos;\n OppoRampAnimator.access$208();\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n int i = 300;\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i2 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i2 + i;\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i3 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i3 + i;\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i4 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i4 + i;\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n OppoBrightUtils unused = OppoRampAnimator.this.mOppoBrightUtils;\n float scale = OppoBrightUtils.mBrightnessNoAnimation ? 0.0f : ValueAnimator.getDurationScale();\n if (scale == OppoBrightUtils.MIN_LUX_LIMITI) {\n OppoRampAnimator oppoRampAnimator = OppoRampAnimator.this;\n oppoRampAnimator.mAnimatedValue = (float) oppoRampAnimator.mTargetValue;\n } else {\n float amount = OppoRampAnimator.this.caculateAmount((((float) tempRate) * timeDelta) / scale);\n float amountScaleFor4096 = 1.0f;\n OppoBrightUtils unused2 = OppoRampAnimator.this.mOppoBrightUtils;\n int i5 = OppoBrightUtils.mBrightnessBitsConfig;\n OppoBrightUtils unused3 = OppoRampAnimator.this.mOppoBrightUtils;\n if (i5 == 4) {\n amountScaleFor4096 = 2.0f;\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isAIBrightnessOpen()) {\n OppoBrightUtils unused4 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness && OppoRampAnimator.this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST && !DisplayPowerController.mScreenDimQuicklyDark) {\n OppoBrightUtils unused5 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mReduceBrightnessAnimating) {\n amount = amountScaleFor4096 * OppoRampAnimator.this.mOppoBrightUtils.getAIBrightnessHelper().getNextChange(OppoRampAnimator.this.mTargetValue, OppoRampAnimator.this.mAnimatedValue, timeDelta);\n }\n }\n }\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator oppoRampAnimator2 = OppoRampAnimator.this;\n oppoRampAnimator2.mAnimatedValue = Math.min(oppoRampAnimator2.mAnimatedValue + amount, (float) OppoRampAnimator.this.mTargetValue);\n } else {\n OppoBrightUtils unused6 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseAutoBrightness && amount < 10.0f) {\n amount = (float) (OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST / 60);\n }\n OppoRampAnimator oppoRampAnimator3 = OppoRampAnimator.this;\n oppoRampAnimator3.mAnimatedValue = Math.max(oppoRampAnimator3.mAnimatedValue - amount, (float) OppoRampAnimator.this.mTargetValue);\n }\n }\n int oldCurrentValue = OppoRampAnimator.this.mCurrentValue;\n OppoRampAnimator oppoRampAnimator4 = OppoRampAnimator.this;\n oppoRampAnimator4.mCurrentValue = Math.round(oppoRampAnimator4.mAnimatedValue);\n if (oldCurrentValue != OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator.this.mProperty.setValue(OppoRampAnimator.this.mObject, OppoRampAnimator.this.mCurrentValue);\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isSunnyBrightnessSupport()) {\n OppoRampAnimator.this.mOppoBrightUtils.setCurrentBrightnessRealValue(OppoRampAnimator.this.mCurrentValue);\n }\n if ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue >= OppoRampAnimator.this.mCurrentValue || OppoAutomaticBrightnessController.mProximityNear) && ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue <= OppoRampAnimator.this.mCurrentValue) && (!OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue))) {\n OppoBrightUtils unused7 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue) {\n int unused8 = OppoRampAnimator.mAnimationFrameCount = 0;\n OppoRampAnimator.this.mAnimating = false;\n if (OppoRampAnimator.this.mListener != null) {\n OppoRampAnimator.this.mListener.onAnimationEnd();\n OppoBrightUtils unused9 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mUseWindowBrightness = false;\n OppoBrightUtils unused10 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mCameraUseAdjustmentSetting = false;\n return;\n }\n return;\n }\n }\n OppoRampAnimator.this.postAnimationCallback();\n }", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "public void run() {\n HwNormalizedRampAnimator hwNormalizedRampAnimator = HwNormalizedRampAnimator.this;\n hwNormalizedRampAnimator.mAnimatedValue = hwNormalizedRampAnimator.mHwGradualBrightnessAlgo.getAnimatedValue();\n HwNormalizedRampAnimator hwNormalizedRampAnimator2 = HwNormalizedRampAnimator.this;\n hwNormalizedRampAnimator2.updateHBMData(hwNormalizedRampAnimator2.mTargetValue, HwNormalizedRampAnimator.this.mRate, HwNormalizedRampAnimator.this.mHwGradualBrightnessAlgo.getDuration());\n HwNormalizedRampAnimator.this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue(HwNormalizedRampAnimator.this.mAnimatedValue);\n int oldCurrentValue = HwNormalizedRampAnimator.this.mCurrentValue;\n HwNormalizedRampAnimator hwNormalizedRampAnimator3 = HwNormalizedRampAnimator.this;\n hwNormalizedRampAnimator3.mCurrentValue = Math.round(hwNormalizedRampAnimator3.mAnimatedValue);\n if (HwNormalizedRampAnimator.this.mData.animatingForRGBWEnable && HwNormalizedRampAnimator.this.mModeOffForRGBW && (HwNormalizedRampAnimator.this.mTargetValueChange != HwNormalizedRampAnimator.this.mTargetValue || (HwNormalizedRampAnimator.this.mProximityStateRecovery && HwNormalizedRampAnimator.this.mTargetValue != HwNormalizedRampAnimator.this.mCurrentValue))) {\n boolean unused = HwNormalizedRampAnimator.this.mModeOffForRGBW = false;\n HwNormalizedRampAnimator.this.mDisplayEngineManager.setScene(21, 16);\n if (HwNormalizedRampAnimator.DEBUG) {\n Slog.i(HwNormalizedRampAnimator.TAG, \"send DE_ACTION_MODE_ON For RGBW\");\n }\n HwNormalizedRampAnimator hwNormalizedRampAnimator4 = HwNormalizedRampAnimator.this;\n int unused2 = hwNormalizedRampAnimator4.mTargetValueChange = hwNormalizedRampAnimator4.mTargetValue;\n boolean unused3 = HwNormalizedRampAnimator.this.mProximityStateRecovery = false;\n }\n if (oldCurrentValue != HwNormalizedRampAnimator.this.mCurrentValue) {\n HwNormalizedRampAnimator hwNormalizedRampAnimator5 = HwNormalizedRampAnimator.this;\n hwNormalizedRampAnimator5.updateBrightnessViewAlpha(hwNormalizedRampAnimator5.mCurrentValue);\n HwNormalizedRampAnimator.this.mProperty.setValue(HwNormalizedRampAnimator.this.mObject, HwNormalizedRampAnimator.this.mCurrentValue);\n boolean unused4 = HwNormalizedRampAnimator.DEBUG;\n }\n if (HwNormalizedRampAnimator.this.mTargetValue != HwNormalizedRampAnimator.this.mCurrentValue) {\n HwNormalizedRampAnimator.this.postAnimationCallback();\n return;\n }\n HwNormalizedRampAnimator hwNormalizedRampAnimator6 = HwNormalizedRampAnimator.this;\n hwNormalizedRampAnimator6.mAnimating = false;\n hwNormalizedRampAnimator6.mHwGradualBrightnessAlgo.clearAnimatedValuePara();\n if (HwNormalizedRampAnimator.this.mListener != null) {\n HwNormalizedRampAnimator.this.mListener.onAnimationEnd();\n }\n if (HwNormalizedRampAnimator.this.mData.animatingForRGBWEnable) {\n boolean unused5 = HwNormalizedRampAnimator.this.mModeOffForRGBW = true;\n HwNormalizedRampAnimator.this.mDisplayEngineManager.setScene(21, 17);\n if (HwNormalizedRampAnimator.DEBUG) {\n Slog.i(HwNormalizedRampAnimator.TAG, \"send DE_ACTION_MODE_Off For RGBW\");\n }\n }\n }", "public void run() {\n SystemClock.sleep(10000);\n\n attenuation = 0f;\n }", "void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "private void waitConstant() {\r\n \t\tlong\tlwait = CL_FRMPRDAC;\r\n \t\t// drawing is active?\r\n \t\tif(m_fHorzShift == 0 && m_lTimeZoomStart == 0\r\n \t\t\t\t&& GloneApp.getDoc().isOnAnimation() == false)\r\n \t\t\tlwait = CL_FRMPRDST;\t\t// stalled\r\n \r\n \t\t// make constant fps\r\n \t\t// http://stackoverflow.com/questions/4772693/\r\n \t\tlong\tldt = System.currentTimeMillis() - m_lLastRendered;\r\n \t\ttry {\r\n \t\t\tif(ldt < lwait)\r\n \t\t\t\tThread.sleep(lwait - ldt);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}", "public void autoScoreBottomCenterPeg() {\n getRobotDrive().goForward(-.5); //Speed at which to back up\n Timer.delay(1); //Time to continue backing up\n getRobotDrive().stop(); //Stop backing up\n arm.armJag.set(.4); //Speed to lower arm *may need to be inverted*\n Timer.delay(.5); //Time to lower arm\n arm.grabTube(true); //Opens the claw to release Ub3r Tube\n getRobotDrive().goForward(-.5); //Speed at which to back up again\n arm.armJag.set(.3); //Lowers arm safely to ground.\n\n }", "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "private void UI_RefreshSensorData ()\r\n\t{\r\n\t\t\t\t\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\t\r\n\t\tif (now-ts_last_rate_calc>1000)\r\n\t\t{\r\n\t\t\tsensor_event_rate=last_nAccVal/((now-ts_last_rate_calc)/1000.0);\r\n\t\t\tts_last_rate_calc=now;\r\n\t\t}\r\n\t}", "public void ComputeScoreAndDelay(int AddedScore) {\n System.out.println(UnpressPercent);\n if(UnpressPercent != null && UnpressPercent>1.0) System.out.println(\"PERCENT ABOVE 1.0\");\n \n score+=AddedScore;\n \n int high_score = high_score_label.getText().length() > 0 ?\n\t\tInteger.parseInt(high_score_label.getText()) : 0;\n if(score > high_score)\n\t\thigh_score_label.setText(\"\" + score);\n\t \n //long delay=1000; // should probably make this set in parameters at some point\n \n long delay = PersistentDelay;\n \n // speed and level code based on section 5.9 and 5.10 of Colin Fahey's Tetris article\n // www.colinfahey.com/tetris/tetris.html\n \n // speed is equivalent to level number\n // delay is the amount of time it takes for a zoid to drop one level\n // score is the current number of points the player has\n \n //speed = (long) Math.max(Math.min(Math.floor(score/100.0),Parameters.MaxLevels),0);\n /*\n if(Adaptive_Delay_Mode==null){\n int minD = Parameters.MinimumDelayMilliseconds;\n int maxD = 1000; // maximum delay is set to 1000 milliseconds for now\n \n delay = (long) ((maxD-minD)*(1.0-1.0*speed/Parameters.MaxLevels)+minD);\n }\n if(Adaptive_Delay_Mode==\"BOUNDED\"){\n delay = DelayFromUnpressPercentBounds(PersistentDelay,UnpressPercent,AdaptiveFallSpeedLowerBound,AdaptiveFallSpeedUpperBound);\n PersistentDelay=delay;\n }\n else if(Adaptive_Delay_Mode==\"Linear\"){\n delay = DelayDromUnpressPercentLinear(PersistentDelay,UnpressPercent);\n PersistentDelay=delay;\n }\n */\n //W(\"speed/Parameters.MaxLevels\"+(1.0-1.0*speed/Parameters.MaxLevels));\n \n \n if (old_speed != speed){\n TimeInLevel = (System.nanoTime() - StartTimeInLevel)/1000000000.0;\n W(\"old_speed:\"+(int)old_speed);\n TimeInLevelList.get((int)old_speed).add(TimeInLevel);\n //DisplayTimeInLevelList(TimeInLevelList);\n StartTimeInLevel = System.nanoTime();\n }\n \n// \n\n /*\n control system console logging\n W(\"\\nLEVEL: \"+speed);\n W(\"DELAY: \"+delay);\n W(\"KEY %: \"+UnpressPercent);\n W(\"SCORE: \"+score);\n */\n\n\n old_speed = speed;\n \n score_label.setText(\"\"+score);\n speed_label.setText(\"\"+speed);\n level_duration_label.setText(\"\"+TimeInLevel);\n timer.setDelay(delay);\n \n }", "private void delay() {\n\t\tDelay.msDelay(1000);\n\t}", "public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}", "@Override\n\tprotected void execute() {\n\t\tif(Math.abs(Robot.oi.stick.getY()-this.lastValue) < RobotMap.lambda){\n\t\t\tif(System.currentTimeMillis()-this.lastTime > 1000){\n\t\t\t\tRobot.arm.set(0);\n\t\t\t} else {\n\t\t\t\tRobot.arm.set(Robot.oi.stick.getY());\n\t\t\t}\n\t\t} else {\n\t\t\tthis.lastTime = System.currentTimeMillis();\n\t\t\tthis.lastValue = Robot.oi.stick.getY();\t\n\t\t\tRobot.arm.set(Robot.oi.stick.getY());\n\t\t}\n\t}", "private int get_delay() {\n double exp = slider1.getValue() / 100.0 - 9; // Range -9, 1\n exp = Math.min(0, exp); // Range -9, 0\n return (int) (Math.pow(10.0, exp) * 100000000.0);\n }", "@Override\n public void run() {\n BinaryOperator<Integer> avg = (Integer a, Integer b) -> (a + b) / 2;\n int replacement;\n\n System.out.println(\"++\" + Thread.currentThread().getName() + \" has arrived.\");\n\n replacement = avg.apply(oldArray[index - 1], oldArray[index + 1]);\n\n // All threads must wait for all numThreads threads to catch up\n // Phaser acting like a barrier\n ph.arriveAndAwaitAdvance();\n\n System.out.println(\"--\" + Thread.currentThread().getName() + \" has left.\");\n oldArray[index] = replacement;\n\n }", "public double getDelay();", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "@Override\n public void periodic()\n {\n if(AutoIntake)\n intake(-0.2f, -0.5f);\n }", "private int calcOrderDelay()\r\n {\r\n int frameDelay = 0;\r\n if (totalSecondsElapsed >= 120)\r\n {\r\n frameDelay = 2;\r\n }\r\n else if (totalSecondsElapsed >= 90)\r\n {\r\n frameDelay = 3;\r\n }\r\n else if (totalSecondsElapsed >= 60)\r\n {\r\n frameDelay = 4;\r\n }\r\n else if (totalSecondsElapsed >= 45)\r\n {\r\n frameDelay = 5;\r\n }\r\n else if (totalSecondsElapsed >= 30)\r\n {\r\n frameDelay = 6;\r\n }\r\n else if (totalSecondsElapsed >= 15)\r\n {\r\n frameDelay = 7;\r\n }\r\n else if (totalSecondsElapsed >= 0)\r\n {\r\n frameDelay = 8;\r\n }\r\n \r\n return frameDelay * 60;\r\n }", "public void findavgTime(){\n findWaitingTime(ProcessesNumber, ProcessesNumber.length, BurestTime, WaitingTime, quantum);\n \n // Function to find turn around time \n findTurnAroundTime(ProcessesNumber, ProcessesNumber.length, BurestTime, WaitingTime, TurnaroundTime);\n \n \n System.out.println(\"Processes \" + \" Burst time \" +\n \" Waiting time \" + \" Turn around time\");\n \n \n // around time\n for (int i=0; i<ProcessesNumber.length; i++)\n {\n Total_WaitingTime = Total_WaitingTime + WaitingTime[i];\n Total_TurnaroundTime = Total_TurnaroundTime + TurnaroundTime[i];\n System.out.println(\" \" + (i+1) + \"\\t\\t\" + BurestTime[i] +\"\\t \" +\n WaitingTime[i] +\"\\t\\t \" + TurnaroundTime[i]);\n }\n \n Average_WaitingTime = (float)Total_WaitingTime / (float)ProcessesNumber.length ;\n Average_TurnaroundTime = (float)Total_TurnaroundTime / (float)ProcessesNumber.length ;\n \n System.out.println(\"Average waiting time = \" + (float)Average_WaitingTime);\n System.out.println(\"Average turn around time = \" + (float)Average_TurnaroundTime);\n \n\n//for ( int k = 0; k < ProcessMoved[k].length; k++) {\n// \n// for (int j = 0; j < ProcessMoved.length; j++) {\n//\n// System.out.println(ProcessMoved[j][k]);\n// }\n//\n// }\n \n Gantt_Chart_Pre per = new Gantt_Chart_Pre(ProcessMoved ,endtime ,WaitingTime , TurnaroundTime , Names ,ProcessesNumber ,Total_WaitingTime,Average_WaitingTime,Total_TurnaroundTime,Average_TurnaroundTime);\n per.setTitle(\"Solution !!\");\n per.setSize(1000,700);\n per.setLocationRelativeTo(null);\n per.setVisible(true);\n }", "public void run() {\n\t\tSystem.out.println(\"fuseAvg\");\n\t\tAverageConcurrent1 averager = new AverageConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tfloat avg = averager.averageConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(avg, 0);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void execute() {\n m_currentTime = Timer.getFPGATimestamp();\n// used for more precise calculations\n m_currentError = m_desiredDistance - Robot.m_drive.Position();\n// ^^ tells how much further the Robot goes\n m_derivative = (m_currentError - m_oldError) / (m_currentTime - m_oldTime);\n// ^^ PID formula stuff. The change of error / change of time to be more precise\n m_output = m_currentError * constants.kP + constants.kD * m_derivative;\n// tells how much power the motor will change\n Robot.m_drive.SetPower(m_output);\n// changes motor power\n\n m_oldError = m_currentError;\n// how error distance updates so it won't repeat old mistake\n m_oldTime = m_currentTime;\n// same as line above\n }", "public double updatePeriodic()\n {\n double Angle = getRawAngle();\n\n if (FirstCall)\n {\n AngleAverage = Angle;\n }\n\n AngleAverage -= AngleAverage / NumAvgSamples;\n AngleAverage += Angle / NumAvgSamples;\n\n return (AngleAverage);\n }", "void update_time_avg_stats() {\n double time_since_last_event;\n\n\t\t/* Compute time since last event, and update last-event-time marker. */\n\n time_since_last_event = sim_time - time_last_event;\n time_last_event = sim_time;\n\n\t\t/* Update area under number-in-queue function. */\n\n area_num_in_q += num_in_q * time_since_last_event;\n\n\t\t/* Update area under server-busy indicator function. */\n\n area_server_status += server_status.ordinal() * time_since_last_event;\n }", "public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}", "void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }", "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "void takeBefore(){\n beforeTimeNs=System.nanoTime();\n }", "private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }", "public static double doAvgWaitTime() {\n if (count >= 1) {\n return waitTimeTotal / count;\n } else {\n return -1;\n }\n }", "public void calcAcceleration() {\n double firstSpeed = get(0).distanceTo(get(1)) / ((get(1).getTime() - get(0).getTime()) * INTER_FRAME_TIME);\n double lastSpeed = get(length() - 2).distanceTo(get(length() - 1))\n / ((get(length() - 1).getTime() - get(length() - 2).getTime()) * INTER_FRAME_TIME);\n avgAcceleration = (firstSpeed + lastSpeed) / ((get(length() - 1).getTime() - get(0).getTime()) * INTER_FRAME_TIME);\n }", "public void activateUncontrolledMoves() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n actualPoint = new Point();\n actualPoint.x = 0;\n actualPoint.y = 0;\n final int maxX = wheel.getBounds().width(); //This represent the max X possible coord on the wheel\n final int maxY = wheel.getBounds().height();\n int timeBtwnMvmnts = 5000; //Time between each new movement\n while (true) {\n\n try {\n Thread.sleep(timeBtwnMvmnts);//Waiting for the next movement\n } catch (InterruptedException e) {\n\n }\n if (isUncontrolledActivated) { //If is activated continue\n double userCurrentSnap = USER_CURRENT_BREATH_RATE; //Snapshot to the current BR\n\n //Getting the percent of excess according to the max ideal breathing rate and the max posible rate (20)\n //Consider 6-8, MAX_IDEAL_BREATH_RATE (8) will be the max\n double referenceDistance = MAX_BREATH_RATE - MAX_IDEAL_BREATH_RATE;\n double myRateExcess = userCurrentSnap - MAX_IDEAL_BREATH_RATE;\n double relationPreferedActual = myRateExcess / referenceDistance;\n double percentOfExcess = relationPreferedActual * 100;\n\n Random r = new Random();\n\n //Probability of appearance of each special move\n if (percentOfExcess <= 40 && percentOfExcess > 10) { //A little error margin to make it easier. Nets to be 10% excess\n //Boost, stop, roll , inverted. probabilities (70,16,10,4)\n int diceRolled = r.nextInt(100); //This works as the \"probability\"\n if (diceRolled < 4) {// 4% inverted\n /*Enable inverted controlling. Determine how much time is this going to last.\n Not more than the time between each movement.*/\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 4 && diceRolled < 14) { // 10% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 14 && diceRolled < 30) { // 16% stop\n uncStop();\n } else if (diceRolled >= 30 && diceRolled < 100) { // 70% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 8000;\n } else if (percentOfExcess <= 60 && percentOfExcess > 10) {\n //Boost, stop, roll , inverted. probabilities (45,30,15,10)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 10) {// 10% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 10 && diceRolled < 25) { // 15% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 25 && diceRolled < 55) { // 30% stop\n uncStop();\n } else if (diceRolled >= 55 && diceRolled < 100) { // 45% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 6700;\n } else if (percentOfExcess > 10) {//Percent > 60\n //Boost, stop, roll , inverted. probabilities (5,10,25,60)\n int diceRolled = r.nextInt(100);\n if (diceRolled < 60) {// 60% inverted\n final int duration = new Random().nextInt(timeBtwnMvmnts - 1000) + 1000;\n invertControls(duration);\n } else if (diceRolled >= 60 && diceRolled < 85) { // 25% roll\n uncRoll(maxX, maxY);\n } else if (diceRolled >= 85 && diceRolled < 95) { // 10% stop\n uncStop();\n } else if (diceRolled >= 95 && diceRolled < 100) { // 5% boost\n int whichBoost = new Random().nextInt(1);\n if (whichBoost == 0)\n uncBackwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n else\n uncForwardBoost(actualPoint.x, actualPoint.y, maxX, maxY);\n }\n timeBtwnMvmnts = 5000;\n }\n\n } else {\n break;\n }\n }\n }\n }).start();\n }", "public void performance() {\n\t\tPositionVo s = currentPerformed.getFirst();\n\t\t@SuppressWarnings(\"unused\")\n\t\tPositionVo e = currentPerformed.getLast();\n//\t\tint timeCost = (int) (e.getTime() - s.getTime());\n//\t\tint span = (int) Math.abs(e.getHead().getX() - s.getHead().getX());\n\t\t// TODO according to the moving rate decide how many nodes fill the gap\n\n\t\tint size = currentPerformed.size();\n\n\t\tfor (int i = 1; i < size * 4 - 4; i += 4) {\n\t\t\tPositionVo s1 = currentPerformed.get(i - 1);\n\t\t\tPositionVo s2 = currentPerformed.get(i);\n\n\t\t\tPoint[] delta_Head = sim_dda(s1.getHead(), s2.getHead(), 4);\n\t\t\tPoint[] delta_left_hand = sim_dda(s1.getLeftHand(), s2.getRightHand(), 4);\n\t\t\tPoint[] delta_right_hand = sim_dda(s1.getRightHand(), s2.getRightHand(), 4);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tcurrentPerformed.add(i + j, new PositionVo(delta_Head[j], delta_left_hand[j], delta_right_hand[j]));\n\t\t}\n\n\t\tnCount = currentPerformed.size();\n\t\tcursor = 0;\n\n\t\t/* (*)absolute point = initial point - current point */\n\t\treferX -= s.getHead().getX();\n\t\treferY += s.getHead().getY();\n\t\tcurrReferX = referX;\n\t\tcurrReferY = referY;\n\n\t\t/* update gui */\n\t\tmanager.proceBar.setMinimum(0);\n\t\tmanager.proceBar.setMaximum(nCount);\n\t\t/* end */\n\n\t\tstartTimer((int) (ANIMATE_FPS * speedRate));\n\t}", "@Override\r\n protected double computeValue()\r\n {\n return interpFlow.getValue(Scheduler.getCurrentTime());\r\n }", "private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}", "private void graduallyChange() {\r\n\t\t\tif(governmentLegitimacy> 0.2) governmentLegitimacy -= 0.01;\r\n\t\t}", "public void processData(int newVal) {\n\t\tif(samplePoints[counter] < 0) {\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newVal;\n\t\t} else {\n\t\t\tdouble newAverage = lastAverage + ((newVal - samplePoints[counter]) / SAMPLE_POINTS);\n\t\t\tdouble difference = 10 * Math.abs(newAverage - lastAverage);\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newAverage;\n\t\t\tif(tookOff) {\n\t\t\t\tif(difference > DIFFERENCE_THRESHOLD || System.currentTimeMillis() - startTime > 16000) {\n\t\t\t\t\t//The robot is landing\n\t\t\t\t\tSound.beep();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\ttookOff = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(difference < DIFFERENCE_THRESHOLD) {\n\t\t\t\t\tdifferenceCounter--;\n\t\t\t\t} else {\n\t\t\t\t\tdifferenceCounter = DIFFERENCE_POINTS_COUNTER;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(differenceCounter < 0) {\n\t\t\t\t\t//The robot is now in the air.\n\t\t\t\t\tSound.beep();\n\t\t\t\t\ttookOff = true;\n\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\tArrays.fill(samplePoints, -1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcounter = (counter + 1) % SAMPLE_POINTS;\n\t}", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n \n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n boolean targetInRange = false ;\n \n if(centerBlock == null)\n {\n targetInRange = false;\n SmartDashboard.putString(\"center block data \", \"null\"); \n }\n else if(centerBlock.yCenter < 200)\n {\n targetInRange = true;\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out); \n }\n\n String targetValue = Boolean.toString(targetInRange);\n SmartDashboard.putString(\"target good?\", targetValue);\n \n \n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n }", "protected void execute() {\r\n timespan = date.getTime() - lastTime;\r\n allaxes = accelerometer.GetAcceleration();\r\n velocityX = velocityX + allaxes.XAxis * timespan;\r\n velocityY = velocityY + allaxes.YAxis * timespan;\r\n theDash.log(velocityX,\"X\");\r\n }", "protected void Simulation_done()\n {\n \t//System.out.println(\"total lost:\");\n \tdouble time=getTime();\n \twhile(!a_buffer.isEmpty()){\n \t\ts.delay[s_index]+=time-a_buffer.remove().time;\n \t}\n \ts.delay[s_index]=math_yt.Divide(s.delay[s_index],numM);\n \tif(s.performance[s_index]==0)\n \t\ts.performance[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.performance[s_index]=math_yt.Divide(s.performance[s_index],s.firstacked);\n \tif(s.rtt[s_index]==0)\n \t\ts.rtt[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.rtt[s_index]=math_yt.Divide(s.rtt[s_index],s.nore);\n \ts.tput[s_index]=math_yt.Divide(math_yt.Multiply(s.t,256),time);\n \t/*if(s.firstacked==0)\n \t\ts.goodput[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);*/\n \ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);\n \tSystem.out.println(\"****************************8\");\n \tSystem.out.println(\"time:\"+getTime());\n \tSystem.out.println(\"simulation_done:\"+fa+\", average performance:\"+math_yt.Divide(perf, fa));\n }", "public void compute() {\n\t\t// Fire as continuously as gun heating will allow.\n\t\tif (getGunCurrentTemp() < getGunUnjamTemp() && fires)\n\t\t\tfire((float)(Math.random() * 360.0));\n\t\t// Might as well wait the gun can be reloaded\n\t\tUtility.delay(getGunReloadDurationMillis());\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.maltiSpeedPlayPrevious();\r\n\r\n\t\t\t\t\t}", "private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}", "public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }", "void takeAfter(){\n afterTimeNs=System.nanoTime();\n lastdt=afterTimeNs-beforeTimeNs;\n samplesNs[index++]=afterTimeNs-lastAfterTime;\n lastAfterTime=afterTimeNs;\n if(index>=nSamples) index=0;\n }", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}", "private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }", "public double averageWaitTime() {\n\t\tif (numCompleted < 1) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\treturn (double)totalWaitTime / (double)numCompleted;\n\t\t}\n\t}", "private void accelSpinnerDelay(int index) {\n\t\tif (toggleServiceButton.isChecked()) {\n\t\t\tswitch (index) {\n\t\t\tcase 0:\n\t\t\t\taccelSpinnerDelay = DELAY_FAST;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\taccelSpinnerDelay = DELAY_GAME;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\taccelSpinnerDelay = DELAY_UI;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\taccelSpinnerDelay = DELAY_NORMAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstopAccelService();\n\t\t\tstartAccelService();\n\t\t\tdoAccelBindService();\n\t\t\tstartAccel();\n\t\t} else {\n\t\t\tLog.d(USER_TAG, \"spinnerDelay - OFF\");\n\t\t\tif (accelService != null) {\n\t\t\t\tstopAccelService();\n\t\t\t}\n\t\t}\n\t\taccelSpinnerDelay = index;\n\t\tSPE = SP.edit();\n\t\tSPE.putInt(\"accelSpinnerDelay\", accelSpinnerDelay);\n\t\tSPE.commit();\n\t}", "int getMaximumDelay();", "private void accelerate()\n {\n if(accelX < maxAccelRate)\n {\n accelX += accelerationRate;\n }\n }", "@Override\r\n public void timePassed(double dt) {\r\n return;\r\n }", "@Override\n\tpublic boolean execute() {\n\t\t// Runs the motors so they expel the ball for EXPEL_TIME seconds\n\t\tif (System.currentTimeMillis() - begin < EXPEL_TIME) {\n\t\t\taccumulatorController.systems.getAccumulatorMotors().setSpeed(ACCUMULATOR_POWER);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public double getTotalDelayTime() {\r\n return totalDelayTime;\r\n }", "private void breathe(int period) {\n\t\ttry {\n\t\t\tThread.sleep(period);\n\t\t} catch (InterruptedException ie) {\n\t\t\tlogger.error(\"interrupted while breathing\", ie);\n\t\t}\n\t}", "private float averageBeat(){\n float avgBeat = 0f;\n List<Float> beatRed = DataManager.getInstance().getBeatRed();\n List<Float> beatIR = DataManager.getInstance().getBeatIR();\n\n for(int i = 0; i < beatRed.size() && i < beatIR.size(); i ++ ){\n chartFragment.addRedData(beatRed.get(i));\n chartFragment.addIRData(beatIR.get(i));\n avgBeat += beatRed.get(i);\n avgBeat += beatIR.get(i);\n }\n avgBeat = avgBeat / (beatRed.size() + beatIR.size());\n\n if (tcpTask != null )\n this.tcpTask.addData(\"\" + avgBeat);\n beatLabel.setText(\"Beat : \" + avgBeat);\n return avgBeat;\n }", "public static void handleEffectChances() {\n for (int i=0 ; i<5 ; i++) {\n effectChances.set(i, effectChances.get(i)+((int) Math.ceil(((double)stageCount)/5))*2);\n }\n }", "@Override\n protected void accelerate() {\n System.out.println(\"Bike Specific Acceleration\");\n }", "private void applyRaceStartPenalty()\n {\n for(int i = 0; i < getDrivers().getSize(); i++)\n {\n getDrivers().getDriver(i).setAccumulatedTime(0); // set to default\n int driverRanking = getDrivers().getDriver(i).getRanking();\n int timePenalty = 10;\n switch(driverRanking)\n {\n case 1: timePenalty = 0; break;\n case 2: timePenalty = 3; break;\n case 3: timePenalty = 5; break;\n case 4: timePenalty = 7; break;\n }\n getDrivers().getDriver(i).setAccumulatedTime(timePenalty);\n }\n }", "int getNominalDelay();", "long getInitialDelayInSeconds();", "public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }", "private void gyroSpinnerDelay(int index) {\n\t\tif (toggleServiceButton.isChecked()) {\n\t\t\tswitch (index) {\n\t\t\tcase 0:\n\t\t\t\tgyroSpinnerDelay = DELAY_FAST;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tgyroSpinnerDelay = DELAY_GAME;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tgyroSpinnerDelay = DELAY_UI;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tgyroSpinnerDelay = DELAY_NORMAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstopGyroService();\n\t\t\tstartGyroService();\n\t\t\tdoGyroBindService();\n\t\t\tstartGyro();\n\t\t} else {\n\t\t\tif (gyroService != null) {\n\t\t\t\tstopGyroService();\n\t\t\t}\n\t\t}\n\t\tgyroSpinnerDelay = index;\n\t\tSPE = SP.edit();\n\t\tSPE.putInt(\"gyroSpinnerDelay\", gyroSpinnerDelay);\n\t\tSPE.commit();\n\t}", "public void updateSMA(){\n audioInput.read(audioBuffer, 0, bufferSize);\n Complex [] FFTarr = doFFT(shortToDouble(audioBuffer));\n FFTarr = bandPassFilter(FFTarr);\n double sum = 0;\n for(int i = 0; i<FFTarr.length;i++){\n sum+=Math.abs(FFTarr[i].re()); // take the absolute value of the FFT raw value\n }\n double bandPassAverage = sum/FFTarr.length;\n Log.d(LOGTAG, \"bandPassAverage: \" + bandPassAverage);\n\n //Cut out loud samples, otherwise compute rolling average as usual\n if(bandPassAverage>THROW_OUT_THRESHOLD){\n mySMA.compute(mySMA.currentAverage());\n }else {\n mySMA.compute(bandPassAverage);\n }\n }", "@Override\n\tprotected void controlUpdate(float tpf) {\n\t\t\n\t}", "public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}", "private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }", "@Override\n\tpublic void onUpdate(float dt) {\n\t}", "private void performMentalTask() {\r\n\t\tlong millis = (long) ((100 - getAverageMentalScore()) * 100.0);\r\n\t\tif (millis < 1000)\r\n\t\t\tmillis = 1000;\r\n\t\ttry {\r\n\t\t\tMain.Log(\"Team \" + getName() + \" performing mental task for \" + millis + \" millis.\");\r\n\t\t\tsleep(millis);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private double updateEstimates(long sleep) {\r\n \t\t// Prune datasets\r\n \t\twhile (startupTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\tstartupTimeHistory.remove(0);\r\n \t\t}\r\n \t\twhile (requestTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\trequestTimeHistory.remove(0);\r\n \t\t}\r\n \r\n \t\t// Do estimates\r\n \t\tlong totalTime = 0;\r\n \t\tfor (long t : startupTimeHistory) {\r\n \t\t\ttotalTime += t;\r\n \t\t}\r\n \t\tstartupTimeEstimate = totalTime / startupTimeHistory.size();\r\n \r\n \t\t// Math.max(..., 1) to avoid divide by zeros.\r\n \t\tdemandEstimate = requestTimeHistory.size()\r\n \t\t\t\t/ Math.max(System.currentTimeMillis() - requestTimeHistory.get(0), 1.0);\r\n \r\n \t\t// Guestimate demand for N\r\n \t\tdouble estimate = demandEstimate * poolConfig.safetyMultiplier * sleep;\r\n \t\treturn Math.min(Math.max(estimate, poolConfig.poolMin), poolConfig.poolMax);\r\n \t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdimensionclip3.start();\r\n\t\t\t\t\t\t\tTimer fourtheffect = new Timer();\r\n\t\t\t\t\t\t\tTimerTask fourtheffecttask = new TimerTask() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tdimensionclip4.start();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tfourtheffect.schedule(fourtheffecttask, 1300);\r\n\t\t\t\t\t\t}", "public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "int getAbsoluteMaximumDelay();", "@Override\r\n protected void controlUpdate(float tpf) {\n }", "private void completeLap(int avgLapTime, int lapNo)\n {\n RNG generator = new RNG(1,9); // 9 exclusive\n RNG overtakingGenerator = new RNG(10,21); // 21 exclusive\n RNG percentageGenerator = new RNG(1,101); // 101 exclusive\n Validation validator = new Validation();\n for(int i = 0; i < getDrivers().getSize(); i++)\n {\n if(getDrivers().getDriver(i).getEligibleToRace()) // if eligible\n {\n int updatedLapTime = getDrivers().getDriver(i).getAccumulatedTime() + avgLapTime;\n int timeAffected = 0;\n String driverSpecialSkill = getDrivers().getDriver(i).getSpecialSkill();\n if(driverSpecialSkill.equalsIgnoreCase(\"braking\") || driverSpecialSkill.equalsIgnoreCase(\"cornering\")) // if have braking and cornering skills\n {\n timeAffected = generator.generateRandomNo();\n System.out.println(getDrivers().getDriver(i).getName() + \" has used \" + driverSpecialSkill + \" to reduce lap \" + lapNo + \n \" time by \" + timeAffected + \"secs\");\n updatedLapTime -= timeAffected; // change lap time\n }\n else if((lapNo % 3 == 0) && driverSpecialSkill.equalsIgnoreCase(\"overtaking\"))\n {\n timeAffected = overtakingGenerator.generateRandomNo();\n System.out.println(getDrivers().getDriver(i).getName() + \" has used \" + driverSpecialSkill + \" to reduce lap \" + lapNo + \n \" time by \" + timeAffected + \"secs\");\n updatedLapTime -= timeAffected; // change lap time\n }\n\n int minorMechanicalProb = percentageGenerator.generateRandomNo();\n int majorMechanicalProb = percentageGenerator.generateRandomNo();\n int unrecovarableMechanicalProb = percentageGenerator.generateRandomNo();\n if(validator.isNumberBetween(1, 5, minorMechanicalProb)) // 5% chance of minor mechanical fault\n {\n timeAffected = 20;\n System.out.println(getDrivers().getDriver(i).getName() + \" has suffered a minor mechanical fault to increase lap \" + lapNo + \n \" time by \" + timeAffected + \" secs\");\n updatedLapTime += timeAffected; // change lap time\n }\n else if(validator.isNumberBetween(1, 3, majorMechanicalProb)) // 3% chance of major mechanical fault\n {\n timeAffected = 120;\n System.out.println(getDrivers().getDriver(i).getName() + \" has suffered a major mechanical fault to increase lap \" + lapNo + \n \" time by \" + timeAffected + \" secs\");\n updatedLapTime += timeAffected; // change lap time\n }\n else if(validator.isNumberBetween(1, 1, unrecovarableMechanicalProb)) // 1% chance of unrecoverable mechanical fault\n {\n System.out.println(getDrivers().getDriver(i).getName() + \" has suffered an unrecoverable mechanical fault and is no longer a part of the race\");\n getDrivers().getDriver(i).setEligibleToRace(false); // not eligible to race anymore\n }\n getDrivers().getDriver(i).setAccumulatedTime(updatedLapTime);\n }\n }\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.intakeSubsystem._getSpeed();\n\n\t\tRobot.driveSubsystem.operatorOverride();\n\t\tScheduler.getInstance().run();\n\n\t\tTargetRegion boilerTarget = Robot.navigator.getBoilerTarget();\n\t\tif (boilerTarget != null) {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", boilerTarget.m_centerTop);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", boilerTarget.m_bounds.m_top);\n\t\t} else {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", -1);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", -1);\n\t\t}\n\t}", "@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }", "@Override\n public void onBuffering(int percent) {\n }", "@Override\n public void stress() {\n _brain.heart.accelerate(2);\n }", "public void setDelay(long d){delay = d;}", "public void DoImportantStuff2() {\r\n\r\n if (System.currentTimeMillis() - lastPlayerUpdated > DELTA_TIME) {\r\n\r\n// if(System.currentTimeMillis() - lastPlayerTime > DELTA_TIME + 5)\r\n// Log.i(\"debug\", \"TIME 2 : \" + (System.currentTimeMillis() - lastPlayerUpdated));\r\n\r\n currentCoin.state = (int) (lastUpdated / 100) % 7;\r\n\r\n if (coinTime < lastUpdated) {\r\n coinTime = lastUpdated + (randomInt.nextInt(4) * 2000) + 2000;\r\n currentCoin.isActive = !currentCoin.isActive;\r\n if (currentCoin.isActive) {\r\n if (soundPlaying && playerVisible)\r\n soundPlayer.play(soundIds[1], 1, 1, 1, 0, (float) 1.0);\r\n currentCoin.RandomizePosition();\r\n }\r\n }\r\n\r\n if (currentCoin.isActive && Colliding(currentCoin, currentPlayer)) {\r\n if (soundPlaying && playerVisible)\r\n soundPlayer.play(soundIds[2], 1, 1, 1, 0, (float) 1.0);\r\n playerScore += 3;\r\n coinTime = 0;\r\n }\r\n\r\n// if (currentCoin != null)\r\n currentCoin.MoveCoin(timeStep);\r\n\r\n currentBackground.DoStuff(timeStep);\r\n\r\n currentPlayer.MovePlayer(timeStep);\r\n\r\n lastPlayerUpdated = System.currentTimeMillis();\r\n }\r\n }", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "private float getRefreshRate() {\n return 1;\n }", "@Override\r\n\tpublic void pass(Vehicle veh) {\r\n if (qCur == 0)\r\n vCur = veh.v;\r\n else\r\n vCur = ((vCur*qCur)+veh.v)/(qCur+1);\t// add velocity to average\r\n qCur++;\r\n }", "@Override\r\n\tpublic void update(float dt) {\n\r\n\t}", "private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }", "@Override\n\tpublic int getAverageSpeed() {\n\t\treturn 5;\n\t}", "public double getTimeDelayActivation() {\r\n\t\tif (activation_count > 1) return last_activation;\r\n\t\telse return 0.0;\r\n\t}", "public void run() {\n if (Integer.parseInt(mCurrentWeight) < 3) {\n mZeroValueCounter++;\n if (mZeroValueCounter > 3) { //3 seconds pasted throw data to database\n InsertToDataBase();\n\n }\n } else {\n mNumberOfSecondssCounter = 0;\n mZeroValueCounter = 0;\n }\n\n mHandler.postDelayed(mTicker, 1000);\n\n\n }", "protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }", "public static void periodic() {\n a2 = limelightTable.getEntry(\"ty\").getDouble(0); //Sets a2, the y position of the target\n d = Math.round((h2-h1) / Math.tan(Math.toRadians(a1+a2))); //Calculates distance using a tangent\n\n if(m_gamepad.getStartButtonReleased()) { //Reset errorSum to 0 when start is released\n errorSum = 0;\n }\n\n shooting(); //Determine when we should be shooting\n reportStatistics(); //Report telemetry to the Driver Station\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "@Override\n\tpublic void update(float dt) {\n\t\t\n\t}" ]
[ "0.645753", "0.6370891", "0.6187726", "0.60526526", "0.60055673", "0.59601617", "0.5959354", "0.59165627", "0.5868926", "0.58639854", "0.58459026", "0.5843271", "0.58348554", "0.58290505", "0.5822495", "0.5821051", "0.5811344", "0.57745576", "0.5766976", "0.57631356", "0.57389987", "0.56916636", "0.5671061", "0.566786", "0.5664787", "0.5663056", "0.5655824", "0.5648333", "0.5629866", "0.5605554", "0.5599298", "0.5593139", "0.5590747", "0.5589777", "0.55709493", "0.55531484", "0.5541142", "0.5540001", "0.5534943", "0.55215585", "0.55162126", "0.55110765", "0.5508235", "0.5506425", "0.5500092", "0.5496053", "0.5495202", "0.5489427", "0.54863524", "0.54836345", "0.5476469", "0.547495", "0.54749036", "0.54716384", "0.5470363", "0.54653865", "0.546403", "0.5451453", "0.54494905", "0.54482234", "0.54424626", "0.5440532", "0.54394853", "0.5425369", "0.54206735", "0.54175705", "0.5408713", "0.5406497", "0.5400606", "0.53960943", "0.538728", "0.5386814", "0.5383466", "0.5382664", "0.5380418", "0.5375632", "0.5374487", "0.5371283", "0.5368717", "0.53680784", "0.5364411", "0.5364106", "0.53637743", "0.53553814", "0.53452677", "0.5344365", "0.5340714", "0.53322685", "0.5330238", "0.5329758", "0.5329462", "0.5328886", "0.5328215", "0.5327907", "0.53246224", "0.5317927", "0.5316768", "0.53163046", "0.5314458", "0.5312352" ]
0.66540277
0
Returns true when the statebackend is on heap.
public static boolean isHeapState(StateBackend stateBackend) { return stateBackend == null || stateBackend instanceof MemoryStateBackend || stateBackend instanceof FsStateBackend; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHeap()\n\t{\n\t\treturn true;\n\t}", "public boolean isInNativeHeap();", "private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }", "public boolean isOutOfMemory() {\n if (isEnabled())\n return ((getMax() - getCurrent()) < (getInitial() + 200000));\n else\n return false;\n }", "@Override\n public boolean isFull() {\n return heapSize == heap.length;\n }", "public boolean isFull()\n {\n return heapSize == heap.length;\n }", "public boolean isHeap() {\r\n\t\tint padre = 0, hijo;\r\n\t\twhile (padre < (theHeap.size() >> 2)) {\r\n\t\t\thijo = (padre << 1) + 1;\r\n\t\t\tif (hijo < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(hijo), theHeap.get(hijo + 1)) > 0)\r\n\t\t\t\thijo++;\r\n\t\t\tif (compare(theHeap.get(hijo), theHeap.get(padre)) < 0)\r\n\t\t\t\treturn false;\r\n\t\t\tpadre++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isHeap() \n {\n \tint childIndex;\n \tfor (int i=0 ; i < this.getSize() ; i++) {\n \t\tfor (int j=1 ; j <= this.d ; j++) {\n \t\t\tif( (childIndex=child(i, j, this.d))>=this.getSize() ) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tif ( array[i].getKey()>array[childIndex].getKey() ) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t}\n return true; \n }", "public boolean isHeapEmpty() {\n\t\treturn this.head == null;\n\t}", "private boolean isHeap(Node root) {\n\n\t\tif (root == null)\n\t\t\treturn true;\n\t\tint countnodes = countNodes(root);\n\t\tif (isCompleteTree(root, 0, countnodes) == true && isHeapUtil(root) == true)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "boolean hasCapacity();", "public boolean isHotGrowable() {\n return hotGrowable;\n }", "private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isMaxState();", "private boolean hasHeapProperty() {\n for(int i=1; i <= count; i++) {\n if( findRightChild(i) <= count ) { // if i Has two children...\n // ... and i is smaller than either of them, , then the heap property is violated.\n if( items[i].compareTo(items[findRightChild(i)]) < 0 ) return false;\n if( items[i].compareTo(items[findLeftChild(i)]) < 0 ) return false;\n }\n else if( findLeftChild(i) <= count ) { // if n has one child...\n // ... and i is smaller than it, then the heap property is violated.\n if( items[i].compareTo(items[findLeftChild(i)]) < 0 ) return false;\n }\n else break; // Neither child exists. So we're done.\n }\n return true;\n }", "boolean hasPakringFree();", "boolean hasPakringFree();", "public boolean isAllocated()\n\t{\n\t\tif(getQtyAllocated().signum()!=0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public boolean isHighGuestMemSupported() {\r\n return highGuestMemSupported;\r\n }", "public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }", "public final boolean hasAllocationSize() {\n return m_allocSize > 0 ? true : false;\n }", "public boolean isStored(){\n synchronized (stateLock){\n return state.equals(State.STORED);\n }\n }", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "@Override\n public boolean isEmpty() {\n return heapSize == 0;\n }", "public Boolean isFree()\n\t{\n\t\treturn free;\n\t}", "private boolean buildHeap(int numPerRun){ \n\t\tTuple temp;\n\t\tint i = 0;\n\t\twhile(i < numPerRun && (temp = child.getNextTuple()) != null) {\n\t\t\tinternal.offer(temp);\n\t\t\ti++;\n\t\t}\n//\t\tSystem.out.println(\"internal heap has: \" + i + \"tuples\");\n\t\tif(i != numPerRun || i == 0) { // i == 0, heap is empty!\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isHeap2() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1; \r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) < 0)\r\n\t\t\t\treturn false;\t\r\n\t\t\tchild-- ;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isHugeMushroom() {\n return this.type == Type.HUGEMUSHROOM;\n }", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public boolean isAlive() {\n\t\treturn state;\n\t}", "private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }", "boolean isRAM();", "public boolean isAlive(String storeName);", "boolean hasPokeStorage();", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STATE$8) != 0;\r\n }\r\n }", "public boolean isMinHeap(int[] array) {\n int prev = array[0];\n for (int i=1; i<array.length; i++) {\n if (prev > array[i]) {\n return false;\n }\n \n prev = array[i];\n }\n \n return true;\n }", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "@Override\n public boolean isTripped() {\n\n long localAllowedMemory = getCurrentMemoryThreshold();\n long localSeenMemory = calculateLiveMemoryUsage();\n\n allowedMemory.set(localAllowedMemory);\n\n seenMemory.set(localSeenMemory);\n\n return (localSeenMemory >= localAllowedMemory);\n }", "private boolean hasEnoughHeapMemoryForScreenshot() {\n final Runtime runtime = Runtime.getRuntime();\n\n // Auto casting to floats necessary for division\n float free = runtime.freeMemory();\n float total = runtime.totalMemory();\n float remaining = free / total;\n\n TurbolinksLog.d(\"Memory remaining percentage: \" + remaining);\n\n return remaining > .10;\n }", "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "private boolean keepEvaluating(Stack<Operator> pOperatorStack, Operator pOperator) {\n if (pOperatorStack.isEmpty()) {\n return false;\n } else {\n return pOperatorStack.peek().stackPrecedence() >= pOperator.precedence();\n }\n }", "boolean hasMaxSize();", "public boolean hasPokeStorage() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}", "public boolean hasPokeStorage() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "boolean isEphemeral();", "public boolean goodMemorySize(){\n\t\t\n\t\tif (memorySize < 128) {\n\t\t\tgoodMemorySize = false;\n\t\t}\n\t\t\n\t\telse {\n\t\t\tgoodMemorySize = true;\n\t\t}\n\t\t\n\t\treturn goodMemorySize;\n\t}", "public boolean isLeashed ( ) {\n\t\treturn extract ( handle -> handle.isLeashed ( ) );\n\t}", "public boolean isHotLoadable();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public boolean is_stored(String state_key){\n\t\treturn penalty_buffer.containsKey(state_key);\n\t}", "boolean hasServerState();", "public void check_stacking_queries(boolean on){\r\n this.e_stacking_queries = on;\r\n }", "private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "boolean containsKeyLocalOffHeap(Object key);", "boolean getIsVirtHost();", "public Boolean checkifItHasExternalMemory() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isHasHp() {\n\t\treturn hasHp;\n\t}", "public boolean IsAlive() {\n\treturn process != null;\n }", "public boolean needsAllocArrays() {\n return this.table == null;\n }", "default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }", "private boolean hasPinnedStack() {\n return this.mTaskStackContainers.getPinnedStack() != null;\n }", "public boolean isFull(){\n return (top == employeeStack.length);\n }", "public boolean isDeployed(){\n return !places.isEmpty();\n }", "public boolean isHighPerformanceNeeded() { return highPerformanceNeeded; }", "public boolean isMemAlgorithm() {\n\t\treturn memAlgorithm;\n\t}", "public boolean isGCEnabled() {\n return runGC;\n }", "public Heap(boolean isMin) {\r\n // TODO\r\n }", "public boolean hasMemoryAddress()\r\n/* 138: */ {\r\n/* 139:167 */ return false;\r\n/* 140: */ }", "boolean isOverflow() {\r\n\r\n if (children.size() > branchingFactor) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean isHeap(Node root) {\r\n\t\t// create an empty queue and enqueue root node\r\n\t\tQueue<Node> queue = new ArrayDeque<>();\r\n\t\tqueue.add(root);\r\n\r\n\t\t// take a boolean flag which becomes true when an empty left or right\r\n\t\t// child is seen for a node\r\n\t\tboolean nonEmptyChildSeen = false;\r\n\r\n\t\t// run till queue is not empty\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\t// process front node in the queue\r\n\t\t\tNode curr = queue.poll();\r\n\r\n\t\t\t// left child is non-empty\r\n\t\t\tif (curr.left != null) {\r\n\t\t\t\t// if either heap-property is violated\r\n\t\t\t\tif (nonEmptyChildSeen || curr.left.data <= curr.data) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// enqueue left child\r\n\t\t\t\tqueue.add(curr.left);\r\n\t\t\t}\r\n\t\t\t// left child is empty\r\n\t\t\telse {\r\n\t\t\t\tnonEmptyChildSeen = true;\r\n\t\t\t}\r\n\r\n\t\t\t// right child is non-empty\r\n\t\t\tif (curr.right != null) {\r\n\t\t\t\t// if either heap-property is violated\r\n\t\t\t\tif (nonEmptyChildSeen || curr.right.data <= curr.data) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// enqueue left child\r\n\t\t\t\tqueue.add(curr.right);\r\n\t\t\t}\r\n\t\t\t// right child is empty\r\n\t\t\telse {\r\n\t\t\t\tnonEmptyChildSeen = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// we reach here only when the given binary tree is a min-heap\r\n\t\treturn true;\r\n\t}", "public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }", "public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }", "public boolean mo8379g() {\n return true;\n }", "public boolean mo8379g() {\n return true;\n }", "public boolean mo8379g() {\n return true;\n }", "@FXML\n public void checkMemory()\n {\n long heapSize = Runtime.getRuntime().totalMemory(); \n System.out.println(\"Current: \" +heapSize);\n // Get maximum size of heap in bytes. The heap cannot grow beyond this size.// Any attempt will result in an OutOfMemoryException.\n long heapMaxSize = Runtime.getRuntime().maxMemory();\n System.out.println(\"Max: \" + heapMaxSize);\n }", "public boolean isFrontLoadLast() {\n return frontLoadLast;\n }", "boolean hasCompatibilityState();", "public boolean hasPool() {\r\n return mPool;\r\n }", "public boolean isHardKilled() {\n return hardKill;\n }", "public boolean isSetAllocFraction() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLOCFRACTION_ISSET_ID);\n }", "@Override\n public MaxHeap<T> getBackingHeap() {\n return heap;\n }", "public boolean isGrowable() {\n return growable;\n }", "public boolean isFreezed() {\n\t\treturn this.__freezed;\n\t}", "public boolean isEnergyStorage() {\n\t\treturn false;\n\t}", "public boolean isKilled() {\n return killed;\n }", "public boolean mo8379g() {\n return true;\n }", "public boolean isMaybeSingleAllocationSite() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && newSet(getObjectSourceLocations()).size() == 1;\n }" ]
[ "0.7338936", "0.727377", "0.67314243", "0.6534583", "0.64685076", "0.64282894", "0.6353796", "0.6284701", "0.61872035", "0.6090568", "0.59309816", "0.5808388", "0.57716644", "0.57521826", "0.573414", "0.57229507", "0.57229507", "0.5720609", "0.56933665", "0.56824267", "0.5679167", "0.5658648", "0.56478536", "0.5588617", "0.5580204", "0.55600697", "0.55508953", "0.553808", "0.55342823", "0.552754", "0.55094445", "0.5504957", "0.550307", "0.5495337", "0.5483453", "0.5472188", "0.54400533", "0.5429014", "0.5429014", "0.54156816", "0.5409568", "0.5398446", "0.53834724", "0.53735906", "0.53684884", "0.5353514", "0.5345503", "0.53395283", "0.53324205", "0.53122044", "0.530711", "0.5301588", "0.5301588", "0.5301588", "0.5301588", "0.5301588", "0.5301588", "0.5301588", "0.5301588", "0.5296096", "0.5293334", "0.5290273", "0.52896816", "0.52879894", "0.5286087", "0.5284386", "0.5283798", "0.52809733", "0.5278964", "0.527641", "0.5268328", "0.5267676", "0.52640045", "0.5252491", "0.5250233", "0.52451617", "0.5244972", "0.5241588", "0.52276814", "0.5224564", "0.5224148", "0.52218455", "0.52182674", "0.5217985", "0.5206623", "0.5206623", "0.5206623", "0.51996493", "0.51985043", "0.5196554", "0.51904535", "0.51891536", "0.5186398", "0.51793414", "0.51708126", "0.5168046", "0.5164124", "0.5161851", "0.5146866", "0.5143598" ]
0.7963722
0
Gets the "MD_ScopeCode" element
public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode() { synchronized (monitor()) { check_orphaned(); org.isotc211.x2005.gco.CodeListValueType target = null; target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSCOPECODE$0, 0); if (target == null) { return null; } return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType addNewMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MDSCOPECODE$0);\n return target;\n }\n }", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "String getScope();", "public String getScope() {\n\t\treturn _scope != -1 ? Components.scopeToString(_scope): null;\n\t}", "public CodeFragment getCode() {\n\t\treturn code;\n\t}", "public void setMDScopeCode(org.isotc211.x2005.gco.CodeListValueType mdScopeCode)\n {\n generatedSetterHelperImpl(mdScopeCode, MDSCOPECODE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public java.lang.String getElmCode() {\r\n return elmCode;\r\n }", "public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public java.lang.String getCode() {\r\n return code;\r\n }", "public java.lang.String getScope() {\r\n return scope;\r\n }", "public String getCode() {\n return (String) get(\"code\");\n }", "public String getScope() {\n return this.scope;\n }", "public String getScope() {\n return this.scope;\n }", "public String getScope() {\n return this.scope;\n }", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCode()\n {\n return fCode;\n }", "public String getCode(){\n\t\treturn code;\n\t}", "public int getScope() {\r\n\t\treturn scope;\r\n\t}", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getScope() {\n return scope;\n }", "public String getScope() {\n return scope;\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode()\n {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public BoundCodeDt<DataTypeEnum> getCodeElement() { \n\t\tif (myCode == null) {\n\t\t\tmyCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myCode;\n\t}", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public org.apache.xmlbeans.XmlNMTOKENS xgetStyleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKENS target = null;\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(STYLECODE$16);\n return target;\n }\n }", "public org.apache.xmlbeans.XmlNMTOKENS xgetStyleCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKENS target = null;\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(STYLECODE$16);\n return target;\n }\n }", "public String getScope() {\n\t\treturn scope;\n\t}", "@Override\n public String getScopeContent()\n {\n\treturn scopeName;\n }", "public String getCode() {\n\t\treturn Code;\n\t}", "public String getCode() {\n return _code;\n }", "public org.hl7.fhir.CodeableConcept getCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(CODE$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getCode() {\n return this.code;\n }", "public String getCodeposte() {\n return (String) getAttributeInternal(CODEPOSTE);\n }", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "public String getLineCode() {\n return (String)getAttributeInternal(LINECODE);\n }", "java.lang.String getCodeName();", "public String getCode(){\n\t\treturn codeService;\n\t}", "Code getCode();", "int getScopeValue();", "public String getDictContentCode() {\r\n return (String) getAttributeInternal(DICTCONTENTCODE);\r\n }", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public java.lang.String getSwiftCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SWIFTCODE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "@Nullable\n public String getScope() {\n return scope;\n }", "public java.lang.String getCode() {\n java.lang.Object ref = code_;\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 code_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getCode() {\n java.lang.Object ref = code_;\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 code_ = s;\n return s;\n }\n }", "public String getcCode() {\n\t\treturn this.cCode;\n\t}", "public String getCode();", "public String getCode();", "public String getElementCode() {\r\n\t\treturn elementCode;\r\n\t}" ]
[ "0.6587816", "0.6471566", "0.6411018", "0.61858016", "0.6119629", "0.6104586", "0.6067231", "0.6016618", "0.5958565", "0.59240186", "0.59240186", "0.592355", "0.58782655", "0.5867091", "0.58604825", "0.5855422", "0.58539015", "0.58539015", "0.58539015", "0.58291876", "0.581406", "0.581126", "0.5805958", "0.5781464", "0.5781464", "0.5781464", "0.5781464", "0.57759434", "0.57759434", "0.57759434", "0.57759434", "0.57759434", "0.57759434", "0.57682973", "0.57682973", "0.57655406", "0.57655406", "0.5760842", "0.5760842", "0.5760842", "0.5760842", "0.5760842", "0.5760842", "0.5760842", "0.5754153", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5749407", "0.5742858", "0.57402086", "0.5711771", "0.5711771", "0.57026494", "0.57026494", "0.57026494", "0.57026494", "0.57026494", "0.56991976", "0.56991976", "0.56949013", "0.56722987", "0.56683093", "0.5667805", "0.5647807", "0.5645127", "0.5636558", "0.5635932", "0.56060153", "0.5602003", "0.5600711", "0.55923736", "0.55815005", "0.55723524", "0.5562043", "0.5557011", "0.55519295", "0.5550331", "0.5545857", "0.5528149", "0.5506197", "0.54990286", "0.54990286", "0.5492733" ]
0.81713676
0
Sets the "MD_ScopeCode" element
public void setMDScopeCode(org.isotc211.x2005.gco.CodeListValueType mdScopeCode) { generatedSetterHelperImpl(mdScopeCode, MDSCOPECODE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSCOPECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "void setCode(String code);", "public org.isotc211.x2005.gco.CodeListValueType addNewMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MDSCOPECODE$0);\n return target;\n }\n }", "public final void setCode(java.lang.String code)\n\t{\n\t\tsetCode(getContext(), code);\n\t}", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "public void setCode(Code code) {\n this.Code = code;\n }", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setElmCode(java.lang.String elmCode) {\r\n this.elmCode = elmCode;\r\n }", "public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String code)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Code.toString(), code);\n\t}", "public void setCode(String code)\n {\n this.code = code;\n }", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public void setScope(JexlEngine.Scope theScope) {\r\n this.scope = theScope;\r\n }", "public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(byte[] code);", "protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}", "IPayerEntry setCode(CD value);", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setAttrCode(String attrCode) {\r\n\t\tthis.attrCode = attrCode;\r\n\t}", "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum code)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CODE$0);\n }\n target.setEnumValue(code);\n }\n }", "public Type setCode(DataTypeEnum theValue) {\n\t\tgetCodeElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "public void setDataCode(String dataCode);", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public Builder setCode(int value) {\n\n code_ = value;\n onChanged();\n return this;\n }", "public void setSwiftCode(java.lang.String swiftCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SWIFTCODE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SWIFTCODE$8);\n }\n target.setStringValue(swiftCode);\n }\n }", "private void setValidCode() {\n\t\tValidCode.setBounds(330, 170, 180, 30);\n\t}", "public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }", "public void setCode(BizCodeEnum code) {\n this.code = code;\n }", "public void setCode(org.hl7.fhir.CodeableConcept code)\n {\n generatedSetterHelperImpl(code, CODE$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "@Override\n\tpublic void setTypeCode(java.lang.String typeCode) {\n\t\t_permissionType.setTypeCode(typeCode);\n\t}", "public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }", "public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}", "public final void setEnvironmentCode(java.lang.String environmentcode)\r\n\t{\r\n\t\tsetEnvironmentCode(getContext(), environmentcode);\r\n\t}", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setScope(Scope scope) {\n this.scope = scope;\n }", "public void setEVENT_CODE(java.lang.String value)\n {\n if ((__EVENT_CODE == null) != (value == null) || (value != null && ! value.equals(__EVENT_CODE)))\n {\n _isDirty = true;\n }\n __EVENT_CODE = value;\n }", "public String setCode() {\n\t\treturn null;\n\t}", "public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}", "public void setElementCode(String elementCode) {\r\n\t\tthis.elementCode = elementCode;\r\n\t}", "public void setScope(java.lang.String scope) {\r\n this.scope = scope;\r\n }", "public void setCode(long value) {\n this.code = value;\n }", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setCode(Integer code) {\n this.code = code;\n }", "@Override\n\tpublic void setPositionCode(java.lang.String positionCode) {\n\t\t_dmGTShipPosition.setPositionCode(positionCode);\n\t}", "public void xsetCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType code)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openarchives.www.oai._2_0.OAIPMHerrorcodeType target = null;\n target = (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n target = (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType)get_store().add_attribute_user(CODE$0);\n }\n target.set(code);\n }\n }", "protected void setFunctionCode(int code) {\n m_FunctionCode = code;\n // setChanged(true);\n }", "public void xsetStyleCode(org.apache.xmlbeans.XmlNMTOKENS styleCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKENS target = null;\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(STYLECODE$16);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().add_attribute_user(STYLECODE$16);\n }\n target.set(styleCode);\n }\n }", "public void xsetStyleCode(org.apache.xmlbeans.XmlNMTOKENS styleCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKENS target = null;\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().find_attribute_user(STYLECODE$16);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKENS)get_store().add_attribute_user(STYLECODE$16);\n }\n target.set(styleCode);\n }\n }", "public void setRaceCode(com.walgreens.rxit.ch.cda.CE raceCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(RACECODE$18, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.CE)get_store().add_element_user(RACECODE$18);\n }\n target.set(raceCode);\n }\n }", "public void setDictContentCode(String value) {\r\n setAttributeInternal(DICTCONTENTCODE, value);\r\n }", "public void setLineCode(String value) {\n setAttributeInternal(LINECODE, value);\n }", "public void setAppCode(String appCode)\n\t{\n\t\tthis.appCode = Toolbox.trim(appCode, 3);\n\t}", "public void setClassCode(java.lang.String classCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSCODE$30);\n }\n target.setStringValue(classCode);\n }\n }", "public void setScope ( Object scope ) {\r\n\t\tgetStateHelper().put(PropertyKeys.scope, scope);\r\n\t\thandleAttribute(\"scope\", scope);\r\n\t}", "public void setScope(String scope) {\n\t\tthis.scope = TagUtils.getScope(scope);\n\t}", "public void setRequestCode(String requestCode);", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public void setPrmTypeCode(String value) {\n setAttributeInternal(PRMTYPECODE, value);\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public abstract BaseQuantityDt setCode(String theCode);", "public String getCode(){\n\t\treturn code;\n\t}" ]
[ "0.64460427", "0.63074476", "0.6237866", "0.6064821", "0.60631263", "0.5981067", "0.5981004", "0.5977558", "0.59477717", "0.5919541", "0.5915124", "0.5898873", "0.58806366", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.5834744", "0.58206445", "0.57954735", "0.57954735", "0.57954735", "0.5772169", "0.5769463", "0.5746274", "0.57339185", "0.57339185", "0.57131946", "0.56750774", "0.565157", "0.5646402", "0.5619989", "0.5619989", "0.56192625", "0.5583378", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55698127", "0.55683094", "0.55683094", "0.55683094", "0.556802", "0.55335826", "0.54849464", "0.54234725", "0.54156363", "0.54123485", "0.541002", "0.54038316", "0.53888285", "0.53542274", "0.5349073", "0.5342306", "0.5331444", "0.5325271", "0.5302434", "0.5302115", "0.5302115", "0.5302115", "0.5302039", "0.5300212", "0.5294261", "0.5294261", "0.5292454", "0.5288878", "0.5288857", "0.5288857", "0.52829826", "0.52773166", "0.52773166", "0.52773166", "0.52675086", "0.5266647", "0.52449846", "0.5243204", "0.52419096", "0.52419096", "0.522868", "0.52159005", "0.5215327", "0.5203032", "0.52002555", "0.51937604", "0.5151174", "0.5150942", "0.51483876", "0.51365036", "0.51287776", "0.51287776", "0.51287776", "0.51287776", "0.5127869", "0.5119642" ]
0.7799364
0
Appends and returns a new empty "MD_ScopeCode" element
public org.isotc211.x2005.gco.CodeListValueType addNewMDScopeCode() { synchronized (monitor()) { check_orphaned(); org.isotc211.x2005.gco.CodeListValueType target = null; target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MDSCOPECODE$0); return target; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.isotc211.x2005.gco.CodeListValueType getMDScopeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.isotc211.x2005.gco.CodeListValueType target = null;\n target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MDSCOPECODE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public void setMDScopeCode(org.isotc211.x2005.gco.CodeListValueType mdScopeCode)\n {\n generatedSetterHelperImpl(mdScopeCode, MDSCOPECODE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void newScope() {\n Map<String, Type> scope = new HashMap<String, Type>();\n scopes.push(scope);\n Map<String, Type> typeScope = new HashMap<String, Type>();\n typeScopes.push(typeScope);\n }", "void addScope() {\n\t\tlist.addFirst(new HashMap<String, Sym>());\n\t}", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS);\n }", "public void addNewScope(){\n List<String> varScope = new ArrayList<>();\n newVarInCurrentScope.add(varScope);\n\n List<String> objScope = new ArrayList<>();\n newObjInCurrentScope.add(objScope);\n }", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public void pushScope() {\n\t\tscopeStack.add(new Scope());\n\t\t\n\t}", "public void enterScope(){\n\t\tscope.add(0, new ArrayList<SymbolEntry>());\n\t\t++scopeLevel;\n\t}", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS);\n }", "private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE);\n }", "protected void pushScope() {\n Scope newScope = new Scope(currentScope);\n currentScope = newScope;\n }", "public com.walgreens.rxit.ch.cda.CS addNewRealmCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CS target = null;\n target = (com.walgreens.rxit.ch.cda.CS)get_store().add_element_user(REALMCODE$0);\n return target;\n }\n }", "public Builder clearCode() {\n \n code_ = getDefaultInstance().getCode();\n onChanged();\n return this;\n }", "public void OpenScope(){\n Scope newScope = new Scope();\n currentScope.AddChildScope(newScope);\n currentScope = newScope;\n }", "public org.hl7.fhir.CodeableConcept addNewCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(CODE$6);\n return target;\n }\n }", "Scope createScope();", "public void openScope() {\n scopes.add(new Scope<>(++currentScopeLevel));\n }", "String getScope();", "public Builder clearCodeName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n codeName_ = getDefaultInstance().getCodeName();\n onChanged();\n return this;\n }", "static void EnterScope(){\r\n\t\tcurLevel++;\r\n\t\tScope scope = new Scope(curLevel);\r\n\t\t//scope.nextAdr = 3;\r\n\t\ttopScope.ant = scope;\r\n\t\tscope.sig = topScope; \r\n\t\ttopScope = scope;\r\n }", "@Override\n public String getScopeContent()\n {\n\treturn scopeName;\n }", "CodeType createCodeType();", "public Builder clearCode() {\n bitField0_ = (bitField0_ & ~0x00000004);\n code_ = 0;\n onChanged();\n return this;\n }", "public Builder clearCodeId() {\n \n codeId_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearCodeId() {\n \n codeId_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearCodeId() {\n \n codeId_ = 0L;\n onChanged();\n return this;\n }", "public void generateCode(BlockScope currentScope, CodeStream codeStream) {\n\n\t\tif ((bits & IsReachable) == 0) {\n\t\t\treturn;\n\t\t}\n\t\tint pc = codeStream.position;\n\t\tif (statements != null) {\n\t\t\tfor (int i = 0, max = statements.length; i < max; i++) {\n\t\t\t\tstatements[i].generateCode(scope, codeStream);\n\t\t\t}\n\t\t} // for local variable debug attributes\n\t\tif (scope != currentScope) { // was really associated with its own scope\n\t\t\tcodeStream.exitUserScope(scope);\n\t\t}\n\t\tcodeStream.recordPositionsFrom(pc, this.sourceStart);\n\t}", "public Builder clearCode() {\n\n code_ = 0;\n onChanged();\n return this;\n }", "public static Scope empty(){\n return EMPTY;\n }", "public Builder clearCode() {\n bitField0_ = (bitField0_ & ~0x00000001);\n code_ = 0;\n onChanged();\n return this;\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak addNewCodeBreak();", "protected String getScopeChain(Function func) {\n String ret = \"[\";\n List<Scope> chain = scopeChainMap.get(func);\n boolean first = true;\n for (Scope s : chain) {\n if (first) {\n first = false;\n } else {\n ret += \",\";\n }\n\n if (s == null) {\n ret += \"'#null'\"; \n } else {\n Exp e = s.getRootExp();\n if (e.isFunction()) {\n Function f = cg.getFunctionForExp(e);\n assert f != null;\n ret += \"'##\" + f.getName() + \"'\";\n } else {\n ret += \"'#Global'\";\n }\n }\n }\n ret += \"]\";\n\n return ret;\n }", "private void buildScope(EObject original, ChangeSet local, ChangeSet remote) {\n scope = ScopeFactory.eINSTANCE.createDSEMergeScope();\n scope.setRemote(remote);\n scope.setLocal(local);\n scope.setOrigin(EMFHelper.clone(original));\n scope.setCemetery(ScopeFactory.eINSTANCE.createCemetery());\n }", "public String toCode() {\r\n\t\treturn \"CodeDefinition(\" + mActivityName + \".class\"+ \")\";\r\n\t}", "public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }", "public Value makeExtendedScope() {\n checkNotUnknown();\n if (isExtendedScope())\n return this;\n Value r = new Value(this);\n r.flags |= EXTENDEDSCOPE;\n return canonicalize(r);\n }", "public void setElmCode(java.lang.String elmCode) {\r\n this.elmCode = elmCode;\r\n }", "public abstract void scopeCorrectness() throws CodeException;", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void add(JavaType type, JavaScope s) {\n\t\tif (type == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.sig.add(new TypeContainer(type, s));\n\t}", "public CodeFragment getCode() {\n\t\treturn code;\n\t}", "public void setScope(JexlEngine.Scope theScope) {\r\n this.scope = theScope;\r\n }", "public String getScope() {\n\t\treturn _scope != -1 ? Components.scopeToString(_scope): null;\n\t}", "@Override\n public String codeGeneration() {\n StringBuilder localDeclarations = new StringBuilder();\n StringBuilder popLocalDeclarations = new StringBuilder();\n\n if (declarationsArrayList.size() > 0) {\n for (INode dec : declarationsArrayList) {\n localDeclarations.append(dec.codeGeneration());\n popLocalDeclarations.append(\"pop\\n\");\n }\n }\n\n //parametri in input da togliere dallo stack al termine del record di attivazione\n StringBuilder popInputParameters = new StringBuilder();\n for (int i = 0; i < parameterNodeArrayList.size(); i++) {\n popInputParameters.append(\"pop\\n\");\n }\n\n\n String funLabel = Label.nuovaLabelFunzioneString(idFunzione.toUpperCase());\n\n if (returnType instanceof VoidType) {\n // siccome il return è Void vengono rimosse le operazioni per restituire returnvalue\n FunctionCode.insertFunctionsCode(funLabel + \":\\n\" +\n \"cfp\\n\" + //$fp diventa uguale al valore di $sp\n \"lra\\n\" + //push return address\n localDeclarations + //push dichiarazioni locali\n body.codeGeneration() +\n popLocalDeclarations +\n \"sra\\n\" + // pop del return address\n \"pop\\n\" + // pop dell'access link, per ritornare al vecchio livello di scope\n popInputParameters +\n \"sfp\\n\" + // $fp diventa uguale al valore del control link\n \"lra\\n\" + // push del return address\n \"js\\n\" // jump al return address per continuare dall'istruzione dopo\n );\n } else {\n //inserisco il codice della funzione in fondo al main, davanti alla label\n FunctionCode.insertFunctionsCode(funLabel + \":\\n\" +\n \"cfp\\n\" + //$fp diventa uguale al valore di $sp\n \"lra\\n\" + //push return address\n localDeclarations + //push dichiarazioni locali\n body.codeGeneration() +\n \"srv\\n\" + //pop del return value\n popLocalDeclarations +\n \"sra\\n\" + // pop del return address\n \"pop\\n\" + // pop dell'access link, per ritornare al vecchio livello di scope\n popInputParameters +\n \"sfp\\n\" + // $fp diventa uguale al valore del control link\n \"lrv\\n\" + // push del risultato\n \"lra\\n\" + // push del return address\n \"js\\n\" // jump al return address per continuare dall'istruzione dopo\n );\n }\n\n return \"push \" + funLabel + \"\\n\";\n }", "public com.walgreens.rxit.ch.cda.CE addNewRaceCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().add_element_user(RACECODE$18);\n return target;\n }\n }", "public void generateCodeItemCode() {\n\t\tcodeItem.generateCodeItemCode();\n\t}", "public String getScope() {\n return this.scope;\n }", "public String getScope() {\n return this.scope;\n }", "public String getScope() {\n return this.scope;\n }", "CompileScope getCompileScope();", "public java.lang.String getScope() {\r\n return scope;\r\n }", "CodeSetType createCodeSetType();", "protected void insertCode(SketchCode newCode) {\n ensureExistence();\n\n // add file to the code/codeCount list, resort the list\n //if (codeCount == code.length) {\n code = (SketchCode[]) PApplet.append(code, newCode);\n codeCount++;\n //}\n //code[codeCount++] = newCode;\n }", "Rule NamespaceScope() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n \"* \",\n \"cpp \",\n \"java \",\n \"py \",\n \"perl \",\n \"php \",\n \"rb \",\n \"cocoa \",\n \"csharp \"),\n actions.pushLiteralNode());\n }", "@Override\n\tpublic SourceCodeLocation getScopeEnd() {\n\t\treturn endLocation;\n\t}", "public void setScope(java.lang.String scope) {\r\n this.scope = scope;\r\n }", "public BoundCodeDt<DataTypeEnum> getCodeElement() { \n\t\tif (myCode == null) {\n\t\t\tmyCode = new BoundCodeDt<DataTypeEnum>(DataTypeEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myCode;\n\t}", "public String getScope() {\n return scope;\n }", "public String getScope() {\n return scope;\n }", "public int getScope() {\r\n\t\treturn scope;\r\n\t}", "public void add(Consumer<Builder> code) {\n\t\tBuilder builder = CodeBlock.builder();\n\t\tcode.accept(builder);\n\t\tadd(builder.build());\n\t}", "private Element createScopeForAttachedHandlers(Element content, Task task) {\n//\t\t// create fault, compensation and termination handlers but they must \n//\t\t// be located in an additional scope \n//\t\tList<Element> faultHandlers = this.structuredElementsFactory.\n//\t\t\tcreateFaultHandlerElements(task);\n//\t\tElement compensationHandler = this.structuredElementsFactory.\n//\t\t\tcreateCompensationHandlerElement(task);\n//\t\tElement terminationHandler = \n//\t\t\tthis.structuredElementsFactory.createTerminationHandlerElement(task);\n//\t\t\n//\t\tif ((faultHandlers.size() > 0) || (compensationHandler != null) || \n//\t\t\t\t(terminationHandler != null)) {\n//\t\t\t\n//\t\t\tElement scope = this.document.createElement(\"scope\");\n//\t\t\tscope.setAttribute(\"name\", BPELUtil.generateScopeName(task));\n//\t\t\tif (faultHandlers.size() > 0) {\n//\t\t\t\tElement faultHandlersElement = \n//\t\t\t\t\tthis.document.createElement(\"faultHandlers\");\n//\t\t\t\tfor (Iterator<Element> it = faultHandlers.iterator(); it.hasNext();) {\n//\t\t\t\t\tfaultHandlersElement.appendChild(it.next());\n//\t\t\t\t}\n//\t\t\t\tscope.appendChild(faultHandlersElement);\n//\t\t\t}\n//\t\t\t\n//\t\t\tif (compensationHandler != null) {\n//\t\t\t\tscope.appendChild(compensationHandler);\n//\t\t\t}\n//\t\t\t\n//\t\t\tif (terminationHandler != null) {\n//\t\t\t\tscope.appendChild(terminationHandler);\n//\t\t\t}\n//\t\t\tscope.appendChild(content);\n//\t\t\treturn scope;\n//\t\t}\n//\t\treturn content;\n\t\treturn null;\n\t}", "public abstract String\n openScope\n (\n boolean first, \n int level \n );", "public Scope(Scope parent){\r\n\t\tthis. parent = parent;\r\n\t}", "@Override\n public String addSharedScope(Scope scope, String tenantDomain) throws APIManagementException {\n\n Set<Scope> scopeSet = new HashSet<>();\n scopeSet.add(scope);\n int tenantId = APIUtil.getTenantIdFromTenantDomain(tenantDomain);\n addScopes(scopeSet, tenantId);\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n try {\n keyManager.registerScope(scope);\n } catch (APIManagementException e) {\n log.error(\"Error occurred while registering Scope in Key Manager \" + keyManagerDtoEntry.getKey(), e);\n }\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Adding shared scope mapping: \" + scope.getKey() + \" to Key Manager : \" +\n keyManagerDtoEntry.getKey());\n }\n }\n return ApiMgtDAO.getInstance().addSharedScope(scope, tenantDomain);\n }", "public String toBinaryCode() {\r\n\t\treturn \"CodeDefinition(\" + mActivityName + \".class\"+ \")\";\r\n\t}", "public ScopeHelper add(String scopeName, Map map) {\n\t\tAssert.notBlank(scopeName, \"scope name is required!\");\n\t\tAssert.notNull(map, \"scope value is required!\");\n\t\tparentScope.put(scopeName, map);\n\t\treturn this;\n\t}", "public WxpUnlimitCode() {\n this(DSL.name(\"b2c_wxp_unlimit_code\"), null);\n }", "public void unsetCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(CODE$6, 0);\n }\n }", "@Nonnull\n @OverrideOnDemand\n protected IApplicationScope createApplicationScope (@Nonnull @Nonempty final String sApplicationID)\n {\n return MetaScopeFactory.getScopeFactory ().createApplicationScope (sApplicationID);\n }", "public void addScope(OscilloscopeComponentModel ocm)\n {\n // add to vector\n scopes.add(ocm);\n // set number of rows correctly\n ((GridLayout)scopepanel.getLayout()).setRows(scopes.size());\n // add to panel\n scopepanel.add(ocm.myOscilloscope);\n // check for buttons\n doButtons();\n pack();\n setVisible(true);\n }", "public java.lang.String getElmCode() {\r\n return elmCode;\r\n }", "public void enterScope() {\n\t\tmap.add(new HashMap<K, V>());\n\t}", "public JexlEngine.Scope getScope() {\r\n return scope;\r\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc addNewLoc();", "public Code() {\n\t}", "public final C2445a m8810a(Scope scope, Scope... scopeArr) {\n this.f7382a.add(scope);\n this.f7382a.addAll(Arrays.asList(scopeArr));\n return this;\n }", "public void generateCode() {\n code = java.util.UUID.randomUUID().toString();\n }", "public void closeScope() {\n if (!scopes.isEmpty()) {\n scopes.remove(currentScopeLevel--);\n }\n }", "public void endScope(){\n if(front == null) return;\n\n ListNode<String,Object> temp = front;\n ListNode<String,Object> prev = front;\n\n while(temp != null && temp.scope != scope){\n prev = temp;\n temp = temp.next;\n }\n\n prev.next = null;\n if(prev.scope == scope)\n prev = null;\n front = prev;\n scope--;\n }", "AcmEcmaParserStack() {\r\n\t\tthis.elementData = new TokenStatement[8];\r\n\t}", "public void add(CodeBlock code) {\n\t\tif (code.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Code should not be empty\");\n\t\t}\n\t\tthis.elements.add(code);\n\t}", "public String extended() {\r\n final StringBuilder sb = new StringBuilder();\r\n if(type != null) sb.append(\"[\" + code() + \"] \");\r\n return sb + simple();\r\n }", "public com.walgreens.rxit.ch.cda.CE addNewEthnicGroupCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().add_element_user(ETHNICGROUPCODE$20);\n return target;\n }\n }", "public String getScope() {\n\t\treturn scope;\n\t}", "public void setScope(String scope) {\n this.scope = scope == null ? null : scope.trim();\n }", "public OntologyScope getScope(IRI scopeID);", "public abstract String getFullCode();", "public Builder clearTradeCode() {\n tradeCode = null;\n fieldSetFlags()[6] = false;\n return this;\n }", "public void exitScope(){\n\t\tfor (SymbolEntry se: scope.get(0)){\n\t\t\tsymbolMap.get(se.symbol.name).remove(0);\n\t\t\tif(symbolMap.get(se.symbol.name).isEmpty())\n\t\t\t\tsymbolMap.remove(se.symbol.name);\n\t\t}\n\t\tscope.remove(0);\n\t\t--scopeLevel;\n\t}", "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "CD withCode();", "@Override\n public String getCode() {\n\n InitListExpr syntaticForm = get(SYNTACTIC_FORM).orElse(null);\n if (syntaticForm != null) {\n if (!syntaticForm.getId().equals(getId())) {\n // System.out.println(\"SYNTATIC FORM: \" + syntaticForm);\n // System.out.println(\"SEMANTIC FORM: \" + this);\n return syntaticForm.getCode();\n } else {\n // System.out.println(\"SAME ID!\");\n // System.out.println(\"SYNTATIC FORM: \" + syntaticForm);\n // System.out.println(\"SEMANTIC FORM: \" + this);\n }\n }\n\n // System.out.println(\"INIT LIST EXPR TYPE:\" + getType());\n // if (getChild(0) instanceof InitListExpr) {\n // System.out.println(\"HAS INIT LIST EXPR CHILD WITH TYPE:\" + ((Typable) getChild(0)).getType());\n // }\n /*\n if (isOldFormat) {\n String list = getInitExprs().stream()\n .map(expr -> expr.getCode())\n .collect(Collectors.joining(\", \"));\n \n boolean hasSameInitsAsElements = hasSameInitsAsElements();\n \n // if (arrayFiller != null) {\n if (data.hasArrayFiller() && !hasSameInitsAsElements) {\n \n String exprClassName = data.getArrayFiller().getClass().getSimpleName();\n switch (exprClassName) {\n case \"ImplicitValueInitExpr\":\n list = list + \",\";\n break;\n default:\n SpecsLogs.msgWarn(\"Case not defined:\" + exprClassName);\n break;\n }\n }\n \n if (data.isExplicit()) {\n return \"{\" + list + \"}\";\n } else {\n return list;\n }\n }\n */\n String list = getChildren().stream()\n .map(expr -> expr.getCode())\n .collect(Collectors.joining(\", \"));\n\n // if (arrayFiller != null) {\n\n if (hasArrayFiller() && !get(IS_STRING_LITERAL_INIT)) {\n\n String exprClassName = get(ARRAY_FILLER).get().getClass().getSimpleName();\n switch (exprClassName) {\n case \"ImplicitValueInitExpr\":\n list = list + \",\";\n break;\n default:\n SpecsLogs.msgWarn(\"Case not defined:\" + exprClassName);\n break;\n }\n }\n\n if (get(IS_EXPLICIT)) {\n return \"{\" + list + \"}\";\n } else {\n return list;\n }\n\n /*\n if (data.hasArrayFiller() && !get(IS_STRING_LITERAL_INIT)) {\n \n String exprClassName = data.getArrayFiller().getClass().getSimpleName();\n switch (exprClassName) {\n case \"ImplicitValueInitExpr\":\n list = list + \",\";\n break;\n default:\n SpecsLogs.msgWarn(\"Case not defined:\" + exprClassName);\n break;\n }\n }\n \n if (data.isExplicit()) {\n return \"{\" + list + \"}\";\n } else {\n return list;\n }\n */\n // , \"{ \", \" }\"\n // return \"{\" + list + \"}\";\n }", "@Override\n public void addCode(char symbol, String code) throws IllegalStateException {\n\n if (symbol == '\\0' || code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code or symbol cannot be null or empty.\");\n }\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"the code contains illegal entry.\");\n }\n }\n allCode = allCode + symbol + \":\" + code + \"\\n\";\n\n\n for (String sym : symbolDictonary.keySet()) {\n\n String indir = symbolDictonary.get(sym);\n\n String a = indir.length() > code.length() ? indir : code;\n String b = indir.length() <= code.length() ? indir : code;\n\n if (b.equals(a.substring(0, b.length()))) {\n throw new IllegalStateException(\"prefix code detected!\");\n }\n }\n\n if (!symbolDictonary.keySet().contains(symbol + \"\")) {\n root = root.addChild(symbol + \"\", code);\n } else {\n throw new IllegalStateException(\"trying to insert duplicate symbol.\");\n }\n\n symbolDictonary.put(symbol + \"\", code);\n\n }", "public void unsetSwiftCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SWIFTCODE$8, 0);\n }\n }", "@Override\n public String getCode() {\n return null;\n }", "public void append(Code code, Collection<Attribute> attributes) {\r\n\t\tstmts.add(new Entry(code,attributes));\t\t\r\n\t}" ]
[ "0.6051758", "0.5982223", "0.58252186", "0.56379974", "0.5538181", "0.54332805", "0.5426168", "0.5413315", "0.5400589", "0.53955245", "0.53926134", "0.53518564", "0.5165874", "0.51433724", "0.5137513", "0.51354057", "0.50894856", "0.4958968", "0.4938851", "0.4937599", "0.49240965", "0.49207956", "0.49028847", "0.48877135", "0.48682114", "0.48682114", "0.48682114", "0.48641977", "0.4805409", "0.47998652", "0.47851506", "0.47486144", "0.47405484", "0.47050893", "0.46357563", "0.46267965", "0.4602787", "0.45964172", "0.45928416", "0.45823926", "0.45823926", "0.45823926", "0.45816374", "0.45652682", "0.4552135", "0.4536477", "0.45228407", "0.4520012", "0.45190892", "0.4517609", "0.4517609", "0.4517609", "0.45143738", "0.45119262", "0.45113012", "0.4508316", "0.44945303", "0.44864807", "0.44857493", "0.4477574", "0.44688457", "0.44688457", "0.4468181", "0.44596583", "0.4450427", "0.44483045", "0.44444758", "0.44275248", "0.44198537", "0.44161993", "0.44158214", "0.43828684", "0.4378527", "0.43764627", "0.4366412", "0.4363168", "0.43589813", "0.43459782", "0.43439075", "0.43146637", "0.4311751", "0.43113348", "0.43097907", "0.43075532", "0.4299014", "0.42966712", "0.4296127", "0.42946756", "0.427612", "0.42717353", "0.42645425", "0.42605892", "0.42603916", "0.4252968", "0.4252804", "0.42500168", "0.42488682", "0.4243592", "0.4239778", "0.42371082" ]
0.7357893
0
Toast.makeText(this, "onRewardedVideoAdFailedToLoad error: " + i, Toast.LENGTH_SHORT).show();
@Override public void onRewardedVideoAdFailedToLoad(int i) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(\"TAG\",\"Ad failed to load\");\n }", "@Override\n public void onAdFailedToLoad(int i) {\n Log.w(TAG, \"onAdFailedToLoad:\" + i);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdFailedToLoad: \" + errorCode);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"xxx Banner onAdFailedToLoad: \" + errorCode);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onRewardedAdFailedToShow(AdError adError) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "public void onFailedToReceiveAd(AdView adView);", "@Override\n public void onAdError(BannerAd ad, String error) {\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\r\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onRequestError(RequestError requestError) {\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"RV: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdNotAvailable(AdFormat adFormat) {\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n logger.logError(TAG, \"ad failed to load: error code: \" + errorCode);\n }", "@Override\n\tpublic void onAdError(String arg0) {\n\t\t\n\t}", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"MainActivity\", \"The previous ad failed to load. Attempting to\"\n + \" load the next ad in the items list at position \" + index);\n loadNativeExpressAd(index + ITEMS_PER_AD);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n sponsoredLinearLayout.setVisibility(View.GONE);\n adView.setVisibility(View.GONE);\n adProgressBar.setVisibility(View.GONE);\n adFailedLinearLayout.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdFailedToShowFullScreenContent(AdError adError) {\n Log.d(\"TAG\", \"The ad failed to show.\");\n }", "@Override\n public void onRewardedVideoAdLeftApplication() {\n\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\n public void onRewardedAdFailedToLoad(LoadAdError adError) {\n }", "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n Log.d(\"ADMOB_ERROR_CODE\", \"admob error code: \" + adError);\n }", "private void rewardedAds() {\n Log.d(TAG, \"rewardedAds invoked\");\n final RequestCallback requestCallback = new RequestCallback() {\n\n @Override\n public void onAdAvailable(Intent intent) {\n // Store the intent that will be used later to show the video\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onAdNotAvailable(AdFormat adFormat) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: No ad available \");\n Toast.makeText(MainActivity.this, \"RV: No ad available \", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onRequestError(RequestError requestError) {\n // Since we don't have an ad, it's best to reset the video intent\n rewardedVideoIntent = null;\n Log.d(TAG, \"RV: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"RV: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }\n };\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n RewardedVideoRequester.create(requestCallback)\n .request(MainActivity.this);\n Log.d(TAG, \"RV request: added delay of 5 secs\");\n Toast.makeText(MainActivity.this, \"RV Request: delay of 5 secs\", Toast.LENGTH_SHORT).show();\n }\n }, 5000);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"MainActivity\", \"The previous native ad failed to load. Attempting to\"\n + \" load another.\");\n if (!adLoader.isLoading()) {\n insertAdsInMenuItems();\n }\n }", "@Override\n public void onAdAvailable(Intent intent) {\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onError(Ad ad, AdError adError) {\n Log.e(TAG, \"Native ad failed to load: \" + adError.getErrorMessage());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, getResources().getString(R.string.error_not_respond), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n }", "public String showRewardedVideoAd() {\n\t\tif(mYoyoBridge != null) {\t \t\t\t\n\t\t\tmYoyoBridge.showInterstitial();\t\t\t \n\t }\t\t\t\t\t\t\t \n\t\treturn \"\";\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onAdFailedToLoad(LoadAdError loadAdError) {\n String error =\n String.format(\n \"domain: %s, code: %d, message: %s\",\n loadAdError.getDomain(), loadAdError.getCode(), loadAdError.getMessage());\n Log.e(\n \"MainActivity\",\n \"The previous banner ad failed to load with error: \"\n + error\n + \". Attempting to\"\n + \" load the next banner ad in the items list.\");\n loadBannerAd(index + ITEMS_PER_AD);\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n loading.dismiss();\n //Showing toast\n //Toast.makeText(getActivity(), volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n Toast.makeText(AdQuestionActivity.this, \"Upload Error! \"+volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void onAdFailed(String arg0) {\n\t\tLog.i(\"AdBannerActivity\", \"onAdFailed\");\n\t}", "@Override\n public void onPlayerError(ExoPlaybackException error) {\n AlertDialog.Builder adb = new AlertDialog.Builder(this);\n adb.setTitle(\"Could not able to stream video\");\n adb.setMessage(\"It seems that something is going wrong.\\nPlease try again.\");\n adb.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish(); // take out user from this activity. you can skip this\n }\n });\n AlertDialog ad = adb.create();\n ad.show();\n }", "@Override\n public void onFailure(Call<VideoResult> call, Throwable t) {\n if (!NetworkUtils.isNetworkAvailable(getActivity())) {\n Toast.makeText(getActivity(),\n R.string.no_internet_connection_message, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getActivity(),\n R.string.failed_loading_videos, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // handle the closing of the interstitial\n if (resultCode == RESULT_OK && requestCode == INTERSTITIAL_REQUEST_CODE) {\n\n // check the ad status\n InterstitialAdCloseReason adStatus = (InterstitialAdCloseReason) data.getSerializableExtra(InterstitialActivity.AD_STATUS);\n if (adStatus.equals(InterstitialAdCloseReason.ReasonUserClickedOnAd)) {\n // The user clicked on the interstitial, which closed the ad\n Log.d(TAG, \"The interstitial ad was dismissed because the user clicked it\");\n } else if (adStatus.equals(InterstitialAdCloseReason.ReasonUserClosedAd)) {\n // The user deliberately closed the interstitial without clicking on it\n Log.d(TAG, \"The interstitial ad was dismissed because the user closed it\");\n } else if (adStatus.equals(InterstitialAdCloseReason.ReasonError)) {\n // An error occurred, which closed the ad\n Log.d(TAG, \"The interstitial ad was dismissed because of an error\");\n } else if (adStatus.equals(InterstitialAdCloseReason.ReasonUnknown)) {\n // The interstitial closed, but the reason why is unknown\n Log.d(TAG, \"The interstitial ad was dismissed for an unknown reason\");\n }\n }\n\n if (resultCode == RESULT_OK && requestCode == REWARDED_VIDEO_REQUEST_CODE) {\n\n // check the engagement status\n String engagementResult = data.getStringExtra(RewardedVideoActivity.ENGAGEMENT_STATUS);\n switch (engagementResult) {\n case RewardedVideoActivity.REQUEST_STATUS_PARAMETER_FINISHED_VALUE:\n // The user watched the entire video and will be rewarded\n Log.d(TAG, \"The video ad was dismissed because the user completed it\");\n break;\n case RewardedVideoActivity.REQUEST_STATUS_PARAMETER_ABORTED_VALUE:\n // The user stopped the video early and will not be rewarded\n Log.d(TAG, \"The video ad was dismissed because the user explicitly closed it\");\n break;\n case RewardedVideoActivity.REQUEST_STATUS_PARAMETER_ERROR:\n // An error occurred while showing the video and the user will not be rewarded\n Log.d(TAG, \"The video ad was dismissed error during playing\");\n break;\n }\n }\n\n if (requestCode == OFFER_WALL_REQUEST_CODE) {\n // handle the closing of the Offer Wall\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(Call<MovieModel> call, Throwable t) {\n Toast.makeText(TopRatedActivity.this, t.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdLoaded() {\n Log.d(\"TAG\",\"Ad loaded\");\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\tpublic void getDisplayAdResponseFailed(String arg0) {\n\t\t\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, \"Something Went Wrong\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n public void onErrorResponse(VolleyError volleyError) {\n progressDialog.dismiss();\r\n\r\n // Showing error message if something goes wrong.\r\n Toast.makeText(appointment.this, volleyError.toString(), Toast.LENGTH_LONG).show();\r\n }", "@Override\r\n\tpublic void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {\n\t\tLog.d(\"AdMob\", \"失敗\");\r\n\t arg0.stopLoading();\r\n\t arg0.loadAd(new AdRequest());\r\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(Auth0Exception error) {\n showNextActivity();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Toast.makeText(getActivity(), \"An error occured\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), \"Something went wrong!PLEASE CHECK YOUR NETWORK CONNECTION\", Toast.LENGTH_SHORT).show();\n\n\n }", "@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, \"Error: \\n\" + error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n loading.dismiss();\n Toast.makeText(feeds.this,\"An unexpected error occurred\",Toast.LENGTH_LONG).show();\n\n }", "@Override\n\tpublic void videoError(int arg0) {\n\t\t\n\t}", "@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }", "private void showErrorOnToast(String msg) {\n mFailToLoadTextView.setVisibility(View.VISIBLE);\n mFailToLoadTextView.setText(R.string.error_msg_unable_to_load);\n Toast.makeText(MainActivity.this, msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n showToast(\"ERROR\", Color.RED);\n e.printStackTrace();\n }", "@Override\n public void onFailure(Call<DetailResult> call, Throwable t) {\n if (!NetworkUtils.isNetworkAvailable(getActivity())) {\n Toast.makeText(getActivity(), R.string.no_internet_connection_message,\n Toast.LENGTH_SHORT).show();\n movie.setRuntime(0);\n } else {\n Toast.makeText(getActivity(), R.string.failed_loading_movie_details,\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError volleyError) {\n loading.dismiss();\n\n //Showing toast\n //Toast.makeText(PreviewActivity.this, volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n Toast.makeText(PreviewActivity.this, \"Error\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n\tpublic void getFullScreenAdResponseFailed(int arg0) {\n\t\t\n\t}", "@Override\n public void onFailure(Auth0Exception error) {\n showNextActivity();\n }", "protected void mo4168a(int i) {\n if (this.f2489b != null) {\n this.f2489b.onNativeAdsFailedToLoad(i);\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Toast.makeText(AddKostActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onError(UiError e) {\n Toast.makeText(TabMainActivity.this, \"分享失败!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onAdLoaded(BannerAd ad) {\n Log.d(TAG, \"Banner successfully loaded\");\n\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n error.printStackTrace();\n Toast.makeText(Commissioner.this, getString(R.string.servernotconnect) + \"->\" + error.getMessage().toString(), Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Toast.makeText(EditProfile.this, error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.e(\"wsrong\", error.toString());\n }\n catch (Exception ex)\n {\n Toast.makeText(context,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "public void unsuccessfulReservation()\n {\n showToastMessage(getResources().getString(R.string.unsuccessfulReservation));\n }" ]
[ "0.72844845", "0.72783077", "0.7251998", "0.71943986", "0.71623164", "0.71623164", "0.7081587", "0.69097733", "0.68992496", "0.6856998", "0.6856998", "0.68321913", "0.6770765", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6751834", "0.6737762", "0.6695295", "0.6682883", "0.6672595", "0.66569626", "0.6521818", "0.6500976", "0.6500146", "0.64317113", "0.6424479", "0.6424479", "0.63928896", "0.6362875", "0.63299257", "0.62417644", "0.62375784", "0.6227607", "0.62221164", "0.6213333", "0.6196985", "0.6186919", "0.6170358", "0.6165995", "0.61587584", "0.61342156", "0.61307234", "0.6124295", "0.61075264", "0.61075264", "0.61075264", "0.61075264", "0.6098018", "0.60938734", "0.60889465", "0.6075095", "0.60603344", "0.60586286", "0.60467833", "0.60467833", "0.6038671", "0.603636", "0.60351235", "0.6030466", "0.6017799", "0.60026217", "0.5994947", "0.5993736", "0.59887534", "0.59834224", "0.5975732", "0.5954419", "0.59439427", "0.5935756", "0.5927691", "0.592562", "0.59244275", "0.59239775", "0.5896649", "0.58956194", "0.5894094", "0.58885556", "0.5884774", "0.5875792", "0.5869515", "0.58661383", "0.5853249", "0.58468527", "0.58343816", "0.5820562", "0.5820562", "0.5820562", "0.5820562", "0.5820562", "0.5815275", "0.5815275", "0.58130515" ]
0.8240099
0
Creates new form Ventana_Principal
public Ventana_Empl() { initComponents(); insertImage(); Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/Img/icono.png")); setIconImage(icon); this.setLocationRelativeTo(null); this.setTitle("Gestión de Farmacias - Empleados"); this.setResizable(false); cerrar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VentanaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public VPrincipal() {\n initComponents();\n }", "public VentaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public vistaPrincipal() {\n initComponents();\n }", "public JanelaPrincipal() {\n initComponents();\n }", "public formPrincipal() {\n initComponents();\n }", "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "public VentanaPrincipal() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(this);\n\t\ttry {\n\t\t\tcontroladorCliente = new ControladorVentanaCliente();\n\t\t\tcargarFranquicia();\n\t\t\tcargarTipoTransacion();\n\t\t\ttipoCompra();\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public TelaPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public frmPrincipal() {\n initComponents();\n }", "public PantallaPrincipal() {\n initComponents();\n }", "public JfrmPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\r\n initComponents();\r\n con.conecta();\r\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "public TelaPrincipal() {\n initComponents();\n Consultorio.Instance().efetuaBalanco(false);\n setSize(1029,764);\n }", "public JFramePrincipal() {\n initComponents();\n controladorPrincipal = new ControladorPrincipal(this);\n }", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "private void menuPrincipal() {\r\n\t\ttelaPrincipal = new TelaPrincipal();\r\n\t\ttelaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttelaPrincipal.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t}", "public VentanaProveedor(VentanaPrincipal v) {\n initComponents();\n v = ventanaPrincipal;\n cp = new ControladorProveedor();\n }", "public TelaPrincipalADM() {\n initComponents();\n }", "public VentanaPrincipal() {\r\n\t\t\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 643, 414);\r\n\t\t\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\t\r\n\t\tmnPersona = new JMenu(\"Persona\");\r\n\t\tmenuBar.add(mnPersona);\r\n\t\t\r\n\t\tmntmAgregar = new JMenuItem(\"Agregar\");\r\n\t\tmnPersona.add(mntmAgregar);\r\n\t\t\r\n\t\tmntmModificar = new JMenuItem(\"Modificar\");\r\n\t\tmnPersona.add(mntmModificar);\r\n\t\t\r\n\t\tmntmListar=new JMenuItem(\"Listar\");\r\n\t\tmnPersona.add(mntmListar);\r\n\t\t\r\n\t\tmntmEliminar = new JMenuItem(\"Eliminar\");\r\n\t\tmnPersona.add(mntmEliminar);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\t\r\n\r\n\t}", "@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public Principal()\n {\n\n }", "@PostMapping(\"/account/create\")\n @PreAuthorize(\"hasRole('USER') or hasRole('ADMIN')\")\n\tpublic ResponseEntity createAccount(\n\t \t @AuthenticationPrincipal UserDetailsImpl userDetail\n\t ){\n\t\t\tAccount account = new Account(userDetail.getId());\n\t\t\t// save the account to the database\n\t\t\tAccount createdAccount = accountRepository.save(account);\n\t \t // response\n\t return ResponseEntity.ok(\n\t \t\tcreatedAccount\n\t );\n\t }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n ab = new adminbarra(pg_Ordenes);\n }", "public JFrmPrincipal() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "public FRM_MenuPrincipal() {\n initComponents();\n archivos = new ArchivoUsuarios(); \n controlador = new CNTRL_MenuPrincipal(this, archivos);\n agregarControlador(controlador);\n setResizable(false);\n ordenarVentanas();\n }", "public frm_tutor_subida_prueba() {\n }", "@RequestMapping(method = RequestMethod.POST, path = \"/create\")\n @Secured({\"ROLE_DOCTOR\"})\n @ResponseStatus(HttpStatus.OK)\n public Result createResult(\n @RequestBody Result result,\n Principal principal\n ) {\n log.info(\"Creating result for user [{}] with user [{}]\", result.getUser().getEmail(), principal.getName());\n return resultService.create(result, principal);\n }", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public Principal() {\n initComponents();\n Desabilitar();\n ChoicePro.add(\"\");\n ChoicePro.add(\"Guerrero\");\n ChoicePro.add(\"Mago\");\n ChoicePro.add(\"Arquero\");\n Llenar();\n\n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "Account create();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public FrameCadastroUsuario(Principal principal) {\n initComponents();\n\t\tthis.principal = principal;\n }", "public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tcontentPanel.add(getBtnCrear());\r\n\t\tcontentPanel.add(getBtnCancelar());\r\n\t\tcontentPanel.add(getLblNombre());\r\n\t\tcontentPanel.add(getTfNombre());\r\n\t\tcontentPanel.add(getLblSexo());\r\n\t\tcontentPanel.add(getComboSexo());\r\n\t\tcontentPanel.add(getLblEdadDesde());\r\n\t\tcontentPanel.add(getTfedadMinima());\r\n\t\tcontentPanel.add(getLblHasta());\r\n\t\tcontentPanel.add(getTfEdadMaxima());\r\n\r\n\t\t// Cargamos los datos en las tf\r\n\t\tcargarDatosCategoria(c);\r\n\t}", "public FormPrincipal() {\n initComponents();\n setLocationRelativeTo( null );\n \n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public static void presentarMenuPrincipal() {\n\t\tSystem.out.println(\"Ingresa el numero de la opcion deseada y preciona enter\");\n\t\tSystem.out.println(\"1 - Registrar nuevo libro\");\n\t\tSystem.out.println(\"2 - Consultar libros\");\n\t\tSystem.out.println(\"3 - terminar\");\n\t}", "@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }", "@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }", "public TelaPrincipalMDI() {\n initComponents();\n }", "public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }", "public InicioPrincipal() {\n initComponents();\n }", "@ResponseBody\n @PostMapping(\"/createAccount\")\n public ModelAndView postCreateAccount(@RequestParam(\"passwordProfessor2\") String password2, @ModelAttribute(\"Account\") Account newAccount, Model model)\n {\n // List of possible errors to return to user\n List<String> errors = new ArrayList<>();\n ModelAndView modelAndView = new ModelAndView();\n try\n {\n if (! password2.equals(newAccount.getPassword()))\n {\n throw new IllegalStateException(\"Passwörter stimmen nicht überein\");\n }\n Optional<Account> account = accountService.createAccount(newAccount);\n account.ifPresent(accountService::saveAccount);\n \n modelAndView.setViewName(getLogin(model.addAttribute(\"registeredEmail\", newAccount.getEmail())));\n return modelAndView;\n } catch (IllegalStateException e)\n {\n errors.add(e.getMessage());\n errors.add(\"Anmeldung Fehlgeschlagen\");\n \n modelAndView.setViewName(getRegistration(model.addAttribute(\"errorList\", errors)));\n return modelAndView;\n }\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public Team create(TeamDTO teamForm);", "@RequestMapping(method=RequestMethod.POST)\n\tpublic User create(@AuthenticationPrincipal @RequestBody UserEntry entry) {\n\t\tUser user = new User(entry);\n\t\tuser.setUserId(counter.getNextUserIdSequence());\n\t\tuser.setRoleId(role.findByIsDefault(true).getRoleId());\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encode(user.getPassword());\n\t\tuser.setPassword(hashedPassword);\n\t\treturn repo.save(user);\n\t}", "public void setStagePrincipal(Stage ventana) {\n\t\tthis.ventana = ventana;\r\n\t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }", "public IAuthorizationPrincipal newPrincipal(String key, Class type);", "FORM createFORM();", "void create(Authority authority) throws ExTrackDAOException;", "public frmPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n btnReiniciar.setEnabled(false);\n txtSuma.setEditable(false);\n txtSupletorio.setEnabled(false);\n btnObtenerNotaFinal.setEnabled(false);\n txtNotaFinal.setEditable(false);\n }", "@POST\r\n @Path(\"/create\")\r\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public NewAccount createNewCustomerAccount(@FormParam(\"accountNumber\") int accountNumber,\r\n @FormParam(\"accountType\") String accountType,\r\n @FormParam(\"accountBalance\") double accountBalance\r\n ){\r\n return newaccountservice.createNewAccount(accountNumber, accountType, accountBalance);\r\n }", "public Principal() {\r\n\t\tinitialize();\r\n\t}", "public VentanaPrincipal() {\n \n initComponents();\n DefaultComboBoxModel dcm = new DefaultComboBoxModel();\n for (LookAndFeelInfo lfi : UIManager.getInstalledLookAndFeels()){\n dcm.addElement(lfi.getName());\n }\n jComboBoxTema.setModel(dcm); \n\n String tema=UIManager.getLookAndFeel().getName(); //selecciono en el jComboBox el tema que tiene aplicado\n jComboBoxTema.setSelectedItem(tema); \n jLabelAplicado.setText(\"Tema Aplicado: \" + UIManager.getInstalledLookAndFeels()[jComboBoxTema.getSelectedIndex()].getClassName());\n\n }", "public JfPrincipal() {\n super(\"SURGI - Sistema Unificado para Registro e Gerenciamento de Informações - \" + versao.getVersao() + \" - \" + versao.getAno());\n initComponents();\n\n //Altera icone na barra de titulo\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.getImage(\"C:/SURGI/imagens/SURGI32x32.png\");\n this.setIconImage(img);\n\n //maximiza tela\n this.setExtendedState(MAXIMIZED_BOTH);\n\n //centraliza tela\n setSize(getWidth(), getHeight());\n setLocationRelativeTo(null);\n\n jlbVersao.setText(versao.getVersao());\n iniciaJfLogin();\n jfLogin.fechar();\n jfLogin = null;\n \n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "@PostMapping(\"createAccount\")\n public String createAccount(@RequestParam int depositAmount, String accountName){\n CheckingAccount account = new CheckingAccount(depositAmount, accountName);\n accounts.add(account);\n currentAccount = account;\n //model.addAttribute(\"accountNumber\", account.getAccountNumber());\n return \"AccountOptions\";\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "Authorizor createAuthorizor();", "public TelaPrincipalLocutor() {\n initComponents();\n\n }", "public PrincipalSinUsuario(Principal principal) {\n initComponents();\n this.principal = principal;\n }", "public jframePrincipal() \n {\n initComponents();\n }", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}", "public void switchToCreateAccount() {\r\n\t\tlayout.show(this, \"createPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public void mmCreateClick(ActionEvent event) throws Exception{\r\n displayCreateProfile();\r\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public MenuPrincipal() {\n initComponents();\n \n }", "public GUI_Principal() {\n initComponents();\n \n ce = new Calculo_Ecuacion();\n inicializaValores();\n }", "@RequestMapping(value = \"/paas/appaas/create\", method = RequestMethod.GET)\n\tpublic String create(@CurrentUser PrismaUserDetails user, Model model) {\n\t\treturn \"pages/paas/appaas/create-appaas\";\n\t}", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}" ]
[ "0.7085704", "0.7048926", "0.6861197", "0.6589609", "0.65795505", "0.65513307", "0.652237", "0.6437088", "0.64128137", "0.6365052", "0.62962866", "0.62786895", "0.6243299", "0.6243299", "0.6207836", "0.6191502", "0.6190024", "0.61367726", "0.6054671", "0.60421", "0.6011453", "0.6010781", "0.59491456", "0.59478474", "0.5946484", "0.5941059", "0.58760875", "0.58670044", "0.5863266", "0.58570635", "0.58494633", "0.58411694", "0.5815272", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5812305", "0.5809542", "0.57659733", "0.574835", "0.5739682", "0.57363665", "0.5734002", "0.57159203", "0.57151556", "0.57148606", "0.5713583", "0.570265", "0.56826884", "0.567287", "0.5652746", "0.56204724", "0.55954355", "0.5591202", "0.55821353", "0.558024", "0.5578394", "0.55646676", "0.5537605", "0.55362254", "0.5507638", "0.5501422", "0.54962", "0.5487716", "0.54826784", "0.54762036", "0.54749143", "0.54667556", "0.5465899", "0.54575306", "0.54550195", "0.5454828", "0.54275835", "0.5426364", "0.54262304", "0.5419833", "0.54110175", "0.5404773", "0.53988284", "0.53973305", "0.5396226", "0.53886783", "0.538493", "0.5383036", "0.5379238", "0.5376545", "0.537574", "0.53702193", "0.5369344", "0.5367885", "0.5367329", "0.5359888", "0.5347046", "0.5334588", "0.5322585", "0.5317094" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jMenu3 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); jMenuItem7 = new javax.swing.JMenuItem(); jToggleButton1 = new javax.swing.JToggleButton(); jPanel1 = new javax.swing.JPanel(); panelMain = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); btnMedicamentos = new javax.swing.JButton(); btnFarmacia = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jMenu3.setText("jMenu3"); jMenu4.setText("jMenu4"); jMenuItem7.setText("jMenuItem7"); jToggleButton1.setText("jToggleButton1"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); panelMain.setPreferredSize(new java.awt.Dimension(440, 400)); jLabel1.setFont(new java.awt.Font("Calibri Light", 0, 24)); // NOI18N jLabel1.setText("Gestión de Farmacias"); btnMedicamentos.setBackground(new java.awt.Color(255, 255, 255)); btnMedicamentos.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N btnMedicamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Img/medicamentos.png"))); // NOI18N btnMedicamentos.setText("Medicamentos"); btnMedicamentos.setPreferredSize(new java.awt.Dimension(137, 49)); btnMedicamentos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMedicamentosActionPerformed(evt); } }); btnFarmacia.setBackground(new java.awt.Color(255, 255, 255)); btnFarmacia.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N btnFarmacia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Img/farmacia.png"))); // NOI18N btnFarmacia.setText("Farmacia"); btnFarmacia.setPreferredSize(new java.awt.Dimension(137, 49)); btnFarmacia.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFarmaciaActionPerformed(evt); } }); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Img/estetoscopio.png"))); // NOI18N jLabel2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jLabel2MouseClicked(evt); } }); javax.swing.GroupLayout panelMainLayout = new javax.swing.GroupLayout(panelMain); panelMain.setLayout(panelMainLayout); panelMainLayout.setHorizontalGroup( panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelMainLayout.createSequentialGroup() .addGap(175, 175, 175) .addComponent(jLabel1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(panelMainLayout.createSequentialGroup() .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1) .addGroup(panelMainLayout.createSequentialGroup() .addGap(84, 84, 84) .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnMedicamentos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnFarmacia, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); panelMainLayout.setVerticalGroup( panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelMainLayout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(panelMainLayout.createSequentialGroup() .addGap(53, 53, 53) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(panelMainLayout.createSequentialGroup() .addGap(87, 87, 87) .addComponent(btnFarmacia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnMedicamentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30))) .addContainerGap(112, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(panelMain, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE) .addGap(0, 0, 0)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelMain, javax.swing.GroupLayout.DEFAULT_SIZE, 491, Short.MAX_VALUE) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.69458616", "0.69446844", "0.6937443", "0.69325924", "0.69280547", "0.69266534", "0.69264925", "0.6912501", "0.6911917", "0.6894212", "0.6893167", "0.68922186", "0.6892184", "0.6890009", "0.688444", "0.6883334", "0.68823224", "0.6879555", "0.68768615", "0.6875667", "0.68722147", "0.6860655", "0.68569547", "0.6856804", "0.6856167", "0.6855431", "0.6854634", "0.68536645", "0.68536645", "0.684493", "0.6837617", "0.68372554", "0.68303156", "0.6828861", "0.6827668", "0.68246883", "0.68245596", "0.6818436", "0.6818284", "0.6812057", "0.681017", "0.68095857", "0.68093693", "0.6809163", "0.68027467", "0.67963576", "0.6794979", "0.6793972", "0.6792247", "0.67903155", "0.67896885", "0.67893314", "0.6783135", "0.6767654", "0.67672074", "0.67655265", "0.6757984", "0.6757062", "0.6754005", "0.67513984", "0.674334", "0.6740801", "0.6737678", "0.6737453", "0.6734575", "0.67281", "0.6727845", "0.67219335", "0.67169774", "0.67163646", "0.6715783", "0.67106164", "0.6708574", "0.6705358", "0.67030907", "0.6701408", "0.6700769", "0.66998196", "0.6695165", "0.66917574", "0.6691252" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_first_screen, container, false); signInButton = view.findViewById(R.id.sign_up_button); signInButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { getActivity().getSupportFragmentManager().beginTransaction(). replace(R.id.main_layout, new SignUpScreenFragment()).addToBackStack(null).commit(); } }); 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_qiugouxiaoxi, container, false);\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 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 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 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 = 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 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_star_wars_list, 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 container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, 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, 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, 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,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\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\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_hotel, container, false);\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 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, 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, 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,\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,\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 return inflater.inflate(R.layout.fragment_downloadables, 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(@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 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 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_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 container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\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 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 }", "@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 }", "@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 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.6740785", "0.6725086", "0.6722221", "0.66993004", "0.66919166", "0.6689273", "0.6687578", "0.6685118", "0.66772324", "0.66754", "0.66668403", "0.6666252", "0.6665723", "0.66613716", "0.6654354", "0.6651048", "0.6643431", "0.66391444", "0.6638131", "0.6634899", "0.6625316", "0.66205376", "0.66181904", "0.66089374", "0.6597826", "0.65932095", "0.6586007", "0.6585328", "0.6574693", "0.6572763", "0.65700436", "0.65698993", "0.6569793", "0.65681505", "0.6565488", "0.6554118", "0.6553708", "0.65449727", "0.6544898", "0.65417415", "0.65386266", "0.65375817", "0.65369165", "0.65354055", "0.6533704", "0.6533607", "0.65312874", "0.6529298", "0.652816", "0.65259904", "0.6525467", "0.6525304", "0.65243685", "0.65241206", "0.6518711", "0.65140015", "0.6513598", "0.65132636", "0.65130734", "0.65115976", "0.6510978", "0.6510839", "0.6510069", "0.65095323", "0.6508685", "0.6503938", "0.6502202", "0.65021586", "0.65021336", "0.6498748", "0.6494393", "0.6492889", "0.6491053", "0.64884686", "0.6487787", "0.6487678", "0.64876366", "0.64873576", "0.64873457", "0.64852375", "0.6484978", "0.6483313", "0.64824414", "0.64821523", "0.6481227", "0.64809513", "0.6478158", "0.6476682", "0.6476581", "0.64752257", "0.64747113", "0.6471779", "0.6471697", "0.647106", "0.6470168", "0.6467907", "0.6467049", "0.6462844", "0.64627945", "0.6462318", "0.6462241" ]
0.0
-1
BA.debugLineNum = 12;BA.debugLine="Sub Globals"; BA.debugLineNum = 16;BA.debugLine="Private BDMainAs BetterDialogs";
public static String _globals() throws Exception{ mostCurrent._bdmain = new flm.b4a.betterdialogs.BetterDialogs(); //BA.debugLineNum = 17;BA.debugLine="Private svUtama As ScrollView"; mostCurrent._svutama = new anywheresoftware.b4a.objects.ScrollViewWrapper(); //BA.debugLineNum = 18;BA.debugLine="Private iTampil As Int=0"; _itampil = (int) (0); //BA.debugLineNum = 19;BA.debugLine="Private pSemua As Panel"; mostCurrent._psemua = new anywheresoftware.b4a.objects.PanelWrapper(); //BA.debugLineNum = 20;BA.debugLine="Private ivMenu As ImageView"; mostCurrent._ivmenu = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 21;BA.debugLine="Private ivSearch As ImageView"; mostCurrent._ivsearch = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 22;BA.debugLine="Private ivClose As ImageView"; mostCurrent._ivclose = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 23;BA.debugLine="Private ivSetting As ImageView"; mostCurrent._ivsetting = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 24;BA.debugLine="Private lblBrowse As Label"; mostCurrent._lblbrowse = new anywheresoftware.b4a.objects.LabelWrapper(); //BA.debugLineNum = 25;BA.debugLine="Private lvBrowse As ListView"; mostCurrent._lvbrowse = new anywheresoftware.b4a.objects.ListViewWrapper(); //BA.debugLineNum = 26;BA.debugLine="Private svList As ScrollView"; mostCurrent._svlist = new anywheresoftware.b4a.objects.ScrollViewWrapper(); //BA.debugLineNum = 27;BA.debugLine="Private lvVideo As ListView"; mostCurrent._lvvideo = new anywheresoftware.b4a.objects.ListViewWrapper(); //BA.debugLineNum = 28;BA.debugLine="Private lvCate As ListView"; mostCurrent._lvcate = new anywheresoftware.b4a.objects.ListViewWrapper(); //BA.debugLineNum = 29;BA.debugLine="Private lvManage As ListView"; mostCurrent._lvmanage = new anywheresoftware.b4a.objects.ListViewWrapper(); //BA.debugLineNum = 30;BA.debugLine="Private MB As MediaBrowser"; mostCurrent._mb = new flm.media.browser.MediaBrowser(); //BA.debugLineNum = 31;BA.debugLine="Private picMusic As Bitmap"; mostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); //BA.debugLineNum = 32;BA.debugLine="Private mapCover As Map"; mostCurrent._mapcover = new anywheresoftware.b4a.objects.collections.Map(); //BA.debugLineNum = 33;BA.debugLine="Private container As AHPageContainer"; mostCurrent._container = new de.amberhome.viewpager.AHPageContainer(); //BA.debugLineNum = 34;BA.debugLine="Private pager As AHViewPager"; mostCurrent._pager = new de.amberhome.viewpager.AHViewPager(); //BA.debugLineNum = 35;BA.debugLine="Private pCoverFlow As Panel"; mostCurrent._pcoverflow = new anywheresoftware.b4a.objects.PanelWrapper(); //BA.debugLineNum = 36;BA.debugLine="Private tCover As Timer"; mostCurrent._tcover = new anywheresoftware.b4a.objects.Timer(); //BA.debugLineNum = 37;BA.debugLine="Private picMusic As Bitmap"; mostCurrent._picmusic = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); //BA.debugLineNum = 38;BA.debugLine="Private picVideo As Bitmap"; mostCurrent._picvideo = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); //BA.debugLineNum = 39;BA.debugLine="Private picLain As Bitmap"; mostCurrent._piclain = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); //BA.debugLineNum = 40;BA.debugLine="Private lstFilter As List"; mostCurrent._lstfilter = new anywheresoftware.b4a.objects.collections.List(); //BA.debugLineNum = 41;BA.debugLine="Private CurrPage As Int = 0"; _currpage = (int) (0); //BA.debugLineNum = 42;BA.debugLine="Private arah As Int = 0"; _arah = (int) (0); //BA.debugLineNum = 44;BA.debugLine="Private lblMost As Label"; mostCurrent._lblmost = new anywheresoftware.b4a.objects.LabelWrapper(); //BA.debugLineNum = 45;BA.debugLine="Private ivGaris As ImageView"; mostCurrent._ivgaris = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 46;BA.debugLine="Private ivGambar1 As ImageView"; mostCurrent._ivgambar1 = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 47;BA.debugLine="Private ivGambar4 As ImageView"; mostCurrent._ivgambar4 = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 48;BA.debugLine="Private ivMore As ImageView"; mostCurrent._ivmore = new anywheresoftware.b4a.objects.ImageViewWrapper(); //BA.debugLineNum = 49;BA.debugLine="Private iTampil1 As Int=0"; _itampil1 = (int) (0); //BA.debugLineNum = 50;BA.debugLine="Private iTampil2 As Int=0"; _itampil2 = (int) (0); //BA.debugLineNum = 51;BA.debugLine="Private pTop As Panel"; mostCurrent._ptop = new anywheresoftware.b4a.objects.PanelWrapper(); //BA.debugLineNum = 52;BA.debugLine="Private etSearch As EditText"; mostCurrent._etsearch = new anywheresoftware.b4a.objects.EditTextWrapper(); //BA.debugLineNum = 53;BA.debugLine="Private lblJudul1 As Label"; mostCurrent._lbljudul1 = new anywheresoftware.b4a.objects.LabelWrapper(); //BA.debugLineNum = 54;BA.debugLine="Private lblLogin As Label"; mostCurrent._lbllogin = new anywheresoftware.b4a.objects.LabelWrapper(); //BA.debugLineNum = 56;BA.debugLine="Dim coverflow As PhotoFlow"; mostCurrent._coverflow = new it.giuseppe.salvi.PhotoFlowActivity(); //BA.debugLineNum = 57;BA.debugLine="Private bLogin As Button"; mostCurrent._blogin = new anywheresoftware.b4a.objects.ButtonWrapper(); //BA.debugLineNum = 58;BA.debugLine="Private bMore As Button"; mostCurrent._bmore = new anywheresoftware.b4a.objects.ButtonWrapper(); //BA.debugLineNum = 59;BA.debugLine="Dim pos_cflow As Int"; _pos_cflow = 0; //BA.debugLineNum = 60;BA.debugLine="Dim panel1 As Panel"; mostCurrent._panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); //BA.debugLineNum = 61;BA.debugLine="Dim timer_cflow As Timer"; mostCurrent._timer_cflow = new anywheresoftware.b4a.objects.Timer(); //BA.debugLineNum = 62;BA.debugLine="Dim a, b As Int"; _a = 0; _b = 0; //BA.debugLineNum = 63;BA.debugLine="End Sub"; return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_msgmodule = new Object();\n //BA.debugLineNum = 10;BA.debugLine=\"Private BackPanel As Panel\";\n_backpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 11;BA.debugLine=\"Private MsgOrientation As String\";\n_msgorientation = \"\";\n //BA.debugLineNum = 12;BA.debugLine=\"Private MsgNumberOfButtons As Int\";\n_msgnumberofbuttons = 0;\n //BA.debugLineNum = 14;BA.debugLine=\"Private mbIcon As ImageView\";\n_mbicon = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Dim Panel As Panel\";\n_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private Shadow As Panel\";\n_shadow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Dim Title As Label\";\n_title = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private MsgScrollView As ScrollView\";\n_msgscrollview = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Dim Message As Label\";\n_message = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Dim YesButtonPanel As Panel\";\n_yesbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Dim NoButtonPanel As Panel\";\n_nobuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Dim CancelButtonPanel As Panel\";\n_cancelbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Dim YesButtonCaption As Label\";\n_yesbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Dim NoButtonCaption As Label\";\n_nobuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Dim CancelButtonCaption As Label\";\n_cancelbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private MsgBoxEvent As String\";\n_msgboxevent = \"\";\n //BA.debugLineNum = 29;BA.debugLine=\"Dim ButtonSelected As String\";\n_buttonselected = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _registerbutt_click() throws Exception{\n_inputregis();\n //BA.debugLineNum = 104;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _globals() throws Exception{\nmostCurrent._butcolor = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private butPatas As Button\";\nmostCurrent._butpatas = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private imgMosquito As ImageView\";\nmostCurrent._imgmosquito = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private lblTituloMosquito As Label\";\nmostCurrent._lbltitulomosquito = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private lblSubTituloMosquito As Label\";\nmostCurrent._lblsubtitulomosquito = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private scrollExtraMosquito As HorizontalScrollVi\";\nmostCurrent._scrollextramosquito = new anywheresoftware.b4a.objects.HorizontalScrollViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private panelPopUps_1 As Panel\";\nmostCurrent._panelpopups_1 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private lblFondo As Label\";\nmostCurrent._lblfondo = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Private lblPopUp_titulo As Label\";\nmostCurrent._lblpopup_titulo = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Private lblPopUp_Descripcion As Label\";\nmostCurrent._lblpopup_descripcion = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 27;BA.debugLine=\"Private btnCerrarPopUp As Button\";\nmostCurrent._btncerrarpopup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private imgPopUp As ImageView\";\nmostCurrent._imgpopup = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 32;BA.debugLine=\"Private lblPaso4 As Label\";\nmostCurrent._lblpaso4 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 33;BA.debugLine=\"Private butPaso4 As Button\";\nmostCurrent._butpaso4 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 34;BA.debugLine=\"Private lblLabelPaso1 As Label\";\nmostCurrent._lbllabelpaso1 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 35;BA.debugLine=\"Private lblPaso3a As Label\";\nmostCurrent._lblpaso3a = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 36;BA.debugLine=\"Private imgPupas As ImageView\";\nmostCurrent._imgpupas = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 37;BA.debugLine=\"Private lblPaso3 As Label\";\nmostCurrent._lblpaso3 = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 38;BA.debugLine=\"Private lblPaso2a As Label\";\nmostCurrent._lblpaso2a = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 39;BA.debugLine=\"Private imgLarvas As ImageView\";\nmostCurrent._imglarvas = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 40;BA.debugLine=\"Private butPaso2 As Button\";\nmostCurrent._butpaso2 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 41;BA.debugLine=\"Private butPaso3 As Button\";\nmostCurrent._butpaso3 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 42;BA.debugLine=\"Private imgMosquito1 As ImageView\";\nmostCurrent._imgmosquito1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 43;BA.debugLine=\"Private imgHuevos As ImageView\";\nmostCurrent._imghuevos = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 44;BA.debugLine=\"Private lblPaso2b As Label\";\nmostCurrent._lblpaso2b = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 45;BA.debugLine=\"Private butPaso1 As Button\";\nmostCurrent._butpaso1 = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 46;BA.debugLine=\"Private panelPopUps_2 As Panel\";\nmostCurrent._panelpopups_2 = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 47;BA.debugLine=\"Private lblEstadio As Label\";\nmostCurrent._lblestadio = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 52;BA.debugLine=\"Private but_Cerrar As Button\";\nmostCurrent._but_cerrar = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 53;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _showloading(String _msg) throws Exception{\nanywheresoftware.b4a.keywords.Common.ProgressDialogShow2(mostCurrent.activityBA,BA.ObjectToCharSequence(_msg),anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _login_click() throws Exception{\n_login();\n //BA.debugLineNum = 155;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _globals() throws Exception{\nmostCurrent._nameet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Private passET As EditText\";\nmostCurrent._passet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private phoneET As EditText\";\nmostCurrent._phoneet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Private alamatET As EditText\";\nmostCurrent._alamatet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private hobiET As EditText\";\nmostCurrent._hobiet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private takeSelfie As Button\";\nmostCurrent._takeselfie = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private ImageView1 As ImageView\";\nmostCurrent._imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private registerButt As Button\";\nmostCurrent._registerbutt = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Private emailET As EditText\";\nmostCurrent._emailet = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static void normalDebug(){\n enableVerbos = false;\n }", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "public void testDebugNoModifications() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebp.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n setLineBreakpoint(eo, \"if (action === \\\"build\\\") {\");\n setLineBreakpoint(eo, \"var d = new Date();\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n VariablesOperator vo = new VariablesOperator(\"Variables\");\n\n assertEquals(\"Unexpected file opened at breakpoint\", \"debug.html\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 14, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"1\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebp.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 4, currentFile.getLineNumber());\n assertEquals(\"Step variable is unexpected\", \"2\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(500);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"3\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 15, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"4\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 17, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepIntoAction().performMenu();\n new StepIntoAction().performMenu();\n evt.waitNoEvent(1000);\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n if(GeneralHTMLProject.inEmbeddedBrowser){ // embedded browser stops on line with function(){\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n }else{\n assertEquals(\"Step variable is unexpected\", \"6\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value); \n }\n\n endTest();\n }", "public String _class_globals() throws Exception{\n_ws = new anywheresoftware.b4j.object.WebSocket();\r\n //BA.debugLineNum = 5;BA.debugLine=\"Public page As ABMPage\";\r\n_page = new com.ab.abmaterial.ABMPage();\r\n //BA.debugLineNum = 7;BA.debugLine=\"Private theme As ABMTheme\";\r\n_theme = new com.ab.abmaterial.ABMTheme();\r\n //BA.debugLineNum = 9;BA.debugLine=\"Private ABM As ABMaterial 'ignore\";\r\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 11;BA.debugLine=\"Public Name As String = \\\"CompComboPage\\\"\";\r\n_name = \"CompComboPage\";\r\n //BA.debugLineNum = 13;BA.debugLine=\"Private ABMPageId As String = \\\"\\\"\";\r\n_abmpageid = \"\";\r\n //BA.debugLineNum = 16;BA.debugLine=\"Dim myToastId As Int\";\r\n_mytoastid = 0;\r\n //BA.debugLineNum = 17;BA.debugLine=\"Dim combocounter As Int = 4\";\r\n_combocounter = (int) (4);\r\n //BA.debugLineNum = 18;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "public String _class_globals() throws Exception{\n_meventname = \"\";\n //BA.debugLineNum = 7;BA.debugLine=\"Private mCallBack As Object 'ignore\";\n_mcallback = new Object();\n //BA.debugLineNum = 8;BA.debugLine=\"Public mBase As B4XView 'ignore\";\n_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Private xui As XUI 'ignore\";\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Private cvs As B4XCanvas\";\n_cvs = new anywheresoftware.b4a.objects.B4XCanvas();\n //BA.debugLineNum = 11;BA.debugLine=\"Private mValue As Int = 75\";\n_mvalue = (int) (75);\n //BA.debugLineNum = 12;BA.debugLine=\"Private mMin, mMax As Int\";\n_mmin = 0;\n_mmax = 0;\n //BA.debugLineNum = 13;BA.debugLine=\"Private thumb As B4XBitmap\";\n_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();\n //BA.debugLineNum = 14;BA.debugLine=\"Private pnl As B4XView\";\n_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Private xlbl As B4XView\";\n_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private CircleRect As B4XRect\";\n_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();\n //BA.debugLineNum = 17;BA.debugLine=\"Private ValueColor As Int\";\n_valuecolor = 0;\n //BA.debugLineNum = 18;BA.debugLine=\"Private stroke As Int\";\n_stroke = 0;\n //BA.debugLineNum = 19;BA.debugLine=\"Private ThumbSize As Int\";\n_thumbsize = 0;\n //BA.debugLineNum = 20;BA.debugLine=\"Public Tag As Object\";\n_tag = new Object();\n //BA.debugLineNum = 21;BA.debugLine=\"Private mThumbBorderColor As Int = 0xFF5B5B5B\";\n_mthumbbordercolor = (int) (0xff5b5b5b);\n //BA.debugLineNum = 22;BA.debugLine=\"Private mThumbInnerColor As Int = xui.Color_White\";\n_mthumbinnercolor = _xui.Color_White;\n //BA.debugLineNum = 23;BA.debugLine=\"Private mCircleFillColor As Int = xui.Color_White\";\n_mcirclefillcolor = _xui.Color_White;\n //BA.debugLineNum = 24;BA.debugLine=\"Private mCircleNonValueColor As Int = 0xFFB6B6B6\";\n_mcirclenonvaluecolor = (int) (0xffb6b6b6);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_wholescreen = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Dim infoholder As Panel\";\n_infoholder = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Dim screenimg As ImageView\";\n_screenimg = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 5;BA.debugLine=\"Dim usernamefield As EditText\";\n_usernamefield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Dim passwordfield As EditText\";\n_passwordfield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 7;BA.debugLine=\"Dim loginbtn As Button\";\n_loginbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 8;BA.debugLine=\"Dim singup As Button\";\n_singup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Dim myxml As SaxParser\";\n_myxml = new anywheresoftware.b4a.objects.SaxParser();\n //BA.debugLineNum = 12;BA.debugLine=\"Dim usermainscreen As UserInterfaceMainScreen\";\n_usermainscreen = new b4a.HotelAppTP.userinterfacemainscreen();\n //BA.debugLineNum = 14;BA.debugLine=\"Dim LoginJob As HttpJob\";\n_loginjob = new anywheresoftware.b4a.samples.httputils2.httpjob();\n //BA.debugLineNum = 16;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void debug() {\n\n }", "public void testDebugModifications() throws Exception {\n startTest();\n\n openFile(\"debugMod.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debugMod.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n openFile(\"linebpMod.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebpMod.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\");\n// if (LineDebuggerTest.inEmbeddedBrowser) { // workaround for 226022\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n currentFile.deleteLine(4);\n currentFile.deleteLine(4);\n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 5, currentFile.getLineNumber());\n\n\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\"); \n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 8, currentFile.getLineNumber());\n currentFile.close();\n\n endTest();\n }", "public void testDebugging() throws Throwable {\n // Status bar tracer\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n JavaNode sampleClass1Node = new JavaNode(sourcePackagesNode, SAMPLE1_PACKAGE_NAME + \"|\" + SAMPLE1_FILE_NAME);\n // flag to stop debugger in finally\n boolean debuggerStarted = false;\n try {\n // find sample file in Editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n final int insertLine = eo.getLineNumber() + 2;\n\n // if file not contains brpText from previous test cases, insert it\n String brpText = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine, 1);\n }\n eo.select(brpText);\n\n ToggleBreakpointAction toggleBreakpointAction = new ToggleBreakpointAction();\n try {\n // toggle breakpoint via Shift+F8\n toggleBreakpointAction.performShortcut(eo);\n waitBreakpoint(eo, insertLine);\n } catch (TimeoutExpiredException e) {\n // need to be realiable test => repeat action once more to be sure it is problem in IDE\n // this time use events instead of Robot\n MainWindowOperator.getDefault().pushKey(\n toggleBreakpointAction.getKeyStrokes()[0].getKeyCode(),\n toggleBreakpointAction.getKeyStrokes()[0].getModifiers());\n waitBreakpoint(eo, insertLine);\n }\n\n // if file not contains second brpText from previous test cases, insert it\n brpText = \"System.out.println(\\\"Good bye\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine + 1, 1);\n }\n eo.select(brpText);\n // toggle breakpoint via pop-up menu\n // clickForPopup(0, 0) used in the past sometimes caused that menu\n // was opened outside editor area because editor roll up after \n // text was selected\n toggleBreakpointAction.perform(eo.txtEditorPane());\n // wait second breakpoint established\n waitBreakpoint(eo, insertLine + 1);\n // start to track Main Window status bar\n stt.start();\n debuggerStarted = true;\n // start debugging\n new DebugJavaFileAction().performMenu(sampleClass1Node);\n // check the first breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000);\n String labelLine = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine);\n // continue debugging\n new ContinueAction().perform();\n // check the second breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n String labelLine1 = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine1);\n // check \"Hello\" was printed out in Output\n OutputTabOperator oto = new OutputTabOperator(\"debug-single\"); // NOI18N\n // wait until text Hello is not written in to the Output\n oto.waitText(\"Hello\"); // NOI18N\n } catch (Throwable th) {\n try {\n // capture screen before cleanup in finally clause is completed\n PNGEncoder.captureScreen(getWorkDir().getAbsolutePath() + File.separator + \"screenBeforeCleanup.png\");\n } catch (Exception e1) {\n // ignore it\n }\n th.printStackTrace(getLog());\n throw th;\n } finally {\n if (debuggerStarted) {\n // finish debugging\n new FinishDebuggerAction().perform();\n // check status line\n // \"SampleProject (debug-single)\"\n String outputTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"debug-single\"}); // NOI18N\n // \"Finished building SampleProject (debug-single)\"\n String finishedMessage = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new Object[]{outputTarget});\n stt.waitText(finishedMessage);\n }\n stt.stop();\n // delete sample class\n sampleClass1Node.delete();\n String confirmTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_SafeDel_Delete\"); // NOI18N\n String confirmButton = UIManager.getDefaults().get(\"OptionPane.okButtonText\").toString(); // NOI18N\n // \"Confirm Object Deletion\"\n new JButtonOperator(new NbDialogOperator(confirmTitle), confirmButton).push();\n }\n }", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "public static String _btncerrarpopup_click() throws Exception{\nmostCurrent._panelpopups_1.RemoveView();\n //BA.debugLineNum = 117;BA.debugLine=\"butPatas.Visible = True\";\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 118;BA.debugLine=\"butColor.Visible = True\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 119;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 120;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _activity_pause(boolean _userclosed) throws Exception{\nif (_userclosed==anywheresoftware.b4a.keywords.Common.False) { \n //BA.debugLineNum = 49;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n };\n //BA.debugLineNum = 51;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_pub_key = \"\";\n //BA.debugLineNum = 8;BA.debugLine=\"Private Event As String\";\n_event = \"\";\n //BA.debugLineNum = 9;BA.debugLine=\"Private Instance As Object\";\n_instance = new Object();\n //BA.debugLineNum = 11;BA.debugLine=\"Private Page As Activity\";\n_page = new anywheresoftware.b4a.objects.ActivityWrapper();\n //BA.debugLineNum = 12;BA.debugLine=\"Private PaymentPage As WebView\";\n_paymentpage = new anywheresoftware.b4a.objects.WebViewWrapper();\n //BA.debugLineNum = 13;BA.debugLine=\"Private JarFile As JarFileLoader\";\n_jarfile = new b4a.paystack.jarfileloader();\n //BA.debugLineNum = 14;BA.debugLine=\"Private PageCurrentTitle As String\";\n_pagecurrenttitle = \"\";\n //BA.debugLineNum = 15;BA.debugLine=\"Private IME As IME\";\n_ime = new anywheresoftware.b4a.objects.IME();\n //BA.debugLineNum = 16;BA.debugLine=\"Private POPUP As Boolean = False\";\n_popup = __c.False;\n //BA.debugLineNum = 17;BA.debugLine=\"Private POPUP_PANEL As Panel\";\n_popup_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Private JS As DefaultJavascriptInterface\";\n_js = new uk.co.martinpearman.b4a.webkit.DefaultJavascriptInterface();\n //BA.debugLineNum = 21;BA.debugLine=\"Private WebClient As DefaultWebViewClient\";\n_webclient = new uk.co.martinpearman.b4a.webkit.DefaultWebViewClient();\n //BA.debugLineNum = 22;BA.debugLine=\"Private PaymentPageExtra As WebViewExtras\";\n_paymentpageextra = new uk.co.martinpearman.b4a.webkit.WebViewExtras();\n //BA.debugLineNum = 23;BA.debugLine=\"Private Chrome As DefaultWebChromeClient\";\n_chrome = new uk.co.martinpearman.b4a.webkit.DefaultWebChromeClient();\n //BA.debugLineNum = 24;BA.debugLine=\"Private CookieManager As CookieManager\";\n_cookiemanager = new uk.co.martinpearman.b4a.httpcookiemanager.B4ACookieManager();\n //BA.debugLineNum = 25;BA.debugLine=\"Private Loaded As Boolean = False\";\n_loaded = __c.False;\n //BA.debugLineNum = 26;BA.debugLine=\"Public ShowMessage As Boolean = True\";\n_showmessage = __c.True;\n //BA.debugLineNum = 29;BA.debugLine=\"Private ReferenceCode As String\";\n_referencecode = \"\";\n //BA.debugLineNum = 30;BA.debugLine=\"Private AccesCode As String\";\n_accescode = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"Private AmountCurrency As String\";\n_amountcurrency = \"\";\n //BA.debugLineNum = 34;BA.debugLine=\"Public CURRENCY_GHS As String = \\\"GHS\\\"\";\n_currency_ghs = \"GHS\";\n //BA.debugLineNum = 35;BA.debugLine=\"Public CURRENCY_NGN As String = \\\"NGN\\\"\";\n_currency_ngn = \"NGN\";\n //BA.debugLineNum = 36;BA.debugLine=\"Public CURRENCY_ZAR As String = \\\"ZAR\\\"\";\n_currency_zar = \"ZAR\";\n //BA.debugLineNum = 37;BA.debugLine=\"Public CURRENCY_USD As String = \\\"USD\\\"\";\n_currency_usd = \"USD\";\n //BA.debugLineNum = 39;BA.debugLine=\"Private HTML As String = $\\\" <!doctype html> <html\";\n_html = (\"\\n\"+\"<!doctype html>\\n\"+\"<html>\\n\"+\"<head>\\n\"+\"\t<title>Paystack</title>\\n\"+\"\t<script>\\n\"+\"\t\tfunction setCookie(cname, cvalue, exdays) {\\n\"+\"\t\t const d = new Date();\\n\"+\"\t\t d.setTime(d.getTime() + (exdays*24*60*60*1000));\\n\"+\"\t\t let expires = \\\"expires=\\\"+ d.toUTCString();\\n\"+\"\t\t document.cookie = cname + \\\"=\\\" + cvalue + \\\";\\\" + expires + \\\";path=/\\\";\\n\"+\"\t\t}\\n\"+\"\t\tsetCookie('SameSite', 'Secure', 1);\\n\"+\"\t</script>\\n\"+\"</head>\\n\"+\"<body>\\n\"+\"\t<script>\\n\"+\"\t\tfunction Pay(key,email,amount,ref,label,currency){\\n\"+\"\t\t\tlet handler = PaystackPop.setup({\\n\"+\"\t\t\t\tkey: key,\\n\"+\"\t\t\t\temail: email,\\n\"+\"\t\t\t\tamount: amount * 100,\\n\"+\"\t\t\t\tref: ref+Math.floor((Math.random() * 1000000000) + 1),\\n\"+\"\t\t\t\tlabel: label,\\n\"+\"\t\t\t\tcurrency: currency,\\n\"+\"\t\t\t\tonClose: function(){\\n\"+\"\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment Cancelled\\\",\\\"cancelled\\\");\\n\"+\"\t\t\t\t},\\n\"+\"\t\t\t\tcallback: function(response){\t\\n\"+\"\t\t\t\t\tif(response.status == 'success'){\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Payment of \\\"+currency+amount+\\\" Successul\\\",\\\"success\\\");\\n\"+\"\t\t\t\t\t}else{\\n\"+\"\t\t\t\t\t\tB4A.CallSub(\\\"Message\\\",true,\\\"Paystack\\\",\\\"Error: \\\"+response.status,\\\"error\\\");\\n\"+\"\t\t\t\t\t}\\n\"+\"\t\t\t\t}\\n\"+\"\t\t\t});\\n\"+\"\t\t\thandler.openIframe();\\n\"+\"\t\t}\\n\"+\"\t</script>\\n\"+\"\t<script type=\\\"text/javascript\\\" src=\\\"https://js.paystack.co/v1/inline.js\\\"></script>\\n\"+\"</script>\\n\"+\"</body>\\n\"+\"</html>\\n\"+\"\t\");\n //BA.debugLineNum = 83;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "LabyDebugger getLabyDebugger();", "static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }", "boolean k2h_set_bumup_debug_signal_user1();", "public static String _btncerrarpopup_huevos_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 410;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 411;BA.debugLine=\"butPaso1.Visible = False\";\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 412;BA.debugLine=\"butPaso2.Visible = True\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 413;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 414;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 415;BA.debugLine=\"lblLabelPaso1.Visible = True\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 416;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 417;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 418;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 419;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 420;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 421;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 422;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 423;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 424;BA.debugLine=\"imgMosquito1.Visible = True\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 425;BA.debugLine=\"imgHuevos.Visible = True\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 426;BA.debugLine=\"lblEstadio.Visible = True\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 428;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public static void ClearDebugInfo() { throw Extensions.todo(); }", "public static String _btncerrarpopup_pupas_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 431;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 432;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 433;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 434;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 435;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 436;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 437;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 438;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 439;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 440;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 441;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 442;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 443;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 444;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 445;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 447;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void setupDebugger(){\n this.debuggerFrame = new JFrame();\n this.debuggerFrame.setSize(550, 275);\n this.debuggerFrame.add(PIDpanel);\n \n this.setInitialPIDValues(this.initPidValues);\n }", "public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "public static String _btncerrarpopup_larvas_click() throws Exception{\nmostCurrent._panelpopups_2.RemoveView();\n //BA.debugLineNum = 390;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 391;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 392;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 393;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 394;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 395;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 396;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 397;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 398;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 399;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 400;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 401;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 402;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 403;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 404;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 405;BA.debugLine=\"lblEstadio.Visible = True\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 407;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void debugProgram(AbsoluteAddress location, BPState curState, FileProcess fileState, FileProcess bkFile) {\n\t\tString fileName = Program.getProgram().getFileName();\n\t\tif (location != null && (location.toString().contains(\"FFFFFFFFF\")\n\t\t// ******************************************\n\t\t// Virus.Win32.HLLO.Momac.a\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLO.Momac.a\") && (location.toString().contains(\"40130c\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Atak.e\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Atak.e\") && (location.toString().contains(\"404cf0\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Virus.Win32.ZMist\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.ZMist\") && (location.toString().contains(\"402d01\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_pespin.exe\n\t\t\t\t|| (fileName.equals(\"api_test_pespin.exe\") && (location.toString().contains(\"40669e\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yoda.exe\n\t\t\t\t|| (fileName.equals(\"api_test_yoda.exe\") && (location.toString().contains(\"4045fb\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_vmprotect.exe\n\t\t\t\t|| (fileName.equals(\"api_test_vmprotect.exe\") && (\n\t\t\t\t// location.toString().contains(\"4c11b0\")\n\t\t\t\tlocation.toString().contains(\"4b9da5\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yc1.2.exe\n\t\t\t\t|| (fileName.equals(\"api_test_v2.3_lvl1.exe\") && \n\t\t\t\t(location.toString().contains(\"00000000001\")\n\t\t\t\t|| location.toString().contains(\"424a41\") // API GetLocalTime\n\t\t\t\t|| location.toString().contains(\"436daf\") // API CreateFile\n\t\t\t\t|| location.toString().contains(\"436ef8\") // API CreateFile\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"436bc7\") // RET\n\t\t\t\t|| location.toString().contains(\"437b16\") // After STI\n\t\t\t\t|| location.toString().contains(\"43ce7c\") // After STI \n\t\t\t\t|| location.toString().contains(\"43f722\") // API GetVersionExA\n\t\t\t\t|| location.toString().contains(\"43d397\") // API GetCommandLine\t\t\t\t\n\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"44228a\") // Target\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"api_test_aspack.exe\") && (location.toString().contains(\"4043c2\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Cabanas.2999\") && (location.toString().contains(\"40497b\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Apbost.c\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Apbost.c\") && (location.toString().contains(\"4046e8\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t// ******************************************\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Navidad.b\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Navidad.b\") && \n\t\t\t\t\t\t(location.toString().contains(\"409239\")\n\t\t\t\t|| location.toString().contains(\"409227\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Adson.1559\") && \n\t\t\t\t\t\t(location.toString().contains(\"4094b3\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLP.Delf.d\") && \n\t\t\t\t\t\t(location.toString().contains(\"401324\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLC.Asive\") && \n\t\t\t\t(location.toString().contains(\"401130\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\n\t\t// Virus.Win32.Aztec.01\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Aztec.01\") && \n\t\t\t\t(location.toString().contains(\"40134e\")\n\t\t\t\t|| location.toString().contains(\"401312\")\n\t\t\t\t|| location.toString().contains(\"40106c\")\n\t\t\t\t)))) {\n\t\t\t//if (curState.getEnvironement().getRegister().getRegisterValue(\"eax\").toString().equals(\"7c800c00\"))\t\t\t\n\t\t\tbackupState(curState, fileState);\n\t\t\t//backupStateAll(curState, bkFile);\n\t\t\t//program.generageCFG(program.getAbsolutePathFile() + \"_test\");\n\t\t\t//program.generageCFG(\"/asm/cfg/\" + program.getFileName() + \"_test\");\n\t\t\tSystem.out.println(\"Debug at:\" + location.toString());\n\t\t}\n\t\t/*\n\t\t * if (location != null && location.toString().contains(\"0040481b\") &&\n\t\t * Program.getProgram().getFileName()\n\t\t * .equals(\"Virus.Win32.Cabanas.2999\")) { // Value ecx =\n\t\t * env.getRegister().getRegisterValue(\"ecx\"); String s1 =\n\t\t * curState.getEnvironement().getMemory() .getText(this, 4215362, 650);\n\t\t * System.out.println(\"Decrypted String: \" + s1); }\n\t\t */\n\t}", "private static void printDebug(String s)\n {\n }", "public static String _but_cerrar_ciclo_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 454;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 455;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private DebugMessage() {\n initFields();\n }", "public static String _but_cerrar_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 450;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n //BA.debugLineNum = 451;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void closeDebugFrame()\n {\n dispose();\n }", "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"regis\",mostCurrent.activityBA);\n //BA.debugLineNum = 31;BA.debugLine=\"Activity.Title = \\\"Register\\\"\";\nmostCurrent._activity.setTitle(BA.ObjectToCharSequence(\"Register\"));\n //BA.debugLineNum = 33;BA.debugLine=\"ImageView1.Visible = False\";\nmostCurrent._imageview1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 35;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private Globals() {\n\n\t}", "static void feladat9() {\n\t}", "void debug(String a, String b) {\n\t\t}", "public static void debugInfo() { throw Extensions.todo(); }", "void mo7441d(C0933b bVar);", "public void debug()\r\n {\n \t\treload();\r\n }", "public static String _but_cerrar_mosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 458;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 459;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static void show_local() {\n\n\t}", "public void mo23813b() {\n }", "public void mo115190b() {\n }", "public static void init()\n {\n debugger = new Debugger(\"log\");\n info = true;\n }", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public native void debugStateCapture();", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "public static RemoteObject _globals() throws Exception{\nrequests3.mostCurrent._icon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.BitmapDrawable\");\n //BA.debugLineNum = 25;BA.debugLine=\"Private xui As XUI\";\nrequests3.mostCurrent._xui = RemoteObject.createNew (\"anywheresoftware.b4a.objects.B4XViewWrapper.XUI\");\n //BA.debugLineNum = 27;BA.debugLine=\"Private TileSourceSpinner As Spinner\";\nrequests3.mostCurrent._tilesourcespinner = RemoteObject.createNew (\"anywheresoftware.b4a.objects.SpinnerWrapper\");\n //BA.debugLineNum = 29;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 30;BA.debugLine=\"Private FilterStartDate As String\";\nrequests3.mostCurrent._filterstartdate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 31;BA.debugLine=\"Private FilterEndDate As String\";\nrequests3.mostCurrent._filterenddate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 32;BA.debugLine=\"Private FilterTasks As Int = 0\";\nrequests3._filtertasks = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 33;BA.debugLine=\"Private FilterEntity As Int = 0\";\nrequests3._filterentity = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 34;BA.debugLine=\"Private FilterRoute As Int = 0\";\nrequests3._filterroute = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FilterStates As Int = 0\";\nrequests3._filterstates = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 36;BA.debugLine=\"Private FilterTypeRequests As Int = 0\";\nrequests3._filtertyperequests = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 37;BA.debugLine=\"Private Bloco30 As Int = 0\";\nrequests3._bloco30 = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 39;BA.debugLine=\"Private ListTypeRequests As List\";\nrequests3.mostCurrent._listtyperequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 40;BA.debugLine=\"Private ListStates As List\";\nrequests3.mostCurrent._liststates = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 41;BA.debugLine=\"Private ListEntities As List\";\nrequests3.mostCurrent._listentities = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 42;BA.debugLine=\"Private ListTasks As List\";\nrequests3.mostCurrent._listtasks = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 43;BA.debugLine=\"Private ListRoutes As List\";\nrequests3.mostCurrent._listroutes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 45;BA.debugLine=\"Private ButtonUserUnavailable As Button\";\nrequests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 46;BA.debugLine=\"Private mapUserPosition As Button\";\nrequests3.mostCurrent._mapuserposition = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 47;BA.debugLine=\"Private ColorTabPanel As Panel\";\nrequests3.mostCurrent._colortabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 49;BA.debugLine=\"Private ButtonActionTransport As Button\";\nrequests3.mostCurrent._buttonactiontransport = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 50;BA.debugLine=\"Private ButtonAppAlert As Button\";\nrequests3.mostCurrent._buttonappalert = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 51;BA.debugLine=\"Private ButtonAppNetwork As Button\";\nrequests3.mostCurrent._buttonappnetwork = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 52;BA.debugLine=\"Private LabelAppInfo As Label\";\nrequests3.mostCurrent._labelappinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 53;BA.debugLine=\"Private LabelCopyright As Label\";\nrequests3.mostCurrent._labelcopyright = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 54;BA.debugLine=\"Private LabelDateTime As Label\";\nrequests3.mostCurrent._labeldatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 55;BA.debugLine=\"Private LabelVersion As Label\";\nrequests3.mostCurrent._labelversion = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 56;BA.debugLine=\"Private listsBasePanel As Panel\";\nrequests3.mostCurrent._listsbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 57;BA.debugLine=\"Private listsBottomLine As Panel\";\nrequests3.mostCurrent._listsbottomline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 58;BA.debugLine=\"Private listsBottomPanel As Panel\";\nrequests3.mostCurrent._listsbottompanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 59;BA.debugLine=\"Private listsButtonClose As Button\";\nrequests3.mostCurrent._listsbuttonclose = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 60;BA.debugLine=\"Private listsButtonFilter As Button\";\nrequests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 61;BA.debugLine=\"Private listsLabelInfo As Label\";\nrequests3.mostCurrent._listslabelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 62;BA.debugLine=\"Private listsTabPanel As TabStrip\";\nrequests3.mostCurrent._liststabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.TabStripViewPager\");\n //BA.debugLineNum = 63;BA.debugLine=\"Private listsTopBar As Panel\";\nrequests3.mostCurrent._liststopbar = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 64;BA.debugLine=\"Private mainLabelOptLists As Label\";\nrequests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 65;BA.debugLine=\"Private mainLogo As ImageView\";\nrequests3.mostCurrent._mainlogo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 66;BA.debugLine=\"Private mainTopLine As Panel\";\nrequests3.mostCurrent._maintopline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 68;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 69;BA.debugLine=\"Private iDialogReqTypeObject, iDialogReqZone, iDi\";\nrequests3._idialogreqtypeobject = RemoteObject.createImmutable(0);\nrequests3._idialogreqzone = RemoteObject.createImmutable(0);\nrequests3._idialogreqstatus = RemoteObject.createImmutable(0);\nrequests3._idialogreqregion = RemoteObject.createImmutable(0);\nrequests3._idialogreqlocal = RemoteObject.createImmutable(0);\nrequests3._idialogreqwithrequests = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 70;BA.debugLine=\"Private sDialogReqName, sDialogReqAddress, Search\";\nrequests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._searchfilter = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 71;BA.debugLine=\"Private RegionsList, TypeObjectsList, LocalsList,\";\nrequests3.mostCurrent._regionslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._typeobjectslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._localslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 72;BA.debugLine=\"Private ItemsCounter As Int = 0\";\nrequests3._itemscounter = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 74;BA.debugLine=\"Private listRequestsButtonMap As Button\";\nrequests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 75;BA.debugLine=\"Private mapBaseList As Panel\";\nrequests3.mostCurrent._mapbaselist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 76;BA.debugLine=\"Private mapBasePanel As Panel\";\nrequests3.mostCurrent._mapbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 78;BA.debugLine=\"Private mapZoomDown As Button\";\nrequests3.mostCurrent._mapzoomdown = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 79;BA.debugLine=\"Private mapZoomUp As Button\";\nrequests3.mostCurrent._mapzoomup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 80;BA.debugLine=\"Private listRequests As CustomListView 'ExpandedL\";\nrequests3.mostCurrent._listrequests = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 81;BA.debugLine=\"Private listsRequestsMap As CustomListView\";\nrequests3.mostCurrent._listsrequestsmap = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 83;BA.debugLine=\"Private pnlGroupTitle As Panel\";\nrequests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 84;BA.debugLine=\"Private pnlGroupData As Panel\";\nrequests3.mostCurrent._pnlgroupdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 86;BA.debugLine=\"Private ListItemTodayRequests As Label\";\nrequests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 87;BA.debugLine=\"Private ListItemReference As Label\";\nrequests3.mostCurrent._listitemreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 88;BA.debugLine=\"Private ListItemDatetime As Label\";\nrequests3.mostCurrent._listitemdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 89;BA.debugLine=\"Private ListItemContact As Label\";\nrequests3.mostCurrent._listitemcontact = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 90;BA.debugLine=\"Private ListItemFullName As Label\";\nrequests3.mostCurrent._listitemfullname = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 91;BA.debugLine=\"Private ListItemStatus As Label\";\nrequests3.mostCurrent._listitemstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 92;BA.debugLine=\"Private listButMap As Button\";\nrequests3.mostCurrent._listbutmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 94;BA.debugLine=\"Private ListItemObject As Label\";\nrequests3.mostCurrent._listitemobject = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 95;BA.debugLine=\"Private ListItemObjectTask As Label\";\nrequests3.mostCurrent._listitemobjecttask = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 96;BA.debugLine=\"Private ListItemObjectExecution As Label\";\nrequests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 97;BA.debugLine=\"Private listButObjectAction As Button\";\nrequests3.mostCurrent._listbutobjectaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 98;BA.debugLine=\"Private ListItemObjectStatus As Label\";\nrequests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 99;BA.debugLine=\"Private ListItemObjectStatusIcon As Label\";\nrequests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 101;BA.debugLine=\"Private CurrentGroupItem As Int = 0\";\nrequests3._currentgroupitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 102;BA.debugLine=\"Private pnlGroupCurrenIndex As Int\";\nrequests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 103;BA.debugLine=\"Private ClickLabel As Label\";\nrequests3.mostCurrent._clicklabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 105;BA.debugLine=\"Private ShowListPedidosMap As Boolean = False\";\nrequests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 106;BA.debugLine=\"Private EditSearch As EditText\";\nrequests3.mostCurrent._editsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.EditTextWrapper\");\n //BA.debugLineNum = 107;BA.debugLine=\"Private butSearch As Button\";\nrequests3.mostCurrent._butsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 109;BA.debugLine=\"Dim CurrentIndexPanel As Int = -1\";\nrequests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 110;BA.debugLine=\"Dim CurrentIDPanel As Int = 0\";\nrequests3._currentidpanel = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 112;BA.debugLine=\"Private LabelButtonTitleAction As Label\";\nrequests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 113;BA.debugLine=\"Private LabelReferenciasDescritivos As Label\";\nrequests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 114;BA.debugLine=\"Private LabelStatus As Label\";\nrequests3.mostCurrent._labelstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 115;BA.debugLine=\"Private RequestsOptionsPopMenu As MenuOnAnyView\";\nrequests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew (\"com.jakes.menuonviews.menuonanyview\");\n //BA.debugLineNum = 117;BA.debugLine=\"Private CurrentLineItem As Int = 0\";\nrequests3._currentlineitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 118;BA.debugLine=\"Private TotalLineItems As Int = 0\";\nrequests3._totallineitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 119;BA.debugLine=\"Private ListItemObjectNumber As Label\";\nrequests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 120;BA.debugLine=\"Private listButMore As Button\";\nrequests3.mostCurrent._listbutmore = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 121;BA.debugLine=\"Private ListItemObjectDateTime As Label\";\nrequests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 122;BA.debugLine=\"Private ListItemObjectReference As Label\";\nrequests3.mostCurrent._listitemobjectreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 123;BA.debugLine=\"Private pnlGroupDataSub As Panel\";\nrequests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 124;BA.debugLine=\"Private pnlGroupDataList As ExpandedListView 'Cus\";\nrequests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.expandedlistview\");\n //BA.debugLineNum = 127;BA.debugLine=\"Private CurrentPage As Int\";\nrequests3._currentpage = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 128;BA.debugLine=\"Private Pages As List '= Array(True, False, True,\";\nrequests3.mostCurrent._pages = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 130;BA.debugLine=\"Private listRequestsItem As CustomListView\";\nrequests3.mostCurrent._listrequestsitem = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 131;BA.debugLine=\"Private CLAButtonOptions As Button\";\nrequests3.mostCurrent._clabuttonoptions = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 132;BA.debugLine=\"Private CLAItem_G1 As Label\";\nrequests3.mostCurrent._claitem_g1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 133;BA.debugLine=\"Private CLAItemButton_1 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 134;BA.debugLine=\"Private CLAItemButton_2 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 135;BA.debugLine=\"Private CLAItem_G2 As Label\";\nrequests3.mostCurrent._claitem_g2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 136;BA.debugLine=\"Private CLAItem_G3 As Label\";\nrequests3.mostCurrent._claitem_g3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 137;BA.debugLine=\"Private CLAItem_G4 As Label\";\nrequests3.mostCurrent._claitem_g4 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 138;BA.debugLine=\"Private CLAItem_G5 As Label\";\nrequests3.mostCurrent._claitem_g5 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 139;BA.debugLine=\"Private CLAItem_G6 As Label\";\nrequests3.mostCurrent._claitem_g6 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 140;BA.debugLine=\"Private CLAItem_G7 As Label\";\nrequests3.mostCurrent._claitem_g7 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 141;BA.debugLine=\"Private ListItemType As Label\";\nrequests3.mostCurrent._listitemtype = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 143;BA.debugLine=\"Private ListItem_Notes As Label\";\nrequests3.mostCurrent._listitem_notes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 144;BA.debugLine=\"Private ListItem_Status As Label\";\nrequests3.mostCurrent._listitem_status = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 145;BA.debugLine=\"Private ListItem_Datetime As Label\";\nrequests3.mostCurrent._listitem_datetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 146;BA.debugLine=\"Private ListItem_Entity As Label\";\nrequests3.mostCurrent._listitem_entity = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 147;BA.debugLine=\"Private ListItem_Cloud As Label\";\nrequests3.mostCurrent._listitem_cloud = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 148;BA.debugLine=\"Private listButCompare As Button\";\nrequests3.mostCurrent._listbutcompare = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 149;BA.debugLine=\"Private ListItem_TypeRequest As Label\";\nrequests3.mostCurrent._listitem_typerequest = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 150;BA.debugLine=\"Private listRequestsItemSecond As CustomListView\";\nrequests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 151;BA.debugLine=\"Private CLAItemButtonBR_SVR2 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 152;BA.debugLine=\"Private CLAItemButtonBR_SVR2_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 153;BA.debugLine=\"Private CLA_BR_KSVRF2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 154;BA.debugLine=\"Private CLA_BR_KSVRF2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 155;BA.debugLine=\"Private CLA_BR_KSVRI2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 156;BA.debugLine=\"Private CLA_BR_KSVRI2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 157;BA.debugLine=\"Private CLA_BR_KSVRI1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 158;BA.debugLine=\"Private CLA_BR_KSVRI1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 159;BA.debugLine=\"Private CLA_BR_KSVRF1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 160;BA.debugLine=\"Private CLA_BR_KSVRF1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 161;BA.debugLine=\"Private CLAItemButtonBR_SVR1 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 162;BA.debugLine=\"Private CLAItemButtonBR_SVR1_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 163;BA.debugLine=\"Private CLAItemButtonBR_INIT_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 164;BA.debugLine=\"Private CLAItemButtonBR_INIT As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 165;BA.debugLine=\"Private CLA_BR_OBS As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_obs = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 166;BA.debugLine=\"Private CLA_BR_OBS_A As Button\";\nrequests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 167;BA.debugLine=\"Private CLA_BR_KMI_A As Button\";\nrequests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 168;BA.debugLine=\"Private CLA_BR_KMI As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmi = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 169;BA.debugLine=\"Private CLA_BR_CAR As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_car = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 170;BA.debugLine=\"Private CLA_BR_CAR_A As Button\";\nrequests3.mostCurrent._cla_br_car_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 171;BA.debugLine=\"Private CLA_BR_KMF_A As Button\";\nrequests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 172;BA.debugLine=\"Private CLA_BR_KMF As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmf = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 173;BA.debugLine=\"Private CLA_BR_E1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 174;BA.debugLine=\"Private CLA_BR_S1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 175;BA.debugLine=\"Private CLA_BR_E2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 176;BA.debugLine=\"Private CLA_BR_S2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 177;BA.debugLine=\"Private CLA_BR_E3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 178;BA.debugLine=\"Private CLA_BR_S3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 179;BA.debugLine=\"Private CLAItemButtonBR As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 180;BA.debugLine=\"Private CLAItemButtonBR_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 181;BA.debugLine=\"Private CLAItemButtonX_A As Button\";\nrequests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 182;BA.debugLine=\"Private B4XStateButton1 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 183;BA.debugLine=\"Private B4XStateButton2 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 184;BA.debugLine=\"Private B4XStateButton3 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 185;BA.debugLine=\"Private B4XStateButton4 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 186;BA.debugLine=\"Private B4XStateButton5 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 187;BA.debugLine=\"Private B4XStateButton6 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 188;BA.debugLine=\"Private B4XStateButton7 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 189;BA.debugLine=\"Private B4XStateButton14 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 190;BA.debugLine=\"Private B4XStateButton13 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 191;BA.debugLine=\"Private B4XStateButton21 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 192;BA.debugLine=\"Private B4XStateButton20 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 193;BA.debugLine=\"Private B4XStateButton19 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 194;BA.debugLine=\"Private B4XStateButton12 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 195;BA.debugLine=\"Private B4XStateButton11 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 196;BA.debugLine=\"Private B4XStateButton18 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 197;BA.debugLine=\"Private B4XStateButton17 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 198;BA.debugLine=\"Private B4XStateButton10 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 199;BA.debugLine=\"Private B4XStateButton9 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 200;BA.debugLine=\"Private B4XStateButton16 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 201;BA.debugLine=\"Private B4XStateButton15 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 202;BA.debugLine=\"Private B4XStateButton8 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 203;BA.debugLine=\"Private B4XStateButton22 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 204;BA.debugLine=\"Private B4XStateButton23 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 205;BA.debugLine=\"Private B4XStateButton24 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 206;BA.debugLine=\"Private B4XStateButton25 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 207;BA.debugLine=\"Private B4XStateButton26 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 209;BA.debugLine=\"Private VIEW_requests_listview As String = \\\"reque\";\nrequests3.mostCurrent._view_requests_listview = BA.ObjectToString(\"requests_listview\");\n //BA.debugLineNum = 210;BA.debugLine=\"Private VIEW_requests_listviewrequest As String =\";\nrequests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString(\"requests_listviewrequest\");\n //BA.debugLineNum = 211;BA.debugLine=\"Private VIEW_requests_listviewrequest2 As String\";\nrequests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString(\"requests_listviewrequest2\");\n //BA.debugLineNum = 212;BA.debugLine=\"Private VIEW_requests_mapview As String = \\\"reques\";\nrequests3.mostCurrent._view_requests_mapview = BA.ObjectToString(\"requests_mapview_google\");\n //BA.debugLineNum = 213;BA.debugLine=\"Private ButtonActionPause As Button\";\nrequests3.mostCurrent._buttonactionpause = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 214;BA.debugLine=\"Private CurrentFilter As String = \\\"\\\"\";\nrequests3.mostCurrent._currentfilter = BA.ObjectToString(\"\");\n //BA.debugLineNum = 215;BA.debugLine=\"Private mainActiveUser As Label\";\nrequests3.mostCurrent._mainactiveuser = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 216;BA.debugLine=\"Private gmap As GoogleMap\";\nrequests3.mostCurrent._gmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper\");\n //BA.debugLineNum = 217;BA.debugLine=\"Private mapData As MapFragment\";\nrequests3.mostCurrent._mapdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper\");\n //BA.debugLineNum = 218;BA.debugLine=\"Private mapMarker As Marker\";\nrequests3.mostCurrent._mapmarker = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper\");\n //BA.debugLineNum = 219;BA.debugLine=\"Private listsButtonPull As Button\";\nrequests3.mostCurrent._listsbuttonpull = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 220;BA.debugLine=\"Private listButNote As Button\";\nrequests3.mostCurrent._listbutnote = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 221;BA.debugLine=\"Private butQuickAction As Button\";\nrequests3.mostCurrent._butquickaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 222;BA.debugLine=\"Private ListItem_Favorite As Label\";\nrequests3.mostCurrent._listitem_favorite = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 223;BA.debugLine=\"Private listsButtonFavorites As Button\";\nrequests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 224;BA.debugLine=\"Private ListItem_Desc02 As Label\";\nrequests3.mostCurrent._listitem_desc02 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 225;BA.debugLine=\"Private ListItem_Desc01 As Label\";\nrequests3.mostCurrent._listitem_desc01 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 226;BA.debugLine=\"Private ListaPrincipalClickItem As Int = -1\";\nrequests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 227;BA.debugLine=\"Private ListViewDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 228;BA.debugLine=\"Private ListViewRequestDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 229;BA.debugLine=\"Private ListViewRequest2Device3Panel As Panel\";\nrequests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 230;BA.debugLine=\"Private ListItemClickIndex As Label\";\nrequests3.mostCurrent._listitemclickindex = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 231;BA.debugLine=\"Private ListItem_Desc00 As Label\";\nrequests3.mostCurrent._listitem_desc00 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 232;BA.debugLine=\"Private SubItemImage As ImageView\";\nrequests3.mostCurrent._subitemimage = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 233;BA.debugLine=\"Private LockPanel As Panel\";\nrequests3.mostCurrent._lockpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 235;BA.debugLine=\"Private GRANDACTIVE_INSTANCE As String = \\\"PT20180\";\nrequests3.mostCurrent._grandactive_instance = BA.ObjectToString(\"PT20180913-2105-006\");\n //BA.debugLineNum = 236;BA.debugLine=\"Private LockPanelInfo As Label\";\nrequests3.mostCurrent._lockpanelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 238;BA.debugLine=\"Private current_limit As Int = 0\";\nrequests3._current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 239;BA.debugLine=\"Private current_offset As Int = 100\";\nrequests3._current_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 240;BA.debugLine=\"Private next_current_limit As Int = 0\";\nrequests3._next_current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 241;BA.debugLine=\"Private next_offset As Int = 100\";\nrequests3._next_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 242;BA.debugLine=\"Private CurrentTotalItems As Int = 0\";\nrequests3._currenttotalitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 244;BA.debugLine=\"Private SelectedTagcode As String = \\\"\\\"\";\nrequests3.mostCurrent._selectedtagcode = BA.ObjectToString(\"\");\n //BA.debugLineNum = 245;BA.debugLine=\"Private SelectedRequestData As RequestData\";\nrequests3.mostCurrent._selectedrequestdata = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.types._requestdata\");\n //BA.debugLineNum = 246;BA.debugLine=\"Private ListItemNumber As Label\";\nrequests3.mostCurrent._listitemnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 248;BA.debugLine=\"Private data_Intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._data_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 249;BA.debugLine=\"Private hora_intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._hora_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 250;BA.debugLine=\"Private TaskList2Dup As CustomListView\";\nrequests3.mostCurrent._tasklist2dup = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 251;BA.debugLine=\"Private BotaoDataDup As Button\";\nrequests3.mostCurrent._botaodatadup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 252;BA.debugLine=\"Private BotaoHoraDup As Button\";\nrequests3.mostCurrent._botaohoradup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 253;BA.debugLine=\"Private dupItemCheck As CheckBox\";\nrequests3.mostCurrent._dupitemcheck = RemoteObject.createNew (\"anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper\");\n //BA.debugLineNum = 254;BA.debugLine=\"Private dupItemLabel As Label\";\nrequests3.mostCurrent._dupitemlabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 256;BA.debugLine=\"Private ListITemTechnical As Label\";\nrequests3.mostCurrent._listitemtechnical = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 257;BA.debugLine=\"Private GlobalScanReturn As Boolean\";\nrequests3._globalscanreturn = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 258;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "public static String _imglarvas_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 211;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 212;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 213;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 214;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 215;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 216;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 217;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 218;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 219;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 220;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 221;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 222;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 223;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 224;BA.debugLine=\"lblEstadio.Visible = False\";\nmostCurrent._lblestadio.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 226;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 227;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 228;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 230;BA.debugLine=\"panelPopUps_2.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_2.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 231;BA.debugLine=\"panelPopUps_2.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_2.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 233;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"\\\"\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 234;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 235;BA.debugLine=\"imgPopUp.RemoveView\";\nmostCurrent._imgpopup.RemoveView();\n //BA.debugLineNum = 236;BA.debugLine=\"imgPopUp.Initialize(\\\"\\\")\";\nmostCurrent._imgpopup.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 237;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets, \\\"mos\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_larvaFoto.png\").getObject()));\n //BA.debugLineNum = 238;BA.debugLine=\"imgPopUp.Gravity = Gravity.FILL\";\nmostCurrent._imgpopup.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL);\n //BA.debugLineNum = 239;BA.debugLine=\"btnCerrarPopUp.RemoveView\";\nmostCurrent._btncerrarpopup.RemoveView();\n //BA.debugLineNum = 240;BA.debugLine=\"btnCerrarPopUp.Initialize(\\\"btnCerrarPopUp_Larvas\\\"\";\nmostCurrent._btncerrarpopup.Initialize(mostCurrent.activityBA,\"btnCerrarPopUp_Larvas\");\n //BA.debugLineNum = 241;BA.debugLine=\"btnCerrarPopUp.Typeface = Typeface.FONTAWESOME\";\nmostCurrent._btncerrarpopup.setTypeface(anywheresoftware.b4a.keywords.Common.Typeface.getFONTAWESOME());\n //BA.debugLineNum = 242;BA.debugLine=\"btnCerrarPopUp.Text = \\\"\\\"\";\nmostCurrent._btncerrarpopup.setText(BA.ObjectToCharSequence(\"\"));\n //BA.debugLineNum = 243;BA.debugLine=\"btnCerrarPopUp.TextSize = 30\";\nmostCurrent._btncerrarpopup.setTextSize((float) (30));\n //BA.debugLineNum = 244;BA.debugLine=\"btnCerrarPopUp.Color = Colors.ARGB(150,255,255,25\";\nmostCurrent._btncerrarpopup.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (150),(int) (255),(int) (255),(int) (255)));\n //BA.debugLineNum = 245;BA.debugLine=\"btnCerrarPopUp.TextColor = Colors.ARGB(255,255,11\";\nmostCurrent._btncerrarpopup.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (255),(int) (255),(int) (117),(int) (117)));\n //BA.debugLineNum = 246;BA.debugLine=\"panelPopUps_2.AddView(imgPopUp, 0%x, 0%y, 70%x, 7\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._imgpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 247;BA.debugLine=\"panelPopUps_2.AddView(btnCerrarPopUp, 56%x, 0%y,\";\nmostCurrent._panelpopups_2.AddView((android.view.View)(mostCurrent._btncerrarpopup.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (56),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (0),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (50)));\n //BA.debugLineNum = 248;BA.debugLine=\"Activity.AddView(panelPopUps_2, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_2.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 249;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }", "public RunMain0() {\n \n//#line 1\nsuper();\n }", "static void feladat7() {\n\t}", "public NeedleholeDlg()\n \t{\n \t\tsuper( \"Needlehole Cherry Blossom\" );\n \t\tinit2();\n \t}", "private GUIMain() {\n\t}", "public String getDisplayScript() {\n/* 577 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean mo2091a(C0455b bVar, Menu menu);", "public static void setDebug(int b) {\n debug = b;\n }", "public void mo21779D() {\n }", "public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }", "private void debug(String str) {\n }", "public void mo3287b() {\n }", "private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }", "public static void main(String[] args)\r\n {\n\r\n\r\n StaticIntialisationBlockTest SIBTest = new StaticIntialisationBlockTest();\r\n SIBTest.someMethod();\r\n System.out.println(\"owner name is \" + StaticIntialisationBlockTest.owner);\r\n }", "private static void initAndShowGUI() {\n }", "void k2h_set_debug_level_message();", "private NavDebug() {\r\n }", "public void mo3749d() {\n }", "private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }", "boolean isDebug();", "boolean isDebug();", "public void continueDebugStep() {\n \tthis.continueDebug = true;\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public void setDebugger(Debugger newDebugger) {\r\n\tdebugger = newDebugger;\r\n}", "private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }", "protected void onSwapCraft(int debug1) {}", "public editDiagnoses() {\r\n }", "void mo7439b(C0933b bVar);", "public String _setuser(b4a.HotelAppTP.types._user _u) throws Exception{\n_types._currentuser.username = _u.username;\n //BA.debugLineNum = 168;BA.debugLine=\"Types.currentuser.password = u.password\";\n_types._currentuser.password = _u.password;\n //BA.debugLineNum = 169;BA.debugLine=\"Types.currentuser.available = u.available\";\n_types._currentuser.available = _u.available;\n //BA.debugLineNum = 170;BA.debugLine=\"Types.currentuser.ID = u.ID\";\n_types._currentuser.ID = _u.ID;\n //BA.debugLineNum = 171;BA.debugLine=\"Types.currentuser.TypeOfWorker = u.TypeOfWorker\";\n_types._currentuser.TypeOfWorker = _u.TypeOfWorker;\n //BA.debugLineNum = 172;BA.debugLine=\"Types.currentuser.CurrentTaskID = u.CurrentTaskID\";\n_types._currentuser.CurrentTaskID = _u.CurrentTaskID;\n //BA.debugLineNum = 173;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void b()\r\n/* 16: */ {\r\n/* 17:15 */ super.b();\r\n/* 18: */ \r\n/* 19:17 */ this.n.add(new bug(0, this.l / 2 - 100, 140, cwc.a(\"gui.cancel\", new Object[0])));\r\n/* 20: */ }", "@Override\n public void updateDebugText(MiniGame game)\n {\n }", "private Globals() {}", "public static final boolean isDebugInfo() { return true; }", "private InstructGui() {\n }", "@Override\n public void updateDebugText(MiniGame game) {\n }", "public static void enableDebugging(){\n DEBUG = true;\n }", "private Frame3() {\n\t}", "@Override\n\tpublic void setDebugMode(int debugMode) {\n\n\t}", "public void mo9137b() {\n }", "private Dialogs () {\r\n\t}" ]
[ "0.725063", "0.72462475", "0.6796846", "0.6506637", "0.6493662", "0.61853087", "0.6162189", "0.6105418", "0.60657114", "0.60406834", "0.6012691", "0.59811103", "0.59725136", "0.58865523", "0.5855107", "0.5778056", "0.5753264", "0.57414746", "0.5718731", "0.57092834", "0.56564796", "0.5625821", "0.5611007", "0.5603462", "0.55564386", "0.5546709", "0.55018526", "0.54911447", "0.5490851", "0.5471856", "0.54663813", "0.5457808", "0.54368484", "0.54266346", "0.54069227", "0.5383695", "0.538292", "0.5360421", "0.5345542", "0.5341337", "0.53147304", "0.5283651", "0.52790004", "0.52747786", "0.5238734", "0.52084464", "0.52076703", "0.5203343", "0.5203144", "0.51895833", "0.51876146", "0.5185457", "0.5177579", "0.5176767", "0.51726466", "0.5158405", "0.51553214", "0.5124764", "0.5119148", "0.5117183", "0.5115625", "0.5103655", "0.5066023", "0.5055359", "0.50540406", "0.50467175", "0.5040136", "0.50356954", "0.5031831", "0.5029991", "0.5015371", "0.50145656", "0.500776", "0.5007348", "0.50066805", "0.5005181", "0.50051504", "0.5005058", "0.500033", "0.49971765", "0.49971765", "0.49943528", "0.49897724", "0.49870154", "0.498544", "0.49851352", "0.49836397", "0.49800137", "0.4975104", "0.49706092", "0.49576584", "0.49518153", "0.49460024", "0.49451256", "0.4942957", "0.49249777", "0.49201402", "0.49190566", "0.49121046", "0.49090648" ]
0.6376208
5
BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals"; BA.debugLineNum = 10;BA.debugLine="End Sub";
public static String _process_globals() throws Exception{ return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "public static String _registerbutt_click() throws Exception{\n_inputregis();\n //BA.debugLineNum = 104;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void testDebugNoModifications() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebp.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n setLineBreakpoint(eo, \"if (action === \\\"build\\\") {\");\n setLineBreakpoint(eo, \"var d = new Date();\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n VariablesOperator vo = new VariablesOperator(\"Variables\");\n\n assertEquals(\"Unexpected file opened at breakpoint\", \"debug.html\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 14, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"1\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebp.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 4, currentFile.getLineNumber());\n assertEquals(\"Step variable is unexpected\", \"2\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(500);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"3\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 15, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"4\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepOverAction().performMenu();\n new StepOverAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n vo = new VariablesOperator(\"Variables\");\n assertEquals(\"Debugger stopped at wrong line\", 17, currentFile.getLineNumber());\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n\n new StepIntoAction().performMenu();\n new StepIntoAction().performMenu();\n evt.waitNoEvent(1000);\n vo = new VariablesOperator(\"Variables\");\n evt.waitNoEvent(1000);\n waitForVariable(\"step\");\n if(GeneralHTMLProject.inEmbeddedBrowser){ // embedded browser stops on line with function(){\n assertEquals(\"Step variable is unexpected\", \"5\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value);\n }else{\n assertEquals(\"Step variable is unexpected\", \"6\", ((Map<String, Variable>) vo.getVariables()).get(\"step\").value); \n }\n\n endTest();\n }", "static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public String _login_click() throws Exception{\n_login();\n //BA.debugLineNum = 155;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static String _showloading(String _msg) throws Exception{\nanywheresoftware.b4a.keywords.Common.ProgressDialogShow2(mostCurrent.activityBA,BA.ObjectToCharSequence(_msg),anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void testDebugModifications() throws Exception {\n startTest();\n\n openFile(\"debugMod.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debugMod.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n openFile(\"linebpMod.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebpMod.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\");\n// if (LineDebuggerTest.inEmbeddedBrowser) { // workaround for 226022\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 7, currentFile.getLineNumber());\n currentFile.deleteLine(4);\n currentFile.deleteLine(4);\n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 5, currentFile.getLineNumber());\n\n\n currentFile.setCaretPositionToEndOfLine(3);\n currentFile.insert(\"\\nconsole.log(\\\"1js\\\");\\nconsole.log(\\\"2js\\\");\\nconsole.log(\\\"3js\\\");\"); \n\n// if (LineDebuggerTest.inEmbeddedBrowser) {\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// saveAndWait(currentFile, 1000);\n// runFile(LineDebuggerTest.current_project, \"debugMod.html\");\n// evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n// } else {\n saveAndWait(currentFile, 1500);\n\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"linebpMod.js\", currentFile.getName());\n assertEquals(\"Debugger stopped at wrong line\", 8, currentFile.getLineNumber());\n currentFile.close();\n\n endTest();\n }", "public void debug() {\n\n }", "public RunMain0() {\n \n//#line 1\nsuper();\n }", "public int _getvalue() throws Exception{\nif (true) return _mvalue;\n //BA.debugLineNum = 154;BA.debugLine=\"End Sub\";\nreturn 0;\n}", "public void testDebugging() throws Throwable {\n // Status bar tracer\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n JavaNode sampleClass1Node = new JavaNode(sourcePackagesNode, SAMPLE1_PACKAGE_NAME + \"|\" + SAMPLE1_FILE_NAME);\n // flag to stop debugger in finally\n boolean debuggerStarted = false;\n try {\n // find sample file in Editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n final int insertLine = eo.getLineNumber() + 2;\n\n // if file not contains brpText from previous test cases, insert it\n String brpText = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine, 1);\n }\n eo.select(brpText);\n\n ToggleBreakpointAction toggleBreakpointAction = new ToggleBreakpointAction();\n try {\n // toggle breakpoint via Shift+F8\n toggleBreakpointAction.performShortcut(eo);\n waitBreakpoint(eo, insertLine);\n } catch (TimeoutExpiredException e) {\n // need to be realiable test => repeat action once more to be sure it is problem in IDE\n // this time use events instead of Robot\n MainWindowOperator.getDefault().pushKey(\n toggleBreakpointAction.getKeyStrokes()[0].getKeyCode(),\n toggleBreakpointAction.getKeyStrokes()[0].getModifiers());\n waitBreakpoint(eo, insertLine);\n }\n\n // if file not contains second brpText from previous test cases, insert it\n brpText = \"System.out.println(\\\"Good bye\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine + 1, 1);\n }\n eo.select(brpText);\n // toggle breakpoint via pop-up menu\n // clickForPopup(0, 0) used in the past sometimes caused that menu\n // was opened outside editor area because editor roll up after \n // text was selected\n toggleBreakpointAction.perform(eo.txtEditorPane());\n // wait second breakpoint established\n waitBreakpoint(eo, insertLine + 1);\n // start to track Main Window status bar\n stt.start();\n debuggerStarted = true;\n // start debugging\n new DebugJavaFileAction().performMenu(sampleClass1Node);\n // check the first breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000);\n String labelLine = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine);\n // continue debugging\n new ContinueAction().perform();\n // check the second breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n String labelLine1 = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine1);\n // check \"Hello\" was printed out in Output\n OutputTabOperator oto = new OutputTabOperator(\"debug-single\"); // NOI18N\n // wait until text Hello is not written in to the Output\n oto.waitText(\"Hello\"); // NOI18N\n } catch (Throwable th) {\n try {\n // capture screen before cleanup in finally clause is completed\n PNGEncoder.captureScreen(getWorkDir().getAbsolutePath() + File.separator + \"screenBeforeCleanup.png\");\n } catch (Exception e1) {\n // ignore it\n }\n th.printStackTrace(getLog());\n throw th;\n } finally {\n if (debuggerStarted) {\n // finish debugging\n new FinishDebuggerAction().perform();\n // check status line\n // \"SampleProject (debug-single)\"\n String outputTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"debug-single\"}); // NOI18N\n // \"Finished building SampleProject (debug-single)\"\n String finishedMessage = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new Object[]{outputTarget});\n stt.waitText(finishedMessage);\n }\n stt.stop();\n // delete sample class\n sampleClass1Node.delete();\n String confirmTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_SafeDel_Delete\"); // NOI18N\n String confirmButton = UIManager.getDefaults().get(\"OptionPane.okButtonText\").toString(); // NOI18N\n // \"Confirm Object Deletion\"\n new JButtonOperator(new NbDialogOperator(confirmTitle), confirmButton).push();\n }\n }", "public void continueDebugStep() {\n \tthis.continueDebug = true;\n }", "public String _class_globals() throws Exception{\n_msgmodule = new Object();\n //BA.debugLineNum = 10;BA.debugLine=\"Private BackPanel As Panel\";\n_backpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 11;BA.debugLine=\"Private MsgOrientation As String\";\n_msgorientation = \"\";\n //BA.debugLineNum = 12;BA.debugLine=\"Private MsgNumberOfButtons As Int\";\n_msgnumberofbuttons = 0;\n //BA.debugLineNum = 14;BA.debugLine=\"Private mbIcon As ImageView\";\n_mbicon = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Dim Panel As Panel\";\n_panel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private Shadow As Panel\";\n_shadow = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 17;BA.debugLine=\"Dim Title As Label\";\n_title = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 18;BA.debugLine=\"Private MsgScrollView As ScrollView\";\n_msgscrollview = new anywheresoftware.b4a.objects.ScrollViewWrapper();\n //BA.debugLineNum = 19;BA.debugLine=\"Dim Message As Label\";\n_message = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 20;BA.debugLine=\"Dim YesButtonPanel As Panel\";\n_yesbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Dim NoButtonPanel As Panel\";\n_nobuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Dim CancelButtonPanel As Panel\";\n_cancelbuttonpanel = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"Dim YesButtonCaption As Label\";\n_yesbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 25;BA.debugLine=\"Dim NoButtonCaption As Label\";\n_nobuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 26;BA.debugLine=\"Dim CancelButtonCaption As Label\";\n_cancelbuttoncaption = new anywheresoftware.b4a.objects.LabelWrapper();\n //BA.debugLineNum = 28;BA.debugLine=\"Private MsgBoxEvent As String\";\n_msgboxevent = \"\";\n //BA.debugLineNum = 29;BA.debugLine=\"Dim ButtonSelected As String\";\n_buttonselected = \"\";\n //BA.debugLineNum = 31;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public anywheresoftware.b4a.objects.PanelWrapper _asview() throws Exception{\nif (true) return _wholescreen;\n //BA.debugLineNum = 37;BA.debugLine=\"End Sub\";\nreturn null;\n}", "private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }", "public native void debugStateCapture();", "public static String _activity_pause(boolean _userclosed) throws Exception{\nif (_userclosed==anywheresoftware.b4a.keywords.Common.False) { \n //BA.debugLineNum = 49;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n };\n //BA.debugLineNum = 51;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static void ClearDebugInfo() { throw Extensions.todo(); }", "public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "public String _class_globals() throws Exception{\n_meventname = \"\";\n //BA.debugLineNum = 7;BA.debugLine=\"Private mCallBack As Object 'ignore\";\n_mcallback = new Object();\n //BA.debugLineNum = 8;BA.debugLine=\"Public mBase As B4XView 'ignore\";\n_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Private xui As XUI 'ignore\";\n_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();\n //BA.debugLineNum = 10;BA.debugLine=\"Private cvs As B4XCanvas\";\n_cvs = new anywheresoftware.b4a.objects.B4XCanvas();\n //BA.debugLineNum = 11;BA.debugLine=\"Private mValue As Int = 75\";\n_mvalue = (int) (75);\n //BA.debugLineNum = 12;BA.debugLine=\"Private mMin, mMax As Int\";\n_mmin = 0;\n_mmax = 0;\n //BA.debugLineNum = 13;BA.debugLine=\"Private thumb As B4XBitmap\";\n_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();\n //BA.debugLineNum = 14;BA.debugLine=\"Private pnl As B4XView\";\n_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 15;BA.debugLine=\"Private xlbl As B4XView\";\n_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();\n //BA.debugLineNum = 16;BA.debugLine=\"Private CircleRect As B4XRect\";\n_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();\n //BA.debugLineNum = 17;BA.debugLine=\"Private ValueColor As Int\";\n_valuecolor = 0;\n //BA.debugLineNum = 18;BA.debugLine=\"Private stroke As Int\";\n_stroke = 0;\n //BA.debugLineNum = 19;BA.debugLine=\"Private ThumbSize As Int\";\n_thumbsize = 0;\n //BA.debugLineNum = 20;BA.debugLine=\"Public Tag As Object\";\n_tag = new Object();\n //BA.debugLineNum = 21;BA.debugLine=\"Private mThumbBorderColor As Int = 0xFF5B5B5B\";\n_mthumbbordercolor = (int) (0xff5b5b5b);\n //BA.debugLineNum = 22;BA.debugLine=\"Private mThumbInnerColor As Int = xui.Color_White\";\n_mthumbinnercolor = _xui.Color_White;\n //BA.debugLineNum = 23;BA.debugLine=\"Private mCircleFillColor As Int = xui.Color_White\";\n_mcirclefillcolor = _xui.Color_White;\n //BA.debugLineNum = 24;BA.debugLine=\"Private mCircleNonValueColor As Int = 0xFFB6B6B6\";\n_mcirclenonvaluecolor = (int) (0xffb6b6b6);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }", "public void debug()\r\n {\n \t\treload();\r\n }", "public String _setvalue(int _v) throws Exception{\n_mvalue = (int) (__c.Max(_mmin,__c.Min(_mmax,_v)));\n //BA.debugLineNum = 149;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 150;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo3287b() {\n }", "public static void normalDebug(){\n enableVerbos = false;\n }", "private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }", "void debug(String a, String b) {\n\t\t}", "public void mo9137b() {\n }", "private static void printDebug(String s)\n {\n }", "public void mo115190b() {\n }", "public void testDeleteBreakpoint() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebp.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n// if (LineDebuggerTest.inEmbeddedBrowser) { // workaround for 226022\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// }\n currentFile.select(\"console.log(\\\"start\\\");\"); // NOI18N\n new ToggleBreakpointAction().perform(currentFile.txtEditorPane());\n\n currentFile.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"debug.html\", currentFile.getName());\n cleanBreakpoints();\n endTest();\n }", "void debug(String msg)\n{\n if (yydebug)\n System.out.println(msg);\n}", "void debug(String msg)\n{\n if (yydebug)\n System.out.println(msg);\n}", "@Override\n\tpublic void traceExit() {\n\n\t}", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "private static String callMethodAndLine() {\n\t\tStackTraceElement thisMethodStack = (new Exception()).getStackTrace()[4];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb\n.append(AT)\n\t\t\t\t.append(thisMethodStack.getClassName() + \".\")\n\t\t\t\t.append(thisMethodStack.getMethodName())\n\t\t\t\t.append(\"(\" + thisMethodStack.getFileName())\n\t\t\t\t.append(\":\" + thisMethodStack.getLineNumber() + \") \");\n\t\treturn sb.toString();\n\t}", "public void mo23813b() {\n }", "public static void setDebug(int b) {\n debug = b;\n }", "public static void debugInfo() { throw Extensions.todo(); }", "private void debug(String str) {\n }", "public abstract int trace();", "public void debug(String comment);", "protected abstract void trace_end_run();", "public void testTraceFile02() {\n \n \t\tfinal File traceFile = OSGiTestsActivator.getContext().getDataFile(getName() + \".trace\"); //$NON-NLS-1$\n \t\tTestDebugTrace debugTrace = this.createDebugTrace(traceFile);\n \t\tTraceEntry[] traceOutput = null;\n \t\tfinal String exceptionMessage1 = \"An error 1\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage2 = \"An error 2\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage3 = \"An error 3\"; //$NON-NLS-1$\n \t\ttry {\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 1\", new Exception(exceptionMessage1)); //$NON-NLS-1$ //$NON-NLS-2$ \n \t\t\tdebugTrace.trace(\"/notset\", \"testing 2\", new Exception(exceptionMessage2)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 3\", new Exception(exceptionMessage3)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\ttraceOutput = readTraceFile(traceFile); // Note: this call will also delete the trace file\n \t\t} catch (InvalidTraceEntry invalidEx) {\n \t\t\tfail(\"Failed 'DebugTrace.trace(option, message, Throwable)' test as an invalid trace entry was found. Actual Value: '\" + invalidEx.getActualValue() + \"'.\", invalidEx); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tfinal StringBuffer expectedThrowableText1 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText1.append(exceptionMessage1);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText1.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Wrong number of trace entries\", 2, traceOutput.length); //$NON-NLS-1$\n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[0].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[0].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[0].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[0].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[0].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 1\", traceOutput[0].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[0].getThrowableText().startsWith(expectedThrowableText1.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText1.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[0].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tassertEquals(\"Wrong number of trace entries for trace without an exception\", 2, traceOutput.length); //$NON-NLS-1$\n \n \t\tfinal StringBuffer expectedThrowableText2 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText2.append(exceptionMessage3);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText2.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[1].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[1].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[1].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[1].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[1].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 3\", traceOutput[1].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[1].getThrowableText().startsWith(expectedThrowableText2.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText2.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[1].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\t// delete the trace file\n \t\ttraceFile.delete();\n \t}", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public void b()\r\n/* 16: */ {\r\n/* 17:15 */ super.b();\r\n/* 18: */ \r\n/* 19:17 */ this.n.add(new bug(0, this.l / 2 - 100, 140, cwc.a(\"gui.cancel\", new Object[0])));\r\n/* 20: */ }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n Object object11 = new Object();\n Object object12 = new Object();\n Object object13 = new Object();\n Object object14 = new Object();\n Object object15 = new Object();\n Object object16 = new Object();\n Object object17 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3489, \", \");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n // Undeclared exception!\n fBProcedureCall0.registerOutParam(1263, 1263);\n }", "private void sub() {\n\n\t}", "public String _ime_heightchanged(int _newheight,int _oldheight) throws Exception{\n_paymentpage.setHeight((int) (_paymentpage.getHeight()-_newheight));\n //BA.debugLineNum = 227;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo21791P() {\n }", "public static void foo() {\n\t\t\tSystem.out.println(\"Sub foo....\");\n\t\t}", "public void mo3749d() {\n }", "public static String _but_cerrar_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 450;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n //BA.debugLineNum = 451;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo21789N() {\n }", "public void mo21779D() {\n }", "private void debugProgram(AbsoluteAddress location, BPState curState, FileProcess fileState, FileProcess bkFile) {\n\t\tString fileName = Program.getProgram().getFileName();\n\t\tif (location != null && (location.toString().contains(\"FFFFFFFFF\")\n\t\t// ******************************************\n\t\t// Virus.Win32.HLLO.Momac.a\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLO.Momac.a\") && (location.toString().contains(\"40130c\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Atak.e\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Atak.e\") && (location.toString().contains(\"404cf0\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// Virus.Win32.ZMist\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.ZMist\") && (location.toString().contains(\"402d01\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_pespin.exe\n\t\t\t\t|| (fileName.equals(\"api_test_pespin.exe\") && (location.toString().contains(\"40669e\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yoda.exe\n\t\t\t\t|| (fileName.equals(\"api_test_yoda.exe\") && (location.toString().contains(\"4045fb\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_vmprotect.exe\n\t\t\t\t|| (fileName.equals(\"api_test_vmprotect.exe\") && (\n\t\t\t\t// location.toString().contains(\"4c11b0\")\n\t\t\t\tlocation.toString().contains(\"4b9da5\")))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_yc1.2.exe\n\t\t\t\t|| (fileName.equals(\"api_test_v2.3_lvl1.exe\") && \n\t\t\t\t(location.toString().contains(\"00000000001\")\n\t\t\t\t|| location.toString().contains(\"424a41\") // API GetLocalTime\n\t\t\t\t|| location.toString().contains(\"436daf\") // API CreateFile\n\t\t\t\t|| location.toString().contains(\"436ef8\") // API CreateFile\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"436bc7\") // RET\n\t\t\t\t|| location.toString().contains(\"437b16\") // After STI\n\t\t\t\t|| location.toString().contains(\"43ce7c\") // After STI \n\t\t\t\t|| location.toString().contains(\"43f722\") // API GetVersionExA\n\t\t\t\t|| location.toString().contains(\"43d397\") // API GetCommandLine\t\t\t\t\n\t\t\t\t\n\t\t\t\t|| location.toString().contains(\"44228a\") // Target\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"api_test_aspack.exe\") && (location.toString().contains(\"4043c2\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// api_test_aspack.exe\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Cabanas.2999\") && (location.toString().contains(\"40497b\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Apbost.c\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Apbost.c\") && (location.toString().contains(\"4046e8\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t// ******************************************\n\t\t\t\t// ******************************************\n\t\t\t\t// Email-Worm.Win32.Navidad.b\n\t\t\t\t|| (fileName.equals(\"Email-Worm.Win32.Navidad.b\") && \n\t\t\t\t\t\t(location.toString().contains(\"409239\")\n\t\t\t\t|| location.toString().contains(\"409227\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Adson.1559\") && \n\t\t\t\t\t\t(location.toString().contains(\"4094b3\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLP.Delf.d\") && \n\t\t\t\t\t\t(location.toString().contains(\"401324\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\t\t\t\t\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.HLLC.Asive\") && \n\t\t\t\t(location.toString().contains(\"401130\")\n\t\t\t\t\t\t//|| location.toString().contains(\"402058\")\n\t\t\t\t// || location.toString().contains(\"408184\")\n\t\t\t\t))\n\n\t\t// Virus.Win32.Aztec.01\n\t\t\t\t|| (fileName.equals(\"Virus.Win32.Aztec.01\") && \n\t\t\t\t(location.toString().contains(\"40134e\")\n\t\t\t\t|| location.toString().contains(\"401312\")\n\t\t\t\t|| location.toString().contains(\"40106c\")\n\t\t\t\t)))) {\n\t\t\t//if (curState.getEnvironement().getRegister().getRegisterValue(\"eax\").toString().equals(\"7c800c00\"))\t\t\t\n\t\t\tbackupState(curState, fileState);\n\t\t\t//backupStateAll(curState, bkFile);\n\t\t\t//program.generageCFG(program.getAbsolutePathFile() + \"_test\");\n\t\t\t//program.generageCFG(\"/asm/cfg/\" + program.getFileName() + \"_test\");\n\t\t\tSystem.out.println(\"Debug at:\" + location.toString());\n\t\t}\n\t\t/*\n\t\t * if (location != null && location.toString().contains(\"0040481b\") &&\n\t\t * Program.getProgram().getFileName()\n\t\t * .equals(\"Virus.Win32.Cabanas.2999\")) { // Value ecx =\n\t\t * env.getRegister().getRegisterValue(\"ecx\"); String s1 =\n\t\t * curState.getEnvironement().getMemory() .getText(this, 4215362, 650);\n\t\t * System.out.println(\"Decrypted String: \" + s1); }\n\t\t */\n\t}", "public void testTraceFile09() {\n \n \t\tfinal File traceFile = OSGiTestsActivator.getContext().getDataFile(getName() + \".trace\"); //$NON-NLS-1$\n \t\tTestDebugTrace debugTrace = this.createDebugTrace(traceFile);\n \t\tdebugOptions.setOption(getName() + \"/debug|path\", \"true\");\n \t\tTraceEntry[] traceOutput = null;\n \t\ttry {\n \t\t\tdebugTrace.trace(\"/debug|path\", \"A message with a | character.\");\n \t\t\tdebugTrace.trace(\"/debug|path\", \"|A message with | multiple || characters.|\");\n \t\t\ttraceOutput = readTraceFile(traceFile); // Note: this call will also delete the trace file\n \t\t} catch (InvalidTraceEntry invalidEx) {\n \t\t\tfail(\"Failed 'DebugTrace.trace(option, message)' test as an invalid trace entry was found. Actual Value: '\" + invalidEx.getActualValue() + \"'.\", invalidEx); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \t\tassertEquals(\"Wrong number of entries\", 2, traceOutput.length);\n\t\tString optionPath = decodeString(traceOutput[0].getOptionPath());\n\t\tString message = decodeString(traceOutput[0].getMessage());\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug|path\", optionPath); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"Trace message is not correct\", \"A message with a | character.\", message); //$NON-NLS-1$ //$NON-NLS-2$\n\t\toptionPath = decodeString(traceOutput[1].getOptionPath());\n\t\tmessage = decodeString(traceOutput[1].getMessage());\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug|path\", optionPath); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"Trace message is not correct\", \"|A message with | multiple || characters.|\", message); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t// delete the trace file\n \t\ttraceFile.delete();\n \t}", "public void mo21782G() {\n }", "private static void printFunctionCalls() {\n dvm.printFunctionCalls();\n }", "protected void brkt() {\n println(breakPoints.toString());\n }", "void mo7441d(C0933b bVar);", "void mo7439b(C0933b bVar);", "public void mo115188a() {\n }", "public String _class_globals() throws Exception{\n_ws = new anywheresoftware.b4j.object.WebSocket();\r\n //BA.debugLineNum = 5;BA.debugLine=\"Public page As ABMPage\";\r\n_page = new com.ab.abmaterial.ABMPage();\r\n //BA.debugLineNum = 7;BA.debugLine=\"Private theme As ABMTheme\";\r\n_theme = new com.ab.abmaterial.ABMTheme();\r\n //BA.debugLineNum = 9;BA.debugLine=\"Private ABM As ABMaterial 'ignore\";\r\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 11;BA.debugLine=\"Public Name As String = \\\"CompComboPage\\\"\";\r\n_name = \"CompComboPage\";\r\n //BA.debugLineNum = 13;BA.debugLine=\"Private ABMPageId As String = \\\"\\\"\";\r\n_abmpageid = \"\";\r\n //BA.debugLineNum = 16;BA.debugLine=\"Dim myToastId As Int\";\r\n_mytoastid = 0;\r\n //BA.debugLineNum = 17;BA.debugLine=\"Dim combocounter As Int = 4\";\r\n_combocounter = (int) (4);\r\n //BA.debugLineNum = 18;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "@Override\r\n\tpublic void breathe() {\n\t\tSystem.out.println(\"#gasp#\");\r\n\t}", "public void mo8738a() {\n }", "boolean k2h_set_bumup_debug_signal_user1();", "void trace(String a, String b) {\n\t\t}", "public void mo56167c() {\n }", "public void mo21787L() {\n }", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "void debug(String msg)\n {\n if (yydebug)\n System.out.println(msg);\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2, \"\\n\");\n assertEquals(2, fBProcedureParam0.getPosition());\n }", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo44053a() {\n }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void mo6944a() {\n }", "private void psvm() {\n\t\tSystem.out.println(\"test\");\r\n\t}", "LabyDebugger getLabyDebugger();", "void dumpTraceLine(String s)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[trace] \"); //$NON-NLS-1$\n\t\tsb.append(s);\n\t\tout(sb.toString());\n\t}", "public void mo21793R() {\n }", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \");Thread.sleep(10);\n cenv.DumpIR(constructorFun);\n\n System.out.println(\"constructor initializer: \");Thread.sleep(10);\n cenv.DumpIR(constructor_initval_fun);\n\n System.out.println(\"\\n----class method: \");\n for (var i:classMethod.members){\n System.out.println(\"method: \" + i.funSymbol.str);Thread.sleep(10);\n cenv.DumpIR(i.funRef);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void mo41086b();", "protected abstract void debug(String msg);", "public void tracejar()\r\n\t{\r\n\t\tSystem.out.println(\"****************************************\");\r\n\t}", "void mo7378a(C1320b bVar, String str) throws RemoteException;", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "public static void displayProgramEnd() \r\n {\n }", "void debug() {\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tSystem.out.print(j+\":\"+(defined[i][j]?\"T\":\"F\")+\" \"+\n\t\t\t\t\t\tc[i][j]+\" p=\"+path[i][j]+\" f=\"+f[i][j]+\"; \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "void mo7386e(C1320b bVar, String str) throws RemoteException;", "@Override\r\n public void dump ()\r\n {\r\n super.dump();\r\n System.out.println(\" line=\" + getLine());\r\n }", "public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }", "public void setDebug(IRubyObject debug) {\n this.debug = debug.isTrue();\n }", "public void debugDraw(Graphics g)\n\t{\n\t}" ]
[ "0.7480496", "0.7448993", "0.6989201", "0.64332575", "0.64119005", "0.6184409", "0.6175747", "0.61259884", "0.60123533", "0.5994837", "0.5959443", "0.59240335", "0.58606243", "0.57725495", "0.5692462", "0.55906725", "0.55807066", "0.5564395", "0.5560114", "0.5546505", "0.55094796", "0.54986495", "0.5491429", "0.54845375", "0.54692787", "0.54665977", "0.5456531", "0.5452634", "0.54356617", "0.54248494", "0.5421578", "0.53937304", "0.53558075", "0.5339251", "0.5336565", "0.5335264", "0.5335264", "0.52999884", "0.52967757", "0.5288914", "0.5279397", "0.5271821", "0.5259705", "0.5257014", "0.5245088", "0.52436566", "0.52247894", "0.5203319", "0.5196235", "0.51824194", "0.51818806", "0.5180467", "0.5172839", "0.51713234", "0.5167575", "0.5156788", "0.5150015", "0.51447064", "0.51301074", "0.5127619", "0.5123936", "0.5120946", "0.51145387", "0.5105558", "0.5101485", "0.51012737", "0.51006794", "0.50999767", "0.5097907", "0.5091595", "0.5089046", "0.50888634", "0.50882024", "0.5075276", "0.5073595", "0.50735706", "0.50704545", "0.5065993", "0.5064397", "0.5063353", "0.5060298", "0.5058699", "0.5042931", "0.50428784", "0.5038529", "0.50243205", "0.5011765", "0.50070745", "0.5005886", "0.5002339", "0.49963298", "0.49937543", "0.49934334", "0.49917942", "0.49910274", "0.49886626", "0.49850297", "0.49841908", "0.4981945", "0.4981945", "0.49814707" ]
0.0
-1
gambar Hospital di click
public void clickRS(View view){ Intent i = new Intent(this,Hospital.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }", "public void click(ToddEthottGame game);", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\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}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}", "void clickAmFromMenu();", "public void OnclickGrabar(View v) {\n if (grabando) {\n\n nograbar(v);\n } else {\n\n grabar(v);\n }\n grabando = !grabando;\n\n\n }", "public void theGameMenuClicked() {\n System.out.println(\"THE GAME (you just lost it)\");\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_h);\n TampilGambar.startAnimation(animScale);\n suaraH.start();\n }", "void clickFmFromMenu();", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "@Override\n public void clicked(InputEvent event, float x, float y) {\n audioManager.playEvilBunnieGod();\n audioManager.setNewState(State.IDLE);\n manager.setScreen(new GameplayScreen(manager, 1));\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_g);\n TampilGambar.startAnimation(animScale);\n suaraG.start();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl());\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_abu);\n TampilGambar.startAnimation(animScale);\n suara0.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_j);\n TampilGambar.startAnimation(animScale);\n suaraJ.start();\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_a);\n TampilGambar.startAnimation(animScale);\n suaraA.start();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent imiddle_gaza = new Intent(man_lamar.this,man_middle_gaza.class);\n\t\t\t\tstartActivity(imiddle_gaza);\n\t\t\t\n\t\t\t}", "public void act() \n {\n GreenfootImage img = new GreenfootImage(200,200); \n img.setFont(new Font(font, false, true,28));\n img.setColor(color);\n img.drawString(text,50,50);\n setImage(img);\n blink();\n //blink(); \n //if(Greenfoot.mouseClicked(this))\n \n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_i);\n TampilGambar.startAnimation(animScale);\n suaraI.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_l);\n TampilGambar.startAnimation(animScale);\n suaraL.start();\n }", "public void cariGambar(View view) {\n Intent i = new Intent(this, CariGambar.class);\n //memulai activity cari gambar\n startActivity(i);\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl()+1);\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_c);\n TampilGambar.startAnimation(animScale);\n suaraC.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_ungu);\n TampilGambar.startAnimation(animScale);\n suara7.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_e);\n TampilGambar.startAnimation(animScale);\n suaraE.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_oren);\n TampilGambar.startAnimation(animScale);\n suara8.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hijau);\n TampilGambar.startAnimation(animScale);\n suara3.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_p);\n TampilGambar.startAnimation(animScale);\n suaraP.start();\n }", "@Override\n public void onClick(View view) {\n kurangIsi();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_nila);\n TampilGambar.startAnimation(animScale);\n suara5.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_s);\n TampilGambar.startAnimation(animScale);\n suaraS.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_m);\n TampilGambar.startAnimation(animScale);\n suaraM.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_o);\n TampilGambar.startAnimation(animScale);\n suaraO.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_pink);\n TampilGambar.startAnimation(animScale);\n suara6.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_coklat);\n TampilGambar.startAnimation(animScale);\n suara11.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_merah);\n TampilGambar.startAnimation(animScale);\n suara1.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_d);\n TampilGambar.startAnimation(animScale);\n suaraD.start();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent ikhan_yunis = new Intent(man_lamar.this,man_khan_yunis.class);\n\t\t\t\tstartActivity(ikhan_yunis);\n\t\t\t\n\t\t\t}", "void onClick();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_u);\n TampilGambar.startAnimation(animScale);\n suaraU.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_biru);\n TampilGambar.startAnimation(animScale);\n suara4.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_k);\n TampilGambar.startAnimation(animScale);\n suaraK.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_t);\n TampilGambar.startAnimation(animScale);\n suaraT.start();\n }", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_b);\n TampilGambar.startAnimation(animScale);\n suaraB.start();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tgeti();\n\t\t\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_f);\n TampilGambar.startAnimation(animScale);\n suaraF.start();\n }", "@Override\n public void clicked(InputEvent event, float x, float y) {\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new PlayScreen(game, level));\n dispose();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_z);\n TampilGambar.startAnimation(animScale);\n suaraZ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_w);\n TampilGambar.startAnimation(animScale);\n suaraW.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_birutua);\n TampilGambar.startAnimation(animScale);\n suara9.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_v);\n TampilGambar.startAnimation(animScale);\n suaraV.start();\n }", "public void clickExplode() {\n\t\tsetBorder(UNLOCKED_BORDER);\n\t\tsetIcon(HIT_MINE_PIC);\n\t\tsetBackground(Color.RED);\n\t\tunlocked = true;\n\t}", "public void act() \n {\n checkClicked();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_n);\n TampilGambar.startAnimation(animScale);\n suaraN.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_kuning);\n TampilGambar.startAnimation(animScale);\n suara2.start();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irafah = new Intent(man_lamar.this,man_rafah.class);\n\t\t\t\tstartActivity(irafah);\n\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\tint aimr=(arg0.getY()+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint aimc=(arg0.getX()+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tint startr=(GOBJECT.hero.rect.y+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint startc=(GOBJECT.hero.rect.x+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tsmart.bfs(GOBJECT.Map.maptable[0], GOBJECT.Map.maxr, GOBJECT.Map.maxc, startr, startc, aimr, aimc);\n\t\tsmart.getRoad();\n\t\tthis.GOBJECT.mouseAn.getLive();\n\t}", "@Override\n\t public void onClick(View v) {\n \t\tsmia.setVisibility(View.VISIBLE);\n \t\t kfja.setVisibility(View.INVISIBLE);\n \t\t croa.setVisibility(View.INVISIBLE);\n \t\t dancea.setVisibility(View.INVISIBLE);\n \t\t starters.setVisibility(View.INVISIBLE);\n \t\t diz1.setVisibility(View.INVISIBLE); \n \t\t\t diz2.setVisibility(View.INVISIBLE);\n \t\t\t plaa.setVisibility(View.INVISIBLE);\n \t\t\tstarteres.setVisibility(View.INVISIBLE);\n \t \t\t diz3.setVisibility(View.INVISIBLE); \n \t\t\t diz4.setVisibility(View.INVISIBLE);\n \t\t\ttjza.setVisibility(View.INVISIBLE);\n \t startAnimationsmi();\n \t b = 0 ;\n \t }", "@Override\n\tpublic void onNaviTurnClick() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 5;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent north_gaza = new Intent(man_lamar.this,man_north_gaza.class);\n\t\t\t\tstartActivity(north_gaza);\n\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_y);\n TampilGambar.startAnimation(animScale);\n suaraY.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_q);\n TampilGambar.startAnimation(animScale);\n suaraQ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_r);\n TampilGambar.startAnimation(animScale);\n suaraR.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_x);\n TampilGambar.startAnimation(animScale);\n suaraX.start();\n }", "@Override\r\n\tpublic void onNaviTurnClick() {\n\r\n\t}", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent igaza = new Intent(man_lamar.this,man_gaza.class);\n\t\t\tstartActivity(igaza);\n\t\t\n\t\t}", "public void onClicked();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tAnimation alpha = new AlphaAnimation(0.5f, 1.0f);\n\t\t\t\t\talpha.setDuration(200);\n\t\t\t\t\tlogin.startAnimation(alpha);\n\n\t\t\t\t\tIntent intent = new Intent(Main.this, User_information.class);\n\t\t\t\t\tMain.this.startActivity(intent);\n\t\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "public void clickOnLogo() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent levelthree = new Intent(\"anky.dj.iitkgp.LEVELTHREE\");\r\n\t\t\t\tstartActivity(levelthree);\r\n\t\t\t}", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnew BriefDialog(mContext, game.key).show();\n\t\t\t}", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tswitch (arg0.getId()) {\n\n\t\t\tcase R.id.iv_title_left:// 返回\n\t\t\t\tCustomApplication.app\n\t\t\t\t\t\t.finishActivity(LessonFlashCardOpActivity.this);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.iv_title_right://\n\t\t\t\tshowPopupWindowMenu();\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.btn_remember:\n\t\t\t\tlin_is_gorget.setVisibility(View.GONE);\n\t\t\t\tlin_remember_level.setVisibility(View.VISIBLE);\n\t\t\t\tlin_forgot_level.setVisibility(View.GONE);\n\t\t\t\tbreak;\n\n\t\t\tcase R.id.btn_forget:\n\t\t\t\tlin_is_gorget.setVisibility(View.GONE);\n\t\t\t\tlin_remember_level.setVisibility(View.GONE);\n\t\t\t\tlin_forgot_level.setVisibility(View.VISIBLE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "public void clickYes ();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tbotonOnClick();\n\t\t\t}", "@Override\n\t public void onClick(View v) {\n\t\t tjza.setVisibility(View.VISIBLE);\n\t\t smia.setVisibility(View.INVISIBLE);\n\t\t kfja.setVisibility(View.INVISIBLE);\n\t\t croa.setVisibility(View.INVISIBLE);\n\t\t dancea.setVisibility(View.INVISIBLE);\n\t\t starters.setVisibility(View.INVISIBLE);\n\t\t diz1.setVisibility(View.INVISIBLE); \n\t\t\t diz2.setVisibility(View.INVISIBLE);\n\t\t\t plaa.setVisibility(View.INVISIBLE);\n\t\t\tstarteres.setVisibility(View.INVISIBLE);\n\t \t\t diz3.setVisibility(View.INVISIBLE); \n\t\t\t diz4.setVisibility(View.INVISIBLE);\n\t startAnimationtjz();\n\t b = 0 ;\n\t }", "public void click() {\n this.lastActive = System.nanoTime();\n }", "public void onClick(View v) {\n \tm_main.gameContinue();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i = new Intent(Akun.this, Riwayat_pemesanan.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n Greenfoot.playSound(\"Bridge.wav\");\n }\n }", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "@Override\n public void onBoomButtonClick(int index) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}", "public void onClick(View arg0) {\n\n Intent i = new Intent(getApplicationContext(), sejarah.class);\n\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickAutoGrease();\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}", "private void u_c_estadoMouseClicked(java.awt.event.MouseEvent evt) {\n }" ]
[ "0.7221872", "0.68671197", "0.68160033", "0.6801813", "0.677186", "0.6650193", "0.66457975", "0.6637835", "0.6607919", "0.6594445", "0.65934175", "0.657502", "0.656703", "0.6522956", "0.6521603", "0.6494494", "0.64885604", "0.64883196", "0.64844143", "0.6484057", "0.6469385", "0.64629626", "0.6462748", "0.64558417", "0.64554435", "0.64552003", "0.64459187", "0.644394", "0.64396006", "0.6438124", "0.6435386", "0.64340305", "0.6423977", "0.6420431", "0.641677", "0.64166445", "0.6413114", "0.6412303", "0.6410781", "0.6408067", "0.64061683", "0.6402891", "0.63991356", "0.6394768", "0.63932335", "0.6392643", "0.6390607", "0.63875884", "0.63857687", "0.6385244", "0.63815683", "0.63759845", "0.63715327", "0.6365668", "0.63645536", "0.6356496", "0.63564456", "0.6356343", "0.6354742", "0.63497734", "0.6349741", "0.6344364", "0.6321948", "0.63173366", "0.6317269", "0.6307009", "0.6297044", "0.6293427", "0.6283055", "0.6279478", "0.6275999", "0.6274943", "0.62730163", "0.62717855", "0.62707734", "0.6269025", "0.62619305", "0.6259368", "0.6257637", "0.62534016", "0.62508494", "0.62498957", "0.6238574", "0.6235964", "0.62346935", "0.6231686", "0.622454", "0.6216201", "0.6214002", "0.62023985", "0.61972386", "0.6190748", "0.61866814", "0.6184675", "0.6182787", "0.617867", "0.61762494", "0.61715215", "0.61715055", "0.61640257", "0.6163402" ]
0.0
-1
gambar Police di click
public void clickPolice(View view){ Intent i = new Intent(this,Police.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_a);\n TampilGambar.startAnimation(animScale);\n suaraA.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_p);\n TampilGambar.startAnimation(animScale);\n suaraP.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_abu);\n TampilGambar.startAnimation(animScale);\n suara0.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_g);\n TampilGambar.startAnimation(animScale);\n suaraG.start();\n }", "@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}", "public void click() {\n this.lastActive = System.nanoTime();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_e);\n TampilGambar.startAnimation(animScale);\n suaraE.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_b);\n TampilGambar.startAnimation(animScale);\n suaraB.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_c);\n TampilGambar.startAnimation(animScale);\n suaraC.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_j);\n TampilGambar.startAnimation(animScale);\n suaraJ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_z);\n TampilGambar.startAnimation(animScale);\n suaraZ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_o);\n TampilGambar.startAnimation(animScale);\n suaraO.start();\n }", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void OnclickGrabar(View v) {\n if (grabando) {\n\n nograbar(v);\n } else {\n\n grabar(v);\n }\n grabando = !grabando;\n\n\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_k);\n TampilGambar.startAnimation(animScale);\n suaraK.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_l);\n TampilGambar.startAnimation(animScale);\n suaraL.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_oren);\n TampilGambar.startAnimation(animScale);\n suara8.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_m);\n TampilGambar.startAnimation(animScale);\n suaraM.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_nila);\n TampilGambar.startAnimation(animScale);\n suara5.start();\n }", "public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_coklat);\n TampilGambar.startAnimation(animScale);\n suara11.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_t);\n TampilGambar.startAnimation(animScale);\n suaraT.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_f);\n TampilGambar.startAnimation(animScale);\n suaraF.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_i);\n TampilGambar.startAnimation(animScale);\n suaraI.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_h);\n TampilGambar.startAnimation(animScale);\n suaraH.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_v);\n TampilGambar.startAnimation(animScale);\n suaraV.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_biru);\n TampilGambar.startAnimation(animScale);\n suara4.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_x);\n TampilGambar.startAnimation(animScale);\n suaraX.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_w);\n TampilGambar.startAnimation(animScale);\n suaraW.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_merah);\n TampilGambar.startAnimation(animScale);\n suara1.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_y);\n TampilGambar.startAnimation(animScale);\n suaraY.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_s);\n TampilGambar.startAnimation(animScale);\n suaraS.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_birutua);\n TampilGambar.startAnimation(animScale);\n suara9.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_r);\n TampilGambar.startAnimation(animScale);\n suaraR.start();\n }", "public void click(ToddEthottGame game);", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_u);\n TampilGambar.startAnimation(animScale);\n suaraU.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_pink);\n TampilGambar.startAnimation(animScale);\n suara6.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_n);\n TampilGambar.startAnimation(animScale);\n suaraN.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_q);\n TampilGambar.startAnimation(animScale);\n suaraQ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hijau);\n TampilGambar.startAnimation(animScale);\n suara3.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_d);\n TampilGambar.startAnimation(animScale);\n suaraD.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_kuning);\n TampilGambar.startAnimation(animScale);\n suara2.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_ungu);\n TampilGambar.startAnimation(animScale);\n suara7.start();\n }", "@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 click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}", "@Override\n public void clicked(InputEvent event, float x, float y) {\n audioManager.playEvilBunnieGod();\n audioManager.setNewState(State.IDLE);\n manager.setScreen(new GameplayScreen(manager, 1));\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 }", "public void mouseClicked(MouseEvent arg0) {\n\t\tint aimr=(arg0.getY()+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint aimc=(arg0.getX()+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tint startr=(GOBJECT.hero.rect.y+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint startc=(GOBJECT.hero.rect.x+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tsmart.bfs(GOBJECT.Map.maptable[0], GOBJECT.Map.maxr, GOBJECT.Map.maxc, startr, startc, aimr, aimc);\n\t\tsmart.getRoad();\n\t\tthis.GOBJECT.mouseAn.getLive();\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickAverageInitial();\n\t\t\t}", "public void act() \n {\n checkClicked();\n }", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"Evento click ratón\");\n }", "public void mouseClicked (MouseEvent e)\r\n\t{\r\n\t\tx = e.getX ();\r\n\t\ty = e.getY ();\r\n\t\t//Rules screen photo button 'PLAY'\r\n\t\tif ((screen == 0 || screen == 4 || screen == 5) && (x > 250 && x < 320) && (y > 360 && y < 395)){ \r\n\t\t\tscreen = 1;\r\n\t\t\trepaint();\r\n\t\t}\r\n\t\t//Game screen photo button 'Press to Start'\r\n\t\telse if (screen == 1 || screen == 2 || screen == 3){ \r\n\t\t\tif ((x > 10 && x < 180) && (y > 80 && y < 105)) \r\n\t\t\t\tnewGame();\r\n\t\t\tanimateButtons ();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "public abstract void click(long ms);", "@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(View arg0) {\n\t\tParticleSystem ps = new ParticleSystem(this, 100, R.drawable.star_pink, 800);\n\t\tps.setScaleRange(0.7f, 1.3f);\n\t\tps.setSpeedRange(0.1f, 0.25f);\n\t\tps.setAcceleration(0.0001f, 90);\n\t\tps.setRotationSpeedRange(90, 180);\n\t\tps.setFadeOut(200, new AccelerateInterpolator());\n\t\tps.oneShot(arg0, 100);\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\t\t}", "public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }", "@Override\n public void clicked(InputEvent event, float x, float y) {\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new PlayScreen(game, level));\n dispose();\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tpunto1.setFilled(true);\n\t\t\t\tpunto1.setColor(Color.red);\n\t\t\t\t\tif(numClicks == 0) {\n\t\t\t\t\t\tadd(punto1, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setStartPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(engorgio1, e.getX(),e.getY());\n\n\t\t\t\t\t}\n\t\t//final\n\t\t\t\t\telse if(numClicks == 1) {\n\t\t\t\t\t\tpunto2.setFilled(true);\n\t\t\t\t\t\tpunto2.setColor(Color.blue);\n\t\t\t\t\t\tadd(punto2, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setEndPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(aprox);\n\t\t\t\t\t\tadd(engorgio2, e.getX(),e.getY());\n\t\t\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "public void mouseClicked(MouseEvent click) {\r\n\t\tif (click.getButton() == 1 && (gameState == 3)) {\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (canPlay) {\r\n\t\t\t\tplay = true;\r\n\t\t\t}else if (canStart) {\r\n\t\t\t\tstart = true;\r\n\t\t\t}else if (canIncreaseWeapon) {\r\n\t\t\t\tincreaseWeapon = true;\r\n\t\t\t}else if (canDecreaseWeapon) {\r\n\t\t\t\tdecreaseWeapon = true;\r\n\t\t\t}else if (canIncreaseDifficulty) {\r\n\t\t\t\tincreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseDifficulty) {\r\n\t\t\t\tdecreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseAI) {\r\n\t\t\t\tdecreaseAI = true;\r\n\t\t\t}else if (canIncreaseAI) {\r\n\t\t\t\tincreaseAI = true;\r\n\t\t\t}else if (canChangePlayer) {\r\n\t\t\t\tchangePlayer = true;\r\n\t\t\t}\r\n\t\t}else if (gameState == 1) {\r\n\t\t\tif (canPlayOptions) {\r\n\t\t\t\tplayOptions = true;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void click() {\n System.out.println(\"Click\");\n }", "public void clickExplode() {\n\t\tsetBorder(UNLOCKED_BORDER);\n\t\tsetIcon(HIT_MINE_PIC);\n\t\tsetBackground(Color.RED);\n\t\tunlocked = true;\n\t}", "private void checkClicked()\n {\n if (Greenfoot.mouseClicked(this))\n {\n if (musicPlaying == true)\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn); \n soundtrack.playLoop();\n musicPlaying = false;\n }\n else if (musicPlaying == false)\n {\n setImage(\"volumeOff.png\");\n GreenfootImage volumeOff = getImage();\n volumeOff.scale(70,70);\n soundtrack.stop();\n musicPlaying = true;\n }\n }\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "public void act() \n {\n GreenfootImage img = new GreenfootImage(200,200); \n img.setFont(new Font(font, false, true,28));\n img.setColor(color);\n img.drawString(text,50,50);\n setImage(img);\n blink();\n //blink(); \n //if(Greenfoot.mouseClicked(this))\n \n }", "public void act() \n {\n // Add your action code here.\n contaP++;\n if(contaP == 25)\n {\n baja();\n contaP=0;\n }\n }", "public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n if(gameOver)\n {\n mouseClicked = false;\n gameOver = false;\n gameStarted = false;\n score = 0;\n restartGame();\n pipeTimer.stop();\n startGame.start();\n }\n }", "public void mouseClicked() {\n\t\tif(gameState==0 && mouseX >= 580 && mouseX <=580+140 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Play, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to running\r\n\t\t\tgameState = 1;\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//if on menu n click instructions\r\n\t\tif(gameState==0 && mouseX >= 100 && mouseX <=450 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Instructions, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to instructions\r\n\t\t\tgameState = 3 ;\r\n\t\t}\r\n\t\t\r\n\t\t//if user clicks on back change game state while on map select or instructions\r\n\t\tif((gameState == 3||gameState == 1)&& mouseX >= 50 && mouseX <=50+125 && mouseY>=650 && mouseY<=700 )\r\n\t\t\tgameState = 0;\r\n\t\t\r\n\t\t\r\n\t\t//if they are on mapSelect and they click\r\n\t\tif(gameState==1 && mouseX > 70 && mouseX <420 && mouseY> 100 && mouseY<470){\r\n\t\t\tLOGGER.info(\"selected map1, sending over to game driver\");\r\n\t\t\tmapSelected=1;\r\n\t\t\tMAP=new Map(this, mapSelected);\r\n\t\t\tgame = new gameDriver(this, MAP);\r\n\t\t\tgameState=2;\r\n\t\t}\r\n\t\t\r\n\t\t//if they click quit while on the main menu\r\n\t\tif(gameState==0 && mouseX >= 950 && mouseX <=950+130 && mouseY>=650 && mouseY<=700 ){\r\n\t\t\tLOGGER.info(\"Detected quit button, now closing window\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t//if they click on play agagin button while at the game overscrren\r\n\t\tif(gameState==4 && mouseX>680 && mouseX<1200 && mouseY>520 && mouseY<630){\r\n\t\t\t//send them to the select menu screen\r\n\t\t\tgameState=1;\r\n\t\t}\r\n\t\t\r\n\t\t//displays rgb color values when click, no matter the screen\r\n//\t\tprintln(\"Red: \"+red(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Green: \"+green(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Blue: \"+blue(get().pixels[mouseX + mouseY * width]));\r\n//\t\tprintln();\r\n\t}", "public void mouseClicked (MouseEvent m) {\r\n \t//System.out.println(\"mouseClicked..\");\t\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickAutoGrease();\n\t\t\t}", "void onClick();", "@Override\n public void onClick(View v) {\n setGameTotal();\n\n // Call other player when click on hold\n callOtherPlayer();\n\n }", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "public void mousePressed(MouseEvent click) {\r\n\t\tif (gameState == 2) {\r\n\t\t\tif ((SwingUtilities.isLeftMouseButton(click))) {\r\n\t\t\t\tlClick = true;\r\n\t\t\t\twasReleased = false;\r\n\t\t\t\tif (!alreadyShot) {\r\n\t\t\t\t\tarrowMech();\r\n\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t}\r\n\t\t\t\talreadyShot = true;\r\n\t\t\t}\r\n\t\t\telse if (SwingUtilities.isRightMouseButton(click)) {\r\n\t\t\t\trClick = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n Greenfoot.playSound(\"Bridge.wav\");\n }\n }", "public void pressNewGame() {\n }", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "public void actionPerformed(ActionEvent ae)\n {\n if(mouseClicked)\n {\n startGame.stop();\n gameStarted = true;\n StartGame();\n }\n mouseClicked = false;\n }" ]
[ "0.67738485", "0.6771544", "0.6764764", "0.6752997", "0.67455184", "0.674004", "0.6720226", "0.6708702", "0.67032564", "0.67019737", "0.66942674", "0.6682495", "0.6681065", "0.66771007", "0.6667907", "0.66647077", "0.6663374", "0.6662894", "0.6659665", "0.66577697", "0.665493", "0.6654222", "0.6645858", "0.664287", "0.66382587", "0.66371304", "0.6635051", "0.6633927", "0.66224074", "0.66161436", "0.6612357", "0.66105324", "0.66017574", "0.660138", "0.66007566", "0.6599237", "0.65985894", "0.6596352", "0.65871394", "0.6582666", "0.65826124", "0.6579142", "0.6572037", "0.65481955", "0.6533904", "0.65257376", "0.6459163", "0.6418867", "0.63964444", "0.63889587", "0.63873386", "0.63789696", "0.6345059", "0.63187474", "0.63147956", "0.6257931", "0.6253262", "0.62369037", "0.6229982", "0.6229655", "0.6214601", "0.62068707", "0.6203716", "0.6184107", "0.6164034", "0.61534435", "0.61534435", "0.6147725", "0.613873", "0.61298996", "0.61215293", "0.61175126", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61173165", "0.61087006", "0.61042935", "0.6101854", "0.6093", "0.60798794", "0.6076752", "0.6076245", "0.60702217", "0.60673994", "0.605889", "0.6055857", "0.60538006", "0.6045826", "0.60454357", "0.6044635", "0.60360557", "0.6036046", "0.6030351" ]
0.0
-1
gambar Supermarket di click
public void clickSupermarket(View view){ Intent i = new Intent(this,Supermarket.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_g);\n TampilGambar.startAnimation(animScale);\n suaraG.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_abu);\n TampilGambar.startAnimation(animScale);\n suara0.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_k);\n TampilGambar.startAnimation(animScale);\n suaraK.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_oren);\n TampilGambar.startAnimation(animScale);\n suara8.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_coklat);\n TampilGambar.startAnimation(animScale);\n suara11.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_b);\n TampilGambar.startAnimation(animScale);\n suaraB.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_z);\n TampilGambar.startAnimation(animScale);\n suaraZ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_a);\n TampilGambar.startAnimation(animScale);\n suaraA.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_e);\n TampilGambar.startAnimation(animScale);\n suaraE.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_nila);\n TampilGambar.startAnimation(animScale);\n suara5.start();\n }", "public void click(ToddEthottGame game);", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_c);\n TampilGambar.startAnimation(animScale);\n suaraC.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_j);\n TampilGambar.startAnimation(animScale);\n suaraJ.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_pink);\n TampilGambar.startAnimation(animScale);\n suara6.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_n);\n TampilGambar.startAnimation(animScale);\n suaraN.start();\n }", "public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_m);\n TampilGambar.startAnimation(animScale);\n suaraM.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_t);\n TampilGambar.startAnimation(animScale);\n suaraT.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_x);\n TampilGambar.startAnimation(animScale);\n suaraX.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_s);\n TampilGambar.startAnimation(animScale);\n suaraS.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_kuning);\n TampilGambar.startAnimation(animScale);\n suara2.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_biru);\n TampilGambar.startAnimation(animScale);\n suara4.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_birutua);\n TampilGambar.startAnimation(animScale);\n suara9.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_h);\n TampilGambar.startAnimation(animScale);\n suaraH.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_u);\n TampilGambar.startAnimation(animScale);\n suaraU.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_y);\n TampilGambar.startAnimation(animScale);\n suaraY.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hijau);\n TampilGambar.startAnimation(animScale);\n suara3.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_f);\n TampilGambar.startAnimation(animScale);\n suaraF.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_ungu);\n TampilGambar.startAnimation(animScale);\n suara7.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_l);\n TampilGambar.startAnimation(animScale);\n suaraL.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_i);\n TampilGambar.startAnimation(animScale);\n suaraI.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_merah);\n TampilGambar.startAnimation(animScale);\n suara1.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_p);\n TampilGambar.startAnimation(animScale);\n suaraP.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_w);\n TampilGambar.startAnimation(animScale);\n suaraW.start();\n }", "public void cariGambar(View view) {\n Intent i = new Intent(this, CariGambar.class);\n //memulai activity cari gambar\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_o);\n TampilGambar.startAnimation(animScale);\n suaraO.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_v);\n TampilGambar.startAnimation(animScale);\n suaraV.start();\n }", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_d);\n TampilGambar.startAnimation(animScale);\n suaraD.start();\n }", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_r);\n TampilGambar.startAnimation(animScale);\n suaraR.start();\n }", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_q);\n TampilGambar.startAnimation(animScale);\n suaraQ.start();\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\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}", "public void clickExplode() {\n\t\tsetBorder(UNLOCKED_BORDER);\n\t\tsetIcon(HIT_MINE_PIC);\n\t\tsetBackground(Color.RED);\n\t\tunlocked = true;\n\t}", "public void OnclickGrabar(View v) {\n if (grabando) {\n\n nograbar(v);\n } else {\n\n grabar(v);\n }\n grabando = !grabando;\n\n\n }", "public void click() {\n this.lastActive = System.nanoTime();\n }", "@Override\n public void clicked(InputEvent event, float x, float y) {\n audioManager.playEvilBunnieGod();\n audioManager.setNewState(State.IDLE);\n manager.setScreen(new GameplayScreen(manager, 1));\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}", "void use(ATile clickedTile, GodSim g);", "public void mouseClicked(MouseEvent arg0) {\n\t\tint aimr=(arg0.getY()+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint aimc=(arg0.getX()+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tint startr=(GOBJECT.hero.rect.y+GOBJECT.Map.movey)/GOBJECT.Map.space;\n\t\tint startc=(GOBJECT.hero.rect.x+GOBJECT.Map.movex)/GOBJECT.Map.space;\n\t\tsmart.bfs(GOBJECT.Map.maptable[0], GOBJECT.Map.maxr, GOBJECT.Map.maxc, startr, startc, aimr, aimc);\n\t\tsmart.getRoad();\n\t\tthis.GOBJECT.mouseAn.getLive();\n\t}", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "@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}", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tintent.putExtra(\"key\", gamesdata.get(para.get(position)+1).getAmazonkey());\n\t\t\t\t\t\t\tc.startActivity(intent);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "void clickFmFromMenu();", "public void theGameMenuClicked() {\n System.out.println(\"THE GAME (you just lost it)\");\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\tParticleSystem ps = new ParticleSystem(this, 100, R.drawable.star_pink, 800);\n\t\tps.setScaleRange(0.7f, 1.3f);\n\t\tps.setSpeedRange(0.1f, 0.25f);\n\t\tps.setAcceleration(0.0001f, 90);\n\t\tps.setRotationSpeedRange(90, 180);\n\t\tps.setFadeOut(200, new AccelerateInterpolator());\n\t\tps.oneShot(arg0, 100);\n\t}", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "void clickAmFromMenu();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickAutoGrease();\n\t\t\t}", "public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }", "public void clickMarket(View view) {\n Intent i = new Intent(this,Swalayan.class);\n startActivity(i);\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@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\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickFineModulation();\n\t\t\t}", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\txgGrzlTj();\r\n\t\t\t}", "public void onBuyGoldButtonClicked(View arg0) {\n\t\tLog.d(TAG, \"Buy gas button clicked.\");\n\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// complain(\"No need! You're subscribed to infinite gas. Isn't that awesome?\");\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// if (mTank >= TANK_MAX) {\n\t\t// complain(\"Your tank is full. Drive around a bit!\");\n\t\t// return;\n\t\t// }\n\n\t\t// launch the gas purchase UI flow.\n\t\t// We will be notified of completion via mPurchaseFinishedListener\n\t\tsetWaitScreen(true);\n\t\tLog.d(TAG, \"Launching purchase flow for gas.\");\n\n\t\t/*\n\t\t * TODO: for security, generate your payload here for verification. See\n\t\t * the comments on verifyDeveloperPayload() for more info. Since this is\n\t\t * a SAMPLE, we just use an empty string, but on a production app you\n\t\t * should carefully generate this.\n\t\t */\n//\t\tString payload = \"\";\n\n//\t\tmHelper.launchPurchaseFlow(GameRenderer.mStart, SKU_350000, RC_REQUEST,mPurchaseFinishedListener, payload);\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl()+1);\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl());\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\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\tToast.makeText(c, \"No Current Updates\", Toast.LENGTH_SHORT).show();\n\t\t\t/*\tIntent i = new Intent(SingleShop.this, Gallery.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\t*///\tFragmentTransaction ft =\t((ActionBarActivity)context).getSupportFragmentManager().beginTransaction().replace(R.id.frame_container, ft).commit();;\n\n\t\t\t\t\n\t\t\t}", "private void checkClicked()\n {\n if (Greenfoot.mouseClicked(this))\n {\n if (musicPlaying == true)\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn); \n soundtrack.playLoop();\n musicPlaying = false;\n }\n else if (musicPlaying == false)\n {\n setImage(\"volumeOff.png\");\n GreenfootImage volumeOff = getImage();\n volumeOff.scale(70,70);\n soundtrack.stop();\n musicPlaying = true;\n }\n }\n }", "public void act() \n {\n GreenfootImage img = new GreenfootImage(200,200); \n img.setFont(new Font(font, false, true,28));\n img.setColor(color);\n img.drawString(text,50,50);\n setImage(img);\n blink();\n //blink(); \n //if(Greenfoot.mouseClicked(this))\n \n }", "public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n Greenfoot.playSound(\"Bridge.wav\");\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickAverageInitial();\n\t\t\t}", "public void mouseClicked (MouseEvent e)\r\n\t{\r\n\t\tx = e.getX ();\r\n\t\ty = e.getY ();\r\n\t\t//Rules screen photo button 'PLAY'\r\n\t\tif ((screen == 0 || screen == 4 || screen == 5) && (x > 250 && x < 320) && (y > 360 && y < 395)){ \r\n\t\t\tscreen = 1;\r\n\t\t\trepaint();\r\n\t\t}\r\n\t\t//Game screen photo button 'Press to Start'\r\n\t\telse if (screen == 1 || screen == 2 || screen == 3){ \r\n\t\t\tif ((x > 10 && x < 180) && (y > 80 && y < 105)) \r\n\t\t\t\tnewGame();\r\n\t\t\tanimateButtons ();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n if (!vKenalan()){\n dialog.show();\n berbicara.play(\"it seems like we haven't met yet, don't know it then don't love, let's know you first\");\n return;\n }\n // untuk toogle\n if (diam){\n bolehMendengarkan();\n diam = false;\n }else {\n tidakBolehMendengarkan();\n diam = true;\n }\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "public void mouseClicked(MouseEvent click) {\r\n\t\tif (click.getButton() == 1 && (gameState == 3)) {\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (canPlay) {\r\n\t\t\t\tplay = true;\r\n\t\t\t}else if (canStart) {\r\n\t\t\t\tstart = true;\r\n\t\t\t}else if (canIncreaseWeapon) {\r\n\t\t\t\tincreaseWeapon = true;\r\n\t\t\t}else if (canDecreaseWeapon) {\r\n\t\t\t\tdecreaseWeapon = true;\r\n\t\t\t}else if (canIncreaseDifficulty) {\r\n\t\t\t\tincreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseDifficulty) {\r\n\t\t\t\tdecreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseAI) {\r\n\t\t\t\tdecreaseAI = true;\r\n\t\t\t}else if (canIncreaseAI) {\r\n\t\t\t\tincreaseAI = true;\r\n\t\t\t}else if (canChangePlayer) {\r\n\t\t\t\tchangePlayer = true;\r\n\t\t\t}\r\n\t\t}else if (gameState == 1) {\r\n\t\t\tif (canPlayOptions) {\r\n\t\t\t\tplayOptions = true;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\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 public void clicked(InputEvent event, float x, float y) {\n selecionado.play();\n ((Game) Gdx.app.getApplicationListener()).setScreen(new PlayScreen(game, level));\n dispose();\n }", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void pressNewGame() {\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void act() \n {\n checkClicked();\n }", "public void mouseClicked(MouseEvent me) {\r\n\t\tint x_coordinate = me.getX();\r\n\t\tint y_coordinate = me.getY();\r\n\t\tString name;\r\n\t\tString out;\r\n\r\n\t\tif (risk.getState() == RiskGameModel.NEW_GAME) { // 0\r\n\t\t\t// startup\r\n\t\t\tSystem.out.println(\"status \" + risk.getState());\r\n\t\t\trisk.gamePhaseSetup(x_coordinate, y_coordinate);\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tstatusLabel.setText(\"Place an army on a unoccupied territory\");\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.INITIAL_REINFORCE) { // 1\r\n\t\t\t// startup\r\n\t\t\tSystem.out.println(\"status \" + risk.getState());\r\n\t\t\trisk.gamePhaseSetup(x_coordinate, y_coordinate);\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tstatusLabel.setText(\"Place an army on a territory you occupy\");\r\n\t\t\tUtility.writeLog(\"initial reinforcement stage\");\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.ATTACK) {\r\n\t\t\trisk.notifyPhaseViewChange();\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\t\r\n\t\t\tout = risk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\trisk.notifyPhaseViewChange();\r\n\r\n\t\t}\r\n\t\tif (risk.getState() == RiskGameModel.START_TURN) {\r\n\t\t\trisk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\trisk.active = risk.curPlayer;\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tstatusLabel.setText(\"Recieved a bonus of \" + risk.curPlayer.getNumberOfArmies());\r\n\t\t\tUtility.writeLog(name + \" got bonus armies\");\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.REINFORCE) {\r\n\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\trisk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\trisk.notifyPhaseViewChange();\r\n\t\t\tUtility.writeLog(name + \" got\" + risk.curPlayer.getNumberOfArmies() + \" left to place\");\r\n\t\t\tstatusLabel.setText(\"You have \" + risk.curPlayer.getNumberOfArmies() + \" left to place\");\r\n\t\t\tif (risk.curPlayer.getNumberOfArmies() == 0) {\r\n\t\t\t\trisk.setState(RiskGameModel.ACTIVE_TURN);\r\n\t\t\t\tUtility.writeLog(name + \" entered active turn\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.START_TURN) {\r\n\t\t\trisk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\trisk.active = risk.curPlayer;\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tstatusLabel.setText(\"Recieved a bonus of \" + risk.curPlayer.getNumberOfArmies());\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.ACTIVE_TURN) {\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tstatusLabel.setText(\"What would you like to do?\");\r\n\t\t\tEndButton.setVisible(true);\r\n\t\t\tFortifyButton.setVisible(true);\r\n\t\t\tAttackButton.setText(\"Attack\");\r\n\r\n\t\t\tAttackButton.setVisible(true);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.ATTACKING) {\r\n\t\t\tname = risk.curPlayer.getName();\r\n\t\t\tAttackButton.setText(\"Retreat\");\r\n\t\t\tstatusLabel.setText(\"Select an opposing territory\");\r\n\t\t\tout = risk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\tUtility.writeLog(name + \" entered attacking phase.\");\r\n\t\t\t// System.out.println(out);\r\n\t\t\trisk.notifyPhaseViewChange();\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.ATTACK_PHASE) {\r\n\t\t\t// jInternalFrame1.setVisible(true);\r\n\t\t\tint attackArmies = risk.aTerritory.getArmies();\r\n\t\t\tint defenseArmies = risk.defenseTerritory.getArmies();\r\n\t\t\tint numofatt = 0;\r\n\t\t\t// If attackers turn\r\n\t\t\tif (risk.active == risk.curPlayer) {\r\n\t\t\t\tif (attackArmies > 3) {\r\n\t\t\t\t\tif (y_coordinate > 250 && y_coordinate < 280) {// if in\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y_coordinate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// coord\r\n\t\t\t\t\t\tif (x_coordinate > 420 && x_coordinate < 460) // If dice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// one\r\n\t\t\t\t\t\t\tnumofatt = 1;\r\n\t\t\t\t\t\tif (x_coordinate > 480 && x_coordinate < 520) // if dice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// two\r\n\t\t\t\t\t\t\tnumofatt = 2;\r\n\t\t\t\t\t\tif (x_coordinate > 540 && x_coordinate < 580)\r\n\t\t\t\t\t\t\tnumofatt = 3;\r\n\t\t\t\t\t} // in y_coordinate coord\r\n\t\t\t\t} // if attcking with 3\r\n\t\t\t\tif (attackArmies == 3) {// if attakking with two\r\n\t\t\t\t\tif (y_coordinate > 250 && y_coordinate < 280) {\r\n\t\t\t\t\t\tif (x_coordinate > 460 && x_coordinate < 500)\r\n\t\t\t\t\t\t\tnumofatt = 1;\r\n\t\t\t\t\t\tif (x_coordinate > 510 && x_coordinate < 550)\r\n\t\t\t\t\t\t\tnumofatt = 2;\r\n\t\t\t\t\t} // in y_coordinate coord\r\n\t\t\t\t} // end if can attack with two\r\n\r\n\t\t\t\tif (attackArmies == 2) {// can only attack with one\r\n\t\t\t\t\tif (y_coordinate > 250 && y_coordinate < 280) {\r\n\t\t\t\t\t\tif (x_coordinate > 480 && x_coordinate < 520)\r\n\t\t\t\t\t\t\tnumofatt = 1;\r\n\t\t\t\t\t} // in y_coordinate\r\n\t\t\t\t} // end only attack with one\r\n\r\n\t\t\t\tif (numofatt != 0) {// change player is num is selected\r\n\t\t\t\t\trisk.active = risk.defender;\r\n\t\t\t\t\trisk.setAttack(numofatt);\r\n\t\t\t\t\tUtility.writeLog(risk.getCurrentPlayer().getName() + \" has \" + attackArmies + \" armies\");\r\n\t\t\t\t\tUtility.writeLog(risk.getCurrentPlayer().getName() + \" attacking with \" + numofatt + \" armies\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end attackers turn\r\n\r\n\t\t\t// If defenders turn\r\n\t\t\telse if (risk.active == risk.defender) {\r\n\t\t\t\tif (defenseArmies > 1 && risk.attackNum > 1) {\r\n\t\t\t\t\tif (y_coordinate > 250 && y_coordinate < 280) {\r\n\t\t\t\t\t\tif (x_coordinate > 460 && x_coordinate < 500)\r\n\t\t\t\t\t\t\tnumofatt = 1;\r\n\t\t\t\t\t\tif (x_coordinate > 510 && x_coordinate < 550)\r\n\t\t\t\t\t\t\tnumofatt = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (y_coordinate > 250 && y_coordinate < 280) {\r\n\t\t\t\t\t\tif (x_coordinate > 480 && x_coordinate < 520)\r\n\t\t\t\t\t\t\tnumofatt = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\trisk.notifyPhaseViewChange();\r\n\t\t\t\tif (numofatt > 0) {\r\n\t\t\t\t\trisk.setDefend(numofatt);\r\n\t\t\t\t\trisk.engageBattle();\r\n\t\t\t\t\tif (defenseArmies - risk.defenseTerritory.getArmies() == 1) {\r\n\t\t\t\t\t\tstatusLabel.setText(risk.curPlayer.getName() + \" has destroyed an army\");\r\n\t\t\t\t\t\tUtility.writeLog(risk.curPlayer.getName() + \" has destroyed an army\");\r\n\t\t\t\t\t} else if (defenseArmies - risk.defenseTerritory.getArmies() == 2) {\r\n\t\t\t\t\t\tstatusLabel.setText(risk.curPlayer.getName() + \" has destroyed two armies\");\r\n\t\t\t\t\t\tUtility.writeLog(risk.curPlayer.getName() + \" has destroyed two armies\");\r\n\t\t\t\t\t} else if (attackArmies - risk.aTerritory.getArmies() == 1) {\r\n\t\t\t\t\t\tstatusLabel.setText(risk.curPlayer.getName() + \" has lost an army\");\r\n\t\t\t\t\t\tUtility.writeLog(risk.curPlayer.getName() + \" has lost an army\");\r\n\t\t\t\t\t} else if (attackArmies - risk.aTerritory.getArmies() == 2) {\r\n\t\t\t\t\t\tstatusLabel.setText(risk.curPlayer.getName() + \" has lost two armies\");\r\n\t\t\t\t\t\tUtility.writeLog(risk.curPlayer.getName() + \" has lost two armies\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (risk.aTerritory.getArmies() == 1) {\r\n\t\t\t\t\t\trisk.setState(RiskGameModel.ACTIVE_TURN);\r\n\t\t\t\t\t\tstatusLabel.setText(risk.curPlayer.getName() + \" has lost the battle\");\r\n\t\t\t\t\t\tAttackButton.setText(\"Attack\");\r\n\t\t\t\t\t\tFortifyButton.setVisible(true);\r\n\t\t\t\t\t\tEndButton.setVisible(true);\r\n\t\t\t\t\t\trisk.defenseNum = 0;\r\n\t\t\t\t\t\trisk.attackNum = 0;\r\n\t\t\t\t\t\trisk.defenseTerritory = null;\r\n\t\t\t\t\t\trisk.aTerritory = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} /// end if defenders turn\r\n\r\n\t\t} // End attackPhase\r\n\r\n\t\tif (risk.getState() == RiskGameModel.DEFEATED) {\r\n\t\t\tsetState(RiskGameModel.ACTIVE_TURN);\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.CAPTURE) {\r\n\t\t\tstatusLabel.setText(\"Select number of armies to move to \" + risk.defenseTerritory.getName());\r\n\t\t\tAttackButton.setVisible(false);\r\n\t\t\tAttackButton.setText(\"Attack\");\r\n\t\t\tint max = risk.aTerritory.getArmies() - 1;\r\n\t\t\tint min = risk.attackNum;\r\n\t\t\tif (y_coordinate > 230 && y_coordinate < 257) {// if y_coordinate is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// correct\r\n\t\t\t\tif (x_coordinate > 600 && x_coordinate < 650)// if max\r\n\t\t\t\t\trisk.defenseNum = risk.aTerritory.getArmies() - 1; // max\r\n\t\t\t\tif (x_coordinate > 520 && x_coordinate < 570) { // if inc\r\n\t\t\t\t\tif (risk.defenseNum < max)\r\n\t\t\t\t\t\trisk.defenseNum++;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(\"Maximum units already selected\");\r\n\t\t\t\t} // end if sub\r\n\t\t\t\tif (x_coordinate > 440 && x_coordinate < 490) {// if dec\r\n\t\t\t\t\tif (risk.defenseNum > min)\r\n\t\t\t\t\t\trisk.defenseNum--;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(\"Minimum units already selected\");\r\n\t\t\t\t} // end if add\r\n\t\t\t\tif (x_coordinate > 360 && x_coordinate < 410)// min\r\n\t\t\t\t\trisk.defenseNum = min;\r\n\t\t\t} // end if y_coordinate coord\r\n\r\n\t\t\tif (x_coordinate > 460 && x_coordinate < 545) {// move has ben\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// clicked\r\n\t\t\t\tif (y_coordinate > 325 && y_coordinate < 355) {// then occupy\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the territory\r\n\t\t\t\t\tAttackButton.setVisible(true);\r\n\t\t\t\t\tif (risk.defenseNum == 1)\r\n\t\t\t\t\t\tstatusLabel.setText(\"1 army moved to \" + risk.defenseTerritory.getName());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(risk.defenseNum + \" armies moved to \" + risk.defenseTerritory.getName());\r\n\r\n\t\t\t\t\trisk.notifyPhaseViewChange();\r\n\t\t\t\t\trisk.setAttackDieArray(new Integer[] {0,0,0});\r\n\t\t\t\t\trisk.setDefenceDieArray(new Integer[] {0,0,0});\r\n\t\t\t\t\tUtility.writeLog(risk.getCurrentPlayer().getName() + \" has \" + risk.defenseNum + \" armies moved to \"\r\n\t\t\t\t\t\t\t+ risk.defenseTerritory.getName());\r\n\t\t\t\t\tEndButton.setVisible(true);\r\n\t\t\t\t\tFortifyButton.setVisible(true);\r\n\t\t\t\t\tif (risk.capture()) {\r\n\t\t\t\t\t\tAttackButton.setVisible(false);\r\n\t\t\t\t\t\tFortifyButton.setVisible(false);\r\n\t\t\t\t\t\tCardButton.setVisible(false);\r\n\t\t\t\t\t\tEndButton.setVisible(false);\r\n\t\t\t\t\t\tstatusLabel.setText(risk.getCurrentPlayer().getName() + \" has won the game\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, risk.getCurrentPlayer().getName() + \" has won the game\",\r\n\t\t\t\t\t\t\t\t\"Alert\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// risk.notifyPhaseViewChange();\r\n\t\t} // end capturing\r\n\r\n\t\tif (risk.getState() == RiskGameModel.FORTIFY) {\r\n\t\t\trisk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t\tstatusLabel.setText(\"Select a country to move armies too\");\r\n\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.FORTIFYING) {\r\n\t\t\trisk.gamePhaseActive(x_coordinate, y_coordinate);\r\n\t\t}\r\n\r\n\t\tif (risk.getState() == RiskGameModel.FORTIFY_PHASE) {\r\n\t\t\tint from = risk.aTerritory.getArmies();\r\n\r\n\t\t\tif (y_coordinate > 230 && y_coordinate < 257) {// if y_coordinate is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// correct\r\n\t\t\t\tif (x_coordinate > 600 && x_coordinate < 650)// if max\r\n\t\t\t\t\tif (risk.defenseNum == (from - 1))\r\n\t\t\t\t\t\tstatusLabel.setText(\"Maximum units already selected\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trisk.defenseNum = (from - 1);// all but one\r\n\t\t\t\tif (x_coordinate > 520 && x_coordinate < 570) { // if inc\r\n\t\t\t\t\tif (risk.defenseNum < (from - 1))\r\n\t\t\t\t\t\trisk.defenseNum++;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(\"Maximum units already selected\");\r\n\t\t\t\t} // end if inc\r\n\t\t\t\tif (x_coordinate > 440 && x_coordinate < 490) {// if dec\r\n\t\t\t\t\tif (risk.defenseNum > (from - 1))\r\n\t\t\t\t\t\trisk.defenseNum--;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(\"Minimum units already selected\");\r\n\t\t\t\t} // end if add\r\n\t\t\t\tif (x_coordinate > 360 && x_coordinate < 410)// min\r\n\t\t\t\t\tif (risk.defenseNum == 0)\r\n\t\t\t\t\t\tstatusLabel.setText(\"Minimum units already selected\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trisk.defenseNum = 0;\r\n\t\t\t} // end if y_coordinate coord\r\n\r\n\t\t\tif (x_coordinate > 460 && x_coordinate < 545) {// move has ben\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// clicked\r\n\t\t\t\tif (y_coordinate > 325 && y_coordinate < 355) {// then occupy\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the territory\r\n\t\t\t\t\tAttackButton.setVisible(false);\r\n\t\t\t\t\tif (risk.defenseNum == 1)\r\n\t\t\t\t\t\tstatusLabel.setText(\"1 army moved to \" + risk.defenseTerritory.getName());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tstatusLabel.setText(risk.defenseNum + \" armies moved to \" + risk.defenseTerritory.getName());\r\n\t\t\t\t\trisk.notifyPhaseViewChange();\r\n\t\t\t\t\tUtility.writeLog(risk.getCurrentPlayer().getName() + \" has \" + risk.defenseNum + \" armies moved to \"\r\n\t\t\t\t\t\t\t+ risk.defenseTerritory.getName());\r\n\t\t\t\t\tEndButton.setVisible(true);\r\n\t\t\t\t\tFortifyButton.setVisible(false);\r\n\t\t\t\t\trisk.aTerritory.looseArmies(risk.defenseNum);\r\n\t\t\t\t\trisk.defenseTerritory.addArmies(risk.defenseNum);\r\n\t\t\t\t\trisk.setState(RiskGameModel.ACTIVE_TURN);\r\n\t\t\t\t} // end y_coordinate\r\n\t\t\t} // end x_coordinate for movwe\r\n\t\t} // ..fortify phase\r\n\r\n\t\tif (risk.getState() == RiskGameModel.TRADE_CARDS) {\r\n\t\t\tif (y_coordinate > 350 && y_coordinate < 380) {\r\n\t\t\t\tif (x_coordinate > 475 && x_coordinate < 525) { // if exxti\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// button pushed\r\n\t\t\t\t\trisk.setState(RiskGameModel.ACTIVE_TURN);\r\n\t\t\t\t\tSystem.out.println(\"exit\");\r\n\t\t\t\t}\r\n\t\t\t} // end exit\r\n\t\t\trisk.notifyPhaseViewChange();\r\n\t\t} // end trade cards\r\n\r\n\t\tSystem.out.println(\"(\" + x_coordinate + \", \" + y_coordinate + \")\");\r\n\r\n\t\tjPanel1.repaint();\r\n\t\tjPanel3.repaint();\r\n\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\n public void onIconClick(View icon, float iconXPose, float iconYPose) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(Constants.FEED_ME, true);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n context.startActivity(intent);\n mMagnet.destroy();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tintent.putExtra(\"key\", gamesdata.get(para.get(position)).getAmazonkey());\n\t\t\t\t\t\t\tc.startActivity(intent);\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tintent.putExtra(\"key\", gamesdata.get(para.get(position)).getAmazonkey());\n\t\t\t\t\t\t\tc.startActivity(intent);\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.6755827", "0.66842", "0.6664455", "0.6658411", "0.6635227", "0.66158825", "0.66085255", "0.65969634", "0.65942305", "0.65911895", "0.65877146", "0.6585916", "0.6578046", "0.65755695", "0.655736", "0.65460825", "0.654586", "0.6543503", "0.65417343", "0.6538073", "0.65364695", "0.65351504", "0.6535113", "0.6534988", "0.6533615", "0.65266883", "0.6523561", "0.65205723", "0.6518219", "0.65145665", "0.65137553", "0.65119314", "0.6507581", "0.6506972", "0.6504324", "0.6497095", "0.64940816", "0.6477877", "0.64721847", "0.6471061", "0.6463143", "0.6450549", "0.642757", "0.6422004", "0.6414328", "0.64124954", "0.63785625", "0.63070923", "0.62945795", "0.6289355", "0.6235767", "0.622043", "0.61222506", "0.6102444", "0.60340655", "0.6023832", "0.5993945", "0.5984297", "0.59841615", "0.5982265", "0.5980864", "0.5975743", "0.59718287", "0.5964577", "0.59629005", "0.5956666", "0.59544975", "0.59378105", "0.59361964", "0.5931149", "0.5921115", "0.5917141", "0.5915277", "0.59083277", "0.5906756", "0.59064025", "0.5905463", "0.5902099", "0.5901257", "0.5899779", "0.589137", "0.58850497", "0.58702064", "0.58701617", "0.5869419", "0.5869419", "0.586921", "0.586921", "0.5865695", "0.5860695", "0.5858717", "0.5856792", "0.5852674", "0.58526206", "0.585184", "0.585184", "0.58491945", "0.58491945", "0.58491945", "0.58491945", "0.58491945" ]
0.0
-1