query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
Load a properties file from the classpath then from $SILVERPEAS_HOME/properties | public static Properties loadResource(String propertyName) throws IOException {
Properties properties = new Properties();
InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);
try {
if (null == in) {
String path = propertyName.replace('/', separatorChar);
path = path.replace('\\', separatorChar);
if (!path.startsWith(File.separator)) {
path = separatorChar + path;
}
File configurationFile = new File(ConfigurationHolder.getHome() + separatorChar
+ "properties" + path);
if (configurationFile.exists()) {
in = new FileInputStream(configurationFile);
}
}
if (null != in) {
properties.load(in);
}
} finally {
IOUtils.closeQuietly(in);
}
return properties;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"private void loadPropertiesFile(String propertiesFile) {\n\n\t\t//open the properties file.\n\t\t_props = new Properties();\n\n\t\t//sanity check the properties file\n\t\tFile f = new File(propertiesFile);\n\t\tif (!f.canRead()) {\n\t\t\t//print an error - can't read the props file.\n\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" cannot be read.\");\n\t\t}\n\n\t\ttry {\n\t\t\t_props.load(new FileInputStream(f));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }",
"public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\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\treturn properties;\n\t}",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}",
"private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }",
"private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}",
"private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}",
"private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"void setKarafPropertiesFileLocation(String propFile);",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"public static Properties loadProperties(String file) throws Exception {\n Properties props = new Properties();\n props.load(new FileInputStream(file));\n\n return props;\n }",
"private static final void loadProperties(Properties messages, String[] variants) {\r\n for (String variant : variants) {\r\n InputStream is = null;\r\n try {\r\n is = Thread.currentThread().getContextClassLoader().getResourceAsStream(variant);\r\n if (is != null) {\r\n messages.load(is);\r\n }\r\n } catch (IOException ex) {\r\n /**\r\n * @todo [13-Dec-2009:KASI] This should cause a RuntimeException as there's something wrong in the application\r\n * setup.\r\n */\r\n System.err.printf(MSG_COULDNOTREADPROPERTIES, variant, ex.getMessage());\r\n } finally {\r\n Utilities.close(is);\r\n }\r\n }\r\n }",
"private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public static Properties getPropertiesFromClasspath(String fileName)\n throws PropertiesFileNotFoundException {\n\n Properties props = new Properties();\n try {\n InputStream is = ClassLoader.getSystemResourceAsStream(fileName);\n if (is == null) { // try this instead\n is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);\n logger.debug(\"loaded properties file with Thread.currentThread()\");\n }\n props.load(is);\n } catch (Exception e) {\n throw new PropertiesFileNotFoundException(\n \"ERROR LOADING PROPERTIES FROM CLASSPATH >\" + fileName + \"< !!!\", e);\n }\n return props;\n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"void loadProperties(File propertiesFile) throws IOException\n {\n // Load the properties.\n LOGGER.info(\"Loading properties from \\\"{}\\\" file...\", propertiesFile);\n try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(propertiesFile), \"UTF-8\"))\n {\n properties.load(inputStreamReader);\n }\n\n // Log all properties except for password.\n StringBuilder propertiesStringBuilder = new StringBuilder();\n for (Object key : properties.keySet())\n {\n String propertyName = key.toString();\n propertiesStringBuilder.append(propertyName).append('=')\n .append(HERD_PASSWORD_PROPERTY.equalsIgnoreCase(propertyName) ? \"***\" : properties.getProperty(propertyName)).append('\\n');\n }\n LOGGER.info(\"Successfully loaded properties:%n{}\", propertiesStringBuilder.toString());\n }",
"public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }",
"private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" does not exist\");\n System.exit(1);\n }\n\n if(!f.canRead()) {\n System.err.println(\"Start-up error: The configuration file, '\" + f.getAbsolutePath() + \" is not readable\");\n System.exit(1);\n }\n\n FileInputStream fis = null;\n Properties currProps = new Properties();\n\n try {\n fis = new FileInputStream(f);\n currProps.load(fis);\n if(f.getName().startsWith(\"log.\")) {\n logProps.putAll(resolveLogFiles(currProps));\n } else {\n props.putAll(currProps);\n }\n } catch(IOException ioe) {\n System.err.println(\"Start-up error: Problem reading configuration file, '\" + f.getAbsolutePath() + \"'\");\n Util.closeQuietly(fis);\n fis = null;\n System.exit(1);\n } finally {\n Util.closeQuietly(fis);\n }\n }\n }",
"public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }",
"public static Properties load() throws IOException {\n Properties properties = new Properties();\n\n try (InputStream defaultProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH)) {\n properties.load(defaultProperties);\n }\n\n try (InputStream overwriteProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(OVERWRITE_PROPERTIES_PATH)) {\n if (overwriteProperties != null) {\n properties.load(overwriteProperties);\n }\n }\n\n String systemPropertiesPath = System.getProperty(SYSTEM_PROPERTY);\n if (systemPropertiesPath != null) {\n try (InputStream overwriteProperties = new FileInputStream(systemPropertiesPath)) {\n properties.load(overwriteProperties);\n }\n }\n\n properties.putAll(System.getProperties());\n\n return properties;\n }",
"public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }",
"private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}",
"public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }",
"public static Properties loadProperties(String name, ClassLoader loader) {\n\t\tif (name == null )\n\t\t\tthrow new IllegalArgumentException(\"null input: name\");\n\n\t\tif (name.startsWith(\"/\"))\n\t\t\tname = name.substring(1);\n\n\t\tif (name.endsWith(SUFFIX))\n\t\t\tname = name.substring(0, name.length() - SUFFIX.length());\n\n\t\tProperties result = null;\n\n\t\tInputStream in = null;\n\t\tFile propFile = new File(name);\n\n\t\ttry {\n\t\t\tif (propFile.exists()){\n\t\t\t\tin = new FileInputStream(propFile);\n\t\t\t// load a properties file\n\t\t\tresult = new Properties();\n\t\t\t\tresult.load(in);\n\t\t\tif (saveInSystem) {\n\t\t\t\tIterator iterator = result.keySet().iterator();\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tString key = (String) iterator.next();\n\t\t\t\t\tString value = result.getProperty(key);\n\t\t\t\t\tSystem.getProperties().setProperty(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\tif (loader == null)\n\t\t\t\tloader = ClassLoaderResolver.getClassLoader();\n\n\t\t\tif (LOAD_AS_RESOURCE_BUNDLE) {\n\t\t\t\tname = name.replace('/', '.');\n\n\t\t\t\t// throws MissingResourceException on lookup failures:\n\t\t\t\tfinal ResourceBundle rb = ResourceBundle.getBundle(name,\n\t\t\t\t\t\tLocale.getDefault(), loader);\n\n\t\t\t\tresult = new Properties();\n\t\t\t\tfor (Enumeration<String> keys = rb.getKeys(); keys\n\t\t\t\t\t\t.hasMoreElements();) {\n\t\t\t\t\tfinal String key = (String) keys.nextElement();\n\t\t\t\t\tfinal String value = rb.getString(key);\n\t\t\t\t\tif (saveInSystem)\n\t\t\t\t\t\tSystem.getProperties().setProperty(key, value);\n\n\t\t\t\t\tresult.put(key, value);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tname = name.replace('.', '/');\n\n\t\t\t\tif (!name.endsWith(SUFFIX))\n\t\t\t\t\tname = name.concat(SUFFIX);\n\n\t\t\t\t// returns null on lookup failures:\n\t\t\t\tin = loader.getResourceAsStream(name);\n\t\t\t\tif (in != null) {\n\t\t\t\t\tresult = new Properties();\n\t\t\t\t\tresult.load(in); // can throw IOException\n\t\t\t\t\tif (saveInSystem) {\n\t\t\t\t\t\tIterator iterator = result.keySet().iterator();\n\t\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\t\tString key = (String) iterator.next();\n\t\t\t\t\t\t\tString value = result.getProperty(key);\n\t\t\t\t\t\t\tSystem.getProperties().setProperty(key, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresult = null;\n\t\t} finally {\n\t\t\tif (in != null)\n\t\t\t\ttry {\n\t\t\t\t\tin.close();\n\t\t\t\t} catch (Throwable ignore) {\n\t\t\t\t}\n\t\t}\n\n\t\tif (THROW_ON_LOAD_FAILURE && (result == null)) {\n\t\t\tthrow new IllegalArgumentException(\"could not load [\"\n\t\t\t\t\t+ name\n\t\t\t\t\t+ \"]\"\n\t\t\t\t\t+ \" as \"\n\t\t\t\t\t+ (LOAD_AS_RESOURCE_BUNDLE ? \"a resource bundle\"\n\t\t\t\t\t\t\t: \"a classloader resource\"));\n\t\t}\n\n\t\treturn result;\n\t}",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}",
"private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public static Properties load(String basedir)\n throws Exception {\n if (!basedir.endsWith(File.separator)) {\n basedir = basedir + File.separator;\n }\n \n Properties prop = null;\n String amConfigProperties = basedir +\n SetupConstants.AMCONFIG_PROPERTIES;\n File file = new File(amConfigProperties);\n if (file.exists()) {\n prop = new Properties();\n InputStream propIn = new FileInputStream(amConfigProperties);\n try {\n prop.load(propIn);\n } finally {\n propIn.close();\n }\n } else {\n isBootstrap = true;\n String bootstrapFile = basedir + BOOTSTRAP;\n String urlBootstrap = readFile(bootstrapFile);\n prop = getConfiguration(urlBootstrap, true);\n }\n \n return prop;\n }",
"private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }",
"public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"public static Properties loadProperties(final String filename) throws IllegalArgumentException {\n final File file = new File(filename);\n final Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(file));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(\"File not found: \" + file, ex);\n } catch (IOException ex) {\n throw new IllegalArgumentException(\"Unable to load properties: \" + file, ex);\n }\n return properties;\n }",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }",
"public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }",
"public static void loadConfig(String path) throws IOException {\n \tInputStream stream = null;\n \t\n \t// Load the config\n \ttry {\n \t\t// Get the stream\n \t\ttry {\n \t\t\tstream = new FileInputStream(new File(path));\n \t\t} catch(FileNotFoundException e) {\n \t\t\tstream = NotaQL.class.getClassLoader().getResourceAsStream(path);\n \t\t}\n\n \t\tif(stream == null) {\n \t\t\tthrow new FileNotFoundException(\"Unable to find \" + path + \" in classpath.\");\n \t\t}\n\n \t\t\n \t\t// load the properties\n \t\tloadConfig(stream);\n\n \t} finally {\n \t\t// Always close the stream if any\n \t\tif (stream != null)\n \t\t\tstream.close();\n\t\t}\n }",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}",
"private void loadURL() throws IOException{\n\t\tLOGGER.debug(\"BEGIN\");\n\t\t\t\t\t\n\t\ttry {\n\t\t\tinitCassandra();\n\t\t\tInitialContext initCtx = new InitialContext();\n\t\t\tString location = (String) initCtx.lookup(PropertiesConstants.PROPERTY_URL_JNDI);\n\t\t\tfileInputStream = new FileInputStream(new File(location));\n\t\t\t\n\t\t\tloadPropertyFile(fileInputStream);\n\t\t\t\n\t\t\tLOGGER.debug(\"Loading Property File\" + location);\n\t\t}catch (Exception e) {\n\t\t\tLOGGER.debug(\"No JNDI Settings found. \" + e);\t\t\t\n\t\t}\n\t\tsetLogLevel(getInt(PropertiesConstants.LOG_LEVEL));\n\t\tLOGGER.debug(\"END\");\n\t}",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\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}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"void readProperties(java.util.Properties p) {\n }",
"public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"PropertiesTask setProperties( File propertiesFile );",
"public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"public static void loadConfigurationFile() throws IOException {\n\t\tFileInputStream fis= new FileInputStream(\"config.properties\");\n\t\tprop.load(fis);\n\t}",
"void setPropertiesFile(File file);",
"public static Properties loadProperties(String filePath) throws MnoConfigurationException {\n\t\tProperties properties = new Properties();\n\t\tInputStream input = getInputStreamFromClassPathOrFile(filePath);\n\t\ttry {\n\t\t\tproperties.load(input);\n\t\t} catch (IOException e) {\n\t\t\tthrow new MnoConfigurationException(\"Could not load properties file: \" + filePath, e);\n\t\t}\n\t\treturn properties;\n\t}",
"public void load(String fileName)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException\n {\n\t\tinitializeTestProperties(new BufferedInputStream(new FileInputStream(fileName)));\n\t}",
"public DetectionProperties() throws Exception {\n super(DetectionProperties.class.getResourceAsStream(PROPERTIES_FILE_NAME));\n }",
"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 }",
"public void load(File file)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException \n {\n\t initializeTestProperties(new BufferedInputStream(new FileInputStream(file)));\n\t}",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }",
"private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }",
"private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"public static Properties load(String propsFile)\n {\n \tProperties props = new Properties();\n FileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(propsFile));\n\t\t\tprops.load(fis); \n\t\t fis.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n return props;\n }"
] | [
"0.7151649",
"0.69755566",
"0.6889127",
"0.6872781",
"0.6846226",
"0.6831982",
"0.68089163",
"0.6642174",
"0.6637442",
"0.6522163",
"0.6519234",
"0.6453068",
"0.6439811",
"0.64367235",
"0.6409868",
"0.6406108",
"0.63903815",
"0.6346728",
"0.6333497",
"0.6308755",
"0.62945575",
"0.62448037",
"0.62389064",
"0.622748",
"0.62088245",
"0.6206157",
"0.61577404",
"0.6147515",
"0.61433417",
"0.6124027",
"0.6117558",
"0.6088339",
"0.6052902",
"0.6052833",
"0.6050053",
"0.60314304",
"0.6031362",
"0.6016968",
"0.6001258",
"0.5981875",
"0.59746414",
"0.59591126",
"0.59411556",
"0.5925592",
"0.5922297",
"0.5922057",
"0.5912552",
"0.5911174",
"0.5901926",
"0.58936733",
"0.5891808",
"0.5886519",
"0.5873978",
"0.58586663",
"0.5855024",
"0.5848753",
"0.58484006",
"0.58408463",
"0.58385885",
"0.58339405",
"0.5826923",
"0.5816036",
"0.58150715",
"0.58130914",
"0.58063257",
"0.5805098",
"0.5786181",
"0.57823646",
"0.5780307",
"0.5779569",
"0.57762444",
"0.576438",
"0.5763809",
"0.57620794",
"0.575588",
"0.5749184",
"0.57482684",
"0.5746074",
"0.57291347",
"0.5710185",
"0.5707478",
"0.57030237",
"0.5698923",
"0.56911874",
"0.5687938",
"0.5666788",
"0.56633455",
"0.56581664",
"0.56366116",
"0.56275713",
"0.5626202",
"0.5615809",
"0.5613419",
"0.5612255",
"0.55819404",
"0.55763716",
"0.5574216",
"0.5571072",
"0.556289",
"0.55449665"
] | 0.5732822 | 78 |
Delete the directory if it is empty. | public static boolean deleteEmptyDir(File directory) {
return directory.exists() && directory.isDirectory() && directory.list() != null &&
directory.list().length == 0 && directory.delete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void doDeleteEmptyDir(String dir) {\n\n boolean success = (new File(dir)).delete();\n\n if (success) {\n System.out.println(\"Successfully deleted empty directory: \" + dir);\n } else {\n System.out.println(\"Failed to delete empty directory: \" + dir);\n }\n\n }",
"private void emptyDirectory(File dir){\n\n for (File file : Objects.requireNonNull(dir.listFiles())){\n if (file.isDirectory())\n {\n emptyDirectory(file);\n }\n file.delete();\n }\n }",
"private static void deleteDirectory(File directory) {\r\n File[] files = directory.listFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n deleteDirectory(files[i]);\r\n } else {\r\n files[i].delete();\r\n }\r\n }\r\n // Now that the directory is empty. Delete it.\r\n directory.delete();\r\n }",
"private static boolean deleteDirectory(File directory) {\n\t if(directory.exists()){\n\t File[] files = directory.listFiles();\n\t if(null!=files){\n\t for(int i=0; i<files.length; i++) {\n\t if(files[i].isDirectory()) {\n\t deleteDirectory(files[i]);\n\t }\n\t else {\n\t files[i].delete();\n\t }\n\t }\n\t }\n\t }\n\t return(directory.delete());\n\t}",
"private static boolean deleteDir(File dir) {\n\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n\n // The directory is now empty so now it can be smoked\n return dir.delete();\n }",
"private static boolean deleteDirectory(final File path) {\r\n if (path.exists()) {\r\n final File[] files = path.listFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n deleteDirectory(files[i]);\r\n }\r\n else {\r\n files[i].delete();\r\n }\r\n }\r\n }\r\n return (path.delete());\r\n }",
"public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private boolean deleteDir(File dir) {\r\n if (dir.isDirectory()) {\r\n \r\n //Borra todos los ficheros del directorio\r\n String[] children = dir.list();\r\n for (int i=0; i<children.length; i++) {\r\n boolean success = deleteDir(new File(dir, children[i]));\r\n if (!success) {\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n //Ahora que el directorio está vacío, se puede borrar\r\n return dir.delete();\r\n }",
"protected boolean cleanUpDir(File dir) {\n if (dir.isDirectory()) {\n LOG.info(\"Cleaning up \" + dir.getName());\n String[] children = dir.list();\n for (String string : children) {\n boolean success = cleanUpDir(new File(dir, string));\n if (!success)\n return false;\n }\n }\n // The directory is now empty so delete it\n return dir.delete();\n }",
"public void clearDirectory(File directory) {\n if (directory.exists()) {\n for (File file : directory.listFiles()) {\n file.delete();\n }\n }\n }",
"public boolean deleteDir(File dir) {\n\t\tif (dir.isDirectory()) {\n\t\t\tString[] children = dir.list();\n\t\t\tfor (int i = 0; i < children.length; i++) {\n\t\t\t\tboolean success = deleteDir(new File(dir, children[i]));\n\t\t\t\tif (!success) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// The directory is now empty so delete it\n\t\treturn dir.delete();\n\t}",
"private void deleteDirectory(Path path) throws IOException {\n if (Files.isDirectory(path, LinkOption.NOFOLLOW_LINKS)) {\n try (DirectoryStream<Path> entries = Files.newDirectoryStream(path)) {\n for (Path entry : entries) {\n deleteDirectory(entry);\n }\n }\n }\n Files.delete(path);\n }",
"void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }",
"@Override\n\tpublic boolean delete() {\n\t\tboolean result = false;\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.isDirectory()) {\n\t\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t\tif (file.isDirectory()) ((File) file).delete();\n\t\t\t\t\t\t\telse if (file.isFile()) super.delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsuper.delete();\n\t\t\t\t} else if (this.isFile()) super.delete();\n\t\t\t}\n\t\t\t\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}",
"private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }",
"protected void deleteDirectory(String oneDir) {\n \n File[] listOfFiles;\n File cleanDir;\n\t\n cleanDir = new File(oneDir);\n if (!cleanDir.exists()) {// Nothing to do. Return; \n\t return;\n\t}\n listOfFiles = cleanDir.listFiles();\n if(listOfFiles != null) { \n for(int countFiles = 0; countFiles < listOfFiles.length; countFiles++) { \n if (listOfFiles[countFiles].isFile()) {\n listOfFiles[countFiles].delete();\n } else { // It is a directory\n String nextCleanDir = cleanDir + separator + listOfFiles[countFiles].getName();\n\t\t File newCleanDir = new File(nextCleanDir);\n deleteDirectory(newCleanDir.getAbsolutePath());\n } \n }// End for loop\n } // End if statement \n cleanDir.delete();\n }",
"public void deleteDir() throws Exception\n{\n if(_repo!=null) _repo.close(); _repo = null;\n _gdir.delete();\n _gdir.setProp(GitDir.class.getName(), null);\n}",
"void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }",
"public void deleteTmpDirectory() {\n\t\tdeleteTmpDirectory(tmpDir);\n\t}",
"public boolean clean() {\n\t\tboolean result = false;\n\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t((File) file).delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}",
"public static boolean deleteDir(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n if (children != null) {\n for (String child : children) {\n boolean success = deleteDir(new File(dir, child));\n if (!success) {\n return false;\n }\n }\n }\n }\n\n // The directory is now empty so delete it\n return dir.delete();\n }",
"public static boolean deleteDir(File dir) {\n\t\tif (dir.isDirectory()) {\n\t\t\tString[] children = dir.list();\n\t\t\tfor (int i = 0; i < children.length; i++) {\n\t\t\t\tboolean success = deleteDir(new File(dir, children[i]));\n\t\t\t\tif (!success) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// The directory is now empty so delete it\n\t\treturn dir.delete();\n\t}",
"private void cleanDirectory(File dir) {\n File[] files= dir.listFiles();\n if (files!=null && files.length>0) {\n for (File file: files) {\n delete(file);\n }\n }\n }",
"public boolean folderCleaner(String folderPath, Boolean ifDeleteSubdirs, Boolean ifDeleteFiles, Boolean ifDeleteRoot, Boolean ifPrompt) throws IOException { \n folderPath = folderPath.replace(\"\\\\\", \"/\");\n if(folderPath.endsWith(\"/\")) { folderPath = folderPath.substring(0, folderPath.length() - 1); }\n File dir = new File(folderPath);\n String how = \"\", action = null;\n Boolean success = false;\n Boolean current = false;\n if (dir.exists() && dir.isDirectory()) { \n try{ \n success = true;\n String[] children = dir.list();\n if(children.length > 0) {\n action = \"CLEANED\";\n for (int i = 0; i < children.length; i++) {\n File child = new File(dir, children[i]);\n if(child.isDirectory()){ if(ifDeleteSubdirs) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteSubdirs) {System.out.print(\"DIRECTORY \");} }\n else { if(ifDeleteFiles) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteFiles) {System.out.print(\" FILE \");} }\n \n current = !child.exists();\n success = success && current;\n if(current) { how = \" DELETED: \\\"\"; } else { how = \"NOT DELETED: \\\"\"; }\n if(ifPrompt && current) System.out.print(how + child.getAbsolutePath() + \"\\n\");\n }\n }\n // THE DIRECTORY IS EMPTY - DELETE IT IF REQUIRED\n if (ifDeleteRoot) { FileUtils.forceDelete(dir); success = success && !dir.exists(); action = \"DELETED\"; }\n if(ifPrompt && (!action.equals(null))) {\n if (success) { \n System.out.println(\"\\n\" + \"FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n } else {\n System.out.println(\"\\n\" + \"NOT FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n }\n }\n } catch (Exception e) {} \n }\n return success;\n }",
"public static void deleteDirectory(File dir) {\n\t\tif (dir.isDirectory()) {\n\t\t\t//directory is empty, then delete it\n\t\t\tif (dir.list().length == 0) {\n\t\t\t\tdir.delete();\n\t\t\t} else {\n\t\t\t\t//list all the directory contents\n\t\t\t\tString[] subFiles = dir.list();\n\t\t\t\tfor (int i = 0; i < subFiles.length; i++) {\n\t\t\t\t\t//construct the file structure\n\t\t\t\t\tFile fileDelete = new File(dir, subFiles[i]);\n\t\t\t\t\t//recursive delete\n\t\t\t\t\tdeleteDirectory(fileDelete);\n\t\t\t\t}\n\t\t\t\t//check the directory again, if empty then delete it\n\t\t\t\tif (dir.list().length == 0) {\n\t\t\t\t\tdir.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tdir.delete();\n\t\t}\n\t}",
"public static boolean deleteDirectory(File dir) {\n \n\t\tif (dir == null) { \n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tFile candir;\n try {\n candir = dir.getCanonicalFile();\n } catch (IOException e) {\n return false;\n }\n \n // a symbolic link has a different canonical path than its actual path,\n // unless it's a link to itself\n if (!candir.equals(dir.getAbsoluteFile())) {\n // this file is a symbolic link, and there's no reason for us to\n // follow it, because then we might be deleting something outside of\n // the directory we were told to delete\n return false;\n }\n \n // now we go through all of the files and subdirectories in the\n // directory and delete them one by one\n File [] files = candir.listFiles();\n \n if (files != null) {\n for (int i = 0; i < files.length; i++) {\n File file = files[i];\n \n // in case this directory is actually a symbolic link, or it's\n // empty, we want to try to delete the link before we try\n // anything\n boolean deleted = file.delete();\n \n if (!deleted) {\n // deleting the file failed, so maybe it's a non-empty\n // directory\n if (file.isDirectory()) {\n \tdeleteDirectory(file);\n }\n \n // otherwise, there's nothing else we can do\n }\n }\n }\n \n // now that we tried to clear the directory out, we can try to delete it\n // again\n return dir.delete(); \n }",
"public static void delete(File file) {\n\n\t\tif (file.isDirectory()) {\n\n\t\t\t// directory is empty, then delete it\n\t\t\tif (file.list().length == 0) {\n\n\t\t\t\tfile.delete();\n\t\t\t\t// System.out.println(\"Directory is deleted : \" +\n\t\t\t\t// file.getAbsolutePath());\n\n\t\t\t} else {\n\n\t\t\t\t// list all the directory contents\n\t\t\t\tString files[] = file.list();\n\n\t\t\t\tfor (String temp : files) {\n\t\t\t\t\t// construct the file structure\n\t\t\t\t\tFile fileDelete = new File(file, temp);\n\n\t\t\t\t\t// recursive delete\n\t\t\t\t\tdelete(fileDelete);\n\t\t\t\t}\n\n\t\t\t\t// check the directory again, if empty then delete it\n\t\t\t\tif (file.list().length == 0) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t\t// System.out.println(\"Directory is deleted : \" +\n\t\t\t\t\t// file.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t// if file, then delete it\n\t\t\tfile.delete();\n\t\t\t// System.out.println(\"File is deleted : \" +\n\t\t\t// file.getAbsolutePath());\n\t\t}\n\t}",
"public boolean remove() {\n\t\t\n\t\tMainTerminal terminal = MainTerminal.get();\n\t\tif(this.exists())\n\t\t{\n\t\t\tif(this.isDirectory())\n\t\t\t\tterminal.execute(\"rmdir \" + this.path);\n\t\t\telse\n\t\t\t\tterminal.execute(\"rm --force \" + path);\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"void deleteStoryDirectory() {\n\n try {\n\n Log.i(\"Deleting StoryDirectory\", story_directory.toString());\n FileUtils.deleteDirectory(story_directory);\n } catch (IOException e) {\n\n }\n\n }",
"public static boolean isDirectoryEmpty(Path directory) throws IOException {\n\n DirectoryStream<Path> directoryStream = Files.newDirectoryStream(directory);\n if (directoryStream.iterator().hasNext()) {\n directoryStream.close();\n return true;\n } else {\n directoryStream.close();\n return false;\n }\n }",
"public static boolean deleteDirectory(File path) {\n\t\tif (path.exists()) {\n\t\t\tFile[] files = path.listFiles();\n\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\tdeleteDirectory(files[i]);\n\t\t\t\t} else {\n\t\t\t\t\tfiles[i].delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (path.delete());\n\t}",
"public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }",
"public static final void deleteDirectory(File directory) throws IOException {\n if (!directory.exists()) {\n return;\n }\n\n cleanDirectory(directory);\n\n if (!directory.delete()) {\n throw new IOException(\"Unable to delete directory \" + directory + \".\");\n }\n }",
"void deleteDirectories() {\n\n if (story_directory != null && !newStoryReady) {\n deleteStoryDirectory();\n }\n\n if (tag_directory != null && !newStoryReady) {\n deleteTagDirectory();\n }\n\n if (cover_directory != null && !newStoryReady) {\n deleteCoverDirectory();\n }\n }",
"public static boolean delete(File dir) {\r\n boolean success = true;\r\n File files[] = dir.listFiles();\r\n if (files != null) {\r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n // delete the directory and all of its contents.\r\n if (!delete(files[i])) {\r\n success = false;\r\n }\r\n }\r\n // delete each file in the directory\r\n if (!files[i].delete()) {\r\n success = false;\r\n }\r\n }\r\n }\r\n // finally delete the directory\r\n if (!dir.delete()) {\r\n success = false;\r\n }\r\n return success;\r\n }",
"public static void deleteDirectory( File directory ) throws IOException\n {\n if ( !directory.exists() )\n {\n return;\n }\n\n if ( !isSymlink( directory ) )\n {\n cleanDirectory( directory );\n }\n\n if ( !directory.delete() )\n {\n throw new IOException( I18n.err( I18n.ERR_17004_UNABLE_DELETE_DIR, directory ) );\n }\n }",
"public static void cleanDirectory(final ContextualLogger logger, Path start) throws IOException {\n if (!start.toFile().exists()) {\n boolean didMake = start.toFile().mkdir();\n Assert.assertTrue(didMake);\n }\n // We need the directory to be a directory (as we don't want to follow symlinks anywhere in this delete operation).\n Assert.assertTrue(start.toFile().isDirectory());\n // We don't want to delete the starting directory, but we do want to delete everything in it.\n Files.walkFileTree(start, new FileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n // Do nothing.\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n // This clearly can't be the start.\n Assert.assertFalse(start.equals(file));\n // Delete the file.\n Files.delete(file);\n logger.output(\"Deleted file \" + file);\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n logger.error(\"visitFileFailed: \\\"\" + file + \"\\\"\");\n throw exc;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n if (null == exc) {\n // Make sure that this isn't the starting directory.\n if (!start.equals(dir)) {\n Files.delete(dir);\n logger.output(\"Deleted directory \" + dir);\n }\n } else {\n throw exc;\n }\n return FileVisitResult.CONTINUE;\n }\n }\n );\n }",
"public boolean delete()\n\t{\n\t\treturn deleteRecursive( file ) ;\n\t}",
"public static synchronized void deleteDirectory(File directory) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.deleteDirectory: [\" + directory.getPath() + \"]\");\n File[] firstDirectoryFiles = directory.listFiles();\n if (firstDirectoryFiles != null) {\n for (File file : firstDirectoryFiles) {\n file.delete();\n }\n }\n directory.delete();\n }",
"public static boolean delete(final String dirname) {\r\n return delete(new File(dirname));\r\n }",
"private void deleteDir(File fileDir)\n {\n try\n {\n FileHelper.deleteDir(fileDir);\n }\n catch (Exception e)\n {\n // ignore\n }\n }",
"private static void deleteDir(File file) {\n\t\tFile[] contents = file.listFiles();\n\t\tif (contents != null) {\n\t\t\tfor (File f : contents) {\n\t\t\t\tdeleteDir(f);\n\t\t\t}\n\t\t}\n\t\tfile.delete();\n\t}",
"public static void deleteFolder(File folder) {\r\nFile[] files = folder.listFiles();\r\nif(files!=null) { //some JVMs return null for empty dirs\r\nfor(File f: files) {\r\nif(f.isDirectory()) {\r\ndeleteFolder(f);\r\n} else {\r\nf.delete();\r\n}\r\n}\r\n}\r\nfolder.delete();\r\n}",
"@Test\r\n public void testDeleteDirectory() {\r\n System.out.println(\"deleteDirectory\");\r\n File directory = null;\r\n boolean expResult = false;\r\n boolean result = connection.deleteDirectory(directory);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public static void deleteDirectory(File directory) {\n // LOG.debug(\"ics.core.io.FileUtils.deleteDirectory(): Deleting directory \"\n // + directory.toString());\n File[] files = directory.listFiles();\n for (int n = 0; n < files.length; n++) {\n File nextFile = files[n];\n\n // if it's a directory, delete sub-directories and files before\n // removing the empty directory\n if (nextFile.isDirectory() == true) {\n deleteDirectory(nextFile);\n } else {\n nextFile.delete(); // otherwise just delete the file\n // LOG.debug(\"ics.core.io.FileUtils.deleteDirectory(): Deleting file \"\n // + nextFile.toString());\n }\n }\n\n // finally, delete the specified directory\n if (directory.delete() == false) {\n LOG.warn(\"ics.core.io.FileUtils.deleteDirectory(): Unable to delete \"\n + directory.toString());\n }\n }",
"public void cleanDirs() {\n\t\tfor (File f : files) {\n\t\t\tFileUtils.deleteDir(f.toString());\n\t\t}\n\t}",
"public static void deleteDir(File dir) {\n\t if (dir.isDirectory()) {\n\t String[] children = dir.list();\n\t for (int i=0; i<children.length; i++) {\n\t File file = new File(dir, children[i]);\n\t log.info(\"Deleting file:\" + file.toString());\n\t file.delete();\n\t }\n\t }\n\t }",
"public static boolean deleteDir(File dir) {\n if (dir != null && dir.isDirectory()) {\n String[] children = dir.list();\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n return dir.delete();\n } else if(dir!= null && dir.isFile()) {\n return dir.delete();\n } else {\n return false;\n }\n }",
"public static boolean deleteDir(File dir) {\n if (dir != null && dir.isDirectory()) {\n String[] children = dir.list();\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n return dir.delete();\n }\n else if(dir!= null && dir.isFile()) return dir.delete();\n else return false;\n }",
"public void delete() throws IOException {\n\t\tclose();\n\t\tdeleteContents(directory);\n\t}",
"public void clearServiceDirectory(String serviceID){\n \n //If map \"servicesDirectories\" contains the serviceID\n if(servicesDirectories.containsKey(serviceID)){\n \n //Get directory associated to serviceID\n File dir = servicesDirectories.get(serviceID);\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete(); \n }\n \n }",
"protected void deleteTmpDirectory(File file) {\n\t\tif (file.exists() && file.canWrite()) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\tfor (File child : files) {\n\t\t\t\t\tif (child.isDirectory()) {\n\t\t\t\t\t\tdeleteTmpDirectory(child);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfile.delete();\n\t\t}\n\t}",
"public void delete() throws AlreadyDeletedException{\r\n\tif (this.isDeleted() == false) {\r\n\t\tDirectory ref = this.getDir();\r\n \tref.remove(this);\r\n \tthis.setDelete(true);\t\r\n \tthis.setModificationTime();\r\n\t}\r\n\telse {\r\n\t\tthrow new AlreadyDeletedException(this);\t\r\n\t\t\r\n\t}\r\n}",
"public static boolean deleteFileRoot(String path) {\n try {\n if (!readReadWriteFile())\n RootTools.remount(path, \"rw\");\n\n if (new File(path).isDirectory()) {\n execute(\"rm -f -r \" + getCommandLineString(path));\n } else {\n execute(\"rm -r \" + getCommandLineString(path));\n }\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"void deleteDirectory(String path, boolean recursive) throws IOException;",
"public static void emptyFolder(File folder) {\n\tif (folder.exists()) {\n\t File[] files = folder.listFiles(new FilenameFilter(\"csv\"));\n\t if (null != files && files.length > 0) {\n\t\tfor (File file : files) {\n\t\t file.delete();\n\t\t}\n\t }\n\t}\n }",
"public static void delete0() {\n File class0 = new File(\"/\");\n boolean ret0 = class0.delete();\n assert !ret0;\n System.out.println(ret0);\n }",
"@SuppressWarnings(\"unused\")\n\tpublic boolean rmdir(final Uri folder)\n\t\t\tthrows WritePermissionException\n\t{\n\t\tUsefulDocumentFile folderDoc = getDocumentFile(folder, true, true);\n\t\tUsefulDocumentFile.FileData file = folderDoc.getData();\n\t\treturn !file.exists || file.isDirectory && folderDoc.listFiles().length <= 0 && folderDoc.delete();\n\t}",
"private static void deletePublicationDir(File pubDir) {\n System.out.println(\" Deleting contents of directory: \" + pubDir);\n for (File pubFile : pubDir.listFiles()) {\n if (pubFile.isFile()) {\n System.out.println(\" Deleting file: \" + pubFile);\n pubFile.delete();\n }\n }\n System.out.println(\" Now deleting directory: \" + pubDir);\n pubDir.delete();\n }",
"protected synchronized void delete()\n {\n if (this.file.exists())\n {\n this.file.delete();\n }\n }",
"public static void deleteDirectory(String inputDirectory) {\n File directory = new File(inputDirectory);\n //check if it is a directory\n if (directory.isDirectory()) {\n //check if the directory has children\n if (directory.listFiles().length == 0) {\n directory.delete();\n System.out.println(\"Directory is deleted: \"\n + directory.getAbsolutePath());\n } else {\n //ask user whether he wants to delete the directory\n System.out.println(\"The chosen directory contains few files.\");\n viewDirectory(inputDirectory);\n System.out.println(\"Do you really want to delete the whole directory: \\n 1.Yes\\n 2.No\");\n Scanner userInput = new Scanner(System.in);\n String userRes = userInput.nextLine();\n if (userRes.equalsIgnoreCase(\"yes\") || userRes.equalsIgnoreCase(\"1\")) {\n //delete files inside the directory one by one\n deleteFilesInsideDirectory(directory);\n //delete parent directory\n directory.delete();\n if (!directory.exists()) {\n System.out.println(\"Directory has been deleted.\");\n } else {\n System.out.println(\"Deletion failed\");\n }\n } else if (userRes.equalsIgnoreCase(\"no\") || userRes.equalsIgnoreCase(\"2\")) {\n System.out.println(\"Delete directory request cancelled by user.\");\n } else {\n deleteDirectory(inputDirectory);\n }\n }\n } else {\n System.out.println(\"Invalid path or directory.\");\n }\n }",
"public static void cleanDirectory(File dir) {\n if (dir.isDirectory()) {\n for (File f : dir.listFiles()) {\n cleanDirectory( f );\n }\n }\n dir.delete();\n }",
"private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }",
"private Step deleteHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_HDFS_WORK_DIR)\n .tasklet(deleteHdfsWorkingDir)\n .build();\n }",
"public static void deleteDirectory(String directory) {\n if (directory == null) {\n return;\n }\n\n File dir = new File(directory);\n if (dir.isDirectory() == false) {\n return;\n }\n\n deleteDirectory(dir);\n }",
"public boolean clearDataDir(String path) {\n logger.info(\"clearDataDir is called, and processing.\");\n logger.info(\"Status report before remove data directory.\");\n IndexManager.statusReport();\n ArrayList<File> dataDirs = getDataDirectories();\n if (path.equals(\"*\")) {\n int size = dataDirs.size();\n for (int i = size - 1; i >= 0; i--) {\n Path removed_path = this.dataDirectories.remove(i).toPath();\n unWatchDir(removed_path);\n }\n if (dataDirs.size() == 0) {\n IndexManager indexManager = new IndexManager();\n indexManager.deleteIndex();\n return true;\n } else {\n logger.warning(\"Remove all data directory error. Cannot clear all directory.\");\n return false;\n }\n } else {\n Iterator<File> fileIterator = dataDirs.iterator();\n Path dir_path;\n Path file_path = Paths.get(path);\n //Iterate through a list of paths, If matched, remove.\n while (fileIterator.hasNext()) {\n dir_path = Paths.get(fileIterator.next().getAbsolutePath());\n if (dir_path.equals(file_path)) { //If it is matched.\n fileIterator.remove(); //remove the path that is matched.\n //Report to a terminal.\n logger.fine(\"Following path has been removed: \" + dir_path);\n IndexManager.statusReport(); //Log\n unWatchDir(file_path);\n return true;\n }\n }\n logger.info(\"No directory match.\");\n IndexManager.statusReport();\n return false;\n }\n }",
"private void clearClipsDirectory(){\n /* Citation : http://helpdesk.objects.com.au/java/how-to-delete-all-files-in-a-directory#:~:text=Use%20the%20listFiles()%20method,used%20to%20delete%20each%20file. */\n File directory = new File(Main.CREATED_CLIPS_DIRECTORY_PATH);\n File[] files = directory.listFiles();\n if(files != null){\n for(File file : files){\n if(!file.delete()) System.out.println(\"Failed to remove file \" + file.getName() + \" from \" + Main.CREATED_CLIPS_DIRECTORY_PATH);\n }\n }\n }",
"public static synchronized void emptyDerbyTestDirectory(final String derbyTestDirectory) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.emptyDerbyTestDirectory\");\n // Delete the files in the derbyTestDirectory directory.\n File tempDirectory = new File(derbyTestDirectory);\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }",
"private static boolean isEmpty(final Path directory) throws IOException {\n\n try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(directory)) {\n return !dirStream.iterator().hasNext();\n }\n }",
"@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}",
"public static void deleteDirectory(String path) throws KubernetesPluginException {\n Path pathToBeDeleted = Paths.get(path);\n if (!Files.exists(pathToBeDeleted)) {\n return;\n }\n try {\n Files.walk(pathToBeDeleted)\n .sorted(Comparator.reverseOrder())\n .map(Path::toFile)\n .forEach(File::delete);\n } catch (IOException e) {\n throw new KubernetesPluginException(\"Unable to delete directory: \" + path, e);\n }\n\n }",
"public static void deleteDirectory(String directory){\n\t\tlog.info(\"Removing \" + directory + \" directory\");\n\t\tFile tempDir = new File(directory);\n\t\tdeleteDirectory(tempDir);\n\t\tlog.info(\"Finished removing directory\");\n\t}",
"@SuppressWarnings(\"unused\")\n\tpublic boolean rmdir(final File folder)\n\t\t\tthrows WritePermissionException\n\t{\n\t\tif (!folder.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!folder.isDirectory()) {\n\t\t\treturn false;\n\t\t}\n\t\tString[] fileList = folder.list();\n\t\tif (fileList != null && fileList.length > 0) {\n\t\t\t// Delete only empty folder.\n\t\t\treturn false;\n\t\t}\n\n\t\t// Try the normal way\n\t\tif (folder.delete()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Try with Storage Access Framework.\n\t\tif (Util.hasLollipop())\n\t\t{\n\t\t\tUsefulDocumentFile document = getDocumentFile(folder, true, true);\n\t\t\treturn document != null && document.delete();\n\t\t}\n\n\t\treturn !folder.exists();\n\t}",
"public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean removeDirectory(String directory_path) {\n\n\t\t//\n\t\t// delete directory from observed table list\n\t\t//\n\t\tlong rows_affected = m_db.delete(DIRECTORY_TABLE_NAME,\n\t\t\t\tDIRECTORY_FIELD_PATH + \"=?\", new String[] { directory_path });\n\n\t\t//\n\t\t// informal debug message\n\t\t//\n\t\tLogger.i(\"DBManager::removeDirectory> executeInsert: \" + rows_affected);\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn rows_affected != 0;\n\t}",
"final private static boolean removeTemporaryDirectory(File directory) {\n //System.out.println(\"removeDirectory \" + directory);\n\n if (directory == null)\n return false;\n final File sdirectory = directory;\n\n Boolean b = (Boolean)AccessController.doPrivileged(\n new java.security.PrivilegedAction() {\n public Object run() {\n if (!sdirectory.exists())\n return new Boolean(true);\n if (!sdirectory.isDirectory())\n return new Boolean(false);\n String[] list = sdirectory.list();\n // Some JVMs return null for File.list() when the\n // directory is empty.\n if (list != null) {\n for (int i = 0; i < list.length; i++) {\n File entry = new File(sdirectory, list[i]);\n if (entry.isDirectory())\n {\n if (!removeTemporaryDirectory(entry))\n return new Boolean(false);\n }\n else\n {\n if (!entry.delete())\n return new Boolean(false);\n }\n }\n }\n return new Boolean(sdirectory.delete());\n }\n });\n if (b.booleanValue())\n {\n return true;\n }\n else return false;\n }",
"public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }",
"public static boolean recursiveDelete(File d) {\n // If d is not a directory, just delete it.\n if (!d.isDirectory())\n if (d.delete() == false) {\n return false;\n } else {\n return true;\n }\n else {\n // Construct a file list.\n File[] ar = d.listFiles();\n \n // Iterate through the file list.\n for (int i = 0; i < ar.length; i++) {\n // Recurse into directories. Deep directories will need a lot of stack space for this.\n if (ar[i].isDirectory()) {\n if (!recursiveDelete(ar[i])) {\n return false; // Failed!\n }\n }\n else {\n // Delete a file.\n if (!ar[i].delete()) {\n return false; // Failed!\n }\n }\n }\n \n //Delete the empty directory\n if (!d.delete()) {\n return false;\n } else {\n return true;\n } \n }\n }",
"@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void clean(Path path) throws IOException {\n if (Files.exists(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<>() {\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n\n public FileVisitResult postVisitDirectory(Path path, IOException exception) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n }",
"private void delete(File file) {\n if (file.isDirectory()) {\n cleanDirectory(file);\n }\n file.delete();\n }",
"public static void cleanDirectory( File directory ) throws IOException\n {\n if ( !directory.exists() )\n {\n throw new IllegalArgumentException( I18n.err( I18n.ERR_17006_DOES_NOT_EXIST, directory ) );\n }\n\n if ( !directory.isDirectory() )\n {\n throw new IllegalArgumentException( I18n.err( I18n.ERR_17007_IS_NOT_DIRECTORY, directory ) );\n }\n\n File[] files = directory.listFiles();\n\n if ( files == null )\n {\n // null if security restricted\n throw new IOException( I18n.err( I18n.ERR_17008_FAIL_LIST_DIR, directory ) );\n }\n\n IOException exception = null;\n\n for ( File file : files )\n {\n try\n {\n forceDelete( file );\n }\n catch ( IOException ioe )\n {\n exception = ioe;\n }\n }\n\n if ( null != exception )\n {\n throw exception;\n }\n }",
"public static void delete(File d) {\n\t\tif (d.isDirectory()) {\n\t\t\tfor (File f: d.listFiles()) delete(f);\n\t\t\td.delete();\n\t\t} else d.delete();\n\t}",
"@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException e) throws IOException{\n if (e == null) {\n Files.deleteIfExists(dir);\n }\n return FileVisitResult.CONTINUE;\n }",
"private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }",
"private boolean deleteDirectoryWithRetries(File directory, int retryCount) {\n if (retryCount > 100) {\n return false;\n }\n if (FileUtils.deleteQuietly(directory)) {\n return true;\n }\n else {\n try {\n Thread.sleep(10);\n }\n catch (InterruptedException ex) {\n // ignore\n }\n return deleteDirectoryWithRetries(directory, retryCount + 1);\n }\n }",
"@Test\n\tpublic void removeUnneededDirectory() throws IOException {\n\t\tfinal Path targetDir = _temp.toPath().resolve(\"target\");\n\t\tfinal Path fsTargetDir = targetDir.resolve(DIR_FIRSTSPIRIT_5);\n\t\tfinal Path installerTar = new File(getClass().getResource(TEST_INSTALLER_TAR_GZ).getFile()).toPath();\n\t\tServerInstaller.decompressInstaller(targetDir, installerTar);\n\t\tassertTrue(fsTargetDir.toFile().exists(), DIR_FIRSTSPIRIT_5 + \" dir should exist\");\n\n\t\t// test\n\t\tServerInstaller.removeUnneededDirectory(targetDir);\n\n\t\t// verify\n\t\tassertFalse(fsTargetDir.toFile().exists(), DIR_FIRSTSPIRIT_5 + \" dir should have been deleted\");\n\t}",
"public void clean()\r\n {\r\n // DO NOT TOUCH\r\n // System.out.println(unzipedFilePath);\r\n\r\n // only clean if there was a successful unzipping\r\n if (success)\r\n {\r\n // only clean if the file path to remove matches the zipped file.\r\n if (unzippedFilePath.equals(zippedFilePath.substring(0,\r\n zippedFilePath.length() - 4)))\r\n {\r\n // System.out.println(\"to be implmented\");\r\n for (File c : outputDir.listFiles())\r\n {\r\n // System.out.println(c.toString());\r\n if (!c.delete())\r\n {\r\n System.out.println(\"failed to delete\" + c.toString());\r\n }\r\n }\r\n outputDir.delete();\r\n outputDir = null;\r\n }\r\n }\r\n }",
"public String do_rmdir(String pathOnServer) throws RemoteException {\r\n\t\tString directoryPath = pathOnServer;\r\n\t\tString message;\r\n\t\t\r\n\t\t\tFile dir = new File(directoryPath);\r\n\t\t\tif (!dir.isDirectory()) {\r\n\t\t\t\tmessage = \"Invalid directory\";\t}\t\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\tif(dir.list().length>0) {\r\n\r\n\t\t\tFile[] filesList = dir.listFiles();\r\n\t\t\t//Deleting Directory Content\r\n\t\t\tfor(File file : filesList){\r\n\t\t\t\tSystem.out.println(\"Deleting \"+file.getName());\r\n\t\t\t\tfile.delete();\r\n\t\t\t}}\r\n\t\t\tif (dir.delete()) message =\"Successfully deleted the Directory: \" + directoryPath ;\r\n\t\t\telse message =\"Error deleting the directory: \" + directoryPath ;\r\n\t\t\t}//else end \r\n\t\treturn message;\r\n\t}",
"@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }",
"private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}",
"public static final void cleanDirectory(File directory) throws IOException {\n if (!directory.exists()) {\n throw new IllegalArgumentException(directory + \" does not exist\");\n }\n\n if (!directory.isDirectory()) {\n throw new IllegalArgumentException(directory + \" is not a directory\");\n }\n\n File[] files = directory.listFiles();\n if (files == null) { // null if security restricted\n throw new IOException(\"Failed to list contents of \" + directory);\n }\n\n IOException exception = null;\n for (File file : files) {\n try {\n forceDelete(file);\n } catch (IOException ioe) {\n exception = ioe;\n }\n }\n\n if (exception != null) {\n throw exception;\n }\n }",
"private static void deleteFileOrDir(File file)\n {\n if (file.isDirectory())\n {\n File[] childs = file.listFiles();\n for (int i = 0;i < childs.length;i++)\n {\n deleteFileOrDir(childs[i]);\n }\n }\n file.delete();\n }",
"public static boolean removeDirectory(File directory) {\n\t\r\n\t\t if (directory == null)\r\n\t\t return false;\r\n\t\t if (!directory.exists())\r\n\t\t return true;\r\n\t\t if (!directory.isDirectory())\r\n\t\t return false;\r\n\t\r\n\t\t String[] list = directory.list();\r\n\t\r\n\t\t // Some JVMs return null for File.list() when the\r\n\t\t // directory is empty.\r\n\t\t if (list != null) {\r\n\t\t for (int i = 0; i < list.length; i++) {\r\n\t\t File entry = new File(directory, list[i]);\r\n\t\r\n\t\t // System.out.println(\"\\tremoving entry \" + entry);\r\n\t\r\n\t\t if (entry.isDirectory())\r\n\t\t {\r\n\t\t if (!removeDirectory(entry))\r\n\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if (!entry.delete())\r\n\t\t return false;\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\r\n\t\t return directory.delete();\r\n\t}",
"public boolean clearCache() {\n File directory=new File(cacheDirectory);\n File[] files=directory.listFiles();\n boolean alldeleted=true;\n for (File file:files) {\n if (!engine.deleteTempFile(file)) { // this will delete files recursively for directories\n engine.logMessage(\"SYSTEM ERROR: Unable to delete cache for: \"+file.getAbsolutePath());\n alldeleted=false; \n }\n }\n return alldeleted;\n }",
"@Test\n public void testDeleteFolder() {\n System.out.println(\"deleteFolder\");\n String folder = \"\";\n FileSystemStorage instance = null;\n instance.deleteFolderAndAllContents(folder);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private void deleteCacheFiles() {\n\n\t\t// get the directory file\n\t\tFile cache = new File(Constants.CACHE_DIR_PATH);\n\n\t\t// check if we got the correct instance of that directory file.\n\t\tif (!cache.exists() || !cache.isDirectory())\n\t\t\treturn;\n\n\t\t// gets the list of files in the directory\n\t\tFile[] files = cache.listFiles();\n\t\t// deleting\n\n\t\tdeleteFiles(cache);\n\t\tfiles = null;\n\t\tcache = null;\n\n\t}",
"@Override\n\tpublic synchronized void clear() {\n\t\tFile[] files = mRootDirectory.listFiles();\n\t\tif (files != null) {\n\t\t\tfor (File file : files) {\n\t\t\t\tfile.delete();\n\t\t\t}\n\t\t}\n\t\tmEntries.clear();\n\t\tmTotalSize = 0;\n\t\tVolleyLog.d(\"Cache cleared.\");\n\t}",
"@Override\n public FileVisitResult postVisitDirectory(Path dir,\n IOException exc)\n throws IOException {\n Files.delete(dir);\n System.out.printf(\"Directory is deleted : %s%n\", dir);\n return FileVisitResult.CONTINUE;\n }",
"public void rmdir(String name) \n\t\t\tthrows NoSuchDirectoryException, IsFileException, DirectoryNotEmptyException\n\t{\n\t\tIterable<Position<FileElement>> toCheck = fileSystem.children(currentFileElement);\n\t\tif (toCheck != null)\n\t\t{\n\t\t\tfor (Position<FileElement> fe : toCheck )\n\t\t\t{\n\t\t\t\tif (fe.toString().equals(name) && fe.getValue().isDirectory() == false)\n\t\t\t\t{\n\t\t\t\t\tthrow new IsFileException();\n\t\t\t\t}\n\t\t\t\telse if (fe.toString().equals(name) && fe.getValue().isDirectory())\n\t\t\t\t{\n\t\t\t\t\tif (fileSystem.remove(fe) == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new DirectoryNotEmptyException();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {throw new NoSuchDirectoryException();}\n\t}"
] | [
"0.76425135",
"0.7109918",
"0.6942845",
"0.6888488",
"0.68864274",
"0.6793495",
"0.67609847",
"0.67341",
"0.6683313",
"0.6666092",
"0.6576394",
"0.6540788",
"0.65321565",
"0.65236336",
"0.65136063",
"0.6512627",
"0.6506557",
"0.64933836",
"0.64840525",
"0.64744467",
"0.6463091",
"0.64480215",
"0.64446026",
"0.6412282",
"0.6410896",
"0.6377257",
"0.6374683",
"0.6357513",
"0.6336844",
"0.6311239",
"0.62953824",
"0.62566334",
"0.6247512",
"0.6237815",
"0.6229825",
"0.6217114",
"0.62058395",
"0.6190861",
"0.61121523",
"0.6112068",
"0.6107618",
"0.6099765",
"0.6088692",
"0.6075876",
"0.6059727",
"0.6050879",
"0.6048742",
"0.6043344",
"0.60405594",
"0.60188854",
"0.6012634",
"0.60059845",
"0.600416",
"0.6003732",
"0.59975845",
"0.5988006",
"0.5983128",
"0.5976571",
"0.5958904",
"0.59423923",
"0.59349865",
"0.5928465",
"0.5921764",
"0.58947545",
"0.5877296",
"0.5861644",
"0.585596",
"0.583959",
"0.5827338",
"0.58170867",
"0.58159995",
"0.5797031",
"0.5794615",
"0.57935995",
"0.57786554",
"0.57579494",
"0.5730662",
"0.57287925",
"0.57232296",
"0.57121235",
"0.5693672",
"0.5685678",
"0.5680467",
"0.56802505",
"0.5677896",
"0.5663114",
"0.56535995",
"0.5633129",
"0.56311107",
"0.5628449",
"0.56229216",
"0.56222194",
"0.5616894",
"0.5610055",
"0.5591869",
"0.5588335",
"0.5583763",
"0.5582041",
"0.55656976",
"0.5531185"
] | 0.7351865 | 1 |
Created by BigBaws on 14/11/2016. | public interface IMessage {
Message getMessage(int userid);
Message getMessages(int userid);
Message sendMessage(int userid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override public int describeContents() { return 0; }",
"@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 void init() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void anular() {\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 public void init() {}",
"@Override\n protected void init() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@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}",
"public void mo12628c() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void initialize() { \n }",
"@Override\n public void initialize() {\n \n }",
"protected void mo6255a() {\n }",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\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\t\tpublic void init() {\n\t\t}",
"Consumable() {\n\t}",
"public void m23075a() {\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}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo21877s() {\n }"
] | [
"0.5982116",
"0.5900904",
"0.5835581",
"0.5752772",
"0.5752772",
"0.5742047",
"0.57037926",
"0.56913954",
"0.5665958",
"0.56362563",
"0.55778503",
"0.5560999",
"0.5549651",
"0.55347764",
"0.55299",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5518078",
"0.5487484",
"0.5483788",
"0.5473542",
"0.54688853",
"0.54672664",
"0.5450764",
"0.5444474",
"0.5444065",
"0.5441444",
"0.5441444",
"0.54314315",
"0.5430818",
"0.54293776",
"0.542907",
"0.5410316",
"0.54070646",
"0.54070646",
"0.54070646",
"0.54070646",
"0.54070646",
"0.5395446",
"0.5388304",
"0.5387661",
"0.53764117",
"0.5360966",
"0.53578854",
"0.53578854",
"0.53578854",
"0.53578854",
"0.53578854",
"0.53578854",
"0.53578854",
"0.535774",
"0.5357571",
"0.5355339",
"0.53502667",
"0.5345434",
"0.5343535",
"0.53415906",
"0.53415895",
"0.5338454",
"0.5335944",
"0.53353775",
"0.53100646",
"0.5309861",
"0.5303955",
"0.5302369",
"0.53011394",
"0.52985674",
"0.52913535",
"0.52910024",
"0.52910024",
"0.52910024",
"0.5287589",
"0.5287589",
"0.5287589",
"0.5282743",
"0.52826345",
"0.5281312",
"0.52797574",
"0.52731407",
"0.52731407",
"0.52717346",
"0.5270227",
"0.5265177",
"0.52599436",
"0.52599436",
"0.52599436",
"0.52565414",
"0.52565414",
"0.52460605",
"0.52460605",
"0.5244035",
"0.5239343",
"0.52373266",
"0.52315146",
"0.52315146",
"0.52315146",
"0.52252597",
"0.52235293"
] | 0.0 | -1 |
1.get the authentication header.Tokens are supposed to be passed in the authentication header. | protected void doFilterInternal(HttpServletRequest request,HttpServletResponse response,FilterChain chain)throws ServletException,IOException {
String header=request.getHeader(jwtConfig.getHeader());
//2.validate the header and check the prefix
if(header==null || !header.startsWith(jwtConfig.getPrefix())) {
chain.doFilter(request, response); //if not valid go to the next filter
return;
}
//if there is no token provided and hence the user wont be authenticated
//Its ok.May be user accessing a public path or asking for token.
//All secured paths that needs a token are already defined and secured in config class
//And if user tried to access without access token ,then he wont be authenticated and an exception will be thrown.
//3.Get the token
String token=header.replace(jwtConfig.getPrefix(),"");
try { // exceptions might be thrown in creating the claims if for example the token is expired
//4.validate the token
Claims claims=Jwts.parser().setSigningKey(jwtConfig.getSecret().getBytes()).parseClaimsJws(token).getBody();
String userName=claims.getSubject();
if(userName !=null) {
@SuppressWarnings("unchecked")
List<String> authorities=(List<String>)claims.get("authorities");
//5.Create auth object
//UsernamePasswordAuthenticationToken : A build in object, used by spring to represent the current authenticated/being authenticated user.
//It needs list of authorities,which has type of GrantedAuthority interface,where SimpleGrantedAuthority is an implementation of that interface.
UsernamePasswordAuthenticationToken auth=new UsernamePasswordAuthenticationToken(userName,null,authorities.stream().map(SimpleGrantedAuthority:: new).collect(Collectors.toList()));
//6.Authenticate the user
//Now, user is authenticated
SecurityContextHolder.getContext().setAuthentication(auth);
}
}catch (Exception e) {
// In case of failure ,Make sure it is clear;so guarantee user wont be authenticated
SecurityContextHolder.clearContext();
}
//go to the next filter in filter chain
chain.doFilter(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AuthenticationTokenInfo authenticationTokenInfo(String headerToken);",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = LogInActivity.token;\n headers.put(\"Authorization\", \"bearer \"+ token);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(Keys.Authorization,\"Bearer \"+TripManagement.readValueFromPreferences(getActivity(),\"accesstoken\",\"\"));\n return params;\n }",
"private String getToken(HttpServletRequest request){\n String header = request.getHeader(\"Authorization\");\n if(header != null && header.startsWith(\"Bearer\"))\n \t// Sacamos al bearer del token\n return header.replace(\"Bearer \", \"\");\n return null;\n }",
"User authenticate(String headerToken) throws AuthenticationException;",
"private String getAuthorizationHeaderValue(HttpRequest request){\n\t\t String authorizationValue = \"\";\n\t\t List<String> authorizationList = new ArrayList<>(0);\t\t\n\t\t \n\t\t HttpHeaders headers = request.getHttpHeaders();\n\t\t for(String headerName : headers.getRequestHeaders().keySet()){\n\t\t\t if(TokenConstants.AUTHORIZATION_HEADER_NAME.equalsIgnoreCase(headerName)){\n\t\t\t\t authorizationList = headers.getRequestHeader(headerName);\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\n\t\t if(CollectionUtils.isNotEmpty(authorizationList)) {\n\t\t\t authorizationValue = authorizationList.get(0);\n\t\t }\n\t\t return authorizationValue;\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }",
"private void doVerify(HttpServletRequest request, Object handler) throws AuthenticationException {\n\t\tString authorizationHeader = request.getHeader(HttpHeaders.AUTHORIZATION);\r\n\t\tlog.debug(\"#### authorizationHeader : \" + authorizationHeader);\r\n\r\n\t\t// Check if the HTTP Authorization header is present and formatted correctly\r\n\t\tif (authorizationHeader == null || authorizationHeader.isEmpty()) {\r\n\t\t\tlog.error(\"#### invalid authorizationHeader : \" + authorizationHeader);\r\n\t\t\tthrow new AuthenticationException(\"Authorization header must be provided\");\r\n\t\t}\r\n\r\n\t\t// Extract the token from the HTTP Authorization header\r\n\t\tString token = authorizationHeader.trim();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// Validate the token\r\n\t\t\tKey key = keyGenerator.generateKey();\r\n\t\t\tClaims claims = Jwts.parser().setSigningKey(key).parseClaimsJws(token).getBody();\r\n\t\t\tlog.debug(\"ID: \" + claims.getId());\r\n\t\t log.debug(\"Subject: \" + claims.getSubject());\r\n\t\t log.debug(\"Issuer: \" + claims.getIssuer());\r\n\t\t log.debug(\"Expiration: \" + claims.getExpiration());\r\n\t\t\tlog.debug(\"#### valid token : \" + token);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"#### invalid token : \" + token);\r\n\t\t\tthrow new AuthenticationException(\"Unauthorized\");\r\n\t\t}\r\n\r\n\t}",
"private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = sharedPreferences.getString(\"token\", \"\");\n String auth = \"Bearer \" + token;\n headers.put(\"Authorization\", auth);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> keys = new HashMap<String, String>();\n keys.put(\"token\", TOKEN);\n return keys;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> header = new HashMap<String, String>();\n //header.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n header.put(\"Authorization\", \"Bearer \"+LoginMedico.ACCESS_TOKEN);\n return header;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }",
"public List<Header> nextHeader(JSONResponse response){\n\t\tList<Header> headers = getHeaders();\n if(response.token == null){\n return headers;\n } else {\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + response.token));\n return headers;\n }\n }",
"@Override\n public Enumeration<String> getHeaderNames() {\n List<String> names = new ArrayList<String>();\n names.addAll(Collections.list(super.getHeaderNames()));\n names.add(\"Authorization\");\n return Collections.enumeration(names);\n }",
"@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n // params.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n params.put(\"authorization\", token);\n return params;\n }",
"AuthenticationToken renewAuthentication(String headerToken);",
"public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }",
"private HttpHeaders getHeaders(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n HttpHeaders httpHeaders = new HttpHeaders();\r\n httpHeaders.set(\"Authorization\", jwtUtils.generateToken(userDetails));\r\n return httpHeaders;\r\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\");\n params.put(\"Authorization\", \"Bearer \" +accessToken);\n return params;\n }",
"@Nullable\n private TokenCredentials getCredentials(String header) {\n if (header == null) {\n return null;\n } else {\n int space = header.indexOf(32);\n if (space <= 0) {\n return null;\n } else {\n String method = header.substring(0, space);\n if (!this.prefix.equalsIgnoreCase(method)) {\n return null;\n } else {\n String decoded;\n try {\n decoded = new String(BaseEncoding.base64().decode(header.substring(space + 1)), StandardCharsets.UTF_8);\n } catch (IllegalArgumentException var8) {\n this.logger.warn(\"Error decoding credentials\", var8);\n return null;\n }\n\n int i = decoded.indexOf(58);\n if (i <= 0) {\n return null;\n } else {\n String token = decoded.substring(i + 1);\n String username = decoded.substring(0, i);\n return new TokenCredentials(token, username);\n }\n }\n }\n }\n }",
"private void handleAuthenticationHeader(final HttpExchange exchange) throws IOException\n {\n URI uri = null;\n try\n {\n uri = new URI(exchange.getRequestURI().getScheme() + \"://\" + exchange.getRequestHeaders().getFirst(\"Host\") + exchange.getRequestURI());\n }\n catch (URISyntaxException use)\n {\n System.out.println(\"Not authenticated: \" + use.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n ImmutableMap<String, String> authorizationHeaders = ImmutableMap.of();\n try\n {\n authorizationHeaders = this.server.splitAuthorizationHeader(exchange.getRequestHeaders().getFirst(\"Authorization\"));\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n String hash = null;\n if (authorizationHeaders.get(\"hash\") != null)\n {\n // Need to calculate hash of the body\n hash = Hawk.calculateMac(this.credentials, CharStreams.toString(new InputStreamReader(exchange.getRequestBody(), \"UTF-8\")));\n }\n\n // Need to know if there is a body present\n // TODO what happens if the client fakes this information\n boolean hasBody = exchange.getRequestHeaders().getFirst(\"Content-Length\") != null ? true : false;\n try\n {\n server.authenticate(this.credentials, uri, exchange.getRequestMethod(), authorizationHeaders, hash, hasBody);\n System.out.println(\"Authenticated by header\");\n exchange.sendResponseHeaders(200, 0);\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n catch (ServerError se)\n {\n System.out.println(\"Not authenticated: \" + se.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(500, 0);\n }\n }",
"private String getHeaderValueImpl(String paramString1, String paramString2) {\n/* */ String str1, str8, str9;\n/* 351 */ char[] arrayOfChar = this.pw.getPassword();\n/* 352 */ boolean bool = this.params.authQop();\n/* 353 */ String str2 = this.params.getOpaque();\n/* 354 */ String str3 = this.params.getCnonce();\n/* 355 */ String str4 = this.params.getNonce();\n/* 356 */ String str5 = this.params.getAlgorithm();\n/* 357 */ this.params.incrementNC();\n/* 358 */ int i = this.params.getNCCount();\n/* 359 */ String str6 = null;\n/* */ \n/* 361 */ if (i != -1) {\n/* 362 */ str6 = Integer.toHexString(i).toLowerCase();\n/* 363 */ int j = str6.length();\n/* 364 */ if (j < 8) {\n/* 365 */ str6 = zeroPad[j] + str6;\n/* */ }\n/* */ } \n/* */ try {\n/* 369 */ str1 = computeDigest(true, this.pw.getUserName(), arrayOfChar, this.realm, paramString2, paramString1, str4, str3, str6);\n/* */ }\n/* 371 */ catch (NoSuchAlgorithmException noSuchAlgorithmException) {\n/* 372 */ return null;\n/* */ } \n/* */ \n/* 375 */ String str7 = \"\\\"\";\n/* 376 */ if (bool) {\n/* 377 */ str7 = \"\\\", nc=\" + str6;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 382 */ if (delimCompatFlag) {\n/* */ \n/* 384 */ str8 = \", algorithm=\\\"\" + str5 + \"\\\"\";\n/* 385 */ str9 = \", qop=\\\"auth\\\"\";\n/* */ } else {\n/* */ \n/* 388 */ str8 = \", algorithm=\" + str5;\n/* 389 */ str9 = \", qop=auth\";\n/* */ } \n/* */ \n/* */ \n/* 393 */ String str10 = this.authMethod + \" username=\\\"\" + this.pw.getUserName() + \"\\\", realm=\\\"\" + this.realm + \"\\\", nonce=\\\"\" + str4 + str7 + \", uri=\\\"\" + paramString1 + \"\\\", response=\\\"\" + str1 + \"\\\"\" + str8;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 400 */ if (str2 != null) {\n/* 401 */ str10 = str10 + \", opaque=\\\"\" + str2 + \"\\\"\";\n/* */ }\n/* 403 */ if (str3 != null) {\n/* 404 */ str10 = str10 + \", cnonce=\\\"\" + str3 + \"\\\"\";\n/* */ }\n/* 406 */ if (bool) {\n/* 407 */ str10 = str10 + str9;\n/* */ }\n/* 409 */ return str10;\n/* */ }",
"private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }",
"GetToken.Req getGetTokenReq();",
"private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }",
"private HashMap<String, String> getHeaders() {\n mHeaders = new HashMap<>();\n // set user'token if user token is not set\n if ((this.mToken == null || this.mToken.isEmpty()) && mProfile != null)\n this.mToken = mProfile.getToken();\n\n if (this.mToken != null && !this.mToken.isEmpty()) {\n mHeaders.put(\"Authorization\", \"Token \" + this.mToken);\n Log.e(\"TOKEN\", mToken);\n }\n\n mHeaders.put(\"Content-Type\", \"application/form-data\");\n mHeaders.put(\"Accept\", \"application/json\");\n return mHeaders;\n }",
"Headers getHeaders();",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Authorization\", \"Bearer \" + TOKEN);\n return headers;\n }",
"@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }",
"public void handleAuthenticationRequest(RoutingContext context) {\n\n final HttpServerRequest request = context.request();\n\n final String basicAuthentication = request.getHeader(AUTHORIZATION_HEADER);\n\n try {\n\n final String[] auth =\n BasicAuthEncoder.decodeBasicAuthentication(basicAuthentication).split(\":\");\n\n if (auth.length < 2) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n } else {\n\n final Credential credential = new Credential(auth[0], auth[1]);\n\n authenticationService.authenticate(credential, user -> {\n\n if (null != user) {\n\n tokenService.generateToken(user, token -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE).end(token);\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INTERNAL_ERROR.error()));\n\n });\n\n } else {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n }\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(err.toError()));\n\n });\n\n\n }\n\n } catch (final Exception e) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INVALID_AUTHENTICATION_TOKEN.error()));\n\n\n }\n\n\n\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"petalier_session_token\", PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\"));\n//\n// if (!PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\").isEmpty()){\n// headers.put(\"Session-Token\", PSharedPreferences.getSomeStringValue(AppController.getInstance(), \"session_token\"));\n// }\n\n return headers;\n }",
"private HttpHeaders getHeaders(String token) {\r\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtil.extractEmail(token));\r\n userDetails.setClientType(ClientType.valueOf((String) jwtUtil.extractAllClaims(token).get(\"clientType\")));\r\n HttpHeaders httpHeaders = new HttpHeaders();\r\n httpHeaders.set(\"Authorization\", jwtUtil.generateToken(userDetails));\r\n return httpHeaders;\r\n }",
"protected abstract T extractClaims(BearerTokenAuthenticationToken bearer);",
"private static Tuple<Integer, String> getToken() {\n\t\tTuple<Integer, String> result = new Tuple<Integer, String>();\n\t\tresult = GETRequest(AUTH_URL, AUTH_HEADER, \"\", \"\");\n\t\treturn result;\n\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"@Override\n protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {\n\n String header = httpServletRequest.getHeader(jwtConfig.getHeader());\n\n\n //if(header == null || !header.startsWith(jwtConfig.getPrefix())) {\n // filterChain.doFilter(httpServletRequest, httpServletResponse); \t\t// If not valid, go to the next filter.\n // return;\n // }\n\n\n try{\n String token = header.replace(jwtConfig.getPrefix(), \"\");\n String username = jwtUtils.extractUsername(token);\n\n System.out.println(username);\n\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n if (jwtUtils.validateToken(token)) {\n\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(username, null, null);\n usernamePasswordAuthenticationToken.setDetails(token);\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n System.out.println(username);\n }\n }\n\n }catch(Exception e){\n SecurityContextHolder.clearContext();\n }\n\n filterChain.doFilter(httpServletRequest, httpServletResponse);\n }",
"@Override\n public Collection<String> getRestHeaders() {\n return Arrays.asList(KerberosRealm.AUTHENTICATION_HEADER, KrbConstants.WWW_AUTHENTICATE );\n }",
"public String getJwtFromRequest(HttpServletRequest request) {\n String authHeader = request.getHeader(jwtConfig.getAuthorizationHeader());\n System.out.println(\"auth header is :\" + authHeader);\n System.out.println(\"jwt token is being prepared\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n System.out.println(\"jwt token is valid\");\n return authHeader.replace(\"Bearer \", \"\");\n }else{\n System.out.println(\"jwt token is not valid and is null\");\n return null;\n }\n }",
"public static String obtenerTokenAcceso(HttpServletRequest request) {\n String tokenId = \"\";\n try {\n String authorization = request.getHeader(\"Authorization\");\n if (authorization != null && authorization.contains(\"Bearer\")) {\n tokenId = authorization.replace(\"Bearer\", \"\");\n }\n String[] contenidoToken = tokenId.split(\"\\\\.\");\n return contenidoToken[1];\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n }",
"Pokemon.RequestEnvelop.AuthInfo.JWT getToken();",
"@Override\n public Response intercept(Chain chain) throws IOException {\n Request authorisedRequest = chain.request().newBuilder()\n .header(\"Authorization:\", \"Token \" + sharedPrefsWrapper.getString(KEY))\n .build();\n\n\n return chain.proceed(authorisedRequest);\n }",
"private boolean isTokenBasedAuthentication(String authorizationHeader) {\n return authorizationHeader != null && authorizationHeader.toLowerCase()\n .startsWith(AUTHENTICATION_SCHEME.toLowerCase() + \" \");\n }",
"private boolean isTokenBasedAuthentication(String authorizationHeader) {\n return authorizationHeader != null && authorizationHeader.toLowerCase()\n .startsWith(AUTHENTICATION_SCHEME.toLowerCase() + \" \");\n }",
"private boolean isTokenBasedAuthentication(String authorizationHeader) {\n return authorizationHeader != null && authorizationHeader.toLowerCase()\n .startsWith(AUTHENTICATION_SCHEME.toLowerCase() + \" \");\n }",
"public void parseHeader()\n {\n\n Hashtable table = new Hashtable();\n String[] lines = Utilities.splitString(header, \"\\r\\n\"); //Break everything into lines\n String[] line1 = Utilities.splitString(header, \" \"); //Break the 1st header line Ex: GET / HTTP/1.1\n method = line1[0].trim();\n file = line1[1].trim();\n Utilities.debugLine(\"WebServer.parseHeader(): \" + lines[0], DEBUG);\n\n //For the remainder of the headers, parse the requestFields.\n for (int i = 1; i < lines.length - 1; i++)\n {\n String[] tempLine = Utilities.splitStringOnce(lines[i], \":\");\n table.put(tempLine[0].trim(), tempLine[1].trim());\n }\n headerFields = table;\n }",
"@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n\t\t\tthrows ServletException, IOException {\n\t\tfinal String authorizationHeader = request.getHeader(\"Authorization\"); // getting the header from the header name\n\t\t\n\t\tString username = null;\n\t\tString jwt = null;\n\t\t\n\t\ttry {\n\t\t\tif (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\n\t\t\t\tjwt = authorizationHeader.substring(7);\n\t\t\t\tusername = jwtUtil.extractUsername(jwt);\n\t\t\t}\n\t\t\t\n\t\t\t// if username is null and there is no already existing context in security context holder\n\t\t\tif (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n\t\t\t\tUserDetails userDetails = this.userDetailsService.loadUserByUsername(username);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"<----------------------------\"+userDetails.getAuthorities());\n\t\t\t\t\n\t\t\t\tif (jwtUtil.validateToken(jwt)) { // checking if the token still exist or has not expired\n\t\t\t\t\tUsernamePasswordAuthenticationToken upaToken = new UsernamePasswordAuthenticationToken(\n\t\t\t\t\t\t\tuserDetails, null, userDetails.getAuthorities());\n\t\t\t\t\tupaToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n\t\t\t\t\t\n\t\t\t\t\tSecurityContextHolder.getContext().setAuthentication(upaToken);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Can NOT set user authentication -> Message: {}\", e);\n\t\t}\n\t\t\n\t\tfilterChain.doFilter(request, response);\n\t\t\n\t}",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }",
"@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }",
"@Post(\"/auth\")\n @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_FORM_URLENCODED})\n public Single<TokenResponse> authenticateOauthToken(HttpRequest<?> request) {\n log.info(\"Processing authentication request with dependent API\");\n Optional<String> authHeader = request.getHeaders().getAuthorization();\n if (authHeader.isPresent()) {\n TokenResponse ret = new TokenResponse();\n ret.setAccessToken(onlyValidAccessToken);\n ret.setTokenType(\"bearer\");\n ret.setExpiresIn(3600);\n\n log.info(\"dependent API successfully authenticated us\");\n return Single.just(ret);\n }\n log.info(\"Authentication with API failed\");\n return Single.error(new HttpStatusException(HttpStatus.UNAUTHORIZED, \"auth missing or wrong (1a)\"));\n }",
"public String extractAuthTokenFromRequest(HttpServletRequest httpRequest) {\n\t\t/* Get token from header */\n\t\tString authToken = httpRequest.getHeader(\"X-Auth-Token\");\n\n\t\t/* If token not found get it from request parameter */\n\t\tif (authToken == null) {\n\t\t\tauthToken = httpRequest.getParameter(\"token\");\n\t\t}\n\n\t\treturn authToken;\n\t}",
"@Override\r\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t String authorizationHeader = \r\n\t requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\r\n\t \r\n\t // Check if the HTTP Authorization header is present and formatted correctly\r\n\t if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\r\n\t \t\r\n\t \t//abgelaufene Tokens werden gelöscht\r\n\t \tsservice.deleteInvalidTokens();\r\n\t \t\r\n\t \t// Extract the token from the HTTP Authorization header\r\n\t \tString token = authorizationHeader.substring(\"Bearer\".length()).trim();\r\n\t \tif (validateToken(token) == true){\r\n\t \t\t\r\n\t \t\t//Get the user by this token\r\n\t \t User user = authService.getUserByToken(token);\r\n\t \t System.out.println(\"Nutzer: \" + user.toString());\r\n\t \t requestContext.setSecurityContext(new MySecurityContext(user));\r\n\t \t return;\r\n\t \t}\r\n\t }\r\n\t \r\n\t throw new UnauthorizedException(\"Client has to be logged in to access the ressource\");\r\n\t \r\n\t\t\r\n\t}",
"private boolean isValidToken(String authHeader) {\n AuthorisedTokenData token = authorisedTokensServices.getAuthorisedTokenByToken(authHeader);\n\n return token != null && token.getToken().equals(authHeader);\n }",
"private UsernamePasswordAuthenticationToken getAuthtication(HttpServletRequest request){\n // Get token from request header.\n String token = request.getHeader(\"Authorization\");\n if (token != null){\n //Get the username from the jwt token\n String username = JwtUtil.getUsernameByToken(token);\n //Check the existence of the username.\n Optional<User> userTry = userRepository.findByUsername(username);\n Collection<GrantedAuthority> authorities = new ArrayList<>();\n if (userTry.isPresent()){\n User user = userTry.get();\n authorities.add(new SimpleGrantedAuthority(user.getRole().getName()));\n return new UsernamePasswordAuthenticationToken(user,token,authorities);\n }\n }\n return null;\n }",
"public String getToken(HttpServletRequest request) {\n Cookie authCookie = getCookieValueByName(request, AUTH_TOKEN_COOKIE);\n if (authCookie != null) {\n return authCookie.getValue();\n }\n /**\n * Getting the token from Authentication header e.g Bearer your_token\n */\n String authHeader = request.getHeader(AUTH_HEADER);\n if (authHeader != null) {\n \tif (authHeader.startsWith(\"Bearer \"))\n \t\treturn authHeader.substring(7);\n \t// Support without Bearer prefix\n \treturn authHeader;\n }\n return null;\n }",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"private boolean isTokenBasedAuthentication(String authorizationHeader) {\n return authorizationHeader != null && authorizationHeader.toLowerCase()\n .startsWith(AUTHENTICATION_SCHEME.toLowerCase());\n }",
"@RequestMapping(value = \"/test\",method = RequestMethod.POST)\n\tpublic void test(@RequestHeader HttpHeaders headers)\n\t{\n\t\tString token = headers.getFirst(\"Authorization\");\n\t\tif(token==null || token.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"No token Found\");\n\t\t}\n\t\t\n\t\tString token1 = \"\";\t\n\t\tif(!token.contains(\"Bearer \"))\n\t\t{\n\t\t\tSystem.out.println(\"Improper Format of Token\");\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t\ttoken1 = token.substring(7);\n\t\tSystem.out.println(\"token value is \"+token1);\n\t\t\n\t\tboolean authorized = authorize(token1);\n\t\tSystem.out.println(\"Authorized value is \"+authorized);\n\t\t\n\t\t\n\t\tif(authorized == false)\n\t\t{\n\t\t\tSystem.out.println(\"Token is Expired or Invalid Token\");\n\t\t}\n\t}",
"private AuthenticationResult processTokenResponse(HttpWebResponse webResponse, final HttpEvent httpEvent)\n throws AuthenticationException {\n final String methodName = \":processTokenResponse\";\n AuthenticationResult result;\n String correlationIdInHeader = null;\n String speRing = null;\n if (webResponse.getResponseHeaders() != null) {\n if (webResponse.getResponseHeaders().containsKey(\n AuthenticationConstants.AAD.CLIENT_REQUEST_ID)) {\n // headers are returning as a list\n List<String> listOfHeaders = webResponse.getResponseHeaders().get(\n AuthenticationConstants.AAD.CLIENT_REQUEST_ID);\n if (listOfHeaders != null && listOfHeaders.size() > 0) {\n correlationIdInHeader = listOfHeaders.get(0);\n }\n }\n\n if (webResponse.getResponseHeaders().containsKey(AuthenticationConstants.AAD.REQUEST_ID_HEADER)) {\n // headers are returning as a list\n List<String> listOfHeaders = webResponse.getResponseHeaders().get(\n AuthenticationConstants.AAD.REQUEST_ID_HEADER);\n if (listOfHeaders != null && listOfHeaders.size() > 0) {\n Logger.v(TAG + methodName, \"Set request id header. \" + \"x-ms-request-id: \" + listOfHeaders.get(0));\n httpEvent.setRequestIdHeader(listOfHeaders.get(0));\n }\n }\n\n if (null != webResponse.getResponseHeaders().get(X_MS_CLITELEM) && !webResponse.getResponseHeaders().get(X_MS_CLITELEM).isEmpty()) {\n final CliTelemInfo cliTelemInfo =\n TelemetryUtils.parseXMsCliTelemHeader(\n webResponse.getResponseHeaders()\n .get(X_MS_CLITELEM).get(0)\n );\n\n if (null != cliTelemInfo) {\n httpEvent.setXMsCliTelemData(cliTelemInfo);\n speRing = cliTelemInfo.getSpeRing();\n }\n }\n }\n\n final int statusCode = webResponse.getStatusCode();\n\n if (statusCode == HttpURLConnection.HTTP_OK\n || statusCode == HttpURLConnection.HTTP_BAD_REQUEST\n || statusCode == HttpURLConnection.HTTP_UNAUTHORIZED) {\n try {\n result = parseJsonResponse(webResponse.getBody());\n if (result != null) {\n if (null != result.getErrorCode()) {\n result.setHttpResponse(webResponse);\n }\n\n final CliTelemInfo cliTelemInfo = new CliTelemInfo();\n cliTelemInfo._setSpeRing(speRing);\n result.setCliTelemInfo(cliTelemInfo);\n httpEvent.setOauthErrorCode(result.getErrorCode());\n }\n } catch (final JSONException jsonException) {\n throw new AuthenticationException(ADALError.SERVER_INVALID_JSON_RESPONSE,\n \"Can't parse server response. \" + webResponse.getBody(),\n webResponse, jsonException);\n }\n } else if (statusCode >= HttpURLConnection.HTTP_INTERNAL_ERROR && statusCode <= MAX_RESILIENCY_ERROR_CODE) {\n throw new ServerRespondingWithRetryableException(\"Server Error \" + statusCode + \" \"\n + webResponse.getBody(), webResponse);\n } else {\n throw new AuthenticationException(ADALError.SERVER_ERROR,\n \"Unexpected server response \" + statusCode + \" \" + webResponse.getBody(),\n webResponse);\n }\n\n // Set correlationId in the result\n if (correlationIdInHeader != null && !correlationIdInHeader.isEmpty()) {\n try {\n UUID correlation = UUID.fromString(correlationIdInHeader);\n if (!correlation.equals(mRequest.getCorrelationId())) {\n Logger.w(TAG + methodName, \"CorrelationId is not matching\", \"\",\n ADALError.CORRELATION_ID_NOT_MATCHING_REQUEST_RESPONSE);\n }\n\n Logger.v(TAG + methodName, \"Response correlationId:\" + correlationIdInHeader);\n } catch (IllegalArgumentException ex) {\n Logger.e(TAG + methodName, \"Wrong format of the correlation ID:\" + correlationIdInHeader, \"\",\n ADALError.CORRELATION_ID_FORMAT, ex);\n }\n }\n\n if (null != webResponse.getResponseHeaders()) {\n final List<String> xMsCliTelemValues = webResponse.getResponseHeaders().get(X_MS_CLITELEM);\n if (null != xMsCliTelemValues && !xMsCliTelemValues.isEmpty()) {\n // Only one value is expected to be present, so we'll grab the first element...\n final String speValue = xMsCliTelemValues.get(0);\n final CliTelemInfo cliTelemInfo = TelemetryUtils.parseXMsCliTelemHeader(speValue);\n if (result != null) {\n result.setCliTelemInfo(cliTelemInfo);\n }\n }\n }\n\n return result;\n }",
"void onAuthenticationSucceeded(String token);",
"public Header[] getRequestHeaders();",
"OAuth2Token getToken();",
"public\t Authorization getAuthorization()\n { return (Authorization) this.getHeader(AuthorizationHeader.NAME); }",
"public String getToken();",
"@Override\n /**\n * Handles a HTTP GET request. This implements obtaining an authentication token from the server.\n */\n protected void handleGet(Request request, Response response) throws IllegalStateException {\n String username = String.valueOf(request.getAttributes().get(\"username\"));\n String password = String.valueOf(request.getAttributes().get(\"password\"));\n /* Construct MySQL Query. */\n String query = \"SELECT COUNT(id) AS `CNT`, `authToken` FROM accounts WHERE `username` = '\" + username + \"' AND \" +\n \"`password` = '\" + password + \"' LIMIT 0,1;\";\n /* Obtain the account count and existing token pair, as object array. */\n Object[] authenticationArray = dataHandler.handleAuthentication(database.ExecuteQuery(query,\n new ArrayList<String>()));\n int cnt = (int) authenticationArray[0];\n String existingToken = (String) authenticationArray[1];\n String authenticationToken = null;\n if (cnt == 1) { // There is exactly one account matching the parameterised username and password.\n if (existingToken == null) { // No token yet existed, generate one.\n authenticationToken = TokenGenerator.getInstance().generateAuthenticationToken(TOKEN_LENGTH);\n } else {\n authenticationToken = existingToken;\n }\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n if (!(authenticationToken == null || authenticationToken == \"\")) { // Update the database with the new token.\n Database.getInstance().ExecuteUpdate(\"UPDATE `accounts` SET `authToken` = '\" + authenticationToken +\n \"', `authTokenCreated` = CURRENT_TIMESTAMP WHERE `username` = '\" + username + \"';\",\n new ArrayList<String>());\n this.returnResponse(response, authenticationToken, new TokenSerializer());\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}",
"protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }",
"@Test\n public void testValidRequestHeaderPrivate() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.OK.getStatusCode(), r.getStatus());\n }",
"public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }",
"public AuthorizationToken retrieveToken(String token);",
"RequestHeaders headers();",
"private static HashMap<String, String> getHeaderWithAccessToken(\n final String accessToken)\n {\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", String.format(\"SSO %s\", accessToken));\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }",
"@Override\n public void intercept(RequestFacade request) {\n String string = \"Basic \" + Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);\n request.addHeader(\"Authorization\", string);\n request.addHeader(\"Accept\", \"application/json\");\n }",
"private Optional<String> getBearerToken(String headerVal) {\n log.info(\"header value = \" + headerVal);\n if (headerVal != null && headerVal.startsWith(JwtProperties.BEARER)) {\n return Optional.of(headerVal.replace(JwtProperties.BEARER, \"\").trim());\n }\n return Optional.empty();\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }",
"private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }",
"User getUserByToken(HttpServletResponse response, String token) throws Exception;",
"public String getToken(final HttpServletRequest request) {\n final String param = ofNullable(request.getHeader(AUTHORIZATION))\n .orElse(request.getParameter(\"t\"));\n\n return ofNullable(param)\n .map(value -> removeStart(value, BEARER))\n .map(String::trim)\n .orElseThrow(() -> new BadCredentialsException(Constants.AUTHENTICATION_FILTER_MISSING_TOKEN));\n }",
"public static String extractAuthTokenFromRequest(HttpServletRequest httpRequest) {\n\t\tString authToken = httpRequest.getHeader(\"X-Auth-Token\");\n\n\t\t/* If token not found get it from request parameter */\n\t\tif (authToken == null) {\n\t\t\tauthToken = httpRequest.getParameter(\"token\");\n\t\t}\n\n\t\treturn authToken;\n\t}",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();"
] | [
"0.76490945",
"0.69338626",
"0.6925735",
"0.6881183",
"0.6879311",
"0.68351346",
"0.6795947",
"0.6703827",
"0.6703827",
"0.6638677",
"0.6636836",
"0.66131526",
"0.655142",
"0.65223885",
"0.6500493",
"0.64308465",
"0.6405897",
"0.6398022",
"0.6350738",
"0.6347253",
"0.6346218",
"0.63190806",
"0.6315183",
"0.62718624",
"0.6271571",
"0.6255778",
"0.6244077",
"0.62350655",
"0.62327594",
"0.6215952",
"0.6211817",
"0.6211817",
"0.6188415",
"0.6173998",
"0.6150116",
"0.61436945",
"0.61390865",
"0.61335105",
"0.6128993",
"0.61280113",
"0.6117754",
"0.6115338",
"0.60596645",
"0.60565865",
"0.60565865",
"0.6048619",
"0.603843",
"0.6035948",
"0.60008484",
"0.5992294",
"0.597768",
"0.59665173",
"0.59410447",
"0.59410447",
"0.59410447",
"0.5931706",
"0.59308773",
"0.5908561",
"0.5908561",
"0.58904094",
"0.5856001",
"0.5853117",
"0.5850508",
"0.5839424",
"0.58225775",
"0.58223027",
"0.58125687",
"0.58125687",
"0.58125687",
"0.58125687",
"0.58125687",
"0.58125687",
"0.58107233",
"0.5804717",
"0.5799459",
"0.57890475",
"0.5785873",
"0.5775064",
"0.57728565",
"0.5767745",
"0.57488483",
"0.57442504",
"0.5736716",
"0.5736",
"0.5735097",
"0.57254106",
"0.57219744",
"0.5716292",
"0.5714163",
"0.5703421",
"0.5696794",
"0.56774205",
"0.56760865",
"0.5675393",
"0.5636428",
"0.5635396",
"0.5635396",
"0.5635396",
"0.5635396",
"0.5635396"
] | 0.5956487 | 52 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.ID | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountLogId() {\n return accountLogId;\n }",
"int getBId();",
"public Integer getBlId() {\n return blId;\n }",
"public int getBId() {\n return instance.getBId();\n }",
"Long getDbId();",
"public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }",
"public Integer getLogid() {\n return logid;\n }",
"java.lang.String getBusinessId();",
"@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();",
"public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public String getLogId() {\r\n return logId;\r\n }",
"java.lang.String getBranchId();",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"public Long getBaseId() {\n return baseId;\n }",
"public int getBId() {\n return bId_;\n }",
"public String getBaseId();",
"public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }",
"public int getLogid() {\n\treturn logid;\n}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}",
"public int getAD_Column_ID();",
"int getLogId();",
"public int getC_BankAccount_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BankAccount_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public Record getComponentIdAndBaseId(Record record);",
"public int getC_BankAccount_ID();",
"public StrColumn getAssemblyId() {\n return delegate.getColumn(\"assembly_id\", DelegatingStrColumn::new);\n }",
"public BigDecimal getIdbusquedalaboral() {\n\t\treturn idbusquedalaboral;\n\t}",
"java.lang.String getBidid();",
"@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}",
"java.lang.String getAoisId();",
"@Override\n\tpublic long getColumnId() {\n\t\treturn _expandoColumn.getColumnId();\n\t}",
"public long getAuditLogId() {\n return auditLogId;\n }",
"public int getIdBoleta() {\n return idBoleta;\n }",
"public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }",
"public Integer getId() {\n return aao.getId();\n }",
"@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}",
"@Override\n public Long getLastInsertId() {\n Long lastId = 0L;\n Map<String, Object> paramMap = new HashMap<>();\n paramMap.put(\"lastID\", lastId);\n jdbc.query(SELECT_LAST_INSERT_ID, paramMap, rowMapper);\n return lastId;\n }",
"java.lang.String getID();",
"public Number getBpoId() {\n return (Number) getAttributeInternal(BPOID);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"@Transient\r\n\tpublic static Long getIdActivida() {\r\n\t\treturn idActivida;\r\n\t}",
"public Integer getBranchId() {\n return branchId;\n }",
"public String getBaseId() {\n return baseId;\n }",
"public java.lang.Long getBUSUNITID() {\n return BUS_UNIT_ID;\n }",
"String getAccountID();",
"String getAccountID();",
"public java.lang.Long getBUSUNITID() {\n return BUS_UNIT_ID;\n }",
"java.lang.String getDatabaseId();",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"String getBusi_id();",
"public int getID_BBDD()\n\t{\n\t\treturn this.ID_BBDD;\n\t}",
"public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }",
"String getValueId();",
"public abstract java.lang.Long getCod_actividad();",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"Integer getID();",
"Integer getID();",
"public Long getBusinessBankAccountId() {\n return businessBankAccountId;\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public Long getEmplBident() {\n return super.getEmplBident();\n }",
"public abstract java.lang.Long getAcma_id();",
"public String getID() {\r\n return insertMode ? null : stringValue(CONTACTS_ID);\r\n }",
"public ResultSet returnbroaccount(Long brokerId) throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from broker where broker_id=\"+brokerId+\"\");\r\n\t\treturn rs;\r\n\t}",
"Integer getRealmId();",
"public String getBranchId() {\n return branchId;\n }",
"public int getLBR_SeqNumberInBank_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LBR_SeqNumberInBank_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}",
"public String getColumnID()\n\t{\n\t\treturn this.columnID;\n\t}",
"public String getIndexColumn() {\n return \"id\";\n }",
"public String getId(Object obj) {\n String id = null;\n\n if (obj != null) {\n id = reference(obj);\n\n if (id == null && obj instanceof mxICell) {\n id = ((mxICell)obj).getId();\n\n if (id == null) {\n // Uses an on-the-fly Id\n id = mxCellPath.create((mxICell)obj);\n\n if (id.length() == 0) {\n id = \"root\";\n }\n }\n }\n }\n\n return id;\n }",
"@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"bmRmCodeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public String getIdbasedatos() {\n return idbasedatos;\n }",
"public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }",
"@NotNull\r\n String getColumnId();",
"protected int GetID() {\n\t\treturn this.JunctionID;\n\t}",
"public int getMaxAccountsIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM `accounts`;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }",
"@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }",
"public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }",
"public Number getBranchNotifIdFk() {\r\n return (Number) getAttributeInternal(BRANCHNOTIFIDFK);\r\n }",
"public UUID getDbId() {\n return dbId;\n }",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"@Override\n\tpublic String getBankId(final int bankAccountId, final Connection connection)\n\t{\n\t\tString bankAndBranchId = \"null\";\n\t\ttry {\n\t\t\tfinal StringBuilder sql = new StringBuilder(\"select b.id,c.id from bankaccount a,bankbranch b,bank c\")\n\t\t\t\t\t.append(\" where a.branchid=b.id and b.bankid=c.id and a.id= ?\");\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(sql.toString());\n\t\t\tpst.setInteger(0, bankAccountId);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\tbankAndBranchId = element[0].toString();\n\t\t\t\tbankAndBranchId = bankAndBranchId + \"#\" + element[1].toString();\n\t\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\t\tLOGGER.info(\">>>bankAndBranchId \" + bankAndBranchId);\n\t\t\t}\n\t\t\tif (rset == null || rset.size() == 0)\n\t\t\t\tthrow new NullPointerException(\"Bank Code Not Found\");\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" Bank Id not found \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn bankAndBranchId;\n\t}",
"@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}",
"@Column(name = \"active_branch_id\")\n\tpublic String getActiveBranchId() {\n\t\treturn activeBranchId;\n\t}",
"public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}",
"public abstract Integer getCompteId();",
"String getOrderStatusId();",
"public byte getId(){\n return id;\n }",
"public Long getID() {\n return id;\n }",
"@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }",
"public String getBankBranchID() {\n return bankBranchID;\n }",
"public long getBuid() {\r\n return buid;\r\n }",
"Long getId();"
] | [
"0.5565659",
"0.5553355",
"0.5500218",
"0.54648477",
"0.5438924",
"0.5383853",
"0.5345877",
"0.5337879",
"0.5337681",
"0.5323517",
"0.5312507",
"0.5239508",
"0.52370894",
"0.5223789",
"0.52193534",
"0.51869756",
"0.5186972",
"0.5169634",
"0.51611114",
"0.51482886",
"0.5140564",
"0.51403433",
"0.51380426",
"0.5135051",
"0.5127788",
"0.5126713",
"0.5126023",
"0.5122582",
"0.5114986",
"0.51064205",
"0.5099196",
"0.5093706",
"0.50931",
"0.5071348",
"0.50662875",
"0.5060905",
"0.50485706",
"0.5042873",
"0.5033896",
"0.50335735",
"0.50335735",
"0.50335735",
"0.50335735",
"0.5032461",
"0.5026167",
"0.50216246",
"0.5016539",
"0.50165075",
"0.50165075",
"0.50130546",
"0.49912906",
"0.49898586",
"0.49898586",
"0.49874356",
"0.49826276",
"0.49682477",
"0.4959991",
"0.4947523",
"0.4936973",
"0.4936973",
"0.4921676",
"0.4921676",
"0.49172086",
"0.49060223",
"0.48968333",
"0.48936498",
"0.48785073",
"0.487214",
"0.4862182",
"0.48594767",
"0.48594612",
"0.48568892",
"0.4852363",
"0.48505953",
"0.48489675",
"0.48433948",
"0.48422676",
"0.48422676",
"0.48422676",
"0.48391795",
"0.48366076",
"0.483149",
"0.48313734",
"0.48267266",
"0.4815716",
"0.48153403",
"0.4803231",
"0.48010802",
"0.47983587",
"0.4797149",
"0.47887218",
"0.47874787",
"0.47851685",
"0.4784277",
"0.47826678",
"0.47826663",
"0.4782418",
"0.4772944",
"0.4771908",
"0.4769899",
"0.4768924"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.ID | public void setId(Long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAD_Column_ID (int AD_Column_ID);",
"private void setBId(int value) {\n \n bId_ = value;\n }",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setBlId(Integer blId) {\n this.blId = blId;\n }",
"public void setBrandid( Integer brandid )\n {\n this.brandid = brandid ;\n }",
"public void setIdBoleta(int value) {\n this.idBoleta = value;\n }",
"public void setAuditLogId(long value) {\n this.auditLogId = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setLogid(Integer logid) {\n this.logid = logid;\n }",
"public void setIdTrabajador(Integer idTrabajador) {\n\t\tthis.idTrabajador = idTrabajador;\n\t}",
"public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBASECURRENCYID(java.lang.Long value) {\n validate(fields()[2], value);\n this.BASE_CURRENCY_ID = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);",
"public void setID(int id){\n this.ID = id;\n }",
"public void setLBR_SeqNumberInBank_ID (int LBR_SeqNumberInBank_ID)\n\t{\n\t\tif (LBR_SeqNumberInBank_ID < 1) \n\t\t\tset_Value (COLUMNNAME_LBR_SeqNumberInBank_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_LBR_SeqNumberInBank_ID, Integer.valueOf(LBR_SeqNumberInBank_ID));\n\t}",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"public void setIdAlumno(int value) {\n this.idAlumno = value;\n }",
"private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public static void setIdActivida(Long idActivida) {\r\n\t\tNotaActividad.idActivida = idActivida;\r\n\t}",
"public void setID(long id);",
"public void setXX_SalesBudgetForm_ID (int XX_SalesBudgetForm_ID)\r\n {\r\n if (XX_SalesBudgetForm_ID < 1) throw new IllegalArgumentException (\"XX_SalesBudgetForm_ID is mandatory.\");\r\n set_Value (\"XX_SalesBudgetForm_ID\", Integer.valueOf(XX_SalesBudgetForm_ID));\r\n \r\n }",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"public void setIdbulto(Number value)\n {\n setAttributeInternal(IDBULTO, value);\n }",
"public abstract void setCod_actividad(java.lang.Long newCod_actividad);",
"public Integer getBlId() {\n return blId;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public void setJP_BankData_ID (int JP_BankData_ID);",
"public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBUSUNITID(java.lang.Long value) {\n validate(fields()[4], value);\n this.BUS_UNIT_ID = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"public void setMPC_Order_BOMLine_ID(int MPC_Order_BOMLine_ID) {\n\t\tif (MPC_Order_BOMLine_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", new Integer(MPC_Order_BOMLine_ID));\n\t}",
"public abstract void setAcma_id(java.lang.Long newAcma_id);",
"public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}",
"public void setJP_BankDataLine_ID (int JP_BankDataLine_ID);",
"public String getAccountLogId() {\n return accountLogId;\n }",
"public void setID(Integer ID){\n this.ID = ID;\n }",
"public void setLBR_MDFeUnload_ID (int LBR_MDFeUnload_ID);",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setBUSUNITID(java.lang.Long value) {\n this.BUS_UNIT_ID = value;\n }",
"public void setID(int id){\n this.id=id;\n }",
"public void setBuid(long value) {\r\n this.buid = value;\r\n }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Integer arg0) {\n\n\t}",
"public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }",
"@Override\n\tpublic void setColumnId(long columnId) {\n\t\t_expandoColumn.setColumnId(columnId);\n\t}",
"public void testPropagateIds() throws Exception {\n\n DAS das = DAS.FACTORY.createDAS(getConfig(\"CompanyConfig.xml\"), getConnection());\n Command select = das.getCommand(\"all companies\");\n DataObject root = select.executeQuery();\n\n // Create a new Company\n DataObject company = root.createDataObject(\"COMPANY\");\n company.setString(\"NAME\", \"Do-rite Pest Control\");\n\n // verify pre-condition (id is not there until after flush)\n assertNull(company.get(\"ID\"));\n\n // Flush changes \n das.applyChanges(root);\n\n // Save the id\n Integer id = (Integer) company.get(\"ID\");\n\n // Verify the change\n select = das.createCommand(\"Select * from COMPANY where ID = ?\");\n select.setParameter(1, id);\n root = select.executeQuery();\n assertEquals(\"Do-rite Pest Control\", root.getDataObject(\"COMPANY[1]\").getString(\"NAME\"));\n\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }",
"int getBId();",
"@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}",
"public void setID(Long ID) {\n this.ID = ID;\n }",
"public void set_id(int ID)\n {\n id =ID;\n }",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public void setRoomstlogid(Long newVal) {\n if ((newVal != null && this.roomstlogid != null && (newVal.compareTo(this.roomstlogid) == 0)) || \n (newVal == null && this.roomstlogid == null && roomstlogid_is_initialized)) {\n return; \n } \n this.roomstlogid = newVal; \n roomstlogid_is_modified = true; \n roomstlogid_is_initialized = true; \n }",
"void setID(int val)\n throws RemoteException;",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"public void setID(String newID)\r\n {\r\n id=newID;\r\n }",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {\n\t\t\n\t}",
"public void setId( Long id ) {\n this.id = id ;\n }",
"public void setBankAccountDetails(int C_BankAccount_ID) {\n if (C_BankAccount_ID == 0) {\n return;\n }\n setC_BankAccount_ID(C_BankAccount_ID);\n //\n String sql = \"SELECT b.RoutingNo, ba.AccountNo \"\n + \"FROM C_BankAccount ba\"\n + \" INNER JOIN C_Bank b ON (ba.C_Bank_ID=b.C_Bank_ID) \"\n + \"WHERE C_BankAccount_ID=?\";\n try {\n PreparedStatement pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, C_BankAccount_ID);\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n setRoutingNo(rs.getString(1));\n setAccountNo(rs.getString(2));\n }\n rs.close();\n pstmt.close();\n } catch (SQLException e) {\n log.log(Level.SEVERE, \"setsetBankAccountDetails\", e);\n }\n }",
"public void setId(Long id)\r\n {\r\n this.id = id;\r\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public void setBaseId(String baseId) {\n this.baseId = baseId;\n }",
"public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}",
"public void setC_BPartner_ID (int C_BPartner_ID);",
"@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}",
"public void setID(int ID)\r\n {\r\n this.ID = ID;\r\n }",
"public BigDecimal getIdbusquedalaboral() {\n\t\treturn idbusquedalaboral;\n\t}",
"@Override\n public void setId(final long id) {\n super.setId(id);\n }",
"public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"public void setId(int driverDBId);",
"public Builder setBankBranchID(String value) {\n validate(fields()[8], value);\n this.bankBranchID = value;\n fieldSetFlags()[8] = true;\n return this; \n }",
"public void setBtrAudUid(Integer aBtrAudUid) {\n btrAudUid = aBtrAudUid;\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }",
"public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public int getBId() {\n return instance.getBId();\n }",
"public void setId(Long value) {\n this.id = value;\n }",
"public void setId(Long id)\n {\n this.id = id;\n }",
"public void setAccountLogId(String accountLogId) {\n this.accountLogId = accountLogId == null ? null : accountLogId.trim();\n }",
"public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setID(int value) {\n this.id = value;\n }",
"public void setPLeadBusDivId(Number value) {\n\t\tsetNumber(P_LEAD_BUS_DIV_ID, value);\n\t}",
"public void setId(Long pid) {\n this.pid = pid;\n }",
"public int getBId() {\n return bId_;\n }"
] | [
"0.5349357",
"0.5334641",
"0.5212014",
"0.5203206",
"0.5200656",
"0.5166678",
"0.5047216",
"0.50025105",
"0.50025105",
"0.49984145",
"0.49329734",
"0.49306977",
"0.49013546",
"0.48781127",
"0.48420408",
"0.48354366",
"0.4828596",
"0.48248473",
"0.48226017",
"0.4814203",
"0.4804195",
"0.47858584",
"0.47823104",
"0.47786328",
"0.4777826",
"0.47759122",
"0.4774436",
"0.4770708",
"0.47668543",
"0.4766561",
"0.47663507",
"0.47441703",
"0.47411153",
"0.47292763",
"0.47292763",
"0.47178277",
"0.47164306",
"0.47116756",
"0.47112152",
"0.47075185",
"0.47069898",
"0.47045523",
"0.46997178",
"0.46750012",
"0.4671324",
"0.46710613",
"0.46675822",
"0.46640408",
"0.4662636",
"0.4656468",
"0.46499208",
"0.46472156",
"0.46414778",
"0.4635811",
"0.46327585",
"0.46311867",
"0.46305248",
"0.46169695",
"0.46166718",
"0.46160406",
"0.4614441",
"0.46142533",
"0.46054554",
"0.46023932",
"0.46023932",
"0.45896283",
"0.45871228",
"0.4585965",
"0.45777377",
"0.45776424",
"0.45732465",
"0.45719793",
"0.45699537",
"0.45691952",
"0.45638487",
"0.45637646",
"0.45631847",
"0.45607013",
"0.4559551",
"0.45546526",
"0.45527047",
"0.4552023",
"0.45517746",
"0.45490423",
"0.45461357",
"0.45458406",
"0.45448327",
"0.45375672",
"0.45375672",
"0.45375672",
"0.45349",
"0.4531926",
"0.4524564",
"0.45220876",
"0.45150954",
"0.45142215",
"0.45142215",
"0.45135966",
"0.45132482",
"0.45131475",
"0.45115235"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.FUNC_NAME | public String getFuncName() {
return funcName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\n {\n return m_functionName;\n }",
"public String getFunctionName() {\r\n\t\treturn this.functionName;\r\n\t}",
"public static String getTriggerField(){\n return WHAT_IS_THE_SOURCE_OF_FUNDS.getFieldNameValue();\n }",
"public String getFunctionName()\n {\n return m_functionName;\n }",
"public String getFuncname() {\r\n return funcname;\r\n }",
"public String getfunction() {\n\t\treturn _function;\n\t}",
"public String getName() {\n return m_function.getName();\n }",
"protected abstract String getFunctionName();",
"@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}",
"public String getFunctionName() {\n\t\treturn null;\n\t}",
"String getFunctionName();",
"public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}",
"public String getBName() {\n\t\tif (getAbsoluteName)\n\t\t\treturn absoluteName;\n\t\telse\n\t\t\treturn shortName;\n\t}",
"private String getFunctionName() {\n StackTraceElement[] sts = Thread.currentThread().getStackTrace();\n if (sts == null) {\n return null;\n }\n for (StackTraceElement st : sts) {\n if (st.isNativeMethod()) {\n continue;\n }\n if (st.getClassName().equals(Thread.class.getName())) {\n continue;\n }\n if (st.getClassName().equals(LogUtils.this.getClass().getName())) {\n continue;\n }\n return \"[ \" + Thread.currentThread().getName() + \": \"\n + st.getFileName() + \":\" + st.getLineNumber() + \" \"\n + st.getMethodName() + \" ]\";\n }\n return null;\n }",
"String getValueName();",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"String getName(Formula f);",
"public String getCurrentTimestampSQLFunctionName() {\n \t\t// the standard SQL function name is current_timestamp...\n \t\treturn \"current_timestamp\";\n \t}",
"public String getName() { return _sqlName; }",
"public String getActionName() {\n\t\treturn this.function;\n\t}",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@DhtmlColumn(columnIndex = 3, headerName = \"函数\", coulumnType = DhtmlxBaseType.TXT)\n\t@NotBlank\n\tpublic String getEventFun() {\n\t\treturn eventFun;\n\t}",
"public abstract String getDatabaseColumnName(String entityName, String propertyName);",
"public String getBENEF_ACC() {\r\n return BENEF_ACC;\r\n }",
"public String getFullName()\n {\n String schema = db.getSchema();\n return (schema!=null) ? schema+\".\"+name : name;\n }",
"String getColumnName();",
"public String getJS_FUNCTION() {\r\n return JS_FUNCTION;\r\n }",
"private String getAllColumnName() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// .append(COLUMN_id).append(\"=?,\").\n\t\tbuilder.append(\"user_id\").append(\"=?,\");\n\t\tbuilder.append(\"lib_book_id\").append(\"=?,\");\n\t\tbuilder.append(\"lending_date\").append(\"=?,\");\n\t\tbuilder.append(\"return_date\").append(\"=?,\");\n\t\tbuilder.append(\"returned_date\").append(\"=?,\");\n\t\tbuilder.append(\"status\").append(\"=?\");\n\t\t\n\t\treturn builder.toString();\n\t}",
"public String getName() {\n return columnName;\n }",
"public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }",
"public java.lang.String getBNAMF() {\n return BNAMF;\n }",
"public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}",
"@Override\r\n public String getCommand() {\n return \"function\";\r\n }",
"public String getName(){\n\t\t\treturn columnName;\n\t\t}",
"public String getFullSampleName(int column);",
"java.lang.String getField1005();",
"public static String getName(String rfc) {\n\t\tString result = \"\";\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT FNAME \" + \"FROM CREDIT.CUSTOMER \" + \"WHERE RFC='\" + rfc + \"'\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = rs.getString(1);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public static String getCurrentMethodName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tString fullString = stackTraceElements[1].toString();\n\t\tint stringEnd = fullString.indexOf('(');\n\t\tString fullName = fullString.substring(0, stringEnd);\n\t\tint start = fullName.lastIndexOf('.') + 1;\n\t\tString methodName = fullName.substring(start);\n\n\t\treturn methodName;\n\t}",
"String getInizializedFunctionName();",
"public String toString() {\n return function.toString();\n }",
"default String lambdaFieldName(T bean) {\n SerializedLambda serializedLambda = serialized();\n if (MethodHandleInfo.REF_invokeVirtual != serializedLambda.getImplMethodKind()) {\n throw new RuntimeException(\"unsupported lambda impl method kind \" + serializedLambda.getImplMethodKind()\n + \". Only work for [Class::Method] struct's lambda\");\n }\n String getter = serializedLambda.getImplMethodName();\n String fieldName = getter;\n if (getter.startsWith(\"get\")) {\n fieldName = Introspector.decapitalize(getter.substring(3));\n } else if (getter.startsWith(\"is\")) {\n String guessFieldName = Introspector.decapitalize(getter.substring(2));\n if (null == bean) {\n fieldName = guessFieldName;\n } else {\n try {\n bean.getClass().getDeclaredField(getter);\n fieldName = getter;\n } catch (NoSuchFieldException e) {\n // ignore substring when the field name is \"isXxx\"\n fieldName = guessFieldName;\n }\n }\n }\n return fieldName;\n }",
"java.lang.String getField1033();",
"public static String getFieldSuffix() {\n final String locale = ContextStore.get().getUserSessionDto().getLocale();\n return \"_\" + Utility.getDbExtension(locale);\n }",
"@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }",
"@Override\n\tpublic String getJdbcTypeName() {\n\t\tString text = JdbcTypesManager.getJdbcTypes().getTextForCode( getJdbcTypeCode() );\n\t\treturn text != null ? text : \"???\" ;\n\t}",
"@Override\n public String getFName() {\n\n if(this.fName == null){\n\n this.fName = TestDatabase.getInstance().getClientField(token, id, \"fName\");\n }\n return fName;\n }",
"public String getJP_BankDataCustomerCode1();",
"public String getColumnName() {\r\n return navBinder.getColumnName();\r\n }",
"public String getFullName() {\n return getFullMethodName(method);\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
"java.lang.String getSqlCode();",
"java.lang.String getField1791();",
"public String field() {\n\t\treturn \"_\"+methodBase();\n\t}",
"public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }",
"@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}",
"java.lang.String getField1107();",
"public String getMethodName() {\n return LOG_TAG + \":\" + this.getClass().getSimpleName() + \".\" + new Throwable().getStackTrace()[1].getMethodName();\n }",
"static public Object[] getFuncionesName() {\n if (funcionesName == null) {\n addFuncionesName();\n }\n return funcionesName.toArray();\n\n }",
"public String getColumnName();",
"public static String functionize(String func, String col) {\n return func + \"(\" + col + \")\";\n }",
"java.lang.String getField1129();",
"java.lang.String getField1109();",
"@Override\n\tpublic String getColumnName(int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn \"Expression\";\n\t\tcase 1:\n\t\t\treturn \"Value\";\n\t\t}\n\t\treturn null;\n\t}",
"java.lang.String getField1191();",
"public String getBAA001() {\n return BAA001;\n }",
"java.lang.String getField1751();",
"java.lang.String getField1833();",
"public Function getFunction()\n\t{\n\t\treturn function;\n\t}",
"java.lang.String getField1848();",
"java.lang.String getField1106();",
"java.lang.String getField1362();",
"@Override\n\tpublic List<String> getBusinessFunctionsForRoled(String roleId) {\n\t\tString sqlString = \"SELECT BUSINESS_FUNCTION_ID FROM role_business_function r WHERE r.`ROLE_ID`=?\";\n\t\treturn this.jdbcTemplate.queryForList(sqlString, new Object[] { roleId }, String.class);\n\t}",
"protected String xCB() { return ScheduledJobCB.class.getName(); }",
"java.lang.String getField1771();",
"java.lang.String getField1105();",
"public String toString() {\n\t\treturn methodName;\n\t}",
"java.lang.String getBankName();",
"public static String getLName(String rfc) {\n\t\tString result = \"\";\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT LNAME \" + \"FROM CREDIT.CUSTOMER \" + \"WHERE RFC='\" + rfc + \"'\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = rs.getString(1);\n\t\t\t}\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"String getDBQualifiedFieldName(String fieldName);",
"java.lang.String getField1195();",
"public String getBranchCodeFk() {\r\n return (String) getAttributeInternal(BRANCHCODEFK);\r\n }",
"java.lang.String getField1133();",
"private String getName() {\n return method.getName();\n }",
"public String getBranchCode() {\n return normalizedBic.substring(BRANCH_CODE_INDEX, BRANCH_CODE_INDEX + BRANCH_CODE_LENGTH);\n }",
"java.lang.String getCodeName();",
"public String getFunctionLocation() {\n return \" [\" + name + \"]\";\n }",
"String getFieldName();",
"public String getDbPgsqlAlfa() {\n return this.dbPgsqlAlfa;\n }",
"java.lang.String getField1491();",
"java.lang.String getField1851();",
"java.lang.String getField1064();",
"java.lang.String getField1759();",
"java.lang.String getField1171();",
"java.lang.String getField1451();",
"java.lang.String getField1755();",
"java.lang.String getField1793();",
"@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}",
"java.lang.String getField1705();",
"public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }"
] | [
"0.57860816",
"0.5743873",
"0.5697496",
"0.56090117",
"0.55548453",
"0.5508031",
"0.5499063",
"0.54966694",
"0.54239786",
"0.5418664",
"0.53022856",
"0.52872187",
"0.5282913",
"0.52454025",
"0.518247",
"0.5182389",
"0.5180673",
"0.51799536",
"0.50922084",
"0.5075438",
"0.50726634",
"0.5057276",
"0.50487",
"0.5048494",
"0.5031633",
"0.50311834",
"0.5021774",
"0.50072575",
"0.5003027",
"0.500085",
"0.5000154",
"0.5000099",
"0.49918395",
"0.49906555",
"0.49906087",
"0.49688423",
"0.49641836",
"0.49555054",
"0.4954346",
"0.49495125",
"0.4917566",
"0.49115676",
"0.4904251",
"0.49037495",
"0.49018958",
"0.48991778",
"0.48987782",
"0.48952115",
"0.48877272",
"0.48841858",
"0.48841858",
"0.4882226",
"0.4880149",
"0.48791537",
"0.48761752",
"0.48663634",
"0.48567063",
"0.48553345",
"0.48474514",
"0.48423567",
"0.48378795",
"0.48373032",
"0.4831298",
"0.4829423",
"0.48279536",
"0.48249018",
"0.48233208",
"0.4821817",
"0.48186478",
"0.48185876",
"0.4813487",
"0.48126313",
"0.48112586",
"0.4810068",
"0.4809084",
"0.4807555",
"0.48032168",
"0.48009095",
"0.4800043",
"0.48000294",
"0.4794604",
"0.47919303",
"0.47893393",
"0.47870967",
"0.4784771",
"0.47844794",
"0.47843045",
"0.47841763",
"0.47830388",
"0.47828138",
"0.4781616",
"0.47802052",
"0.47798696",
"0.47777215",
"0.47774187",
"0.47766486",
"0.47763863",
"0.4775604",
"0.47748536",
"0.47748193"
] | 0.58701265 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.FUNC_NAME | public void setFuncName(String funcName) {
this.funcName = funcName == null ? null : funcName.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setFunctionName(String functionName) {\n\n }",
"public void setFunction (String columnName, String function)\n\t{\n\t\tsetFunction(getColumnIndex(columnName), function);\n\t}",
"public void setFuncname(String funcname) {\r\n this.funcname = funcname == null ? null : funcname.trim();\r\n }",
"public void setFunctionName(String functionName) {\r\n\t\tthis.functionName = functionName;\r\n\t}",
"public String getFuncName() {\n return funcName;\n }",
"public void setBNAMF(java.lang.String BNAMF) {\n this.BNAMF = BNAMF;\n }",
"public void setFunction(SoSensorCB f) {\n\t\t func = f; \n\t}",
"public String getName()\n {\n return m_functionName;\n }",
"public String getFuncname() {\r\n return funcname;\r\n }",
"public String getFunctionName() {\r\n\t\treturn this.functionName;\r\n\t}",
"protected abstract String getFunctionName();",
"public void setfunction(String function) {\n\t\t_function = function;\n\t}",
"public static String getTriggerField(){\n return WHAT_IS_THE_SOURCE_OF_FUNDS.getFieldNameValue();\n }",
"public void setLastFunctionChar(String functionChar) {\n this.lastFunctionChar = functionChar;\n }",
"@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}",
"public void setBENEF_ACC(String BENEF_ACC) {\r\n this.BENEF_ACC = BENEF_ACC == null ? null : BENEF_ACC.trim();\r\n }",
"@Test\n public void testSetColumnName() {\n writeBanner(getMethodName());\n }",
"public String getFunctionName()\n {\n return m_functionName;\n }",
"public void setFuncNameTxtArea(TextBox funcNameTxtArea) {\n\t\tthis.funcNameTxtArea = funcNameTxtArea;\n\t}",
"@Override\r\n public String getCommand() {\n return \"function\";\r\n }",
"public void setJS_FUNCTION(String JS_FUNCTION) {\r\n this.JS_FUNCTION = JS_FUNCTION == null ? null : JS_FUNCTION.trim();\r\n }",
"private void addCustomColumnMethod(Vector<String> customColumns,String windowName2) {\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tString methodName = \"\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(WindowTableModelMappingConstants.COLUMNDATATYPE)) {\r\n\t\t\t//\tmethodName = methodName = \r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);",
"public String getBENEF_ACC() {\r\n return BENEF_ACC;\r\n }",
"public String getFunctionName() {\n\t\treturn null;\n\t}",
"private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }",
"public Builder setSFunc(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n sFunc_ = value;\n onChanged();\n return this;\n }",
"public void setFunctionBinary(Binary functionBinary) {\r\n\t\tthis.functionBinary = functionBinary;\r\n\t}",
"public String getfunction() {\n\t\treturn _function;\n\t}",
"public Builder setFinalFunc(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n finalFunc_ = value;\n onChanged();\n return this;\n }",
"public void setEventFun(String eventFun) {\n\t\tthis.eventFun = eventFun;\n\t}",
"private void populateCallbackName(UIBean uiBean) {\r\n String callbackName;\r\n if (callback != null) {\r\n callbackName = eval.evaluateExpression(callback);\r\n uiBean.addParameter(\"customCallback\", true);\r\n } else {\r\n callbackName = YUITools.sanitizeForJavascript(uiBean.getId()+\"Callback\");\r\n uiBean.addParameter(\"customCallback\", false);\r\n }\r\n uiBean.addParameter(\"callback\", callbackName);\r\n }",
"public java.lang.String getBNAMF() {\n return BNAMF;\n }",
"public void setColumnName (String ColumnName);",
"public abstract String getDatabaseColumnName(String entityName, String propertyName);",
"public void setGBF(java.lang.String param) {\r\n localGBFTracker = param != null;\r\n\r\n this.localGBF = param;\r\n }",
"public String getName() { return _sqlName; }",
"public void setFunction (int col, String function)\n\t{\n\t\tlog.config( \"RModel.setFunction col=\" + col + \" - \" + function);\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn;\n\t\tm_data.functions.put(new Integer(col), function);\n\t}",
"public void setBAA001(String BAA001) {\n this.BAA001 = BAA001;\n }",
"@Override\n public String getFName() {\n\n if(this.fName == null){\n\n this.fName = TestDatabase.getInstance().getClientField(token, id, \"fName\");\n }\n return fName;\n }",
"public SoSensorCB getFunction() { return func; }",
"@Override\n\t\t\t\t\tpublic void onCompleteDB(String funName, int type,\n\t\t\t\t\t\t\tCursor cursor, String tableName) {\n\n\t\t\t\t\t}",
"public String getBAA001() {\n return BAA001;\n }",
"public void setOperationName(java.lang.String param){\n localOperationNameTracker = true;\n \n this.localOperationName=param;\n \n\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualCarrierCodeColumn()\n {\n return newActualCarrierCodeColumn(\"Actual Carrier Code\");\n }",
"public void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);",
"public void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);",
"public static String functionize(String func, String col) {\n return func + \"(\" + col + \")\";\n }",
"@DhtmlColumn(columnIndex = 3, headerName = \"函数\", coulumnType = DhtmlxBaseType.TXT)\n\t@NotBlank\n\tpublic String getEventFun() {\n\t\treturn eventFun;\n\t}",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualAirportCodeColumn()\n {\n return newActualAirportCodeColumn(\"Actual Airport Code\");\n }",
"public String getBName() {\n\t\tif (getAbsoluteName)\n\t\t\treturn absoluteName;\n\t\telse\n\t\t\treturn shortName;\n\t}",
"public String getDbPgsqlAlfa() {\n return this.dbPgsqlAlfa;\n }",
"public DatabaseQueryColumn(String name) {\n this.formula = null;\n this.name = name;\n }",
"public void setFuncConfig(String funcConfig) {\n\t\tthis.funcConfig = funcConfig == null ? null : funcConfig.trim();\n\t}",
"@Override\n public java.lang.String getBusinessBrandName() {\n return _entityCustomer.getBusinessBrandName();\n }",
"public String getName() {\n return m_function.getName();\n }",
"public abstract void setAcma_valor(java.lang.String newAcma_valor);",
"protected void sequence_TriggerName(ISerializationContext context, TriggerName semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getTriggerName_Id()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getTriggerName_Id()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getTriggerNameAccess().getIdIDTerminalRuleCall_0(), semanticObject.getId());\n\t\tfeeder.finish();\n\t}",
"@Override\n\tpublic String sqlQualifiedColumn(String tablename, String columnname) {\n\t\treturn String.format(\"%s.\\\"%s\\\"\", tablename, columnname);\n\t}",
"public String applyHdbFunction(String functions) {\n return functions;\n }",
"public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}",
"public String getMode() { return \"FUNC\"; }",
"@Override public String getCommandLongName(long[] dummy ) \n { return F_NAME; }",
"public void addWithVarName_expressionSqlTo(String varName, StringBuffer sqlStringB) {\r\n sqlStringB.append(varName+\".\"+tableColumnName+\" \");\r\n }",
"public void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);",
"public void setChaosFn(int chaosFn) {\n }",
"public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}",
"String getValueName();",
"public void setJP_BankAccount_Value (String JP_BankAccount_Value);",
"@Override\n final public String getName() {\n return \"TR1_DB1_Q5\";\n }",
"public void setDELB(java.lang.String param) {\r\n localDELBTracker = param != null;\r\n\r\n this.localDELB = param;\r\n }",
"@Override\n public String getBusinessName() {\n\n if(this.businessName == null){\n\n this.businessName = TestDatabase.getInstance().getClientField(token, id, \"businessName\");\n }\n\n return businessName;\n }",
"public void setFunctionClass(String functionClass) {\n this.functionClass = functionClass == null ? null : functionClass.trim();\n }",
"private void appendColumnName() {\n appendColumnNames(joinQueryInputs.columns, true);\n }",
"private static void addFuncionesName() {\n\n funcionesName = new ArrayList<String>();\n if (funciones == null) {\n addFunciones();\n }\n Iterator it = funciones.iterator();\n while (it.hasNext()) {\n funcionesName.add(((GlobalSimilarityNode) it.next()).getName());\n }\n }",
"public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }",
"public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }",
"@Override\n\tpublic void setOnClickEvent(String functionName) {\n\t\t\n\t}",
"public String getCurrentTimestampSQLFunctionName() {\n \t\t// the standard SQL function name is current_timestamp...\n \t\treturn \"current_timestamp\";\n \t}",
"public void setBaseName(String baseName) {\n this.baseName = baseName == null ? null : baseName.trim();\n }",
"public void setColumnName(String newVal) {\n if ((newVal != null && this.columnName != null && (newVal.compareTo(this.columnName) == 0)) || \n (newVal == null && this.columnName == null && columnName_is_initialized)) {\n return; \n } \n this.columnName = newVal; \n\n columnName_is_modified = true; \n columnName_is_initialized = true; \n }",
"public void setFirstName(String fn) {\n //I need to capture the value from the argument\n //which is going to scope out soon\n //\n //\n firstName = fn;\n }",
"public String getName(){\n\t\t\treturn columnName;\n\t\t}",
"@Override\n\tpublic void setOnChangeEvent(String functionName) {\n\t\t\n\t}",
"public void defSequence(String fieldname, String sequenceName) {\r\n calls.put(fieldname, MessageFormat.format(SEQ[dbms], sequenceName));\r\n }",
"public String constant() {\n\t\tString tmp = methodBase().replaceAll(\"([a-z])([A-Z])\",\"$1_$2\");\n\t\treturn tmp.toUpperCase();\n\t}",
"public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileDeviceNameColumn()\n {\n return newMobileDeviceNameColumn(\"Mobile Device Name\");\n }",
"public void initialDatabaseAutomatikFunctionInformation () {\n Calendar calendar = Calendar.getInstance();\n Integer currentYear = calendar.get(Calendar.YEAR);\n Integer month = calendar.get(Calendar.MONTH); //Januar wird als \"0\" übergeben.\n Integer currentMonth = month + 1;\n\n String initialDateName = \"AutoDBFunction\" + currentYear.toString() + currentMonth.toString();\n\n //erstelle Speicherdatei und anlegen von Eintrag\n SharedPreferences sharedPreferences = getSharedPreferences(\"SP_DBFunction\", 0);\n SharedPreferences.Editor editor = sharedPreferences.edit(); //Editorklasse initialisieren (um zu schreiben)\n editor.putBoolean(initialDateName, true); //Inhalt übergeben (Key, Value)\n editor.commit();\n }",
"public void clickFunc() {\n\t\t\n\t\tString sql = \"INSERT INTO `caqui`.`funcionarios` (`Nome`, `RG`, `CPF`, `Telefone`, `Data_Nascimento`, `Numero_Carteira_Trabalho`, `Celular`, `Email`, `Data_Admissao`, `Funcao`, `Endereco_idEndereco`) VALUES ('\"+Nome+\"', '\"+RG+\"', '\"+CPF+\"', '\"+Telefone+\"', '\"+Nasci+\"', '\"+Carteira+\"', '\"+Celular+\"', '\"+Email+\"', '\"+Admissao+\"', '\"+Funcao+\"', '\"+id_end+\"')\";\n\t\t\n\t\tConn.ConectaSql(sql);\n\t}",
"TblBTSSysFunctionDO selectByPrimaryKey(String funcId);",
"public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }",
"public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }",
"public String getJS_FUNCTION() {\r\n return JS_FUNCTION;\r\n }",
"String getFunctionName();",
"static String editCompany()\n {\n if(companyName !=null) companyName = \"IBM\";\n return companyName;\n }",
"public static void m5817b(String str) {\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"carBrandName\", str);\n f4669a.m12578a(\"Brand_Clicked\", bundle);\n }\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"Car Brand Clicked\").putCustomAttribute(\"carBrandName\", str));\n }",
"public void setEmphcolumn(String emphColumnIn)\n {\n emphColumn = emphColumnIn;\n }",
"@AutoEscape\n public String getBusinessBrandName();",
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}",
"public void setFunctionType(Short functionType) {\n this.functionType = functionType;\n }"
] | [
"0.53917277",
"0.53054506",
"0.5054184",
"0.49221674",
"0.49045885",
"0.48714176",
"0.48276943",
"0.47571287",
"0.47411922",
"0.47393048",
"0.46641043",
"0.46611083",
"0.46609747",
"0.4650547",
"0.46465182",
"0.4626573",
"0.46086133",
"0.45878264",
"0.45654133",
"0.45320433",
"0.4530771",
"0.4523447",
"0.44900024",
"0.44863614",
"0.44782126",
"0.4470555",
"0.4468973",
"0.44574493",
"0.44456968",
"0.4432249",
"0.4428823",
"0.44153735",
"0.44022247",
"0.4399325",
"0.43971348",
"0.43934694",
"0.4391993",
"0.43916774",
"0.43844864",
"0.4365165",
"0.43185258",
"0.43122563",
"0.43085805",
"0.4297925",
"0.4297813",
"0.42921892",
"0.42905134",
"0.42873687",
"0.42840776",
"0.4275816",
"0.42703778",
"0.4267186",
"0.42616737",
"0.4255972",
"0.42558178",
"0.4254116",
"0.42523497",
"0.42499003",
"0.42467555",
"0.42449737",
"0.4242374",
"0.42386654",
"0.42304528",
"0.4228838",
"0.42280978",
"0.4221759",
"0.4219926",
"0.42197853",
"0.42190653",
"0.4208858",
"0.42083827",
"0.42079923",
"0.42024618",
"0.42022184",
"0.41969603",
"0.4191613",
"0.4191613",
"0.41912085",
"0.41899517",
"0.41899297",
"0.41858348",
"0.41854888",
"0.41834512",
"0.4183441",
"0.41781375",
"0.41690317",
"0.41685086",
"0.41583687",
"0.41424942",
"0.413911",
"0.41380632",
"0.41380632",
"0.41358647",
"0.4135787",
"0.41335142",
"0.41321614",
"0.4128883",
"0.41271776",
"0.4117632",
"0.4115504"
] | 0.5218018 | 2 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.OPERATETYPE | public Long getOperatetype() {
return operatetype;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}",
"public void setOperatetype(Long operatetype) {\n this.operatetype = operatetype;\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}",
"public String getOperationType() {\r\n return operationType;\r\n }",
"public String getOper() {\n return oper;\n }",
"public mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.TipoOperacionTO getTipoOperacionTO() {\n return tipoOperacionTO;\n }",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"public TypeOperation getOperation(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp)\n return tabTypeOp[i];\n }\n return null;\n }",
"public void setOperTypeName(String operTypeName) {\r\n\t\tthis.operTypeName = operTypeName;\r\n\t}",
"public java.lang.String getTipoOperacion() {\n return tipoOperacion;\n }",
"Operator.Type getOperation();",
"@Override\n\tpublic String operateTypeId() throws Exception{\n\t\treturn \"02004\";\n\t}",
"public java.lang.String calculationType()\n\t{\n\t\treturn _strCalculationType;\n\t}",
"public java.lang.Long getOpcintype() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCINTYPE);\n\t}",
"private OpBinary getOpBinary(int opType) {\n switch(opType) {\n case napLexer.ADD: return OpBinary.ADD;\n case napLexer.SUB: return OpBinary.SUB;\n case napLexer.MUL: return OpBinary.MUL;\n case napLexer.DIV: return OpBinary.DIV;\n case napLexer.MOD: return OpBinary.MOD;\n case napLexer.AND: return OpBinary.AND;\n case napLexer.OR: return OpBinary.OR;\n case napLexer.NEQ: return OpBinary.NEQ;\n case napLexer.LT: return OpBinary.LT;\n case napLexer.LE: return OpBinary.LE;\n case napLexer.GT: return OpBinary.GT;\n case napLexer.GE: return OpBinary.GE;\n default: return OpBinary.EQ;\n }\n }",
"@objid (\"5d1e9f76-f0d9-4b67-a34e-4ac268bb9498\")\n Operation getOBase();",
"EnumOperationType getOperationType();",
"public void setTipoOperacion(java.lang.String tipoOperacion) {\n this.tipoOperacion = tipoOperacion;\n }",
"public String getOperateLogic() {\n return this.OperateLogic;\n }",
"Type getResultType();",
"public char getOper(){\n\t\treturn oper;\n\t}",
"public BigDecimal getLBR_TaxBaseOwnOperation();",
"public void setOper(String oper) {\n this.oper = oper;\n }",
"public Date getOPER_TIME() {\n return OPER_TIME;\n }",
"public int getSqlType() { return _type; }",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public OperationType getOperation() {\r\n return operation;\r\n }",
"public int getJdbcType();",
"public java.lang.String getOperateCode() {\n return operateCode;\n }",
"@Override\n\tpublic BaseOperation getOperationType() {\n\t\treturn null;\n\t}",
"public Column.Type getType();",
"RelDataType getColumnType(String sql);",
"public ReadOperationResultType getResultType()\n {\n if(resultType == null) resultType = ReadOperationResultType.ALL;\n return resultType;\n }",
"public Operator getOp() {\n return op;\n }",
"public String\t\tgetOrderType();",
"public int getUnitCalculatorType()\n {\n return m_nCalculatorType;\n }",
"public EnumTypeOperation getTypeOperation() {\r\n return TypeOperation;\r\n }",
"public int getColumnType() {\n return (this.option >> 6) & 3;\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public java.lang.Integer getOperator() throws java.rmi.RemoteException;",
"public List<String> getAvaliableValues(OperatorParameter parameter,String userName ,ResourceType dbType ) throws Exception {\n\t\tString operatorClassName=parameter.getOperator().getClass().getCanonicalName();\n\t\tif(numericALLDCOperators.contains(operatorClassName)){\n\t\t\treturn getColumnNames(parameter.getOperator(), OperatorParameter.Column_Type_Numeric, userName,dbType);\n\t\t\t\n\t\t}else if(noFloatDCOperators.contains(operatorClassName)){\n\t\t\treturn getColumnNames(parameter.getOperator(), OperatorParameter.Column_Type_NoFloat, userName,dbType);\t\n\t\t}\n\t\telse{\n\t\t\treturn getColumnNames(parameter.getOperator(), OperatorParameter.Column_Type_ALL, userName,dbType);\n\t\t}\n\t}",
"public String getBusiness_Type() {\n return (String) getAttributeInternal(BUSINESS_TYPE);\n }",
"public Class<?> getType() {\n switch (this.aggregate) {\n case COUNT_BIG:\n return DataTypeManager.DefaultDataClasses.LONG;\n case COUNT:\n return COUNT_TYPE;\n case SUM:\n Class<?> expressionType = this.getArg(0).getType();\n return SUM_TYPES.get(expressionType);\n case AVG:\n expressionType = this.getArg(0).getType();\n return AVG_TYPES.get(expressionType);\n case ARRAY_AGG:\n if (this.getArg(0) == null) {\n return null;\n }\n return DataTypeManager.getArrayType(this.getArg(0).getType());\n case TEXTAGG:\n return DataTypeManager.DefaultDataClasses.BLOB;\n case JSONARRAY_AGG:\n return DataTypeManager.DefaultDataClasses.JSON;\n case USER_DEFINED:\n case STRING_AGG:\n return super.getType();\n case PERCENT_RANK:\n case CUME_DIST:\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isBoolean()) {\n return DataTypeManager.DefaultDataClasses.BOOLEAN;\n }\n if (isEnhancedNumeric()) {\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isRanking()) {\n return super.getType();\n }\n if (this.getArgs().length == 0) {\n return null;\n }\n return this.getArg(0).getType();\n }",
"public String getDataType() \n {\n System.out.println(dataType.getValue().toString());\n return dataType.getValue().toString(); \n }",
"public String getBankAccountType();",
"public void setOperTypeId(String operTypeId) {\r\n\t\tthis.operTypeId = operTypeId;\r\n\t}",
"public String getLBR_ICMS_TaxBaseType();",
"RelDataType getResultType(String sql);",
"public BigDecimal getLBR_ICMS_TaxAmtOp();",
"@VTID(13)\n com.exceljava.com4j.excel.XlCmdType getCommandType();",
"public String getSqlType() {\n\t\treturn this.sqlType;\n\t}",
"private CodeFragment generateBinOPinstruction(String op, String type, CodeFragment exprL, CodeFragment exprR) {\n CodeFragment result = new CodeFragment();\n result.addCode(exprL);\n result.addCode(exprR);\n result.setRegister(this.generateNewRegister(false));\n\n result.addCode(String.format(\"%s = %s %s %s, %s\\n\", result.getRegister(), op, type,\n exprL.getRegister(), exprR.getRegister()));\n\n return result;\n }",
"public String getIndexType()\n {\n if (this.indexType == null) {\n try {\n this.getMySQLTableStatus();\n } catch (DBException dbe) {\n // continue below\n }\n // \"this.indexType\" should be set (but possibly \"?\" if error)\n if (this.indexType == null) {\n // still null? set to \"?\"\n this._setIndexType(\"?\");\n }\n }\n return this.indexType;\n }",
"public int getTipoSql() {\n return tipoSql;\n }",
"public abstract String getDB2ProductTypeTestSql();",
"public String getLBR_ICMSST_TaxBaseType();",
"public String getBusinessType() {\n\t\treturn businessType;\n\t}",
"public String getResultType();",
"public TIPO tipoDeB(int op, TIPO tipo1, TIPO tipo2){\r\n\t\tif(tipo1 == TIPO.err || tipo2 == TIPO.err) return TIPO.err;\r\n\t\telse if( op == opMenor || op == opMenIg||\r\n\t\t\top == opMayor|| op == opIgual||\r\n\t\t\top == opMayIg || op == opDistinto){\r\n\t\t\treturn TIPO.ent;\r\n\t\t}\r\n\t\telse if( op == opSuma || op == opMult||\r\n\t\t\top == opMenos || op == opDiv){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.real;\r\n\t\t}\r\n\t\telse if( op == opAnd || op == opMod||\r\n\t\t\top == opOr){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t\telse/*( op == opAsig)*/{\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse if( (tipo1 == TIPO.real && tipo2 == TIPO.ent) ||\r\n\t\t\t\t\t (tipo1 == TIPO.real && tipo2 == TIPO.real)){\r\n\t\t\t\treturn TIPO.real;\r\n\t\t\t}\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t}",
"Integer getOperationTypeId();",
"public Type getExpressionType();",
"public int getType() throws SQLException {\n\n try {\n debugCodeCall(\"getType\");\n checkClosed();\n return stat == null ? ResultSet.TYPE_FORWARD_ONLY : stat.resultSetType;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public Tipo calculaTipo(){\n\t\tif(!(get_izq().getTipo().equals(TipoBasico.BOOL) &&\n\t\t\t\tget_dcha().getTipo().equals(TipoBasico.BOOL)))\n\t\t\tGestionErroresAnalisis.getInstance().errorTipos(\"Los operandos de las expresiones lógicas deben ser booleanos.\", getFila());\n\t\t\n\t\treturn TipoBasico.BOOL;\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public void setTipoOperacionTO(mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.TipoOperacionTO tipoOperacionTO) {\n this.tipoOperacionTO = tipoOperacionTO;\n }",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"public String getOp() {\n return op;\n }",
"public String getOp() {\n return op;\n }",
"public BigDecimal getOperator() {\n return operator;\n }",
"OrderType getOrderType();",
"int getCouponType();",
"ColumnOperand createColumnOperand();",
"@Override\n public BinaryType orBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 || b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }",
"public RelationalOp getOp() {\n\t\treturn op;\n\t}",
"protected abstract String statementType();",
"static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }",
"String getOp();",
"String getOp();",
"String getOp();",
"public String getJP_BankAccountType();",
"public String getOrderType(@XPath(value = \"/order:order/order:type\",\n namespaces = @NamespacePrefix(prefix = \"order\", uri = \"http://vpsdemo.no/order/v1\")) String type) {\n \tif (buy.equals(\"buy\")) {\n return buy;\n }\t else if (sell.equals(\"sell\")) {\n return sell;\n } else {\n return unknown;\n }\n }",
"public int getComboType() {\n\t\tif(combo) {\n\t\t\treturn -1;\n\t\t}\n\t\tcombo = true;\n\t\treturn this.type;\n\t}",
"public Expression getType();",
"private static String getColumnClassDataType (String windowName2) {\n\r\n\t\tString classType = \"@Override \\n public Class getColumnClass(int column) { \\n switch (column) {\\n\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tclassType = classType + \" case \" + i + \":\\n\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Boolean\")) {\r\n\t\t\t\tclassType = classType + \" return Boolean.class; \\n\";\r\n\t\t\t} else \tif(mp.getColumnDataType().equalsIgnoreCase(\"Integer\")) {\r\n\t\t\t\tclassType = classType + \" return Integer.class; \\n\";\r\n\t\t\t} else \t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Double\")) {\r\n\t\t\t\tclassType = classType + \" return Double.class; \\n\";\r\n\t\t\t} else {\r\n\t\t\t\tclassType = classType + \" return String.class; \\n\";\r\n\t\t\t}\r\n\t\t\r\n \r\n\r\n\t\t}\r\n\t\tclassType = classType + \" default: \\n return String.class;\\n }\\n}\";\r\n\t\treturn classType;\r\n\t}",
"public java.lang.String getOperateComCode() {\n return operateComCode;\n }",
"public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}",
"public OperationTypeElements getOperationTypeAccess() {\n\t\treturn eOperationType;\n\t}"
] | [
"0.59107983",
"0.565785",
"0.5476808",
"0.54747564",
"0.54650795",
"0.54601705",
"0.5416695",
"0.5399988",
"0.5380546",
"0.5369915",
"0.53338027",
"0.52864355",
"0.52113265",
"0.5158879",
"0.5141612",
"0.51284355",
"0.5115965",
"0.5104085",
"0.51028925",
"0.5102317",
"0.50754464",
"0.50684595",
"0.50479585",
"0.50292253",
"0.5014315",
"0.501282",
"0.5000941",
"0.5000941",
"0.49940658",
"0.49810663",
"0.49768198",
"0.49715048",
"0.49462414",
"0.49403003",
"0.488709",
"0.48772332",
"0.48744828",
"0.4874313",
"0.48729458",
"0.48715538",
"0.48715538",
"0.48684102",
"0.48642784",
"0.48639524",
"0.48583525",
"0.48541972",
"0.48450902",
"0.4842249",
"0.48419455",
"0.48415205",
"0.48409677",
"0.48365322",
"0.48336324",
"0.48323768",
"0.4826956",
"0.48219773",
"0.4820785",
"0.48190105",
"0.48055586",
"0.47927976",
"0.47907317",
"0.47896975",
"0.47875643",
"0.47872955",
"0.4766099",
"0.47645235",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47607762",
"0.47575793",
"0.4756713",
"0.47556654",
"0.47556654",
"0.47549695",
"0.47533622",
"0.47482106",
"0.4738415",
"0.47298732",
"0.47288874",
"0.47150388",
"0.47135347",
"0.4711967",
"0.4711967",
"0.4711967",
"0.4710389",
"0.47047833",
"0.4681129",
"0.46713987",
"0.46708885",
"0.46639135",
"0.46430302",
"0.4638152"
] | 0.6352454 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.OPERATETYPE | public void setOperatetype(Long operatetype) {
this.operatetype = operatetype;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getOperatetype() {\n return operatetype;\n }",
"public void setOper(String oper) {\n this.oper = oper;\n }",
"public void setOperTypeName(String operTypeName) {\r\n\t\tthis.operTypeName = operTypeName;\r\n\t}",
"public void setTipoOperacion(java.lang.String tipoOperacion) {\n this.tipoOperacion = tipoOperacion;\n }",
"public void setOPER_TIME(Date OPER_TIME) {\n this.OPER_TIME = OPER_TIME;\n }",
"public void setOperationType(int value) {\r\n this.operationType = value;\r\n }",
"public void setOperTypeId(String operTypeId) {\r\n\t\tthis.operTypeId = operTypeId;\r\n\t}",
"public void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);",
"public Builder setOpertaorType(OP_TYPE operatorType) {\n this.operatorType = operatorType;\n return this;\n }",
"public void setTipoOperacionTO(mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.TipoOperacionTO tipoOperacionTO) {\n this.tipoOperacionTO = tipoOperacionTO;\n }",
"public void setOperationType(String operationType) {\n\t\tthis.operationType=operationType;\n\t}",
"public void setOperationType(String operationType) {\r\n this.operationType = operationType == null ? null : operationType.trim();\r\n }",
"public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}",
"public void setOperateLogic(String OperateLogic) {\n this.OperateLogic = OperateLogic;\n }",
"@objid (\"f604cc17-9920-4a0a-a7d0-2659ddf966f4\")\n void setOBase(Operation value);",
"public void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);",
"@Override\n\tpublic String operateTypeId() throws Exception{\n\t\treturn \"02004\";\n\t}",
"public void setTypeOperation(EnumTypeOperation TypeOperation) {\r\n this.TypeOperation = TypeOperation;\r\n }",
"public void saveOperate(OperateBO operateBo) throws RollbackableException {\n }",
"public mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.TipoOperacionTO getTipoOperacionTO() {\n return tipoOperacionTO;\n }",
"public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}",
"@VTID(14)\n void setCommandType(\n com.exceljava.com4j.excel.XlCmdType rhs);",
"public ColumnMetadataBuilder logicalType(String logicalType) {\n this.logicalType = logicalType;\n return this;\n }",
"public String getOper() {\n return oper;\n }",
"public void setOperTime(String operTime) {\r\n\t\tthis.operTime = operTime;\r\n\t}",
"public void setLBR_TaxBase (BigDecimal LBR_TaxBase);",
"private CodeFragment generateBinOPinstruction(String op, String type, CodeFragment exprL, CodeFragment exprR) {\n CodeFragment result = new CodeFragment();\n result.addCode(exprL);\n result.addCode(exprR);\n result.setRegister(this.generateNewRegister(false));\n\n result.addCode(String.format(\"%s = %s %s %s, %s\\n\", result.getRegister(), op, type,\n exprL.getRegister(), exprR.getRegister()));\n\n return result;\n }",
"public void setOP_NO(BigDecimal OP_NO) {\r\n this.OP_NO = OP_NO;\r\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"public void setOperatetime(Date operatetime) {\r\n this.operatetime = operatetime;\r\n }",
"public String getOperationType() {\r\n return operationType;\r\n }",
"public void setOperateCode(java.lang.String operateCode) {\n this.operateCode = operateCode;\n }",
"@Override\n public BinaryType orBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 || b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }",
"public void setOperator(BigDecimal operator) {\n this.operator = operator;\n }",
"public void setOperation(String op) {this.operation = op;}",
"@Override\n\t\tpublic ObjectType operator(OperatorType type) {\n\t\t\treturn new NumberType(0.0).operator(type);\n\t\t}",
"@Override\n\tpublic void setOperateur(String operateur) {\n\t\tcalcul();\n\t\tthis.operateur = operateur;\n\t\tif (!operateur.equals(\"=\"))\n\t\t\tthis.operande = \"\";\n\t}",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"public void setOperation(OperationType operation) {\r\n this.operation = operation;\r\n }",
"@Override\n ValueNode bindExpression(\n FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates)\n\t\t\tthrows StandardException\n\t{\n\t\tleftOperand = leftOperand.bindExpression(fromList, subqueryList, \n aggregates);\n\t\trightOperand = rightOperand.bindExpression(fromList, subqueryList, \n aggregates);\n\n\t\t//Set the type if there is a parameter involved here \n\t\tif (leftOperand.requiresTypeFromContext()) {\n\t\t\tleftOperand.setType(DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.DATE));\n\t\t}\n\t\t//Set the type if there is a parameter involved here \n\t\tif (rightOperand.requiresTypeFromContext()) {\n\t\t\trightOperand.setType(DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.TIME));\n\t\t}\n\n\t\tTypeId leftTypeId = leftOperand.getTypeId();\n TypeId rightTypeId = rightOperand.getTypeId();\n if( !(leftOperand.requiresTypeFromContext() || leftTypeId.isStringTypeId() || leftTypeId.getJDBCTypeId() == Types.DATE))\n throw StandardException.newException(SQLState.LANG_BINARY_OPERATOR_NOT_SUPPORTED, \n operator, leftTypeId.getSQLTypeName(), rightTypeId.getSQLTypeName());\n if( !(rightOperand.requiresTypeFromContext() || rightTypeId.isStringTypeId() || rightTypeId.getJDBCTypeId() == Types.TIME))\n throw StandardException.newException(SQLState.LANG_BINARY_OPERATOR_NOT_SUPPORTED, \n operator, leftTypeId.getSQLTypeName(), rightTypeId.getSQLTypeName());\n setType(DataTypeDescriptor.getBuiltInDataTypeDescriptor( Types.TIMESTAMP));\n\t\treturn genSQLJavaSQLTree();\n\t}",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"public char getOper(){\n\t\treturn oper;\n\t}",
"public void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);",
"public void setOsType(com.profitbricks.api.ws.OsType osType) {\r\n this.osType = osType;\r\n }",
"public void setOpcintype(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCINTYPE, value);\n\t}",
"public void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);",
"public int getSqlType() { return _type; }",
"public void setUtenteOperazione(String utenteOperazione) {\n\t\tthis.utenteOperazione = utenteOperazione;\n\t}",
"private void registerTypeAppendOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n List<SqlNode> operandList =\n new ArrayList<SqlNode>(Arrays.asList(operands));\n SqlDataTypeSpec typeSpec =\n SqlTypeUtil.convertTypeToSpec(call.getType());\n operandList.add(typeSpec);\n return new SqlCall(\n op,\n operandList.toArray(new SqlNode[0]),\n SqlParserPos.ZERO);\n }\n });\n }",
"public BigDecimal getLBR_TaxBaseOwnOperation();",
"public void setOperID(java.lang.String operID) {\n this.operID = operID;\n }",
"public void setBusiness_Type(String value) {\n setAttributeInternal(BUSINESS_TYPE, value);\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public void setOperateTime(Date operateTime) {\n this.operateTime = operateTime;\n }",
"public void setOperateTime(Date operateTime) {\n this.operateTime = operateTime;\n }",
"public void setOperateTime(Date operateTime) {\n this.operateTime = operateTime;\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"@Override\n\tpublic BaseOperation getOperationType() {\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic ObjectType operator(OperatorType type, ObjectType right) {\n\t\t\treturn new NumberType(0.0).operator(type, right);\n\t\t}",
"public void setAxisOperation(org.apache.axis2.description.xsd.AxisOperation param){\n localAxisOperationTracker = true;\n \n this.localAxisOperation=param;\n \n\n }",
"void setOrderType(OrderType inOrderType);",
"public Date getOPER_TIME() {\n return OPER_TIME;\n }",
"public void setResultType(ReadOperationResultType resultType)\n {\n this.resultType = resultType;\n }",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"public java.lang.String getTipoOperacion() {\n return tipoOperacion;\n }",
"public void setOp(String op) {\n this.op = op;\n }",
"public void setOperandB(int val);",
"public void setOp(Operator op) {\n this.op = op;\n }",
"public void setOperateComCode(java.lang.String operateComCode) {\n this.operateComCode = operateComCode;\n }",
"public void setExecutionType(String executionType) {\n\t\tthis.executionType = executionType;\n\t}",
"public TypeOperation getOperation(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp)\n return tabTypeOp[i];\n }\n return null;\n }",
"public void setOperateperson(String operateperson) {\r\n this.operateperson = operateperson;\r\n }",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"public TIPO tipoDeB(int op, TIPO tipo1, TIPO tipo2){\r\n\t\tif(tipo1 == TIPO.err || tipo2 == TIPO.err) return TIPO.err;\r\n\t\telse if( op == opMenor || op == opMenIg||\r\n\t\t\top == opMayor|| op == opIgual||\r\n\t\t\top == opMayIg || op == opDistinto){\r\n\t\t\treturn TIPO.ent;\r\n\t\t}\r\n\t\telse if( op == opSuma || op == opMult||\r\n\t\t\top == opMenos || op == opDiv){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.real;\r\n\t\t}\r\n\t\telse if( op == opAnd || op == opMod||\r\n\t\t\top == opOr){\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t\telse/*( op == opAsig)*/{\r\n\t\t\tif(tipo1 == TIPO.ent && tipo2 == TIPO.ent) return TIPO.ent;\r\n\t\t\telse if( (tipo1 == TIPO.real && tipo2 == TIPO.ent) ||\r\n\t\t\t\t\t (tipo1 == TIPO.real && tipo2 == TIPO.real)){\r\n\t\t\t\treturn TIPO.real;\r\n\t\t\t}\r\n\t\t\telse return TIPO.err;\r\n\t\t}\r\n\t}",
"public void setOperation (String Operation);",
"public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }",
"void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }",
"@objid (\"5d1e9f76-f0d9-4b67-a34e-4ac268bb9498\")\n Operation getOBase();",
"public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }",
"public void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);",
"public void setOpr(Integer opr) {\n this.opr = opr;\n }",
"public void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);",
"public void setBusinessType(String businessType) {\n\t\tthis.businessType = businessType;\n\t}",
"@Override\n\tprotected String getIdTipoOperacion() {\n\t\treturn null;\n\t}",
"public java.lang.String calculationType()\n\t{\n\t\treturn _strCalculationType;\n\t}",
"ColumnOperand createColumnOperand();",
"public void setOp(int op) {\n\t\tthis.op = op;\n\t}",
"public int getUnitCalculatorType()\n {\n return m_nCalculatorType;\n }",
"void setProductType(x0401.oecdStandardAuditFileTaxPT1.ProductTypeDocument.ProductType.Enum productType);",
"public void setOperator(int opr) {\n this.operator = opr;\n }",
"public void setTransactionType(int transactionChoice);",
"public void setLBR_TaxRate (BigDecimal LBR_TaxRate);",
"public String getOperateLogic() {\n return this.OperateLogic;\n }",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setBankAccountType (String BankAccountType);",
"void setDataType(int type );",
"public void setUnitCalculatorType(int nType)\n {\n configureUnitCalculator(nType, null);\n }",
"Operator.Type getOperation();"
] | [
"0.5644027",
"0.5530502",
"0.5497395",
"0.54092485",
"0.5371213",
"0.5297783",
"0.5230049",
"0.5193216",
"0.5090839",
"0.50866234",
"0.50761527",
"0.49902505",
"0.4944497",
"0.49416202",
"0.49403492",
"0.4905496",
"0.4903506",
"0.48186243",
"0.48141342",
"0.47868857",
"0.47833583",
"0.47748202",
"0.47412363",
"0.4734502",
"0.472022",
"0.47172177",
"0.46941966",
"0.46752852",
"0.46638358",
"0.4663238",
"0.4651036",
"0.4636887",
"0.4608131",
"0.46062317",
"0.4581229",
"0.45800272",
"0.4577582",
"0.45483184",
"0.45483184",
"0.45311415",
"0.4498998",
"0.44875994",
"0.44859532",
"0.44604775",
"0.44569355",
"0.4454339",
"0.44484705",
"0.44453844",
"0.44413444",
"0.44318652",
"0.44313157",
"0.44262448",
"0.4426218",
"0.4426218",
"0.44259652",
"0.4422105",
"0.4422105",
"0.4422105",
"0.4419472",
"0.4415654",
"0.44086924",
"0.44074777",
"0.44041893",
"0.44036224",
"0.43936324",
"0.4391053",
"0.43905196",
"0.43883023",
"0.4386541",
"0.43712816",
"0.434939",
"0.43493187",
"0.4336938",
"0.43340582",
"0.4332085",
"0.4328668",
"0.43260664",
"0.43258214",
"0.43241513",
"0.4317508",
"0.43118072",
"0.43030128",
"0.4302519",
"0.4300824",
"0.42927846",
"0.42891786",
"0.42870617",
"0.42869228",
"0.42810374",
"0.42800084",
"0.42789066",
"0.42774814",
"0.42730272",
"0.4267645",
"0.4256775",
"0.42559674",
"0.42500404",
"0.4249923",
"0.42496142",
"0.42367128"
] | 0.61922425 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.EXCEPTIONINFO | public String getExceptioninfo() {
return exceptioninfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }",
"@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }",
"String getOnExceptionBegin(OnException onException, long row);",
"public String getParseExceptionInfo(SAXParseException exception)\n {\n\n if (exception == null)\n return null;\n\n String retVal = new String(\"\");\n String tmp;\n\n tmp = exception.getPublicId();\n\n if (tmp != null)\n retVal += \" publicID:\" + tmp;\n\n tmp = exception.getSystemId();\n\n if (tmp != null)\n retVal += \" systemId:\" + tmp;\n\n try\n {\n tmp = Integer.toString(exception.getLineNumber());\n }\n catch (NumberFormatException nfe)\n {\n tmp = null;\n }\n\n if (tmp != null)\n retVal += \" lineNumber:\" + tmp;\n\n try\n {\n tmp = Integer.toString(exception.getColumnNumber());\n }\n catch (NumberFormatException nfe)\n {\n tmp = null;\n }\n\n if (tmp != null)\n retVal += \" columnNumber:\" + tmp;\n\n tmp = exception.getMessage(); // Will grab inner message if needed\n\n if (tmp != null)\n retVal += \" message:\" + tmp;\n\n return retVal;\n }",
"String getFaultDetailValue();",
"public String getExceptionType() {\n return this.excType;\n }",
"@Override\n protected String handleGetExceptionType()\n {\n\n final Object value = this.findTaggedValue(GuiProfile.TAGGEDVALUE_EXCEPTION_TYPE);\n\n return (value == null) ? \"\" : value.toString();\n\n }",
"public StrColumn getEbiTissue() {\n return delegate.getColumn(\"ebi_tissue\", DelegatingStrColumn::new);\n }",
"public String getEmployeeEmail(Statement stmt, String intEmployeeId){\n\t\t\tString empEmail = null;\n\t\t\tString query = \"select value from employeeAttributes where intEmployeeId =\"+ intEmployeeId + \" and attrId =17\"; \n\t\t\ttry{\n//\t\t\t\tSystem.out.println(\"Emp Email : \"+ query);\n\t\t\t\trs = stmt.executeQuery(query);\n\t\t\t\trs.next();\n\t\t\t\tempEmail = rs.getString(1);\n\t\t\t}catch(SQLException se){\n\t\t\t\tSystem.err.println(\"Error to find Employee Email\");\n\t\t\t}\n\t\t\treturn empEmail;\n\t\t}",
"public int getExceptionIndex() {\n/* 412 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }",
"public static String getExceptionInfo(Exception exception)\n {\n return String.format(\"%s ; %s\", exception.toString(), exception.getStackTrace()[0].toString());\n }",
"String getOnExceptionEnd();",
"public String getEmphcolumn()\n {\n return emphColumn;\n }",
"String getException();",
"String getException();",
"public Byte getEnterpriseInfoAuditStatus() {\n return enterpriseInfoAuditStatus;\n }",
"private String appendExtendedExceptionMsg(String msg, SQLException sqle){\r\n final String GETSQLCA =\"getSqlca\";\r\n String exceptionMsg = new String();\r\n try {\r\n Method sqlcaM2 = sqle.getNextException().getClass()\r\n .getMethod(GETSQLCA,null);\r\n Object sqlca = sqlcaM2.invoke(sqle.getNextException(),\r\n new Object[] {});\r\n Method getSqlErrpMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrp\", null);\r\n Method getSqlWarnMethd = sqlca.getClass().\r\n getMethod(\"getSqlWarn\", null);\r\n Method getSqlErrdMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrd\", null);\r\n exceptionMsg = exceptionMsg.concat( \"SQLCA OUTPUT\" + \r\n \"[Errp=\" +getSqlErrpMethd.invoke(sqlca,new Object[]{})\r\n + \", Errd=\" + Arrays.toString((int[])\r\n (getSqlErrdMethd.invoke(sqlca, new Object[]{}))));\r\n String Warn = new String((char[])getSqlWarnMethd.\r\n invoke(sqlca, new Object[]{}));\r\n if(Warn.trim().length() != 0)\r\n exceptionMsg = exceptionMsg.concat(\", Warn=\" +Warn + \"]\" ); \r\n else\r\n exceptionMsg = exceptionMsg.concat( \"]\" ); \r\n msg = msg.concat(exceptionMsg);\r\n return msg;\r\n } catch (Throwable t) {\r\n return sqle.getMessage();\r\n }\r\n }",
"public String getDuplicateUpdateColumnString() {\n return null;\n }",
"public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}",
"public String getThrowInfo() {\n if (null == throwable) {\n return throwText;\n }\n // return from throwable;\n StringBuffer sb = new StringBuffer();\n StackTraceElement[] stackArray = throwable.getStackTrace();\n for (int i = 0; i < stackArray.length; ++i) {\n StackTraceElement element = stackArray[i];\n sb.append(element.toString() + \"\\n\");\n }\n return sb.toString();\n }",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"String getOnException(OnException onException);",
"public String getMostRecentException();",
"java.lang.String getExceptions(int index);",
"public String toString ()\n {\n if (exception != null) {\n return exception.toString();\n } else {\n return super.toString();\n }\n }",
"public java.lang.String getException() {\n return exception;\n }",
"String getFaultReasonValue();",
"public Object getCell(int column) {\r\n switch (column) {\r\n case 0:\r\n return _internalEvent.getDate() ;\r\n case 1:\r\n return _internalEvent.getFileName() ;\r\n case 2:\r\n return new Integer(_internalEvent.getEventCode()) ;\r\n case 3:\r\n return _internalEvent.getEventDescription() ;\r\n case 4:\r\n return _internalEvent.getExtendedMessage() ;\r\n default:\r\n return \"\" ;\r\n }\r\n }",
"public static void informOHException(Context context, OHException exception) {\n if (exception.getExType() == OHException.EXType.SERIALIZATION_INCOMPATIBLE) {\n Toast.makeText(context, context.getString(R.string.ohex_serialization),\n Toast.LENGTH_SHORT).show();\n } else if (exception.getExType() == OHException.EXType.SERVER_OCCUPIED) {\n Toast.makeText(context, context.getString(R.string.ohex_occupied),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, context.getString(R.string.ohex_general) + \" \" + exception,\n Toast.LENGTH_SHORT).show();\n }\n Log.e(context.getClass().getSimpleName(), context.getString(R.string.ohex_general) + exception);\n }",
"public native int getEventColumn() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n return self.getEventColumn();\r\n }-*/;",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }",
"public Exception getException() {\r\n return exception;\r\n }",
"public Exception getException() {\n return exception;\n }",
"public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}",
"public Exception getException() {\n return exception;\n }",
"public int getExceptionNumber(\n ) {return (0);}",
"public String getEstatus() {\r\n return estatus;\r\n }",
"public Integer getEi() {\n return ei;\n }",
"public Employee getEmployeeDetails() throws SQLException {\n Cursor cursor = db.query(true, Constants.EMPLOYEE_TABLE, new String[]{Constants.EMPLOYEE_PHOTO,\r\n Constants.EMPLOYEE_NAME, Constants.EMPLOYEE_AGE}, null, null, null, null, null, null);\r\n\r\n if (cursor.moveToLast()) { //if statement executes from top to down and decides whether a certain statement will executes or not\r\n String employeeName = cursor.getString(cursor.getColumnIndex(Constants.EMPLOYEE_NAME));\r\n String employeeAge = cursor.getString(cursor.getColumnIndex(Constants.EMPLOYEE_AGE));\r\n byte[] blob = cursor.getBlob(cursor.getColumnIndex(Constants.EMPLOYEE_PHOTO));\r\n cursor.close();\r\n return new Employee(employeeName, employeeAge, CommonUtilities.getPhoto(blob));\r\n }\r\n cursor.close();\r\n return null; // Return statement\r\n }",
"public ImageIcon getExceptionIcon() {\r\n\t\treturn exceptionIcon;\r\n\t}",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n if ( ! (jenaExc instanceof JenaException) ) {\n return null;\n }\n\n Throwable cause = jenaExc.getCause();\n if ( ! (cause instanceof SAXParseException) ) {\n return null;\n }\n\n SAXParseException spe = (SAXParseException) cause;\n return spe.getMessage() +\n \"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n\t\t\t //+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t\t //+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n ;\n }",
"public Exception getException()\n\t{\n\t\treturn exception;\n\t}",
"public interface ExceptionContext {\n\n String DEFUALT_EX_MSG =\"网络异常\";//默认异常信息\n\n String DEFUALT_EX_CODE =\"500\";//默认异常状态码\n\n String UNKNOW_EX_MSG =\"未知异常\";//未知异常信息\n\n}",
"public String getMessage ()\n {\n String message = super.getMessage();\n\n if (message == null && exception != null) {\n return exception.getMessage();\n } else {\n return message;\n }\n }",
"public String detailsUpdate() throws Exception {\n\t\treturn null;\n\t}",
"public ObjectType getExceptionType() {\n return catchType;\n }",
"private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n\t\tif ( ! (jenaExc instanceof JenaException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tThrowable cause = jenaExc.getCause();\n\t\tif ( ! (cause instanceof SAXParseException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSAXParseException spe = (SAXParseException) cause;\n\t\tString errorMessage = spe.getMessage() +\n\t\t\t\"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n//\t\t\t+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n//\t\t\t+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t;\n\n\t\treturn errorMessage;\n\t\t\t\n\t}",
"@Property\n public native MintMessageException getExceptionError ();",
"public String getJP_BankData_EDI_Info();",
"String getCauseException();",
"public ExceptionData[] getExceptionResult() {\n return this.exceptionResult;\n }",
"public int getET()\n {\n return exTime;\n }",
"public interface ExceptionMXBean {\n static final String LABEL = \"com.jamonapi.Exceptions\";\n static final String UNITS = \"Exception\";\n /**\n * Get the stacktrace in string format of the most recently thrown exception.\n * @return stacktrace\n */\n public String getMostRecentException();\n\n /**\n * Get the total count of exceptions thrown.\n *\n * @return number of exceptions thrown\n */\n public long getExceptionCount();\n\n /**\n * Get the date of the most recently thrown exception.\n *\n * @return date\n */\n public Date getWhen();\n}",
"public int getLogHour(int index)\n {\n return m_Log.get(index).getHour();\n }",
"public String getMessage() {\n\t\tif (iCause == null) { return super.getMessage(); }\n\t\treturn super.getMessage() + \"; nested exception is: \\n\\t\" + iCause.toString();\n\t}",
"@Override\n\t\tpublic int getValueColumn() {\n\t\t\treturn valueColumn;\n\t\t}",
"public void setExceptioninfo(String exceptioninfo) {\n this.exceptioninfo = exceptioninfo == null ? null : exceptioninfo.trim();\n }",
"public Exception getException() {\n return transactionFailure;\n }",
"@AutoEscape\n\tpublic String getMessageInfo();",
"public Long getExceptcode() {\n return exceptcode;\n }",
"public static String exceptionTypeAndMsg(Exception e) {\n return e.getClass() + \" : \" + e.getMessage();\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }",
"@AutoEscape\n public String getModelIndexErrorMessage();",
"protected String getCause(Exception e) throws RuntimeException {\n\t\tString className = \"\";\n\t\tObject theClass = null;\n\t\tString errorCode;\n\t\tString msg = \"error.general.sistema\";\n\n\t\t// Establecemos la Excepcion que se ha producido\n\t\tif (e.getCause() != null) {\n\t\t\tclassName = e.getCause().getClass().getName();\n\t\t\ttheClass = e.getCause();\n\t\t\tif (className.equals(\"java.rmi.RemoteException\")) {\n\t\t\t\tif (e.getCause().getCause() != null) {\n\t\t\t\t\tclassName = e.getCause().getCause().getClass().getName();\n\t\t\t\t\ttheClass = e.getCause().getCause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (theClass instanceof JDBCException) {\n\t\t\tif (((org.hibernate.JDBCException) theClass).getSQLException()\n\t\t\t\t\t.getNextException() != null) {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getNextException().getSQLState();\n\t\t\t} else {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getSQLState();\n\t\t\t}\n\t\t} else {\n\t\t\terrorCode = \"\";\n\t\t}\n\n\t\t// Obtenemos el codigo de error\n\n\t\t// Establecemos el mensaje de error en funcion la Excepcion que hemos\n\t\t// propagado\n\t\tif (!className.equals(\"\")) {\n\t\t\tif (className.equals(\"org.hibernate.StaleObjectStateException\")) {\n\t\t\t\tmsg = \"error.message.modify\";\n\t\t\t} else if (className.equals(\"org.hibernate.ObjectDeletedException\")) {\n\t\t\t\tmsg = \"error.message.delete\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.ObjectNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.notFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.QueryException\")) {\n\t\t\t\tmsg = \"error.message.query\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueObjectException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueObject\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueResultException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueResult\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.PropertyNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.propertyNotFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.PropertyValueException\")) {\n\t\t\t\tmsg = \"error.message.propertyValue\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.QueryParameterException\")) {\n\t\t\t\tmsg = \"error.message.queryParameter\";\n\t\t\t} else if (className.equals(\"org.hibernate.WrongClassException\")) {\n\t\t\t\tmsg = \"error.message.wrongClass\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.LazyInitializationException\")) {\n\t\t\t\tmsg = \"error.message.lazyInitialization\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.ConstraintViolationException\")) {\n\t\t\t\tif (errorCode.equalsIgnoreCase(UNIQUE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationUnique\";\n\t\t\t\t} else if (errorCode.equalsIgnoreCase(DELETE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationDelete\";\n\t\t\t\t}\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.JDBCConnectionException\")) {\n\t\t\t\tmsg = \"error.message.JDBCConection\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.SQLGrammarException\")) {\n\t\t\t\tmsg = \"error.message.SQLGrammar\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.hql.ast.QuerySyntaxException\")) {\n\t\t\t\tmsg = \"error.message.malformedQuery\";\n\t\t\t} else if (className.equals(\"java.sql.BatchUpdateException\")) {\n\t\t\t\tmsg = \"error.message.metodoTransaccional\";\n\t\t\t} else {\n\t\t\t\tmsg = \"error.general.sistema\";\n\t\t\t}\n\t\t} else {\n\t\t\tmsg = \"error.general.sistema\";\n\t\t}\n\t\treturn msg;\n\t}",
"public Color getExceptionColor() {\r\n\t\treturn exceptionColor;\r\n\t}",
"public String toString()\n {\n StringBuffer buf = new StringBuffer(\"EASInBandExceptionDescriptor\");\n buf.append(\": rfChannel=\").append(this.exception_RF_channel & 0xFF);\n buf.append(\"; qamFrequency=\").append(this.m_exceptionFrequency / 1000000);\n buf.append(\"; programNumber=0x\").append(Integer.toHexString(this.exception_program_number));\n return buf.toString();\n }",
"protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);",
"public Object getValueForColumnIndex(int _index) {\n Object value = null;\n if ( this.attData != null ) {\n int count = -1;\n String lastRetValue = null;\n Iterator<String> it = this.attData.keySet().iterator();\n while ((it.hasNext()) && (_index != count)) {\n lastRetValue = (String)it.next();\n count++;\n }\n value = this.attData.get(lastRetValue);\n }\n return value;\n }",
"public java.lang.String getExceptions(int index) {\n return exceptions_.get(index);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }",
"public static String getErrorMessage(Exception ex) {\r\n if (ex.getCause() != null) {\r\n return \"cause:\" + ex.getCause().getMessage();\r\n } else {\r\n return ex.getMessage();\r\n }\r\n }",
"public StrColumn getEbiCell() {\n return delegate.getColumn(\"ebi_cell\", DelegatingStrColumn::new);\n }",
"public alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo() {\n if (blockInfoBuilder_ == null) {\n return blockInfo_;\n } else {\n return blockInfoBuilder_.getMessage();\n }\n }",
"public String getDescripcionEstatusObjeto() {\r\n\t\treturn descripcionEstatusObjeto;\r\n\t}",
"int getEtoId(DataDate date) throws SQLException;",
"public java.lang.String getExceptions(int index) {\n return exceptions_.get(index);\n }",
"public Exception getException()\n {\n return exception;\n }",
"public String getSystemExceptionLabel() {\n\t\treturn systemExceptionLabel;\n\t}",
"public int getVendorErrorCode()\n {\n return getSQLException().getErrorCode();\n }",
"public int getAdminMigrationStatus(Context context) throws Exception\r\n\t{\r\n\r\n\t\tString cmd = \"print program eServiceSystemInformation.tcl select property[MigrationR212VariantConfiguration].value dump\";\r\n\t String result =\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\r\n\t if(result.equalsIgnoreCase(\"PreMigrationInProcess\"))\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}else if(result.equalsIgnoreCase(\"PreMigrationComplete\"))\r\n\t\t{\r\n\t\t\treturn 2;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureObjectsNotFound\")) //else if(result.equalsIgnoreCase(\"GBOMInProcess\"))\r\n\t\t{\r\n\t\t\treturn 3;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureInProcess\")) //else if(result.equalsIgnoreCase(\"GBOMInProcess\"))\r\n\t\t{\r\n\t\t\treturn 4;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureComplete\")) //(result.equalsIgnoreCase(\"GBOMComplete\"))\r\n\t\t{\r\n\t\t\treturn 5;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 6;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMInProcess\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 7;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMComplete\")) //(result.equalsIgnoreCase(\"FeatureComplete\"))\r\n\t\t{\r\n\t\t\treturn 8;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 9;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleInProcess\"))\r\n\t\t{\r\n\t\t\treturn 10;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleComplete\"))\r\n\t\t{\r\n\t\t\treturn 11;\r\n\t\t}else if(result.equalsIgnoreCase(\"ProductConfigurationObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 12;\r\n\t\t}else if(result.equalsIgnoreCase(\"UpdatePCBOMXMLInProcess\"))\r\n\t\t{\r\n\t\t\treturn 13;\r\n\t\t}else if(result.equalsIgnoreCase(\"UpdatePCBOMXMLComplete\"))\r\n\t\t{\r\n\t\t\treturn 14;\r\n\t\t}\r\n\t return 0;\r\n\r\n\t}",
"@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}",
"public Throwable getException() {\n return ex;\n }",
"public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}",
"public int get_infos_log_src() {\n return (int)getUIntBEElement(offsetBits_infos_log_src(), 16);\n }",
"public Class<T> getExceptionClass() {\n\t\treturn exceptionClass;\n\t}",
"@Override\r\n\tpublic String getColumnText(Object element, int columnIndex) {\n\t\tif (element instanceof MonitorInfo) {\r\n\t\t\tMonitorInfo m = (MonitorInfo) element;\r\n\t\t\tif (columnIndex==0) {\r\n\t\t\t\treturn m.getStatus();\r\n\t\t\t}else if(columnIndex==1){\r\n\t\t\t\treturn m.getMonitorname();\r\n\t\t\t}else if(columnIndex==2){\r\n\t\t\t\treturn m.getDesc();\r\n\t\t\t}else if(columnIndex==3){\r\n\t\t\t\treturn m.getLastupdateDate();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public TransactionType getLogCode () {\n return logCode;\n }",
"public com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column getColumn(int index) {\n if (columnBuilder_ == null) {\n return column_.get(index);\n } else {\n return columnBuilder_.getMessage(index);\n }\n }",
"public java.lang.String getErrorAffectedTransactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ERRORAFFECTEDTRANSACTIONCOUNT$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"@Override\n\tpublic Object getValueAt(int rowIndex, int columnIndex) {\n\n\t\tAlertLogEntry alertLogEntry = null;\n\n\t\talertLogEntry = (AlertLogEntry) logTableModel.getValueAt(rowIndex, columnIndex);\n\n\t\treturn alertLogEntry;\n\t}",
"public Exception getException ()\n {\n return exception;\n }",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"public Exception getException() {\n return mException;\n }",
"public String getProcessLog(String processId) throws Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString processLog = \"\";\r\n\t\ttry {\r\n\t\t\tconn = BaseDAO.connect(DATA_SOURCE);\r\n\t\t\tString query = \"SELECT U.PROCESS_LOG FROM STG_PROCESS_STATUS U WHERE U.PROCESS_ID = ?\";\r\n\t\t\tpstmt = conn.prepareCall(query);\r\n\t\t\tpstmt.setString(1, processId);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprocessLog = rs.getString(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {rs.close();} catch (Exception e2) {}\r\n\t\t\ttry {pstmt.close();} catch (Exception e2) {}\r\n\t\t\ttry {conn.close();} catch (Exception e2) {}\r\n\t\t}\r\n\t\treturn processLog;\r\n\t}",
"ResolvedType getSpecifiedException(int index);",
"com.google.protobuf.ByteString\n getErrorInfoBytes();"
] | [
"0.5824636",
"0.54368687",
"0.53459644",
"0.5293863",
"0.50699615",
"0.5057372",
"0.50271964",
"0.49539962",
"0.48733678",
"0.48349583",
"0.48119587",
"0.47806558",
"0.47340414",
"0.47036463",
"0.47036463",
"0.46869546",
"0.46758804",
"0.464065",
"0.46396855",
"0.46284878",
"0.46216735",
"0.46157438",
"0.46107495",
"0.4599081",
"0.4552191",
"0.4547189",
"0.45171216",
"0.45124176",
"0.4510453",
"0.44822046",
"0.44788048",
"0.4469895",
"0.44514662",
"0.4443844",
"0.4440698",
"0.44382066",
"0.44147164",
"0.44079316",
"0.44062448",
"0.440545",
"0.44014692",
"0.43932617",
"0.43692282",
"0.4368702",
"0.43646395",
"0.4351316",
"0.43469194",
"0.43461508",
"0.4345233",
"0.43444285",
"0.43424702",
"0.4338669",
"0.43344343",
"0.43317765",
"0.43314084",
"0.4330456",
"0.43293545",
"0.4327477",
"0.43218052",
"0.43207243",
"0.43183693",
"0.43163398",
"0.4308028",
"0.43058997",
"0.43043754",
"0.43037683",
"0.43022034",
"0.43016323",
"0.42994472",
"0.42885783",
"0.42820618",
"0.42815572",
"0.42726347",
"0.42705095",
"0.4270474",
"0.42688757",
"0.42647925",
"0.42587912",
"0.42584437",
"0.42536855",
"0.4253118",
"0.42514294",
"0.42422462",
"0.42402598",
"0.42326564",
"0.4232302",
"0.4207025",
"0.4204889",
"0.41964686",
"0.4194417",
"0.419115",
"0.4184481",
"0.41828904",
"0.41786346",
"0.4167812",
"0.41677973",
"0.41633973",
"0.4159769",
"0.4159279",
"0.4157498"
] | 0.6313391 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.EXCEPTIONINFO | public void setExceptioninfo(String exceptioninfo) {
this.exceptioninfo = exceptioninfo == null ? null : exceptioninfo.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getExceptioninfo() {\n return exceptioninfo;\n }",
"public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\" ==> afterPropertiesSet in ErrorInfo...\");\n\t}",
"public void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);",
"public static void informOHException(Context context, OHException exception) {\n if (exception.getExType() == OHException.EXType.SERIALIZATION_INCOMPATIBLE) {\n Toast.makeText(context, context.getString(R.string.ohex_serialization),\n Toast.LENGTH_SHORT).show();\n } else if (exception.getExType() == OHException.EXType.SERVER_OCCUPIED) {\n Toast.makeText(context, context.getString(R.string.ohex_occupied),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, context.getString(R.string.ohex_general) + \" \" + exception,\n Toast.LENGTH_SHORT).show();\n }\n Log.e(context.getClass().getSimpleName(), context.getString(R.string.ohex_general) + exception);\n }",
"@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }",
"private void rsSetInfo(ResultSet rs,DataPreventInfo info) throws SQLException {\n info.setId(rsGetLong(rs, \"id\"));\n info.setSynchronizeId(rsGetString(rs, \"synchronize_id\"));\n info.setPropertyId(rsGetLong(rs, \"property_id\"));\n info.setOriginKind(rsGetString(rs, \"origin_kind\"));\n info.setDeleteFlg(rsGetBoolean(rs, \"delete_flg\"));\n info.setPreventRegistAgency(rsGetString(rs, \"prevent_regist_agency\"));\n info.setPreventInBookNumber(rsGetString(rs, \"prevent_in_book_number\"));\n info.setPreventPersonInfo(rsGetString(rs, \"prevent_person_info\"));\n info.setPreventDocNumber(rsGetString(rs, \"prevent_doc_number\"));\n info.setPreventDocDate(rsGetTimestamp(rs, \"prevent_doc_date\"));\n info.setPreventDocReceiveDate(rsGetTimestamp(rs, \"prevent_doc_receive_date\"));\n info.setPreventInputDate(rsGetTimestamp(rs, \"prevent_input_date\"));\n info.setPreventDocSummary(rsGetString(rs, \"prevent_doc_summary\"));\n info.setPreventFileName(rsGetString(rs, \"prevent_file_name\"));\n info.setPreventFilePath(rsGetString(rs, \"prevent_file_path\"));\n info.setPreventNote(rsGetString(rs, \"prevent_note\"));\n info.setReleaseFlg(rsGetBoolean(rs, \"release_flg\"));\n info.setReleaseRegistAgency(rsGetString(rs, \"release_regist_agency\"));\n info.setReleaseInBookNumber(rsGetString(rs, \"release_in_book_number\"));\n info.setReleasePersonInfo(rsGetString(rs, \"release_person_info\"));\n info.setReleaseDocNumber(rsGetString(rs, \"release_doc_number\"));\n info.setReleaseDocDate(rsGetTimestamp(rs, \"release_doc_date\"));\n info.setReleaseDocReceiveDate(rsGetTimestamp(rs, \"release_doc_receive_date\"));\n info.setReleaseInputDate(rsGetTimestamp(rs, \"release_input_date\"));\n info.setReleaseDocSummary(rsGetString(rs, \"release_doc_summary\"));\n info.setReleaseFileName(rsGetString(rs, \"release_file_name\"));\n info.setReleaseFilePath(rsGetString(rs, \"release_file_path\"));\n info.setReleaseNote(rsGetString(rs, \"release_note\"));\n info.setEntryUserId(rsGetLong(rs, \"entry_user_id\"));\n info.setEntryUserName(rsGetString(rs, \"entry_user_name\"));\n// info.setEntryDateTime(rsGetTimestamp(rs, \"entry_date_time\"));\n// info.setUpdateUserId(rsGetLong(rs, \"update_user_id\"));\n// info.setUpdateUserName(rsGetString(rs, \"update_user_name\"));\n// info.setUpdateDateTime(rsGetTimestamp(rs, \"update_date_time\"));\n\n info.setType(rsGetString(rs, \"type\"));\n info.setPropertyInfo(rsGetString(rs, \"property_info\"));\n info.setOwnerInfo(rsGetString(rs, \"owner_info\"));\n info.setOtherInfo(rsGetString(rs, \"other_info\"));\n info.setLandCertificate(rsGetString(rs, \"land_certificate\"));\n info.setLandIssuePlace(rsGetString(rs, \"land_issue_place\"));\n info.setLandIssueDate(rsGetTimestamp(rs, \"land_issue_date\"));\n info.setLandMapNumber(rsGetString(rs, \"land_map_number\"));\n info.setLandNumber(rsGetString(rs, \"land_number\"));\n info.setLandAddress(rsGetString(rs, \"land_address\"));\n info.setLandArea(rsGetString(rs, \"land_area\"));\n info.setLandPublicArea(rsGetString(rs, \"land_public_area\"));\n info.setLandPrivateArea(rsGetString(rs, \"land_private_area\"));\n info.setLandUsePurpose(rsGetString(rs, \"land_use_purpose\"));\n info.setLandUsePeriod(rsGetString(rs, \"land_use_period\"));\n info.setLandUseOrigin(rsGetString(rs, \"land_use_origin\"));\n info.setLandAssociateProperty(rsGetString(rs, \"land_associate_property\"));\n info.setLandDistrict(rsGetString(rs, \"land_district\"));\n info.setLandStreet(rsGetString(rs, \"land_street\"));\n// info.setLandProvince(rsGetString(rs, \"land_province\"));\n info.setCarLicenseNumber(rsGetString(rs, \"car_license_number\"));\n info.setCarRegistNumber(rsGetString(rs, \"car_regist_number\"));\n info.setCarIssuePlace(rsGetString(rs, \"car_issue_place\"));\n info.setCarIssueDate(rsGetTimestamp(rs, \"car_issue_date\"));\n info.setCarFrameNumber(rsGetString(rs, \"car_frame_number\"));\n info.setCarMachineNumber(rsGetString(rs, \"car_machine_number\"));\n \n }",
"public void getSetVersionRowDatoGeneralEmpleadoWithConnection()throws Exception {\n\t\tif(datogeneralempleado.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((datogeneralempleado.getIsDeleted() || (datogeneralempleado.getIsChanged()&&!datogeneralempleado.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=datogeneralempleadoDataAccess.getSetVersionRowDatoGeneralEmpleado(connexion,datogeneralempleado.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!datogeneralempleado.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tdatogeneralempleado.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdatogeneralempleado.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setException(Exception e)\n {\n this.exception = e;\n }",
"protected void setWriteException(Exception e) {\n\tif (writeException == null) writeException = e;\n }",
"String getOnExceptionBegin(OnException onException, long row);",
"public void setEmphcolumn(String emphColumnIn)\n {\n emphColumn = emphColumnIn;\n }",
"public void setEi(Integer ei) {\n this.ei = ei;\n }",
"public void setExceptionOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.EXCEPTION, flag);\n }",
"TransactionContext setException(Exception exception);",
"public void afterThrowing(Exception ex){\n\t\tLog l = LogFactory.getLog(Bank.class);\n\t\tl.fatal(\"LogForException executed ... \");\n\t}",
"public String getExceptionType() {\n return this.excType;\n }",
"private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}",
"public sparqles.avro.discovery.DGETInfo.Builder setException(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.Exception = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setExceptions(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(EXCEPTIONS_PROP.get(), value);\n }",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }",
"public void setExceptions(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(EXCEPTIONS_PROP.get(), value);\n }",
"public void setExceptionResult(ExceptionData[] exceptionResult) {\n this.exceptionResult = exceptionResult;\n }",
"private void setErrorCode(Throwable ex, ErrorResponse errorMessage) {\n errorMessage.setCode(\"1\");\n }",
"@Override\n\tpublic void setEmpno(Integer empno) {\n\t\tsuper.setEmpno(empno);\n\t}",
"public void setAttachmentInfo(org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo attachmentInfo)\n {\n generatedSetterHelperImpl(attachmentInfo, ATTACHMENTINFO$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public void testupdateAddress_AuditException()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"delete from application_area where description = 'Project'\");\r\n try {\r\n address.setCity(\"new city\");\r\n this.dao.updateAddress(address, true);\r\n fail(\"AuditException expected\");\r\n } catch (AuditException e) {\r\n //good\r\n this.executeUpdate(\"insert into application_area(app_area_id, description,\"\r\n + \"creation_date, creation_user, modification_date, modification_user) values (6, 'Project', current,\"\r\n + \" 'user', current, 'user');\");\r\n this.dao.removeAddress(address.getId(), false);\r\n }\r\n }",
"public void afterPropertiesSet() throws Exception {\n\t\t System.out.println(\"Log Bean is going through init method using Interfaces.\");\n\t\t\n\t}",
"@Override\n protected String handleGetExceptionType()\n {\n\n final Object value = this.findTaggedValue(GuiProfile.TAGGEDVALUE_EXCEPTION_TYPE);\n\n return (value == null) ? \"\" : value.toString();\n\n }",
"public void updateException(Transaction transaction, String exception) {\r\n\t\ttry {\r\n\t\t\tdao.updateException(transaction, exception);\r\n\t } catch (Exception e) {\r\n\t \tlog.error(\"Exception trying to updateException\",e);\r\n\t\t}\r\n\t\t\r\n\t}",
"@AfterThrowing(pointcut = \"selectAll()\", throwing = \"ex\")\n public void AfterThrowingAdvice(IllegalArgumentException ex){\n System.out.println(\"There has been an exception: \" + ex.toString()); \n }",
"private String appendExtendedExceptionMsg(String msg, SQLException sqle){\r\n final String GETSQLCA =\"getSqlca\";\r\n String exceptionMsg = new String();\r\n try {\r\n Method sqlcaM2 = sqle.getNextException().getClass()\r\n .getMethod(GETSQLCA,null);\r\n Object sqlca = sqlcaM2.invoke(sqle.getNextException(),\r\n new Object[] {});\r\n Method getSqlErrpMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrp\", null);\r\n Method getSqlWarnMethd = sqlca.getClass().\r\n getMethod(\"getSqlWarn\", null);\r\n Method getSqlErrdMethd = sqlca.getClass().\r\n getMethod(\"getSqlErrd\", null);\r\n exceptionMsg = exceptionMsg.concat( \"SQLCA OUTPUT\" + \r\n \"[Errp=\" +getSqlErrpMethd.invoke(sqlca,new Object[]{})\r\n + \", Errd=\" + Arrays.toString((int[])\r\n (getSqlErrdMethd.invoke(sqlca, new Object[]{}))));\r\n String Warn = new String((char[])getSqlWarnMethd.\r\n invoke(sqlca, new Object[]{}));\r\n if(Warn.trim().length() != 0)\r\n exceptionMsg = exceptionMsg.concat(\", Warn=\" +Warn + \"]\" ); \r\n else\r\n exceptionMsg = exceptionMsg.concat( \"]\" ); \r\n msg = msg.concat(exceptionMsg);\r\n return msg;\r\n } catch (Throwable t) {\r\n return sqle.getMessage();\r\n }\r\n }",
"public getEmployeeInfo_result(getEmployeeInfo_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.EmployeeInfo(other.success);\n }\n if (other.isSetE()) {\n this.e = new com.moseeker.thrift.gen.common.struct.BIZException(other.e);\n }\n }",
"public interface ExceptionContext {\n\n String DEFUALT_EX_MSG =\"网络异常\";//默认异常信息\n\n String DEFUALT_EX_CODE =\"500\";//默认异常状态码\n\n String UNKNOW_EX_MSG =\"未知异常\";//未知异常信息\n\n}",
"public void setException(Exception e){\r\n //build message\r\n String dialog = e+\"\\n\\n\";\r\n StackTraceElement[] trace = e.getStackTrace();\r\n for(int i=0;i<trace.length;i++)\r\n dialog += \" \" + trace[i] + \"\\n\";\r\n //dialog\r\n setMessage(\"Internal error caught.\", dialog);\r\n }",
"public void setException(java.lang.CharSequence value) {\n this.Exception = value;\n }",
"String getOnExceptionEnd();",
"protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }",
"private void saveExpositionInDB(String badgeID, int expoSiteId, int expoMonth, int expoYear,\n Date expoDateBegin, Date expoDateEnd, String expoValue)\n throws SQLException {\n\n // do not process exposition is its value is 'M'.\n if(expoValue.equalsIgnoreCase(\"M\")){\n Logger.log(\"Skipped exposition because value is 'M'. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_INFO);\n }\n else{\n try{\n // check if value is an integer, otherwise, skip\n Integer.parseInt(expoValue);\n\n // find badgePersonId exposed to this exposition\n psGetPersonIds.setString(1,badgeID);\n psGetPersonIds.setInt(2,expoSiteId);\n psGetPersonIds.setString(3,expoYear+\"\");\n psGetPersonIds.setString(4,expoYear+\"\");\n psGetPersonIds.setTimestamp(5,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(6,new Timestamp(expoDateEnd.getTime()));\n psGetPersonIds.setTimestamp(7,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(8,new Timestamp(expoDateEnd.getTime()));\n ResultSet rs = psGetPersonIds.executeQuery();\n\n // convert to site-id to site-name\n String expoSite = \"\";\n if(expoSiteId==1) expoSite = \"DOEL\";\n else if(expoSiteId==2) expoSite = \"TIHANGE\";\n else if(expoSiteId==3) expoSite = \"IRE\";\n else if(expoSiteId==4) expoSite = \"OTHER\";\n\n // at least one badge found, so add the expoValue to table Items.\n int personCount = 0, personid;\n while(rs.next()){\n // get personid belonging to the found badge\n personid = rs.getInt(\"BadgePersonId\");\n\n // create 3 items to be stored\n itemVOs = new Vector();\n\n // expoValue\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_\"+expoSite+\"_GLOBAL_MONTH\"+expoMonth;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoValue,new Date(),null);\n itemVOs.add(itemVO);\n\n // badgeID\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_BADGEID_\"+expoSite;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,badgeID,new Date(),null);\n itemVOs.add(itemVO);\n\n // expoYear\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_REGISTRATIONYEAR\";\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoYear+\"\",new Date(),null);\n itemVOs.add(itemVO);\n\n storeTransaction(personid,itemVOs,expoSite,expoYear);\n personCount++;\n }\n\n rs.close();\n psGetPersonIds.close();\n // rs empty, no badge found\n if(personCount == 0){\n Logger.log(\"No Badges with BadgeId (\"+badgeID+\") for site (\"+expoSite+\",\"+expoSiteId+\") found in year (\"+expoYear+\").\",Logger.ERROR_LEVEL_INFO);\n }\n }\n // expoValue is no integer\n catch(NumberFormatException e){\n Logger.log(\"Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_ERROR);\n if(Debug.enabled) Debug.println(\"ERROR : Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\");\n }\n }\n }",
"public void setConsecutiveExceptions(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CONSECUTIVEEXCEPTIONS_PROP.get(), value);\n }",
"public void setLogfileInfo(LogfileInfo info) {\n logfileInfo = info;\n }",
"public void setConsecutiveExceptions(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CONSECUTIVEEXCEPTIONS_PROP.get(), value);\n }",
"public void setException(java.lang.String exception) {\n this.exception = exception;\n }",
"public void testupdateAddress_PersistenceException() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setId(1);\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").updateAddress(address, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onCheckUpdateFail(ErrorInfoBean errorInfo) {\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"errInfo:\" + errorInfo.toString());\r\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"init_fail\");\r\n\t\t\t\t\t\t}",
"public void getSetVersionRowValorPorUnidadWithConnection()throws Exception {\n\t\tif(valorporunidad.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((valorporunidad.getIsDeleted() || (valorporunidad.getIsChanged()&&!valorporunidad.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=valorporunidadDataAccess.getSetVersionRowValorPorUnidad(connexion,valorporunidad.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!valorporunidad.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tvalorporunidad.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tvalorporunidad.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"call afterPropertiesSet()...\");\n//\t\tadminId = env.getProperty(\"adminid\");\n//\t\tadminPw = env.getProperty(\"adminpw\");\t\t\n\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"public void setEditInfoResult(java.lang.String param) {\r\n localEditInfoResultTracker = param != null;\r\n\r\n this.localEditInfoResult = param;\r\n }",
"private void update () {\n // JST: this can be improved in future...\n String lm = current.getLocalizedMessage ();\n String nm = current.getMessage ();\n boolean isLocalized = lm != null && !lm.equals (nm);\n\n next.setVisible (exceptions.hasMoreElements ());\n details.setText (\n showDetails\n ?\n org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Exception_Hide_Details\")\n :\n org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Exception_Show_Details\")\n );\n\n\n if (current instanceof InvocationTargetException) {\n // go in\n current = ((InvocationTargetException)current).getTargetException ();\n }\n\n // setText (current.getLocalizedMessage ());\n String title = org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Title_Exception\");\n\n if (showDetails) {\n descriptor.setMessage (createDetails ());\n } else {\n if (isLocalized) {\n String msg = current.getLocalizedMessage ();\n if (msg == null || \"\".equals(msg)) { // NOI18N\n msg = org.openide.util.Utilities.wrapString (\n msg, MAXIMUM_TEXT_WIDTH, false, false\n );\n }\n descriptor.setMessage (msg);\n } else {\n // emphasize user-non-friendly exceptions\n // if (this.getMessage() == null || \"\".equals(this.getMessage())) { // NOI18N\n descriptor.setMessage (\n java.text.MessageFormat.format(\n NbBundle.getBundle (NotifyDescriptor.class).getString(\"NTF_ExceptionalException\"),\n new Object[] {\n current.getClass().getName()\n }\n )\n );\n\n title = NbBundle.getBundle (NotifyDescriptor.class).getString(\n \"NTF_ExceptionalExceptionTitle\" // NOI18N\n );\n }\n }\n\n descriptor.setTitle (title);\n }",
"public void setValue(Object value, Class[] exceptions, String parentLogDomain, boolean waitUntilUpdated) \n\t\t\tthrows AdaptorException {\n\t\tLogger LOG = getLogger(parentLogDomain);\n\t\tLOG.debug(\"Setting value of property \" + getStandardID() + \" to \" + value + \"...\");\n\t\tsetValue(value);\n\t\tupdateExcept(exceptions, parentLogDomain, waitUntilUpdated);\n\t}",
"@Override\r\n\tpublic void saveOrUpdate(Fault fault) {\r\n\r\n\t\t\r\n\t\tif(fault.getIdFault() > 0) {\r\n\t\t\t//update\r\n\t\t\t\r\n\t\t\tString sql = \"UPDATE \" + Constants.FAULT_TABLE_NAME + \" SET \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_LAST_EDIT_COLUMN + \"=?, \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_SERIAL_NUMBER_COLUMN + \"=?, \"\r\n\t\t\t\t\t+ Constants.FAULT_TABLE_PRODUCT_ID_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_NAME_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_STREET_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_POSTAL_CODE + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_EMAIL_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_NOTE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_BY_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_TYPE_COLUMN + \"=?, \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN + \"=? \"\r\n\t \t\t+ \"WHERE \" \r\n\t \t\t+ Constants.FAULT_TABLE_ID_COLUMN + \"=?\";\r\n\t \r\n\t\t\tjdbcTemplate.update(sql, \r\n\t\t\t\t\tfault.getLastEdit(),\r\n\t \t\tfault.getProductSerialNumber(),\r\n\t \t\tfault.getProductId(),\r\n\t \t\tfault.getClientName(), \r\n\t \t\tfault.getClientStreet(), \r\n\t \t\tfault.getClientPostalCode(),\r\n\t \t\tfault.getClientPlace(), \r\n\t \t\tfault.getClientPhoneOne(), \r\n\t \t\tfault.getClientPhoneTwo(), \r\n\t \t\tfault.getClientEmail(), \r\n\t \t\tfault.getFaultDescription(), \r\n\t \t\tfault.getFaultNote(), \r\n\t \t\tfault.getFaultIssuedTo(), \r\n\t \t\tfault.getFaultIssuedBy(),\r\n\t \t\tfault.getFaultType(), \r\n\t \t\tfault.getFaultPriority(),\r\n\t \t\tfault.getIdFault());\r\n\t \r\n\t\t}else {\r\n\t\t\t//insert\r\n\t\t\t\r\n\t\t\tString sql = \"INSERT INTO \" + Constants.FAULT_TABLE_NAME + \" (\"\r\n\t \t\t+ Constants.FAULT_TABLE_DATE_TIME_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_SERIAL_NUMBER_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_PRODUCT_ID_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_PRODUCT_TYPE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_NAME_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_STREET_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_POSTAL_CODE + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PLACE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_ONE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_PHONE_TWO_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_CLIENT_EMAIL_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_DESCRIPTION_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_NOTE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_TO_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_ISSUED_BY_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_TYPE_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_PRIORITY_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_STATUS_COLUMN + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_FAULT_LAT + \", \"\r\n\t \t\t+ Constants.FAULT_TABLE_FAULT_FAULT_LNG + \")\"\r\n\t + \" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\t \r\n\t\t\tjdbcTemplate.update(sql,\r\n\t \t\tfault.getDateTime(),\r\n\t \t\tfault.getProductSerialNumber(),\r\n\t \t\tfault.getProductId(), \r\n\t \t\tfault.getProductType(), \r\n\t \t\tfault.getClientName(), \r\n\t \t\tfault.getClientStreet(), \r\n\t \t\tfault.getClientPostalCode(),\r\n\t \t\tfault.getClientPlace(), \r\n\t \t\tfault.getClientPhoneOne(), \r\n\t \t\tfault.getClientPhoneTwo(), \r\n\t \t\tfault.getClientEmail(), \r\n\t \t\tfault.getFaultDescription(), \r\n\t \t\tfault.getFaultNote(), \r\n\t \t\tfault.getFaultIssuedTo(), \r\n\t \t\tfault.getFaultIssuedBy(),\r\n\t \t\tfault.getFaultType(), \r\n\t \t\tfault.getFaultPriority(),\r\n\t \t\tfault.getFaultStatus(),\r\n\t \t\tfault.getFaultLat(),\r\n\t \t\tfault.getFaultLng());\r\n\t\t}\r\n\t\t\r\n\t}",
"private void sqlException(SQLException e) {\n System.err.println(\"SQLException: \" + e.getMessage());\n System.err.println(\"SQLState: \" + e.getSQLState());\n System.err.println(\"VendorError: \" + e.getErrorCode());\n e.printStackTrace();\n// System.exit(-1);\n }",
"@Update({\n \"update tb_express_trace\",\n \"set num = #{num,jdbcType=VARCHAR},\",\n \"com = #{com,jdbcType=VARCHAR},\",\n \"status = #{status,jdbcType=VARCHAR},\",\n \"message = #{message,jdbcType=VARCHAR},\",\n \"ischeck = #{ischeck,jdbcType=INTEGER},\",\n \"traceJson = #{tracejson,jdbcType=VARCHAR},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler},\",\n \"last_udpate_time = #{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TbExpressTrace record);",
"public int getExceptionIndex() {\n/* 412 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }",
"public void getSetVersionRowClienteArchivoWithConnection()throws Exception {\n\t\tif(clientearchivo.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((clientearchivo.getIsDeleted() || (clientearchivo.getIsChanged()&&!clientearchivo.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=clientearchivoDataAccess.getSetVersionRowClienteArchivo(connexion,clientearchivo.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!clientearchivo.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tclientearchivo.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tclientearchivo.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void atualizaHistoricoPulaPula(HashMap infoAssinante, Date datExecucao, Connection con)\n\t\tthrows SQLException\n\t{\n\t\tString idtMsisdn = (String)infoAssinante.get(\"IDT_MSISDN\");\n\t\tInteger idtPromocao = (Integer)infoAssinante.get(\"IDT_PROMOCAO\");\n\t\tInteger idtCodigoRetorno = (Integer)infoAssinante.get(\"IDT_CODIGO_RETORNO\");\n\t\tString desStatusExecucao = (idtCodigoRetorno.intValue() == RET_ERRO_TECNICO) ? \"ERRO\" : \"SUCESSO\";\n\t\tDouble vlrAjuste = (Double)infoAssinante.get(\"VLR_AJUSTE\");\n\t\t\n\t\tPreparedStatement prepInsert = null;\n\t\tString sqlInsert = \"INSERT INTO TBL_GER_HISTORICO_PULA_PULA \" +\n\t\t\t\t\t\t \" (IDT_MSISDN, IDT_PROMOCAO, DAT_EXECUCAO, DES_STATUS_EXECUCAO, \" +\n\t\t\t\t\t\t \" IDT_CODIGO_RETORNO, VLR_CREDITO_BONUS) \" +\n\t\t\t\t\t\t \"VALUES \" +\n\t\t\t\t\t\t \" (?, ?, ?, ?, ?, ?)\";\n\n\t\t//Executando o Insert\n\t\ttry\n\t\t{\n\t\t\tprepInsert = con.prepareStatement(sqlInsert);\n\t\t\tprepInsert.setString(1, idtMsisdn);\n\t\t\tprepInsert.setInt(2, idtPromocao.intValue());\n\t\t\tprepInsert.setDate(3, new java.sql.Date(datExecucao.getTime()));\n\t\t\tprepInsert.setString(4, desStatusExecucao);\n\t\t\tprepInsert.setString(5, (new DecimalFormat(\"0000\")).format(idtCodigoRetorno.intValue()));\n\t\t\tprepInsert.setDouble(6, (vlrAjuste == null) ? 0.0 : vlrAjuste.doubleValue());\n\t\t\tprepInsert.executeUpdate();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tlog(\"Exception : MSISDN: \" + idtMsisdn + \" : \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(prepInsert != null) prepInsert.close();\n\t\t\tprepInsert = null;\n\t\t}\n\t}",
"protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);",
"public void onException(Exception ex) {\n \t\t\t}",
"public static void provideDAOExceptionClass(final FileWriterWrapper writer)\n throws IOException {\n writer.write(\"public class DAOException extends Exception {\\n\\n\");\n writer.write(\" static final long serialVersionUID = \"\n + \"200710190246666L;\\n\\n\");\n writer.write(\" public DAOException(final String message, \"\n + \"final Exception e) {\\n\");\n writer.write(\" super(message, e);\\n\");\n writer.write(\" }\\n\\n\");\n writer.write(\"}\\n\");\n }",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"protected void handleUpdateException(Exception e) throws NbaBaseException {\n setWork(getOrigWorkItem());\n addComment(\"An error occurred while committing workflow changes \" + e.getMessage());\n changeStatus(getAwdErrorStatus());\n try {\n doUpdateWorkItem();\n } catch (NbaBaseException e1) {\n e1.forceFatalExceptionType();\n throw e1;\n }\n setResult(new NbaAutomatedProcessResult(NbaAutomatedProcessResult.FAILED, getAwdErrorStatus(), getAwdErrorStatus()));\n }",
"private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public IData transferException(Throwable e, IData input) throws Exception\n {\n try\n {\n\n input.put(\"UMCP_OPR_NUMB\", input.getString(\"OPR_NUMB\", input.getString(\"TRANS_ID\")));\n\n IData users = UcaInfoQry.qryUserMainProdInfoBySn(input.getString(\"SERIAL_NUMBER\"));\n\n String brandCode = users.getString(\"BRAND_CODE\", \"\");\n if (\"G001\".equals(brandCode))\n {\n brandCode = \"01\";\n }\n else if (\"G010\".indexOf(brandCode) > -1)\n {\n brandCode = \"03\";\n }\n else if (\"G002_G003_G004_G006_G015_G021_G022_G023\".indexOf(brandCode) > -1)\n {\n brandCode = \"02\";\n }\n else\n {\n brandCode = \"09\";\n }\n input.put(\"UMCP_BRAND\", brandCode);\n\n if (!\"\".equals(input.getString(\"UMCP_E_SP_CODE\", \"\")))\n {\n\n input.put(\"SP_CODE\", input.getString(\"UMCP_S_SP_CODE\", \"\"));\n input.put(\"BIZ_CODE\", input.getString(\"UMCP_S_BIZ_CODE\", \"\"));\n input.put(\"SERV_TYPE\", input.getString(\"UMCP_S_SERV_TYPE\", \"\"));\n input.put(\"OPER_CODE\", input.getString(\"UMCP_OPER_CODE\", \"\"));\n input.put(\"BIZ_TYPE_CODE\", input.getString(\"UMCP_BIZ_TYPE_CODE\", \"\"));\n input.put(\"START_DATE\", input.getString(\"UMCP_START_DATE\", \"\"));\n input.put(\"END_DATE\", input.getString(\"UMCP_END_DATE\", \"\"));\n input.put(\"BILL_TYPE\", input.getString(\"UMCP_BILL_TYPE\", \"\"));\n }\n\n String[] errorMessage = e.getMessage().split(\"●\");\n input.put(\"X_RSPTYPE\", \"2\");// add by ouyk\n input.put(\"X_RSPCODE\", \"2998\");// add by ouyk\n input.put(\"X_RESULTCODE\", errorMessage[0]);\n input.put(\"X_RSPCODE\", errorMessage[0]);\n input.put(\"X_RESULTINFO\", errorMessage[1]);\n input.put(\"X_RSPDESC\", errorMessage[1]);\n }\n catch (Exception ex)\n {\n try\n {\n String[] errorMessage = e.getMessage().split(\"`\");\n input.put(\"X_RESULTCODE\", errorMessage[0]);\n input.put(\"X_RSPCODE\", errorMessage[0]);\n input.put(\"X_RESULTINFO\", errorMessage[1]);\n input.put(\"X_RSPDESC\", errorMessage[1]);\n }\n catch (Exception ex2)\n {\n input.put(\"X_RESULTCODE\", \"0\");\n input.put(\"X_RSPCODE\", \"0000\");\n input.put(\"X_RESULTINFO\", \"其它错误\");\n input.put(\"X_RSPDESC\", \"其它错误\");\n }\n\n }\n\n return input;\n }",
"void onMerge(OnException onException, Connection conn, String sql,\r\n String keyField, long row)\r\n throws Exception;",
"public void salvar() throws Exception {\n // Verifica se o bean existe\n if(b == null)\n throw new Exception(Main.recursos.getString(\"bd.objeto.nulo\"));\n\n // Primeiro salva o subtipo de banca\n new SubTipoBancaBD(b.getSubTipoBanca()).salvar();\n\n String sql = \"INSERT INTO banca (idBanca, idTipoBanca, idSubTipoBanca, descricao, ano, idCurriculoLattes, idLattes) \" +\n \"VALUES (null, \"+ b.getTipoBanca().getIdTipoBanca() +\", \"+ b.getSubTipoBanca().getIdSubTipoBanca() +\", \" +\n \"'\"+ b.getDescricao() +\"', \"+ b.getAno() +\", \"+ idCurriculoLattes + \" , \"+ b.getIdLattes() +\")\";\n\n\n Transacao.executar(sql);\n }",
"public String detailsUpdate() throws Exception {\n\t\treturn null;\n\t}",
"private void getCalenderListForException(YFCDocument calenderDetailXml){\n\t\tYFCIterable<YFCElement> yfsIrator = calenderDetailXml.getDocumentElement()\n\t\t\t\t.getChildElement(XMLLiterals.CALENDAR_DAY_EXCEPTIONS).getChildren(XMLLiterals.CALENDAR_DAY_EXCEPTION);\n\t\tfor(YFCElement calenderDayException : yfsIrator) {\n\t String exceptionDate = calenderDayException.getAttribute(XMLLiterals.DATE);\n\t String shiftKey = XPathUtil.getXpathAttribute(calenderDetailXml, \"//Shifts/Shift/@ShiftKey\");\n\t YFCElement exceptionEle = XPathUtil.getXPathElement(docCreateCalenderInXml,\"//CalendarDayExceptions/CalendarDayException[@Date=\\\"\"+exceptionDate+\"\\\"]\");\n\t if(XmlUtils.isVoid(exceptionEle)) {\n\t \tYFCElement inputExcepEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t \tif(XmlUtils.isVoid(inputExcepEle)) {\n\t \t\tinputExcepEle = docCreateCalenderInXml.getDocumentElement().createChild(XMLLiterals.CALENDAR_DAY_EXCEPTIONS)\n\t \t\t\t\t.createChild(XMLLiterals.CALENDAR_DAY_EXCEPTION);\n\t \t\tinputExcepEle.setAttribute(XMLLiterals.DATE, exceptionDate);\n\t \t\tinputExcepEle.setAttribute(XMLLiterals.EXCEPTION_TYPE, WORKING_DAY);\n\t \t\tinputExcepEle.createChild(XMLLiterals.EXCEPTION_SHIFTS).createChild(XMLLiterals.EXCEPTION_SHIFT).setAttribute(XMLLiterals.SHIFT_KEY, shiftKey);\n\t \t\tformMessageOnChange(calenderDetailXml);\n\t \t} \n\t \telse {\n\t \t\tinputExcepEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.CALENDAR_DAY_EXCEPTIONS).createChild(XMLLiterals.CALENDAR_DAY_EXCEPTION);\n\t \t\tinputExcepEle.setAttribute(XMLLiterals.DATE, exceptionDate);\n\t \t\tinputExcepEle.setAttribute(XMLLiterals.EXCEPTION_TYPE, WORKING_DAY);\n\t \t\tinputExcepEle.createChild(XMLLiterals.EXCEPTION_SHIFTS).createChild(XMLLiterals.EXCEPTION_SHIFT).setAttribute(XMLLiterals.SHIFT_KEY, shiftKey);\n\t \t\tformMessageOnChange(calenderDetailXml);\n\t \t\t}\n\t \t}\t\n\t\t}\n\t}",
"@Override\r\n\tpublic void inhabilitar(Alumno alumno) throws Exception {\n\t\tem=emf.createEntityManager();\r\n\r\n\t\t//1.inicia la transacción\r\n\t\tem.getTransaction().begin();\r\n\r\n\t\t//2. ejecuta las operaciones \r\n\t\t//2.1 busca Empleado por llave primaria\r\n\t\tAlumno entidadAlumno = em.find(Alumno.class, alumno.getStrCodigoAlumno());\r\n\t\r\n\t\t//2.3 actualiza Empleado\r\n\t\tem.merge(entidadAlumno);\r\n\t\tem.flush();\r\n\t\t\t\t\r\n\t\t//3.ejecuta commit a la transacción\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"public void setSecuenciaExpediente(BigDecimal secuenciaExpediente) {\r\n this.secuenciaExpediente = secuenciaExpediente;\r\n }",
"public static void setExceptionOnTimeout(boolean bException)\n\t{\n\t\tAJAX.bException = bException;\n\t}",
"public void testassociate_AuditException()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.executeUpdate(\"delete from application_area where description = 'Project'\");\r\n try {\r\n this.dao.associate(address, 1, true);\r\n fail(\"AuditException expected\");\r\n } catch (AuditException e) {\r\n //good\r\n this.executeUpdate(\"insert into application_area(app_area_id, description,\"\r\n + \"creation_date, creation_user, modification_date, modification_user) values (6, 'Project', current,\"\r\n + \" 'user', current, 'user');\");\r\n this.dao.removeAddress(address.getId(), false);\r\n }\r\n }",
"public static void handleException(final Throwable t, final Database currDb) {\n\t\tBaseOpenLogItem ol = new BaseOpenLogItem();\n\t\tol.setCurrentDatabase(currDb);\n\t\tol.logError(t);\n\t}",
"public void setDefaultValue() throws Exception {\n\t\tString columns[] = CommonUtil.split(getFrwVarDefaultColumn(), \",\");\n\t\tString values[] = CommonUtil.split(getFrwVarDefaultValue(), \",\");\n\n\t\tif (CommonUtil.isNotEmpty(columns)) {\n\t\t\tfor (int i=0; i<columns.length; i++) {\n\t\t\t\tsetValue(columns[i], values[i]);\n\t\t\t}\n\t\t}\n\t}",
"public ErrorInfo(Form3Exception ex) {\n this.details = ex.getMessage();\n this.code = ex.getErrorReason().toString();\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n if (!auditCleared) {\r\n this.executeUpdate(\"delete from audit_detail\");\r\n this.executeUpdate(\"delete from audit\");\r\n auditCleared = true;\r\n }\r\n dao = new InformixAddressDAO();\r\n }",
"public void set(Throwable e) {\n this.classType = e.getClass().getName();\n this.objectId = System.identityHashCode(e);\n StackTraceElement[] stack = e.getStackTrace();\n if ( stack != null && stack.length > 0 ) {\n this.path = stack[0].getFileName();\n this.lineNumber = stack[0].getLineNumber();\n }\n this.message = e.getMessage();\n }",
"@AfterThrowing(\n\t\t\tpointcut=\"execution(* com.christian.aopdemo.dao.AccountDAO.findAccounts(..))\",\n\t\t\tthrowing=\"theExc\"\n\t\t\t)\n\tprivate void afterThrowingFindAccountsAdvice(JoinPoint theJoinPoint, Throwable theExc) {\n\t\t\n\t\t\t\tString method = theJoinPoint.getSignature().toShortString();\n\t\t\t\t\n\t\t\t\tmyLogger.info(\"\\n=====> Executing @AfterThrowing on method: \"+ method);\n\t\t//log the exception\n\t\t\t\tmyLogger.info(\"\\n=====>Exception is: \"+ theExc);\t\t\n\t\t\t\t\n\t}",
"public void testupdateAddresses_AuditException()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"delete from application_area where description = 'Project'\");\r\n try {\r\n address.setCity(\"new city\");\r\n this.dao.updateAddresses(new Address[]{address}, true);\r\n fail(\"AuditException expected\");\r\n } catch (AuditException e) {\r\n //good\r\n this.executeUpdate(\"insert into application_area(app_area_id, description,\"\r\n + \"creation_date, creation_user, modification_date, modification_user) values (6, 'Project', current,\"\r\n + \" 'user', current, 'user');\");\r\n this.dao.removeAddress(address.getId(), false);\r\n }\r\n }",
"public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;",
"public static native void OpenMM_HippoNonbondedForce_setExceptionParameters(PointerByReference target, int index, int particle1, int particle2, double multipoleMultipoleScale, double dipoleMultipoleScale, double dipoleDipoleScale, double dispersionScale, double repulsionScale, double chargeTransferScale);",
"@Override\r\n\tpublic String AddEmployeeDetails(EmployeeEntity employee) throws CustomException {\n\t\tString strMessage=\"\";\r\n\t\trepository.save(employee);\r\n\t\tstrMessage=\"Employee data has been saved\";\r\n\t\treturn strMessage;\r\n\t}",
"public void testAddAddress_AuditException()\r\n throws Exception {\r\n this.executeUpdate(\"delete from application_area where description = 'Project'\");\r\n try {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, true);\r\n fail(\"AuditException expected\");\r\n } catch (AuditException e) {\r\n //good\r\n this.executeUpdate(\"insert into application_area(app_area_id, description,\"\r\n + \"creation_date, creation_user, modification_date, modification_user) values (6, 'Project', current,\"\r\n + \" 'user', current, 'user');\");\r\n }\r\n }",
"@Override\n\tpublic EmployeeBean updateEmployeeDetails(EmployeeBean employeeBean) throws Exception {\n\t\treturn employeeDao.updateEmployeeDetails(employeeBean);\n\t}",
"public void setInfo(String i)\n {\n info = i;\n }",
"@Override\n\tpublic void onNotification(\n\t\t\torg.mule.context.notification.ExceptionNotification execptionNotification) {\n\n\t\t// initiates exceptions to log\n\t\ttry {\n\t\t\tlogExceptionNotificationReport(execptionNotification);\n\t\t} catch (InstrumentationException ie) {\n\t\t\tlog.error(ie.getMessage(),ie);\n\t\t}\n\t\t\t\n\t\t\n\t}",
"protected abstract void setErrorCode();",
"public static int updateKnoDetailAuditStatus(\n\t\t\tMeterReadImgAuditDetails meterReadImgAuditDetails) {\n\n\t\tAppLog.begin();\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tint updatedRow = 0;\n\t\ttry {\n\t\t\tconn = DBConnector.getConnection();\n\t\t\tString query = QueryContants\n\t\t\t\t\t.getUpdateKnoDetailAuditQuery(meterReadImgAuditDetails);\n\t\t\tAppLog.info(\"getUpdateKnoDetailAuditQuery::\" + query);\n\t\t\tps = conn.prepareStatement(query);\n\t\t\tint i = 0;\n\t\t\tif (null != meterReadImgAuditDetails.getKno()\n\t\t\t\t\t&& null != meterReadImgAuditDetails.getBillRound()) {\n\t\t\t\tif (null != meterReadImgAuditDetails.getSiteVistGivenBy()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getSiteVistGivenBy())) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t.getSiteVistGivenBy());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getAssignTo()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getAssignTo())\n\t\t\t\t\t\t&& !DJBConstants.KNO_AUDIT_MR_ASSIGNTO\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t\t\t.getAssignTo())) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails.getAssignTo());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getSiteVistRequrd()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getSiteVistRequrd())) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t.getSiteVistRequrd());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getLastAuditStatus()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getLastAuditStatus())) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t.getLastAuditStatus());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getLastAuditRmrk()\n\t\t\t\t\t\t&& !(DJBConstants.KNO_AUDIT_NO_REMARK\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t\t\t.getLastAuditRmrk()))) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t.getLastAuditRmrk());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getAssignToFlg()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getAssignToFlg())\n\t\t\t\t\t\t&& !\"NA\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getAssignToFlg())) {\n\t\t\t\t\tps\n\t\t\t\t\t\t\t.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t\t.getAssignToFlg());\n\t\t\t\t}\n\t\t\t\tif (null != meterReadImgAuditDetails.getLastUpdatedBy()\n\t\t\t\t\t\t&& !\"\".equalsIgnoreCase(meterReadImgAuditDetails\n\t\t\t\t\t\t\t\t.getLastUpdatedBy())) {\n\t\t\t\t\tps.setString(++i, meterReadImgAuditDetails\n\t\t\t\t\t\t\t.getLastUpdatedBy());\n\t\t\t\t}\n\t\t\t\tps.setString(++i, meterReadImgAuditDetails.getKno());\n\t\t\t\tps.setString(++i, meterReadImgAuditDetails.getBillRound());\n\t\t\t}\n\n\t\t\tAppLog.info(\"Applying Update for KNO \"\n\t\t\t\t\t+ meterReadImgAuditDetails.getKno());\n\t\t\tupdatedRow += ps.executeUpdate();\n\t\t\tAppLog.info(\"updatedRow\" + updatedRow);\n\n\t\t} catch (SQLException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (IOException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (null != ps) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif (null != rs) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif (null != conn) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLog.error(e);\n\t\t\t}\n\t\t}\n\t\tAppLog.end();\n\t\treturn updatedRow;\n\t}",
"public void testupdateAddresses_PersistenceException() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setId(1);\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").updateAddresses(new Address[]{address}, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }",
"public void setCause(String cause) {\n infoElements.put(new Integer(InfoElement.CAUSE), cause.getBytes());\n }",
"private void setStatementInfo (String tempID,IncomeNotePO note, String staffID,\n\t\t\tPreparedStatement stmt) throws SQLException {\n\t\tstmt.setString(1, tempID);\n\t\tstmt.setString(2, note.getTime());\n\t\tstmt.setString(3, note.getReceivingOrganization());\n\t\tstmt.setString(4, note.getIncomeHandler());\n\t\tstmt.setString(5, note.getIncomeSource());\n\t\tstmt.setString(6, note.getMoney());\n\t\tstmt.setString(7, note.getAccount().getNumber());\n\t\tstmt.setString(8, staffID);\n\t\t\n\t\tstmt.setInt(9, DocState.UNCHECKED.getIntState());\n\t}",
"public final void mo57296a(Exception exc) {\n C7573i.m23587b(exc, \"e\");\n C28951i iVar = (C28951i) this.f67572c;\n if (iVar != null) {\n iVar.mo74239a(exc);\n }\n }",
"@Update({\n \"update B_UMB_CHECKING_LOG\",\n \"set TRANDATE = #{trandate,jdbcType=VARCHAR},\",\n \"ACCOUNTDATE = #{accountdate,jdbcType=VARCHAR},\",\n \"CHECKTYPE = #{checktype,jdbcType=CHAR},\",\n \"STATUS = #{status,jdbcType=CHAR},\",\n \"DONETIME = #{donetime,jdbcType=VARCHAR},\",\n \"FILENAME = #{filename,jdbcType=VARCHAR}\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(BUMBCheckingLog record);",
"public void setEFF_DATE(Date EFF_DATE) {\r\n this.EFF_DATE = EFF_DATE;\r\n }",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_esfResultLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"private void setValue(int columnIndex, String value) throws Exception {\n //TODO Take into account the possiblity of a collision, and notify listeners if necessary\n if (wasNull || value == null) {\n rowValues[columnIndex - 1] = null;\n } else {\n switch (metaData.getColumnType(columnIndex)) {\n case Types.TINYINT:\n rowValues[columnIndex - 1] = Byte.valueOf(value.trim());\n break;\n case Types.SMALLINT:\n rowValues[columnIndex - 1] = Short.valueOf(value.trim());\n break;\n case Types.INTEGER:\n rowValues[columnIndex - 1] = Integer.valueOf(value.trim());\n break;\n case Types.BIGINT:\n rowValues[columnIndex - 1] = Long.valueOf(value.trim());\n break;\n case Types.REAL:\n rowValues[columnIndex - 1] = Float.valueOf(value.trim());\n break;\n case Types.FLOAT:\n case Types.DOUBLE:\n rowValues[columnIndex - 1] = Double.valueOf(value.trim());\n break;\n case Types.DECIMAL:\n case Types.NUMERIC:\n rowValues[columnIndex - 1] = new BigDecimal(value.trim());\n break;\n case Types.BOOLEAN:\n case Types.BIT:\n rowValues[columnIndex - 1] = Boolean.valueOf(value.trim());\n break;\n case Types.CHAR:\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n rowValues[columnIndex - 1] = value;\n break;\n case Types.VARBINARY:\n case Types.LONGVARBINARY:\n case Types.BINARY:\n byte[] bytes = Base64.decode(value);\n rowValues[columnIndex - 1] = bytes;\n break;\n case Types.DATE:\n case Types.TIME:\n case Types.TIMESTAMP:\n rowValues[columnIndex - 1] = new Timestamp(Long.parseLong(value.trim()));\n break;\n case Types.ARRAY:\n case Types.BLOB:\n case Types.CLOB:\n case Types.DATALINK:\n case Types.DISTINCT:\n case Types.JAVA_OBJECT:\n case Types.OTHER:\n case Types.REF:\n case Types.STRUCT:\n //what to do with this?\n break;\n default :\n //do nothing\n }\n }\n }",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);"
] | [
"0.5170384",
"0.49418402",
"0.47495088",
"0.47199333",
"0.46537656",
"0.4589313",
"0.4421523",
"0.4413045",
"0.4358817",
"0.43155435",
"0.42957243",
"0.42887855",
"0.4245268",
"0.42236197",
"0.4211926",
"0.41735473",
"0.4164338",
"0.41633552",
"0.41522047",
"0.4138672",
"0.41291323",
"0.41218266",
"0.41029873",
"0.4101943",
"0.4097708",
"0.4089424",
"0.4061189",
"0.40581435",
"0.40392527",
"0.40390533",
"0.40378785",
"0.40372214",
"0.40364113",
"0.40304264",
"0.40222463",
"0.40129033",
"0.40110636",
"0.39995578",
"0.3982824",
"0.39728472",
"0.39682496",
"0.3962734",
"0.39590403",
"0.3957134",
"0.395594",
"0.39419368",
"0.3937771",
"0.393154",
"0.3923065",
"0.39200157",
"0.3917833",
"0.3914444",
"0.3912944",
"0.39093205",
"0.39073002",
"0.39051116",
"0.3901527",
"0.38884017",
"0.38831818",
"0.38699782",
"0.3868932",
"0.3865883",
"0.38615993",
"0.3849879",
"0.3849786",
"0.3849145",
"0.3847966",
"0.38315806",
"0.38299",
"0.3820774",
"0.38207015",
"0.38093182",
"0.38090688",
"0.38046947",
"0.38045475",
"0.38035342",
"0.37965393",
"0.37949967",
"0.37947646",
"0.3792775",
"0.37914082",
"0.37910375",
"0.3789735",
"0.3789285",
"0.3788636",
"0.37852663",
"0.3777639",
"0.377448",
"0.37728104",
"0.37715775",
"0.3768701",
"0.3767933",
"0.37635702",
"0.37615037",
"0.37576285",
"0.37556383",
"0.3754667",
"0.37516087",
"0.37515765",
"0.37515318"
] | 0.5603208 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.IFSUCCESS | public Integer getIfsuccess() {
return ifsuccess;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIfsuccess(Integer ifsuccess) {\n this.ifsuccess = ifsuccess;\n }",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"public int getSuccess() {\n return success;\n }",
"private void reportTransactionStatus(boolean success){\n if(success){\n sendMessage(\"<st>\");\n }else{\n sendMessage(\"<f>\");\n }\n }",
"public Boolean getSuccess() {\n\t\treturn success;\n\t}",
"public Integer getIsSuccess() {\n return isSuccess;\n }",
"public boolean isSuccess();",
"public boolean isSuccess();",
"public java.lang.String getSuccessFlag2() {\n return successFlag2;\n }",
"public java.lang.String getSuccessFlag1() {\n return successFlag1;\n }",
"@XmlTransient\n\tpublic boolean isSuccess() {\n\t\treturn errorCode == ActionErrorCode.SUCCESS;\n\t}",
"public FaxJobStatus getFaxJobStatus(FaxClientSpi faxClientSpi,ProcessOutput processOutput);",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"@Override\n\tpublic int FunctionCall() {\n\t\tint s=success;\n\t\t\n\t\treturn s;\n\n\t}",
"@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}",
"public void receiveResultcheckIfUserExist(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.CheckIfUserExistResponse result\r\n ) {\r\n }",
"public String getRegisterSuccessMessage() {\n\t\twaitToElementVisible(driver,RegisterPageUI.REGISTER_SUCCEESS_MESSAGE);\n\t\treturn getElementText(driver,RegisterPageUI.REGISTER_SUCCEESS_MESSAGE);\n\t}",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"com.rpg.framework.database.Protocol.ResponseCode getResult();",
"@Override\n public int getStatus() {\n return this.SUCCESS;\n }",
"public boolean isSuccess()\r\n/* 79: */ {\r\n/* 80:115 */ Object result = this.result;\r\n/* 81:116 */ if ((result == null) || (result == UNCANCELLABLE)) {\r\n/* 82:117 */ return false;\r\n/* 83: */ }\r\n/* 84:119 */ return !(result instanceof CauseHolder);\r\n/* 85: */ }",
"public fileToHdfsByBinary_result(fileToHdfsByBinary_result other) {\n if (other.isSetSuccess()) {\n this.success = new ResultEntity(other.success);\n }\n }",
"public String getSuccessProperty() {\n\t\tif (null != this.successProperty) {\n\t\t\treturn this.successProperty;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"successProperty\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public boolean isSuccess()\r\n {\r\n return success;\r\n }",
"@Override\n public Object Execute()\n {\n Object result = null;\n\n if (IfClause.Execute().toString().toLowerCase() == \"true\")\n {\n result = ThenClause.Execute();\n }\n else\n {\n if (ElseClause != null)\n {\n result = ElseClause.Execute();\n }\n }\n \n return result;\n }",
"public void receiveResultcheckIfInwentUserExist(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.CheckIfInwentUserExistResponse result\r\n ) {\r\n }",
"public int getAdminMigrationStatus(Context context) throws Exception\r\n\t{\r\n\r\n\t\tString cmd = \"print program eServiceSystemInformation.tcl select property[MigrationR212VariantConfiguration].value dump\";\r\n\t String result =\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\r\n\t if(result.equalsIgnoreCase(\"PreMigrationInProcess\"))\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}else if(result.equalsIgnoreCase(\"PreMigrationComplete\"))\r\n\t\t{\r\n\t\t\treturn 2;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureObjectsNotFound\")) //else if(result.equalsIgnoreCase(\"GBOMInProcess\"))\r\n\t\t{\r\n\t\t\treturn 3;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureInProcess\")) //else if(result.equalsIgnoreCase(\"GBOMInProcess\"))\r\n\t\t{\r\n\t\t\treturn 4;\r\n\t\t}else if(result.equalsIgnoreCase(\"FeatureComplete\")) //(result.equalsIgnoreCase(\"GBOMComplete\"))\r\n\t\t{\r\n\t\t\treturn 5;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 6;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMInProcess\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 7;\r\n\t\t}else if(result.equalsIgnoreCase(\"GBOMComplete\")) //(result.equalsIgnoreCase(\"FeatureComplete\"))\r\n\t\t{\r\n\t\t\treturn 8;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 9;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleInProcess\"))\r\n\t\t{\r\n\t\t\treturn 10;\r\n\t\t}else if(result.equalsIgnoreCase(\"RuleComplete\"))\r\n\t\t{\r\n\t\t\treturn 11;\r\n\t\t}else if(result.equalsIgnoreCase(\"ProductConfigurationObjectsNotFound\")) //(result.equalsIgnoreCase(\"FeatureInProcess\"))\r\n\t\t{\r\n\t\t\treturn 12;\r\n\t\t}else if(result.equalsIgnoreCase(\"UpdatePCBOMXMLInProcess\"))\r\n\t\t{\r\n\t\t\treturn 13;\r\n\t\t}else if(result.equalsIgnoreCase(\"UpdatePCBOMXMLComplete\"))\r\n\t\t{\r\n\t\t\treturn 14;\r\n\t\t}\r\n\t return 0;\r\n\r\n\t}",
"@Override\n public String execute() throws Exception {\n\treturn SUCCESS;\n }",
"public HashMap<Long, Boolean> getSuccess() {\n\t\treturn succesful;\n\t}",
"public boolean isSuccess() {\r\n return success;\r\n }",
"public boolean isSuccess() {\r\n return success;\r\n }",
"public Boolean isSuccess(final SessionContext ctx)\n\t{\n\t\treturn (Boolean)getProperty( ctx, SUCCESS);\n\t}",
"public String generateCheck(int bankAccountID) {\n //\tGet Info from DB\n int key = bankAccountID;\n\n String sql = \"SELECT CURRENTNEXT,HASTA FROM C_BankAccountDoc WHERE C_BankAccount_ID = ? and IsActive='Y'\";\n\n try {\n\n PreparedStatement pstm = DB.prepareStatement(sql, null);\n pstm.setInt(1, key);\n\n ResultSet rs = pstm.executeQuery();\n\n //\tSet Info to Tab\n if (rs.next()) {\n int next = rs.getInt(1);\n int to = rs.getInt(2);\n\n if (next <= to) {\n String prefix = rs.getString(1);\n\n switch (prefix.length()) {\n case 1:\n prefix = \"0000000\" + prefix;\n break;\n case 2:\n prefix = \"000000\" + prefix;\n break;\n case 3:\n prefix = \"00000\" + prefix;\n break;\n case 4:\n prefix = \"0000\" + prefix;\n break;\n case 5:\n prefix = \"000\" + prefix;\n break;\n case 6:\n prefix = \"00\" + prefix;\n break;\n case 7:\n prefix = \"0\" + prefix;\n break;\n case 8:\n break;\n default:\n prefix = null;\n //JOptionPane.showMessageDialog(null,\"Número de Cheque Incorrecto\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n return prefix;\n // mTab.setValue(\"NROCHEQUE\", prefix);\n } else {\n return \"00000000\";\n /*JOptionPane.showMessageDialog(null,\"Actualice Documento de Cuenta Bancaria\", \"Chequera Completa\", JOptionPane.INFORMATION_MESSAGE);\n mTab.setValue(\"NROCHEQUE\", \"00000000\");*/\n }\n } else {\n return \"00000000\";\n /*JOptionPane.showMessageDialog(null,\"Actualice Documento de Cuenta Bancaria\", \"Chequera Completa\", JOptionPane.INFORMATION_MESSAGE);\t\t\t\t\t\n mTab.setValue(\"NROCHEQUE\", \"00000000\");*/\n }\n } catch (Exception e) {\n return null;\n }\n\n }",
"public static synchronized String getCustomerSaveSuccesfully() {\r\n\t\treturn CustomerSaveSuccesfully;\r\n\t}",
"public int getResult() {return resultCode;}",
"@Override\n public void onSucces(String result) {\n JSONObject object = new JSONObject();\n boolean isSuccess = object.optBoolean(result);\n Log.hb(\"orderDetailBean.order_info.status after::\"+orderDetailBean.order_info.status);\n finish();\n }",
"public boolean isSuccess() {\n return success;\n }",
"public boolean isSuccess() {\n return success;\n }",
"public boolean isSuccess() {\n return success;\n }",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"public Byte getBfStatus() {\r\n return bfStatus;\r\n }",
"private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}",
"public boolean lastOpSuccess()\r\n {\r\n \treturn this.stat == VirtualPointer.Serializer.STATUS_SUCCESS;\r\n }",
"public boolean getSuccess() {\n return success_;\n }",
"@Override\n public String execute() throws Exception {\n return SUCCESS;\n }",
"public String getSuccessResult(String response) {\n\t\tString result=\"result\";\n\t\tPattern pattern = Pattern.compile(SUCCESS);\n\t\tMatcher match = pattern.matcher(response);\n\t\tif (match.find(1)) {\n\t\t\tresult= (match.group(1));\n\t\t}\n\t\treturn result;\n\t}",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return success_;\n }",
"public boolean getSuccess() {\n return (transactionFailure == null && amountConverted != null);\n }",
"public int validateBankPackageResult() {\n\t\tif (this.validateBankPackage())\n\t\t\treturn EmployeeConnection.VALID;\n\t\tif (!this.validateBank())\n\t\t\treturn EmployeeConnection.INVALID_BANK;\n\t\tif (!this.validateBSB())\n\t\t\treturn EmployeeConnection.INVALID_BSB_NUMBER;\n\t\tif (!this.validateAccountNumber())\n\t\t\treturn EmployeeConnection.INVALID_ACCOUNT_NUMBER;\n\t\treturn EmployeeConnection.INVALID_UNKNOWN;\n\t}",
"public void setSuccessFlag2(java.lang.String successFlag2) {\n this.successFlag2 = successFlag2;\n }",
"public String execute() throws Exception {\n\t\treturn SUCCESS;\r\n\t}",
"public String execute() throws Exception {\n\t\treturn SUCCESS;\r\n\t}",
"public notifyTableChange_result(notifyTableChange_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.siriusdb.thrift.model.NotifyTableChangeResponse(other.success);\n }\n }",
"boolean hasResultCode();",
"boolean hasResultCode();",
"public boolean getSuccess() {\n return instance.getSuccess();\n }",
"public boolean getSuccess() {\n return instance.getSuccess();\n }",
"public boolean getSuccess() {\n return instance.getSuccess();\n }",
"public void setIsSuccess(Integer isSuccess) {\n this.isSuccess = isSuccess;\n }",
"public Boolean isSuccess()\n\t{\n\t\treturn isSuccess( getSession().getSessionContext() );\n\t}",
"protected String getGPIBStatus() {\n\n // check for errors\n if ( (m_ibsta.getValue() & ERR) != 0) {\n // return the GPIB Status because an error occurred\n int err = m_iberr.getValue();\n\n // make a nice String with the GPIB Status\n String str = String.format(Locale.US, \"GPIB Status: ibsta = 0x%x; iberr = %d (%s)\\n\",\n m_ibsta.getValue(), err,\n (err<ErrorMnemonic.length ? ErrorMnemonic[err] : \"Error number not recognized\"));\n\n // log event\n m_Logger.finer(str);\n //m_Comm_Logger.finer(str);\n\n return str;\n } else {\n // return an empty String\n return \"\";\n }\n }",
"@Insert({\n \"insert into B_UMB_CHECKING_LOG (JNLNO, TRANDATE, \",\n \"ACCOUNTDATE, CHECKTYPE, \",\n \"STATUS, DONETIME, FILENAME)\",\n \"values (#{jnlno,jdbcType=VARCHAR}, #{trandate,jdbcType=VARCHAR}, \",\n \"#{accountdate,jdbcType=VARCHAR}, #{checktype,jdbcType=CHAR}, \",\n \"#{status,jdbcType=CHAR}, #{donetime,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR})\"\n })\n int insert(BUMBCheckingLog record);",
"public boolean patenteSuccess() {\n return this.success;\n }",
"public static boolean getOrderStatus() {\r\n \treturn orderSucceed;\r\n }",
"@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\treturn \"success\";\n\t \n\t\t\n\t}",
"@Override\n\t\t\tpublic void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n\t\t\t\tBaseCallback callback = new Gson().fromJson(new String(arg2), BaseCallback.class);\n\t\t\t\tif(callback.getResult().equals(\"1\")){\n\t\t\t\t\tToastTool.showWithMessage(\"上架成功\", context);\n\t\t\t\t}else{\n\t\t\t\t\tToastTool.showWithMessage(\"上架失败,请重试\", context);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public String execute() {\n return \"success\";\n }",
"public boolean isSuccess() {\n return mSuccess;\n }",
"public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }",
"public emailActivation_result(emailActivation_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.Result(other.success);\n }\n }",
"public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public abstract org.xms.g.common.api.PendingResult<XS> onSuccess(XR param0);",
"public int getResultCode();",
"public int getCBRStatus();",
"public Integer getTradeSuccess() {\n return tradeSuccess;\n }",
"public Integer getIsSuccessInSolving()\n/* */ {\n/* 207 */ return this.isSuccessInSolving;\n/* */ }",
"public int Verificar(Boletas obj) {\n com.mysql.jdbc.Connection con = null;\n\n try {\n\n String sql = \"SELECT COUNT(folio) FROM boletas WHERE folio = ?\";\n con = getConection();\n ps = con.prepareStatement(sql);\n ps.setInt(1, obj.getFolio());\n rs = ps.executeQuery();\n\n if (rs.next()) {\n return rs.getInt(\"COUNT(folio)\"); \n }\n\n return -1;\n\n } catch (Exception e) {\n System.err.println(\"error CATCH BUSCAR_ID desde C_LIBRO:\" + e);\n return -1;\n } finally {\n try {\n con.close();\n } catch (Exception e) {\n System.err.println(\"error finally BUSCAR_ID desde C_LIBRO:\" + e);\n }\n }\n }",
"public AfFailure getFailure()\n {\n return _failure;\n }",
"public IStatus getResult();",
"public Byte getRealnameAuditStatus() {\n return realnameAuditStatus;\n }",
"public String execute() throws Exception {\n\t\treturn \"success\";\n\t}"
] | [
"0.5561751",
"0.5227718",
"0.5227718",
"0.5227718",
"0.5227718",
"0.5166262",
"0.5159755",
"0.50552845",
"0.5020714",
"0.5011672",
"0.5011672",
"0.50071365",
"0.49807966",
"0.49166113",
"0.49122098",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4875097",
"0.4869989",
"0.4867264",
"0.48016992",
"0.47659793",
"0.4764107",
"0.4764107",
"0.47631466",
"0.4763132",
"0.4763132",
"0.4759862",
"0.47489572",
"0.47452033",
"0.4732901",
"0.47276086",
"0.47247216",
"0.4722433",
"0.46886587",
"0.46801418",
"0.46741834",
"0.46249607",
"0.46249607",
"0.46240914",
"0.46217573",
"0.46109122",
"0.46037278",
"0.46016318",
"0.45916632",
"0.45916632",
"0.45916632",
"0.4585292",
"0.45813954",
"0.45800477",
"0.45791984",
"0.45789513",
"0.45697558",
"0.45695555",
"0.45683625",
"0.45651853",
"0.45651853",
"0.45651853",
"0.45651853",
"0.45559043",
"0.45470306",
"0.4539772",
"0.45335445",
"0.45335445",
"0.45311224",
"0.45296314",
"0.45296314",
"0.45234948",
"0.45234948",
"0.45234948",
"0.45081183",
"0.45056027",
"0.45024794",
"0.4493175",
"0.44914842",
"0.44895968",
"0.4487164",
"0.4477271",
"0.4476669",
"0.44736007",
"0.4455122",
"0.444493",
"0.44440457",
"0.44440144",
"0.44440144",
"0.4443819",
"0.44421515",
"0.44377458",
"0.44332474",
"0.4429865",
"0.44264913",
"0.44223592",
"0.44202787",
"0.4418578",
"0.44177935",
"0.44174495"
] | 0.56484836 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.IFSUCCESS | public void setIfsuccess(Integer ifsuccess) {
this.ifsuccess = ifsuccess;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuccess(boolean success);",
"public void setSuccess(boolean success) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Setting success to -> \"+ success);\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"private void reportTransactionStatus(boolean success){\n if(success){\n sendMessage(\"<st>\");\n }else{\n sendMessage(\"<f>\");\n }\n }",
"public void setIsSuccess(Integer isSuccess) {\n this.isSuccess = isSuccess;\n }",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"protected void setSuccess(boolean newSuccess)\r\n {\r\n success = newSuccess;\r\n }",
"public void setSuccessProperty(String successProperty) {\n\t\tthis.successProperty = successProperty;\n\t\tthis.handleConfig(\"successProperty\", successProperty);\n\t}",
"public void setSuccess(boolean value) {\r\n this.success = value;\r\n }",
"public fileToHdfsByBinary_result(fileToHdfsByBinary_result other) {\n if (other.isSetSuccess()) {\n this.success = new ResultEntity(other.success);\n }\n }",
"private void setSuccess(boolean value) {\n \n success_ = value;\n }",
"private void setSuccess(boolean value) {\n \n success_ = value;\n }",
"private void setSuccess(boolean value) {\n \n success_ = value;\n }",
"public void setOperationSuccess(boolean value) {\n this.operationSuccess = value;\n }",
"public void setSuccess(final Boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}",
"public notifyTableChange_result(notifyTableChange_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.siriusdb.thrift.model.NotifyTableChangeResponse(other.success);\n }\n }",
"public emailActivation_result(emailActivation_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.Result(other.success);\n }\n }",
"public void setSuccess(final boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}",
"public void setIsSuccess(boolean isSuccess) {\r\n this.isSuccess = isSuccess;\r\n }",
"public bind_result(bind_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.Result(other.success);\n }\n }",
"public void setSuccess(final SessionContext ctx, final Boolean value)\n\t{\n\t\tsetProperty(ctx, SUCCESS,value);\n\t}",
"public void setTradeSuccess(Integer tradeSuccess) {\n this.tradeSuccess = tradeSuccess;\n }",
"public void setSuccessFlag2(java.lang.String successFlag2) {\n this.successFlag2 = successFlag2;\n }",
"void setTransactionSuccessful();",
"public void setSapInterfaceResult(java.lang.String param) {\r\n localSapInterfaceResultTracker = param != null;\r\n\r\n this.localSapInterfaceResult = param;\r\n }",
"public void setIsSuccess(boolean value) {\n this.isSuccess = value;\n }",
"public void setTestDBStatusResult(java.lang.String param) {\r\n localTestDBStatusResultTracker = param != null;\r\n\r\n this.localTestDBStatusResult = param;\r\n }",
"public void setSuccessFlag1(java.lang.String successFlag1) {\n this.successFlag1 = successFlag1;\n }",
"public void setAsSuccessful_OK(){\n setStatus(200);\n }",
"public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }",
"public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }",
"public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"public void setActionSuccess(boolean actionSuccess)\n {\n m_actionSuccess = actionSuccess;\n }",
"public void setCommitOnFailure (boolean commitOnFailure) {\n this.commitOnFailure = commitOnFailure;\n }",
"@Override\n public void onSucces(String result) {\n JSONObject object = new JSONObject();\n boolean isSuccess = object.optBoolean(result);\n Log.hb(\"orderDetailBean.order_info.status after::\"+orderDetailBean.order_info.status);\n finish();\n }",
"private boolean setSuccess0(V result)\r\n/* 407: */ {\r\n/* 408:494 */ if (isDone()) {\r\n/* 409:495 */ return false;\r\n/* 410: */ }\r\n/* 411:498 */ synchronized (this)\r\n/* 412: */ {\r\n/* 413:500 */ if (isDone()) {\r\n/* 414:501 */ return false;\r\n/* 415: */ }\r\n/* 416:503 */ if (result == null) {\r\n/* 417:504 */ this.result = SUCCESS;\r\n/* 418: */ } else {\r\n/* 419:506 */ this.result = result;\r\n/* 420: */ }\r\n/* 421:508 */ if (hasWaiters()) {\r\n/* 422:509 */ notifyAll();\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425:512 */ return true;\r\n/* 426: */ }",
"public ChannelProgressivePromise setSuccess()\r\n/* 41: */ {\r\n/* 42: 73 */ return setSuccess(null);\r\n/* 43: */ }",
"public saveUser_result(saveUser_result other) {\n if (other.isSetSuccess()) {\n this.success = other.success;\n }\n }",
"public Integer getIfsuccess() {\n return ifsuccess;\n }",
"@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void markSuccess() {\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onSuccess(\r\n\t\t\t\t\t\t\t\t\t\tResultadoActualizacionEntidad result) {\n\t\t\t\t\t\t\t\t\tvista.getBotonGuardar().setEnabled(false);\r\n\t\t\t\t\t\t\t\t\tvista.deshabilitarInputText();\r\n\t\t\t\t\t\t\t\t\tvista.getBotonCancelar().setText(\"Aceptar\");\r\n\t\t\t\t\t\t\t\t}",
"@Then(\"My logi success\")\r\n\tpublic void my_logi_success() {\n\t\tSystem.out.println(\"code for sucess\");\r\n\t}",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"public notifyStateChange_result(notifyStateChange_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.siriusdb.thrift.model.NotifyStateResponse(other.success);\n }\n }",
"@Override\n public void onSuccess(Boolean result) {\n\n }",
"@Override\n public String execute() throws Exception {\n\treturn SUCCESS;\n }",
"public void setSuccess(final SessionContext ctx, final boolean value)\n\t{\n\t\tsetSuccess( ctx,Boolean.valueOf( value ) );\n\t}",
"public void setAutoOPBillChargeResult(java.lang.String param) {\r\n localAutoOPBillChargeResultTracker = param != null;\r\n\r\n this.localAutoOPBillChargeResult = param;\r\n }",
"public ImportDataInHiveByWhere_result(ImportDataInHiveByWhere_result other) {\r\n if (other.isSetSuccess()) {\r\n this.success = other.success;\r\n }\r\n }",
"public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}",
"public Builder setSuccess(boolean value) {\n \n success_ = value;\n onChanged();\n return this;\n }",
"public void setGetYYT_XXBGResult(java.lang.String param) {\r\n localGetYYT_XXBGResultTracker = param != null;\r\n\r\n this.localGetYYT_XXBGResult = param;\r\n }",
"public getValue_result(getValue_result other) {\n if (other.isSetSuccess()) {\n this.success = other.success;\n }\n }",
"public setEmployeeCustomInfo_result(setEmployeeCustomInfo_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.Result(other.success);\n }\n }",
"@XmlTransient\n\tpublic boolean isSuccess() {\n\t\treturn errorCode == ActionErrorCode.SUCCESS;\n\t}",
"@Override\n public void onSuccess(Boolean result)\n {\n if (result)\n {\n System.out.println(\"user info successfully updated!\");\n Window.alert(\"Successfully updated!\");\n }\n else\n {\n System.out.println(\"something is wrong on the server side!\");\n }\n }",
"@Override\n public void onSuccess(SendResult<Integer, String> result) {\n handleSuccess(key, value, result);\n }",
"@Override\n public void onSuccess(SendResult<Integer, String> result) {\n handleSuccess(key, value, result);\n }",
"@Override\r\n public void onResult(boolean result)\r\n {\n if (result) {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Successfully\"));\r\n } else {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Fail\"));\r\n }\r\n }",
"public boolean trySuccess(V result)\r\n/* 321: */ {\r\n/* 322:406 */ if (setSuccess0(result))\r\n/* 323: */ {\r\n/* 324:407 */ notifyListeners();\r\n/* 325:408 */ return true;\r\n/* 326: */ }\r\n/* 327:410 */ return false;\r\n/* 328: */ }",
"public int Appbr(Long broker_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}",
"public void setGetBillInfoResult(java.lang.String param) {\r\n localGetBillInfoResultTracker = param != null;\r\n\r\n this.localGetBillInfoResult = param;\r\n }",
"public int getSuccess() {\n return success;\n }",
"public void receiveResultcheckIfUserExist(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.CheckIfUserExistResponse result\r\n ) {\r\n }",
"public java.lang.String getSuccessFlag1() {\n return successFlag1;\n }",
"@Override\n public int getStatus() {\n return this.SUCCESS;\n }",
"public void setSuccessIndicator(boolean value) {\n this.successIndicator = value;\n }",
"public abstract org.xms.g.common.api.PendingResult<XS> onSuccess(XR param0);",
"public java.lang.String getSuccessFlag2() {\n return successFlag2;\n }",
"public Boolean getSuccess() {\n\t\treturn success;\n\t}",
"public final void mo40209b_() {\n zzak();\n mo40210c_().setTransactionSuccessful();\n }",
"private void responseVal(HttpServletResponse response, boolean processSuccess, String msg) throws IOException {\n HttpResponseModel<Serializable> result = HttpResponseModel.buildSuccessResponse();\n result.setCode(processSuccess ? INITPWDSUCCESSCODE : INITPWDFAILEDCODE);\n result.setMsg(msg);\n // send message\n WebScopeUtil.sendJsonToResponse(response, result);\n }",
"@Override\n public void doAfterTransaction(int result) {\n\n }",
"public ExportDataUpdate_result(ExportDataUpdate_result other) {\r\n if (other.isSetSuccess()) {\r\n this.success = other.success;\r\n }\r\n }",
"public void onTestSuccess(ITestResult result) {\n\t if(result.getStatus()==ITestResult.SUCCESS) {\n\t \ttest.log(Status.PASS, \"Pass Test case is: \" + result.getName());\n\t \t\n\t }\n\t }",
"@Override\n\t\t\tpublic void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n\t\t\t\tBaseCallback callback = new Gson().fromJson(new String(arg2), BaseCallback.class);\n\t\t\t\tif(callback.getResult().equals(\"1\")){\n\t\t\t\t\tToastTool.showWithMessage(\"上架成功\", context);\n\t\t\t\t}else{\n\t\t\t\t\tToastTool.showWithMessage(\"上架失败,请重试\", context);\n\t\t\t\t}\n\t\t\t}",
"public ImportDataInHive_result(ImportDataInHive_result other) {\r\n if (other.isSetSuccess()) {\r\n this.success = other.success;\r\n }\r\n }",
"@Override\n\tpublic void setSendMailSuccess() {\n\t\t\n\t}",
"@Override\n public String execute() throws Exception {\n return SUCCESS;\n }",
"@Insert({\n \"insert into B_UMB_CHECKING_LOG (JNLNO, TRANDATE, \",\n \"ACCOUNTDATE, CHECKTYPE, \",\n \"STATUS, DONETIME, FILENAME)\",\n \"values (#{jnlno,jdbcType=VARCHAR}, #{trandate,jdbcType=VARCHAR}, \",\n \"#{accountdate,jdbcType=VARCHAR}, #{checktype,jdbcType=CHAR}, \",\n \"#{status,jdbcType=CHAR}, #{donetime,jdbcType=VARCHAR}, #{filename,jdbcType=VARCHAR})\"\n })\n int insert(BUMBCheckingLog record);",
"public void setGetGhlbResult(java.lang.String param) {\r\n localGetGhlbResultTracker = param != null;\r\n\r\n this.localGetGhlbResult = param;\r\n }",
"public void receiveResultcheckIfInwentUserExist(\r\n net.agef.jobexchange.webservice.tests.util.UserWSStub.CheckIfInwentUserExistResponse result\r\n ) {\r\n }",
"public boolean isSuccess();",
"public boolean isSuccess();",
"public void setFailure(AfFailure failure)\n {\n _failure = failure;\n }",
"public void setAfterResult(Integer afterResult) {\r\n this.afterResult = afterResult;\r\n }",
"public void setResult (String Result);",
"public void reportSuccess() {\n Crashlytics.logBreadcrumb(\"MuunLockOverlay: reportSuccess\");\n\n pinInput.setSuccess();\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif(result.equals(\"1\")){\n\t\t\t\tReturnString=\"EndBusiness\";\n\t\t\t\tType2SettingPage.this.finish();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tToast.makeText(Type2SettingPage.this, result, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onSuccess(int arg0, Header[] arg1,\n\t\t\t\t\t\t\t\tbyte[] arg2) {\n\t\t\t\t\t\t\tif (arg0 == 200) {\n\t\t\t\t\t\t\t\tString str = new String(arg2);\n\t\t\t\t\t\t\t\tSystem.out.println(\"坐标提交接口返回 ---> \" + str);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"public void setMsgInterfaceResult(java.lang.String param) {\r\n localMsgInterfaceResultTracker = param != null;\r\n\r\n this.localMsgInterfaceResult = param;\r\n }",
"public void setSuccessCodes(final List<Integer> successCodes) {\n this.successCodes = successCodes;\n }"
] | [
"0.55367625",
"0.5467568",
"0.5463341",
"0.5463341",
"0.5435167",
"0.5433581",
"0.5376272",
"0.53135455",
"0.5294975",
"0.5294153",
"0.51992315",
"0.51519287",
"0.51519287",
"0.51519287",
"0.5107603",
"0.5100831",
"0.5077462",
"0.50328857",
"0.50298125",
"0.50190735",
"0.4966674",
"0.49495217",
"0.4923915",
"0.49168274",
"0.49162596",
"0.49093425",
"0.49060374",
"0.4901205",
"0.48697227",
"0.48626098",
"0.4842678",
"0.4842678",
"0.4842678",
"0.4820167",
"0.4820167",
"0.47906741",
"0.47755855",
"0.4772931",
"0.47722104",
"0.47474852",
"0.47322965",
"0.47310448",
"0.47004378",
"0.46910518",
"0.46850574",
"0.46820214",
"0.46759918",
"0.46759918",
"0.46759918",
"0.46759918",
"0.46673483",
"0.46582296",
"0.46333304",
"0.46118975",
"0.46040466",
"0.45888913",
"0.4583278",
"0.45813093",
"0.45799932",
"0.45791966",
"0.45668483",
"0.4561539",
"0.454399",
"0.45422286",
"0.45422286",
"0.4539122",
"0.45362264",
"0.45328748",
"0.45176435",
"0.45170748",
"0.45166057",
"0.45149633",
"0.45125246",
"0.45120192",
"0.4511582",
"0.4510944",
"0.4501017",
"0.44997475",
"0.44976982",
"0.44961372",
"0.4495763",
"0.4495207",
"0.44933575",
"0.44755226",
"0.44719952",
"0.4456473",
"0.44535482",
"0.4449204",
"0.4448787",
"0.44447997",
"0.44447997",
"0.4443165",
"0.4427854",
"0.44243768",
"0.44225764",
"0.4421715",
"0.44134808",
"0.44028932",
"0.43927312",
"0.4388867"
] | 0.6340251 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.COUNT | public Integer getCount() {
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int logCount() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT COUNT(*) FROM log;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in logCount()\");\n }\n return count;\n }",
"@Transactional\r\n\tpublic Integer countBudgetAccounts() {\r\n\t\treturn ((Long) budgetAccountDAO.createQuerySingleResult(\"select count(o) from BudgetAccount o\").getSingleResult()).intValue();\r\n\t}",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"public Integer getBranchesCount() throws SQLException {\n\t\treturn getCount(\"select count(*) as COUNT from tbl_library_branch;\", null);\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }",
"@GetMapping(path = \"/count\")\r\n\tpublic ResponseEntity<Long> getCount() {\r\n\t\tLong count = this.bl.getCount();\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(count);\r\n\t}",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}",
"@Override\n\tpublic Integer findMaxCount() {\n\t\tString maxCountSql = \"select count(noticeid) from notice where status=1\";\n\t\treturn (Integer) this.jdbcTemplate.queryForObject(maxCountSql, Integer.class);\n\t}",
"@Override\n\tpublic int queryCount() {\n\t\treturn (int) tBasUnitClassRepository.count();\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public java.math.BigInteger getCount()\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(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}",
"Long getAllCount();",
"@Override\n\tpublic String countByCondition(Familybranch con) throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}",
"public int getMembreCount() {\n try {\n// CriteriaQuery cq = entManager.getCriteriaBuilder().createQuery();\n// Root<Membre> rt = cq.from(Membre.class);\n// cq.select(entManager.getCriteriaBuilder().count(rt));\n// Query q = entManager.createQuery(cq);\n// return ((Long) q.getSingleResult()).intValue();\n \n Query q = entManager.createNamedQuery(\"Membre.findAll\");\n return q.getResultList().size();\n \n } finally {\n// em.close();\n }\n }",
"public int resultCount(){\n\n int c = 0;\n\n try{\n if(res.last()){\n c = res.getRow();\n res.beforeFirst();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return c;\n }",
"public Long getMainCount() {\n\t\tString sql_select_count=\"select count(main_id) as count from my_main\";\n\t\treturn (Long) jdbc.queryForMap(sql_select_count).get(\"count\");//Map的get方法\n\t}",
"@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }",
"@Override\n\tpublic int selectCount(Object ob) {\n\t\t\n\t\tint res = session.selectOne(\"party.party_list_total_count\",ob);\n\t\t\n\t\treturn res;\n\t}",
"@Override\n\tpublic Integer findCount() {\n\t\tInteger total;\n\t\tString hql=\"from Commodity\";\n\t\tList<Commodity> commoditylist=(List<Commodity>) this.getHibernateTemplate().find(hql, null);\n\t\ttotal=commoditylist.size();\n\t\treturn total;\n\t}",
"public Long getCount() {\r\n return count;\r\n }",
"public int countByExample(ScaleDefExample example) {\r\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"scale_def.ibatorgenerated_countByExample\", example);\r\n return count.intValue();\r\n }",
"public Long getCount() {\n return count;\n }",
"@Override\n\tpublic Integer getRoleCount() {\n\t\tfinal String sql =\"select count(id) from role\";\n\t\treturn jdbcTemplate.queryForObject(sql, Integer.class);\n\t}",
"@Override\r\n\tpublic int list_count(SearchCriteria scri) throws Exception {\n\t\treturn sql.selectOne(\"cms_board.list_count\", scri);\r\n\t}",
"public final String getCount() {\n return String.valueOf(count);\n }",
"@Override\n\tpublic int chungchungcount() throws Exception {\n\t\treturn dao.chungchungcount();\n\t}",
"public Integer getAllCount() {\n\t\tString sql=\"select count(*) from statistics\";\n\t\tint count = (int)getCount(sql);\n\t\treturn count;\n\t}",
"public int DetailComentListCount(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailComentListCount\",param);\r\n\t}",
"@Override\n\t//获得当前数据库的总行数\n\tpublic int totalColum() {\n\t\tConnection connection = null;\n\t\tint total_count = 0;\n\t\tPreparedStatement pStatement = null;\n\t\tResultSet rSet = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tpStatement = connection.prepareStatement(COUNT);\n\t\t\trSet = pStatement.executeQuery();\n\t\t\twhile (rSet.next()) {\n\t\t\t\ttotal_count = rSet.getInt(\"totalCount\");\n\t\t\t}\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}finally{\n\t\t\tMySQLConnectUtil.closeResultset(rSet);\n\t\t\tMySQLConnectUtil.closePreparestatement(pStatement);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn total_count;\n\t}",
"public int countTotal() throws SQLException {\n\n StringBuffer sqlBuffer = new StringBuffer();\n sqlBuffer.append(\" SELECT \");\n sqlBuffer.append(\" COUNT(*) \");\n sqlBuffer.append(\" FROM \");\n sqlBuffer.append(\"npo_data_prevent\");\n\n this.setSql(sqlBuffer.toString());\n\n PreparedStatement ps = null;\n ResultSet rs = null;\n int result;\n try {\n Connection c = this.getConnection();\n ps = c.prepareStatement(this.getSql());\n\n rs = ps.executeQuery();\n rs.next();\n result = rs.getInt(1);\n\n } finally {\n close(ps, rs);\n }\n\n return result;\n }",
"public Long getCount() {\n return this.Count;\n }",
"public int count(String hql) {\n int count = 0;\n\n Object result = this.getCurrentSession().createQuery(hql).uniqueResult();\n if (result != null && result instanceof Long) {\n count = ((Long) result).intValue();\n } else {\n throw new BusinessException(\"Get count is fail.\");\n }\n\n return count;\n }",
"@Override\n\tpublic int periodAllcount() throws Exception {\n\t\treturn dao.periodAllcount();\n\t}",
"public int countByExample(TbAdminMenuExample example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"tb_admin_menu.ibatorgenerated_countByExample\", example);\n return count.intValue();\n }",
"public int toCount()\n {\n int count=jt.getRowCount();\n return count;\n }",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public String get_count() {\n\t\treturn count;\n\t}",
"public int count(String condition) {\r\n Session session = getSession();\r\n Long count = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \" + condition).uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"@GetMapping(value = \"/bank2/persisted-count\")\n public String getBank2PCount() {\n return ksqlService.retrieveBank2PersistedCount();\n }",
"@Override\n\tpublic int selectCount(Object ob) {\n\n\t\tint res = session.selectOne(\"play.all_count\", ob);\n\n\t\treturn res;\n\t}",
"@Override\n public int findTotal(){\n try {\n return runner.query(con.getThreadConnection(),\"select count(*) from user\",new BeanHandler<Integer>(Integer.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"public Flowable<Integer> counts() {\n return createFlowable(b.updateBuilder, db) //\n .flatMap(Tx.flattenToValuesOnly());\n }",
"public int getSoupKitchenCount() {\n\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT COUNT(*) FROM cs6400_sp17_team073.Soup_kitchen\";\n\n Integer skcount = jdbc.queryForObject(sql,params,Integer.class);\n\n return skcount;\n }",
"public int getCountCol() {\n\treturn countCol;\n}",
"public int getHistoryCSCount() {\n\n // 1. build the query\n String countQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n // 2. execute the query to search whether the record exists\n Cursor cursor = db.rawQuery(countQuery, null);\n\n // 2. get the count\n int count = cursor.getCount();\n\n cursor.close();\n return count;\n }",
"@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CREDITAPPBANKREFERENCE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"@Override\n\tpublic int countCompany() {\n\t\treturn comShortMapper.selectCountShort()+elegantMapper.selectCountEle()+honorMapper.selectCountHonor();\n\t}",
"public int countOrders(){\n int count = 0;\n sql = \"SELECT * FROM Order\";\n ResultSet rs = db.SelectDB(sql);\n try{\n while(rs.next()){\n count++;\n }\n }\n catch(SQLException e){\n System.out.println(\"Crash at countOrders method (for Order). \" + e);\n }\n return count;\n }",
"public int countByExample(SysRoleMenuExample example) throws SQLException {\r\n Integer count = (Integer) sqlMapClient\r\n .queryForObject(\"SYS_ROLE_MENU.ibatorgenerated_countByExample\", example);\r\n return count;\r\n }",
"public static int getNumberOfRows() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt3 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt3.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLACCOUNT\"); // SQL Count query\r\n\t\trownumber.next();\r\n\r\n\t\tint rnum = rownumber.getInt(1);\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return value\r\n\r\n\t}",
"public int getOrderListCount() {\n\t\tConnection con = getConnection();\n\t\tOrderDAO orderDAO = OrderDAO.getInstance();\n\t\torderDAO.setConnection(con);\n\t\t\n\t\tint orderListCount=orderDAO.selectOrderListCount();\n\t\t\n\t\tclose(con);\n\t\t\n\t\treturn orderListCount;\n\t}",
"public String getBulletinCount(String companyId) {\n\t\tlong count = 0;\n\t\tSession session = getSession();\n\t\tString hql = \"select count(id) from AuctionBulletin a \" +\n\t\t\t\"where a.deleteFlag=0 and a.companyId=:companyId \";\n\t\tcount = Long.parseLong(session.createQuery(hql).setString(\"companyId\", companyId)\n\t\t\t\t.uniqueResult().toString());\n\t\tsession.close();\n\t\treturn \"\" + count;\n\t}",
"public String fn_searchResultcount() throws Exception {\r\n\t\ttry {\r\n\r\n\t\t\tString count =BreadCrum.getText();\r\n\t\t\tif(count != null) \r\n\t\t\r\n\t\t\treport.logPortalExtentreport(Driver.getDriver(), logger, \"PASS\", \"Expectd :search result should be displayed successfully Actual :search result displayed successfully and values is \"+count, \"search result screen\");\r\n\t\t\treturn count;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treport.logPortalExtentreport(Driver.getDriver(), logger, \"FAIL\", \"search result not displayed \" , \"seach result screen\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public int countByExample(ActorDtoExample example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"HR_ACTOR.ibatorgenerated_countByExample\", example);\n return count;\n }",
"@Override\r\n\tpublic String count(String sql) {\n\t\treturn null;\r\n\t}",
"public int countArticle(){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n Cursor Count= sqLiteDatabase.rawQuery(\"select count(*) from\"+ ConfigDAO.TABLE_AISLE, null);\n Count.moveToFirst();\n int count= Count.getInt(0);\n Count.close();\n return count;\n }",
"public int countByExample(ProfesorCriteria example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"tbl_profesor.ibatorgenerated_countByExample\", example);\n return count;\n }",
"public Integer getCount() {\n return this.count;\n }",
"long getDbCount();",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"@Override\n\tpublic int getNoofProduct() {\n\t\tString sql=\"SELECT COUNT(product_product_id) FROM supplier_product\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_DMHISTORYGOODS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Query(\"SELECT count(*) FROM DemoEntity d\")\r\n\tpublic Integer countDemo();",
"Long recordCount();",
"default long count() {\n\t\treturn select(Wildcard.count).fetchCount();\n\t}",
"public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }",
"public Integer getCount() {\n return count;\n }",
"@GetMapping(value = \"/bank1/persisted-count\")\n public String getBank1PCount() {\n return ksqlService.retrieveBank1PersistedCount();\n }",
"@Override\n\tpublic Integer getStatisticCount(String customerName, String idcard, String sbcard, String companyName) {\n\t\treturn dao.getStatisticCount(customerName, idcard, sbcard,companyName);\n\t}",
"int getAccountCount(final long accountID);",
"public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }",
"@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }",
"public int countByExample(TbLotteryNumExample example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"tb_lottery_num.ibatorgenerated_countByExample\", example);\n return count.intValue();\n }",
"@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM supplier\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"public long getCount() {\n return count.get();\n }",
"public static int getCountLoanBook() {\r\n\r\n\t\tint count = 0;\r\n\t\ttry (Connection connection = Connect.getConnection()) {\r\n\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t.prepareCall(\"{CALL get_super_admin_loan_book_count()}\");\r\n\t\t\tResultSet resultSet = prepareCall.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tcount = resultSet.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"@Query(value = \"SELECT COUNT(*) FROM coupons\", nativeQuery = true)\n int countAllCoupons();",
"@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n\tpublic Long count(Map<String, Object> params) {\n\t\tString hql=\"select count(*) from \"+tablename+\" t\";\n\t\treturn SApplicationcategorydao.count(hql, params);\n\t}",
"long countNumberOfProductsInDatabase();",
"public com.a9.spec.opensearch.x11.QueryType.Count xgetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Count target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().find_attribute_user(COUNT$8);\n return target;\n }\n }",
"@Override\r\n\tpublic Long getCount() throws SQLException {\n\t\treturn null;\r\n\t}",
"public long getCount() {\r\n return count;\r\n }"
] | [
"0.62090373",
"0.6098984",
"0.6076184",
"0.60108465",
"0.59757954",
"0.59757954",
"0.59517694",
"0.5942165",
"0.59402937",
"0.5896998",
"0.5888558",
"0.58605605",
"0.5840091",
"0.5810803",
"0.5803555",
"0.5779498",
"0.57214975",
"0.5693065",
"0.56906915",
"0.5677764",
"0.5672578",
"0.5655655",
"0.56457984",
"0.563959",
"0.5619978",
"0.5613135",
"0.56081444",
"0.55845815",
"0.5581141",
"0.55788124",
"0.5571676",
"0.5556927",
"0.5554996",
"0.5545303",
"0.55363095",
"0.55202556",
"0.5516848",
"0.55141574",
"0.5506958",
"0.54882646",
"0.54843324",
"0.5483749",
"0.54828864",
"0.54684156",
"0.54448223",
"0.54291195",
"0.542488",
"0.54233235",
"0.5419319",
"0.5414674",
"0.54098684",
"0.5394822",
"0.53797334",
"0.5378815",
"0.5371139",
"0.5370743",
"0.5369064",
"0.53556204",
"0.5347092",
"0.53436077",
"0.5341518",
"0.53367704",
"0.53361225",
"0.5320627",
"0.5314047",
"0.53129166",
"0.53112304",
"0.53101164",
"0.53044605",
"0.53036994",
"0.52945876",
"0.52945876",
"0.5287648",
"0.5284622",
"0.5280927",
"0.5278823",
"0.5277413",
"0.52758175",
"0.52718437",
"0.5266511",
"0.5263789",
"0.525999",
"0.52570367",
"0.5252849",
"0.5252495",
"0.52507335",
"0.5238143",
"0.5237343",
"0.5235413",
"0.5234681",
"0.5234576",
"0.5232684",
"0.52311945",
"0.52296245",
"0.52230984"
] | 0.52711654 | 82 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.COUNT | public void setCount(Integer count) {
this.count = count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCount(java.math.BigInteger count)\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(COUNT$8);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COUNT$8);\n }\n target.setBigIntegerValue(count);\n }\n }",
"public void setCount(Long count) {\r\n this.count = count;\r\n }",
"public void setCount(Long Count) {\n this.Count = Count;\n }",
"public void setCount(Integer count) {\r\n this.count = count;\r\n }",
"public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}",
"public void setCount(int count){\n\t\tthis.count = count;\n\t}",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int count) {\r\n this.count = count;\r\n }",
"public void setCount(int count)\r\n {\r\n this.count = count;\r\n }",
"public void setCount(int count)\n {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count)\r\n\t{\r\n\t}",
"public void setCount(int count) {\n\t\tthis.count = count;\n\t}",
"public void setCount(int count) {\n\t\t\tthis.count = count;\n\t\t}",
"public void setCount(final int count)\n {\n this.count = count;\n }",
"public void xsetCount(com.a9.spec.opensearch.x11.QueryType.Count count)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Count target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().add_attribute_user(COUNT$8);\n }\n target.set(count);\n }\n }",
"@Override\n\tpublic String countByCondition(Familybranch con) throws Exception {\n\t\treturn null;\n\t}",
"public void setCount(final int count) {\n this.count = count;\n }",
"public void set_count(int c);",
"public static void setCount(int aCount) {\n count = aCount;\n }",
"@Override\n\tpublic int queryCount() {\n\t\treturn (int) tBasUnitClassRepository.count();\n\t}",
"public void setCount(final int count) {\n\t\t_count = count;\n\t}",
"public void setCounts(Integer counts) {\n this.counts = counts;\n }",
"@Transactional\r\n\tpublic Integer countBudgetAccounts() {\r\n\t\treturn ((Long) budgetAccountDAO.createQuerySingleResult(\"select count(o) from BudgetAccount o\").getSingleResult()).intValue();\r\n\t}",
"public int logCount() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT COUNT(*) FROM log;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in logCount()\");\n }\n return count;\n }",
"public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}",
"public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }",
"public Builder setCount(long value) {\n \n count_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic int selectCount(Object ob) {\n\t\t\n\t\tint res = session.selectOne(\"party.party_list_total_count\",ob);\n\t\t\n\t\treturn res;\n\t}",
"@Override\n\tpublic int periodAllcount() throws Exception {\n\t\treturn dao.periodAllcount();\n\t}",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}",
"public void setCount(final int c) {\n\t\tcount = c;\n\t}",
"public int DetailComentListCount(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailComentListCount\",param);\r\n\t}",
"@Override\n\tpublic int chungchungcount() throws Exception {\n\t\treturn dao.chungchungcount();\n\t}",
"@GetMapping(path = \"/count\")\r\n\tpublic ResponseEntity<Long> getCount() {\r\n\t\tLong count = this.bl.getCount();\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(count);\r\n\t}",
"@Override\r\n\tpublic int list_count(SearchCriteria scri) throws Exception {\n\t\treturn sql.selectOne(\"cms_board.list_count\", scri);\r\n\t}",
"@Override\n\tpublic int countCompany() {\n\t\treturn comShortMapper.selectCountShort()+elegantMapper.selectCountEle()+honorMapper.selectCountHonor();\n\t}",
"public Builder count(Integer count) {\n\t\t\tthis.count = count;\n\t\t\treturn this;\n\t\t}",
"public void setSelectCount() {\r\n\t this.setSelect(\"select count(*)\");\r\n\t this.setOrderAndLimit(\"\");\r\n\t this.setGroupby(\"\");\r\n\t}",
"public Integer getBranchesCount() throws SQLException {\n\t\treturn getCount(\"select count(*) as COUNT from tbl_library_branch;\", null);\n\t}",
"public void updateBallCount() {\n mBallCount = (int) NetworkTableInstance.getDefault().getTable(\"SmartDashboard\").getEntry(\"Driver/Set Ball Count\")\n .getDouble(3);\n }",
"@Override\n\tpublic int seoulcount() throws Exception {\n\t\treturn dao.seoulcount();\n\t}",
"protected void addCount(List<Statistic> stats, NxQueryBuilder qb) {\n EsResult esResult = Framework.getService(ElasticSearchService.class).queryAndAggregate(qb);\n stats.add(Statistic.of(STATS_COUNT, STATS_COUNT, STATS_COUNT, null,\n esResult.getElasticsearchResponse().getHits().getTotalHits().value));\n }",
"public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}",
"public Flowable<Integer> counts() {\n return createFlowable(b.updateBuilder, db) //\n .flatMap(Tx.flattenToValuesOnly());\n }",
"Long getAllCount();",
"public void setUpperCaseLettersCount(long value) {\n this.upperCaseLettersCount = value;\n }",
"@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public void setRecordCount(Integer value) {\n this.recordCount = value;\n }",
"@Override\n\tpublic Integer findMaxCount() {\n\t\tString maxCountSql = \"select count(noticeid) from notice where status=1\";\n\t\treturn (Integer) this.jdbcTemplate.queryForObject(maxCountSql, Integer.class);\n\t}",
"public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}",
"public int countByExample(TbAdminMenuExample example) {\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"tb_admin_menu.ibatorgenerated_countByExample\", example);\n return count.intValue();\n }",
"@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public Input setCount(int count) {\n definition.putNumber(COUNT, count);\n return this;\n }",
"public void addToRowCounts(entity.LoadRowCount element);",
"public long countWithCondition(EvaluetingListDO evaluetingList) throws DataAccessException;",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"public java.math.BigInteger getCount()\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(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public void setTotalCount(Long totalCount) {\r\n this.totalCount = totalCount;\r\n }",
"protected void setObjectCount(long objectCount) {\r\n TaskTimeElementDB.objectCount = objectCount;\r\n }",
"public Long getCount() {\r\n return count;\r\n }",
"public void setRowCounts(entity.LoadRowCount[] value);",
"@Override\n public long count() {\n return super.doCountAll();\n }",
"@Override\n public long count() {\n return super.doCountAll();\n }",
"@Override\n public long count() {\n return super.doCountAll();\n }",
"public long countB() {\n return this.countB;\n }",
"public void setRecordCount(int value) {\n this.recordCount = value;\n }",
"@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}",
"public Long getCount() {\n return count;\n }",
"public GetACDHistoryRequest setCount(long d) {\n this.count = Long.valueOf(d);\n return this;\n }",
"public void setActiveUserCount(int value) {\n this.activeUserCount = value;\n }",
"@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CREDITAPPBANKREFERENCE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Scheduled(cron = \"*/2 * * * * ?\")\n public void dataCount(){\n System.out.println(\"数据统计第 \" + count++ + \" 次\");\n }",
"public int countByExample(ScaleDefExample example) {\r\n Integer count = (Integer) getSqlMapClientTemplate().queryForObject(\"scale_def.ibatorgenerated_countByExample\", example);\r\n return count.intValue();\r\n }",
"public void executeCountSql() throws SQLException {\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\t\t\t\n\t\t\tSqlStatement countSqlStatement = getCountSqlStatement();\n\t\t\t\n\t\t\tlog.debug(\"Counting database query: \" + countSqlStatement.getQuery());\n\t\t\tlog.debug(\"Counting statement parameters: \" + countSqlStatement.getParams());\n\t\t\t\n\t\t\tstmt = this.con.prepareStatement(countSqlStatement.getQuery());\n\t\t\tcountSqlStatement.propagateStatementWithParams(stmt);\n\t\t\t\n\t\t\trs = stmt.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tthis.totalCount = new Long(rs.getLong(1));\n\t\t\t}\n\t\t} finally {\n\t\t\tDbHelper.closeDbObjects(null, stmt, rs);\n\t\t}\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\n public Map<EFruits, Integer> count(Branch branch) {\n bananaNumber = super.countBananas(branch);\n super.fruitMap.put(EFruits.BANANAS, bananaNumber);\n return super.fruitMap;\n }",
"@Override\n\tpublic int countBycreateBy(long createBy) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_CREATEBY;\n\n\t\tObject[] finderArgs = new Object[] { createBy };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_EMPLOYEECOMPLAINT_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_CREATEBY_CREATEBY_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(createBy);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n\tpublic int selectCount(Object ob) {\n\n\t\tint res = session.selectOne(\"play.all_count\", ob);\n\n\t\treturn res;\n\t}",
"public void addCount()\n {\n \tcount++;\n }",
"void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }",
"public void counter(Object filterValue ) throws SQLException, NamingException, IOException {\n\t try {\t\n\t \tContext initContext = new InitialContext(); \n\t \t\tDataSource ds = (DataSource) initContext.lookup(JNDI);\n\t\n\t \t\tcon = ds.getConnection();\n\t \t\t\n\t \t\t//Reconoce la base de datos de conección para ejecutar el query correspondiente a cada uno\n\t \t\tDatabaseMetaData databaseMetaData = con.getMetaData();\n\t \t\tproductName = databaseMetaData.getDatabaseProductName();//Identifica la base de datos de conección\n\t \t\t\n\t \t\tString[] veccodcia = pcodcia.split(\"\\\\ - \", -1);\n\t\n\t \t\tString query = null;\n\t \t\t\n\t \t\tswitch ( productName ) {\n\t case \"Oracle\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"') from dual\";\n\t break;\n\t case \"PostgreSQL\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"')\";\n\t break;\n\t \t\t}\n\n\t \t\t \n\t\n\t \n\t pstmt = con.prepareStatement(query);\n\t //System.out.println(query);\n\t\n\t r = pstmt.executeQuery();\n\t \n\t \n\t while (r.next()){\n\t \trows = r.getInt(1);\n\t }\n\t } catch (SQLException e){\n\t e.printStackTrace(); \n\t }\n\t //Cierra las conecciones\n\t pstmt.close();\n\t con.close();\n\t r.close();\n\t\n\t \t}",
"@Override\n\tpublic String countByCondition(Familynames con) throws Exception {\n\t\treturn null;\n\t}",
"public String get_count() {\n\t\treturn count;\n\t}"
] | [
"0.58233917",
"0.5686797",
"0.5644424",
"0.56405354",
"0.5616211",
"0.55226123",
"0.5514501",
"0.5514501",
"0.5514501",
"0.5488397",
"0.548626",
"0.54842657",
"0.54633826",
"0.54633826",
"0.54633826",
"0.54633826",
"0.54633826",
"0.5448999",
"0.5410986",
"0.5395628",
"0.53467697",
"0.5332697",
"0.5297987",
"0.52889585",
"0.52539825",
"0.5242684",
"0.5221719",
"0.5192432",
"0.51162606",
"0.50910264",
"0.5077351",
"0.5050553",
"0.5029113",
"0.5019844",
"0.50197184",
"0.5017766",
"0.50119644",
"0.5007684",
"0.499719",
"0.4996619",
"0.49918565",
"0.49724957",
"0.4972386",
"0.49634185",
"0.49622026",
"0.49529463",
"0.49497065",
"0.4943639",
"0.49353495",
"0.49313515",
"0.49203208",
"0.49178964",
"0.49122357",
"0.49070945",
"0.4901726",
"0.4890797",
"0.48798776",
"0.48706064",
"0.48700118",
"0.4865602",
"0.4861472",
"0.48576677",
"0.48537973",
"0.48482442",
"0.4835421",
"0.48239732",
"0.48203084",
"0.4819827",
"0.48177338",
"0.481485",
"0.48047346",
"0.48004958",
"0.47991335",
"0.47991335",
"0.47991335",
"0.47962084",
"0.47942013",
"0.47849172",
"0.47807804",
"0.4780548",
"0.47685355",
"0.47642568",
"0.47640187",
"0.47600168",
"0.47586244",
"0.47558436",
"0.47558436",
"0.47474754",
"0.47465232",
"0.47458017",
"0.47323906",
"0.47317925",
"0.4720889",
"0.47112185",
"0.47088596"
] | 0.5624611 | 9 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.RECDATE | public Date getRecdate() {
return recdate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"public StrColumn getPostRelRecvdCoordDate() {\n return delegate.getColumn(\"post_rel_recvd_coord_date\", DelegatingStrColumn::new);\n }",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public BigDecimal getHistoryRebate() {\n return historyRebate;\n }",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}",
"public StrColumn getDateRevised() {\n return delegate.getColumn(\"date_revised\", DelegatingStrColumn::new);\n }",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"public java.sql.Date getARRIVAL_AT_LOC_DATE()\n {\n \n return __ARRIVAL_AT_LOC_DATE;\n }",
"public java.lang.String getFechaDeRecibido() {\n return fechaDeRecibido;\n }",
"public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }",
"public static String getBillDueDate(String account){\n return \"select cb_duedate from current_bills where cb_account = '\"+account+\"'\";\n }",
"public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public StrColumn getAuthReqRelDate() {\n return delegate.getColumn(\"auth_req_rel_date\", DelegatingStrColumn::new);\n }",
"public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}",
"public StrColumn getDateOfMrRelease() {\n return delegate.getColumn(\"date_of_mr_release\", DelegatingStrColumn::new);\n }",
"public String bornDate() {\n return getString(FhirPropertyNames.PROPERTY_BORN_DATE);\n }",
"public java.sql.Timestamp getRegdate()\n {\n return regdate; \n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public void getREFDT()//get reference date\n\t{\n\t\ttry\n\t\t{\n\t\t\tDate L_strTEMP=null;\n\t\t\tM_strSQLQRY = \"Select CMT_CCSVL,CMT_CHP01,CMT_CHP02 from CO_CDTRN where CMT_CGMTP='S\"+cl_dat.M_strCMPCD_pbst+\"' and CMT_CGSTP = 'FGXXREF' and CMT_CODCD='DOCDT'\";\n\t\t\tResultSet L_rstRSSET = cl_dat.exeSQLQRY2(M_strSQLQRY);\n\t\t\tif(L_rstRSSET != null && L_rstRSSET.next())\n\t\t\t{\n\t\t\t\tstrREFDT = L_rstRSSET.getString(\"CMT_CCSVL\").trim();\n\t\t\t\tL_rstRSSET.close();\n\t\t\t\tM_calLOCAL.setTime(M_fmtLCDAT.parse(strREFDT)); // Convert Into Local Date Format\n\t\t\t\tM_calLOCAL.add(Calendar.DATE,+1); // Increase Date from +1 with Locked Date\n\t\t\t\tstrREFDT = M_fmtLCDAT.format(M_calLOCAL.getTime()); // Assign Date to Veriable \n\t\t\t\t//System.out.println(\"REFDT = \"+strREFDT);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"getREFDT\");\n\t\t}\n\t}",
"public void setHistoryRebate(BigDecimal historyRebate) {\n this.historyRebate = historyRebate;\n }",
"public String getRebillCreationDate()\n\t{\n\t\tif(response.containsKey(\"creation_date\")) {\n\t\t\treturn response.get(\"creation_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Recharge findLastRecharge(ADOrg aDOrg, Vale vale)\t{\n\t\tString comandoSQL = \"\";\n\t\tPreparedStatement pst = null;\n\t\tResultSet rs = null;\n\t\tRecharge recharge = null;\n\t\tVale valeAux = null;\n\t\tADOrg adOrgAux = null;\n\t\t\n\t\tcomandoSQL = \"\"\n\t\t\t\t+ \"SELECT \"\n\t\t\t\t+ \"v.ad_org_id, \"\n\t\t\t\t+ \"o.matriculation, \"\n\t\t\t\t+ \"r.vale_id, \"\n\t\t\t\t+ \"v.matricula, \"\n\t\t\t\t+ \"r.id AS recharge_id, \"\n\t\t\t\t+ \"r.order_number, \"\n\t\t\t\t+ \"r.value, \"\n\t\t\t\t+ \"r.order_date, \"\n\t\t\t\t+ \"r.order_category, \"\n\t\t\t\t+ \"r.recharge_date, \"\n\t\t\t\t+ \"r.car_line_way \"\t\t\t\t\n\t\t\t\t+ \"FROM vale v \"\n\t\t\t\t+ \"LEFT JOIN AD_ORG o ON (v.ad_org_id = o.ad_org_id) \"\n\t\t\t\t+ \"RIGHT JOIN Recharge r ON (v.id = r.vale_id) \"\n\t\t\t\t+ \"WHERE 1=1 \"\n\t\t\t\t+ \"AND (o.matriculation like ?) \"\n\t\t\t\t+ \"AND (v.matricula like ?) \"\n//\t\t\t\t\t+ \"AND (r.order_category like ?) \"\n\t\t\t\t+ \"ORDER BY recharge_date DESC \"\n\t\t\t\t+ \"LIMIT 1 \"\n\t\t\t\t+ \";\";\n\t\t\n\t\ttry\t{\n\t\t\tpst = conexao.prepareStatement(comandoSQL);\n\t\t\tpst.setString(1, aDOrg.getMatriculation());\n\t\t\tpst.setString(2, vale.getMatricula());\n//\t\t\t\tpst.setString(3, vale.getTipoVale());\n\t\t\trs = pst.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\trecharge = new Recharge();\n\t\t\t\trecharge.setId(rs.getLong(\"recharge_id\"));\n\t\t\t\trecharge.setOrderNumber(rs.getBigDecimal(\"order_number\"));\n\t\t\t\trecharge.setValue(rs.getBigDecimal(\"value\"));\n\t\t\t\trecharge.setOrderDate(rs.getTimestamp(\"order_date\"));\n\t\t\t\trecharge.setOrderCategory(rs.getString(\"order_category\"));\n\t\t\t\trecharge.setRechargeDate(rs.getTimestamp(\"recharge_date\"));\n\t\t\t\trecharge.setCarLineWay(rs.getString(\"car_line_way\"));\n\t\t\t\t\n\t\t\t\trecharge.setValeId(rs.getLong(\"vale_id\"));\n\t\t\t\tvaleAux = new Vale();\n\t\t\t\tvaleAux.setId(rs.getLong(\"vale_id\"));\n\t\t\t\tvaleAux.setMatricula(rs.getString(\"matricula\"));\n\t\t\t\t\n\t\t\t\tvaleAux.setAdOrgId(rs.getLong(\"ad_org_id\"));\n\t\t\t\tadOrgAux = new ADOrg();\n\t\t\t\tadOrgAux.setAdOrgId(rs.getLong(\"ad_org_id\"));\n\t\t\t\tadOrgAux.setMatriculation(rs.getString(\"matriculation\"));\n\t\t\t\t\n\t\t\t\tvaleAux.setAdOrg(adOrgAux);\n\t\t\t\trecharge.setVale(valeAux);\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t\treturn recharge;\n\t\t}catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(nomeDao+\" erro!\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public Date getaBrithdate() {\n return aBrithdate;\n }",
"public java.sql.Date getChargedate() {\n\treturn chargedate;\n}",
"public Date getBDate(){\n \treturn bDate;\n }",
"public java.sql.Date getDatebldbeg() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"datebldbeg\")));\n }",
"public GregorianCalendar getReturnDate(){\n\n\t\treturn ReturnDate;\n\t}",
"private String ObtenerFechaActual() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\n Calendar calendar = GregorianCalendar.getInstance();\n return String.valueOf(simpleDateFormat.format(calendar.getTime()));\n }",
"@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}",
"public String getBirthDate()\r\n\t{\r\n\t\treturn (bDate.MONTH + 1) + \"/\" + bDate.DATE + \"/\" + bDate.YEAR;\r\n\t}",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"@Override\n\tpublic FdBusinessDate getCommonFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"00\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"@Override\n\tpublic FdBusinessDate getCurrencyFdBusinessDate() {\n map.put(\"busiTypeCode\",\"02\");\n map.put(\"subBusiType\",\"01\");\n\t\treturn mapper.selectByPK(map);\n\t}",
"public Date getRegistDt() {\n return registDt;\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public Date getDob() {\n return dob;\n }",
"public Date getActualRepayDate() {\n return actualRepayDate;\n }",
"public java.lang.String getDB_CR_IND() {\r\n return DB_CR_IND;\r\n }",
"public Date getRecordDate() {\n return recordDate;\n }",
"public Date getRatedOn() {\n\t\treturn this.ratedOn;\n\t}",
"public StrColumn getRecvdInitialDepositionDate() {\n return delegate.getColumn(\"recvd_initial_deposition_date\", DelegatingStrColumn::new);\n }",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"public String getRightRevision() {\n return rightRevision;\n }",
"public java.util.Date getRecCrtTs () {\n\t\treturn recCrtTs;\n\t}",
"private LocalDate get_DATE(int column) {\n // DATE column is always 10 chars long\n String dateString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 10, charset_[column - 1]).toString();\n return LocalDate.parse(dateString, DRDAConstants.DB2_DATE_FORMAT);\n// return DateTime.dateBytesToDate(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }",
"public String getRebillSchedExpr()\n\t{\n\t\tif(response.containsKey(\"sched_expr\")) {\n\t\t\treturn response.get(\"sched_expr\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }",
"public Date getFechaconsulta() {\r\n return fechaconsulta;\r\n }",
"public java.sql.Timestamp getLogdate()\n {\n return logdate; \n }",
"public Date getTrxDate() {\r\n return trxDate;\r\n }",
"public String getDateOfBirth(){\n return(this.dateOfBirth);\n }",
"@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}",
"public BigDecimal getRechargeFee() {\n return rechargeFee;\n }",
"public Date getResDate() {\r\n\t\treturn resDate;\r\n\t}",
"public Date getBorndate() {\r\n return borndate;\r\n }",
"public StrColumn getDateOfPDBRelease() {\n return delegate.getColumn(\"date_of_PDB_release\", DelegatingStrColumn::new);\n }",
"public Date getFechaActual() {\r\n\t\treturn controlador.getFechaActual();\r\n\t}",
"public java.util.Calendar getDArrDate() {\n return dArrDate;\n }",
"public Date getFinancialDocumentRevolvingFundDate() {\r\n return financialDocumentRevolvingFundDate;\r\n }",
"public abstract java.sql.Timestamp getFecha_fin();",
"@Override\n\tpublic Date getCompleteDate() {\n\t\treturn model.getCompleteDate();\n\t}",
"public Date getDateOfBirth() {\n return getDate(DATE_OF_BIRTH);\n }",
"public String getLastSynchronisationMoment() {\n\n String lastSynchronisationDate;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_LAST_SYNCHRONISATION_DATE_SQL)) {\n\n ResultSet resultSet = stmt.executeQuery();\n boolean resultStatus = resultSet.next();\n\n if (!resultStatus) {\n throw new LastSynchronisationDateNotFoundException();\n }\n\n lastSynchronisationDate = resultSet.getString(\"synchronisation_moment\");\n\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getLastSynchronisationMoment\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n\n return lastSynchronisationDate;\n\n }",
"public double getBrre() {\n return brre;\n }",
"public static String getBaseDate() {\n\t\tif (xml == null) return null;\n\t\treturn basedate;\n\t}",
"public Date getTimestamp() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_timestamp;\n\t}",
"public void setRecdate(java.sql.Timestamp newValue) {\n\tthis.recdate = newValue;\n}",
"public String getRequisitionCreateDate() {\r\n return requisitionCreateDate;\r\n }",
"java.lang.String getToDate();",
"@Override\n public String getDateofBirth() {\n return this.DateofBirth;\n\n }",
"public StrColumn getDateOfNmrDataRelease() {\n return delegate.getColumn(\"date_of_nmr_data_release\", DelegatingStrColumn::new);\n }",
"public java.util.Date getModifiedDate() {\n\t\treturn _dmHistoryMaritime.getModifiedDate();\n\t}",
"public Date getResModUpdate() {\n return resModUpdate;\n }",
"public static Date getLastTradeDate() {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select max(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt\");\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\tDate lastTradeDate = (Date) query.getSingleResult();\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn lastTradeDate;\r\n\t}",
"public RebateChanges[] getRebateChanges() {\n return this.rebateChanges;\n }",
"public Vector2d getRre() {\n return rre;\n }",
"public String getCompletedDate(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(COMPLETED_DATE_COLUMN);\n }",
"public StrColumn getDateHoldNmrData() {\n return delegate.getColumn(\"date_hold_nmr_data\", DelegatingStrColumn::new);\n }",
"public java.util.Date getActualDate () {\n\t\treturn actualDate;\n\t}",
"public StrColumn getPdbDateOfAuthorApproval() {\n return delegate.getColumn(\"pdb_date_of_author_approval\", DelegatingStrColumn::new);\n }",
"@Override\n\tpublic java.util.Date getDateOfBirth() {\n\t\treturn _candidate.getDateOfBirth();\n\t}",
"public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}",
"public Fecha getFechaRetiro(){\n return this.fechaRetiro;\n }",
"public String recomendar(){\r\n\t\treturn dbDataAccess.recomendar();\r\n\r\n\t}",
"public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }",
"@ManyToOne\r\n\t@JoinColumn(name=\"RLLB_ID\")\r\n\tpublic RelacionLaboral getRelacionLaboral() {\r\n\t\treturn this.relacionLaboral;\r\n\t}",
"public ReactorResult<java.lang.String> getAllRecordingDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), RECORDINGDATE, java.lang.String.class);\r\n\t}",
"public java.sql.Date getDatepr() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"datepr\")));\n }",
"public String getDate_of_Birth() {\n\t\treturn Date_of_Birth;\n\t}",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public java.lang.String getBrxm() {\r\n return brxm;\r\n }",
"public java.util.Date getPaymentreceiptdate () {\r\n\t\treturn paymentreceiptdate;\r\n\t}",
"public String getRebillAmount()\n\t{\n\t\tif(response.containsKey(\"reb_amount\")) {\n\t\t\treturn response.get(\"reb_amount\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static double getRendimento() {\r\n\t\treturn rendimento;\r\n\t}",
"public Date getEFF_DATE() {\r\n return EFF_DATE;\r\n }",
"public Date getRemittanceDay() {\n return remittanceDay;\n }",
"public java.util.Date getFechaRegistro() {\n\t\treturn this.fechaRegistro;\n\t}"
] | [
"0.57111895",
"0.5699555",
"0.55234164",
"0.5520095",
"0.5495629",
"0.5448873",
"0.5416439",
"0.5334976",
"0.5309133",
"0.5263343",
"0.5194551",
"0.51581705",
"0.5158019",
"0.51505804",
"0.5118906",
"0.51146764",
"0.5114353",
"0.51117766",
"0.5106379",
"0.5098618",
"0.5095724",
"0.50741315",
"0.5070367",
"0.50700164",
"0.5052167",
"0.50335544",
"0.50285244",
"0.49768913",
"0.49763033",
"0.49567628",
"0.49215075",
"0.49213144",
"0.49212915",
"0.49104282",
"0.49088028",
"0.4901352",
"0.4896747",
"0.48889017",
"0.48833084",
"0.4856745",
"0.4831145",
"0.48135594",
"0.47950152",
"0.47857997",
"0.47624293",
"0.47619653",
"0.47609243",
"0.475877",
"0.4757388",
"0.47549686",
"0.4747554",
"0.47443214",
"0.47402173",
"0.47369447",
"0.4732496",
"0.47221035",
"0.4719947",
"0.47145408",
"0.47134706",
"0.470908",
"0.47048137",
"0.470237",
"0.46982303",
"0.4687827",
"0.46872908",
"0.46808022",
"0.46802923",
"0.46757057",
"0.4672039",
"0.46680236",
"0.46645874",
"0.46611777",
"0.4657635",
"0.46508563",
"0.4644565",
"0.4640645",
"0.46391237",
"0.4638629",
"0.4636961",
"0.4630898",
"0.46254495",
"0.46246752",
"0.46233574",
"0.46201196",
"0.46127126",
"0.46123588",
"0.46116644",
"0.4604439",
"0.4604391",
"0.4601458",
"0.4600343",
"0.45963496",
"0.4596196",
"0.45958585",
"0.45943648",
"0.45932874",
"0.45894",
"0.45890495",
"0.4588699",
"0.4584918"
] | 0.58796966 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.RECDATE | public void setRecdate(Date recdate) {
this.recdate = recdate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHistoryRebate(BigDecimal historyRebate) {\n this.historyRebate = historyRebate;\n }",
"public void setRecdate(java.sql.Timestamp newValue) {\n\tthis.recdate = newValue;\n}",
"public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }",
"public void setRegdate(long newVal) {\n setRegdate(new java.sql.Timestamp(newVal));\n }",
"public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}",
"public Date getRecdate() {\n return recdate;\n }",
"public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }",
"public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}",
"void setDateRDV(Date d) {\n this.dateRDV = d;\n }",
"public void setRealActivate(Date realActivate) {\r\n this.realActivate = realActivate;\r\n }",
"public void setLastRenewedDate(Date lrd) { lastRenewedDate = lrd; }",
"public void setActualRepayDate(Date actualRepayDate) {\n this.actualRepayDate = actualRepayDate;\n }",
"public void setDatebldbeg( java.sql.Date newValue ) {\n __setCache(\"datebldbeg\", newValue);\n }",
"public void setRealEstablish(Date realEstablish) {\r\n this.realEstablish = realEstablish;\r\n }",
"public void setBirthDate(GregorianCalendar newBirthDate)\r\n\t{\r\n\t\tbDate = newBirthDate;\r\n\t}",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"public void setResDate(Date resDate) {\r\n\t\tthis.resDate = resDate;\r\n\t}",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"public void updateBDate() {\n bDate = new Date();\n }",
"@Test\n public void testClaimRecdDtCymd() {\n new ClaimFieldTester()\n .verifyDateStringFieldTransformedCorrectly(\n FissClaim.Builder::setRecdDtCymd,\n RdaFissClaim::getReceivedDate,\n RdaFissClaim.Fields.receivedDate);\n }",
"public abstract void setFecha_fin(java.sql.Timestamp newFecha_fin);",
"@Override\n public void actualizarPorEstadoYFechaMax(FecetProrrogaOrden prorroga, AgaceOrden orden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_UPDATE).append(getTableName());\n query.append(\" SET ID_ESTATUS = ? WHERE FECHA_CARGA = (SELECT MAX(FECHA_CARGA) FROM FECET_PRORROGA_ORDEN \");\n query.append(\" WHERE ID_ORDEN = ?)\");\n\n getJdbcTemplateBase().update(query.toString(), prorroga.getIdEstatus(), orden.getIdOrden());\n\n }",
"public void setChargedate(java.sql.Date newChargedate) {\n\tchargedate = newChargedate;\n}",
"public void setDateassemb( java.sql.Date newValue ) {\n __setCache(\"dateassemb\", newValue);\n }",
"public void setFechaDeRecibido(java.lang.String fechaDeRecibido) {\n this.fechaDeRecibido = fechaDeRecibido;\n }",
"public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t;\r\n\t}",
"public void setRevisedDate (java.util.Date revisedDate) {\n\t\tthis.revisedDate = revisedDate;\n\t}",
"public StrColumn getDateRevised() {\n return delegate.getColumn(\"date_revised\", DelegatingStrColumn::new);\n }",
"public void setRechargeFee(BigDecimal rechargeFee) {\n this.rechargeFee = rechargeFee;\n }",
"public void updateRebill(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"SET\";\n\t\tREBILL_ID = params.get(\"rebillID\");\n\t\tTEMPLATE_ID = params.get(\"templateID\");\n\t\tNEXT_DATE = params.get(\"nextDate\");\n\t\tREB_EXPR = params.get(\"expr\");\n\t\tREB_CYCLES = params.get(\"cycles\");\n\t\tREB_AMOUNT = params.get(\"rebillAmount\");\n\t\tNEXT_AMOUNT = params.get(\"nextAmount\");\n\t\tAPI = \"bp20rebadmin\";\n\t}",
"public void setDatepr( java.sql.Date newValue ) {\n __setCache(\"datepr\", newValue);\n }",
"public void setLogdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.logdate != null && (newVal.compareTo(this.logdate) == 0)) || \n (newVal == null && this.logdate == null && logdate_is_initialized)) {\n return; \n } \n this.logdate = newVal; \n logdate_is_modified = true; \n logdate_is_initialized = true; \n }",
"public LocalDate GetFechaActual() throws RemoteException;",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public void setaBrithdate(Date aBrithdate) {\n this.aBrithdate = aBrithdate;\n }",
"public java.sql.Date getARRIVAL_AT_LOC_DATE()\n {\n \n return __ARRIVAL_AT_LOC_DATE;\n }",
"public void getREFDT()//get reference date\n\t{\n\t\ttry\n\t\t{\n\t\t\tDate L_strTEMP=null;\n\t\t\tM_strSQLQRY = \"Select CMT_CCSVL,CMT_CHP01,CMT_CHP02 from CO_CDTRN where CMT_CGMTP='S\"+cl_dat.M_strCMPCD_pbst+\"' and CMT_CGSTP = 'FGXXREF' and CMT_CODCD='DOCDT'\";\n\t\t\tResultSet L_rstRSSET = cl_dat.exeSQLQRY2(M_strSQLQRY);\n\t\t\tif(L_rstRSSET != null && L_rstRSSET.next())\n\t\t\t{\n\t\t\t\tstrREFDT = L_rstRSSET.getString(\"CMT_CCSVL\").trim();\n\t\t\t\tL_rstRSSET.close();\n\t\t\t\tM_calLOCAL.setTime(M_fmtLCDAT.parse(strREFDT)); // Convert Into Local Date Format\n\t\t\t\tM_calLOCAL.add(Calendar.DATE,+1); // Increase Date from +1 with Locked Date\n\t\t\t\tstrREFDT = M_fmtLCDAT.format(M_calLOCAL.getTime()); // Assign Date to Veriable \n\t\t\t\t//System.out.println(\"REFDT = \"+strREFDT);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"getREFDT\");\n\t\t}\n\t}",
"public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }",
"public BigDecimal getHistoryRebate() {\n return historyRebate;\n }",
"public void setEFF_DATE(Date EFF_DATE) {\r\n this.EFF_DATE = EFF_DATE;\r\n }",
"public void setRecordDate(Date recordDate) {\n this.recordDate = recordDate;\n }",
"public String getRebillLastDate()\n\t{\n\t\tif(response.containsKey(\"last_date\")) {\n\t\t\treturn response.get(\"last_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public void setDireccionPersonaRecive(String direccionPersonaRecive) {\r\n\t\tthis.direccionPersonaRecive = direccionPersonaRecive;\r\n\t}",
"public void setLastModifiedDate(Long lastModifiedDate)\r\n\t{\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}",
"Employee setBirthdate(Date birthdate);",
"public abstract void setFecha_termino(java.lang.String newFecha_termino);",
"public void setRegDate(Date regDate) {\r\n\t\tthis.regDate = regDate;\r\n\t}",
"public void setRealCheckDate(Date realCheckDate) {\n this.realCheckDate = realCheckDate;\n }",
"public void setRebateChanges(RebateChanges[] rebateChanges) {\n this.rebateChanges = rebateChanges;\n }",
"public Date getaBrithdate() {\n return aBrithdate;\n }",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public Date getBDate(){\n \treturn bDate;\n }",
"public void setBorndate(Date borndate) {\r\n this.borndate = borndate;\r\n }",
"public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }",
"public Date getActualRepayDate() {\n return actualRepayDate;\n }",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"@Override\n\tpublic void setRepertoire(String r) {\n\t\t\n\t}",
"public void setDob(Date dob) {\n this.dob = dob;\n }",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"public abstract void setCrcdReimbTypeCd(String crcdReimbTypeCd);",
"public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"public void setFecha(java.sql.Timestamp newFecha);",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public void setDate(String ymd) throws RelationException;",
"public void setVALUE_DATE(Date VALUE_DATE) {\r\n this.VALUE_DATE = VALUE_DATE;\r\n }",
"public void setVALUE_DATE(Date VALUE_DATE) {\r\n this.VALUE_DATE = VALUE_DATE;\r\n }",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setDEAL_VALUE_DATE(Date DEAL_VALUE_DATE) {\r\n this.DEAL_VALUE_DATE = DEAL_VALUE_DATE;\r\n }",
"public void setLastSynchronisationMoment(String newLastSynchronisationDate) {\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(SET_LAST_SYNCHRONISATION_DAT_SQL)) {\n stmt.setString(1, newLastSynchronisationDate);\n\n stmt.executeUpdate();\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"setLastSynchronisationMoment\", e);\n throw new InternalServerErrorException(String.format(\"Error occurred while updating the last synchronisation date: %s\", e.getMessage()));\n }\n\n }",
"private RecordSet armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos) {\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada Accesos: \" + rAccesos); \n \n //String sAccesos = null; \n for ( int i = 0; i < r.getRowCount(); i++)\n { /*sAccesos = \"\";\n for(int z = 0;z<rAccesos.getRowCount();z++)\n {\n if(rAccesos.getValueAt(z,0).equals(r.getValueAt(i,1)))\n sAccesos += ((!\"\".equals(sAccesos))?\" - \":\"\").concat((String)rAccesos.getValueAt(z,1)); \n }*/\n String sAccesos = (String) rAccesos.getValueAt(i,1); \n r.setValueAt(sAccesos,i,6);\n }\n UtilidadesLog.debug(\" Record Final: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalMarcarModificar(RecordSet r, RecordSet rAccesos): Salida\"); \n return r;\n }",
"public void setDateFinContrat(Date dateFinContrat) {\r\n this.dateFinContrat = dateFinContrat;\r\n }",
"public void setRenewalEffectiveDate(java.util.Date value);",
"public Date getRegistDt() {\n return registDt;\n }",
"public void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmHistoryMaritime.setModifiedDate(modifiedDate);\n\t}",
"public void setRevokeDate(String revokeDate) {\r\n this.revokeDate = revokeDate;\r\n\r\n }",
"public void setLogdate(long newVal) {\n setLogdate(new java.sql.Timestamp(newVal));\n }",
"private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }",
"public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);",
"public java.sql.Date getReceiveDate () {\r\n\t\treturn receiveDate;\r\n\t}",
"public void setRealPhotoDate(Date realPhotoDate) {\n this.realPhotoDate = realPhotoDate;\n }",
"public void setFinancialDocumentRevolvingFundDate(Date financialDocumentRevolvingFundDate) {\r\n this.financialDocumentRevolvingFundDate = financialDocumentRevolvingFundDate;\r\n }",
"protected void setReturnDate(Date d){ this.returnDate = d; }",
"public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setREVENUESEQUENCE(java.lang.Double value) {\n validate(fields()[8], value);\n this.REVENUE_SEQUENCE = value;\n fieldSetFlags()[8] = true;\n return this;\n }",
"public void setFechaRegistro(java.util.Date fechaRegistro1) {\n\t\tthis.fechaRegistro = fechaRegistro1;\n\n\t}",
"public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setCreDate(Date creDate) {\n this.creDate = creDate;\n }",
"public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }",
"public StrColumn getPostRelRecvdCoordDate() {\n return delegate.getColumn(\"post_rel_recvd_coord_date\", DelegatingStrColumn::new);\n }",
"public LocalDate GetFechaUltimoCambio() throws RemoteException;",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_employee.setModifiedDate(modifiedDate);\n\t}",
"public void setEapLastModifiedDate(Date newDate) {\n\t\teapLastModifiedDate = newDate;\n\t}",
"public void setBirthDate(Date birthDate);",
"public void setRatedOn(Date ratedOn) {\n\t\tthis.ratedOn = ratedOn;\n\t}"
] | [
"0.5662708",
"0.56520396",
"0.5371403",
"0.52709776",
"0.5226462",
"0.52249324",
"0.5210663",
"0.5162273",
"0.5119714",
"0.5104003",
"0.5074715",
"0.50021267",
"0.49951184",
"0.4993503",
"0.49767378",
"0.49598503",
"0.4930773",
"0.4887491",
"0.48612842",
"0.4843041",
"0.48173693",
"0.4814463",
"0.4781984",
"0.47758588",
"0.47754785",
"0.47739902",
"0.47629407",
"0.47557604",
"0.4737664",
"0.4735743",
"0.47264707",
"0.47256154",
"0.47232533",
"0.4719276",
"0.4718245",
"0.47165933",
"0.470977",
"0.47075963",
"0.4698535",
"0.46927142",
"0.46702728",
"0.46685085",
"0.4665587",
"0.46514645",
"0.4639129",
"0.46289903",
"0.46272334",
"0.462229",
"0.4616536",
"0.46065024",
"0.46013343",
"0.459713",
"0.45847487",
"0.45725513",
"0.45717207",
"0.45663562",
"0.45621827",
"0.4560447",
"0.45559475",
"0.45524037",
"0.45469877",
"0.4545314",
"0.45423684",
"0.45397234",
"0.45379442",
"0.45378014",
"0.4529931",
"0.45266035",
"0.45266035",
"0.45212922",
"0.45187306",
"0.45181894",
"0.45166197",
"0.4512902",
"0.45121288",
"0.45106608",
"0.4506783",
"0.45020562",
"0.45018527",
"0.44996244",
"0.44919202",
"0.44905907",
"0.44903627",
"0.44848698",
"0.44836113",
"0.4481895",
"0.44778776",
"0.44762024",
"0.44752884",
"0.44703352",
"0.44703352",
"0.44703352",
"0.44673654",
"0.44657737",
"0.4464472",
"0.44463256",
"0.44451457",
"0.44441548",
"0.44402775",
"0.44389606"
] | 0.5825114 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.TYPEID | public Long getTypeid() {
return typeid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public String getId_type() {\n return id_type;\n }",
"public int getIdType() {\r\n return idType;\r\n }",
"public String getIdType() {\n return idType;\n }",
"public int getSqlType() { return _type; }",
"public String getTypeId() {\r\n return typeId;\r\n }",
"public Long getTypeId() {\r\n\t\treturn typeId;\r\n\t}",
"int getTypeIdValue();",
"public Integer getIdType() {\n return idType;\n }",
"public Integer getTypeId() {\n return typeId;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"String getOrderTypeId();",
"public TypeID getTypeID() {\n\t\treturn typeID;\n\t}",
"public BigDecimal getTypeId() {\n return typeId;\n }",
"public int getJdbcType();",
"public int getType() throws SQLException\n {\n return m_rs.getType();\n }",
"public String getTypeName(int typecode)\n {\n String result = defaults.get(typecode);\n if (result == null)\n {\n throw new RuntimeException(\"No Dialect mapping for JDBC type: \" + typecode);\n }\n return result;\n }",
"public int getTypeId() {\n return typeId_;\n }",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"public Column.Type getType();",
"@Override\n public int getTypeIndexID() {\n return typeIndexID;\n }",
"public int getJDBCTypeId() {\r\n return typeId.getJDBCTypeId();\r\n }",
"private String getSchemaTypeTypeGUID(SchemaType schemaType)\n {\n ElementType type = schemaType.getType();\n if (type != null)\n {\n return type.getElementTypeId();\n }\n else\n {\n return SchemaElementMapper.SCHEMA_TYPE_TYPE_GUID;\n }\n }",
"public int getTypeId() {\n return instance.getTypeId();\n }",
"public TypeId getTypeId() {\r\n return typeId;\r\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public static String getAccountTypeName(int accountTypeId) throws SQLException {\n boolean cdt1 = Checker.checkValidAccountsType(accountTypeId);\n // establish a connection\n String accountTypeName = null;\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n // if it is a valid account type id\n if (cdt1) {\n\n accountTypeName = DatabaseSelector.getAccountTypeName(accountTypeId, connection);\n\n }\n connection.close();\n return accountTypeName;\n }",
"public String getIDType() {\n return idType;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"io.dstore.values.IntegerValue getFieldTypeId();",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public int getTypeId();",
"public int getTypeId();",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public int getData_type_id() {\n return data_type_id;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType(){\n return type;\n }",
"public String getDBType() {\r\n return dbType;\r\n }",
"public int getType(){\n\t\treturn type;\n\t}",
"String getSQLTypeName() throws SQLException;",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType()\r\n {\r\n return type;\r\n }",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public int getTypeId()\n {\n return (int) getKeyPartLong(KEY_CONTENTTYPEID, -1);\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"public long getType() {\r\n return type;\r\n }",
"public int getType()\n {\n return type;\n }",
"public int getType()\n {\n return type;\n }",
"public int getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}",
"public int Gettype(){\n\t\treturn type;\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType() {\r\n\t\treturn (type);\r\n\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public BikeType getType(int typeId){\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(TYPE_BY_ID + typeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n return type;\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return null;\n }",
"public int getType() {\n return type;\n }",
"public int getType() {\n return _type;\n }",
"public int getType() {\n return _type;\n }",
"@Override\n\tpublic Type getType(int typeID) {\n\t\treturn problemDAO.getType(typeID);\n\t}",
"public int getType()\n\t{\n\t\treturn type;\n\t}",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public int getJDBCTypeId()\n {\n return JDBCTypeId;\n }",
"@Override public int getTypeValue() {\n return type_;\n }",
"public int getType() {\r\n return type;\r\n }",
"public int getType() {\r\n return type;\r\n }",
"public int getType() {\r\n return type;\r\n }",
"public int getType() {\n return type;\n }",
"public int getType() {\n return type;\n }",
"public int getType() {\n return type;\n }"
] | [
"0.6428179",
"0.632063",
"0.614591",
"0.6106802",
"0.60388476",
"0.5982437",
"0.5978089",
"0.5976179",
"0.59616023",
"0.59068567",
"0.58898926",
"0.58799314",
"0.5856428",
"0.5849792",
"0.5827279",
"0.578558",
"0.57624674",
"0.57575125",
"0.5757001",
"0.5732862",
"0.5730141",
"0.5729305",
"0.5728569",
"0.5724565",
"0.571765",
"0.56961083",
"0.5692234",
"0.5692234",
"0.5684397",
"0.56832",
"0.56832",
"0.56787306",
"0.5665609",
"0.566225",
"0.566225",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56602836",
"0.56481004",
"0.563898",
"0.5623365",
"0.5623365",
"0.5614438",
"0.5599755",
"0.5582701",
"0.5578098",
"0.5558115",
"0.55480117",
"0.5544163",
"0.55418825",
"0.55418825",
"0.55418825",
"0.55418825",
"0.55418825",
"0.55352986",
"0.5530386",
"0.55277795",
"0.5523986",
"0.5523854",
"0.55232406",
"0.55232406",
"0.5513261",
"0.55115783",
"0.55115783",
"0.55085635",
"0.55037856",
"0.54984564",
"0.54984564",
"0.54984564",
"0.54984564",
"0.54984564",
"0.54974794",
"0.5495402",
"0.5495402",
"0.54930127",
"0.54930127",
"0.54930127",
"0.5491444",
"0.5486974",
"0.54846305",
"0.54846305",
"0.5483704",
"0.5482979",
"0.5482863",
"0.5481258",
"0.5480884",
"0.5474353",
"0.5474353",
"0.5474353",
"0.54704124",
"0.54704124",
"0.54704124"
] | 0.6205823 | 2 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.TYPEID | public void setTypeid(Long typeid) {
this.typeid = typeid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdType(int idType) {\r\n this.idType = idType;\r\n }",
"public void setId_type(String id_type) {\n this.id_type = id_type;\n }",
"public void setIdType(Integer idType) {\n this.idType = idType;\n }",
"public void setIdType(String idType) {\n this.idType = idType == null ? null : idType.trim();\n }",
"public void setTypeId(com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId typeId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().find_element_user(TYPEID$2, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().add_element_user(TYPEID$2);\n }\n target.set(typeId);\n }\n }",
"public void setTypeId(Long typeId) {\r\n\t\tthis.typeId = typeId;\r\n\t}",
"private void setTypeId(int value) {\n \n typeId_ = value;\n }",
"public void setTypeId(Integer typeId) {\n this.typeId = typeId;\n }",
"public void setTypeId(BigDecimal typeId) {\n this.typeId = typeId;\n }",
"public void setType(int type) throws DBException {\n _type = type;\n }",
"public void setType(int type) throws DBException {\n _type = type;\n }",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public void setData_type_id(int data_type_id) {\n this.data_type_id = data_type_id;\n }",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"public void setTypeID(TypeID typeID) {\n\t\tthis.typeID = typeID;\n\t}",
"public void setType(int id) {\n _type = id;\n }",
"public void setTypeId(String typeId) {\r\n this.typeId = typeId == null ? null : typeId.trim();\r\n }",
"public void setJP_BankAccountType (String JP_BankAccountType);",
"public void setTypeId(String typeId) {\r\n\t\t\tthis.typeId = typeId;\r\n\t\t}",
"public String getId_type() {\n return id_type;\n }",
"public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }",
"public void setType(long type) {\r\n this.type = type;\r\n }",
"public void setAfterTypeId(Integer afterTypeId) {\r\n this.afterTypeId = afterTypeId;\r\n }",
"void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public Long getTypeId() {\r\n\t\treturn typeId;\r\n\t}",
"public int getIdType() {\r\n return idType;\r\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setDBType(String dbType) {\r\n this.dbType = dbType;\r\n }",
"public String getTypeId() {\r\n return typeId;\r\n }",
"public int getSqlType() { return _type; }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setTYPE(String TYPE) {\n this.TYPE = TYPE;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(int type) {\n this.type = type;\n }",
"@NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.type}\")\n \n @ManyToOne(fetch = FetchType.LAZY)\n@JoinColumn(name = \"TYPE_FK\")\n@org.hibernate.annotations.ForeignKey(name = \"BILLINTYPE_FK\")\n\n public gov.nih.nci.calims2.domain.common.Type getType() {\n return type;\n }",
"public Long getTypeid() {\n return typeid;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }",
"public String getIdType() {\n return idType;\n }",
"public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void changeType(int patient_id,String type) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString query= \"UPDATE patients SET type=? WHERE id = ?\";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setString(1, type);\r\n\t\t\tpStatement.setInt(2, patient_id);\r\n\t\t\tpStatement.executeUpdate();\r\n\t\t\tpatientID.remove(patientID.indexOf(patient_id));\r\n\t\t\tSystem.out.println(\"You have change type value to cured\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }",
"public Integer getTypeId() {\n return typeId;\n }",
"public Builder setTypeId(int value) {\n copyOnWrite();\n instance.setTypeId(value);\n return this;\n }",
"protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"@Override\n public int getTypeIndexID() {\n return typeIndexID;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(int type) {\n\t\tthis.type = type;\n\t}",
"public BigDecimal getTypeId() {\n return typeId;\n }",
"int getTypeIdValue();",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public String updateContactTypeStatement() {\n\t\treturn \"UPDATE CONTACTSTYPES SET (CONTACT_TYPE) = ? WHERE ID = ?\";\n\t}",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"void setBbanEntryType(final BbanEntryType type) {\n this.vars.put(\"bbanEntryType\", type.name());\n }",
"public int getTypeId() {\n return typeId_;\n }",
"public TypeId getTypeId() {\r\n return typeId;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setBankAccountType (String BankAccountType);",
"@Override\n\tpublic void setType(int type) {\n\t\t_dmGtStatus.setType(type);\n\t}",
"public void setTypeId(final ReferenceTypeId typeId);",
"public void setORDERTYPESID(java.lang.Long value) {\n this.ORDER_TYPES_ID = value;\n }",
"@Override\n\tpublic void setType(String type) {\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"void setDataType(int type );",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(int a_type) {\n\t\tthis.m_type = a_type;\n\t}",
"public Integer getIdType() {\n return idType;\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(int atype)\n {\n type = atype;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }"
] | [
"0.6307868",
"0.6255944",
"0.62001085",
"0.5975644",
"0.5897073",
"0.58758986",
"0.57474154",
"0.5689297",
"0.56644404",
"0.5648439",
"0.5648439",
"0.56335086",
"0.5609101",
"0.559696",
"0.55885875",
"0.5574962",
"0.5544399",
"0.5509843",
"0.54949594",
"0.54890406",
"0.54841316",
"0.54821116",
"0.546376",
"0.54352915",
"0.541133",
"0.53736526",
"0.5370327",
"0.533355",
"0.533355",
"0.531924",
"0.53146154",
"0.5312793",
"0.5309805",
"0.5306722",
"0.5306722",
"0.529139",
"0.5269261",
"0.52675897",
"0.5265326",
"0.5251666",
"0.52509075",
"0.52498484",
"0.5227356",
"0.5226434",
"0.5226046",
"0.5223325",
"0.52193403",
"0.521058",
"0.52092963",
"0.52059674",
"0.52042335",
"0.52026826",
"0.5197455",
"0.519582",
"0.51886237",
"0.5182415",
"0.51780045",
"0.5170364",
"0.51638305",
"0.5162516",
"0.51545954",
"0.5153543",
"0.51517",
"0.51458544",
"0.51369655",
"0.5126015",
"0.5125428",
"0.51252645",
"0.5123283",
"0.5122493",
"0.51142347",
"0.5114006",
"0.51090634",
"0.51083905",
"0.51068836",
"0.51068836",
"0.510417",
"0.510417",
"0.510417",
"0.5103787",
"0.5103787",
"0.5103787",
"0.5103787",
"0.5096084",
"0.50938207",
"0.5090598",
"0.5087227",
"0.50830793",
"0.50808907",
"0.50747496",
"0.5069094",
"0.5065886",
"0.5062997",
"0.50593865",
"0.50579953",
"0.50579953",
"0.50579953",
"0.50559086",
"0.5050374",
"0.5046253"
] | 0.6039642 | 3 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.EXCEPTCODE | public Long getExceptcode() {
return exceptcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExceptcode(Long exceptcode) {\n this.exceptcode = exceptcode;\n }",
"public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public int getVendorErrorCode()\n {\n return getSQLException().getErrorCode();\n }",
"public FileTransferErrorCode getCode() {\n return FileTransferErrorCode.fromValue(JsoHelper.getAttributeAsInt(jsObj, Attributes.CODE.getValue()));\n }",
"@javax.persistence.Column(name = \"event_code\", nullable = false)\n\tpublic java.lang.Integer getEventCode() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE);\n\t}",
"java.lang.String getSqlCode();",
"@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}",
"public Integer getBUSI_CODE() {\n return BUSI_CODE;\n }",
"public double getMissingValueCode();",
"public int getMessageCodeValue();",
"public String getErrorCode() {\r\n String toReturn = recentErrorCode;\r\n\r\n return toReturn;\r\n }",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"int getCodeValue();",
"public int getExceptionIndex() {\n/* 412 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }",
"public CWE getAdministeredCode() { \r\n\t\tCWE retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }",
"public Long getCode() {\n return code;\n }",
"public Long getCode() {\n return code;\n }",
"public String getCode() {\n return (String) get(\"code\");\n }",
"public String getCodigoExpediente() {\r\n return codigoExpediente;\r\n }",
"Integer getCode();",
"public String getErrorCode();",
"public TransactionType getLogCode () {\n return logCode;\n }",
"public int getCode() {\n\t\treturn adaptee.getCode();\n\t}",
"public int getConflictColB() {\r\n return this.conflictColB;\r\n }",
"public org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum getCode()\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 return null;\n }\n return (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum)target.getEnumValue();\n }\n }",
"public String getCode() {\n return (String)getAttributeInternal(CODE);\n }",
"public String getJP_BankDataCustomerCode2();",
"java.lang.String getCode();",
"java.lang.String getCode();",
"com.google.protobuf.ByteString getSqlCodeBytes();",
"public String getCode() {\n return _toBaseUnit._code;\n }",
"public int getErrorCode() {\n return parameter.getErrCode();\n }",
"@Override\n\tpublic int queryOneticketornotBycode(String code) {\n\t\treturn 0;\n\t}",
"public String getCode()\n {\n return fCode;\n }",
"public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }",
"public String code() {\n return this.code;\n }",
"public String code() {\n return this.code;\n }",
"public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}",
"String getEACCode();",
"public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"public Integer getCodeid() {\n return codeid;\n }",
"@AutoEscape\n\tpublic String getCodDistrito();",
"public int getCode() {\r\n\t\t\treturn code;\r\n\t\t}",
"@Override\r\n\tpublic List getCodeType() throws Exception {\n\t\treturn codeMasterService.getCodeType();\r\n\t}",
"public String getCode() {\n return this.code;\n }",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"public String getLastChgReasonCd() {\n\t\treturn null;\n\t}",
"public String getIntermidiateCode(){\r\n\t\treturn iCode;\r\n\t}",
"public String getIndicadorEliminacionCodigoSAC(Map criteria);",
"public StrColumn getStatusCodeCs() {\n return delegate.getColumn(\"status_code_cs\", DelegatingStrColumn::new);\n }",
"private String getSysStaticCodeValue(String codeName,String str) {\n\t\t String codeValue = \"\";\n\t\t List<SysStaticData> sysStatic = SysStaticDataUtil.getSysStaticDataList(str);\n\t\t if(sysStatic == null && sysStatic.size()<=0){\n\t\t\t throw new BusinessException(\"在静态表sys_static_data未配置订单状态数据!\"); \n\t\t }\n\t\t for(SysStaticData stata:sysStatic ){\n\t\t\tif(stata.getCodeName().equals(codeName)){\n\t\t\t\tcodeValue= Integer.parseInt(stata.getCodeValue())+\"\";\n\t\t\t\tbreak;\n\t\t\t} \n\t\t\t\n\t\t }\n\t\treturn codeValue;\n\t}",
"public int getCode() {\n\t\treturn this.code;\n\t}",
"public String getJP_BankDataCustomerCode1();",
"public String getCode() {\n\t\treturn Code;\n\t}",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}",
"public String getAccountCode() {\n return accountCode;\n }",
"public int getCode() {\r\n return code;\r\n }",
"public int getCode() {\r\n return code;\r\n }",
"public int getCode() {\n\t\treturn code;\n\t}",
"public java.lang.String getFteReasonCode(){\n return localFteReasonCode;\n }",
"@DirectMethod\r\n\tpublic String obtenerIgualDiferente (int tipoArbol)\r\n\t{\r\n\t\tString resultado = new String();\r\n\t\ttry{\r\n\t\t\tif(Utilerias.haveSession(WebContextManager.get()) && Utilerias.tienePermiso(WebContextManager.get(),50)){\r\n\t\t\t\tBarridosFondeosService barridosFondeosService = (BarridosFondeosService)contexto.obtenerBean(\"barridosFondeosBusinessImpl\");\r\n\t\t\t\tresultado = barridosFondeosService.obtenerIgualDiferente(tipoArbol);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tbitacora.insertarRegistro(new Date().toString() + \" \" + Bitacora.getStackTrace(e)\r\n\t\t\t+\"P:BarridosFondeos, C:BarridosFondeosAction, M:obtenerIgualDiferente\");\t\t\t\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}",
"public int value() {\n return code;\n }",
"public java.lang.String getErrorAffectedTransactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ERRORAFFECTEDTRANSACTIONCOUNT$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getCode(){\n\t\treturn code;\n\t}",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int 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 ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"@Override\n public String getCode() {\n return null;\n }",
"public BizCodeEnum 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 }",
"String getFaultReasonValue();",
"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 toString() {\n\t\treturn eircode;\n\t}",
"public String getEvent_code() {\n\t\treturn event_code;\n\t}",
"public String getCode() {\n\t\treturn menuDao.getCode();\r\n\t}",
"public int getCode()\n {\n return code;\n }",
"public Integer getExisteCliente(String codigoCliente);",
"@Override\r\n\tpublic Code selectCode(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\r\n\t\tQCode code = QCode.code;\r\n\t\tCode codeList = null;\r\n\t\tif(map.get(\"gbn\")[0].equals(\"upr\")) {\r\n\t\t\tcodeList = query.from(code)\r\n\t\t\t .where(code.upr_cd.eq(\"*\").and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t .singleResult(code);\r\n\t\t} else {\r\n\t\t\tcodeList = query.from(code)\r\n\t\t\t .where(code.upr_cd.eq(map.get(\"upr_cd\")[0]).and(code.cd.eq(map.get(\"cd\")[0])))\r\n\t\t\t .singleResult(code);\r\n\t\t}\r\n\t\t\r\n\t\treturn codeList;\r\n\t}",
"public String getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}",
"public java.lang.String getCode() {\r\n return code;\r\n }",
"int getErrorCode();",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}"
] | [
"0.5992893",
"0.5194065",
"0.5191372",
"0.5191372",
"0.51056814",
"0.50980717",
"0.50856495",
"0.5070929",
"0.49693635",
"0.49351096",
"0.49321032",
"0.49119285",
"0.4881133",
"0.48749378",
"0.48746836",
"0.48516682",
"0.48514423",
"0.48510292",
"0.48510292",
"0.48398343",
"0.48256958",
"0.4821531",
"0.4813238",
"0.48109818",
"0.47981527",
"0.47893837",
"0.4788935",
"0.47844723",
"0.4772984",
"0.47671384",
"0.47671384",
"0.47669303",
"0.47379705",
"0.4737676",
"0.47334957",
"0.4732412",
"0.47283843",
"0.4726409",
"0.4726409",
"0.47261012",
"0.47237328",
"0.47231132",
"0.47206065",
"0.4718794",
"0.4714036",
"0.47065365",
"0.4705563",
"0.47055343",
"0.47012773",
"0.46969503",
"0.46933612",
"0.46927682",
"0.46923247",
"0.46875298",
"0.46804407",
"0.4673279",
"0.46599302",
"0.46572074",
"0.46543396",
"0.4652376",
"0.4652376",
"0.46495992",
"0.4649515",
"0.46433854",
"0.4640821",
"0.46377018",
"0.4637616",
"0.46356067",
"0.46356067",
"0.46356067",
"0.46356067",
"0.46356067",
"0.4630003",
"0.46285102",
"0.4627208",
"0.46265706",
"0.4624649",
"0.46233153",
"0.46233153",
"0.46233153",
"0.46233153",
"0.46232364",
"0.46173206",
"0.46173206",
"0.46173206",
"0.46173206",
"0.46173206",
"0.46173206",
"0.46173206",
"0.4616294",
"0.46133062",
"0.46077177",
"0.45966884",
"0.45941213",
"0.45940048",
"0.45914567",
"0.4588715",
"0.45869523",
"0.45867586",
"0.45867586"
] | 0.6835993 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.EXCEPTCODE | public void setExceptcode(Long exceptcode) {
this.exceptcode = exceptcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getExceptcode() {\n return exceptcode;\n }",
"public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }",
"public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }",
"public void setBUSI_CODE(Integer BUSI_CODE) {\n this.BUSI_CODE = BUSI_CODE;\n }",
"public void setCode(BizCodeEnum code) {\n this.code = code;\n }",
"public abstract BaseQuantityDt setCode(String theCode);",
"public void setFteReasonCode(java.lang.String param){\n localFteReasonCodeTracker = true;\n \n this.localFteReasonCode=param;\n \n\n }",
"public String setCode() {\n\t\treturn null;\n\t}",
"public void setCode(Code code) {\n this.Code = code;\n }",
"public void setCode(Integer code) {\n this.code = code;\n }",
"@Test\n\tpublic void testSetBehandelCode(){\n\t\tint expResult = 002;\n\t\tinstance.setBehandelCode(002);\n\t\tassertTrue(expResult == instance.getBehandelCode());\n\t}",
"public void setCode(Long code) {\n this.code = code;\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"public void setCode(String cod){\n\t\tcodeService = cod;\n\t}",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public void setCode(String code) {\n\t\tCode = code;\n\t}",
"protected void setTableCompCode(String compcode)\n\t\t{\n\t\t\tCompCode = compcode ;\n\t\t}",
"Code updateCode(Code code)\n throws DAOException;",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public void setCode(final int code) {\n this.code = code;\n commited = true;\n }",
"public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);",
"public void setCauseCode(int causeCode) throws FrameException {\n try {\n ByteBuffer byteBuffer = new ByteBuffer(ByteBuffer.SIZE_16BITS);\n byteBuffer.put16bits(causeCode);\n infoElements.put(new Integer(InfoElement.CAUSECODE), byteBuffer.getBuffer());\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }",
"public int set_code(String b);",
"public void setEventCode(java.lang.Integer value) {\n\t\tsetValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.EVENT_CODE, value);\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 setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"public void setBRANCH_CODE(BigDecimal BRANCH_CODE) {\r\n this.BRANCH_CODE = BRANCH_CODE;\r\n }",
"@Id\r\n @GeneratedValue(strategy = GenerationType.AUTO)\r\n @Column (name = \"CODE_ID\")\r\n public Long getCodeId() {\r\n return codeId;\r\n }",
"public void setMissingValueCode(double mv);",
"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 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 void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);",
"public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setEmployeeCode(String value) {\n this.employeeCode = value;\n }",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public void setEndBank(int arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDBANK.toString(), arg, compcode);\n\t}",
"public SysAccessCodeException(int code, String businessMessage)\n/* */ {\n/* 21 */ this(businessMessage);\n/* */ }",
"public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }",
"public void setCode(long value) {\n this.code = value;\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setCOMP_CODE(BigDecimal COMP_CODE) {\r\n this.COMP_CODE = COMP_CODE;\r\n }",
"public void setBENEF_ACC(String BENEF_ACC) {\r\n this.BENEF_ACC = BENEF_ACC == null ? null : BENEF_ACC.trim();\r\n }",
"public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}",
"public WxpUnlimitCode() {\n this(DSL.name(\"b2c_wxp_unlimit_code\"), null);\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 void setCode(String code) {\n this.code = code;\n }",
"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}",
"public Object getCellEditorValue() {\r\n System.out.println(\"*** get cell editor value: ***\" +txtCell.getText()) ;\r\n Object oldValue = tblProtoCorresp.getValueAt(selRow,selColumn);\r\n Object newValue = ((CoeusTextField)txtCell).getText();\r\n TableColumn column = codeTableColumnModel.getColumn(selColumn) ;\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n \r\n //this window has only two combox columns to display\r\n newValue = (ComboBoxBean)((CoeusComboBox)getComponent()).getSelectedItem();\r\n\r\n\r\n if (checkDependency(selRow, \"\"))\r\n {\r\n if(!CheckUniqueId(newValue.toString(), selRow, selColumn))\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"chkPKeyUniqVal_exceptionCode.2401\");\r\n \r\n CoeusOptionPane.showInfoDialog(msg); \r\n return oldValue; //fail in uniqueid check\r\n }\r\n }\r\n else\r\n {\r\n return oldValue;//fail in dependency check\r\n }\r\n \r\n\r\n\r\n\r\n //when the cell value changed,\r\n //set AC_TYPE only the this row is first time be modified.\r\n //\"U\" means this row needs to update.\r\n if (selRow > -1)\r\n {\r\n if (codeTableModel.getValueAt(sorter.getIndexForRow(selRow),codeTableModel.getColumnCount()-1) == null)\r\n {\r\n if (tblProtoCorresp.getValueAt(selRow,selColumn)!=null)\r\n {\r\n if (!(tblProtoCorresp.getValueAt(selRow,selColumn).toString().equals(((CoeusTextField)txtCell).getText())))\r\n {\r\n codeTableModel.setValueAt(\"U\", sorter.getIndexForRow(selRow), codeTableModel.getColumnCount()-1);\r\n // set the user name\r\n codeTableModel.setValueAt(userId, sorter.getIndexForRow(selRow), tableStructureBeanPCDR.getUserIndex() );\r\n saveRequired = true;\r\n System.out.println(\"*** Set AcType to U in getCellEditorValue***\") ;\r\n }\r\n }\r\n else\r\n {\r\n codeTableModel.setValueAt(\"U\", sorter.getIndexForRow(selRow), codeTableModel.getColumnCount()-1);\r\n // set the user name\r\n codeTableModel.setValueAt(userId, sorter.getIndexForRow(selRow), tableStructureBeanPCDR.getUserIndex() );\r\n saveRequired = true;\r\n System.out.println(\"*** Set AcType to U in getCellEditorValue***\") ;\r\n }\r\n }\r\n\r\n }\r\n\r\n if (selColumn == 0 || selColumn == 1 )\r\n return (ComboBoxBean)((CoeusComboBox)getComponent()).getSelectedItem();\r\n\r\n return ((CoeusTextField)txtCell).getText();\r\n }",
"public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}",
"public void setCodeid(Integer codeid) {\n this.codeid = codeid;\n }",
"public interface ViewDetailsExceptionCodes extends BaseExceptionCodes {\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsManagerException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0020 = 700020;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsConfigurationException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0021 = 700021;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsDaoException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0022 = 700022;\r\n}",
"public Criteria andCodeNotEqualToColumn(BDicTreeCode.Column column) {\n addCriterion(new StringBuilder(\"code <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public void setDatossolicitudBfclasificacionConvenio(int value) {\n this.datossolicitudBfclasificacionConvenio = value;\n }",
"void setCode(Integer aCode);",
"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(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}",
"public void setDistrictCodes(DistrictCodes aDistrictCodes) {\n districtCodes = aDistrictCodes;\n }",
"protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}",
"public void setCHARGE_CODE(BigDecimal CHARGE_CODE) {\r\n this.CHARGE_CODE = CHARGE_CODE;\r\n }",
"public Builder setErrcode(int value) {\n bitField0_ |= 0x00000001;\n errcode_ = value;\n onChanged();\n return this;\n }",
"public String onChangeResidenceCode()\r\n {\r\n\ttry\r\n\t{\r\n\r\n\t SessionCO sessionCO = returnSessionObject();\r\n\t residenceTypesSC.setCompCode(sessionCO.getCompanyCode());\r\n\t residenceTypesSC.setPreferredLanguage(sessionCO.getPreferredLanguage());\r\n\t residenceTypesVO = residenceTypesBO.returnDependencyByCode(residenceTypesSC);\r\n\t if(residenceTypesVO == null)\r\n\t {\r\n\t\tthrow new BOException(MessageCodes.INVALID_MISSING_CODE);\r\n\t }\r\n\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t residenceTypesVO = new RESIDENCE_TYPESVO();\r\n\t handleException(e, null, null);\r\n\t}\r\n\treturn SUCCESS;\r\n }",
"public void setErrCode(java.lang.String errCode) {\n this.errCode = errCode;\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(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 setDOC_CODE(BigDecimal DOC_CODE) {\r\n this.DOC_CODE = DOC_CODE;\r\n }",
"private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUDDocMerger.createChildElement(m_Element,\n IPSFUDNode.ELEM_STATUS);\n\n if(null == m_ElementStatus) //never happens\n return;\n\n String tmp = null;\n try\n {\n tmp = Integer.toString(IPSFUDNode.STATUS_CODE_NORMAL); //default value\n tmp = Integer.toString(code);\n }\n catch(NumberFormatException e)\n {\n if(null == tmp) //should never happen\n tmp = \"\";\n }\n m_ElementStatus.setAttribute(IPSFUDNode.ATTRIB_CODE, tmp);\n }",
"public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}",
"public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}"
] | [
"0.59954154",
"0.51417404",
"0.51417404",
"0.49493766",
"0.4891516",
"0.48125637",
"0.47714794",
"0.46420863",
"0.46353048",
"0.46299425",
"0.459321",
"0.45929798",
"0.45929798",
"0.45924103",
"0.4572391",
"0.4572391",
"0.45690984",
"0.45643285",
"0.45623505",
"0.45536444",
"0.45417035",
"0.45417035",
"0.45401335",
"0.45223287",
"0.45176595",
"0.45121816",
"0.45110714",
"0.45034072",
"0.4499414",
"0.4499414",
"0.4499414",
"0.4499414",
"0.4499414",
"0.4499414",
"0.4499414",
"0.4499414",
"0.44993696",
"0.4491502",
"0.44904432",
"0.4482833",
"0.4476872",
"0.44743374",
"0.44736952",
"0.44721606",
"0.44594488",
"0.44535318",
"0.44527784",
"0.4452522",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44443431",
"0.44270596",
"0.44096407",
"0.44082308",
"0.44080108",
"0.44080108",
"0.44080108",
"0.44080108",
"0.44080108",
"0.44080108",
"0.44058466",
"0.44058466",
"0.44058466",
"0.44055775",
"0.44037887",
"0.44033363",
"0.44013703",
"0.43989277",
"0.43945226",
"0.43867305",
"0.43771183",
"0.43771183",
"0.43749842",
"0.43749624",
"0.43736473",
"0.43713343",
"0.43672737",
"0.43642822",
"0.435211",
"0.43437627",
"0.43437627",
"0.43437627",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.43422395",
"0.4341958",
"0.433997",
"0.43398622",
"0.43371254"
] | 0.6601215 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column T_LOG_BASERECORD.UPDATEDATE | public Date getUpdatedate() {
return updatedate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"Date getDateUpdated();",
"public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }",
"public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }",
"public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }",
"public Date getUpdatedOn();",
"Date getForLastUpdate();",
"public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}",
"public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"Date getUpdatedDate();",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"public Date getUpdatedate() {\r\n return updatedate;\r\n }",
"public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Timestamp getUpdated();",
"public Long getUpdateDatetime() {\n return updateDatetime;\n }",
"public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getUpdateDatetime();",
"public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}",
"public Timestamp getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }",
"public String getLastupdateby() {\n return lastupdateby;\n }",
"public Date getUpdated() {\r\n return updated;\r\n }",
"public Date getUpdated() {\r\n return updated;\r\n }",
"public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public java.lang.String getDate_last_update() {\n return date_last_update;\n }",
"public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return updated;\n }",
"public String getUpdateDate() {\r\n return updateDate;\r\n }",
"public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}",
"public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }",
"public String getUpdated() {\n return this.updated;\n }",
"public String getUpdated() {\n return this.updated;\n }",
"@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }",
"public Date getUpdated() {\n return mUpdated;\n }",
"@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}",
"public Date getUpdatedDate() {\n return updatedDate;\n }",
"public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}",
"Date getForUpdatesAfter();",
"public Date getLastupdatedate() {\n return lastupdatedate;\n }",
"public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\n return updateDate;\n }",
"public Date getUpdateDate() {\r\n return updateDate;\r\n }",
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public Date getLastUpdate() {\r\n return lastUpdate;\r\n }",
"protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }",
"public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }",
"public Date getUpdateDate() {\n\t\treturn updateDate;\n\t}",
"public Date getUpdateDate() {\n\t\treturn updateDate;\n\t}",
"@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}",
"public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }",
"public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}",
"public Integer getUpdateby() {\n return updateby;\n }",
"public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }",
"public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }"
] | [
"0.6552534",
"0.6552534",
"0.63586825",
"0.61264586",
"0.61264586",
"0.61264586",
"0.6093119",
"0.60629296",
"0.6057605",
"0.60564727",
"0.6051393",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.60067207",
"0.59916",
"0.59824944",
"0.5969407",
"0.5943126",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.59130377",
"0.5904185",
"0.5902242",
"0.5902242",
"0.58616024",
"0.5831697",
"0.58301514",
"0.57975656",
"0.57949823",
"0.5786436",
"0.5786436",
"0.57815444",
"0.5770675",
"0.5770675",
"0.57596236",
"0.575825",
"0.57562256",
"0.57562256",
"0.57560235",
"0.57560235",
"0.5750637",
"0.57399166",
"0.572868",
"0.57255393",
"0.57255393",
"0.5724176",
"0.5686413",
"0.5665528",
"0.5646808",
"0.563931",
"0.563392",
"0.5612962",
"0.56104505",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5598349",
"0.5592637",
"0.5588026",
"0.5588026",
"0.5583179",
"0.55660105",
"0.5553188",
"0.5553188",
"0.5553188",
"0.5553188",
"0.5553188",
"0.5553188",
"0.5553188",
"0.5553174",
"0.55518353",
"0.55421907",
"0.55421907",
"0.55416423",
"0.5530347",
"0.5527755",
"0.55192786",
"0.55111784",
"0.55111784"
] | 0.59380734 | 23 |
This method was generated by MyBatis Generator. This method sets the value of the database column T_LOG_BASERECORD.UPDATEDATE | public void setUpdatedate(Date updatedate) {
this.updatedate = updatedate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }",
"public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }",
"public void setUpdatedOn(Date updatedOn);",
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }",
"public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }",
"public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }",
"public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }",
"@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }",
"void setUpdatedDate(Date updatedDate);",
"public void setUpdatedon( Date updatedon )\n {\n this.updatedon = updatedon;\n }",
"public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"Date getDateUpdated();",
"public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }",
"public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }",
"public void afterUpdate(DevicelabtestBean pObject) throws SQLException;",
"public void setUpdateDate(Date updateDate) {\r\n this.updateDate = updateDate;\r\n }",
"public void setUpdateDatetime(Date updateDatetime);",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }",
"public void setUpdated(Date updated) {\n this.updated = updated;\n }",
"public void setUpdated(Date updated) {\n this.updated = updated;\n }",
"public void afterUpdate(VLabtestInstBean pObject) throws SQLException;",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate(Date updateDate) {\n this.updateDate = updateDate;\n }",
"public void setUpdated(Date updated) {\r\n\t\tthis.updated = updated;\r\n\t}",
"public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }",
"public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }",
"void setDateUpdated(final Date dateUpdated);",
"public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }",
"public void setUpdateDate( Date updateDate ) {\n this.updateDate = updateDate;\n }",
"public void setUpdatedDate(Date value) {\n setAttributeInternal(UPDATEDDATE, value);\n }",
"public void setUpdatedDate(Date date) {\n\t\tthis.updatedDate=date;\r\n\t}",
"public void setUpdateDate(String updateDate) {\r\n this.updateDate = updateDate;\r\n }",
"public void setUpdateDate(Timestamp updateDate) {\n this.updateDate = updateDate;\n }",
"public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;",
"public Date getUpdatedOn();",
"@Update({\n \"update B_UMB_CHECKING_LOG\",\n \"set TRANDATE = #{trandate,jdbcType=VARCHAR},\",\n \"ACCOUNTDATE = #{accountdate,jdbcType=VARCHAR},\",\n \"CHECKTYPE = #{checktype,jdbcType=CHAR},\",\n \"STATUS = #{status,jdbcType=CHAR},\",\n \"DONETIME = #{donetime,jdbcType=VARCHAR},\",\n \"FILENAME = #{filename,jdbcType=VARCHAR}\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(BUMBCheckingLog record);",
"@Override\n public void actualizarPorEstadoYFechaMax(FecetProrrogaOrden prorroga, AgaceOrden orden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_UPDATE).append(getTableName());\n query.append(\" SET ID_ESTATUS = ? WHERE FECHA_CARGA = (SELECT MAX(FECHA_CARGA) FROM FECET_PRORROGA_ORDEN \");\n query.append(\" WHERE ID_ORDEN = ?)\");\n\n getJdbcTemplateBase().update(query.toString(), prorroga.getIdEstatus(), orden.getIdOrden());\n\n }",
"public void setUpdateDatetime(Long updateDatetime) {\n this.updateDatetime = updateDatetime;\n }",
"public void updateBDate() {\n bDate = new Date();\n }",
"public Date getUpdatedate() {\r\n return updatedate;\r\n }",
"public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }",
"public void setUpdateDate(Date updateDate) {\n\t\tthis.updateDate = updateDate;\n\t}",
"@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }",
"public void setUpdateDatetime(Date updateDatetime) {\r\n\t\tthis.updateDatetime = updateDatetime;\r\n\t}",
"@Override\n\tpublic boolean doUpdateLastDate(String aid, Date date) throws SQLException\n\t{\n\t\tString sql = \" UPDATE admin SET lastdate=? WHERE aid=? \";\n\t\tthis.ps = this.conn.prepareStatement(sql);\n\t\tthis.ps.setTimestamp(1, General.getCurrentSqlDate());\n\t\tthis.ps.setString(2, aid);\n\t\treturn this.ps.executeUpdate() == 1;\n\t}",
"@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }",
"public Date getUpdatedate() {\n return updatedate;\n }",
"public Date getUpdatedate() {\n return updatedate;\n }",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }",
"public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }",
"public void setUpdateDatime(Date updateDatime) {\r\n this.updateDatime = updateDatime;\r\n }",
"public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }",
"public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }",
"@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}",
"public void setUpdateDate(long newVal) {\n setUpdateDate(new java.util.Date(newVal));\n }",
"Date getUpdatedDate();",
"public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public void afterUpdate(RoomstatusBean pObject) throws SQLException;",
"public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }",
"@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}",
"public void setStatusdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.statusdate != null && (newVal.compareTo(this.statusdate) == 0)) || \n (newVal == null && this.statusdate == null && statusdate_is_initialized)) {\n return; \n } \n this.statusdate = newVal; \n statusdate_is_modified = true; \n statusdate_is_initialized = true; \n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public void setUpdatedDt(Date updatedDt) {\n\t\tthis.updatedDt = updatedDt;\n\t}",
"public void setCateUpdated(Date cateUpdated) {\n this.cateUpdated = cateUpdated;\n }",
"public Date getUpdateDatetime();",
"public void setLogdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.logdate != null && (newVal.compareTo(this.logdate) == 0)) || \n (newVal == null && this.logdate == null && logdate_is_initialized)) {\n return; \n } \n this.logdate = newVal; \n logdate_is_modified = true; \n logdate_is_initialized = true; \n }",
"@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}",
"public Long getUpdateDatetime() {\n return updateDatetime;\n }",
"public void setUpdateTimestamp(Date updateTimestamp) {\r\n this.updateTimestamp = updateTimestamp;\r\n }",
"Date getForLastUpdate();",
"public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }"
] | [
"0.623414",
"0.623414",
"0.587004",
"0.58568764",
"0.57887053",
"0.57887053",
"0.57406425",
"0.57406425",
"0.57406425",
"0.5696287",
"0.56405205",
"0.56098825",
"0.55626446",
"0.5556641",
"0.5510348",
"0.5510348",
"0.5462816",
"0.5453076",
"0.54454345",
"0.5440686",
"0.5440686",
"0.5440686",
"0.5440686",
"0.5440686",
"0.5440686",
"0.5440686",
"0.5440686",
"0.54281336",
"0.54281336",
"0.5416464",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.54018396",
"0.53668725",
"0.53653497",
"0.53653497",
"0.5363618",
"0.53596854",
"0.53596854",
"0.53544015",
"0.5339665",
"0.53316116",
"0.53260213",
"0.5312121",
"0.53045565",
"0.52935004",
"0.52894944",
"0.5284818",
"0.5283523",
"0.5281947",
"0.5269364",
"0.5264195",
"0.5230154",
"0.5216951",
"0.52137667",
"0.52137125",
"0.52093923",
"0.52093923",
"0.52062047",
"0.5205477",
"0.5183432",
"0.5183432",
"0.51722175",
"0.51629525",
"0.51629525",
"0.51629525",
"0.51500976",
"0.5139639",
"0.51394707",
"0.512788",
"0.51213473",
"0.51068306",
"0.5094373",
"0.5081613",
"0.5072324",
"0.5069767",
"0.5069767",
"0.5069767",
"0.5069767",
"0.5069767",
"0.5069767",
"0.5069767",
"0.506248",
"0.506248",
"0.5049009",
"0.5038577",
"0.5034637",
"0.50302416",
"0.5020961",
"0.50195205",
"0.50163376",
"0.5014954",
"0.50128543"
] | 0.58169824 | 5 |
Convert a given Binary Tree to Doubly Linked List | Set 4 | void convertToDll1(){
head=null;
reverseInOrder(root);
printDLL(head);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ListNode> binaryTreeToLists(TreeNode root) {\n\t\tList<ListNode> list = new ArrayList<ListNode>();\n\t\tif (root == null) {\n\t\t\treturn list;\n\t\t}\n\n\t\tQueue<TreeNode> queue = new LinkedList<TreeNode>();\n\t\tqueue.offer(root);\n\t\tListNode dummy = new ListNode(0);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tdummy.next = null;\n\t\t\tListNode level = dummy;\n\t\t\tint size = queue.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tTreeNode head = queue.poll();\n\t\t\t\tif (head.left != null) {\n\t\t\t\t\tqueue.offer(head.left);\n\t\t\t\t}\n\t\t\t\tif (head.right != null) {\n\t\t\t\t\tqueue.offer(head.right);\n\t\t\t\t}\n\t\t\t\tlevel.next = new ListNode(head.val);\n\t\t\t\tlevel = level.next;\n\t\t\t}\n\t\t\tlist.add(dummy.next);\n\t\t}\n\t\treturn list;\n\t}",
"TreeNode binTree2List(TreeNode root)\n\t{\n\t // Base case\n\t if (root == null)\n\t return root;\n\t \n\t // Convert to DLL using bintree2listUtil()\n\t root = binTree2ListUtil(root);\n\t \n\t // bintree2listUtil() returns root node of the converted\n\t // DLL. We need pointer to the leftmost node which is\n\t // head of the constructed DLL, so move to the leftmost node\n\t while (root.left != null)\n\t root = root.left;\n\t \n\t return (root);\n\t}",
"private static void test02() {\n BinaryTreeNode node1 = new BinaryTreeNode();\n node1.value = 1;\n BinaryTreeNode node2 = new BinaryTreeNode();\n node2.value = 2;\n BinaryTreeNode node3 = new BinaryTreeNode();\n node3.value = 3;\n BinaryTreeNode node4 = new BinaryTreeNode();\n node4.value = 4;\n BinaryTreeNode node5 = new BinaryTreeNode();\n node5.value = 5;\n node5.left = node4;\n node4.left = node3;\n node3.left = node2;\n node2.left = node1;\n System.out.print(\"Before convert: \");\n printTree(node5);\n System.out.println(\"null\");\n BinaryTreeNode head = convert(node5);\n System.out.print(\"After convert : \");\n printList(head);\n System.out.println();\n }",
"private static void test03() {\n BinaryTreeNode node1 = new BinaryTreeNode();\n node1.value = 1;\n BinaryTreeNode node2 = new BinaryTreeNode();\n node2.value = 2;\n BinaryTreeNode node3 = new BinaryTreeNode();\n node3.value = 3;\n BinaryTreeNode node4 = new BinaryTreeNode();\n node4.value = 4;\n BinaryTreeNode node5 = new BinaryTreeNode();\n node5.value = 5;\n node1.right = node2;\n node2.right = node3;\n node3.right = node4;\n node4.right = node5;\n System.out.print(\"Before convert: \");\n printTree(node1);\n System.out.println(\"null\");\n BinaryTreeNode head = convert(node1);\n System.out.print(\"After convert : \");\n printList(head);\n System.out.println();\n }",
"public static Node treeToList(Node root) {\r\n // base case: empty tree -> empty list\r\n if (root == null)\r\n return (null);\r\n\r\n // Recursively do the subtrees (leap of faith!)\r\n Node aList = treeToList(root.left);\r\n Node bList = treeToList(root.right);\r\n\r\n // Make the single root node into a list length-1\r\n // in preparation for the appending\r\n root.left = root;\r\n root.right = root;\r\n\r\n // At this point we have three lists, and it's\r\n // just a matter of appending them together\r\n // in the right order (aList, root, bList)\r\n aList = append(aList, root);\r\n aList = append(aList, bList);\r\n\r\n return (aList);\r\n }",
"private static void test01() {\n BinaryTreeNode node10 = new BinaryTreeNode();\n node10.value = 10;\n BinaryTreeNode node6 = new BinaryTreeNode();\n node6.value = 6;\n BinaryTreeNode node14 = new BinaryTreeNode();\n node14.value = 14;\n BinaryTreeNode node4 = new BinaryTreeNode();\n node4.value = 4;\n BinaryTreeNode node8 = new BinaryTreeNode();\n node8.value = 8;\n BinaryTreeNode node12 = new BinaryTreeNode();\n node12.value = 12;\n BinaryTreeNode node16 = new BinaryTreeNode();\n node16.value = 16;\n node10.left = node6;\n node10.right = node14;\n node6.left = node4;\n node6.right = node8;\n node14.left = node12;\n node14.right = node16;\n System.out.print(\"Before convert: \");\n printTree(node10);\n System.out.println(\"null\");\n BinaryTreeNode head = convert(node10);\n System.out.print(\"After convert : \");\n printList(head);\n System.out.println();\n }",
"Node convertList2Binary(Node node) {\n\n\t\tQueue<Node> q = new LinkedList<Node>();\n\n\t\t// Base Case\n\t\tif (head == null) {\n\t\t\tnode = null;\n\t\t\treturn null;\n\t\t}\n\n\t\t// The first node is always the root node, and\n\t\t// add it to the queue\n\t\tnode = new Node(head.data);\n\t\tq.add(node);\n\n\t\t// advance the pointer to the next node\n\t\thead = head.next;\n\n\t\t// until the end of linked list is reached, do the\n\t\t// following steps\n\t\twhile (head != null) {\n\t\t\t\n\t\t\t// take the parent node from the q and\n\t\t\t// remove it from q\n\t\t\tNode parent = q.peek();\n\t\t\tNode pp = q.poll();\n\n\t\t\t// take next two nodes from the linked list.\n\t\t\t// We will add them as children of the current\n\t\t\t// parent node in step 2.b. Push them into the\n\t\t\t// queue so that they will be parents to the\n\t\t\t// future nodes\n\t\t\t\n\t\t\tNode leftChild = null, rightChild = null;\n\t\t\tleftChild = new Node(head.data);\n\t\t\tq.add(leftChild);\n\t\t\thead = head.next;\n\t\t\tif (head != null) {\n\t\t\t\trightChild = new Node(head.data);\n\t\t\t\tq.add(rightChild);\n\t\t\t\thead = head.next;\n\t\t\t}\n\n\t\t\t// assign the left and right children of\n\t\t\t// parent\n\t\t\tparent.left = leftChild;\n\t\t\tparent.right = rightChild;\n\t\t}\n\n\t\treturn node;\n\t}",
"public void BSTToDoublyList(TreeNode root){\n\t\tconvertToList(root);\n\t\tlistHead.left = listTail;\n\t\tlistTail.right = listHead;\n\t\treturn listHead;\n\t}",
"public TernaryTreeNode treeToList(TernaryTreeNode root) \n {\n if (root==null) \n return(null);\n \n // Recursively do the subtrees (leap of faith!)\n TernaryTreeNode aList = treeToList(root.left);\n TernaryTreeNode bList = treeToList(root.middle);\n TernaryTreeNode cList = treeToList(root.right);\n \n // Make the single root node into a list length-1\n // in preparation for the appending\n root.left = root;\n root.right = root;\n \n // At this point we have three lists, and it's\n // just a matter of appending them together\n // in the right order (aList, root, bList)\n \n aList=append(aList, bList);\n aList=append(aList, cList);\n aList = append(aList,root );\n \n \n // root = append(root, bList);\n \n \n return(aList);\n }",
"static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {\n List<T> result = new ArrayList<>();\n Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();\n BinaryTreeNode<T> previous = tree;\n\n stack.push(tree);\n\n while (!stack.isEmpty()) {\n BinaryTreeNode<T> node = stack.peek();\n\n if ((node.left == null) && (node.right == null)) { // leaf\n result.add(stack.pop().data);\n } else {\n if ((node.right != null) && (previous == node.right)) { // returning from right child\n result.add(stack.pop().data);\n } else if ((node.right == null) && (previous == node.left)) { // returning from left when right is null\n result.add(stack.pop().data);\n } else {\n if (node.right != null) stack.push(node.right);\n if (node.left != null) stack.push(node.left);\n }\n }\n\n previous = node;\n }\n\n return result;\n }",
"private BSTNode linkedListToTree (Iterator iter, int n) {\n // TODO Your code here\n \tint leftlenght,rightlength;\n \tdouble LenOfleft = n/2;\n \tleftlenght = (int)java.lang.Math.floor(LenOfleft);\n \trightlength = n - leftlenght -1;\n \t\n \t//linkedListToTree(iter,leftlenght);\n \t//Object item = iter.next();\n \t//linkedListToTree(iter,rightlength);\n \t\n return new BSTNode(linkedListToTree(iter,leftlenght),iter.next(),linkedListToTree(iter,rightlength)) ;\n }",
"public TreeNode sortedListToBST(ListNode head) {\n if (head == null)\n return null;\n ListNode preP = null;\n ListNode p = head;\n ListNode p2 = head;\n while (p2 != null && p2.next != null) {\n preP = p;\n p = p.next;\n p2 = p2.next.next;\n }\n ListNode left = head;\n if (preP != null) {\n preP.next = null;\n }\n ListNode right = p.next;\n\n TreeNode node = new TreeNode(p.val);\n if (preP != null) {\n node.left = sortedListToBST(left);\n }\n node.right = sortedListToBST(right);\n return node;\n }",
"Node BinaryTree2DoubleLinkedList(Node node, Node prev){\n //edge case if first call is null\n if (node == null) return null;\n\n //recursively convert right\n if (node.right != null){\n prev = BinaryTree2DoubleLinkedList(node.right, prev);\n }\n\n //connect with the last node looked at (minimum of right tree)\n node.right = prev;\n if (prev != null) prev.left = node;\n prev = node;\n\n //pass last node looked at to left subtree and recurse\n if (node.left != null){\n prev = BinaryTree2DoubleLinkedList(node.left, prev);\n }\n\n return prev;\n }",
"public BinaryTreeByLinkedList() {\n\t\tthis.root = null;\n\t}",
"public List<Node> toList() {\n return tree.toList();\n }",
"private TreeNode toBST(ListNode head, ListNode tail) {\n\t\tListNode slow = head;\n\t\tListNode fast = head;\n\t\tif(head==tail)\n\t\t\treturn null;\n\t\twhile(fast!=tail&&fast.next!=tail){\n\t\t\tslow = slow.next;\n\t\t\tfast = fast.next.next;\n\t\t}\n\t\tTreeNode tmp = new TreeNode(slow.val);\n\t\ttmp.left = toBST(head, slow);\n\t\ttmp.right = toBST(slow.next, tail);\n\t\t\n\t\treturn tmp;\n\t}",
"public static void main(String[] args)\n {\n BinaryTree tree1 = new BinaryTree();\n tree1.root = new Node(1);\n tree1.root.left = new Node(2);\n tree1.root.right = new Node(5);\n tree1.root.left.left = new Node(3);\n tree1.root.left.right = new Node(4);\n tree1.root.right.left = new Node(7);\n tree1.root.right.left.left = new Node(8);\n\n /*\n BinaryTree tree = new BinaryTree();\n tree.root = new Node(10);\n tree.root.left = new Node(12);\n tree.root.right = new Node(15);\n tree.root.left.left = new Node(25);\n tree.root.left.right = new Node(30);\n tree.root.right.left = new Node(36);\n */\n\n // convert to DLL\n tree1.head = tree1.BinaryTree2DoubleLinkedList(tree1.root, null);\n\n // Print the converted List\n tree1.printList(tree1.head);\n\n // print reverse\n Node n = tree1.head;\n while (n.right != null){\n n = n.right;\n }\n tree1.printListRev(n);\n }",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n StringBuilder result = serialiseBT(root, new StringBuilder());\n System.out.println(result.toString());\n String[] strings = result.toString().split(\",\");\n TreeNode head = deserialize(strings, new int[]{0});\n System.out.println(serialiseBT(head, new StringBuilder()));\n }",
"public TreeNode deserialize(String data) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n data=data.substring(1,data.length()-1);\n System.out.println(data);\n if(data.length()==0) return null;\n String[] datas=data.split(\",\");\n if (datas.length%2==0) {\n data=data.concat(\",null\");\n System.out.println(data);\n datas=data.split(\",\");\n }\n TreeNode[] nodes=new TreeNode[datas.length];\n nodes[0]=new TreeNode(Integer.parseInt(datas[0]));\n int p=0;\n for (int i=1;i<datas.length;i+=2){\n System.out.println(datas[i]);\n System.out.println(datas[i+1]);\n nodes[i]=datas[i].equals(\"null\")?null:new TreeNode(Integer.parseInt(datas[i]));\n nodes[i+1]=datas[i+1].equals(\"null\")?null:new TreeNode(Integer.parseInt(datas[i+1]));\n nodes[p].left=nodes[i];\n nodes[p].right=nodes[i+1];\n p++;\n while(nodes[p]==null) p++;\n }\n return nodes[0];\n // res=new ArrayList<Integer>(Arrays.asList(data.split(\",\")));\n }",
"public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }",
"private static List<LinkedList<BinaryTreeNode<Integer>>> createLevelLinkedLists(BinaryTreeNode<Integer> root) {\n List<LinkedList<BinaryTreeNode<Integer>>> result = new ArrayList<>();\n\n // current level\n LinkedList<BinaryTreeNode<Integer>> current = new LinkedList<>();\n if (root != null) {\n current.add(root);\n }\n while (current.size() > 0) {\n // add previous level\n result.add(current);\n LinkedList<BinaryTreeNode<Integer>> parents = current; // go to the next level\n current = new LinkedList<>();\n for (BinaryTreeNode<Integer> parent : parents) {\n // visit the children\n if (parent.left != null) {\n current.add(parent.left);\n }\n if (parent.right != null) {\n current.add(parent.right);\n }\n\n }\n\n }\n return result;\n\n }",
"public TreeNode sortedListToBST(ListNode head) {\n int len;\n len = 0;\n ListNode ptr;\n ptr = head;\n while( ptr != null){\n ptr = ptr.next;\n len ++;\n }\n return buildTree(head, len).root; \n }",
"public Node sortedLinkedListToBST(ListNode root) {\n ListNode temp = root;\n int length = 0;\n while (temp != null) {\n temp = temp.next;\n length++;\n }\n\n list = root;\n return sortedLinkedListToBST(0, length - 1);\n //throw new IllegalArgumentException();\n }",
"public Node decode(TreeNode root) {\n if (root == null) return null;\n\n Node newNodeRoot = new Node(root.val, new ArrayList<>());\n\n // Decoding all the children nodes\n TreeNode sibling = root.left;\n while (sibling != null) {\n newNodeRoot.children.add(decode(sibling));\n sibling = sibling.right;\n }\n\n return newNodeRoot;\n }",
"public TreeNode deserialize(String data) {\n //1,2,3,null,null,4,5\n // 0 1 2 3 4 5 6 7\n // 1, 2, null, 3, null, 4, null, 5\n\n if (data == null || data.length() ==0)\n return null;\n\n StringTokenizer st = new StringTokenizer(data, \",\");\n String[] nodes = new String[st.countTokens()];\n int index =0;\n while (st.hasMoreTokens()) {\n nodes[index++] = st.nextToken();\n }\n\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n Queue<TreeNode> nodeQueue = new LinkedBlockingQueue<TreeNode>();\n Queue<Integer> indexQueue = new LinkedBlockingQueue<Integer>();\n int currentIndex = 0;\n\n indexQueue.offer(currentIndex);\n nodeQueue.offer(root);\n\n while (!nodeQueue.isEmpty()) {\n\n TreeNode node = nodeQueue.poll();\n int nodeIndex = indexQueue.poll();\n int leftChild = 2 * nodeIndex + 1;\n int rightChild = 2 * nodeIndex + 2;\n TreeNode leftNode = generateNode(leftChild, nodes);\n if (leftNode != null) {\n node.left = leftNode;\n nodeQueue.offer(leftNode);\n indexQueue.offer(++currentIndex);\n }\n\n TreeNode rightNode = generateNode(rightChild, nodes);\n if (rightNode != null) {\n node.right = rightNode;\n nodeQueue.offer(rightNode);\n indexQueue.offer(++currentIndex);\n }\n }\n\n return root;\n\n }",
"public Node decode(TreeNode root) {\n if (root == null) {\n return null;\n }\n Node result = new Node(root.val, new ArrayList<>());\n TreeNode cur = root.left;\n while (cur != null) {\n result.children.add(decode(cur));\n cur = cur.right;\n }\n return result;\n }",
"public void convertBSTtoArray(){\r\n\t\tconvertBSTtoArray(BST.root) ;\r\n\t}",
"public BSTNode sortedListToBST(ListNode head) {\n\n int len =0;\n ListNode currentNode = head;\n while(currentNode != null){\n len++;\n currentNode = currentNode.next;\n }\n return constructRec(head, 0, len-1);\n\n }",
"public unsortedList2(Node root){\n\t\n\tNode first = root;\n\tNode runner;\n\twhile(root != null){\n\t\trunner = first;\n\t\twhile(runner != null){\n\t\t\t\tif(runner.next.val==root.val){\n\t\t\t\t\trunner.next = runner.next.next;\n\t\t\t\t}else{\n\t\t\t\t\trunner=runner.next;\n\t\t\t\t}\n\t\t}\n\t\tfirst=root.next;\n\t}\n}",
"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}",
"private void constructBSTree(Node<T> u, int n, String lr) {\n\t\tn++;\n\t\taddToPT(n, lr + \" \" + u.x.toString());\n\t\telements.add(u.x);\n\t\tif (u.left != nil)\n\t\t\tconstructBSTree(u.left, n, lr + \"L\");\n\t\tif (u.right != nil)\n\t\t\tconstructBSTree(u.right, n, lr + \"R\");\n\t}",
"public LinkedList<T> toLinkedList() {\n LinkedList<T> out = new LinkedList<>();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n out.add(currentNode.data);\n currentTreeIndex = currentNode.nextIndex;\n }\n return out;\n }",
"private LinkedList descending(BinarySearchTree curr, LinkedList treeAsList){\r\n\t\t\r\n\t\t//Has no leaves, just 1 item\r\n\t\tif(curr.getLeftChild() == null && curr.getRightChild() == null){\r\n\t\t\ttreeAsList.add(curr);\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//Get leftChild\r\n\t\t\tif(curr.getRightChild() != null){\r\n\t\t\t\tdescending(curr.getRightChild(), treeAsList);\r\n\t\t\t}\r\n\t\t\r\n\t\t\t//Get node\r\n\t\t\ttreeAsList.add(curr.getRoot());\r\n\t\t\r\n\t\t\t//get rightChild\r\n\t\t\tif(curr.getLeftChild() != null){\r\n\t\t\t\tdescending(curr.getLeftChild(), treeAsList);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsList;\r\n\t}",
"public ArrayList<K> inOrdorTraverseBST(){\n BSTNode<K> currentNode = this.rootNode;\n LinkedList<BSTNode<K>> nodeStack = new LinkedList<BSTNode<K>>();\n ArrayList<K> result = new ArrayList<K>();\n \n if (currentNode == null)\n return null;\n \n while (currentNode != null || nodeStack.size() > 0) {\n while (currentNode != null) {\n nodeStack.add(currentNode);\n currentNode = currentNode.getLeftChild();\n }\n currentNode = nodeStack.pollLast();\n result.add(currentNode.getId());\n currentNode = currentNode.getRightChild();\n }\n \n return result;\n }",
"public Tree(List<E> values, boolean d)\n {\n debug = d;\n Node empty = new Node(null, null, null);\n Deque<Node> worklist = new ArrayDeque<>();\n int size = values.size();\n int leafCount = nextPowerOf2(size);\n int i;\n \n for(i = 0; i < size; i++)\n if (values.get(i) == null)\n System.out.println(\"ignoring null value\");\n else\n worklist.addLast(new Node(values.get(i), null, null));\n\n for(; i < leafCount; i++)\n worklist.addLast(empty);\n \n while (worklist.size() > 1)\n {\n if (debug)\n {\n System.out.println(\"\\n worklist length = \" + worklist.size());\n System.out.println(\"worklist = \" + worklist);\n }\n Node n1 = worklist.pollFirst();\n Node n2 = worklist.pollFirst();\n \n if (n1 == empty)\n worklist.addLast(n2);\n else if (n2 == empty)\n worklist.addLast(n1);\n else if (n1.compareTo(n2) < 0)\n worklist.addLast(new Node(n1.value, n1.promote(), n2));\n else\n worklist.addLast(new Node(n2.value, n1, n2.promote()));\n }\n \n root = worklist.pollFirst();\n if (root.value == null)\n root = null;\n }",
"public ArrayList<TreeNode> flatternTree(TreeNode root){\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n ArrayList<TreeNode> returnList = new ArrayList<TreeNode>();\n // if empty tree\n if (root == null){\n return null;\n }\n // else\n queue.add(root);\n while(!queue.isEmpty()){\n TreeNode obj = queue.get(0);\n returnList.add(obj);\n if (obj.left != null){\n queue.add(obj.left);\n }\n if (obj.right != null){\n queue.add(obj.right);\n }\n queue.remove(0);\n }\n return returnList;\n }",
"public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }",
"public TreeNode deserialize(String data) {\n \tif(data == null || data.length() == 0)\n return null;\n String[] splits = data.split(\",\");\n if(splits.length == 0)\n return null;\n Queue<TreeNode> curList = new LinkedList<TreeNode>();\n int index = 0;\n if(isNull(splits[index]))\n return null;\n TreeNode head = new TreeNode(Integer.parseInt(splits[index++])); \n curList.add(head);\n Queue<TreeNode> nextList = new LinkedList<TreeNode>();\n while(curList.size() != 0){\n while(curList.size() != 0){\n TreeNode curNode = curList.poll();\n if(isNull(splits[index])){\n curNode.left = null;\n index++;\n }\n else{\n TreeNode left = new TreeNode(Integer.parseInt(splits[index++]));\n curNode.left = left;\n nextList.add(left);\n }\n if(isNull(splits[index])){\n curNode.right = null;\n index++;\n }\n else{\n TreeNode right = new TreeNode(Integer.parseInt(splits[index++]));\n curNode.right = right;\n nextList.add(right);\n }\n }\n curList = nextList;\n }\n return head;\n }",
"public TreeNode deserialize(String data) {\n // write your code here\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n boolean isLeftPosition = true;\n String[] stringArray = data.substring(1, data.length() - 1).split(\",\");\n if(data.equals(\"{}\")){\n \treturn null;\n }\n TreeNode root = new TreeNode(Integer.parseInt(stringArray[0]));\n queue.add(root);\n int index = 0;\n for(int i = 1; i < stringArray.length; i++){\n \tif(!stringArray[i].equals(\"#\")){\n \t\tTreeNode node = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\tSystem.out.print((new TreeNode(Integer.parseInt(stringArray[i])).equals(new TreeNode(Integer.parseInt(stringArray[i])))));\n \t\tif (isLeftPosition){\n \t\t queue.get(index).left = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\telse {\n \t\t queue.get(index).right = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\tqueue.add(new TreeNode(Integer.parseInt(stringArray[i])));\n \t}\n \tif(!isLeftPosition) index++;\n \tisLeftPosition = !isLeftPosition;\n }\n return root;\n }",
"public static void convert(BinarySearchTree bst, LinkedList list){\n convertPrivate(bst.root, list); //Calling private method //\r\n }",
"public static void levelOrderLinewise1(Node node){\r\n Queue<Node> mainq = new ArrayDeque<>();\r\n Queue<Node> childq = new ArrayDeque<>();\r\n \r\n //Adding root in mainq\r\n mainq.add(node);\r\n \r\n while(mainq.size()>0){\r\n //1. get + remove\r\n Node rem = mainq.remove();\r\n \r\n //2. Print \r\n System.out.print(rem.data + \" \");\r\n \r\n //3. Add children of node to Childq\r\n for(Node child : rem.children){\r\n childq.add(child);\r\n }\r\n \r\n //Check if size of mainq got 0 then print \"enter\" and swap the mainq and childq\r\n if(mainq.size()==0){\r\n System.out.println();\r\n Queue<Node> temp = new ArrayDeque<>();\r\n temp = mainq;\r\n mainq = childq;\r\n childq = temp;\r\n }\r\n }\r\n }",
"public static Node make_huffmann_tree(List li){\n //Sorting list in increasing order of its letter frequency \n li.sort(new comp());\n Node temp=null;\n Iterator it=li.iterator();\n //System.out.println(li.size());\n //Loop for making huffman tree till only single node remains in list\n while(true){\n temp=new Node();\n //a and b are Node which are to be combine to make its parent\n Node a=new Node(),b=new Node();\n a=null;b=null;\n //checking if list is eligible for combining or not\n //here first assignment of it.next in a will always be true as list till end will\n //must have atleast one node\n a=(Node)it.next();\n //Below condition is to check either list has 2nd node or not to combine \n //If this condition will be false, then it means construction of huffman tree is completed\n if(it.hasNext()){b=(Node)it.next();}\n //Combining first two smallest nodes in list to make its parent whose frequncy \n //will be equals to sum of frequency of these two nodes \n if(b!=null){\n temp.freq=a.freq+b.freq;a.data=0;b.data=1;//assigining 0 and 1 to left and right nodes\n temp.left=a;temp.right=b;\n //after combing, removing first two nodes in list which are already combined\n li.remove(0);//removes first element which is now combined -step1\n li.remove(0);//removes 2nd element which comes on 1st position after deleting first in step1\n li.add(temp);//adding new combined node to list\n //print_list(li); //For visualizing each combination step\n }\n //Sorting after combining to again repeat above on sorted frequency list\n li.sort(new comp()); \n it=li.iterator();//resetting list pointer to first node (head/root of tree)\n if(li.size()==1){return (Node)it.next();} //base condition ,returning root of huffman tree \n }\n}",
"public TreeNode deserialize(String data) {\n if (data == null) return null;\n String[] nodes = data.split(separator);\n Queue<String> q = new LinkedList<>();\n for (String n : nodes) {\n q.offer(n);\n }\n return helper(q);\n }",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] node = data.split(\" \");\n Queue<TreeNode> qu = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(node[0]));\n qu.offer(root);\n int i = 1;\n while (!qu.isEmpty()) {\n Queue<TreeNode> nextQu = new LinkedList<>();\n while (!qu.isEmpty()) {\n TreeNode x = qu.poll();\n if (node[i].equals(\"null\")) x.left = null;\n else {\n x.left = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.left);\n }\n i++;\n if (node[i].equals(\"null\")) x.right = null;\n else {\n x.right = new TreeNode(Integer.parseInt(node[i]));\n nextQu.offer(x.right);\n }\n i++;\n }\n qu = nextQu;\n }\n return root;\n }",
"public TreeNode sortedListToBST(ListNode head) {\n if (head == null) {\n return null;\n }\n\n // Find the middle element for the list.\n ListNode mid = this.findMiddleElement(head);\n\n // The mid becomes the root of the BST.\n TreeNode node = new TreeNode(mid.val);\n\n // Base case when there is just one element in the linked list\n if (head == mid) {\n return node;\n }\n\n // Recursively form balanced BSTs using the left and right halves of the original list.\n node.left = this.sortedListToBST(head);\n node.right = this.sortedListToBST(mid.next);\n return node;\n }",
"public TreeNode deserialize(String data) {\r\n if (\"n\".equals(data)) {\r\n return null;\r\n }\r\n\r\n final String[] nodes = data.split(\", \");\r\n int i = 0;\r\n final TreeNode root = new TreeNode(Integer.parseInt(nodes[i]));\r\n final Queue<TreeNode> queue = new ArrayDeque<>();\r\n queue.add(root);\r\n i++;\r\n while (!queue.isEmpty()) {\r\n final TreeNode node = queue.poll();\r\n\r\n if (!\"n\".equals(nodes[i])) {\r\n node.left = new TreeNode(Integer.parseInt(nodes[i]));\r\n queue.add(node.left);\r\n } else {\r\n node.left = null;\r\n }\r\n i++;\r\n\r\n\r\n if (!\"n\".equals(nodes[i])) {\r\n node.right = new TreeNode(Integer.parseInt(nodes[i]));\r\n queue.add(node.right);\r\n } else {\r\n node.right = null;\r\n }\r\n i++;\r\n }\r\n\r\n return root;\r\n }",
"List<String> getTrees();",
"public void convertBinaryTreeToBinarySearchTree()\n\t{\n\t\tif(root==null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t/*Inorder traversal to fill array*/\n\t\tinOrderTraversal(root);\n\t\t/*sorting the array*/\n\t\tCollections.sort(arr);\n\t\t/*Traverse tree using inorder traversal, and replace the node data with data in sorted array*/\n\t\treplaceNodeInInorderTraverse(root);\n\t\t\n\t}",
"public TreeNode sortedListToBST(ListNode head) {\n // input checking\n if (head == null) {\n return null;\n }\n // first convert the List into an Array\n List<Integer> vals = new ArrayList();\n while (head != null) {\n vals.add(head.val);\n head = head.next;\n }\n return helper(vals, 0, vals.size() - 1);\n }",
"private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public BSTNode sortedListToBST(ListNode head, int start, int end) {\n if(start > end)\n return null;\n int mid = start + (end- start)/2;\n BSTNode leftChild = sortedListToBST(head,start, mid-1);\n BSTNode parent = new BSTNode(getListDataByPosition(head,mid));\n parent.setLeft(leftChild);\n BSTNode rightChild = sortedListToBST(head,mid+1, end);\n parent.setRight(rightChild);\n return parent;\n\n }",
"public TreeNode deserialize(String data) {\r\n // We use a queue because we can deserialse in the same way we serialised (preorder)\r\n Queue<String> dserialised = new LinkedList<>();\r\n dserialised.addAll(Arrays.asList(data.split(\",\")));\r\n return helper(dserialised);\r\n }",
"private Result buildTree(ListNode head, int len ){\n Result result = new Result(null, head);\n if (head == null)\n return result;\n if (len <= 0)\n return result;\n TreeNode left, right;\n // travel left \n Result l = buildTree(head, len / 2);\n // create root \n result.root = new TreeNode(l.tail.val);\n result.root.left = l.root;\n // travel right \n Result r = buildTree(l.tail.next, len - len / 2 - 1);\n result.root.right = r.root;\n result.tail = r.tail;\n return result;\n }",
"public abstract List<Node> getChildNodes();",
"private static List<LinkedList<Integer>> fillElementsAtEachDepth(BinaryTreeNode<Integer> binaryTree) {\n List<LinkedList<Integer>> depthElements = new ArrayList<>();\n fillElementsAtEachDepth(binaryTree, depthElements, 0);\n return depthElements;\n }",
"public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }",
"public List<T> breadthFirstTraversal() {\n var result = new ArrayList<T>();\n var queue = new LinkedList<Node<T>>();\n queue.add(root);\n while(!queue.isEmpty()) {\n var node = queue.pop();\n result.add(node.value);\n acceptNotNull(node.left, queue::add);\n acceptNotNull(node.right, queue::add);\n }\n return result;\n }",
"public TreeNode deserialize(String data) {\n// String[] nodes = data.split(\",\");\n Deque<String> nodes = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return build(nodes);\n }",
"public TreeNode deserialize(String data){\n String[] arr = data.split(\",\");\n List<String> list = new ArrayList<String>(Arrays.asList(arr));\n return desHelper(list);\n }",
"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}",
"public TreeNode deserialize(String data) {\n if (data.length() == 0) return null;\n String[] vals = data.split(\"\\\\,\");\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(vals[0]));\n queue.offer(root);\n for (int i = 1; i < vals.length; ++i) {\n TreeNode cur = queue.poll();\n if (!vals[i].equals(\"#\")) {\n cur.left = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.left);\n } \n if (!vals[++i].equals(\"#\")) {\n cur.right = new TreeNode(Integer.valueOf(vals[i]));\n queue.offer(cur.right);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\r\n\r\n\t\tQueue<TreeNode> q = new LinkedList<>();\r\n\t\tint[] start = new int[1];\r\n\t\tint qSize = 0;\r\n\t\tTreeNode head = read(data, start);\r\n\t\tif (head == null)\r\n\t\t\treturn head;\r\n\t\tq.offer(head);\r\n\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tqSize = q.size();\r\n\r\n\t\t\tfor (int i = 0; i < qSize; i++) {\r\n\t\t\t\tTreeNode n = q.poll();\r\n\t\t\t\tif (start[0] >= data.length()) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tn.left = read(data, start);\r\n\r\n\t\t\t\tn.right = read(data, start);\r\n\t\t\t\tif (n.left != null) {\r\n\t\t\t\t\tq.offer(n.left);\r\n\t\t\t\t}\r\n\t\t\t\tif (n.right != null) {\r\n\t\t\t\t\tq.offer(n.right);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}",
"public TreeNode deserialize(String data) {\n \n Queue<String> q = new LinkedList<>(Arrays.asList(data.split(\" \")));\n return helper(q);\n }",
"public Node getLLfromBst(Node root)\n {\n\tif (root == null)\n\t{\n\t return null;\n\t}\n\n\tNode leftHead = getLLfromBst(root.left);\n\tNode rightHead = getLLfromBst(root.right);\n\t\n\tNode head = root;\n\thead.left = head.right = head;\n\n\tif (leftHead != null)\n\t{\n\t Node leftTail = leftHead.left;\n\t leftTail.right = root;\n\t root.left = leftTail;\n\n\t // Circular doubly linkedlist\n\t leftHead.left = root;\n\t root.right = leftHead;\n\t head = leftHead;\n\t}\n\n\tif (rightHead != null)\n\t{\n\t Node rightTail = rightHead.left;\n\t root.right = rightHead;\n\t rightHead.left = root;\n\t head.left = rightTail;\n\t rightTail.right = head;\n\t}\n\n\treturn head;\n }",
"public TreeNode sortedListToBST(ListNode head) {\n if (head == null) return null;\n List<Integer> nums = new ArrayList<>();\n while (head != null ) {\n nums.add(head.val);\n head = head.next;\n }\n\n TreeNode root = helper(nums, 0, nums.size()-1);\n return root;\n }",
"public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i<nums.length;++i) System.out.print(nums[i]);\n return deserialize(new DataIterator(nums), false, 0);\n }",
"static void levelOrder(Node root){\n Queue<Node> queue = new LinkedList<Node>();\r\n \r\n queue.add(root);\r\n while (!queue.isEmpty()) {\r\n Node head = queue.remove();\r\n\r\n if (head == null) {\r\n continue;\r\n }\r\n\r\n System.out.print(head.data + \" \");\r\n\r\n queue.add(head.left);\r\n queue.add(head.right);\r\n }\r\n System.out.println();\r\n \r\n }",
"public TreeNode deserialize(String data) {\n if (data == null || data.length() == 0) return null;\n Queue<TreeNode> queue = new LinkedList<>();\n String[] nodes = data.split(\",\");\n TreeNode root = new TreeNode(Integer.parseInt(nodes[0]));\n queue.offer(root);\n for (int i = 1; i < nodes.length; i += 2) {\n TreeNode cur = queue.poll();\n if (!nodes[i].equals(\"null\")) {\n TreeNode left = new TreeNode(Integer.parseInt(nodes[i]));\n cur.left = left;\n queue.offer(left);\n }\n if (!nodes[i+1].equals(\"null\")) {\n TreeNode right = new TreeNode(Integer.parseInt(nodes[i+1]));\n cur.right = right;\n queue.offer(right);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String tree) {\r\n\r\n // **** sanity check ****\r\n if (tree.isEmpty())\r\n return null;\r\n\r\n // **** populate the queue with the serialized data ****\r\n Queue<String> q = new LinkedList<>(Arrays.asList(tree.split(\" \")));\r\n\r\n // **** deserialize the BST ****\r\n return deserialize(q, Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n }",
"public TreeNode deserialize(String data) {\n //LinkedList doesnot have the constructor form array\n LinkedList<String> l = new LinkedList<>();\n //LinkedList.addAll doesnot support array, need to use Arrays.asList\n //String.split(String regex, int limit) when limit<0, return the most part of splits as possibile, delete the empty items\n l.addAll(Arrays.asList(data.split(\",\",-1)));\n TreeNode root = build(l);\n return root;\n }",
"public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}",
"protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }",
"public TreeNode deserialize(String data) {\n String[] token = data.split(\",\");\n int index = 0;\n Queue<TreeNode> q = new LinkedList<>();\n TreeNode root = convertTreeNode(token[index++]);\n q.add(root);\n \n while(!q.isEmpty()) {\n TreeNode node = q.poll();\n if (node == null) {\n continue;\n }\n node.left = convertTreeNode(token[index++]);\n node.right = convertTreeNode(token[index++]);\n q.offer(node.left);\n q.offer(node.right);\n }\n \n return root;\n }",
"private void toArrayListRecursive (ArrayList<T> arr, BinaryTreeNode n) {\t\t\n\t\tif (n.left != null) toArrayListRecursive(arr,n.left);\n\t\tarr.add(n.data);\n\t\tif (n.right != null)toArrayListRecursive(arr,n.right);\t\t\t\t\n\t}",
"private static BinaryTreeNode<String> reconstructPreorderSubtree(\n List<String> inOrder,boolean left) {\n String subtreeKey=null;\n if(left && leftsubtreeldx>0) {\n subtreeKey = inOrder.get(leftsubtreeldx);\n --leftsubtreeldx;\n }\n if(!left && rightsubtreeldx<inOrder.size()){\n subtreeKey = inOrder.get(rightsubtreeldx);\n rightsubtreeldx++;\n }\n if (subtreeKey == null) {\n return null;\n }\n\n BinaryTreeNode<String> leftSubtree = reconstructPreorderSubtree(inOrder,true);\n BinaryTreeNode<String> rightSubtree = reconstructPreorderSubtree(inOrder,false);\n BinaryTreeNode bn=new BinaryTreeNode(subtreeKey, leftSubtree, rightSubtree);\n return bn;\n }",
"public TreeNode deserialize(String data) {\n if (data == null || data.equals(\"[]\") || data.length() <= 2) {\n return null;\n }\n\n String[] strArray = data.substring(1, data.length() - 1).split(\",\");\n Queue<String> list = new LinkedList<>();\n list.addAll(Arrays.asList(strArray));\n\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.valueOf(list.poll()));\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n\n String leftVal = list.poll();\n if (leftVal == null || leftVal.equals(\"null\")) {\n node.left = null;\n } else {\n TreeNode leftNode = new TreeNode(Integer.valueOf(leftVal));\n node.left = leftNode;\n queue.offer(leftNode);\n }\n\n String rightVal = list.poll();\n if (rightVal == null || rightVal.equals(\"null\")) {\n node.right = null;\n } else {\n TreeNode rightNode = new TreeNode(Integer.valueOf(rightVal));\n node.right = rightNode;\n queue.offer(rightNode);\n }\n }\n\n return root;\n }",
"List<Node> nodes();",
"public BinaryTreeSpliterator(Node n,List<Node> list) {\n\t\tthis.root = n;\n\t\tthis.list = list;\n\t}",
"private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }",
"public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}",
"protected List topologicalSort() {\r\n LinkedList order = new LinkedList();\r\n HashSet knownNodes = new HashSet();\r\n LinkedList nextNodes = new LinkedList();\r\n\r\n for (Iterator i = graph.getNodes().iterator(); i.hasNext(); ) {\r\n BBNNode node = (BBNNode) i.next();\r\n if (node.getChildren().size() == 0) {\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n order.addFirst(node);\r\n }\r\n }\r\n\r\n while (nextNodes.size() > 0) {\r\n BBNNode node = (BBNNode) nextNodes.removeFirst();\r\n if (knownNodes.contains(node)) continue;\r\n\r\n List children = node.getChildren();\r\n if (knownNodes.containsAll(children)) {\r\n order.addFirst(node);\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n }\r\n }\r\n return order;\r\n }",
"public TreeNode deserialize(String data) {\n if (data == \"\") {\n return null;\n }\n String[] dataSplit = data.split(\",\");\n Queue<String> nodes = new ArrayDeque<String>(Arrays.asList(dataSplit));\n Queue<TreeNode> queue = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(nodes.poll()));\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode curNode = queue.poll();\n String left = nodes.poll(), right = nodes.poll();\n if (!left.equals(\"X\")) {\n curNode.left = new TreeNode(Integer.parseInt(left));\n queue.offer(curNode.left);\n }\n if (!right.equals(\"X\")) {\n curNode.right = new TreeNode(Integer.parseInt(right));\n queue.offer(curNode.right);\n }\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] nodes=data.substring(1,data.length()-1).split(\",\");\n TreeNode root=reverseTreeNode(nodes[0]);\n Queue<TreeNode> parents=new LinkedList<>();\n TreeNode parent=root;\n boolean isLeft=true;\n for(int i=1;i<nodes.length;i++){\n TreeNode cur=reverseTreeNode(nodes[i]);\n if(isLeft){\n parent.left=cur;\n }else{\n parent.right=cur;\n }\n if(cur!=null){\n parents.add(cur);\n }\n isLeft=!isLeft;\n if(isLeft){\n parent=parents.poll();\n }\n }\n return root;\n }",
"public TreeNode build(LinkedList<String> l){\n String s = l.removeFirst();\n //Strings use equals() to compare value, \n //the \"==\" compares the adress that variable points to\n if(s.equals(\"null\")){\n return null;\n }\n else{\n //Integer.parseInt(String s) returns int, \n //Integer.valueOf(String s) returns Integer\n TreeNode node = new TreeNode(Integer.parseInt(s));\n node.left = build(l);\n node.right = build(l);\n return node;\n }\n }",
"public TreeNode deserialize(StringBuilder data) {\r\n //分成两组\r\n \tHashMap<Integer,Integer> showMapAct = new HashMap<>();\r\n \tStringBuilder[] result = data.split(\"k\");\r\n \t//deal with showMapAct\r\n \tif(result.length==1 || result[1].length()==0){\r\n \t}\r\n \telse{\r\n \t\tStringBuilder[] extraInfo = result[1].split(\",\");\r\n \t\tfor(int i = 0; i < extraInfo.length;i++){\r\n \t\t\tStringBuilder[] temp = extraInfo[i].split(\":\");\r\n \t\t\tshowMapAct.put(Integer.valueOf(temp[0]),Integer.valueOf(temp[1]));\r\n \t\t}///////\r\n \t}\r\n \tStringBuilder[] nums = result[0].split(\",\");\r\n \tint[] preOrder = new int[nums.length/2];\r\n \tint[] inOrder = new int[nums.length/2];\r\n \tinitArray(preOrder,nums,0,nums.length/2);\r\n \tinitArray(inOrder,nums,nums.length/2,nums.length);\r\n \treturn constructTree(preOrder,0,preOrder.length,inOrder,0,inOrder.length,showMapAct);\r\n }",
"public TreeNode sortedListToBST__(ListNode head) {\n return helper(head, null);\n }",
"public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }",
"List<UmsMenuNode> treeList();",
"@Test\n\tpublic void test1() {\n\t\tConvertGraphToBinaryTree tester=new ConvertGraphToBinaryTree();\n\t\tGraphNode n1=tester.new GraphNode(1);GraphNode n2=tester.new GraphNode(2);\n\t\tGraphNode n3=tester.new GraphNode(3);GraphNode n4=tester.new GraphNode(4);\n\t\tGraphNode n5=tester.new GraphNode(5);GraphNode n6=tester.new GraphNode(6);\n\t\tGraphNode n7=tester.new GraphNode(7);GraphNode n8=tester.new GraphNode(8);\n\t\tGraphNode n9=tester.new GraphNode(9);\n\t\tn1.neighbor.add(n2);n1.neighbor.add(n5);n1.neighbor.add(n6);n1.neighbor.add(n9);\n\t\tn2.neighbor.add(n1);n2.neighbor.add(n3);n2.neighbor.add(n7);\n\t\tn3.neighbor.add(n2);n3.neighbor.add(n4);n3.neighbor.add(n8);\n\t\tn4.neighbor.add(n3);n5.neighbor.add(n1);n6.neighbor.add(n1);\n\t\tn7.neighbor.add(n2);n8.neighbor.add(n3);n9.neighbor.add(n1);\n\t\tassertTrue(!tester.isBinaryTree(n1));\n\t\tGraphNode root=tester.convertToBinaryTree(n1);\n\t\tGraphNode last=null;\n\t\tGraphNode curr=root;\n\t\twhile(curr!=null){\n\t\t\tSystem.out.print(curr.val+\"->\");\n\t\t\tif(curr.neighbor.size()<=1&&root!=curr){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<curr.neighbor.size();i++){\n\t\t\t\tGraphNode next=curr.neighbor.get(i);\n\t\t\t\tif(next!=last){\n\t\t\t\t\tlast=curr;\n\t\t\t\t\tcurr=next;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public List getDirectChildrenTrees(List source, String treeid) {\n\t\tList result = new ArrayList();\r\n\t\tIterator it = source.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap item = (Map) it.next();\r\n\t\t\tif (item.get(StringPool.TREE_PARENTID) != null) {\r\n\t\t\t\tif (item.get(StringPool.TREE_PARENTID).toString().equals(treeid)) {\r\n\t\t\t\t\tresult.add(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static List<List<Integer>> levelOrder(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<>();\n Queue<TreeNode> visited = new LinkedList<>();\n queue.add(root);\n\n List<List<Integer>> result = new ArrayList<>();\n while (!queue.isEmpty()) {\n List<Integer> list = new ArrayList<>();\n while (!queue.isEmpty()) {\n TreeNode tn = queue.poll();\n list.add(tn.val);\n visited.add(tn);\n }\n int size = visited.size();\n\n while (size > 0){\n TreeNode treeNode = visited.poll();\n\n if (treeNode.left != null) {\n queue.add(treeNode.left);\n\n }\n if (treeNode.right != null) {\n queue.add(treeNode.right);\n }\n size--;\n }\n\n result.add(list);\n\n }\n\n return result;\n }",
"static ArrayList <Integer> levelOrder(Node root) \n {\n ArrayList<Integer> list=new ArrayList<>();\n Queue<Node> queue = new LinkedList<Node>(); \n queue.add(root); \n while (!queue.isEmpty()) \n { \n \n /* poll() removes the present head. \n For more information on poll() visit \n http://www.tutorialspoint.com/java/util/linkedlist_poll.htm */\n Node tempNode = queue.poll(); \n list.add(tempNode.data); \n \n /*Enqueue left child */\n if (tempNode.left != null) { \n queue.add(tempNode.left); \n } \n \n /*Enqueue right child */\n if (tempNode.right != null) { \n queue.add(tempNode.right); \n } \n }\n return list;\n }",
"public TreeNode buildTree(int[] A, int[] B) {\n HashMap<Integer, Integer> order = new HashMap<>();\n for (int i = 0; i < B.length; i++) {\n order.put(B[i], i);\n }\n\n // build Binary Tree from Pre-order list with order of nodes\n TreeNode root = new TreeNode(A[0]);\n Deque<TreeNode> stack = new LinkedList<>();\n stack.offerLast(root);\n\n /*\n for (int i = 1; i < A.length; i++) {\n if (order.get(A[i]) < order.get(stack.peekLast().val)) {\n TreeNode parent = stack.peekLast();\n parent.left = new TreeNode(A[i]);\n stack.offerLast(parent.left);\n }\n else {\n TreeNode parent = stack.peekLast();\n while(!stack.isEmpty() &&\n (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = new TreeNode(A[i]);\n stack.offerLast(parent.right);\n }\n\n }\n */\n for (int i = 1; i < A.length; i++) {\n TreeNode parent = stack.peekLast();\n TreeNode node = new TreeNode(A[i]);\n if (order.get(A[i]) < order.get(parent.val)) {\n parent.left = node;\n } else {\n while (!stack.isEmpty() && (order.get(stack.peekLast().val) < order.get(A[i]))) {\n parent = stack.pollLast();\n }\n parent.right = node;\n }\n stack.offerLast(node);\n }\n\n return root;\n }",
"public TreeNode encode(Node root) {\n if (root == null) {\n return null;\n }\n TreeNode head = new TreeNode(root.val);\n head.left = en(root.children);\n return head;\n }",
"public TreeNode deserialize(String data) {\n if (data == \"\") return null; \n \n String[] strs = data.split(\" \");\n Queue<TreeNode> q = new LinkedList<>();\n TreeNode root = new TreeNode(Integer.parseInt(strs[0]));\n q.offer(root);\n \n for (int i = 1; i < strs.length; i++) {\n TreeNode cur = q.poll(); // cannot use root, since we need return root at the end\n if (!strs[i].equals(\"null\")) { // use equals, not ==\n cur.left = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.left);\n }\n \n if (!strs[++i].equals(\"null\")) { // use equals, not ==\n cur.right = new TreeNode(Integer.parseInt(strs[i]));\n q.offer(cur.right);\n }\n }\n \n return root;\n }",
"public NodeList convertToNodeset() {\n/* 242 */ if (this.m_obj instanceof NodeList) {\n/* 243 */ return (NodeList)this.m_obj;\n/* */ }\n/* 245 */ return new DTMNodeList(asNodeIterator());\n/* */ }",
"private Tree<Token> convertToTreeOfTokens(Tree<String> tree) {\n Tree<Token> root = new Tree<Token>(makeOneToken(tree.getValue()));\n\n Iterator<Tree<String>> iter = tree.children();\n \n while (iter.hasNext()) {\n Tree<String> child = iter.next();\n root.addChildren(convertToTreeOfTokens(child));\n }\n return root;\n }",
"public TreeNode deserialize(String data) {\n String[] strs = data.split(\",\");\n LinkedList<String> list = new LinkedList<>();\n for(String s:strs){\n list.add(s);\n }\n return deserialize(list);\n }",
"public TreeNode deserialize1(String tree) {\r\n \r\n // **** sanity checks ****\r\n if (tree.isEmpty())\r\n return null;\r\n\r\n // **** split the tree string ****\r\n String[] strs = tree.split(\" \");\r\n\r\n // **** deserialise BST ****\r\n return deserialize1(strs, 0, strs.length - 1);\r\n }",
"List<TreeNodeDTO> genTree(boolean addNodeSize, boolean addRootNode, List<Long> disabledKeys);",
"public static List<Integer> serialize(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n result.add(null);\n return result;\n }\n\n Queue<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n result.add(root.val);\n while (!queue.isEmpty()) {\n TreeNode node = queue.remove();\n if (node.left == null)\n result.add(null);\n else {\n result.add(node.left.val);\n queue.add(node.left);\n }\n if (node.right == null)\n result.add(null);\n else {\n result.add(node.right.val);\n queue.add(node.right);\n }\n\n }\n for (int i = result.size() - 1; i > 0 && result.get(i) == null; --i) {\n result.remove(i);\n }\n return result;\n }"
] | [
"0.6721721",
"0.66762656",
"0.65908957",
"0.65765524",
"0.65606505",
"0.64109457",
"0.63727427",
"0.61681336",
"0.6113419",
"0.6068827",
"0.60547316",
"0.58871245",
"0.5884211",
"0.588198",
"0.5863456",
"0.5824767",
"0.58239865",
"0.5791823",
"0.57770014",
"0.5760967",
"0.57507783",
"0.5735526",
"0.5715399",
"0.5694233",
"0.5692576",
"0.563727",
"0.5623043",
"0.5619777",
"0.5615649",
"0.5611033",
"0.5603609",
"0.55949104",
"0.55792797",
"0.5570684",
"0.5566556",
"0.5541587",
"0.55361825",
"0.5530888",
"0.5513318",
"0.5507658",
"0.5499381",
"0.54965895",
"0.54875",
"0.5487049",
"0.54743856",
"0.5471751",
"0.5466779",
"0.5466607",
"0.5466037",
"0.54632086",
"0.54590064",
"0.5453334",
"0.5452484",
"0.545104",
"0.54481256",
"0.54453844",
"0.5445002",
"0.5443364",
"0.5440898",
"0.5432355",
"0.543208",
"0.5426776",
"0.54262483",
"0.5422313",
"0.5421022",
"0.54103935",
"0.54099506",
"0.54060805",
"0.5399984",
"0.539708",
"0.53908116",
"0.5383608",
"0.53824663",
"0.5378696",
"0.537736",
"0.5376861",
"0.53697044",
"0.5365815",
"0.5361158",
"0.5360266",
"0.5355706",
"0.535383",
"0.5351679",
"0.53433275",
"0.53428066",
"0.5338197",
"0.5337551",
"0.5336488",
"0.5325828",
"0.5323904",
"0.5320855",
"0.53089386",
"0.53076434",
"0.53075564",
"0.53062654",
"0.5304211",
"0.53013444",
"0.5300078",
"0.5299387",
"0.5294956",
"0.5294507"
] | 0.0 | -1 |
Memorymap the model file in Assets | private MappedByteBuffer loadModelFile(Activity activity) throws IOException {
AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);
FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());
FileChannel fileChannel = inputStream.getChannel();
long startOffset = fileDescriptor.getStartOffset();
long declaredLength = fileDescriptor.getDeclaredLength();
return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private MappedByteBuffer loadModelFile(Activity activity) throws IOException {\n AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"public MappedByteBuffer loadModelFile(AssetManager assetManager, String modelPath) throws IOException {\n AssetFileDescriptor fileDescriptor = assetManager.openFd(modelPath);\n FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());\n FileChannel fileChannel = inputStream.getChannel();\n long startOffset = fileDescriptor.getStartOffset();\n long declaredLength = fileDescriptor.getDeclaredLength();\n// fileDescriptor.close();\n return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);\n }",
"public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private Assets (){}",
"public void loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }",
"public void saveAssets() {\r\n int size = Main.materialList.size();\r\n for (int i=0; i<size; i++) {\r\n RawMaterial m = Main.materialList.get(i);\r\n if (materials.containsKey(m)) {\r\n myMaterials.add(m);\r\n materialAmounts.add(materials.get(m));\r\n }\r\n }\r\n size = Main.currencyList.size();\r\n for (int i=0; i<size; i++) {\r\n Currency c = Main.currencyList.get(i);\r\n if (currencies.containsKey(c)) {\r\n myCurrencies.add(c);\r\n currencyAmounts.add(currencies.get(c));\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic void serialize(Model model, OutputStream outputStream) {\n\t\tResourceSet resourceSet = new ResourceSetImpl();\r\n\r\n\t\t// Register the default resource factory -- only needed for stand-alone!\r\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\r\n\t\t\t Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl()\r\n\t\t);\r\n\r\n\t\t// Get the URI of the model file.\r\n\t\t//URI uri = URI.createFileURI(new File(\"mylibrary.xmi\").getAbsolutePath());\r\n\t\tURI uri = URI.createURI(SPAGOBI_MODEL_URI);\r\n\t\t \r\n\t\t// Create a resource for this file.\r\n\t\tResource resource = resourceSet.createResource(uri);\r\n\t\t \r\n\t\t// Add the book and writer objects to the contents.\r\n\t\tresource.getContents().add(model);\r\n\t\r\n\t\t// Save the contents of the resource to the file system.\r\n\t\ttry {\r\n\t\t\t//resource.save(Collections.EMPTY_MAP);\r\n\t\t\tresource.save(outputStream, Collections.EMPTY_MAP);\r\n\t\t} catch (IOException e) {\r\n\t\t throw new RuntimeException(\"Impossible to serialize model [\" + model.getName() + \"]\", e);\r\n\t\t}\t\r\n\t}",
"TiledMap loadMap(String path);",
"public StillModel loadModel(String filepath);",
"public void loadModelMatrix(Terrain terrain){\n Matrix4f transformationMatrix = Maths.createTransformationMatrix(new Vector3f(terrain.getX(),0,terrain.getZ()),0,0,0,1);\n shader.loadTransformationMatrix(transformationMatrix);\n }",
"public abstract Object toDexFile();",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }",
"void massiveModeLoading( File dataPath );",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveBitmapToDisk(String fileName) throws FileNotFoundException, IOException {\n // serialize\n // save to disk\n FileOutputStream fout = new FileOutputStream(\"assets/\"+fileName+\".bitmap\");\n ObjectOutputStream oos = new ObjectOutputStream(fout);\n oos.writeObject(this);\n }",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"private synchronized void updateModel(IFile modelFile) {\n MoleculeExt format = MoleculeExt.valueOf( modelFile );\n if ( format.isSupported()) {\n\n IMoleculesFromFile model;\n if (modelFile.exists()) {\n\n try {\n switch(format) {\n case SDF: model = new MoleculesFromSDF(modelFile);\n break;\n case SMI: model = new MoleculesFromSMI(modelFile);\n break;\n default: return;\n }\n\n }\n catch (Exception e) {\n return;\n }\n cachedModelMap.put(modelFile, model);\n }\n else {\n cachedModelMap.remove(modelFile);\n }\n }\n }",
"@Override\n public LiteModelWrapper loadInitializeModel() throws IOException {\n return new LiteModelWrapper(this.loadMappedFile(\"softmax_initialize_ones.tflite\"));\n }",
"@Override\r\n\tpublic void loadMaze(String name , String fileName) {\r\n\t\tMyDecompressorInputStream inFile;\r\n\t\ttry {\r\n\t\t\tinFile = new MyDecompressorInputStream(new FileInputStream(fileName));\r\n\t\t\tbyte[] b = new byte[4096];\r\n\t\t\tif(mazeInFile.containsKey(fileName)==true)\r\n\t\t\t{\r\n\t\t\t\tif(inFile.read(b)!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\tMaze3d maze = new Maze3d(b);\r\n\t\t\t\t\tcontroller.loadMaze(maze,name);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tcontroller.printStr(\"Can't load maze\");\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tcontroller.printStr(\"File \" + fileName + \" is not exist!\");\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }",
"private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }",
"public Assets() {\n\t\tinit();\n\t}",
"private void initMatDef() {\n matDef = manager.getAssetFolder().getFileObject(getMatDefName());\n\n //try to read from classpath if not in assets folder and store in a virtual filesystem folder\n if (matDef == null || !matDef.isValid()) {\n try {\n fs = FileUtil.createMemoryFileSystem();\n matDef = fs.getRoot().createData(name, \"j3md\");\n OutputStream out = matDef.getOutputStream();\n InputStream in = JmeSystem.getResourceAsStream(\"/\" + getMatDefName());\n if (in != null) {\n int input = in.read();\n while (input != -1) {\n out.write(input);\n input = in.read();\n }\n in.close();\n }\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n }",
"public Savable loadAsset() {\n return file.loadAsset();\n }",
"public interface IGameAsset {\n\t\n\t/**\n\t * abstract method for load all game's resources in startup time.\n\t */\n\tpublic void load();\n\n\t/**\n\t * Dispose the resources in game asset when exiting game\n\t */\n\tpublic void dispose();\n\t\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param isLoop set audio is looping\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return the Music\n\t */\n\tpublic Music loadMusic(String fileName, boolean isLoop, float volumn);\n\t/**\n\t * Load Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName, float volume);\n\t/**\n\t * Load a Sound from filepath\n\t * @param file File to load\n\t * @return the Sound\n\t */\n\tpublic Sound loadSound(String file);\n\n\t/**\n\t * Load a shader from shader-vs and shader-fs from file path\n\t * @param vsProcess\n\t * @param fsProcess\n\t * @return ShaderProgram\n\t */\n\tpublic ShaderProgram loadShader(String vsProcess, String fsProcess);\n\n\t/**\n\t * Load a Model for object 3D from file path\n\t * @param filepath\n\t * @return\n\t */\n\tpublic StillModel loadModel(String filepath);\n\t/**\n\t * Load texture from file path\n\t * @param file File to load\n\t * @return The texture\n\t */\n\tpublic Texture loadTexture(String file, Format format, boolean useMipMap);\n\n//\t/**abstract method for load TextureRegion\n//\t * @param filepath File to load\n//\t * @param format format of texture\n//\t * @param useMipMap\n//\t * @param rec \n//\t * @return\n//\t */\n//\tTextureRegion loadTextureRegion(String filepath, Format format,\n//\t\t\tboolean useMipMap, Rectangle rec);\n\n\t/**abstract method for load TextureRegion\n\t * @param texture texture of TextureRegion\n\t * @param rec rectangle used to specify the region on texture\n\t * @return\n\t */\n\tpublic TextureRegion loadTextureRegion(Texture texture, Rectangle rec);\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @param flip Flip the font for axis-y down\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage, boolean flip);\n\n\tpublic TextureRegion loadTextureRegion(Texture t);\n\n\tTextureRegion loadTextureRegion(String textureFile, Rectangle rec);\n\n\tTextureRegion loadTextureRegion(String textureFile);\n\n\tTexture loadTexture(String filepath);\n\n\tBitmapFont loadBitmapFont(String fileFont);\n\n\tShaderProgram loadShader(String vsFilePath);\n}",
"public static void createDeviceMap() {\n\t\ttry {\n\t\t\tSmapStreamList sat = new SmapStreamList();\n\t\t\tMap<String, SmapDevice> saMap = sat.convertToSADevices();\n\t\t\tFileWriter fw = new FileWriter(device_map_file);\t\t\t\n\t\t\tString json = sat.gson.toJson(saMap);\n\t\t\tfw.write(json);\n\t\t\tfw.close();\n\t\t\trenderText(json);\n\t\t} catch (Exception e) {\n\t\t\trenderText(e);\n\t\t}\n\t}",
"public void load() ;",
"public String getMappingFilePath();",
"public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}",
"public static File getModelFile(Context context, MonsterType id)\n {\n File modelFile;\n\n if(id == MonsterType.MONSTER_ONE)\n modelFile = AssetsManager.getAssetPathAsFile(context, \"models/Monster1.mfbx\");\n else\n modelFile = AssetsManager.getAssetPathAsFile(context, \"models/Monster2.mfbx\");\n\n return modelFile;\n }",
"public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }",
"public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}",
"private void loadTextures() {\r\n int[] imgData;\r\n int width;\r\n int height;\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n //圖片質量,數字越大越差\r\n options.inSampleSize = 1;\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(path, 0, path.length, options);\r\n width = bitmap.getWidth();\r\n height = bitmap.getHeight();\r\n imgData = new int[width * height * 4];\r\n bitmap.getPixels(imgData, 0, width, 0, 0, width, height);\r\n bitmap.recycle();\r\n System.gc();\r\n\r\n mTextures.add(Texture.loadTextureFromIntBuffer(imgData, width, height));\r\n }",
"protected MapResourcePack() {\n this.baseResourcePack = null;\n this.archive = null;\n }",
"public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public void loadSave(){\n if((new File(\"data.MBM\")).exists()){\n isNew = false;\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"data.MBM\"));\n String line = br.readLine();\n \n while (line != null) {\n \n if(line.contains(\"outDir\")){\n String[] result = line.split(\":\");\n outputDir = new File(result[1]);\n if(outputDir.exists() == false){\n isNew = true;\n }\n }\n else if(line.contains(\"MBMWORLD\")){\n String[] result = line.split(\":\");\n //1 = filename\n //2 = world name\n //3 = path\n //4 = date\n addWorld(new File(result[3]), result[2]);\n worlds.get(numWorlds()-1).setLastBackup(result[4]);\n }\n \n line = br.readLine();\n }\n \n br.close();\n \n } catch(IOException e){\n System.out.println(e);\n }\n }\n }",
"ViewResourcesMapping save(ViewResourcesMapping[] viewResourcesMapping) throws Exception;",
"public abstract void loadFile(Model mod, String fn) throws IOException;",
"public void setInMemory(boolean load);",
"private void saveMap() {\r\n new Thread(() -> {\r\n try {\r\n FileOutputStream f = new FileOutputStream(this.save_file);\r\n ObjectOutputStream S = new ObjectOutputStream(f);\r\n S.writeObject(this.music_map);\r\n S.close();\r\n f.close();\r\n if (!this.save_file.setLastModified(this.music_root.lastModified())) {\r\n throw new IllegalStateException(\"Impossibile aggiornare il file dizionario\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }).start();\r\n }",
"public void saveMap(String name){\n\t\tString path = new File (\".\").getAbsolutePath();\n\t\t//System.out.println(path);\n\t\tObjectOutputStream outputStream=null;\n\t\t\n\t\tString fileName=path.concat(\"//Maps//\"+name+\".txt\");\n\t\tFile file = new File(fileName);\n\t\t\n\t\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream =new FileOutputStream(file);\n\t\t\toutputStream = new ObjectOutputStream(fileOutputStream);\n\t\t\n\t\t\toutputStream.writeInt(getWidth());\n\t\t\toutputStream.writeInt(getHeight());\n\t\t\t\n\t\t\tfor (Path p : temp){\n\t\t\t\toutputStream.writeInt(p.getPos());\n\t\t\t}\n\t\t\toutputStream.writeInt(-1);\n\t\t\t\n\t\t\toutputStream.flush();\n\t\t\toutputStream.close();\n\t\t\tsaveMapName(name);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem opening the file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem with output to file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\n\n\n\t}",
"public void loadMedia() {\n MediaDBMapper mapper = new MediaDBMapper(ctx);\n\n String[] fileNames = {\n \"medved.jpg\",\n \"medved 2.jpg\",\n \"medved hnedy.jpg\",\n \"grizzly.jpg\",\n \"buk.jpg\",\n \"jedle.jpg\",\n \"jedle 2.jpg\"\n };\n\n File file = null;\n\n try {\n boolean autoCommit = getConnection().getAutoCommit();\n getConnection().setAutoCommit(false);\n\n try {\n\n for (String fileName : fileNames) {\n try {\n file = new File(\"resources\\\\\" + fileName);\n\n System.out.println(\"Opening: \" + file.getPath() + \".\");\n\n MediaEntity e = mapper.create();\n e.setName(file.getName().substring(0, file.getName().lastIndexOf('.')));\n\n mapper.loadImageFromFile(e, file.getPath());\n\n mapper.save(e);\n } catch (NullPointerException ex) {\n ex.printStackTrace();\n }\n\n// getConnection().commit();\n }\n\n } finally {\n getConnection().setAutoCommit(autoCommit);\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n// throw new RuntimeException(ex);\n }\n }",
"public void run() {\n\t\t\t\t\t\tFile tempFile;\n\t\t\t\t\t\tif (tempFileStack.size() >= numberOfFiles)\n\t\t\t\t\t\t\ttempFile = (File) tempFileStack.remove(0); // pop\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempFile = File.createTempFile(\n\t\t\t\t\t\t\t\t\t\t\"FM_\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ ((model.toString() == null) ? \"unnamed\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: model.toString()),\n\t\t\t\t\t\t\t\t\t\tfreemind.main.FreeMindCommon.FREEMIND_FILE_EXTENSION,\n\t\t\t\t\t\t\t\t\t\tpathToStore);\n\t\t\t\t\t\t\t\tif (filesShouldBeDeletedAfterShutdown)\n\t\t\t\t\t\t\t\t\ttempFile.deleteOnExit();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\t\tfreemind.main.Resources.getInstance()\n\t\t\t\t\t\t\t\t\t\t.logException(e);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmodel.saveInternal(tempFile, true /* =internal call */);\n\t\t\t\t\t\t\tmodel.getFrame()\n\t\t\t\t\t\t\t\t\t.out(Resources\n\t\t\t\t\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.format(\"automatically_save_message\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew Object[] { tempFile\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString() }));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\tfreemind.main.Resources.getInstance().logException(\n\t\t\t\t\t\t\t\t\te);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttempFileStack.add(tempFile); // add at the back.\n\t\t\t\t\t}",
"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 cacheBusRouteData()\n\t{\t\n\t\tdataMap = BusRouteDataFileReader.readAndCacheBusRouteData(this.pathname);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}",
"private static void putInPersistentCache(final Asset asset) {\n \n \t\tif (!usePersistentCache) {\n \t\t\treturn;\n \t\t}\n \n \t\tif (!assetIsInPersistentCache(asset)) {\n \n \t\t\tfinal File assetFile = getAssetCacheFile(asset);\n \n \t\t\tnew Thread() {\n \t\t\t\t@Override\n \t\t\t\tpublic void run() {\n \n \t\t\t\t\ttry {\n \t\t\t\t\t\tassetFile.getParentFile().mkdirs();\n \t\t\t\t\t\t// Image\n \t\t\t\t\t\tOutputStream out = new FileOutputStream(assetFile);\n \t\t\t\t\t\tout.write(asset.getImage());\n \t\t\t\t\t\tout.close();\n \n \t\t\t\t\t} catch (IOException ioe) {\n \t\t\t\t\t\tlog.error(\"Could not persist asset while writing image data\", ioe);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}.start();\n \n \t\t}\n \t\tif (!assetInfoIsInPersistentCache(asset)) {\n \n \t\t\tFile infoFile = getAssetInfoFile(asset);\n \n \t\t\ttry {\n \t\t\t\t// Info\n \t\t\t\tOutputStream out = new FileOutputStream(infoFile);\n \t\t\t\tProperties props = new Properties();\n \t\t\t\tprops.put(NAME, asset.getName() != null ? asset.getName() : \"\");\n \t\t\t\tprops.store(out, \"Asset Info\");\n \t\t\t\tout.close();\n \n \t\t\t} catch (IOException ioe) {\n \t\t\t\tlog.error(\"Could not persist asset while writing image properties\", ioe);\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t}\n \t}",
"public AssetsService() {\r\n }",
"public void restoreAssets() {\r\n for (int i=0; i<myMaterials.size(); i++) {\r\n materials.put(myMaterials.get(i), materialAmounts.get(i));\r\n }\r\n for (int i=0; i<myCurrencies.size(); i++) {\r\n currencies.put(myCurrencies.get(i), currencyAmounts.get(i));\r\n }\r\n }",
"public MarkerPackage(Context context) {\n models = new ArrayList<>();\n Log.i(\"mPackage\",\"Reached constructor\");\n File cacheDir = new File(context.getExternalCacheDir().getPath());\n populateList(cacheDir.listFiles());\n Collections.sort(models,new ModelComparator());\n //Collections.sort(models);\n for(MarkerModel path : models) {\n Log.i(\"mPackage\", path.getObj());\n }\n }",
"public void load();",
"public void load();",
"private void loadMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (varTmpDir.exists()) {\n FileInputStream fileIn = new FileInputStream(varTmpDir);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n longTermMemory = (HashMap<String, BoardRecord>) in.readObject();\n in.close();\n fileIn.close();\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"File not found\");\n c.printStackTrace();\n return;\n }\n\n System.out.println(\"RECALLED LONG TERM MEMORIES FROM \" + brainLocation + \": \" + longTermMemory.toString());\n }",
"@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}",
"public Object loadResource(CameraRecord record);",
"public static Material loadMaterialFile(String name) {\r\n\t\tMaterial mat = assetManager.loadMaterial(name);\r\n\t\tmaterialMap.put(name, mat);\r\n\t\treturn mat;\r\n\t}",
"@Override\r\n\tpublic void saveMaze(Maze3d maze, String name, String fileName) {\r\n\t\tMyCompressorOutputStream outFile;\r\n\t\ttry {\r\n\t\t\toutFile = new MyCompressorOutputStream(new FileOutputStream(fileName));\r\n\t\t\toutFile.write(maze.toByteArray());\r\n\t\t\tmazeInFile.put(fileName, maze);\r\n\t\t\tString s = \"file \"+fileName+\" is ready\";\r\n\t\t\tcontroller.printStr(s);\r\n\t\t\toutFile.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private static Asset getFromPersistentCache(MD5Key id) {\n \n \t\tif (id == null || id.toString().length() == 0) {\n \t\t\treturn null;\n \t\t}\n \n \t\tif (!assetIsInPersistentCache(id)) {\n \t\t\treturn null;\n \t\t}\n \n \t\tFile assetFile = getAssetCacheFile(id);\n \n \t\ttry {\n \t\t\tbyte[] data = FileUtils.readFileToByteArray(assetFile);\n \t\t\tProperties props = getAssetInfo(id);\n \n \t\t\tAsset asset = new Asset(props.getProperty(NAME), data);\n \n \t\t\tif (!asset.getId().equals(id)) {\n \t\t\t\tlog.error(\"MD5 for asset \" + asset.getName() + \" corrupted\");\n \t\t\t}\n \n \t\t\tassetMap.put(id, asset);\n \n \t\t\treturn asset;\n \t\t} catch (IOException ioe) {\n \t\t\tlog.error(\"Could not load asset from persistent cache\", ioe);\n \t\t\treturn null;\n \t\t}\n \n \t}",
"public void load() {\n }",
"public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tmp\");\n\n //Open an RandomAccessFile\n //Make sure you have added uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\n //into AndroidManifest.xml file\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n\n // get the width and height of the source bitmap.\n int width = imgIn.getWidth();\n int height = imgIn.getHeight();\n Bitmap.Config type = imgIn.getConfig();\n\n //Copy the byte to the file\n //Assume source bitmap loaded using options.inPreferredConfig = Config.ARGB_8888;\n FileChannel channel = randomAccessFile.getChannel();\n MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_WRITE, 0, imgIn.getRowBytes()*height);\n imgIn.copyPixelsToBuffer(map);\n //recycle the source bitmap, this will be no longer used.\n imgIn.recycle();\n System.gc();// try to force the bytes from the imgIn to be released\n\n //Create a new bitmap to load the bitmap again. Probably the memory will be available.\n imgIn = Bitmap.createBitmap(width, height, type);\n map.position(0);\n //load it back from temporary\n imgIn.copyPixelsFromBuffer(map);\n //close the temporary file and channel , then delete that also\n channel.close();\n randomAccessFile.close();\n\n // delete the temp file\n file.delete();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imgIn;\n }",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public List<ImageResourceWrapper> getMap() {\n // Declare a new list to hold the rendering info for the physics objects.\n List<ImageResourceWrapper> rtrnResources = new ArrayList<>();\n for(PhysicsEntity physicsEntity : this.physModel.getEntities()) {\n // Get the graphics entity corresponding to the current physics entity.\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(physicsEntity.getId());\n String imgResource = graphicsEntity.getImgResId(physicsEntity.getOrientation());\n rtrnResources.add(new ImageResourceWrapper(new Point(physicsEntity.getPosition().x, physicsEntity.getPosition().y), imgResource));\n }\n for(Objective objective : this.gameStateModel.getObjectives()) {\n GraphicsEntity graphicsEntity = this.graphModel.getEntityByID(objective.getId());\n // TODO: Orientation for objectives\n String imgResource = graphicsEntity.getImgResId(0);\n rtrnResources.add(new ImageResourceWrapper(new Point(objective.getPosition().x, objective.getPosition().y), imgResource));\n }\n return rtrnResources;\n }",
"public Map getMap(){\n\t image = ImageIO.read(getClass().getResource(\"/images/maps/\" + mapName + \".png\"));\n\t\t\n\t\t\n\t\treturn null;\t\t\n\t}",
"private void loadGameFiles(){\n\t}",
"public void cargarModelo() {\n\t}",
"public MBMProfile(){\n worlds = new ArrayList<MBMWorld>();\n loadSave();\n }",
"@Override\n public void loadTexture() {\n\n }",
"private void writeMapToFile() {\r\n\t\ttry {\r\n\t\t\tString dm = gson.toJson(daoMap);// gson.toJson(entity);\r\n\t\t\tFileWriter fileWriter = new FileWriter(path);\r\n\t\t\t\r\n\t\t\tfileWriter.write(dm);\r\n\t\t\tfileWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void copyFiles(String Language) {\n try {\n String filepath = mDataPath + \"/tessdata/\" + Language + \".traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/\"+Language+\".traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}",
"void load();",
"void load();",
"public void saveToFile(File file, Model model) throws IOException;",
"public void serializace() {\n DBwithKeyboardActivity activity = new DBwithKeyboardActivity();\n try {\n String path = activity.getFilesDir()+\"/DB.out\";\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(MainActivity.DBCharacters);\n out.close();\n fileOut.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }",
"public Moment[] loadMomentsFile(){\n //Log.v(\"loadMain\", getApplicationContext().getFilesDir().getAbsolutePath());\n FileInputStream fin = null;\n Moment []pup = null;\n try {\n fin = openFileInput(MomentsFragment.MOMENTS_FILENAME);\n ObjectInputStream ois = new ObjectInputStream(fin);\n pup = (Moment [])ois.readObject();\n ois.close();\n fin.close();\n }catch (FileNotFoundException e) {\n //e.printStackTrace();\n Log.w(LOG_TAG, \"File not found, will be created once data is inserted\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (pup == null)\n return new Moment[0];\n return pup;\n }\n }",
"private void cacheMappingInfoChunk (int chunkIndex) {\n this.cachedTMIChunk = new TagMappingInfoV3[this.getMappingNum()][this.getChunkSize()];\n for (int i = 0; i < mappingNum; i++) {\n cachedTMIChunk[i] = myHDF5.compounds().readArrayBlock(mapNames[i], tmiType, this.getChunkSize(), chunkIndex);\n }\n this.cachedChunkIndex = chunkIndex;\n this.chunkStartTagIndex = chunkIndex*this.getChunkSize();\n this.chunkEndTagIndex = chunkStartTagIndex+this.getChunkSize();\n if (chunkEndTagIndex > this.getTagCount()) chunkEndTagIndex = this.getTagCount();\n }",
"public void load() {\n\t}",
"private ImageMappings() {}",
"public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }",
"@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n\n\n }",
"private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"public List<GameSceneSerializable> getGameSceneSerializables(String fileName){\n File directory = new File(fileName);\n File[] directoryListing = directory.listFiles();\n List<GameSceneSerializable> list = new ArrayList<>();\n if (directoryListing != null){\n for (File level : directoryListing){\n String path = level.getAbsolutePath();\n if (path.contains(DS_STORE)) {continue;}\n list.add(retrieveGameSceneSerializable(path));\n }\n }\n return list;\n }",
"public void saveBitmap(Context context, int id) {\n bitmap = BitmapFactory.decodeResource(context.getResources(), id);\n resourcesLoaded++;\n }",
"static public Model load(String filename, int minFilter, int magFilter) throws Exception {\n\t\tString name = \"\";\n\n\t\t//Result:\n\t\tHashMap<Material, Mesh> meshes = new HashMap<Material, Mesh>();\n\t\t\n\t\tMaterial currentMaterial = null;\n\t\tHashMap<String, Material> materials = new HashMap<String, Material>();\n\t\tVector<float[]> coords = new Vector<float[]>(100);\n\t\tVector<float[]> normals = new Vector<float[]>(100);\n\t\tVector<float[]> textureCoords = new Vector<float[]>(100);\n\t\tHashMap<Material, HashMap<Integer, LinkedList<Integer>>> indicesByMaterial = new HashMap<Material, HashMap<Integer, LinkedList<Integer>>>();\n\t\t\n\t\tHashMap<String, Integer> verticesByIndex = new HashMap<String, Integer>();\n\t\tLinkedList<String> vertices = new LinkedList<String>();\n\t\t\n\t\t// Parse file:\n\t\tFile modelFile = new File(filename);\n\t\tFileInputStream fos = new FileInputStream(modelFile);\n\t\tScanner scanner = new Scanner(fos);\n\t\tscanner.useDelimiter(\"\\\\n\");\n\t\t\n\t\twhile (scanner.hasNext())\n\t\t{\n\t\t\tString currentLine = scanner.next();\n\t\t\tString[] s = currentLine.split(\"\\\\s+\");\n\t\t\t\n\t\t\t\n\t\t\tif (s.length == 0) { // UNNESSESARY || (s[0].startsWith(\"#\")) || (s[0].equals(\"g\"))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if ((s[0].equals(\"g\")) && (name != null)) {\n\t\t\t\tname = s[1];\n\t\t\t}\n\t\t\telse if (s[0].equals(\"v\")) {\n\t\t\t\tfloat[] coord = {Float.valueOf(s[1]), Float.valueOf(s[2]), Float.valueOf(s[3])};\n\t\t\t\tcoords.add(coord);\n\t\t\t}\n\t\t\telse if (s[0].equals(\"vn\")) {\n\t\t\t\tfloat[] normal = {Float.valueOf(s[1]), Float.valueOf(s[2]), Float.valueOf(s[3])};\n\t\t\t\tnormals.add(normal);\n\t\t\t}\n\t\t\telse if (s[0].equals(\"vt\")) {\n\t\t\t\tfloat[] textureCoord = {Float.valueOf(s[1]), 1.0f - Float.valueOf(s[2])};\n\t\t\t\ttextureCoords.add(textureCoord);\n\t\t\t}\n\t\t\telse if (s[0].equals(\"mtlib\")) {\n\t\t\t\tLinkedList<Material> loadedMaterials = MaterialLoader.load(modelFile.getParent() + File.separator + s[1], minFilter, magFilter);\n\t\t\t\tfor (Material material : loadedMaterials)\n\t\t\t\t\tmaterials.put(material.getName(), material);\n\t\t\t}\n\t\t\telse if (s[0].equals(\"usemtl\")) {\n\t\t\t\tcurrentMaterial = materials.get(s[1]);\n\t\t\t}\n\t\t\telse if (s[0].equals(\"f\")) {\n\t\t\t\tint indexSize = s.length - 1;\n\t\t\t\t\n\t\t\t\t// Access indices by material:\n\t\t\t\tHashMap<Integer, LinkedList<Integer>> indicesByPrimitive = indicesByMaterial.get(currentMaterial);\n\t\t\t\tif (indicesByPrimitive == null) {\n\t\t\t\t\tindicesByPrimitive = new HashMap<Integer, LinkedList<Integer>>();\n\t\t\t\t\tindicesByMaterial.put(currentMaterial, indicesByPrimitive);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Access indices by primitive-type:\n\t\t\t\tLinkedList<Integer> indices = indicesByPrimitive.get(indexSize);\n\t\t\t\tif (indices == null) {\n\t\t\t\t\tindices = new LinkedList<Integer>();\n\t\t\t\t\tindicesByPrimitive.put(indexSize, indices);\n\t\t\t\t}\n\n\t\t\t\t// Iterate over indices:\n\t\t\t\tfor (int i = 0; i < indexSize; i++) {\n\t\t\t\t\t\n\t\t\t\t\t// 1. Index des Vertex ermitteln:\n\t\t\t\t\tInteger index = verticesByIndex.get(s[i + 1]);\n\t\t\t\t\tif (index == null) {\t\t\t// Dieser Vertex existiert noch nicht im VertexBuffer\n\t\t\t\t\t\tindex = vertices.size();\t// Nächsten freien Index ermitteln\n\t\t\t\t\t\tverticesByIndex.put(s[i + 1], index);\t// In Zuordnungstabelle Vertex-Index speichern\n\t\t\t\t\t\tvertices.add(s[i + 1]); \t// In Vertexbuffer eintragen\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 2. Den Index des neuen / bekannten Vertex in der Indexliste dieses Material & Primitiventypes speichern:\n\t\t\t\t\tindices.add(index);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t\t\n\t\t// Vertices, Normalen und Texturcoords zusammenführen:\n\t\tFloatBuffer interleavedBuffer = BufferUtils.createFloatBuffer(vertices.size() * 8);\n\t\t\n\t\tfor (String vertex : vertices) {\n\t\t\t\n\t\t\t// Transform vertex indices from string to integer values:\n\t\t\tString[] s = vertex.split(\"/\");\n\t\t\tint[] indices = new int[s.length];\n\t\t\tfor (int i = 0; i < s.length; i++)\n\t\t\t\tindices[i] = Integer.parseInt(s[i]) - 1;\n\t\t\t\n\t\t\t// Add corresponding vertex data into the interleaved buffer:\n\t\t\tinterleavedBuffer.put(textureCoords.get(indices[1])[0]);\n\t\t\tinterleavedBuffer.put(textureCoords.get(indices[1])[1]);\n\t\t\t\n\t\t\tinterleavedBuffer.put(normals.get(indices[2])[0]);\n\t\t\tinterleavedBuffer.put(normals.get(indices[2])[1]);\n\t\t\tinterleavedBuffer.put(normals.get(indices[2])[2]);\n\t\t\t\n\t\t\tinterleavedBuffer.put(coords.get(indices[0])[0]);\n\t\t\tinterleavedBuffer.put(coords.get(indices[0])[1]);\n\t\t\tinterleavedBuffer.put(coords.get(indices[0])[2]);\n\t\t}\n\t\tinterleavedBuffer.flip();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// Iterate over faces of different material:\n\t\t\tfor (Map.Entry<Material, HashMap<Integer, LinkedList<Integer>>> iIndicesByPrimitive : indicesByMaterial.entrySet()) {\t\n\t\t\t\t\n\t\t\t\t// Apply material:\n\t\t\t\t//if (iIndicesByPrimitive.getKey() != null) iIndicesByPrimitive.getKey().render();\n\t\t\t\t\n\t\t\t\t// Create displaylist:\n\t\t\t\tint displayList = GL11.glGenLists(1);\n\t\t\t\t\n\t\t\t\t// Start outputting displaylist:\n\t\t\t\tGL11.glNewList(displayList, GL11.GL_COMPILE);\n\t\t\t\t\n\t\t\t\tGL11.glInterleavedArrays(GL11.GL_T2F_N3F_V3F, 0, interleavedBuffer);\n\t\t\t\t\n\t\t\t\tfor (Map.Entry<Integer, LinkedList<Integer>> iIndices : iIndicesByPrimitive.getValue().entrySet()) {\n\t\t\t\t\t\n\t\t\t\t\t// Convert index-list to buffer:\n\t\t\t\t\tIntBuffer indexBuffer = BufferUtils.createIntBuffer(iIndices.getValue().size());\n\t\t\t\t\tfor (Integer index : iIndices.getValue())\n\t\t\t\t\t\tindexBuffer.put(index);\n\t\t\t\t\tindexBuffer.flip();\n\t\t\t\t\t\n\t\t\t\t\t// Determine type of current face:\n\t\t\t\t\tint primitiveType;\n\t\t\t\t\n\t\t\t\t\tswitch (iIndices.getKey()) {\n\t\t\t\t\t\tcase 3: primitiveType = GL11.GL_TRIANGLES; break;\n\t\t\t\t\t\tcase 4:\tprimitiveType = GL11.GL_QUADS; break;\n\t\t\t\t\t\tdefault: primitiveType = GL11.GL_POLYGON;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Render primitives:\n\t\t\t\t\tGL11.glDrawElements(primitiveType, indexBuffer);\n\t\t\t\t\t\n\t\t\t\t\t// On some devices, immediate mode is faster than VBs:\n\t\t\t\t\t/*GL11.glBegin(primitiveType);\n\t\t\t\t\tfor (int i = 0; i < iIndices.getValue().size(); i++) {\n\t\t\t\t\t\tGL11.glTexCoord2f(interleavedBuffer.get(indexBuffer.get(i)*8 + 0), interleavedBuffer.get(indexBuffer.get(i)*8 + 1));\n\t\t\t\t\t\tGL11.glNormal3f(interleavedBuffer.get(indexBuffer.get(i)*8 + 2), interleavedBuffer.get(indexBuffer.get(i)*8 + 3), interleavedBuffer.get(indexBuffer.get(i)*8 + 4));\n\t\t\t\t\t\tGL11.glVertex3f(interleavedBuffer.get(indexBuffer.get(i)*8 + 5), interleavedBuffer.get(indexBuffer.get(i)*8 + 6), interleavedBuffer.get(indexBuffer.get(i)*8 + 7));\n\t\t\t\t\t}\n\t\t\t\t\tGL11.glEnd();*/\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tGL11.glEndList();\n\t\t\t\t\n\t\t\t\t// Insert the mesh related to its material:\n\t\t\t\tmeshes.put(iIndicesByPrimitive.getKey(), new Mesh(displayList));\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\t\n\t\t\t// Vertex-data is invalid, throw exception:\n\t\t\texception.printStackTrace();\n\t\t\tthrow new IOException(\"incompatible vertex-data\");\n\t\t}\n\t\tfinally {\n\t\t}\n\n\t\treturn new Model(meshes);\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}",
"@ModelAttribute\n public void addAttributes(ModelMap modelMap) {\n\t\t// 나중에 db config data 읽어서 setting \n\t\tmodelMap.addAttribute(\"cache\", System.currentTimeMillis());\n\t\t\n\t\t// common code \n\t\tmodelMap.addAttribute(\"code\", JsonHelper.toJson(codeDtoMap));\n }",
"@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }",
"private static void load(){\n }",
"public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void saveMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (!varTmpDir.exists()) {\n varTmpDir.createNewFile();\n }\n FileOutputStream fileOut = new FileOutputStream(varTmpDir);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(longTermMemory);\n out.close();\n fileOut.close();\n System.out.println(\"SAVED LONG TERM MEMORIES IN \" + brainLocation);\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"public static Node buildWorld(AssetManager assetManager) {\n TextureKey keyFloor = new TextureKey(\"Models/Scene/wall_diffuse_1.jpg\", false);// pave_color.jpg\n Texture texFloor = assetManager.loadTexture(keyFloor);\n\n TextureKey keyNorm = new TextureKey(\"Models/Scene/wall_normal.jpg\", false);// pave_norm.jpg\n Texture texNormalPlane = assetManager.loadTexture(keyNorm);\n\n Material mat_basic = new Material(assetManager, \"Common/MatDefs/Light/PBRLighting.j3md\");\n mat_basic.setTexture(\"BaseColorMap\", texFloor);\n mat_basic.setTexture(\"NormalMap\", texNormalPlane);\n mat_basic.setFloat(\"Metallic\", 0.1f);\n mat_basic.setFloat(\"Roughness\", 0.00f);\n mat_basic.setFloat(\"Glossiness\", 0.5f);\n\n // Must be false - otherwise uv gets messed up.\n TextureKey keyFloor2 = new TextureKey(\"Models/Scene/deck.jpg\", false);\n Texture texFloor2 = assetManager.loadTexture(keyFloor2);\n TextureKey keyNorm2 = new TextureKey(\"Models/Scene/deck_normal.jpg\", false);\n Texture texNormalPlane2 = assetManager.loadTexture(keyNorm2);\n\n Material mat_basic2 = new Material(assetManager, \"Common/MatDefs/Light/PBRLighting.j3md\");\n mat_basic2.setTexture(\"BaseColorMap\", texFloor2);\n mat_basic2.setFloat(\"Metallic\", 0.1f);\n mat_basic2.setFloat(\"Roughness\", 0.1f);\n mat_basic2.setTexture(\"NormalMap\", texNormalPlane2);\n // Scene\n Node scene = (Node) assetManager.loadModel(\"Models/Scene/testScene.gltf\");\n\n // Tiling\n ((Geometry) scene.getChild(\"Plane\")).getMesh().scaleTextureCoordinates(new Vector2f(4, 4));\n mat_basic.getTextureParam(\"BaseColorMap\").getTextureValue().setWrap(WrapMode.Repeat);\n mat_basic.getTextureParam(\"NormalMap\").getTextureValue().setWrap(WrapMode.Repeat);\n // Tex for scene\n scene.getChild(\"Plane\").setMaterial(mat_basic);\n scene.getChild(\"Cube\").setMaterial(mat_basic2);\n\n Node probeNode = (Node) assetManager.loadModel(\"Models/Scene/market.j3o\");\n LightProbe probe = (LightProbe) probeNode.getLocalLightList().iterator().next();\n scene.addLight(probe);\n\n // We must add a light to make the model visible\n // Light\n DirectionalLight sun = new DirectionalLight();\n sun.setColor(ColorRGBA.White.mult(0.75f));\n sun.setDirection(new Vector3f(-.5f, -.5f, -.5f).normalizeLocal());\n scene.addLight(sun);\n\n return scene;\n }",
"public void exportDictionary() \r\n\t{\t\r\n\t\tInputStream is = this.getClass().getResourceAsStream(\"/dictionary.sqlite\");\t\t\r\n\t\tOutputStream os = null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tos = new FileOutputStream(fDictionaryFile());\r\n\t\t\tbyte[] buffer = new byte[1024];\r\n\t\t\tint length;\r\n\t\t\t\r\n\t\t\t//copy the file content in bytes \r\n\t\t\twhile ((length = is.read(buffer)) > 0) \r\n\t\t\t{\r\n\t\t\t\tos.write(buffer, 0, length);\r\n\t\t\t}\r\n\r\n\t\t\tis.close();\r\n\t\t\tos.close();\r\n\r\n\t\t\tSystem.out.println(\"/* Dictionary export successful! */\");\r\n\t\t} \r\n\t\tcatch(IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setMapFile(String mapName) {\n map = Map.loadFromJSON(mapName);\n }",
"public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }",
"public ModelSourceFile() {\n\t\t\n\t}",
"public void cargarGameScreenTiled() {\n\n musicaTiled = get(rutaMusica, Music.class);\n musicaTiled.setLooping(true);\n platMusicInGame();\n\n TextureAtlas atlas = get(atlasTiledStuff, TextureAtlas.class);\n tiledMap = get(rutaTiled, TiledMap.class);\n\n SkeletonJson json = new SkeletonJson(atlas);\n json.setScale(.01f);\n ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/personajes.json\"));\n // ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/characters.json\"));\n json.setScale(.004f);\n skeletonBombData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n bombAnim = skeletonBombData.findAnimation(\"b1\");\n bombExAnim = skeletonBombData.findAnimation(\"b2x\");\n\n json.setScale(.005f);\n skeletonMonedaData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/coin.json\"));\n monedaAnim = skeletonMonedaData.findAnimation(\"normal\");\n monedaTomadaAnim = skeletonMonedaData.findAnimation(\"plus1\");\n\n json.setScale(.009f);\n chileSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chile.json\"));\n chileAnim = chileSkeletonData.findAnimation(\"normal\");\n chileTomadaAnim = chileSkeletonData.findAnimation(\"toospicy\");\n\n json.setScale(.009f);\n globoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/ballons.json\"));\n globoAnim = globoSkeletonData.findAnimation(\"normal\");\n globoTomadaAnim = globoSkeletonData.findAnimation(\"plus5\");\n\n json.setScale(.009f);\n dulceSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chocolate.json\"));\n dulceAnim = dulceSkeletonData.findAnimation(\"normal\");\n dulceTomadaAnim = dulceSkeletonData.findAnimation(\"speedup\");\n\n medallaPrimerLugar = atlas.findRegion(\"imagenes/podio/1stplacetrophy\");\n medallaSegundoLugar = atlas.findRegion(\"imagenes/podio/2ndplace\");\n medallaTercerLugar = atlas.findRegion(\"imagenes/podio/3rdplace\");\n congratulations = atlas.findRegion(\"imagenes/podio/congratulations\");\n youLose = atlas.findRegion(\"imagenes/podio/youlose\");\n timeUp = atlas.findRegion(\"imagenes/podio/timeup\");\n\n // json.setScale(.003f);\n // SkeletonData fuegoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n // fuegoAnim = fuegoSkeletonData.findAnimation(\"firedancing\");\n // fuegoSkeleton = new Skeleton(fuegoSkeletonData);\n\n json.setScale(.01f);\n SkeletonData fondoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/background.json\"));\n fondoAnim = fondoSkeletonData.findAnimation(\"animation\");\n fondoSkeleton = new Skeleton(fondoSkeletonData);\n\n //\n // json.setScale(.011f);\n // SkeletonData fogataSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/fogata.json\"));\n // fogataAnim = fogataSkeletonData.findAnimation(\"fogata\");\n // fogataSkeleton = new Skeleton(fogataSkeletonData);\n //\n // json.setScale(.005f);\n // SkeletonData plumaSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/feather.json\"));\n // plumaAnim = plumaSkeletonData.findAnimation(\"pluma\");\n // plumaSkeleton = new Skeleton(plumaSkeletonData);\n //\n // json.setScale(.011f);\n // SkeletonData bloodStoneSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstone.json\"));\n // bloodStoneAnim = bloodStoneSkeletonData.findAnimation(\"animation\");\n // bloodStoneSkeleton = new Skeleton(bloodStoneSkeletonData);\n //\n // SkeletonData bloodStone2SkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstones.json\"));\n // bloodStone2Anim = bloodStone2SkeletonData.findAnimation(\"glow1\");\n // bloodStone2Skeleton = new Skeleton(bloodStone2SkeletonData);\n\n fondo = atlas.findRegion(\"imagenes/fondo\");\n\n padIzq = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_izq\")));\n padDer = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_derecha\")));\n btBombaDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasalpresionar\")));\n btBombaUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasinpresionar\")));\n\n btJumpDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltoalpresionar\")));\n btJumpUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltosinpresionar\")));\n // btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncosinpresionar\")));\n // btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncopresionado\")));\n\n btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelas\")));\n btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelasPresionado\")));\n\n btPauseUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pause\")));\n\n indicador = atlas.findRegion(\"Interfaz/indicador\");\n indicadorCloud = atlas.findRegion(\"Interfaz/icono000\");\n indicadorCientifico = atlas.findRegion(\"Interfaz/icono001\");\n indicadorMinion = atlas.findRegion(\"Interfaz/icono002\");\n indicadorNatylol = atlas.findRegion(\"Interfaz/icono003\");\n indicadorLighthingAlba = atlas.findRegion(\"Interfaz/icono004\");\n indicadorIgnis = atlas.findRegion(\"Interfaz/icono005\");\n\n perfilRegionCloud = atlas.findRegion(\"perfiles/cloud\");\n perfilRegionNatylol = atlas.findRegion(\"perfiles/natylol\");\n perfilRegionIgnis = atlas.findRegion(\"perfiles/ignis\");\n perfilRegionCientifico = atlas.findRegion(\"perfiles/scientist\");\n perfilRegionLAlba = atlas.findRegion(\"perfiles/lightingalba\");\n perfilRegionEnemigo = atlas.findRegion(\"perfiles/enemy\");\n\n lugaresMarco = atlas.findRegion(\"Interfaz/lugares\");\n\n moneda = atlas.findRegion(\"moneda\");\n\n tronco = atlas.findRegion(\"tachuelas\");\n tachuelas = atlas.findRegion(\"tachuelas\");\n platano = atlas.findRegion(\"platano\");\n\n pickCoin = get(\"data/musica/coin.mp3\");\n jump = get(\"data/musica/salto.mp3\");\n }",
"public Mapper() {\n\t\t\n\t\tmirMap = scanMapFile(\"mirMap.txt\");\n\t\tgeneMap = scanMapFile(\"geneMap.txt\");\n\t\t\n\t}"
] | [
"0.68194",
"0.62162757",
"0.6140819",
"0.5941411",
"0.54990923",
"0.5431435",
"0.54226124",
"0.5421304",
"0.5382833",
"0.5376529",
"0.5316807",
"0.5270012",
"0.5230166",
"0.5209965",
"0.52009374",
"0.5195099",
"0.5183483",
"0.5159262",
"0.51422477",
"0.51164687",
"0.51138526",
"0.5113763",
"0.5082082",
"0.5080791",
"0.5079601",
"0.5043043",
"0.50413793",
"0.50344944",
"0.50145584",
"0.5009729",
"0.49928612",
"0.49882507",
"0.49863774",
"0.49857116",
"0.4960266",
"0.49555275",
"0.4953837",
"0.4938275",
"0.49236605",
"0.49183047",
"0.49102557",
"0.48984575",
"0.48867598",
"0.4865502",
"0.48567715",
"0.484764",
"0.48476368",
"0.48425093",
"0.48386994",
"0.48329765",
"0.4830512",
"0.4830512",
"0.48210472",
"0.48194337",
"0.4818403",
"0.48176762",
"0.4809554",
"0.48030025",
"0.4797244",
"0.47912255",
"0.47847077",
"0.47811094",
"0.4779701",
"0.4776936",
"0.4776827",
"0.4768188",
"0.47643948",
"0.47625738",
"0.47600415",
"0.47578785",
"0.47575918",
"0.47575918",
"0.47571748",
"0.47563425",
"0.47424152",
"0.47365034",
"0.47348946",
"0.47329125",
"0.47315988",
"0.47290385",
"0.47259653",
"0.472003",
"0.47164845",
"0.4712888",
"0.47118613",
"0.47112286",
"0.47083902",
"0.47055978",
"0.46990553",
"0.46920905",
"0.46898013",
"0.4685606",
"0.4674143",
"0.46726638",
"0.46634993",
"0.4661562",
"0.4656741",
"0.46522513",
"0.46501535"
] | 0.6840383 | 1 |
To classify an image, follow these steps: 1. preprocess the input image 2. run inference with the model 3. postprocess the output result for display in UI | public int classify(Bitmap bitmap) {
preprocess(bitmap);
runInference();
return postprocess();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}",
"private void runInference() {\n interpreter.run(inputImage, outputArray);\n }",
"@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }",
"public List<Result> recognize(IplImage image);",
"private void classify(final String text) {\n executorService.execute(\n () -> {\n // TODO 7: Run sentiment analysis on the input text\n List<Category> results = textClassifier.classify(text);\n\n // TODO 8: Convert the result to a human-readable text\n String textToShow = \"Input: \" + text + \"\\nOutput:\\n\";\n for (int i = 0; i < results.size(); i++) {\n Category result = results.get(i);\n textToShow +=\n String.format(\" %s: %s\\n\", result.getLabel(), result.getScore());\n }\n textToShow += \"---------\\n\";\n\n // Show classification result on screen\n showResult(textToShow);\n });\n }",
"@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }",
"private void classifyTestImages() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"result.txt\", \"UTF-8\");\n writer.println(\"#Authors: Thomas Sarlin & Petter Poucette\");\n\n ArrayList<Image> images = testReader.getImages();\n double activationResult[]=new double[4];\n int bestGuess;\n for (Image image : images) {\n for (int j = 0; j < 4; j++)\n activationResult[j] = activationFunction\n .apply(sumWeights(j, image));\n\n bestGuess = getBestGuess(activationResult);\n writer.println(image.getName() + \" \" + bestGuess);\n }\n writer.close();\n }",
"public void classify() throws Exception;",
"void process(Mat image);",
"public interface Recognition {\n\n /**\n * Recognition class to implement. Should do the image recognition on the image and return the found classes.\n *\n * @param image image to process.\n * @return List of Result objects.\n */\n public List<Result> recognize(IplImage image);\n\n}",
"public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }",
"public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }",
"public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}",
"public void processImage() {\n\n\n ++timestamp;\n final long currTimestamp = timestamp;\n byte[] originalLuminance = getLuminance();\n tracker.onFrame(\n previewWidth,\n previewHeight,\n getLuminanceStride(),\n sensorOrientation,\n originalLuminance,\n timestamp);\n trackingOverlay.postInvalidate();\n\n // No mutex needed as this method is not reentrant.\n if (computingDetection) {\n readyForNextImage();\n return;\n }\n computingDetection = true;\n LOGGER.i(\"Preparing image \" + currTimestamp + \" for detection in bg thread.\");\n\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n\n if (luminanceCopy == null) {\n luminanceCopy = new byte[originalLuminance.length];\n }\n System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);\n readyForNextImage();\n\n final Canvas canvas = new Canvas(croppedBitmap);\n canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);\n // For examining the actual TF input.\n if (SAVE_PREVIEW_BITMAP) {\n ImageUtils.saveBitmap(croppedBitmap);\n }\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n LOGGER.i(\"Running detection on image \" + currTimestamp);\n final long startTime = SystemClock.uptimeMillis();\n final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n\n cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);\n final Canvas canvas = new Canvas(cropCopyBitmap);\n final Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2.0f);\n\n float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n switch (MODE) {\n case TF_OD_API:\n minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n break;\n }\n\n final List<Classifier.Recognition> mappedRecognitions =\n new LinkedList<Classifier.Recognition>();\n //boolean unknown = false, cervix = false, os = false;\n\n for (final Classifier.Recognition result : results) {\n final RectF location = result.getLocation();\n if (location != null && result.getConfidence() >= minimumConfidence) {\n\n //if (result.getTitle().equals(\"unknown\") && !unknown) {\n // unknown = true;\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n\n /*} else if (result.getTitle().equals(\"Cervix\") && !cervix) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n cervix = true;\n\n } else if (result.getTitle().equals(\"Os\") && !os) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n os = true;\n }*/\n\n\n }\n }\n\n tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);\n trackingOverlay.postInvalidate();\n\n\n computingDetection = false;\n\n }\n });\n\n\n }",
"public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }",
"public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }",
"private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }",
"private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }",
"Integer classify(LogicGraph pce);",
"public Bitmap stylizeImage(TensorFlowInferenceInterface inferenceInterface, Bitmap bitmap) {\n bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n for (int i = 0; i < intValues.length; ++i) {\n final int val = intValues[i];\n floatValues[i * 3 + 0] = ((val >> 16) & 0xFF) * 1.0f;\n floatValues[i * 3 + 1] = ((val >> 8) & 0xFF) * 1.0f;\n floatValues[i * 3 + 2] = (val & 0xFF) * 1.0f;\n }\n\n Trace.beginSection(\"feed\");\n inferenceInterface.feed(INPUT_NAME, floatValues, INPUT_SIZE, INPUT_SIZE, 3);\n Trace.endSection();\n\n Trace.beginSection(\"run\");\n inferenceInterface.run(new String[]{OUTPUT_NAME});\n Trace.endSection();\n\n Trace.beginSection(\"fetch\");\n inferenceInterface.fetch(OUTPUT_NAME, floatValues);\n Trace.endSection();\n\n for (int i = 0; i < intValues.length; ++i) {\n intValues[i] =\n 0xFF000000\n | (((int) (floatValues[i * 3 + 0])) << 16)\n | (((int) (floatValues[i * 3 + 1])) << 8)\n | ((int) (floatValues[i * 3 + 2]));\n }\n bitmap.setPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n return bitmap;\n }",
"public void doneClassifying() {\n\t\tbinaryTrainClassifier = trainFactory.trainClassifier(binaryTrainingData);\n\t\tmultiTrainClassifier = testFactory.trainClassifier(multiTrainingData);\n\t\tLinearClassifier.writeClassifier(binaryTrainClassifier, BINARY_CLASSIFIER_FILENAME);\n\t\tLinearClassifier.writeClassifier(multiTrainClassifier, MULTI_CLASSIFIER_FILENAME);\n\t}",
"public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}",
"Classifier getClassifier();",
"public List<Recognition> classifyImage(final float[] tensorFlowOutput, final List<String> labels) {\n int numClass = (int) (tensorFlowOutput.length / (Math.pow(NUMBER_OF_BOXES, 2) * NUMBER_OF_BOUNDING_BOXES) - 5);\n BoundingBox[][][] boundingBoxPerCell = new BoundingBox[NUMBER_OF_BOXES][NUMBER_OF_BOXES][NUMBER_OF_BOUNDING_BOXES];\n PriorityQueue<Recognition> priorityQueue = new PriorityQueue<>(MAX_RECOGNIZED_CLASSES, new RecognitionComparator());\n\n int offset = 0;\n for (int cy = 0; cy < NUMBER_OF_BOXES; cy++) { // SIZE * SIZE cells\n for (int cx = 0; cx < NUMBER_OF_BOXES; cx++) {\n for (int b = 0; b < NUMBER_OF_BOUNDING_BOXES; b++) { // 5 bounding boxes per each cell\n boundingBoxPerCell[cx][cy][b] = getBoundingBox(tensorFlowOutput, cx, cy, b, numClass, offset);\n calculateTopPredictions(boundingBoxPerCell[cx][cy][b], priorityQueue, labels);\n offset = offset + numClass + 5;\n }\n }\n }\n\n return getRecognition(priorityQueue);\n }",
"private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }",
"public static void main(String[] args) {\n\t\tString model = \"http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_ppn_shared_box_predictor_300x300_coco14_sync_2018_07_03.tar.gz#frozen_inference_graph.pb\";\n\n\t\t// All labels for the pre-trained models are available at: https://github.com/tensorflow/models/tree/master/research/object_detection/data\n\t\tString labels = \"https://raw.githubusercontent.com/tensorflow/models/master/research/object_detection/data/mscoco_label_map.pbtxt\";\n\n\t\tObjectDetectionService detectionService = new ObjectDetectionService(model, labels,\n\t\t\t\t0.4f, // Only object with confidence above the threshold are returned. Confidence range is [0, 1].\n\t\t\t\tfalse, // No instance segmentation\n\t\t\t\ttrue); // cache the TF model locally\n\n\t\t// You can use file:, http: or classpath: to provide the path to the input image.\n\t\tList<ObjectDetection> detectedObjects = detectionService.detect(\"classpath:/images/object-detection.jpg\");\n\t\tdetectedObjects.stream().map(o -> o.toString()).forEach(System.out::println);\n\t}",
"public interface VisionPipeline {\n /**\n * Processes the image input and sets the result objects. Implementations should make these\n * objects accessible.\n *\n * @param image The image to process.\n */\n void process(Mat image);\n}",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"void ProcessImage() {\n DoDescribe();\n }",
"public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }",
"@Override\n\tprotected void postprocess(Classifier classifier, PipelineData data) throws Exception {\n\t}",
"DetectionResult getObjInImage(Mat image);",
"@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }",
"public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }",
"public interface ImageSegmentationResultListner {\n void getSegmentationImage(Bitmap bitmap);\n}",
"@Override\n\tpublic abstract Classifier run ();",
"private void postProcessing() {\n // create the element for erode\n Mat erodeElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_ERODE + 1,2 * KERNELSIZE_ERODE + 1 ),\n new Point(KERNELSIZE_ERODE, KERNELSIZE_ERODE));\n // create the element for dialte\n Mat dialElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_DILATE + 1,2 * KERNELSIZE_DILATE + 1 ),\n new Point(KERNELSIZE_DILATE, KERNELSIZE_DILATE));\n\n // erode image to remove small noise\n Imgproc.erode(binary, binary, erodeElement);\n\n // dilate the image DILATETIMES to increase what we see\n for (int i = 0; i < DILATETIMES; i++)\n Imgproc.dilate(binary, binary, dialElement);\n }",
"public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }",
"public abstract int classifyInstance(Instance instance) throws Exception;",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }",
"public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}",
"public String execute(String input) {\n Data data = Serializer.parse(input, Data.class);\n\n // Step #2: Check the discriminator\n final String discriminator = data.getDiscriminator();\n if (discriminator.equals(Discriminators.Uri.ERROR)) {\n // Return the input unchanged.\n return input;\n }\n\n // Create a series of pipes to process the training files\n ArrayList<Pipe> pipeList = new ArrayList<>();\n pipeList.add(new Input2CharSequence(\"UTF-8\"));\n // Pipes: lowercase, tokenize, remove stopwords, map to features\n pipeList.add( new CharSequenceLowercase() );\n pipeList.add( new CharSequence2TokenSequence(Pattern.compile(\"\\\\p{L}[\\\\p{L}\\\\p{P}]+\\\\p{L}\")) );\n pipeList.add( new TokenSequenceRemoveStopwords());\n pipeList.add( new TokenSequence2FeatureSequence());\n pipe = new SerialPipes(pipeList);\n\n // put the directory of files used for training through the pipes\n String directory = data.getParameter(\"directory\").toString();\n InstanceList instances = readDirectory(new File(directory));\n\n // create a topic to be trained\n int numberOfTopics = (Integer) data.getParameter(\"numTopics\");\n ParallelTopicModel topicModel = new ParallelTopicModel(numberOfTopics);\n topicModel.addInstances(instances);\n\n // train the model\n try {\n topicModel.estimate();\n } catch (IOException e){\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to train the model\").asJson();\n }\n\n // write topic keys file\n String path = data.getParameter(\"path\").toString();\n String keysName = data.getParameter(\"keysName\").toString();\n int wordsPerTopic = (Integer) data.getParameter(\"wordsPerTopic\");\n try {\n topicModel.printTopWords(new File(path + \"/\" + keysName), wordsPerTopic, false);\n } catch (IOException e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the topic keys to \" + path + \"/\" + keysName).asJson();\n }\n\n // write the .inferencer file\n String inferencerName = data.getParameter(\"inferencerName\").toString();\n try {\n ObjectOutputStream oos =\n new ObjectOutputStream (new FileOutputStream (path + \"/\" + inferencerName));\n oos.writeObject (topicModel.getInferencer());\n oos.close();\n } catch (Exception e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the inferencer to \" + path + \"/\" + inferencerName).asJson();\n }\n\n // Success\n return new Data<>(Discriminators.Uri.TEXT, \"Success\").asJson();\n }",
"public static void main(String [] argv) {\n runClassifier(new NNge(), argv);\n }",
"public void recognize(){\n\t String dirOfFace =\".\\\\Faces\";\n\t String dirOfTestFaces =\".\\\\TestFaces\";\n\t \n\t File root = new File(dirOfFace);\n File Testfaces = new File(dirOfTestFaces);\n FilenameFilter imgFilter = new FilenameFilter() {\n\n public boolean accept(File dir, String name) {\n\n name = name.toLowerCase();\n\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n\n }\n\n };\n \n File[] imageFiles = Testfaces.listFiles(imgFilter);\n for (File image : imageFiles) {\n Recognizer fd = new Recognizer();\n int rollno=0;\n rollno = fd.returnPredict(image,root);\n System.out.println(rollno);\n try {\n db.AttendenceTable(rollno);\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, ex);\n }\n }\n\n\n }",
"public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n for (int i = 1; i<10; i++){\n String image= \"src/main/java/BallImage\";\n image = image + i + \".jpg\";\n Mat input = Imgcodecs.imread(image);\n Mat output = algorithm(input);\n String output_fname = \"Output Image \" + i + \".jpg\";\n Imgcodecs.imwrite(output_fname, output);\n }\n System.out.println(\"Done\");\n }",
"public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}",
"void neuralNet(Mat test) {\n\t\tCvANN_MLP nnet = new CvANN_MLP();\n\t\t//Loading a saved Neural Network\n\t\tnnet.load(\"/Users/SidRama/Desktop/NeuralNetwork.xml\");\n\t\tSystem.out.println(\"Running test...\");\n\t\t//Loading a test\n\t\t//Actually, loading a scanned sample for detection. I'm loading 10 samples\n\t\tMat T = new Mat(1, 784, CvType.CV_32FC1);\n\t\tSystem.out.println(\"The recognised symbols are:\");\n\t\t//Extracting a digit sample from test Matrix\n\t\tfor (int p = 0; p < 10; p++) {\n\t\t\tMat testOut = new Mat(1, 10, CvType.CV_32FC1);\n\t\t\tfor (int i = 0; i < 784; i++) {\n\t\t\t\tT.put(0, i, test.get(p, i));\n\t\t\t}\n\t\t\tnnet.predict(T, testOut);\n\t\t\t/* testOut has one row, 10 coloumns.\n\t\t\t * nnet.predict() runs the Neural Network on T matrix\n\t\t\t * and outputs the probability of the input digit sample belonging\n\t\t\t * to either of the 10 classes (something like a multi-class classifier) */\n\t\t\t \n\t\t\n\t\t\t// System.out.println(testOut.dump());\n\t\t\tdouble[] t = null;\n\t\t\tdouble max = 0;\n\t\t\tint loc = -1;\n\t\t\t/* Choosing the class that has the highest probabilty to be the \n\t\t * predicted digit */\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tt = testOut.get(0, j);\n\t\t\t\tif (max < t[0]) {\n\t\t\t\t\tmax = t[0];\n\t\t\t\t\tloc = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(loc); //Display predicted digit\n\t\t}\n\t}",
"public abstract double classify(Instance e);",
"@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}",
"@Override\n\tpublic double classify(Example example) {\n\t\t// run forwards part of training algorithm on specific example\n\t\t// input to calculateForward method is ArrayList of examples, so\n\t\t// arbitrarily creating one in order to avoid duplicating code\n\t\tArrayList<Example> ex = new ArrayList<Example>();\n\t\tex.add(example);\n\t\tSystem.out.println(\"calculated: \" + calculateForward(ex).get(0) + \" label: \" + example.getLabel());\n\t\treturn (calculateForward(ex).get(0) > 0) ? 1.0 : -1.0;\n\t}",
"public void setClassify(Integer classify) {\n this.classify = classify;\n }",
"public static Classifier create(final AssetManager assetManager,\n final String modelFilename,\n final String labelFilename,\n final int inputSize,\n final boolean isQuantized) throws IOException {\n final TFLiteRecognitionAPIModel d = new TFLiteRecognitionAPIModel();\n\n d.labels = readLabelFile(assetManager, labelFilename);\n d.inputSize = inputSize;\n\n // NEW: Prepare GPU delegate.\n //GpuDelegate delegate = new org.tensorflow.lite.Delegate();\n //Interpreter.Options options = (new Interpreter.Options()).addDelegate(delegate);\n\n try {\n File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), modelFilename);\n d.tfLite = new Interpreter(file);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n d.isModelQuantized = isQuantized;\n // Pre-allocate buffers.\n int numBytesPerChannel;\n if (d.isModelQuantized) {\n numBytesPerChannel = 1; // Quantized\n } else {\n numBytesPerChannel = 4; // Floating point\n }\n d.imgData = ByteBuffer.allocateDirect(1 * d.inputSize * d.inputSize * 3 * numBytesPerChannel); ////////////////////// 3 -> 2\n d.imgData.order(ByteOrder.nativeOrder());\n d.intValues = new int[d.inputSize * d.inputSize];\n\n d.tfLite.setNumThreads(NUM_THREADS);\n d.tfoutput_recognize = new float[1][NUM_CLASSES];\n /*d.outputLocations = new float[1][NUM_DETECTIONS][4];\n d.outputClasses = new float[1][NUM_DETECTIONS];\n d.outputScores = new float[1][NUM_DETECTIONS];\n d.numDetections = new float[1];*/\n return d;\n }",
"static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}",
"private boolean getClassificationResult(String imgPath) {\n return false;\n }",
"@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}",
"abstract String classify(Instance inst);",
"public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}",
"private float[] predict(float[] input) {\n float thisOutput[] = new float[1];\n\n // feed network with input of shape (1,input.length) = (1,2)\n inferenceInterface.feed(\"dense_1_input\", input, 1, input.length);\n inferenceInterface.run(new String[]{\"dense_2/Relu\"});\n inferenceInterface.fetch(\"dense_2/Relu\", thisOutput);\n\n // return prediction\n return thisOutput;\n }",
"public native boolean normalizeImage() throws MagickException;",
"@Override\r\n\tpublic double classifyInstance(Instance instance) throws Exception {\n\t\tdouble[] hist = bop.bagToArray(bop.buildBag(instance));\r\n\r\n\t\t// stuff into Instance\r\n\t\tInstances newInsts = new Instances(matrix, 1); // copy attribute data\r\n\t\tnewInsts.add(new SparseInstance(1.0, hist));\r\n\r\n\t\treturn knn.classifyInstance(newInsts.firstInstance());\r\n\t}",
"static ResultEvent classify(byte[][][][] data, int version, byte[] target) throws IOException {\n if (logger.isDebugEnabled()){\n logger.debug(\"Performing prediction...\");\n }\n\n String result = API.predict(PORT, Yolo.modelName, version, data, Yolo.signatureString);\n Gson g = new Gson();\n YoloResults yoloResults = g.fromJson(result, YoloResults.class);\n\n // Output tensor dimensions of YOLO\n float[][][][] predictions = new float[data.length][19][19][425];\n for(int i=0; i<data.length; i++){\n for(int x=0; x<19; x++){\n for(int y=0; y<19; y++){\n System.arraycopy(yoloResults.predictions[i][x][y], 0, predictions[i][x][y], 0, 425);\n }\n }\n }\n\n float[] certainty = null;\n\n return new ResultEvent(Configuration.ModelName.YOLO, target, predictions, certainty);\n }",
"public static void testGrayscale()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.toGrayscale();\n\t wall.explore();\n }",
"@Override\n public ProcessedImage process(ImageProcessRequest imageProcessRequest, BufferedImage img) throws IOException {\n\n if(img.getColorModel().hasAlpha() && imageProcessRequest.preset.format == FileFormat.JPG) {\n // Perform PNG -> JPG alpha fix\n // https://github.com/thebuzzmedia/imgscalr/issues/59#issuecomment-3743920\n BufferedImage tmpImg = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB);\n\n Graphics g = tmpImg.getGraphics();\n g.drawImage(img, 0, 0, null);\n g.dispose();\n\n img.flush();\n img = tmpImg;\n }\n\n img = resize(img, getScalrMethod(imageProcessRequest.preset), getScalrMode(imageProcessRequest.preset), imageProcessRequest.preset.width, imageProcessRequest.preset.height);\n\n ProcessedImage processedImage = new ProcessedImage(\n write(img, imageProcessRequest.preset),\n img.getWidth(),\n img.getHeight()\n );\n\n return processedImage;\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\n Normalized norm = new Normalized();\n double c = 1;\n\n double[][] data = norm.Inputdata(\"input.txt\");\n double[][] w = new double[35][10];\n double[][] last = new double[35][10];\n\n for (int i = 0; i < 35; i++) {\n for (int j = 0; j < 10; j++) {\n w[i][j] = 1;\n last[i][j] = 1;\n\n }\n }\n\n /* for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 35; j++) {\n System.out.print(data[i][j]);\n System.out.print(\" \");\n \n \n }\n System.out.print(\"\\n\");\n }\n */\n //System.out.print(w[5][5]);\n double[] ErrMap = norm.Inputdata2(\"TestMap.txt\");\n //System.out.print(ErrMap[0]);\n\n //System.out.print(\"\\n\");\n w = training(data, w, last, c);\n\n int out = 2;\n\n out = classify(w, ErrMap, c);\n System.out.print(\"product \" + out + \" is max\\n\");\n System.out.print(\"the number classify to \" + out + \"\\n\");\n }",
"public Integer getClassify() {\n return classify;\n }",
"private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }",
"public static void main(String[] args) {\n try {\n File dataFolder = new File(\"data\");\n for (File imageFile : dataFolder.listFiles()) {\n BufferedImage bufferedImage = ImageIO.read(imageFile);\n ImageProcessor.instance.processImage(bufferedImage, imageFile.getName());\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\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}",
"public void generatePixelLabeledImage(DecisionForest classifier, String filename, \n\t\t\tLabelledImageType imageType, ClassLabel clazz) \n\t\t\tthrows MalformedForestException, IOException, MalformedProbabilityDistributionException, InterruptedException {\n\t\t\n\t\t// Get the file extension, if no extension then throw exception immediately\n\t\tString extension = \"\";\n\t\tint l = filename.lastIndexOf('.');\n\t\tif (l > 0) {\n\t\t extension = filename.substring(l+1);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"No file extension for the file.\");\n\t\t}\n\t\t\n\t\t// Create an RGB image that we will output for our pixel labeling\n\t\tint width = dataCube.length;\n\t\tint height = dataCube[0].length;\n\t\tBufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR);\n\t\t\n\t\t// Iterate through each pixel, classify/label each pixel, and write it to the new image\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tArrayList<Double> arr = new ArrayList<>(dataCube[i][j].length);\n\t\t\t\tfor (int k = 0; k < dataCube[i][j].length; k++) {\n\t\t\t\t\tarr.add(k, (double) dataCube[i][j][k]);\n\t\t\t\t}\n\t\t\t\tNDRealVector v = new NDRealVector(arr);\n\t\t\t\tProbabilityDistribution probabilities = classifier.classify(v);\n\t\t\t\tif (imageType == LabelledImageType.PROBABILITY) {\n\t\t\t\t\timage.setRGB(i, j, interpolatedColour(probabilities, classifier.getClasses()));\n\t\t\t\t} else if (imageType == LabelledImageType.SINGLE_CLASS_PROBABILITY) {\n\t\t\t\t\timage.setRGB(i, j, singleProbColour(probabilities, clazz));\n\t\t\t\t} else if (imageType == LabelledImageType.MOST_LIKELY) {\n\t\t\t\t\timage.setRGB(i, j, mostlikelyColour(probabilities, classifier.getClasses()));\n\t\t\t\t} else if (imageType == LabelledImageType.ENTROPY) {\n\t\t\t\t\timage.setRGB(i, j, entropyColour(probabilities));\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\t\n\t\t// Write the image to file\n\t\tFile file = new File(filename);\n\t\tImageIO.write(image, extension, file);\n\t}",
"public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }",
"String classify(AudioFile af);",
"public void process(T image , InputSanityCheck ISC, DerivativeHelperFunctions DHF, ConvolveImageNoBorder CINB, ConvolveJustBorder_General CJBG, GradientSobel_Outer GSO, GradientSobel_UnrolledOuter GSUO,\n\t\t\t\t\t\tGImageMiscOps GIMO, ImageMiscOps IMO, ConvolveNormalizedNaive CNN, ConvolveNormalized_JustBorder CNJB, ConvolveNormalized CN,\n\t\t\t\t\t\tGBlurImageOps GBIO, GeneralizedImageOps GIO, BlurImageOps BIO, ConvolveImageMean CIM, FactoryKernelGaussian FKG, ImplMedianHistogramInner IMHI,\n\t\t\t\t\t\tImplMedianSortEdgeNaive IMSEN, ImplMedianSortNaive IMSN, ImplConvolveMean ICM, GThresholdImageOps GTIO, GImageStatistics GIS, ImageStatistics IS,\n\t\t\t\t\t\tThresholdImageOps TIO, FactoryImageBorderAlgs FIBA, ImageBorderValue IBV, FastHessianFeatureDetector FHFD, FactoryImageBorder FIB, FactoryBlurFilter FBF,\n\t\t\t\t\t\tConvertImage CI, UtilWavelet UW, ImageType IT, FactoryInterpolation FI, FactoryDistort FDs);",
"@Override\n public double classifyInstance(Instance testdata) {\n // get a copy of testdata Instance with only the matched attributes\n Instance ntest = this.mm.getMatchedTestInstance(testdata);\n\n double ret = 0.0;\n try {\n ret = this.classifier.classifyInstance(ntest);\n }\n catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n\n return ret;\n }",
"public String classify(String text){\n\t\treturn mClassifier.classify(text).bestCategory();\n\t}",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public void preprocess() {\n }",
"public static void main(String[] args) {\n\n\t\tString urlClassification = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/classification.txt\";\n\t\tString urlExpert = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/expert.txt\";\n\t\tString urlLocations = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/locations.txt\";\n\n\t\tArrayList<ImageData> classification = ImageData.classificationFromURL(urlClassification);\n\t\tArrayList<ImageData> expert = ImageData.expertFromURL(urlExpert);\n\t\tArrayList<ImageData> locations = ImageData.locationsFromURL(urlLocations);\n\t\t\n\t\t// For part 2. we need to print the number of images\n\t\t// This will be the length of expert list\n\n\t\tSystem.out.println(expert.size());\n\t\t\n\t\t// For part 3. we need to print the number of images classified by at least 1\n\t\t// volunteer. We will utilise the properties of Sets in java.\n\t\t\n\t\tHashSet<Integer> idsClassifiedByOne = new HashSet<Integer>();\n\t\tfor (ImageData image : classification) {\n\t\t\tidsClassifiedByOne.add(image.getIdentifier());\n\t\t}\n\t\tSystem.out.println(idsClassifiedByOne.size());\n\t\t\n\t\t// For part 4. we need to print details of the images classified by at least 10\n\t\t// volunteers. \n\t\t\n\t\tArrayList<ImageData> atLeast10Vols = new ArrayList<ImageData>();\n\t\tatLeast10Vols = ImageData.atLeast10(classification);\n\t\t\n\t\t// Must merge the information from classification, locations and expert lists\n\t\tArrayList<ImageData> atLeast10CompleteList = new ArrayList<ImageData>();\n\t\tatLeast10CompleteList = ImageData.collectAll(atLeast10Vols, expert, locations);\n\t\tArrayList<ImageData> clean10CompleteList = ImageData.clean(atLeast10CompleteList);\n\t\t\n\t\t// Printing out the data\n\t\t\n\t\tSystem.out.println(clean10CompleteList);\n\n\t}",
"public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }",
"@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }",
"@Override\n\tpublic void run(ApplicationArguments args) throws Exception {\n\t\tList.of(\n\t\t\t\"images/puppy-in-white-and-red-polka.jpg\"\n\t\t\t,\"images/street-car-bus-truck.jpg\"\n\t\t\t,\"images/various-objects.png\"\n\t\t).stream()\n\t\t\t.map(this::imageFromResource)\n\t\t\t.map(this::predictObjects)\n\t\t\t.forEach(this::logItems);\n\t}",
"public void run() throws FileNotFoundException, UnsupportedEncodingException {\n double averageError=1;\n int index=0;\n while(averageError> errorTreshold ||index<7) {\n trainPerceptrons();\n\n averageError= classifyPerformanceImages(asciiReader\n .getPerformanceImages());\n\n asciiReader.shuffleImages();\n index++;\n }\n \n System.out.println(\"# Average Error: \"+averageError);\n System.out.println(\"# Number of calibration rounds: \"+index);\n\n classifyTestImages();\n }",
"public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }",
"public static void predictBatch() throws IOException {\n\t\tsvm_model model;\n\t\tString modelPath = \"./corpus/trainVectors.scale.model\";\n\t\tString testPath = \"./corpus/testVectors.scale\";\n\t\tBufferedReader reader = new BufferedReader(new FileReader(testPath));\n\t\tmodel = svm.svm_load_model(modelPath);\n\t\tString oneline;\n\t\tdouble correct = 0.0;\n\t\tdouble total = 0.0;\n\t\twhile ((oneline = reader.readLine()) != null) {\n\t\t\tint pos = oneline.indexOf(\" \");\n\t\t\tint classid = Integer.valueOf(oneline.substring(0, pos));\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\tint length = st.countTokens();\n\t\t\tint i = 0;\n\t\t\tsvm_node[] svm_nodes = new svm_node[length];\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tmp = st.nextToken();\n\t\t\t\tint indice = Integer\n\t\t\t\t\t\t.valueOf(tmp.substring(0, tmp.indexOf(\":\")));\n\t\t\t\tdouble value = Double\n\t\t\t\t\t\t.valueOf(tmp.substring(tmp.indexOf(\":\") + 1));\n\t\t\t\tsvm_nodes[i] = new svm_node();\n\t\t\t\tsvm_nodes[i].index = indice;\n\t\t\t\tsvm_nodes[i].value = value;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tint predict_result = (int) svm.svm_predict(model, svm_nodes);\n\t\t\tif (predict_result == classid)\n\t\t\t\tcorrect++;\n\t\t\ttotal++;\n\t\t}\n\n\t\tSystem.out.println(\"Accuracy is :\" + correct / total);\n\n\t}",
"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}",
"public static void detectFaces(File file) throws Exception, IOException {\r\n\t\t List<AnnotateImageRequest> requests = new ArrayList<>();\r\n System.out.println(file.getPath());\r\n\r\n \r\n //convert picture file into original ByteString object and set values to request for google vision API\r\n\t\t ByteString imgBytes = ByteString.readFrom(new FileInputStream(file));\r\n\r\n\t\t Image img = Image.newBuilder().setContent(imgBytes).build();\r\n\t\t Feature feat = Feature.newBuilder().setType(Type.FACE_DETECTION).build();\r\n\t\t AnnotateImageRequest request =\r\n\t\t AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(img).build();\r\n\t\t requests.add(request);\r\n\r\n //call google vision API engine and returns annotations of the image\r\n\t\t try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {\r\n\t\t BatchAnnotateImagesResponse response = client.batchAnnotateImages(requests);\r\n\t\t List<AnnotateImageResponse> responses = response.getResponsesList();\r\n\r\n\t\t for (AnnotateImageResponse res : responses) {\r\n\t\t if (res.hasError()) {\r\n\t\t System.out.printf(\"Error: %s\\n\", res.getError().getMessage());\r\n\t\t return;\r\n\t\t }\r\n\r\n\t\t // retrieve annotation value of each emotion\r\n\t\t for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {\r\n\t\t int[] emoValue = {annotation.getAngerLikelihoodValue(),\r\n annotation.getJoyLikelihoodValue(),\r\n annotation.getSorrowLikelihoodValue(),\r\n annotation.getSurpriseLikelihoodValue(),\r\n };\r\n \r\n //choose highest annotation value of each emotion\r\n int max = 0;\r\n for (int i = 0; i < emoValue.length; i++){\r\n System.out.print(emoValue[i] + \" \");\r\n if (max < emoValue[i]){\r\n max = emoValue[i];\r\n index = i;\r\n }\r\n }\r\n //if all of emotion likelihood balue = 1, no expression\r\n if (max == 1){index = emotion.length-1;}\r\n System.out.println();\r\n System.out.println(emotion[index]);\r\n }\r\n\r\n\t\t }\r\n \r\n\t\t }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n\t\t}",
"public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }",
"public abstract void build(ClassifierData<U> inputData);",
"public Instances preprocess(PipelineData data) throws Exception {\n\t\tInstances instances = filterData(data);\n\n\t\tmodelString = getPreprocessingModel(data);\n\t\tanalyzeSystem(data);\n\t\tsaveAnalysis();\n\n\t\treturn instances;\n\t}",
"@SuppressLint(\"UnsafeExperimentalUsageError\")\n @Override\n public void analyze(@NonNull ImageProxy image_proxy) {\n ArrayList<Recognition> detections = _detector.DetectImage(image_proxy);\n\n // draw the bounding boxes\n _obj_tracker.ObjectTrackerDraw(detections);\n\n image_proxy.close();\n\n }",
"public static void main(String[] args) throws Exception {\n \t\n \tImageClassifierService ics = new ImageClassifierService(\"t1\");\n \tics.start();\n\n \tImageClassifierService ics2 = new ImageClassifierService(\"t2\");\n \tics2.start();\n\n }",
"public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }",
"private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }",
"public void fitToModel(final List<Mat> newFaceImages, final String lable, final int lableCount) {\n\n recognizer.setLabelInfo(lableCount, lable);\n\n final List<Mat> images = new ArrayList<>();\n final opencv_core.Mat lableMatrix = new opencv_core.Mat(newFaceImages.size(), 1, CV_32SC1);\n final IntBuffer labels = lableMatrix.createBuffer();\n newFaceImages.forEach(image -> {\n //resize the image\n Imgproc.resize(\n image, image, new Size(FACE_WIDTH, FACE_HEIGHT)\n );\n //convert to grayscale\n Imgproc.cvtColor(\n image, image, Imgproc.COLOR_RGB2GRAY\n );\n //add image and lables to test\n images.add(image);\n labels.put(\n images.size() - 1, lableCount\n );\n });\n\n //if the model does not exist we need to train the recognizer\n if(needsTrain) {\n recognizer.train(images, ImageOps.toMat(lableMatrix));\n needsTrain = false;\n return;\n }\n\n //otherwise just to update the model\n recognizer.update(images, ImageOps.toMat(lableMatrix));\n }",
"@Override\n public MLData compute(final MLData input) {\n\n if (this.model == null) {\n throw new EncogError(\n \"Can't use the SVM yet, it has not been trained, \" +\n \"and no model exists.\");\n }\n\n final MLData result = new BasicMLData(1);\n\n final svm_node[] formattedInput = makeSparse(input);\n\n final double d = svm.svm_predict(this.model, formattedInput);\n result.setData(0, d);\n\n return result;\n }"
] | [
"0.656016",
"0.65111136",
"0.62991774",
"0.6279313",
"0.6146632",
"0.595069",
"0.59487665",
"0.59284186",
"0.588137",
"0.5865056",
"0.58537424",
"0.58419377",
"0.58368754",
"0.5822447",
"0.580652",
"0.57751864",
"0.57557565",
"0.5741179",
"0.5705116",
"0.56822884",
"0.56773126",
"0.56627876",
"0.5638723",
"0.55522585",
"0.5501832",
"0.5460572",
"0.54252464",
"0.54217213",
"0.53900796",
"0.5332932",
"0.526635",
"0.5257149",
"0.5233177",
"0.5207733",
"0.52036136",
"0.5201898",
"0.5157739",
"0.5155389",
"0.5129379",
"0.51025635",
"0.50835335",
"0.507411",
"0.50306857",
"0.5026148",
"0.5013773",
"0.5009183",
"0.49889916",
"0.49866915",
"0.49795866",
"0.49670848",
"0.4962462",
"0.4957515",
"0.49306837",
"0.4927841",
"0.49240422",
"0.49198213",
"0.49161404",
"0.4915454",
"0.49067107",
"0.49044058",
"0.48990738",
"0.48955366",
"0.48889104",
"0.48842534",
"0.48740453",
"0.48615772",
"0.48526642",
"0.4852399",
"0.4842421",
"0.48413947",
"0.4821609",
"0.48120233",
"0.48091462",
"0.48075986",
"0.48064503",
"0.48061743",
"0.48007536",
"0.47943503",
"0.47920626",
"0.47920626",
"0.47920626",
"0.47920626",
"0.47887257",
"0.47880453",
"0.47799888",
"0.47755766",
"0.47650164",
"0.4764081",
"0.4757173",
"0.47534353",
"0.4752166",
"0.47509143",
"0.47455582",
"0.47444123",
"0.4741394",
"0.47394085",
"0.47300547",
"0.47275472",
"0.47263768",
"0.47183037"
] | 0.65970105 | 0 |
Preprocess the bitmap by converting it to ByteBuffer & grayscale | private void preprocess(Bitmap bitmap) {
convertBitmapToByteBuffer(bitmap);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);//\n Canvas c = new Canvas(bmpGrayscale);\n Paint paint = new Paint();\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n paint.setColorFilter(f);\n c.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGrayscale;\n }",
"private native int grayToRgb(byte src[],int dst[]);",
"public void gettingImageInput(){\n Bitmap bm = getYourInputImage();\n int z;\n if(res==2) { z=50; }\n else { z=224; }\n Bitmap bitmap = Bitmap.createScaledBitmap(bm, z, z, true);\n input = ByteBuffer.allocateDirect(z * z * 3 * 4).order(ByteOrder.nativeOrder());\n for (int y = 0; y < z; y++) {\n for (int x = 0; x < z; x++) {\n int px = bitmap.getPixel(x, y);\n\n // Get channel values from the pixel value.\n int r = Color.red(px);\n int g = Color.green(px);\n int b = Color.blue(px);\n\n // Normalize channel values to [-1.0, 1.0]. This requirement depends\n // on the model. For example, some models might require values to be\n // normalized to the range [0.0, 1.0] instead.\n float rf = (r) / 255.0f;\n float gf = (g) / 255.0f;\n float bf = (b) / 255.0f;\n\n input.putFloat(rf);\n input.putFloat(gf);\n input.putFloat(bf);\n }\n }\n }",
"public static final int[] convert2grey_fast(DataBuffer bim) {\n if (bim.getDataType() == DataBuffer.TYPE_BYTE) {\n DataBufferByte dbi = (DataBufferByte) bim;\n byte[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i] & 0x000000FF; //just take green component\n z++; //cheaper than i/3\n\n }\n return copy;\n } else {\n DataBufferInt dbi = (DataBufferInt) bim;\n int[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i]; //just take green component\n z++; //cheaper than i/3\n }\n return copy;\n }\n }",
"private void bufferImageGrey()\n {\n int col = 0;\n int[][] heightmap = parent.normaliseMap(parent.getPreviewMap(), 255);\n \n bufferedImage = createImage(heightmap.length, heightmap[0].length);\n Graphics bg = bufferedImage.getGraphics();\n for(int i = 0; i < heightmap.length; i ++) {\n for(int j = 0; j < heightmap[i].length - 1; j++) {\n col = heightmap[i][j];\n if(col > 255)\n col = 255;\n bg.setColor(new Color(col, col, col));\n bg.drawLine(i, j, i, j);\n }\n }\n }",
"private Bitmap convertToBitmap(byte[] b){\n\n return BitmapFactory.decodeByteArray(b, 0, b.length);\n\n }",
"public static native int nativeRecoBitmap(Bitmap bitmap, int lft, int rgt, int top, int btm, byte[]bresult, int maxsize);",
"public Bitmap toGrayscale(Bitmap bmpOriginal)\n\t { \n\t int width, height;\n\t height = bmpOriginal.getHeight();\n\t width = bmpOriginal.getWidth(); \n\n\t Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);\n\t Canvas c = new Canvas(bmpGrayscale);\n\t Paint paint = new Paint();\n\t ColorMatrix cm = new ColorMatrix();\n\t cm.setSaturation(0);\n\t ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n\t paint.setColorFilter(f);\n\t c.drawBitmap(bmpOriginal, 0, 0, paint);\n\t return bmpGrayscale;\n\t }",
"void greyscale();",
"void greyscale();",
"private Bitmap processBitmap(Bitmap bitmap) {\n Bitmap pic = bitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n // Get dimensions to base the following work off of.\n int picHeight = pic.getHeight();\n int picWidth = pic.getWidth();\n\n // In this block we're go to change every pixel to the closest 3-bit value. Then we're\n // going to \"dither\", or randomize, the adjacent, further pixels as to make the image\n // look more cleaner... for a 3-bit looking image that is... Ha!\n int x, y, oldPixel, newPixel;\n int quantError, rightPixel, bottomRightPixel, bottomPixel, bottomLeftPixel;\n for(y=0; y<picHeight; y++) {\n for(x=0; x<picWidth; x++) {\n oldPixel = pic.getPixel(x, y);\n newPixel = colorPicker(oldPixel);\n pic.setPixel(x, y, newPixel);\n\n quantError = computeQuantizationError(oldPixel, newPixel);\n\n if(x+1 < picWidth) { // Right pixel\n rightPixel = pic.getPixel(x+1, y);\n pic.setPixel(x+1, y, ditherPixel(rightPixel, quantError, 7.0/16.0));\n\n if (y+1 < picHeight) { // Right bottom pixel\n bottomRightPixel = pic.getPixel(x+1, y+1);\n pic.setPixel(x + 1, y+1, ditherPixel(bottomRightPixel, quantError, 1.0/16.0));\n }\n }\n if(y+1 < picHeight) { // Bottom pixel\n bottomPixel = pic.getPixel(x, y+1);\n pic.setPixel(x, y+1, ditherPixel(bottomPixel, quantError, 5.0/16.0));\n\n if (x-1 >= 0) { // Left bottom pixel\n bottomLeftPixel = pic.getPixel(x-1, y+1);\n pic.setPixel(x-1, y+1, ditherPixel(bottomLeftPixel, quantError, 3.0/16.0));\n }\n }\n }\n }\n\n return pic;\n }",
"public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);",
"private void grayscale(){\n int len= currentIm.getRows() * currentIm.getCols();\n \n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= DM.getRed(rgb);\n int blue= DM.getBlue(rgb);\n int green= DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n \n double brightness = 0.3 * red + 0.6 * green + 0.1 * blue;\n \n currentIm.setPixel(p,\n (alpha << 24) | ((int)brightness << 16) | ((int)brightness << 8) | (int)brightness);\n \n }\n }",
"void mo12205a(Bitmap bitmap);",
"public void ConvertToGray()\n {\n int in_imgWidth = image.getWidth();\n int in_imgHeight = image.getHeight();\n int i,j;\n Raster in_raster = image.getRaster();\n BufferedImage out_img = new BufferedImage(in_imgWidth, in_imgHeight, \n BufferedImage.TYPE_BYTE_GRAY);\n WritableRaster out_raster = (WritableRaster)out_img.getRaster();\n for(j = 0; j < in_imgHeight; j++)\n {\n for(i = 0; i < in_imgWidth; i++)\n {\n /*int rgb = image.getRGB(i, j);\n int alpha = (rgb >> 24) & 0xFF;\n int red = (rgb >> 16) & 0xFF;\n int green = (rgb >> 8) & 0xFF;\n int blue = (rgb & 0xFF);\n int grayLevel = (red + green + blue)/3;\n int gray = (alpha << 24)|(grayLevel << 16)|(grayLevel << 8)|grayLevel; \n System.out.println(gray);\n out_img.setRGB(i, j, gray);*/\n float gray = (in_raster.getSample(i, j, 0)+\n in_raster.getSample(i, j, 1)+\n in_raster.getSample(i, j, 2))/3;\n out_raster.setSample(i, j, 0, gray);\n }\n }\n out_img.setData(out_raster);\n image = out_img;\n //SaveImage(out_img,\"color\");\n }",
"Bitmap m7900a(Bitmap bitmap);",
"public void process(Bitmap bitmap) {\n this.bitmap = getCompressedBitmap(bitmap);\n execute();\n }",
"public void makeGrayscale() {\n PixelReader pr = img.getPixelReader();\n WritableImage gray = new WritableImage((int) w, (int) h);\n PixelWriter pw = gray.getPixelWriter();\n int count = 0;\n for (int i = 0; i < (int) h; i++) {\n for (int j = 0; j < (int) w; j++) {\n count += 1;\n Color color = pr.getColor(j, i);\n //Reading each pixel and converting to Grayscale\n pw.setColor(j, i, new Color((color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n 1.0));\n holderImg = gray;\n }\n }\n }",
"public static Bitmap parseToBnW(byte[] data, int length){\n int valueIndex = 0;\n int width = data[valueIndex++] & 0xFF;\n int height = data[valueIndex++] & 0xFF;\n int numOfPixels = width*height;\n\n int[] pixels = new int[numOfPixels];\n\n int pixelIndex = 0;\n int bitIndex = 7;\n byte currentByte = 0x00;\n while (pixelIndex < numOfPixels) {\n // reassign data and index for every byte (8 bits).\n if (pixelIndex % 8 == 0) {\n currentByte = data[valueIndex++];\n bitIndex = 7;\n }\n pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01);\n }\n\n if (pixelIndex != numOfPixels) {\n Rlog.e(LOG_TAG, \"parse end and size error\");\n }\n return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);\n }",
"public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tmp\");\n\n //Open an RandomAccessFile\n //Make sure you have added uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\n //into AndroidManifest.xml file\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n\n // get the width and height of the source bitmap.\n int width = imgIn.getWidth();\n int height = imgIn.getHeight();\n Bitmap.Config type = imgIn.getConfig();\n\n //Copy the byte to the file\n //Assume source bitmap loaded using options.inPreferredConfig = Config.ARGB_8888;\n FileChannel channel = randomAccessFile.getChannel();\n MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_WRITE, 0, imgIn.getRowBytes()*height);\n imgIn.copyPixelsToBuffer(map);\n //recycle the source bitmap, this will be no longer used.\n imgIn.recycle();\n System.gc();// try to force the bytes from the imgIn to be released\n\n //Create a new bitmap to load the bitmap again. Probably the memory will be available.\n imgIn = Bitmap.createBitmap(width, height, type);\n map.position(0);\n //load it back from temporary\n imgIn.copyPixelsFromBuffer(map);\n //close the temporary file and channel , then delete that also\n channel.close();\n randomAccessFile.close();\n\n // delete the temp file\n file.delete();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imgIn;\n }",
"private static native long imdecode_0(long buf_nativeObj, int flags);",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"private void toGray(Bitmap bmp) {\n int outH = bmp.getHeight();\n int outW = bmp.getWidth();\n\n int pixels[] = new int[outW*outH];\n bmp.getPixels(pixels, 0, outW, 0, 0, outW, outH);\n for (int i = 0; i < outW*outH; i++) {\n int gray = (int) (0.11 * Color.blue(pixels[i]) + 0.3 * Color.red(pixels[i]) + 0.59 * Color.green(pixels[i]));\n pixels[i] = Color.rgb(gray, gray, gray);\n }\n bmp.setPixels(pixels, 0, outW, 0, 0, outW, outH);\n }",
"void imageData(int width, int height, int[] rgba);",
"public static IntBuffer convertImage(BufferedImage temp)\t{\n\t\tint totalPixels = temp.getWidth() * temp.getHeight();\n\t\tint[] imgPixels = new int[totalPixels];\n\t\timgPixels = temp.getRGB(0, 0, temp.getWidth(), temp.getHeight(), null, 0, temp.getWidth());\n\t\t\n\t\t// Extract and rearrange the integer buffer in order to enable OpenGL \n\t\t// for further using the buffer data\n\t\tint[] buffer = new int[totalPixels];\n\t\tint i;\n\t\tfor(int y = 0; y < temp.getHeight(); y++)\t{\n\t\t\tfor(int x = 0; x < temp.getWidth(); x++)\t{\n\t\t\t\t// Isolate the bits and arrange them in the A-B-G-R order\n\t\t\t\t// Shift the binary digit to the right to get its value\n\t\t\t\ti = x + y * temp.getWidth();\n\t\t\t\tint a = (imgPixels[i] & 0xff000000) >> 24;\n\t\t\t\tint r = (imgPixels[i] & 0xff0000) >> 16;\n\t\t\t\tint g = (imgPixels[i] & 0xff00) >> 8;\n\t\t\t\tint b = (imgPixels[i] & 0xff);\n\t\t\t\t\n\t\t\t\tbuffer[temp.getWidth() * (temp.getHeight() - 1 - y) + x] = a << 24\n\t\t\t\t\t\t| b << 16 | g << 8 | r;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Convert the array to buffer then return\n\t\treturn convertInt(buffer);\n\t}",
"private Mat toGrayMat(Bitmap input) {\n Mat output = new Mat();\n\n // Convert Bitmap to Mat\n input = input.copy(Bitmap.Config.ARGB_8888, true);\n Utils.bitmapToMat(input, output);\n\n // Convert to grayscale\n Imgproc.cvtColor(output, output, Imgproc.COLOR_RGB2GRAY, 4);\n\n return output;\n }",
"private RawImage(int[][] rawImage, boolean hasAlpha, int res) {\n m_img = rawImage;\n m_hasAlpha = hasAlpha;\n m_height = m_img.length;\n m_width = m_height > 0 ? m_img[0].length : 0;\n m_res = res;\n }",
"static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}",
"public static native Bitmap nativeRecoStillImage(Bitmap bitmap, int tryhard, int bwantimg, byte[]bresult, int maxsize, int []rets);",
"ImageImpl (byte [] bytes) {\n\tint cnt = bytes.length / 2;\n\tint size = (bytes.length + 1) / 2;\n\tdata = new short [size];\n\tint bi = 0;\n\t\n\tfor (int i = 0; i < cnt; i++) {\n\t data [i] = (short) (((((int) bytes [bi]) & 0x0ff) << 8)\n\t\t\t\t | (((int) bytes [bi+1]) & 0x0ff));\n\t bi += 2;\n\t}\n\t\n\tif (size > cnt)\n\t data [cnt] = (short) ((((int) bytes [bi]) & 0x0ff) << 8);\n\n\tbitmap = new Bitmap (data);\n }",
"private void pix2img() {\r\n int g;\r\n img = new BufferedImage(pixels[0].length, pixels.length, BufferedImage.TYPE_INT_ARGB);\r\n // copy the pixels values\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length; ++col) {\r\n g = pixels[row][col];\r\n img.setRGB(col, row, ((255 << 24) | (g << 16) | (g << 8) | g));\r\n }\r\n }\r\n }",
"@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }",
"private Bitmap floatArrayToBitmap(float[] floatArray, int width, int height) {\n Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n // vector is your int[] of ARGB\n List<Integer> intList = new ArrayList<>();\n for (float v : floatArray) intList.add(transform(v));\n int[] intArray = intList.stream().mapToInt(Integer::intValue).toArray();\n System.out.println(Arrays.toString(intArray));\n bitmap.copyPixelsFromBuffer(IntBuffer.wrap(intArray));\n return bitmap;\n }",
"private TensorImage loadImage(final Bitmap bitmap) {\n inputImageBuffer.load(bitmap);\n\n // Creates processor for the TensorImage.\n int cropSize = Math.min(bitmap.getWidth(), bitmap.getHeight());\n\n ImageProcessor imageProcessor =\n new ImageProcessor.Builder()\n .add(new ResizeWithCropOrPadOp(cropSize, cropSize))\n .add(new ResizeOp(imageSizeX, imageSizeY, ResizeOp.ResizeMethod.NEAREST_NEIGHBOR))\n .add(getPreprocessNormalizeOp())\n .build();\n return imageProcessor.process(inputImageBuffer);\n }",
"public static int unpackGrayscale(int argb) {\n\t return (unpackRed(argb) + unpackGreen(argb) + unpackBlue(argb)) / 3;\n\t}",
"public Bitmap EncodeBitmap(Bitmap bitmap, String message){\n\n ArrayList<Boolean> srcBin = ToBinArray(message.getBytes());\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(bitmap.getByteCount());\n bitmap.copyPixelsToBuffer(byteBuffer);\n byte[] byteArray = byteBuffer.array();\n\n ArrayList<Byte> bytes = new ArrayList<>();\n\n for (int i = 0; i < 54; i++) {\n bytes.add(byteArray[i]);\n }\n\n for (int i = 54; i < byteArray.length; i++) {\n byte b = byteArray[i];\n\n b &= 0xFE;\n\n if (i-54<srcBin.size()){\n if(srcBin.get(i-54)){\n b |= 1 << 0;\n }\n }\n\n bytes.add(b);\n\n }\n\n\n\n byte[] encodedByteArray = toByteArray(bytes);\n\n // Convert to Bitmap\n Bitmap.Config configBmp = Bitmap.Config.valueOf(bitmap.getConfig().name());\n Bitmap bitmap_tmp = Bitmap.createBitmap(bitmap.getWidth(),bitmap.getHeight(), configBmp);\n ByteBuffer buffer = ByteBuffer.wrap(encodedByteArray);\n bitmap_tmp.copyPixelsFromBuffer(buffer);\n\n return bitmap_tmp;\n }",
"@Test\r\n public void testDirectMatPainting8SC1() {\n Mat m = new Mat(width, height, CV_8SC1);\r\n assertEquals(1, m.channels());\r\n assertEquals(1, m.capacity());\r\n assertEquals(width, m.step());\r\n assertEquals(width, m.cols());\r\n assertEquals(height, m.rows());\r\n\r\n ByteBuffer bb = m.createBuffer();\r\n for (long i = 0; i < width * height; i++) {\r\n long x = i % width, y = i / width;\r\n // blue to gray:\r\n byte gray = (byte) (pixelFunc(x, y) & 0xff);\r\n bb.put(gray);\r\n }\r\n\r\n // negative gray values get ignored/mapped to black/0. The total\r\n // (Java byte -> gray value) mapping is then:\r\n // -128..127 -> 128x 0, 0..127\r\n imwrite(new File(TEMP_DIR, \"testDirectMatPainting8SC1.png\").getAbsolutePath(), m);\r\n // @insert:image:testDirectMatPainting8SC1.png@\r\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public static Bitmap parseToRGB(byte[] data, int length,\n boolean transparency) {\n int valueIndex = 0;\n int width = data[valueIndex++] & 0xFF;\n int height = data[valueIndex++] & 0xFF;\n int bits = data[valueIndex++] & 0xFF;\n int colorNumber = data[valueIndex++] & 0xFF;\n int clutOffset = ((data[valueIndex++] & 0xFF) << 8)\n | (data[valueIndex++] & 0xFF);\n\n int[] colorIndexArray = getCLUT(data, clutOffset, colorNumber);\n if (true == transparency) {\n colorIndexArray[colorNumber - 1] = Color.TRANSPARENT;\n }\n\n int[] resultArray = null;\n if (0 == (8 % bits)) {\n resultArray = mapTo2OrderBitColor(data, valueIndex,\n (width * height), colorIndexArray, bits);\n } else {\n resultArray = mapToNon2OrderBitColor(data, valueIndex,\n (width * height), colorIndexArray, bits);\n }\n\n return Bitmap.createBitmap(resultArray, width, height,\n Bitmap.Config.RGB_565);\n }",
"public static void testGrayscale()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.toGrayscale();\n\t wall.explore();\n }",
"private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }",
"public byte[] bitmap();",
"public void pixaveGreyscale(int x1, int y1, int x2, int y2) {\n //float sumr,sumg,sumb;\n float sumg;\n int pix;\n //int r,g,b;\n float g;\n int n;\n\n if(x1<0) x1=0;\n if(x2>=kWidth) x2=kWidth-1;\n if(y1<0) y1=0;\n if(y2>=kHeight) y2=kHeight-1;\n\n //sumr=sumg=sumb=0.0;\n sumg = 0.0f;\n for(int y=y1; y<=y2; y++) {\n for(int i=kWidth*y+x1; i<=kWidth*y+x2; i++) {\n \n // old method use depth image\n //pix= kinecter.depthImg.pixels[i];\n //g = pix & 0xFF; // grey\n //sumg += g;\n \n //b=pix & 0xFF; // blue\n // pix = pix >> 8;\n //g=pix & 0xFF; // green\n //pix = pix >> 8;\n //r=pix & 0xFF; // red\n //if( random(0, 150000) > 149000 && r > 0) println(\"r \" + r + \" b \" + b + \" g \" + g);\n // averaging the values\n //sumr += b;//r;//g;//r;\n //sumg += b;//r;//g;\n //sumb += b;//r;//g;//b;\n \n // WORK WITH RAW DEPTH INSTEAD\n sumg += kinecter.rawDepth[i];\n\n \n }\n }\n n = (x2-x1+1)*(y2-y1+1); // number of pixels\n // the results are stored in static variables\n //ar = sumr/n; \n //ag = sumg/n; \n //ab = sumb/n;\n\n ar = sumg/n; \n ag = ar; \n ab = ar;\n }",
"public static native void process(Bitmap in, int width, int height, Bitmap out, int outputSize,\n float scale, float angleRadians);",
"@Override\n protected void putImageBuffer(BufferedImage input) \n {\n // Load data in. \n for (int y = 0; y < height; y++) \n {\n for (int x = 0; x < width; x++) \n {\n\t\tdouble h = getHeight(input, x, y);\n\t\tdouble du = 0;\n\t\tdouble dv = 0;\n\t\t\n\t\tif(x > 0)\n\t\t{\t\n\t\t du += h - getHeight(input, x-1, y);\n\t\t}\n\t\tif(x < width - 1)\n\t\t{\n\t\t du += getHeight(input, x+1, y) - h;\n\t\t}\n\t\tif(y > 0)\n\t\t{\n\t\t dv += h - getHeight(input, x , y-1);\n\t\t}\n\t\tif(y < height - 1)\n\t\t{\n\t\t dv += getHeight(input, x, y+1) - h;\n\t\t}\n\t\t\n\t\tdouble u = -du;\n\t\tdouble v = -dv;\n\t\tdouble w = 0.25;\n \n\t\tdouble n = Math.sqrt(u*u + v*v + w*w);\n\n byte a = (byte)(h * 255.0);\n byte r = (byte)((u / n + 1.0) / 2.0 * 255.0);\n byte g = (byte)((v / n + 1.0) / 2.0 * 255.0);\n byte b = (byte)((w / n + 1.0) / 2.0 * 255.0);\n \n int index = (x + y * allocatedWidth) * 4;\n pixelData.put(index++, r);\n pixelData.put(index++, g);\n pixelData.put(index++, b);\n pixelData.put(index , a);\n }\n }\n }",
"public static native int nativeRecoRawdat(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, byte []bresult, int maxsize);",
"private TensorImage loadImage(final Bitmap bitmap) {\n inputImageBuffer.load(bitmap);\n\n // Creates processor for the TensorImage.\n int cropSize = Math.min(bitmap.getWidth(), bitmap.getHeight());\n // TODO(b/143564309): Fuse ops inside ImageProcessor.\n ImageProcessor imageProcessor =\n new ImageProcessor.Builder()\n .add(new ResizeWithCropOrPadOp(cropSize, cropSize))\n .add(new ResizeOp(imageSizeX, imageSizeY, ResizeOp.ResizeMethod.NEAREST_NEIGHBOR))\n .add(getPreprocessNormalizeOp())\n .build();\n return imageProcessor.process(inputImageBuffer);\n }",
"public static Bitmap CreateBitmapFromGridOfCells(TrafficCell[][] i_grid,int i_mode, boolean i_drawVehicles) {\n// The first index is the y coordinate measured from the top; the second\n// index is the x coordinate measured from the left.\nint t_height = i_grid.length;\nint t_width = 0;\nif (i_grid[0] != null)\nt_width = i_grid[0].length;\n\nBitmap.Config t_conf = Bitmap.Config.ARGB_8888;\nBitmap t_bitmap = Bitmap.createBitmap(t_width, t_height, t_conf);\n\n// this is a slow method\n// TODO: change this to setPixels or to copyPixelsFrom...\nfor (int i = 0; i < t_height; i++) {\nfor (int j = 0; j < t_width; j++) {\nt_bitmap.setPixel(j, i,\nCalulateColorFromTrafficCell(i_grid[i][j], i_mode,i_drawVehicles));\n}\n}\nreturn t_bitmap;\n}",
"public @NotNull Image flipH()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n if (this.format != ColorFormat.RGBA)\n {\n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n // OPTION 1: Move pixels with memCopy()\n long src = Integer.toUnsignedLong(y * this.width + this.width - 1 - x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, bytesPerLine);\n \n // OPTION 2: Just copy data pixel by pixel\n // output.put(y * this.width + x, this.data.getBytes(y * this.width + (this.width - 1 - x)));\n }\n }\n \n this.data.free();\n \n this.data = output;\n }\n else\n {\n // OPTION 3: Faster implementation (specific for 32bit pixels)\n // NOTE: It does not require additional allocations\n IntBuffer ptr = this.data.toBuffer().asIntBuffer();\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width / 2; x++)\n {\n int backup = ptr.get(y * this.width + x);\n ptr.put(y * this.width + x, ptr.get(y * this.width + this.width - 1 - x));\n ptr.put(y * this.width + this.width - 1 - x, backup);\n }\n }\n }\n this.mipmaps = 1;\n }\n \n return this;\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == getActivity().RESULT_OK && data != null && data.getData() != null) {\n\n Uri uri = data.getData();\n\n try {\n ByteArrayOutputStream boas = new ByteArrayOutputStream();\n\n\n Bitmap btmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), uri);\n\n btmap.compress(Bitmap.CompressFormat.JPEG, 70, boas); //bm is the bitmap object\n byte[] byteArrayImage = boas.toByteArray();\n\n\n BitmapFactory.Options opt;\n\n opt = new BitmapFactory.Options();\n opt.inTempStorage = new byte[16 * 1024];\n opt.inSampleSize = 2;\n Bitmap bitmap = BitmapFactory.decodeByteArray(byteArrayImage, 0, byteArrayImage.length, opt);\n\n ImageView imageView = (ImageView) getActivity().findViewById(R.id.profile_back);\n CircleImageView dp = (CircleImageView) getActivity().findViewById(R.id.dp1);\n dp.setImageBitmap(bitmap);\n Bitmap bitmap1=grayscale(bitmap);\n Bitmap blurred = blurRenderScript(bitmap1, 25);\n imageView.setImageBitmap(blurred);\n } catch (OutOfMemoryError a) {\n Toast.makeText(getActivity().getApplicationContext(), \"Image size high\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void onClick(View view) {\n\n Bitmap bit = bitmap.copy(Bitmap.Config.ARGB_8888, false);\n Mat src = new Mat(bit.getHeight(), bit.getWidth(), CvType.CV_8UC(3));\n Utils.bitmapToMat(bit, src);\n Imgproc.cvtColor(src, src, Imgproc.COLOR_BGR2GRAY);\n Mat dst = new Mat(bit.getHeight(), bit.getWidth(), CvType.CV_8UC1);\n Mat kernel = new Mat(new Size(3, 3), CvType.CV_32FC1, new Scalar(0));\n kernel.put(0, 0, -1, 0, -1);\n kernel.put(1, 0, 0, 5, 0);\n kernel.put(2, 0, -1, 0, -1);\n Imgproc.filter2D(src, dst, src.depth(), kernel);\n Utils.matToBitmap(dst, bitmap);\n img.setImageBitmap(bitmap);\n }",
"private BufferedImage CreateBuffedImage(WinFileMappingBuffer fm, boolean bWithAlphaChanle) {\n BitmapFileBuffer bitmap = new BitmapFileBuffer();\n if (!bitmap.Load(fm.getBuffer())) {\n return null;\n }\n return bitmap.GetBuffedImage(bWithAlphaChanle);\n }",
"@Test\r\n public void testDirectMatPainting8UC1() {\n Mat m = new Mat(width, height, CV_8UC1);\r\n assertEquals(1, m.channels());\r\n assertEquals(1, m.capacity());\r\n assertEquals(width, m.step());\r\n assertEquals(width, m.cols());\r\n assertEquals(height, m.rows());\r\n\r\n ByteBuffer bb = m.createBuffer();\r\n for (long i = 0; i < width * height; i++) {\r\n long x = i % width, y = i / width;\r\n // blue to gray:\r\n byte gray = (byte) (pixelFunc(x, y) & 0xff);\r\n bb.put(gray);\r\n }\r\n\r\n // Java's byte is always signed, but opencv seems to treat it as\r\n // unsigned, ie. -1 is maximum luminosity, ie. gray value 255. The total\r\n // (Java byte -> gray value) mapping is then:\r\n // 0..127, -128..-1 -> 0..255\r\n imwrite(new File(TEMP_DIR, \"testDirectMatPainting8UC1.png\").getAbsolutePath(), m);\r\n // @insert:image:testDirectMatPainting8UC1.png@\r\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"private static BufferedImage getGrayScale(BufferedImage inputImage) {\n BufferedImage img = new BufferedImage(inputImage.getWidth(), inputImage.getHeight(),\n BufferedImage.TYPE_BYTE_GRAY);\n Graphics g = img.getGraphics();\n g.drawImage(inputImage, 0, 0, null);\n g.dispose();\n return img;\n }",
"public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}",
"Bitmap mo1406a(Bitmap bitmap, float f);",
"public TE doInBackground(byte[]... data) {\n return PhotoModule.this.convertN21ToBitmap(data[0]);\n }",
"private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void changePixelValues(ImageProcessor ip) {\n\t\t\tint[] pixels = (int[])ip.getPixels();\r\n\t\t\t\r\n\t\t\tfor (int y=0; y<height; y++) {\r\n\t\t\t\tfor (int x=0; x<width; x++) {\r\n\t\t\t\t\tint pos = y*width + x;\r\n\t\t\t\t\tint argb = origPixels[pos]; // Lesen der Originalwerte \r\n\t\t\t\t\t\r\n\t\t\t\t\tint r = (argb >> 16) & 0xff;\r\n\t\t\t\t\tint g = (argb >> 8) & 0xff;\r\n\t\t\t\t\tint b = argb & 0xff;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// anstelle dieser drei Zeilen später hier die Farbtransformation durchführen,\r\n\t\t\t\t\t// die Y Cb Cr -Werte verändern und dann wieder zurücktransformieren\r\n\t\t\t\t\t\r\n\t\t\t\t\tYUV c = new YUV(r, g, b);\r\n\t\t\t\t\t\r\n\t\t\t\t\tc.changeBrightness(brightness).changeContrast(contrast).changeSaturation(saturation).changeHue(hue);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint[] rgbNew = c.toRGB();\r\n\r\n\t\t\t\t\t// Hier muessen die neuen RGB-Werte wieder auf den Bereich von 0 bis 255 begrenzt werden\r\n\t\t\t\t\t\r\n\t\t\t\t\tpixels[pos] = (0xFF<<24) | (rgbNew[0]<<16) | (rgbNew[1]<<8) | rgbNew[2];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public BufferedImage RescaleImage(BufferedImage timg) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg); // convert to array\n\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray[x][y][1] = (int) (1.3 * ImageArray[x][y][1]); //r\n ImageArray[x][y][2] = (int) (1.3 * ImageArray[x][y][2]); //g\n ImageArray[x][y][3] = (int) (1.3 * ImageArray[x][y][3]); //b\n }\n }\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n if (ImageArray[x][y][1] < 0)\n ImageArray[x][y][1] = 0;\n if (ImageArray[x][y][2] < 0)\n ImageArray[x][y][2] = 0;\n if (ImageArray[x][y][3] < 0)\n ImageArray[x][y][3] = 0;\n if (ImageArray[x][y][1] > 255)\n ImageArray[x][y][1] = 255;\n if (ImageArray[x][y][2] > 255)\n ImageArray[x][y][2] = 255;\n if (ImageArray[x][y][3] > 255)\n ImageArray[x][y][3] = 255;\n }\n }\n return convertToBimage(ImageArray); //convert the array to BufferedImage\n }",
"public native PixelPacket[] getColormap() throws MagickException;",
"private void bitToByte(Bitmap bmap) {\n\t\ttry {\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\tbmap.compress(Bitmap.CompressFormat.PNG, 100, bos);\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException ioe) {\n\n\t\t}\n\t}",
"private void gaussianBlur() {\n targetImage = new Mat();\n Utils.bitmapToMat(lena, targetImage);\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_BGR2RGB);\n\n gaussianBlur(targetImage.getNativeObjAddr());\n\n // create a bitMap\n Bitmap bitMap = Bitmap.createBitmap(targetImage.cols(),\n targetImage.rows(), Bitmap.Config.RGB_565);\n // convert Mat to Android's bitmap:\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_RGB2BGR);\n Utils.matToBitmap(targetImage, bitMap);\n\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bitMap);\n }",
"public void gray_sweep(FTBitmapRec target) {\nDebug(0, DebugTag.DBG_SWEEP, TAG, \"gray_sweep\");\n int yindex;\n\n if (num_cells == 0) {\n return;\n }\n num_gray_spans = 0;\n FTTrace.Trace(7, TAG, \"gray_sweep: start \"+ycount);\n for (yindex = 0; yindex < ycount; yindex++) {\n TCellRec cell = ycells[yindex];\n int cover = 0;\n int x = 0;\n\n for ( ; cell != null; cell = cell.getNext()) {\n int area;\n\nDebug(0, DebugTag.DBG_SWEEP, TAG, String.format(\"cell->next: %d\", cell.getNext() == null ? -1 : cell.getNext().getSelf_idx()));\nDebug(0, DebugTag.DBG_SWEEP, TAG, String.format(\"gray_sweep 1: cell.x: %d x: %d, yindex: %d, cover: %x\", cell.getX(), x, yindex, cover));\n if (cell.getX() > x && cover != 0) {\n gray_hline(x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), cell.getX() - x );\n }\n cover += cell.getCover();\n area = cover * (RasterUtil.ONE_PIXEL() * 2) - cell.getArea();\n if (area != 0 && cell.getX() >= 0) {\n gray_hline(cell.getX(), yindex, area, 1 );\n }\n x = cell.getX() + 1;\n }\n if (cover != 0) {\n gray_hline(x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), count_ex - x);\n }\n }\n if (num_gray_spans > 0) {\n gray_render_span(span_y, num_gray_spans, gray_spans);\n }\n if (num_gray_spans > 0) {\n FTSpanRec span;\n int spanIdx = 0;\n int n;\n StringBuffer str = new StringBuffer(\"\");\n\n str.append(String.format(\"y = %3d \", span_y));\n for (n = 0; n < num_gray_spans; n++, spanIdx++) {\n span = gray_spans[spanIdx];\n str.append(String.format(\" [%d..%d]:0x%02x \",\n span.getX(), span.getX() + span.getLen() - 1, span.getCoverage() & 0xFF));\n }\n FTTrace.Trace(7, TAG, str.toString());\n }\n FTTrace.Trace(7, TAG, \"gray_sweep: end\");\n }",
"public static BufferedImage makePPM(byte[] aux) {\n int w = 0, h = 0;\n boolean fin = true;\n\n char[] iaux = new char[aux.length];\n for (int j = 0; j < aux.length; j++) {\n iaux[j] = (char) (aux[j] & 0xFF);\n }\n\n for (int i = 3; iaux[i] != '\\n'; ++i) {\n if (iaux[i] == ' ') fin = false;\n else {\n if (fin) {\n int a = Character.getNumericValue(iaux[i]);\n w *= 10;\n w += a;\n } else {\n int a = Character.getNumericValue(iaux[i]);\n h *= 10;\n h += a;\n }\n }\n }\n\n BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n int r, g, b, k = 0, pixel;\n for (int y = 0; y < h; y++) {\n for (int x = 0; (x < w) && ((k + 3) < aux.length); x++) {\n r = aux[k++] & 0xFF;\n g = aux[k++] & 0xFF;\n b = aux[k++] & 0xFF;\n pixel = 0xFF000000 + (r << 16) + (g << 8) + b;\n image.setRGB(x, y, pixel);\n }\n }\n\n return image;\n }",
"public void ConvertImage() {\n int width = source.width();\n int height = source.height();\n int bgStrel_width = (int) Math.round(width * bgStrelConst_width);\n int bgStrel_height = (int) Math.round(height * bgStrelConst_width);\n Log.i(\"Process Trace\",\"begining grayscale conversion\");\n Imgproc.cvtColor(source, convertedImage, Imgproc.COLOR_RGB2GRAY);\n Log.i(\"Process Trace\",\"done with grayscale conversion\");\n\n\n //adjust the image intensity/contrast\n Log.i(\"Process Trace\",\"begining image intensity/contrast adjustment\");\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n convertedImage.convertTo(convertedImage, -1, 1.5, -100.0);\n Log.i(\"Process Trace\",\"done with image intensity/contrast adjustment\");\n\n //Removing Background\n //Creating background Strel\n Mat background = convertedImage.clone();\n Imgproc.medianBlur(background, background, 39);\n Log.i(\"Process Trace\",\"begining to create backgroundStrel\");\n Log.i(\"Process Trace\",\"backgroundStrel created\");\n Log.i(\"Process Trace\",\"Eroding convertedImage against backgroundStrel\");\n Imgproc.threshold(background,background,90,110,Imgproc.THRESH_BINARY);\n Imgproc.erode(background,background,Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT, new Size(bgStrel_width,bgStrel_height)));\n Log.i(\"Process Trace\",\"Final Background created\");\n Log.i(\"Process Trace\",\"begining to subtract background from image\");\n Core.absdiff(convertedImage,background,convertedImage);\n Log.i(\"Process Trace\",\"Background removed\");\n\n //Imgproc.equalizeHist(convertedImage,convertedImage);// correction before applying filters\n\n/**/\n\n\n Imgproc.medianBlur(convertedImage, convertedImage, 3);\n //something\n //Log.i(\"Displaying Mat\", convertedImage.);\n //ty to blur out the fine details fo creating the bg.\n //this will make a better mask for removing the bg\n //Mat bg = new Mat();\n //Imgproc.threshold(convertedImage,bg,90,110,Imgproc.THRESH_BINARY);\n //Core.absdiff(convertedImage,bg,convertedImage);\n\n //Removing Background and Noise\n\n\n //Initial Contrast enhancement\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n\n //mockProcess: assuming bg and noise are removed\n Mat octagon = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_CROSS, new Size((int)(width*.008),(int)(height*.0075)));\n Imgproc.dilate(convertedImage,convertedImage,octagon);\n //Imgproc.floodFill(convertedImage,convertedImage,new Point(0,0),new Scalar(255,255,255));\n Imgproc.medianBlur(convertedImage,convertedImage,7);\n //Imgproc.equalizeHist(convertedImage,convertedImage);\n //Imgproc.floodFill(convertedImage,convertedImage,new Point(0,0),new Scalar(255,255,255))\n }",
"private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}",
"private native int applyFaceDetection2(byte[] data,int len,int width,int height);",
"void process(Mat image);",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}",
"public abstract void setUpBitmap(Context context);",
"public int transformPixel(int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8) {\n\n// int red = constrain(Color.red(inPixel) + ADJUSTMENT);\n// int green = constrain(Color.green(inPixel) + ADJUSTMENT);\n// int blue = constrain(Color.blue(inPixel) + ADJUSTMENT);\n// int outPixel = Color.argb(Color.alpha(inPixel), red, green, blue);\n int west[] = {1, 1, -1, 1, -2, -1, 1, 1, -1};\n int current[] = {p0, p1, p2, p3, p4, p5, p6, p7, p8};\n int outPixelR = 0, outPixelG = 0, outPixelB = 0;\n\n int[] currentR = new int[west.length];\n int[] currentG = new int[west.length];\n int[] currentB = new int[west.length];\n\n\n //separate RGB\n for (int i = 0; i < west.length; i++) {\n currentR[i] = constrain(Color.red(current[i]));\n currentG[i] = constrain(Color.green(current[i]));\n currentB[i] = constrain(Color.blue(current[i]));\n }\n\n //sum\n for (int i = 0; i < west.length; i++) {\n\n outPixelR += currentR[i] * west[i];\n outPixelG += currentG[i] * west[i];\n outPixelB += currentB[i] * west[i];\n\n }\n\n //divide for average\n outPixelG /= 9;\n outPixelR /= 9;\n outPixelB /= 9;\n\n\n\n\n int outPixel = Color.argb(Color.alpha(p4), outPixelR, outPixelG, outPixelB);\n\n\n return outPixel;\n }",
"public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}",
"public void image_toGrey(int my_id) {\n int y1;\n //int offset = size;\n int myInitRow = (int)(((float)my_id/(float)nThreads)*((float)height/2.0f));\n int nextThreadRow = (int)(((float)(my_id+1)/(float)nThreads)*((float)height/2.0f));\n int myEnd, myOff;\n myOff = 2*width*myInitRow;\n myEnd = 2*width*nextThreadRow;\n for(int i=myOff; i < myEnd;i++) {\n y1 = data[i]&0xff;\n image[i] = 0xff000000 | (y1<<16) | (y1<<8) | y1;\n }\n }",
"public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }",
"private native void convertToLum( short[] data, int w, int h );",
"public Bitmap buildResultBitmap() {\n if(mTempBitmap!=null) return mTempBitmap;\n Bitmap bitmap ;\n if(mRotateAngle!=0) bitmap = Util.rotateBitmap(mDocumentBitmap,mRotateAngle);\n else bitmap = Bitmap.createBitmap(mDocumentBitmap);\n\n switch (mFilter) {\n case FILTER_MAGIC:\n bitmap = ScanUtils.getMagicColorBitmap(bitmap);\n break;\n case FILTER_GRAY_SCALE:\n bitmap = ScanUtils.getGrayBitmap(bitmap);\n break;\n case FILTER_BnW:\n bitmap = ScanUtils.getBWBitmap(bitmap);\n break;\n }\n\n return bitmap;\n }",
"public @NotNull Image flipV()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int i = this.height - 1, offsetSize = 0; i >= 0; i--)\n {\n long src = srcPtr + Integer.toUnsignedLong(i * this.width) * this.format.sizeof;\n \n MemoryUtil.memCopy(src, dstPtr + offsetSize, bytesPerLine);\n offsetSize += bytesPerLine;\n }\n \n this.data.free();\n this.data = output;\n this.mipmaps = 1;\n }\n return this;\n }",
"public Bitmap stylizeImage(TensorFlowInferenceInterface inferenceInterface, Bitmap bitmap) {\n bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n for (int i = 0; i < intValues.length; ++i) {\n final int val = intValues[i];\n floatValues[i * 3 + 0] = ((val >> 16) & 0xFF) * 1.0f;\n floatValues[i * 3 + 1] = ((val >> 8) & 0xFF) * 1.0f;\n floatValues[i * 3 + 2] = (val & 0xFF) * 1.0f;\n }\n\n Trace.beginSection(\"feed\");\n inferenceInterface.feed(INPUT_NAME, floatValues, INPUT_SIZE, INPUT_SIZE, 3);\n Trace.endSection();\n\n Trace.beginSection(\"run\");\n inferenceInterface.run(new String[]{OUTPUT_NAME});\n Trace.endSection();\n\n Trace.beginSection(\"fetch\");\n inferenceInterface.fetch(OUTPUT_NAME, floatValues);\n Trace.endSection();\n\n for (int i = 0; i < intValues.length; ++i) {\n intValues[i] =\n 0xFF000000\n | (((int) (floatValues[i * 3 + 0])) << 16)\n | (((int) (floatValues[i * 3 + 1])) << 8)\n | ((int) (floatValues[i * 3 + 2]));\n }\n bitmap.setPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n return bitmap;\n }",
"protected void setImageData(BufferedImage img) {\n \t\tif (format == null || format == Format.TEXT || format == Format.COLOR16_8x8)\n \t\t\treturn;\n \t\n \t\tequalize(img);\n \t\t\n \t\t//denoise(img);\n \t\t\n \t\tupdatePaletteMapping();\n \t\n \t\tflatten(img);\n \t\t\n \t\tif (!importDirectMappedImage(img)) {\n \t\t\tconvertImageToColorMap(img);\n \t\t}\n \t\n \t\treplaceImageData(img);\n \t}",
"private void recompose(int[][] array,int[][] red,int[][] green,int[][] blue){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tfor(int j=0;j<array[0].length;j++){\n\t\t\t\tarray[i][j]=GImage.createRGBPixel(red[i][j],green[i][j],blue[i][j]);\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}",
"private static BufferedImage transformImage(BufferedImage image) {\n // Scale image to desired dimension (28 x 28)\n Image tmp = image.getScaledInstance(28, 28, Image.SCALE_SMOOTH);\n BufferedImage scaledImage = new BufferedImage(28, 28, BufferedImage.TYPE_INT_ARGB);\n\n Graphics2D g2d = scaledImage.createGraphics();\n g2d.drawImage(tmp, 0, 0, null);\n\n // Loop through each pixel of the new image\n for (int x = 0; x < 28; x++) {\n for (int y = 0; y < 28; y++) {\n // Get original color\n Color color = new Color(scaledImage.getRGB(x, y));\n\n // Ignore white values\n if (color.getRGB() == -1) {\n continue;\n }\n\n // 'Boost' the grey values so they become more black\n float[] hsv = new float[3];\n Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsv);\n hsv[2] = (float) 0.5 * hsv[2];\n int newColor = Color.HSBtoRGB(hsv[0], hsv[1], hsv[2]);\n\n // Save new color\n scaledImage.setRGB(x, y, newColor);\n }\n }\n\n // Free resources\n g2d.dispose();\n\n return scaledImage;\n }",
"private void manuallyPushImageToImageReader(){\n mImageReader = VNCUtility.createImageReader(this);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n Log.d(TAG, \"NEW IMAGE AVAILABLE\");\n\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n\n\n Image image = reader.acquireLatestImage();\n VNCUtility.printReaderFormat(image.getFormat());\n Log.d(TAG, \"IMAGE FORMAT: \" + image.getFormat());\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * mWidth;\n int w = mWidth + rowPadding / pixelStride;\n Bitmap bmp = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.RGB_565);\n bmp.copyPixelsFromBuffer(buffer);\n mBmp = bmp;\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //saveScreen(mBmp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n t.start();\n\n image.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n\n\n /*\n Image img = reader.acquireLatestImage();\n Image.Plane[] planes = img.getPlanes();\n int width = img.getWidth();\n int height = img.getHeight();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n ByteBuffer buffer = planes[0].getBuffer();\n byte[] data = new byte[buffer.capacity()];\n buffer.get(data);\n\n for(int i = 10000; i < 100; i++){\n Log.d(TAG, getColourForInt(data[i]));\n }\n\n int offset = 0;\n Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int pixel = 0;\n pixel |= (buffer.get(offset) & 0xff) << 16; // R\n pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G\n pixel |= (buffer.get(offset + 2) & 0xff); // B\n pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A\n bitmap.setPixel(j, i, pixel);\n offset += pixelStride;\n }\n offset += rowPadding;\n }\n mBmp = bitmap;\n img.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n */\n }\n }, null);\n Surface surface = mImageReader.getSurface();\n if(surface == null){\n Log.d(TAG, \"SURFACE IS NULL\");\n }\n else{\n Log.d(TAG, \"SURFACE IS NOT NULL\");\n Canvas canvas = surface.lockCanvas(null);\n\n int[] ints = new int[mWidth * mHeight];\n for (int i = 0; i < mWidth * mHeight; i++) {\n ints[i] = Color.MAGENTA;//0x00FF0000;\n }\n\n //final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, ints.length);\n Bitmap bitmap = Bitmap.createBitmap(ints, mWidth, mHeight, Bitmap.Config.RGB_565);\n //canvas.drawARGB(255, 255, 0, 255);\n canvas.drawBitmap(bitmap,0,0,null);\n surface.unlockCanvasAndPost(canvas);\n }\n }",
"public @NotNull Image dither(int rBpp, int gBpp, int bBpp, int aBpp)\n {\n if (this.data != null)\n {\n Color.Buffer pixels = Objects.requireNonNull(getColorData());\n \n this.data.free(); // free old image data\n \n this.format = ColorFormat.RGBA;\n this.data = Color.malloc(this.format, this.width * this.height);\n this.mipmaps = 1;\n \n Color color;\n \n int r, g, b, a;\n int rErr, gErr, bErr, aErr;\n int rNew, gNew, bNew, aNew;\n \n int rs = (1 << rBpp) - 1;\n int gs = (1 << gBpp) - 1;\n int bs = (1 << bBpp) - 1;\n int as = (1 << aBpp) - 1;\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n color = pixels.get(y * this.width + x);\n \n r = color.r();\n g = color.g();\n b = color.b();\n a = color.a();\n \n // NOTE: New pixel obtained by bits truncate, it would be better to round values (check ImageFormat())\n rNew = rs > 0 ? ((((r + (127 / rs)) * rs) / 255) * 255) / rs : 0;\n gNew = gs > 0 ? ((((g + (127 / gs)) * gs) / 255) * 255) / gs : 0;\n bNew = bs > 0 ? ((((b + (127 / bs)) * bs) / 255) * 255) / bs : 0;\n aNew = as > 0 ? ((((a + (127 / as)) * as) / 255) * 255) / as : 255;\n \n // NOTE: Error must be computed between new and old pixel but using same number of bits!\n // We want to know how much color precision we have lost...\n rErr = r - rNew;\n gErr = g - gNew;\n bErr = b - bNew;\n aErr = a - aNew;\n \n this.data.put(y * this.width + x, rNew, gNew, bNew, aNew);\n \n // NOTE: Some cases are out of the array and should be ignored\n if (x < this.width - 1)\n {\n color = pixels.get(y * this.width + x + 1);\n color.set(color.r() + (int) (rErr * 7F / 16F),\n color.g() + (int) (gErr * 7F / 16F),\n color.b() + (int) (bErr * 7F / 16F),\n color.a() + (int) (aErr * 7F / 16F));\n }\n \n if (x > 0 && y < this.height - 1)\n {\n color = pixels.get((y + 1) * this.width + x - 1);\n color.set(color.r() + (int) (rErr * 3F / 16F),\n color.g() + (int) (gErr * 3F / 16F),\n color.b() + (int) (bErr * 3F / 16F),\n color.a() + (int) (aErr * 3F / 16F));\n }\n \n if (y < this.height - 1)\n {\n color = pixels.get((y + 1) * this.width + x);\n color.set(color.r() + (int) (rErr * 5F / 16F),\n color.g() + (int) (gErr * 5F / 16F),\n color.b() + (int) (bErr * 5F / 16F),\n color.a() + (int) (aErr * 5F / 16F));\n }\n \n if (x < this.width - 1 && y < this.height - 1)\n {\n color = pixels.get((y + 1) * this.width + x + 1);\n color.set(color.r() + (int) (rErr * 1F / 16F),\n color.g() + (int) (gErr * 1F / 16F),\n color.b() + (int) (bErr * 1F / 16F),\n color.a() + (int) (aErr * 1F / 16F));\n }\n }\n }\n }\n return this;\n }",
"public static final int[] convert2grey_fast(BufferedImage bim) {\n return convert2grey_fast(bim.getRaster().getDataBuffer());\n }",
"private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);",
"private android.graphics.Bitmap getMaskBitmap() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.f5066b;\n if (r1 == 0) goto L_0x0009;\n L_0x0006:\n r1 = r0.f5066b;\n return r1;\n L_0x0009:\n r1 = r0.f5069f;\n r2 = r20.getWidth();\n r1 = r1.m6537a(r2);\n r2 = r0.f5069f;\n r3 = r20.getHeight();\n r2 = r2.m6539b(r3);\n r3 = m6543a(r1, r2);\n r0.f5066b = r3;\n r4 = new android.graphics.Canvas;\n r3 = r0.f5066b;\n r4.<init>(r3);\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5049a;\n r5 = r0.f5069f;\n r5 = r5.f5059i;\n r5 = r5.ordinal();\n r3 = r3[r5];\n r5 = 4611686018427387904; // 0x4000000000000000 float:0.0 double:2.0;\n r7 = 2;\n if (r3 == r7) goto L_0x0074;\n L_0x003b:\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5050b;\n r8 = r0.f5069f;\n r8 = r8.f5051a;\n r8 = r8.ordinal();\n r3 = r3[r8];\n r8 = 0;\n switch(r3) {\n case 2: goto L_0x0055;\n case 3: goto L_0x0051;\n case 4: goto L_0x004f;\n default: goto L_0x004b;\n };\n L_0x004b:\n r9 = r1;\n r3 = 0;\n L_0x004d:\n r10 = 0;\n goto L_0x0058;\n L_0x004f:\n r3 = r2;\n goto L_0x0053;\n L_0x0051:\n r8 = r1;\n r3 = 0;\n L_0x0053:\n r9 = 0;\n goto L_0x004d;\n L_0x0055:\n r10 = r2;\n r3 = 0;\n r9 = 0;\n L_0x0058:\n r19 = new android.graphics.LinearGradient;\n r12 = (float) r8;\n r13 = (float) r3;\n r14 = (float) r9;\n r15 = (float) r10;\n r3 = r0.f5069f;\n r16 = r3.m6538a();\n r3 = r0.f5069f;\n r17 = r3.m6540b();\n r18 = android.graphics.Shader.TileMode.REPEAT;\n r11 = r19;\n r11.<init>(r12, r13, r14, r15, r16, r17, r18);\n r3 = r19;\n goto L_0x009c;\n L_0x0074:\n r3 = r1 / 2;\n r8 = r2 / 2;\n r16 = new android.graphics.RadialGradient;\n r10 = (float) r3;\n r11 = (float) r8;\n r3 = java.lang.Math.max(r1, r2);\n r8 = (double) r3;\n r12 = java.lang.Math.sqrt(r5);\n r8 = r8 / r12;\n r12 = (float) r8;\n r3 = r0.f5069f;\n r13 = r3.m6538a();\n r3 = r0.f5069f;\n r14 = r3.m6540b();\n r15 = android.graphics.Shader.TileMode.REPEAT;\n r9 = r16;\n r9.<init>(r10, r11, r12, r13, r14, r15);\n r3 = r16;\n L_0x009c:\n r8 = r0.f5069f;\n r8 = r8.f5052b;\n r9 = r1 / 2;\n r9 = (float) r9;\n r10 = r2 / 2;\n r10 = (float) r10;\n r4.rotate(r8, r9, r10);\n r9 = new android.graphics.Paint;\n r9.<init>();\n r9.setShader(r3);\n r5 = java.lang.Math.sqrt(r5);\n r3 = java.lang.Math.max(r1, r2);\n r10 = (double) r3;\n r5 = r5 * r10;\n r3 = (int) r5;\n r3 = r3 / r7;\n r5 = -r3;\n r6 = (float) r5;\n r1 = r1 + r3;\n r7 = (float) r1;\n r2 = r2 + r3;\n r8 = (float) r2;\n r5 = r6;\n r4.drawRect(r5, r6, r7, r8, r9);\n r1 = r0.f5066b;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.getMaskBitmap():android.graphics.Bitmap\");\n }",
"public abstract BufferedImage transform();",
"private byte[] convertImageBitmanToByte(Bitmap bitmap){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos); //bm is the bitmap object\n byte[] b = baos.toByteArray();\n\n return b;\n }",
"@Override\n public void onPictureTaken(byte[] data, Camera camera) {\n Log.e(TAG, \"Saving a bitmap to file\");\n mCamera.startPreview();// The camera preview was automatically stopped. Start it again.\n mCamera.setPreviewCallback(this);\n Bitmap bmpOriginal = BitmapFactory.decodeByteArray(data, 0, data.length);\n Bitmap bmpGrayscale = convertToGrayscale(bmpOriginal);//\n try {\n File file = new File(mPictureFile);\n if (!file.exists()) file.createNewFile();\n FileOutputStream fos = new FileOutputStream(file);\n //is other format ok? ok!!! PNG is much clear than JPEG, but image file is also much larger\n bmpGrayscale.compress(Bitmap.CompressFormat.PNG, 0, fos);\n //fos.write(data);// Write the image in a file (in jpeg format)\n fos.flush();\n fos.close();\n } catch (java.io.IOException e) {\n Log.e(TAG, \"Exception in taking picture\", e);\n }\n// saveImageToGallery();\n }",
"public static BufferedImage loadMapBinary16(File source, int width, int height) throws IOException {\n //load binary into byte buffer\n RandomAccessFile raf = new RandomAccessFile(source, \"r\");\n byte[] buffer = new byte[(int) raf.length()];\n raf.readFully(buffer);\n raf.close();\n\n assert (buffer.length == width * height * 2);\n\n //create new gray scale image\n BufferedImage retVal = new BufferedImage(width, height, BufferedImage.TYPE_USHORT_GRAY);\n WritableRaster wr = retVal.getRaster();\n\n //write in it line by line\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int offset = ((x + y * width) * 2);\n int value = (short) ((Byte.toUnsignedInt(buffer[offset]) +\n (Byte.toUnsignedInt(buffer[offset + 1]) << 8)) - 32768);\n wr.setSample(x, y, 0, value);\n }\n }\n\n return retVal;\n }",
"List<List<Pixel>> transform(Image img, String operation);",
"private void reanderImage(ImageData data) {\n \n }",
"private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }",
"public void processImage() {\n\n\n ++timestamp;\n final long currTimestamp = timestamp;\n byte[] originalLuminance = getLuminance();\n tracker.onFrame(\n previewWidth,\n previewHeight,\n getLuminanceStride(),\n sensorOrientation,\n originalLuminance,\n timestamp);\n trackingOverlay.postInvalidate();\n\n // No mutex needed as this method is not reentrant.\n if (computingDetection) {\n readyForNextImage();\n return;\n }\n computingDetection = true;\n LOGGER.i(\"Preparing image \" + currTimestamp + \" for detection in bg thread.\");\n\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n\n if (luminanceCopy == null) {\n luminanceCopy = new byte[originalLuminance.length];\n }\n System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);\n readyForNextImage();\n\n final Canvas canvas = new Canvas(croppedBitmap);\n canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);\n // For examining the actual TF input.\n if (SAVE_PREVIEW_BITMAP) {\n ImageUtils.saveBitmap(croppedBitmap);\n }\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n LOGGER.i(\"Running detection on image \" + currTimestamp);\n final long startTime = SystemClock.uptimeMillis();\n final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n\n cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);\n final Canvas canvas = new Canvas(cropCopyBitmap);\n final Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2.0f);\n\n float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n switch (MODE) {\n case TF_OD_API:\n minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n break;\n }\n\n final List<Classifier.Recognition> mappedRecognitions =\n new LinkedList<Classifier.Recognition>();\n //boolean unknown = false, cervix = false, os = false;\n\n for (final Classifier.Recognition result : results) {\n final RectF location = result.getLocation();\n if (location != null && result.getConfidence() >= minimumConfidence) {\n\n //if (result.getTitle().equals(\"unknown\") && !unknown) {\n // unknown = true;\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n\n /*} else if (result.getTitle().equals(\"Cervix\") && !cervix) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n cervix = true;\n\n } else if (result.getTitle().equals(\"Os\") && !os) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n os = true;\n }*/\n\n\n }\n }\n\n tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);\n trackingOverlay.postInvalidate();\n\n\n computingDetection = false;\n\n }\n });\n\n\n }",
"private Image bitmap2JPEG(Bitmap bit) {\n\n Image baseImage = new Image();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bit.compress(Bitmap.CompressFormat.JPEG, 90, stream);\n byte[] imageBytes = stream.toByteArray();\n baseImage.encodeContent(imageBytes);\n\n return baseImage;\n }",
"private void enhanceImage(){\n }",
"public void setBfImageByData(int [][][] data){\r\n\t\tBfImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int j = 0; j < height; j++) {\r\n\t\t\t\tint [] rgb = data[j][i];\r\n\t\t\t\tif (rgb[0] == -1){\t//is transparent\r\n\t\t\t\t\tBfImage.setRGB(i, j, Transparency.TRANSLUCENT);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tBfImage.setRGB(i, j, Utils.getRGB(rgb[0], rgb[1], rgb[2]));\r\n\t\t\t}\r\n\t\t}\r\n\t}"
] | [
"0.6363402",
"0.62158954",
"0.61971146",
"0.6093991",
"0.60063124",
"0.5992193",
"0.5977436",
"0.5885314",
"0.58714974",
"0.58714974",
"0.58698684",
"0.5800678",
"0.5758085",
"0.57139564",
"0.56159675",
"0.56087124",
"0.55870837",
"0.55853516",
"0.5550586",
"0.55486345",
"0.5532343",
"0.54912037",
"0.54859024",
"0.54774535",
"0.5440284",
"0.5435361",
"0.5412451",
"0.5403787",
"0.53992856",
"0.5397085",
"0.5395187",
"0.53929424",
"0.5387645",
"0.5386102",
"0.5380307",
"0.53649986",
"0.5357096",
"0.5355114",
"0.5354201",
"0.5339707",
"0.5322475",
"0.5319912",
"0.53088075",
"0.5306925",
"0.52986264",
"0.52915114",
"0.5282496",
"0.52799195",
"0.527316",
"0.52727896",
"0.52494156",
"0.5236436",
"0.51806056",
"0.5155921",
"0.5140523",
"0.510229",
"0.50901747",
"0.5077761",
"0.5073445",
"0.50717443",
"0.5066274",
"0.5065196",
"0.50599724",
"0.50578505",
"0.5049534",
"0.50490534",
"0.5042728",
"0.50379723",
"0.5031212",
"0.50307727",
"0.5028936",
"0.50227416",
"0.5022028",
"0.50211644",
"0.500588",
"0.49991727",
"0.4993648",
"0.49935946",
"0.49903607",
"0.4982579",
"0.49800733",
"0.49791944",
"0.49787906",
"0.4965428",
"0.4964179",
"0.49624646",
"0.4956778",
"0.49477625",
"0.49476695",
"0.4945321",
"0.49320638",
"0.49213147",
"0.4919554",
"0.49116603",
"0.4911349",
"0.49087003",
"0.49035352",
"0.48897105",
"0.48890543",
"0.4889041"
] | 0.74735355 | 0 |
Run inference with the classifier model Input is image Output is an array of probabilities | private void runInference() {
interpreter.run(inputImage, outputArray);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }",
"public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }",
"public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}",
"public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}",
"@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }",
"public void infer() {\n runTime.setStartTime(System.currentTimeMillis());\n runTime.setIter(newModel.test_iters);\n System.out.println(\"Sampling \" + newModel.test_iters + \" testing iterations!\");\n\n for (int currentIter = 1; currentIter <= newModel.test_iters; currentIter++) {\n System.out.println(\"Iteration \" + currentIter + \"...\");\n\n for (int d = 0; d < newModel.D; d++) {\n\n for (int n = 0; n < newModel.corpus.docs[d].length; n++){\n HiddenVariable hv = infSZSampling(d, n);\n newModel.sAssign[d][n] = hv.sentiment;\n newModel.zAssign[d][n] = hv.topic;\n }\n } // end for each document\n } // end iterations\n runTime.setEndTime(System.currentTimeMillis());\n System.out.println(\"Gibbs sampling for inference completed!\");\n System.out.println(\"Saving the inference outputs!\");\n\n computeNewPi();\n computeNewTheta();\n computeNewPhi();\n newModel.computePerplexity();\n newModel.evaluateSentiment();\n newModel.saveModel(oldModel.modelName + \"-inference\", runTime);\n newModel.corpus.localDict.writeWordMap(option.model_dir + File.separator + oldModel.modelName + \"-inference\" + Model.wordMapSuffix);\n\n }",
"private void classifyTestImages() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"result.txt\", \"UTF-8\");\n writer.println(\"#Authors: Thomas Sarlin & Petter Poucette\");\n\n ArrayList<Image> images = testReader.getImages();\n double activationResult[]=new double[4];\n int bestGuess;\n for (Image image : images) {\n for (int j = 0; j < 4; j++)\n activationResult[j] = activationFunction\n .apply(sumWeights(j, image));\n\n bestGuess = getBestGuess(activationResult);\n writer.println(image.getName() + \" \" + bestGuess);\n }\n writer.close();\n }",
"public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}",
"public List<Result> recognize(IplImage image);",
"public static void main(String[] args) {\n\t\tString model = \"http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_ppn_shared_box_predictor_300x300_coco14_sync_2018_07_03.tar.gz#frozen_inference_graph.pb\";\n\n\t\t// All labels for the pre-trained models are available at: https://github.com/tensorflow/models/tree/master/research/object_detection/data\n\t\tString labels = \"https://raw.githubusercontent.com/tensorflow/models/master/research/object_detection/data/mscoco_label_map.pbtxt\";\n\n\t\tObjectDetectionService detectionService = new ObjectDetectionService(model, labels,\n\t\t\t\t0.4f, // Only object with confidence above the threshold are returned. Confidence range is [0, 1].\n\t\t\t\tfalse, // No instance segmentation\n\t\t\t\ttrue); // cache the TF model locally\n\n\t\t// You can use file:, http: or classpath: to provide the path to the input image.\n\t\tList<ObjectDetection> detectedObjects = detectionService.detect(\"classpath:/images/object-detection.jpg\");\n\t\tdetectedObjects.stream().map(o -> o.toString()).forEach(System.out::println);\n\t}",
"Classifier getClassifier();",
"public PredictorListener buildPredictor();",
"private float[] predict(float[] input) {\n float thisOutput[] = new float[1];\n\n // feed network with input of shape (1,input.length) = (1,2)\n inferenceInterface.feed(\"dense_1_input\", input, 1, input.length);\n inferenceInterface.run(new String[]{\"dense_2/Relu\"});\n inferenceInterface.fetch(\"dense_2/Relu\", thisOutput);\n\n // return prediction\n return thisOutput;\n }",
"public List<Recognition> classifyImage(final float[] tensorFlowOutput, final List<String> labels) {\n int numClass = (int) (tensorFlowOutput.length / (Math.pow(NUMBER_OF_BOXES, 2) * NUMBER_OF_BOUNDING_BOXES) - 5);\n BoundingBox[][][] boundingBoxPerCell = new BoundingBox[NUMBER_OF_BOXES][NUMBER_OF_BOXES][NUMBER_OF_BOUNDING_BOXES];\n PriorityQueue<Recognition> priorityQueue = new PriorityQueue<>(MAX_RECOGNIZED_CLASSES, new RecognitionComparator());\n\n int offset = 0;\n for (int cy = 0; cy < NUMBER_OF_BOXES; cy++) { // SIZE * SIZE cells\n for (int cx = 0; cx < NUMBER_OF_BOXES; cx++) {\n for (int b = 0; b < NUMBER_OF_BOUNDING_BOXES; b++) { // 5 bounding boxes per each cell\n boundingBoxPerCell[cx][cy][b] = getBoundingBox(tensorFlowOutput, cx, cy, b, numClass, offset);\n calculateTopPredictions(boundingBoxPerCell[cx][cy][b], priorityQueue, labels);\n offset = offset + numClass + 5;\n }\n }\n }\n\n return getRecognition(priorityQueue);\n }",
"private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }",
"public int classify(Bitmap bitmap) {\n preprocess(bitmap);\n runInference();\n return postprocess();\n }",
"public void doneClassifying() {\n\t\tbinaryTrainClassifier = trainFactory.trainClassifier(binaryTrainingData);\n\t\tmultiTrainClassifier = testFactory.trainClassifier(multiTrainingData);\n\t\tLinearClassifier.writeClassifier(binaryTrainClassifier, BINARY_CLASSIFIER_FILENAME);\n\t\tLinearClassifier.writeClassifier(multiTrainClassifier, MULTI_CLASSIFIER_FILENAME);\n\t}",
"static ResultEvent classify(byte[][][][] data, int version, byte[] target) throws IOException {\n if (logger.isDebugEnabled()){\n logger.debug(\"Performing prediction...\");\n }\n\n String result = API.predict(PORT, Yolo.modelName, version, data, Yolo.signatureString);\n Gson g = new Gson();\n YoloResults yoloResults = g.fromJson(result, YoloResults.class);\n\n // Output tensor dimensions of YOLO\n float[][][][] predictions = new float[data.length][19][19][425];\n for(int i=0; i<data.length; i++){\n for(int x=0; x<19; x++){\n for(int y=0; y<19; y++){\n System.arraycopy(yoloResults.predictions[i][x][y], 0, predictions[i][x][y], 0, 425);\n }\n }\n }\n\n float[] certainty = null;\n\n return new ResultEvent(Configuration.ModelName.YOLO, target, predictions, certainty);\n }",
"public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}",
"public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }",
"@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}",
"public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }",
"public Bitmap stylizeImage(TensorFlowInferenceInterface inferenceInterface, Bitmap bitmap) {\n bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n for (int i = 0; i < intValues.length; ++i) {\n final int val = intValues[i];\n floatValues[i * 3 + 0] = ((val >> 16) & 0xFF) * 1.0f;\n floatValues[i * 3 + 1] = ((val >> 8) & 0xFF) * 1.0f;\n floatValues[i * 3 + 2] = (val & 0xFF) * 1.0f;\n }\n\n Trace.beginSection(\"feed\");\n inferenceInterface.feed(INPUT_NAME, floatValues, INPUT_SIZE, INPUT_SIZE, 3);\n Trace.endSection();\n\n Trace.beginSection(\"run\");\n inferenceInterface.run(new String[]{OUTPUT_NAME});\n Trace.endSection();\n\n Trace.beginSection(\"fetch\");\n inferenceInterface.fetch(OUTPUT_NAME, floatValues);\n Trace.endSection();\n\n for (int i = 0; i < intValues.length; ++i) {\n intValues[i] =\n 0xFF000000\n | (((int) (floatValues[i * 3 + 0])) << 16)\n | (((int) (floatValues[i * 3 + 1])) << 8)\n | ((int) (floatValues[i * 3 + 2]));\n }\n bitmap.setPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());\n return bitmap;\n }",
"float predict();",
"public interface Recognition {\n\n /**\n * Recognition class to implement. Should do the image recognition on the image and return the found classes.\n *\n * @param image image to process.\n * @return List of Result objects.\n */\n public List<Result> recognize(IplImage image);\n\n}",
"public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }",
"@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }",
"@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }",
"private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);",
"public static void predictBatch() throws IOException {\n\t\tsvm_model model;\n\t\tString modelPath = \"./corpus/trainVectors.scale.model\";\n\t\tString testPath = \"./corpus/testVectors.scale\";\n\t\tBufferedReader reader = new BufferedReader(new FileReader(testPath));\n\t\tmodel = svm.svm_load_model(modelPath);\n\t\tString oneline;\n\t\tdouble correct = 0.0;\n\t\tdouble total = 0.0;\n\t\twhile ((oneline = reader.readLine()) != null) {\n\t\t\tint pos = oneline.indexOf(\" \");\n\t\t\tint classid = Integer.valueOf(oneline.substring(0, pos));\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\tint length = st.countTokens();\n\t\t\tint i = 0;\n\t\t\tsvm_node[] svm_nodes = new svm_node[length];\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tmp = st.nextToken();\n\t\t\t\tint indice = Integer\n\t\t\t\t\t\t.valueOf(tmp.substring(0, tmp.indexOf(\":\")));\n\t\t\t\tdouble value = Double\n\t\t\t\t\t\t.valueOf(tmp.substring(tmp.indexOf(\":\") + 1));\n\t\t\t\tsvm_nodes[i] = new svm_node();\n\t\t\t\tsvm_nodes[i].index = indice;\n\t\t\t\tsvm_nodes[i].value = value;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tint predict_result = (int) svm.svm_predict(model, svm_nodes);\n\t\t\tif (predict_result == classid)\n\t\t\t\tcorrect++;\n\t\t\ttotal++;\n\t\t}\n\n\t\tSystem.out.println(\"Accuracy is :\" + correct / total);\n\n\t}",
"public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }",
"public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }",
"public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}",
"private void classify(final String text) {\n executorService.execute(\n () -> {\n // TODO 7: Run sentiment analysis on the input text\n List<Category> results = textClassifier.classify(text);\n\n // TODO 8: Convert the result to a human-readable text\n String textToShow = \"Input: \" + text + \"\\nOutput:\\n\";\n for (int i = 0; i < results.size(); i++) {\n Category result = results.get(i);\n textToShow +=\n String.format(\" %s: %s\\n\", result.getLabel(), result.getScore());\n }\n textToShow += \"---------\\n\";\n\n // Show classification result on screen\n showResult(textToShow);\n });\n }",
"public static void main(String [] argv) {\n runClassifier(new NNge(), argv);\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\n Normalized norm = new Normalized();\n double c = 1;\n\n double[][] data = norm.Inputdata(\"input.txt\");\n double[][] w = new double[35][10];\n double[][] last = new double[35][10];\n\n for (int i = 0; i < 35; i++) {\n for (int j = 0; j < 10; j++) {\n w[i][j] = 1;\n last[i][j] = 1;\n\n }\n }\n\n /* for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 35; j++) {\n System.out.print(data[i][j]);\n System.out.print(\" \");\n \n \n }\n System.out.print(\"\\n\");\n }\n */\n //System.out.print(w[5][5]);\n double[] ErrMap = norm.Inputdata2(\"TestMap.txt\");\n //System.out.print(ErrMap[0]);\n\n //System.out.print(\"\\n\");\n w = training(data, w, last, c);\n\n int out = 2;\n\n out = classify(w, ErrMap, c);\n System.out.print(\"product \" + out + \" is max\\n\");\n System.out.print(\"the number classify to \" + out + \"\\n\");\n }",
"private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public static void testMultimensionalOutput() {\n\t\tint vectSize = 8;\n\t\tint outputsPerInput = 10;\n\t\tdouble repeatProb = 0.8;\n\t\tdouble inpRemovalPct = 0.8;\n\t\tCollection<DataPoint> data = createMultidimensionalCorrSamples(vectSize, outputsPerInput, inpRemovalPct);\n//\t\tCollection<DataPoint> data = createMultidimensionalSamples(vectSize, outputsPerInput, repeatProb);\n\n\t\tModelLearner modeler = createModelLearner(vectSize, data);\n\t\tint numRuns = 100;\n\t\tint jointAdjustments = 18;\n\t\tdouble skewFactor = 0;\n\t\tdouble cutoffProb = 0.1;\n\t\tDecisionProcess decisioner = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\t0, skewFactor, 0, cutoffProb);\n\t\tDecisionProcess decisionerJ = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\tjointAdjustments, skewFactor, 0, cutoffProb);\n\t\t\n\t\tSet<DiscreteState> inputs = getInputSetFromSamples(data);\n\t\tArrayList<Double> realV = new ArrayList<Double>();\n\t\tArrayList<Double> predV = new ArrayList<Double>();\n\t\tArrayList<Double> predJV = new ArrayList<Double>();\n\t\tfor (DiscreteState input : inputs) {\n\t\t\tSystem.out.println(\"S\" + input);\n\t\t\tMap<DiscreteState, Double> outProbs = getRealOutputProbsForInput(input, data);\n\t\t\tMap<DiscreteState,Double> preds = countToFreqMap(decisioner\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tMap<DiscreteState,Double> predsJ = countToFreqMap(decisionerJ\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tSet<DiscreteState> outputs = new HashSet<DiscreteState>();\n\t\t\toutputs.addAll(outProbs.keySet());\n\t\t\toutputs.addAll(preds.keySet());\n\t\t\toutputs.addAll(predsJ.keySet());\n\t\t\tfor (DiscreteState output : outputs) {\n\t\t\t\tDouble realD = outProbs.get(output);\n\t\t\t\tDouble predD = preds.get(output);\n\t\t\t\tDouble predJD = predsJ.get(output);\n\t\t\t\tdouble real = (realD != null ? realD : 0);\n\t\t\t\tdouble pred = (predD != null ? predD : 0);\n\t\t\t\tdouble predJ = (predJD != null ? predJD : 0);\n\t\t\t\trealV.add(real);\n\t\t\t\tpredV.add(pred);\n\t\t\t\tpredJV.add(predJ);\n\t\t\t\tSystem.out.println(\"\tS'\" + output + \"\t\" + real + \"\t\" + pred + \"\t\" + predJ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"CORR:\t\" + Utils.correlation(realV, predV)\n\t\t\t\t+ \"\t\" + Utils.correlation(realV, predJV));\n\t}",
"public void classify() throws Exception;",
"public abstract int predict(double[] testingData);",
"private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }",
"public static void main(String[] args) {\n\t\tSparkConf conf = new SparkConf().setAppName(\"NB\").setMaster(\"local[*]\").set(\"spark.ui.port\",\"4040\");;\n\t JavaSparkContext jsc = new JavaSparkContext(conf);\n\t\tString path = \"localpath\";\n\t\tJavaRDD<LabeledPoint> inputData = MLUtils.loadLabeledPoints(jsc.sc(), path).toJavaRDD();\n\t\tJavaRDD<LabeledPoint>[] tmp = inputData.randomSplit(new double[]{0.6, 0.4});\n\t\tJavaRDD<LabeledPoint> training = tmp[0]; // training set\n\t\tJavaRDD<LabeledPoint> test = tmp[1]; // test set\n\t\tNaiveBayesModel model = NaiveBayes.train(training.rdd(), 1.0);\n\t\tJavaPairRDD<Double, Double> predictionAndLabel =\n\t\t test.mapToPair(p -> new Tuple2<>(model.predict(p.features()), p.label()));\n\t\t// Save and load model\n\t\tmodel.save(jsc.sc(), \"localotuput_path\");\n\t\tNaiveBayesModel sameModel = NaiveBayesModel.load(jsc.sc(), \"localotuput_path\");\n\t\t\n\t\tdouble accuracy =\n\t\t\t\t predictionAndLabel.filter(pl -> pl._1().equals(pl._2())).count() / (double) test.count();\n\t\t\t\t\n\t\tSystem.out.println(\"The final accuracy is\"+accuracy);\n//\t\tpredictionAndLabel.foreach(data -> {\n//\t\t System.out.println(\"final model=\"+data._1() + \"final label=\" + data._2());\n//\t\t}); \n\t}",
"private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }",
"void process(Mat image);",
"private void evaluateProbabilities()\n\t{\n\t}",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"public static void main(String[] args) {\n\t\t\n\t\tPredictExample pe = new PredictExample();\n\t\tpe.testPredicate();\n\t}",
"public abstract double test(ClassifierData<U> testData);",
"protected abstract void evaluate(Vector target, List<Vector> predictions);",
"public interface MultiLabelClassifier extends Serializable{\n int getNumClasses();\n MultiLabel predict(Vector vector);\n default MultiLabel[] predict(MultiLabelClfDataSet dataSet){\n\n List<MultiLabel> results = IntStream.range(0,dataSet.getNumDataPoints()).parallel()\n .mapToObj(i -> predict(dataSet.getRow(i)))\n .collect(Collectors.toList());\n return results.toArray(new MultiLabel[results.size()]);\n }\n\n default void serialize(File file) throws Exception{\n File parent = file.getParentFile();\n if (!parent.exists()){\n parent.mkdirs();\n }\n try (\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bufferedOutputStream);\n ){\n objectOutputStream.writeObject(this);\n }\n }\n\n default void serialize(String file) throws Exception{\n serialize(new File(file));\n }\n\n\n FeatureList getFeatureList();\n\n LabelTranslator getLabelTranslator();\n\n interface ClassScoreEstimator extends MultiLabelClassifier{\n double predictClassScore(Vector vector, int k);\n default double[] predictClassScores(Vector vector){\n return IntStream.range(0,getNumClasses()).mapToDouble(k -> predictClassScore(vector,k))\n .toArray();\n\n }\n }\n\n\n\n interface ClassProbEstimator extends MultiLabelClassifier{\n double[] predictClassProbs(Vector vector);\n\n /**\n * in some cases, this can be implemented more efficiently\n * @param vector\n * @param classIndex\n * @return\n */\n default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }\n }\n\n interface AssignmentProbEstimator extends MultiLabelClassifier{\n double predictLogAssignmentProb(Vector vector, MultiLabel assignment);\n default double predictAssignmentProb(Vector vector, MultiLabel assignment){\n return Math.exp(predictLogAssignmentProb(vector, assignment));\n }\n\n /**\n * batch version\n * can be implemented more efficiently in individual classifiers\n * @param vector\n * @param assignments\n * @return\n */\n default double[] predictAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n return Arrays.stream(predictLogAssignmentProbs(vector, assignments)).map(Math::exp).toArray();\n }\n\n\n default double[] predictLogAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n double[] logProbs = new double[assignments.size()];\n for (int c=0;c<assignments.size();c++){\n logProbs[c] = predictLogAssignmentProb(vector, assignments.get(c));\n }\n return logProbs;\n }\n }\n\n}",
"@Override\n\tpublic abstract Classifier run ();",
"public void processImage() {\n\n\n ++timestamp;\n final long currTimestamp = timestamp;\n byte[] originalLuminance = getLuminance();\n tracker.onFrame(\n previewWidth,\n previewHeight,\n getLuminanceStride(),\n sensorOrientation,\n originalLuminance,\n timestamp);\n trackingOverlay.postInvalidate();\n\n // No mutex needed as this method is not reentrant.\n if (computingDetection) {\n readyForNextImage();\n return;\n }\n computingDetection = true;\n LOGGER.i(\"Preparing image \" + currTimestamp + \" for detection in bg thread.\");\n\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n\n if (luminanceCopy == null) {\n luminanceCopy = new byte[originalLuminance.length];\n }\n System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);\n readyForNextImage();\n\n final Canvas canvas = new Canvas(croppedBitmap);\n canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);\n // For examining the actual TF input.\n if (SAVE_PREVIEW_BITMAP) {\n ImageUtils.saveBitmap(croppedBitmap);\n }\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n LOGGER.i(\"Running detection on image \" + currTimestamp);\n final long startTime = SystemClock.uptimeMillis();\n final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n\n cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);\n final Canvas canvas = new Canvas(cropCopyBitmap);\n final Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2.0f);\n\n float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n switch (MODE) {\n case TF_OD_API:\n minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n break;\n }\n\n final List<Classifier.Recognition> mappedRecognitions =\n new LinkedList<Classifier.Recognition>();\n //boolean unknown = false, cervix = false, os = false;\n\n for (final Classifier.Recognition result : results) {\n final RectF location = result.getLocation();\n if (location != null && result.getConfidence() >= minimumConfidence) {\n\n //if (result.getTitle().equals(\"unknown\") && !unknown) {\n // unknown = true;\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n\n /*} else if (result.getTitle().equals(\"Cervix\") && !cervix) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n cervix = true;\n\n } else if (result.getTitle().equals(\"Os\") && !os) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n os = true;\n }*/\n\n\n }\n }\n\n tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);\n trackingOverlay.postInvalidate();\n\n\n computingDetection = false;\n\n }\n });\n\n\n }",
"public void recognize(){\n\t String dirOfFace =\".\\\\Faces\";\n\t String dirOfTestFaces =\".\\\\TestFaces\";\n\t \n\t File root = new File(dirOfFace);\n File Testfaces = new File(dirOfTestFaces);\n FilenameFilter imgFilter = new FilenameFilter() {\n\n public boolean accept(File dir, String name) {\n\n name = name.toLowerCase();\n\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n\n }\n\n };\n \n File[] imageFiles = Testfaces.listFiles(imgFilter);\n for (File image : imageFiles) {\n Recognizer fd = new Recognizer();\n int rollno=0;\n rollno = fd.returnPredict(image,root);\n System.out.println(rollno);\n try {\n db.AttendenceTable(rollno);\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, ex);\n }\n }\n\n\n }",
"Integer classify(LogicGraph pce);",
"public static void test(ArrayList<Image> img){\n\t\t\n\t\tdouble avCutoff = 0;\n\t\tdouble avAcc = 0 ;\n\t\tdouble adjCut = 0;\n\t\tint n = 100;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tPerceptron p = new Perceptron(img);\n\t\t\tp.start();\n\t\t\tavCutoff = avCutoff + p.cuttoff;\n\t\t\tavAcc = avAcc + p.Acc;\n\t\t\tif(p.cuttoff < 1000){adjCut = adjCut + p.cuttoff;}\n\t\t}\n\t\tSystem.out.println(\"Average cut-off of all runs: \" + (avCutoff/n));\n\t\tSystem.out.println(\"Average accuracy: \" + (avAcc/n));\n\t\tSystem.out.println(\"Average accuracy of successful runs: \" + (adjCut/n));\n\t}",
"public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}",
"public Prediction apply( double[] confidence );",
"void neuralNet(Mat test) {\n\t\tCvANN_MLP nnet = new CvANN_MLP();\n\t\t//Loading a saved Neural Network\n\t\tnnet.load(\"/Users/SidRama/Desktop/NeuralNetwork.xml\");\n\t\tSystem.out.println(\"Running test...\");\n\t\t//Loading a test\n\t\t//Actually, loading a scanned sample for detection. I'm loading 10 samples\n\t\tMat T = new Mat(1, 784, CvType.CV_32FC1);\n\t\tSystem.out.println(\"The recognised symbols are:\");\n\t\t//Extracting a digit sample from test Matrix\n\t\tfor (int p = 0; p < 10; p++) {\n\t\t\tMat testOut = new Mat(1, 10, CvType.CV_32FC1);\n\t\t\tfor (int i = 0; i < 784; i++) {\n\t\t\t\tT.put(0, i, test.get(p, i));\n\t\t\t}\n\t\t\tnnet.predict(T, testOut);\n\t\t\t/* testOut has one row, 10 coloumns.\n\t\t\t * nnet.predict() runs the Neural Network on T matrix\n\t\t\t * and outputs the probability of the input digit sample belonging\n\t\t\t * to either of the 10 classes (something like a multi-class classifier) */\n\t\t\t \n\t\t\n\t\t\t// System.out.println(testOut.dump());\n\t\t\tdouble[] t = null;\n\t\t\tdouble max = 0;\n\t\t\tint loc = -1;\n\t\t\t/* Choosing the class that has the highest probabilty to be the \n\t\t * predicted digit */\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tt = testOut.get(0, j);\n\t\t\t\tif (max < t[0]) {\n\t\t\t\t\tmax = t[0];\n\t\t\t\t\tloc = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(loc); //Display predicted digit\n\t\t}\n\t}",
"public void Prediction() {\n System.out.println(\"\\nInput an x value: \");\n double x = inputs.nextDouble();\n double y = this.B0 + (this.B1 * x);\n System.out.println(\"The prediction made with \" + x + \" as the x value is: \" + y);\n System.out.println(\"\\nWhere y = B0 + (B1*xi) is substituted by:\\n y = \" + B0 + \" + (\" + B1 + \" * \" + x + \" )\\n\");\n }",
"@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }",
"public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n for (int i = 1; i<10; i++){\n String image= \"src/main/java/BallImage\";\n image = image + i + \".jpg\";\n Mat input = Imgcodecs.imread(image);\n Mat output = algorithm(input);\n String output_fname = \"Output Image \" + i + \".jpg\";\n Imgcodecs.imwrite(output_fname, output);\n }\n System.out.println(\"Done\");\n }",
"public void injectKernel(final Predictor predictor);",
"@Override\n\tpublic void run(ApplicationArguments args) throws Exception {\n\t\tList.of(\n\t\t\t\"images/puppy-in-white-and-red-polka.jpg\"\n\t\t\t,\"images/street-car-bus-truck.jpg\"\n\t\t\t,\"images/various-objects.png\"\n\t\t).stream()\n\t\t\t.map(this::imageFromResource)\n\t\t\t.map(this::predictObjects)\n\t\t\t.forEach(this::logItems);\n\t}",
"public abstract void fit(BinaryData trainingData);",
"public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}",
"private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }",
"private float predictPrueba(float features) {\n float n_epochs = num_epoch;\n float num1 = (float) Math.random();\n float output = 0; //y\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input = Tensor.create(features);\n Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //para escribir en la app en W y B test\n ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n Wtest.setText(\"W_inicial: \"+(Float.toString(values.get(0).floatValue())));\n Btest.setText(\"b_inicial: \"+Float.toString(values.get(1).floatValue()));\n y_mejoras_w.add(((values.get(0).floatValue())));\n x_mejoras_w.add( \"\"+(0+ num_epoch*num));\n\n y_mejoras_b.add(((values.get(1).floatValue())));\n x_mejoras_b.add( \"\"+(0+ num_epoch*num));\n\n ///\n\n // Y.setText(Float.toString(values.get(1).floatValue()));\n\n return output; ///mal\n }",
"public static void main(String[] args) throws IOException {\n String dataName = \"Dianping\";\n String fileName = \"checkin_pitf\";\n int coreNum = 1;\n// List<Post> trainPosts = DataReader.readPosts(\"./demo/data/\" + dataName + \"/all_id_core\"+coreNum+\"_train\");\n// List<Post> testPosts = DataReader.readPosts(\"./demo/data/\" + dataName + \"/all_id_core\"+coreNum+\"_test\");\n List<Post> trainPosts = DataReader.readPosts(\"./demo/data/\" + dataName + \"/\"+fileName+\"_train\");\n List<Post> testPosts = DataReader.readPosts(\"./demo/data/\" + dataName + \"/\"+fileName+\"_test\");\n\n System.out.println(\"PITFTest\");\n System.out.println(dataName+\" \"+coreNum);\n int dim = 64;\n double initStdev = 0.01;\n int iter = 20;//100\n double learnRate = 0.05;\n double regU = 0.00005;\n double regI = regU, regT = regU;\n int numSample = 100;\n int randomSeed = 1;\n\n PITF pitf = new PITF(trainPosts, testPosts, dim, initStdev, iter, learnRate, regU, regI, regT, randomSeed, numSample);\n pitf.run();//这个函数会调用model的初始化及创建函数\n System.out.println(\"dataName:\\t\" + dataName);\n System.out.println(\"coreNum:\\t\" + coreNum);\n }",
"S predictScores(P preProcInputs);",
"public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }",
"public void calculateProbabilities(){\n\t}",
"public abstract void printClassifier();",
"public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}",
"public int predict(int[] testingData) {\n\t\t// HIDDEN LAYER\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\t\t\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * testingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t}\n\t\t// OUTPUT LAYER \n\t\tdouble[] predictedLabel = new double[testingData.length];\n\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tpredictedLabel[i] = 0;\n\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tpredictedLabel[i] += weightsOfOutputLayer[i][j] * hiddenActivations[j];\n\t\t\t}\n\t\t\tpredictedLabel[i] += biasOfOutputLayer[i]; \n\t\t}\n\t\tsoftmax(predictedLabel);\n\t\tint solution = argmax(predictedLabel);\n\t\treturn solution;\n\t}",
"private Prediction predictActivity(Activity activity, Posture posture, String postureFileName) throws FileNotFoundException {\n Prediction prediction;\n HMM hmm;\n HMMOperations hmmOperations = new HMMOperationsImpl();\n List<String> posturesOfInterest = Utils.activityMap.get(activity);\n String skeletonFileName = getSkeletonFile(postureFileName);\n Pair<Integer, Pair<Integer, Integer>> result;\n \n /* load HMM for the current activity */\n hmm = new HMMCalculus(Utils.HMM_DIRECTORY + activity.getName() + \".txt\");\n \n /* obtain list of past observations */\n List<Integer> observations = activityObservationsMap.get(activity);\n \n /* transform posture information into observation index*/\n int observation = posture.computeObservationIndex(posturesOfInterest);\n \n /* if the posture is misclassified then no activity is detected*/\n if (observation < 0) {\n \n int size = observations.size() + 1;\n int obs[] = new int[size], pred[] = new int[size];\n \n return new Prediction(obs, pred, 0.0);\n }\n \n /* combine the posture information with the object interaction and position information*/\n if (USE_OBJECT_RECOGNITION) {\n result = addObjectRecognitionObservation(observation,\n skeletonFileName, objectRecognition, lastPosition);\n observation = result.getFirst();\n lastPosition = result.getSecond();\n }\n \n /* add new observation to list*/\n activityObservationsMap.remove(activity);\n observations.add(observation);\n activityObservationsMap.put(activity, observations);\n \n \n \n \n /* predict */\n prediction = hmmOperations.predict(hmm,\n ArrayUtils.toPrimitive(observations.toArray(new Integer[0])));\n \n \n return prediction;\n }",
"public interface ImageSegmentationResultListner {\n void getSegmentationImage(Bitmap bitmap);\n}",
"public void buildClassifier(Instances data) throws Exception {\n\n // can classifier handle the data?\n getCapabilities().testWithFail(data);\n\n // remove instances with missing class\n data = new Instances(data);\n data.deleteWithMissingClass();\n \n /* initialize the classifier */\n\n m_Train = new Instances(data, 0);\n m_Exemplars = null;\n m_ExemplarsByClass = new Exemplar[m_Train.numClasses()];\n for(int i = 0; i < m_Train.numClasses(); i++){\n m_ExemplarsByClass[i] = null;\n }\n m_MaxArray = new double[m_Train.numAttributes()];\n m_MinArray = new double[m_Train.numAttributes()];\n for(int i = 0; i < m_Train.numAttributes(); i++){\n m_MinArray[i] = Double.POSITIVE_INFINITY;\n m_MaxArray[i] = Double.NEGATIVE_INFINITY;\n }\n\n m_MI_MinArray = new double [data.numAttributes()];\n m_MI_MaxArray = new double [data.numAttributes()];\n m_MI_NumAttrClassInter = new int[data.numAttributes()][][];\n m_MI_NumAttrInter = new int[data.numAttributes()][];\n m_MI_NumAttrClassValue = new int[data.numAttributes()][][];\n m_MI_NumAttrValue = new int[data.numAttributes()][];\n m_MI_NumClass = new int[data.numClasses()];\n m_MI = new double[data.numAttributes()];\n m_MI_NumInst = 0;\n for(int cclass = 0; cclass < data.numClasses(); cclass++)\n m_MI_NumClass[cclass] = 0;\n for (int attrIndex = 0; attrIndex < data.numAttributes(); attrIndex++) {\n\t \n if(attrIndex == data.classIndex())\n\tcontinue;\n\t \n m_MI_MaxArray[attrIndex] = m_MI_MinArray[attrIndex] = Double.NaN;\n m_MI[attrIndex] = Double.NaN;\n\t \n if(data.attribute(attrIndex).isNumeric()){\n\tm_MI_NumAttrInter[attrIndex] = new int[m_NumFoldersMI];\n\tfor(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrInter[attrIndex][inter] = 0;\n\t}\n } else {\n\tm_MI_NumAttrValue[attrIndex] = new int[data.attribute(attrIndex).numValues() + 1];\n\tfor(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrValue[attrIndex][attrValue] = 0;\n\t}\n }\n\t \n m_MI_NumAttrClassInter[attrIndex] = new int[data.numClasses()][];\n m_MI_NumAttrClassValue[attrIndex] = new int[data.numClasses()][];\n\n for(int cclass = 0; cclass < data.numClasses(); cclass++){\n\tif(data.attribute(attrIndex).isNumeric()){\n\t m_MI_NumAttrClassInter[attrIndex][cclass] = new int[m_NumFoldersMI];\n\t for(int inter = 0; inter < m_NumFoldersMI; inter++){\n\t m_MI_NumAttrClassInter[attrIndex][cclass][inter] = 0;\n\t }\n\t} else if(data.attribute(attrIndex).isNominal()){\n\t m_MI_NumAttrClassValue[attrIndex][cclass] = new int[data.attribute(attrIndex).numValues() + 1];\t\t\n\t for(int attrValue = 0; attrValue < data.attribute(attrIndex).numValues() + 1; attrValue++){\n\t m_MI_NumAttrClassValue[attrIndex][cclass][attrValue] = 0;\n\t }\n\t}\n }\n }\n m_MissingVector = new double[data.numAttributes()];\n for(int i = 0; i < data.numAttributes(); i++){\n if(i == data.classIndex()){\n\tm_MissingVector[i] = Double.NaN;\n } else {\n\tm_MissingVector[i] = data.attribute(i).numValues();\n }\n }\n\n /* update the classifier with data */\n Enumeration enu = data.enumerateInstances();\n while(enu.hasMoreElements()){\n update((Instance) enu.nextElement());\n }\t\n }",
"private double[] computePredictionValues() {\n double[] predResponses = new double[D];\n for (int d = 0; d < D; d++) {\n double expDotProd = Math.exp(docLabelDotProds[d]);\n double docPred = expDotProd / (expDotProd + 1);\n predResponses[d] = docPred;\n }\n return predResponses;\n }",
"public static void main(String[] args) throws IOException {\n map.put(\"paper\", new double[]{1, 0, 0});\n map.put(\"rock\", new double[]{0, 1, 0});\n map.put(\"scissors\", new double[]{0, 0, 1});\n reverseMap.put(0, \"paper\");\n reverseMap.put(1, \"rock\");\n reverseMap.put(2, \"scissors\");\n\n PictureAccessor.TrainingData trainingData = pictureAccessor.getTrainingData(trainingFolder, numberOfPixels, numberOfOutputs, map, width, height);\n NeuralNetwork neuralNetwork = new NeuralNetwork();\n BasicNetwork basicNetwork = neuralNetwork.trainSystem(trainingData.input, trainingData.output, numberOfPixels, numberOfOutputs);\n compute(basicNetwork);\n }",
"public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }",
"@Override\n\tprotected void postprocess(Classifier classifier, PipelineData data) throws Exception {\n\t}",
"public static void main(String[] args) throws Exception {\n \t\n \tImageClassifierService ics = new ImageClassifierService(\"t1\");\n \tics.start();\n\n \tImageClassifierService ics2 = new ImageClassifierService(\"t2\");\n \tics2.start();\n\n }",
"public static void main(String[] args)\r\n\t{\r\n\t\tString inputFolder = rootFolder + \"\\\\LED Peg\";\r\n\t\tString outputFolder = rootFolder + \"\\\\LEDPeg_output\";\r\n\t\t\t\t\r\n\t\tFile folder = new File(inputFolder);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\r\n\t\tEntropy2017Targeting imageProcessor = new Entropy2017Targeting(null, null);\r\n\t\timageProcessor.processingForPeg = true;\r\n\t\t\r\n\t\tfor(File f : listOfFiles)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"File: \" + f.getPath());\r\n\t\t\t\r\n\t\t\tMat ourImage = Imgcodecs.imread(f.getPath());\r\n\t\t\timageProcessor.processImage(ourImage);\r\n\t\t\tImgcodecs.imwrite(outputFolder + \"\\\\\"+ f.getName()+\".png\", ourImage);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Completed file.\");\r\n\t\t}\r\n\t\tSystem.out.println(\"Processed all images.\");\r\n\t}",
"public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n \t\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}",
"private float predict(float[][] features) {\n Tensor input = Tensor.create(features);\n float[][] output = new float[1][1];\n Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n Log.i(\"Tensor Shape\", op_tensor.shape()[0] + \", \" + op_tensor.shape()[1]);\n op_tensor.copyTo(output);\n return output[0][0];\n }",
"public interface VisionPipeline {\n /**\n * Processes the image input and sets the result objects. Implementations should make these\n * objects accessible.\n *\n * @param image The image to process.\n */\n void process(Mat image);\n}",
"public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }",
"@Test(timeout = 4000)\n public void test061() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n objectArray0[0] = (Object) instances0;\n try { \n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // weka.core.Instances cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }",
"public static void detectFaces(File file) throws Exception, IOException {\r\n\t\t List<AnnotateImageRequest> requests = new ArrayList<>();\r\n System.out.println(file.getPath());\r\n\r\n \r\n //convert picture file into original ByteString object and set values to request for google vision API\r\n\t\t ByteString imgBytes = ByteString.readFrom(new FileInputStream(file));\r\n\r\n\t\t Image img = Image.newBuilder().setContent(imgBytes).build();\r\n\t\t Feature feat = Feature.newBuilder().setType(Type.FACE_DETECTION).build();\r\n\t\t AnnotateImageRequest request =\r\n\t\t AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(img).build();\r\n\t\t requests.add(request);\r\n\r\n //call google vision API engine and returns annotations of the image\r\n\t\t try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {\r\n\t\t BatchAnnotateImagesResponse response = client.batchAnnotateImages(requests);\r\n\t\t List<AnnotateImageResponse> responses = response.getResponsesList();\r\n\r\n\t\t for (AnnotateImageResponse res : responses) {\r\n\t\t if (res.hasError()) {\r\n\t\t System.out.printf(\"Error: %s\\n\", res.getError().getMessage());\r\n\t\t return;\r\n\t\t }\r\n\r\n\t\t // retrieve annotation value of each emotion\r\n\t\t for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {\r\n\t\t int[] emoValue = {annotation.getAngerLikelihoodValue(),\r\n annotation.getJoyLikelihoodValue(),\r\n annotation.getSorrowLikelihoodValue(),\r\n annotation.getSurpriseLikelihoodValue(),\r\n };\r\n \r\n //choose highest annotation value of each emotion\r\n int max = 0;\r\n for (int i = 0; i < emoValue.length; i++){\r\n System.out.print(emoValue[i] + \" \");\r\n if (max < emoValue[i]){\r\n max = emoValue[i];\r\n index = i;\r\n }\r\n }\r\n //if all of emotion likelihood balue = 1, no expression\r\n if (max == 1){index = emotion.length-1;}\r\n System.out.println();\r\n System.out.println(emotion[index]);\r\n }\r\n\r\n\t\t }\r\n \r\n\t\t }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n\t\t}",
"abstract Vec predict(Vec in);",
"public int getNumberOfPredictors()\n {\n return 1;\n }",
"public static void main(String[] args) {\n\t\tDemo d = new Demo();\n\t\tinferenceEngine inf = new inferenceEngine();\n\t\td.takeInput(inf);\n\t\t// while writing the output check the number of input statements and the one's\n\t\t// left to prove and perform a sanity check to see if same number of statements\n\t\t// are written to output file\n\t\t\n\t\t//how to detect an infinite loop? refer pdf\n\t\t\n\t\t//\n\t\t\n//\t\tSystem.out.print(\"\\nIn Inference engine\\n\"+ inf.toString());\n\t\tpredicate q = new predicate();\n//\t\tArrayList<String> arguments = new ArrayList();\n\t\tq.name=\"~P\";\n\t\tq.arguments.add(\"Joe\");\n\t\tq.arguments.add(\"Mary\");\n//\t\targuments.add(\"z\");\n\n//\t\tq.arguments = arguments;\n//\t\tq.testRunSet(\"OmAmma\", arguments);\n\t\t//System.out.println(inf.negateQuery(q).toString());\n///*sc*/\t\tsentence s3 = sentence.copySentence(inf.knowledgeBase.sentenceslist.get(2));\n\n//sc\t\tsentence s4 = sentence.copySentence(inf.knowledgeBase.sentenceslist.get(5));\n//\t\tHashMap<String, String> substitutionMap = new HashMap(); \n//\t\tsubstitutionMap.put(\"x4\", \"Charlie\");\n//\t\tsubstitutionMap.put(\"y4\", \"Billy\");\n//\t\tsubstitutionMap.put(\"x5\", \"Charlie\");\n//\t\tsubstitutionMap.put(\"y5\", \"Billy\");\n//\t\tsubstitutionMap.put(\"z5\", \"Liz\");\n//\t\tsubstitutionMap.put(\"z5\", \"x6\");\n//\t\tSystem.out.println(substitutionMap);\n//\t\tSystem.out.println(\"My first predicate \"+ inf.knowledgeBase.sentenceslist.get(0).predicatelist.get(0));\n//\t\tSystem.out.println(\"My second predicate \"+ inf.knowledgeBase.sentenceslist.get(2).predicatelist.get(0));\n//\t\tpredicate p1 = new predicate();\n//\t\tpredicate p2 = new predicate();\n//\t\tp1.name = p2.name = \"Amma\" ;\n//\t\tp1.arguments.add(\"AB\");\n//\t\tp1.arguments.add(\"y\");\n//\t\tp1.arguments.add(\"s\");\n//\t\tp2.arguments.add(\"z\");\n//\t\tp2.arguments.add(\"Hello\");\n//\t\tp2.arguments.add(\"t\");\n//\t\tinf.checkPredicate(p1, p2, substitutionMap);\n//\t\tSystem.out.println(\"Original sentence is\"+s.toString());\n//\t\tsentence copy =sentence.copySentence(s);\n//\t\tcopy.predicatelist.get(0).arguments.add(\"x\");\n//\t\tSystem.out.println(\"Copy sentence \"+copy.toString());\n//\t\t\t\tSystem.out.println(\"The first negated query is\\n\"+ s.toString());\n\t//\tSystem.out.println(\"The value of 1st resolution is\");\n\t\t//boolean set = inf.Resolution(s);\n//\t\tsentence ab = inf.merge(inf.knowledgeBase.sentenceslist.get(4), inf.knowledgeBase.sentenceslist.get(5), inf.knowledgeBase.sentenceslist.get(4).predicatelist.get(1));\n//\t\tSystem.out.println(\"The resolved sentence now is \\n\"+ab.toString());\n//\t\tSystem.out.println(\"The substitutioin map\\n\"+substitutionMap);\n//\t\tSystem.out.println(\"The sentence passed is\\n\"+s.toString());\n//\t\tinf.applySubstitution(s, substitutionMap);\n//\t\tSystem.out.println(\"Hi the substituted sentence \\n\"+ s.toString());\n//\t\tArrayList<String> A = new ArrayList();\n//\t\tSystem.out.println(A.size());\n//\t\tSystem.out.println(\"The third sentence is \\n\"+s3);\n//\t\tSystem.out.println(\"The fourth sentence is \\n\"+s4);\n//\t\tinf.merge(s3, s4, substitutionMap);\n\t\tsentence s = new sentence();\n\t\ts.predicatelist.add(inf.queryList.get(0));\n//\t\tSystem.out.println(inf.queryList.get(0).toString());\n//\t\tHashMap<String, String> theta = inf.copyHashMap(substitutionMap);\n//\t\ttheta.put(\"Om\", \"Amma\");\n//\t\tSystem.out.println(\"Map = \"+substitutionMap+\"\\nTheta = \"+theta);\n//\t\ttheta = inf.Unify(s, inf.knowledgeBase.sentenceslist.get(5), theta);\n//\t\tSystem.out.println(\"The Theta mapping is \"+ theta);\n//\t\tSystem.out.println(q.toString());\n//\t\tSystem.out.println(s3.toString());\n//\t\tSystem.out.println(s3.contains(q));\t\n//\t\tSystem.out.println(\"Start here!\"+ inf.queryList.get(0));\n//\t\tSystem.out.println(inf.knowledgeBase.toString());\n\t\tboolean b[] = d.runResolution(inf);\n//\t\tSystem.out.println(\"My first Query \"+ b);\n\t\t\n\t\td.writeOutput(b);\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\t\tString urlClassification = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/classification.txt\";\n\t\tString urlExpert = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/expert.txt\";\n\t\tString urlLocations = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/locations.txt\";\n\n\t\tArrayList<ImageData> classification = ImageData.classificationFromURL(urlClassification);\n\t\tArrayList<ImageData> expert = ImageData.expertFromURL(urlExpert);\n\t\tArrayList<ImageData> locations = ImageData.locationsFromURL(urlLocations);\n\t\t\n\t\t// For part 2. we need to print the number of images\n\t\t// This will be the length of expert list\n\n\t\tSystem.out.println(expert.size());\n\t\t\n\t\t// For part 3. we need to print the number of images classified by at least 1\n\t\t// volunteer. We will utilise the properties of Sets in java.\n\t\t\n\t\tHashSet<Integer> idsClassifiedByOne = new HashSet<Integer>();\n\t\tfor (ImageData image : classification) {\n\t\t\tidsClassifiedByOne.add(image.getIdentifier());\n\t\t}\n\t\tSystem.out.println(idsClassifiedByOne.size());\n\t\t\n\t\t// For part 4. we need to print details of the images classified by at least 10\n\t\t// volunteers. \n\t\t\n\t\tArrayList<ImageData> atLeast10Vols = new ArrayList<ImageData>();\n\t\tatLeast10Vols = ImageData.atLeast10(classification);\n\t\t\n\t\t// Must merge the information from classification, locations and expert lists\n\t\tArrayList<ImageData> atLeast10CompleteList = new ArrayList<ImageData>();\n\t\tatLeast10CompleteList = ImageData.collectAll(atLeast10Vols, expert, locations);\n\t\tArrayList<ImageData> clean10CompleteList = ImageData.clean(atLeast10CompleteList);\n\t\t\n\t\t// Printing out the data\n\t\t\n\t\tSystem.out.println(clean10CompleteList);\n\n\t}",
"@Test\n\tpublic void irisTest() throws Exception {\n\t\tint numIters = 10;\n\t\tInstances data = loadIris();\n\t\tDl4jMlpClassifier cls = getMlp();\n\t\tcls.setTrainBatchSize(50);\n\t\tcls.setNumIterations(numIters);\n\t\tString tmpFile = System.getProperty(\"java.io.tmpdir\") + File.separator + \"irisTest.txt\";\n\t\tSystem.err.println(\"irisTest() tmp file: \" + tmpFile);\n\t\tcls.setDebugFile(tmpFile);\n\t\tcls.buildClassifier(data);\n\t\tcls.distributionsForInstances(data);\n\t\tList<String> lines = Files.readAllLines(new File(tmpFile).toPath());\n\t\tassertEquals(lines.size(), numIters+1);\n\t}",
"public static void main(String[] args) throws IOException {\n PredictionServiceConnector con = new PredictionServiceConnector(\"127.0.0.1\", 5000);\n List<AttributeValuePair> query = Lists.newArrayList(\n new AttributeValuePair(Attributes.get().getFromId(\"5579088\"), \"25\"),\n new AttributeValuePair(Attributes.get().getFromId(\"3675717\"), \"1\"),\n new AttributeValuePair(Attributes.get().getFromId(\"5594105\"), \"5\"),\n new AttributeValuePair(Attributes.get().getFromId(\"3673271\"), \"1\"),\n new AttributeValuePair(Attributes.get().getFromId(\"4087191\"), \"6.5\")\n );\n Optional<PredictionWithConfidence> res = con.requestPrediction(query, \"\");\n System.out.println(res);\n }",
"public void generatePixelLabeledImage(DecisionForest classifier, String filename, \n\t\t\tLabelledImageType imageType, ClassLabel clazz) \n\t\t\tthrows MalformedForestException, IOException, MalformedProbabilityDistributionException, InterruptedException {\n\t\t\n\t\t// Get the file extension, if no extension then throw exception immediately\n\t\tString extension = \"\";\n\t\tint l = filename.lastIndexOf('.');\n\t\tif (l > 0) {\n\t\t extension = filename.substring(l+1);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"No file extension for the file.\");\n\t\t}\n\t\t\n\t\t// Create an RGB image that we will output for our pixel labeling\n\t\tint width = dataCube.length;\n\t\tint height = dataCube[0].length;\n\t\tBufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR);\n\t\t\n\t\t// Iterate through each pixel, classify/label each pixel, and write it to the new image\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tArrayList<Double> arr = new ArrayList<>(dataCube[i][j].length);\n\t\t\t\tfor (int k = 0; k < dataCube[i][j].length; k++) {\n\t\t\t\t\tarr.add(k, (double) dataCube[i][j][k]);\n\t\t\t\t}\n\t\t\t\tNDRealVector v = new NDRealVector(arr);\n\t\t\t\tProbabilityDistribution probabilities = classifier.classify(v);\n\t\t\t\tif (imageType == LabelledImageType.PROBABILITY) {\n\t\t\t\t\timage.setRGB(i, j, interpolatedColour(probabilities, classifier.getClasses()));\n\t\t\t\t} else if (imageType == LabelledImageType.SINGLE_CLASS_PROBABILITY) {\n\t\t\t\t\timage.setRGB(i, j, singleProbColour(probabilities, clazz));\n\t\t\t\t} else if (imageType == LabelledImageType.MOST_LIKELY) {\n\t\t\t\t\timage.setRGB(i, j, mostlikelyColour(probabilities, classifier.getClasses()));\n\t\t\t\t} else if (imageType == LabelledImageType.ENTROPY) {\n\t\t\t\t\timage.setRGB(i, j, entropyColour(probabilities));\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\t\n\t\t// Write the image to file\n\t\tFile file = new File(filename);\n\t\tImageIO.write(image, extension, file);\n\t}",
"public static void main(String[] args) {\n String pathToTrain = \"train.csv\";\n String pathToTest = \"test.csv\";\n try {\n ArrayList<String> trainSentences = readCSV(pathToTrain);\n trainSentences.remove(0);\n ArrayList<String> testSentences = readCSV(pathToTest);\n testSentences.remove(0);\n\n ArrayList<String[]> trainWords = preprocess(trainSentences);\n NaiveBayesClassifier model = new NaiveBayesClassifier();\n model.fit(trainWords);\n\n ArrayList<String[]> testWords = preprocess(testSentences);\n double accuracy = evaluate(testWords, model);\n model.writeParams(\"params.json\");\n System.out.printf(\"Accuracy of the model is: %.4f%n\", accuracy);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"List<String> getTargetClassifications(Observation obs);",
"public double train(ExampleInput input, ExampleOutput output,\n\t\t\tExampleOutput predicted);"
] | [
"0.617023",
"0.6093892",
"0.5747755",
"0.5718582",
"0.56266016",
"0.55754846",
"0.5556023",
"0.55285484",
"0.55285066",
"0.54993457",
"0.5498829",
"0.5471753",
"0.54338276",
"0.5363246",
"0.5329828",
"0.5316582",
"0.5259742",
"0.52342004",
"0.52105993",
"0.5195657",
"0.51934844",
"0.5193425",
"0.519131",
"0.51820296",
"0.5177167",
"0.5170442",
"0.5149701",
"0.51494926",
"0.5126285",
"0.51066846",
"0.5092948",
"0.506927",
"0.50625956",
"0.506213",
"0.5055177",
"0.5044089",
"0.5034088",
"0.5032046",
"0.5025177",
"0.5016801",
"0.5014216",
"0.5008256",
"0.49814445",
"0.49787533",
"0.49659133",
"0.49639866",
"0.49587095",
"0.49392408",
"0.4927869",
"0.49256036",
"0.49249935",
"0.48913637",
"0.48825577",
"0.4877793",
"0.48767927",
"0.48691672",
"0.48623592",
"0.48522425",
"0.48493558",
"0.48488212",
"0.4848798",
"0.48325783",
"0.48225307",
"0.4816105",
"0.48106524",
"0.4803044",
"0.4799708",
"0.4796403",
"0.4776137",
"0.4771367",
"0.47693273",
"0.47681943",
"0.47672683",
"0.4764081",
"0.47607088",
"0.47559905",
"0.47532928",
"0.47503644",
"0.47502998",
"0.47346097",
"0.47323322",
"0.47200447",
"0.4719145",
"0.4707319",
"0.46993643",
"0.46889073",
"0.46883538",
"0.4686308",
"0.46848357",
"0.46837035",
"0.4671611",
"0.46590424",
"0.46554482",
"0.4654039",
"0.46505678",
"0.46345058",
"0.46172962",
"0.46138355",
"0.46136516",
"0.46134502"
] | 0.6294692 | 0 |
Figure out the prediction of digit by finding the index with the highest probability | private int postprocess() {
// Index with highest probability
int maxIndex = -1;
float maxProb = 0.0f;
for (int i = 0; i < outputArray[0].length; i++) {
if (outputArray[0][i] > maxProb) {
maxProb = outputArray[0][i];
maxIndex = i;
}
}
return maxIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getDominantI(float[] l) {\n float max = 0;\n int maxi = -1;\n for(int i=0;i<l.length;i++) {\n if (l[i]>max)\n max = l[i]; maxi = i;\n }\n return maxi;\n }",
"@Override\n\tpublic int predict(int[] ex) {\n\t\tdouble sum = 0.0; \n\t\tint prediction;\n\t\tfor (int currentRound = 0; currentRound < this.numberRounds; currentRound++){\n\t\t\tif (this.dSC[this.hypothesis[currentRound]].predict(ex) == 0)\n\t\t\t\tprediction = -1;\n\t\t\telse \n\t\t\t\tprediction = 1;\n\t\t\tsum += this.alpha[currentRound] * prediction; \n\t\t}\n\t\tif (sum > 0)\n\t\t\treturn 1;\n\t\treturn 0;\n\t}",
"private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }",
"@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\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 }",
"private Map.Entry<Activity, Prediction> chooseBestPrediction(Map<Activity, Prediction> predictions) {\n \n Map.Entry<Activity, Prediction> prediction = null;\n int result1, result2, lastIndex;\n double probability1, probability2;\n \n \n for (Map.Entry<Activity, Prediction> entry : predictions.entrySet()) {\n \n if (prediction == null) {\n prediction = entry;\n } else {\n lastIndex = prediction.getValue().getObservations().length - 1;\n \n result1 = prediction.getValue().getPredictions()[lastIndex];\n probability1 = prediction.getValue().getProbability();\n result2 = entry.getValue().getPredictions()[lastIndex];\n probability2 = entry.getValue().getProbability();\n \n /*a result 1 means that an activity has been detected,\n * thus we prefer a result that predicts an activity*/\n if (result2 == 1 && result1 == 0)\n prediction = entry;\n \n /* if both predict an activity, or don't predict anything then\n * we take the probability into consideration */\n if (result1 == result2) {\n if (probability2 > probability1)\n prediction = entry;\n }\n \n }\n \n }\n \n return prediction;\n \n }",
"public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }",
"public int MajorityVote(double sample[]) {\n\t\t \n\t\tif(leaf_buff == null) {\n\t\t\tleaf_buff = new ArrayList<KDNode>();\n\t\t\tLeafNodes(leaf_buff);\n\t\t}\n\n\t\tint class_count[] = new int[]{0, 0, 0, 0};\n\t\tfor(int i=0; i<leaf_buff.size(); i++) {\n\t\t\tint label = leaf_buff.get(i).classifier.Output(sample);\n\n\t\t\tswitch(label) {\n\t\t\t\tcase -2: class_count[0]++;break;\n\t\t\t\tcase -1: class_count[1]++;break;\n\t\t\t\tcase 1: class_count[2]++;break;\n\t\t\t\tcase 2: class_count[3]++;break;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint max = 0;\n\t\tint label = 0;\n\t\tfor(int i=0; i<4; i++) {\n\t\t\t\n\t\t\tif(class_count[i] > max) {\n\t\t\t\tmax = class_count[i];\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn label;\n\t}",
"public static int pointFree(double[] numbers){\n String completeString = \"\";\n String redactedString = \"\";\n int newArray[] = new int[numbers.length];\n int greatestValue=0;\n \n \n \n for (double x : numbers) {\n int currentValue;\n \n completeString = String.valueOf(x);\n redactedString = completeString.replaceAll(\"\\\\.\",\"\");\n currentValue = Integer.parseInt(redactedString);\n for (int i = 0; i < newArray.length; i++) {\n \n newArray[i]=currentValue;\n \n \n }\n greatestValue=newArray[0];\n for (int i = 0; i < newArray.length; i++) {\n if(newArray[i]>greatestValue){\n greatestValue=newArray[i];\n \n }\n \n }\n \n \n }\n return greatestValue;\n \n }",
"@Override\n\tpublic int select_arm() {\n\t\tint countsSum = 0;\n\t\t\n\t\tfor(int arm : m_counts){\n\t\t\tif(arm == 0) return arm;\n\t\t\tcountsSum += arm;\n\t\t}\n\t\t\n\t\tdouble max = 0;\n\t\tint max_indx = 0;\n\t\tfor(int i = 0; i<m_counts.length; i++){\n\t\t\tdouble bonus = Math.sqrt((2 * Math.log(countsSum)) / m_counts[i]);\n\t\t\tdouble ucb_value = m_values[i] + bonus;\n\t\t\tif(ucb_value > max){ \n\t\t\t\tmax = ucb_value;\n\t\t\t\tmax_indx = i;\n\t\t\t}\n\t\t}\n\t\treturn max_indx;\n\t}",
"private double getAccuracyBinary(double[] predict, double[] real) {\n\t\tif (predict.length != real.length) return -1;\n\t\tdouble wrong = 0;\n\t\tdouble correct = 0;\n\t\tfor (int i = 0; i < predict.length; i++) {\n\t\t\tif ((predict[i] > 20 && real[i] > 20) ||\n\t\t\t(predict[i] < 20 && real[i] < 20))\n\t\t\tcorrect++;\n\t\t\telse wrong++;\n\t\t}\n\t\tdouble acur = correct / (correct + wrong);\n\t\treturn acur;\n\t}",
"static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }",
"float getSpecialProb();",
"private static int findIndexOfLargest(float[] vector) {\n\t\tint index = -1;\n\t\tfloat value = Float.NEGATIVE_INFINITY;\n\t\tfloat temp;\n\t\tfor (int d=0; d<Constants.ACCEL_DIM; ++d) {\n\t\t\ttemp = vector[d];\n\t\t\tif (temp<0.0f)\n\t\t\t\ttemp = -temp;\n\t\t\t\n\t\t\tif (temp>value) {\n\t\t\t\tvalue = temp;\n\t\t\t\tindex = d;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}",
"public static int classify(Model M, int[][] x){\n\t // Double high =jointProbabilityXD(M,x,0)/marginalProbabilityX(M,x);\n\t double high=0.0;\n\t int digit =0;\n\t int i=0;\n\t while(i<10){\n\t\t double tot =conditionalProbabilityDgX( M, i, x);\n\t \t\n\t if(high<tot){\n\t\t high=tot;\n\t \t\tdigit =i; \n\t \t}\n\t\t i++;\n\t \t//System.out.println(0.988809344056389 < 0.011080326918292818);\n\t \n\t\t// System.out.println(tot);\n\t }\n\t return digit;\n }",
"public double getBestScore();",
"public static int fastClassify(Model M, int[][] x){\n //dont call other classes\n\t //look out for terms that you can take out\n//\t int d =0;\n//\t double joint;\n//\t double t= 1.0;\n//\t\tdouble high;\n//\t\t//Double tot1;\n//\t\tdouble higher;\n//\t\tdouble tot =1.0;\n//\t\tdouble tot1= 1.0;\n//\t int digit =0;\n//\t for(int i=0; i<x.length; i++){\n//\t\tfor(int j=0;j<x[i].length; j++){\n//\n//\t\t//probability at 0;\n//\t\t\ttot*=conditionalProbabilityXijgD(M,i,j,x[i][j],0); \n//\t\t \n//\t\t high = M.getPD(0)*tot;\n//\t\t\twhile(d<10){\n//\t\t\t\ttot1*=conditionalProbabilityXijgD(M,i,j,x[i][j],d); \n//\t\t\t\thigher = M.getPD(d)*tot1;\n//\t\t\t\t\n//\t\t\t\tif(high <higher){\n//\t\t\t\t\thigh = higher;\n//\t\t\t\t\tdigit =d;\n//\t\t\t\t}\n//\t\t\t\td++;\n//\t\t\t}\n//\t\t \n//\t }\n//\t \n//\t }\n\t double high=0.0;\n\t int digit =0;\n\t int i=0;\n\t while(i<10){\n\t\t double tot =jointProbabilityXD(M,x,i);\n\t \t\n\t if(high<tot){\n\t\t high=tot;\n\t \t\tdigit =i; \n\t \t}\n\t\t i++;\n\t \t//System.out.println(0.988809344056389 < 0.011080326918292818);\n\t \n\t\t// System.out.println(tot);\n\t }\n\t return digit;\n\t \n \n}",
"@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }",
"public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }",
"public abstract int predict(double[] testingData);",
"private double calcProbability(int index) {\n\t\treturn (double) fitnesses[index] / sumOfFitnesses();\n\t}",
"BigInteger getMax_freq();",
"public int getOptimalNumNearest();",
"@Override\r\n\tpublic int predict(double[] x, double[] posteriori) {\n\t\treturn 0;\r\n\t}",
"public int getWorstScore()\n {\n return -1;\n }",
"private int findIndexOfMax(){\n\t\tint value=0;\n\t\tint indexlocation=0;\n\t\tfor(int i=0; i<myFreqs.size();i++){\n\t\t\tif(myFreqs.get(i)>value){\n\t\t\t\tvalue = myFreqs.get(i);\n\t\t\t\tindexlocation =i;\n\t\t\t}\n\t\t}\n\t\treturn indexlocation;\n\t}",
"public int ClassLabel(double sample[]) {\n\t\t\n\t\tif(k_closest == null) {\n\t\t\tclass_label = Output(sample);\n\t\t\treturn class_label;\n\t\t}\n\t\t\n\t\tfloat min = Float.MAX_VALUE;\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tmin = Math.min(ptr.s.weight, min);\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tmin = Math.abs(min) + 1;\n\t\t\n\t\tfloat class_count[] = new float[]{0, 0, 0, 0};\n\t\tptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\t\n\t\t\tptr.s.norm_weight = (ptr.s.weight + min);\n\t\t\tSample s = ptr.s;\n\t\t\t\n\t\t\tint out = s.Classify(sample);\n\t\t\t\n\t\t\tswitch(out) {\n\t\t\t\tcase -2: class_count[0] += s.norm_weight; break;\n\t\t\t\tcase -1: class_count[1] += s.norm_weight; break;\n\t\t\t\tcase 1: class_count[2] += s.norm_weight; break;\n\t\t\t\tcase 2: class_count[3] += s.norm_weight; break;\n\t\t\t}\n\t\t\t\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfloat max = 0;\n\t\tint label_set[] = new int[]{-2, -1, 1, 2};\n\t\tclass_label = 0;\n\t\tfor(int i=0; i<4; i++) {\n\t\t\t\n\t\t\tif(class_count[i] > max) {\n\t\t\t\tmax = class_count[i];\n\t\t\t\tclass_label = label_set[i];\n\t\t\t}\n\t\t} \n\t\t\n\t\treturn class_label;\n\t}",
"void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}",
"private char getBestBaseForPosition(int pos) {\n double[] freq=pwm[pos];\n double best=0;\n for (int i=0;i<freq.length;i++) if (freq[i]>best) best=freq[i];\n int count=0; // number of bases with this frequency\n for (int i=0;i<freq.length;i++) if (freq[i]==best) count++;\n // now select one of these at random\n int chosen=(int)(Math.random()*count); // chosen is now 0,1,2 or 3 (with max value depending on how many had the highest frequency)\n count=0;\n for (int i=0;i<freq.length;i++) {\n if (freq[i]==best) count++;\n if (count>chosen) return bases[i];\n }\n return 'N'; // this should not happen!\n }",
"public abstract float getProbability(String singleToken);",
"public double getEstimate()\n {\n assert list.length > 0: \"The list cannot be empty\";\n int R = list[0];\n \n //count how many are smaller or equal to R\n double counter = 0;\n for (int i = 1; i < k; i++) {\n if (list[i]<R)\n counter++;\n }\n return -Math.pow(2, R - 1) * Math.log(counter / (k-1)); }",
"private int rightmostDip() {\n for (int i = n - 2; i >= 0; i--) {\n if (index[i] < index[i + 1]) {\n return i;\n }\n }\n return -1;\n }",
"public int predict(int[] testingData) {\n\t\t// HIDDEN LAYER\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\t\t\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * testingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t}\n\t\t// OUTPUT LAYER \n\t\tdouble[] predictedLabel = new double[testingData.length];\n\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tpredictedLabel[i] = 0;\n\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tpredictedLabel[i] += weightsOfOutputLayer[i][j] * hiddenActivations[j];\n\t\t\t}\n\t\t\tpredictedLabel[i] += biasOfOutputLayer[i]; \n\t\t}\n\t\tsoftmax(predictedLabel);\n\t\tint solution = argmax(predictedLabel);\n\t\treturn solution;\n\t}",
"static int score(int[] state) {\n int no = 0;\n for (int i = 1; i < 10; i++) {\n if (state[i] == 1) {\n no *= 10; no += i;\n }\n }\n return no;\n }",
"abstract double rightProbability();",
"float predict();",
"public abstract float getProbability(String[] tokens);",
"@Override\r\n\tpublic int computeNextVal(boolean prediction, Instance inst) {\n\t\treturn 0;\r\n\t}",
"double getExtremeSpikeProbability();",
"public static int calculateModelNumber(int numPredictors, int maxPredictorNumber) {\n int modelNumber = 0;\n for (int index = 1; index <= maxPredictorNumber; index++) {\n modelNumber += combinatorial(numPredictors, index);\n }\n return modelNumber;\n }",
"public int Output(double sample[]) {\n\t\treturn MajorityVote(sample);\n\t}",
"public static void main(String[] args) {\n String res = \"1\";\r\n for (int i = 0; i < 100; i++) res += '0';\r\n MAX = new BigInteger(res);\r\n generate(\"1\", 1, 1);\r\n generate(\"2\", 1, 4);\r\n generate(\"3\", 1, 9);\r\n Arrays.sort(values);\r\n// System.out.println(count);\r\n\r\n// for (int i = 0; i < 100; i++) {\r\n// System.out.println(values[i]);\r\n// }\r\n\r\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n String line = br.readLine();\r\n int K = Integer.parseInt(line);\r\n for (int i = 1; i <= K; i++) {\r\n String[] v = br.readLine().split(\" \");\r\n BigInteger A = new BigInteger(v[0]);\r\n BigInteger B = new BigInteger(v[1]);\r\n\r\n int p1 = Arrays.binarySearch(values, A);\r\n if (p1 < 0) {\r\n p1 = -p1 - 1;\r\n }\r\n int p2 = Arrays.binarySearch(values, B);\r\n if (p2 < 0) {\r\n p2 = -p2 - 1;\r\n } else {\r\n p2++;\r\n }\r\n int result = p2 - p1;\r\n //System.out.println(p1 + \" \" + p2);\r\n System.out.println(\"Case #\" + i + \": \" + result);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\r\n }\r\n }",
"private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }",
"double getBranchProbability();",
"static int migratoryBirds(List<Integer> arr) {\n int count=1;\n int max=arr.get(0);\n HashMap<Integer,Integer> map=new HashMap<>();\n for(int i=0;i<arr.size();i++) {\n \tif(map.containsKey(arr.get(i))) {\n \t\tmap.replace(arr.get(i), map.get(arr.get(i))+1);\n \t}else {\n \t\tmap.put(arr.get(i), count);\n \t}\n }\n \n int ans=0;\n for(Integer i:map.keySet()) {\n \t int n=map.get(i);\n \t if(n>max) {\n \t\t max=n;\n \t\t \tans=i;\n\n \t }\n }\n /*int comp[]=new int[256];\n for(int i=0;i<arr.size();i++){\n comp[arr.get(i)]++;\n }\n for(int i=0;i<comp.length;i++){\n if(comp[i]>max)\n max=comp[i];\n }*/\n return ans;\n }",
"private double[] computePredictionValues() {\n double[] predResponses = new double[D];\n for (int d = 0; d < D; d++) {\n double expDotProd = Math.exp(docLabelDotProds[d]);\n double docPred = expDotProd / (expDotProd + 1);\n predResponses[d] = docPred;\n }\n return predResponses;\n }",
"private int spinTheWheel()\r\n {\r\n\tint i;\r\n\t// generate a random number from 0 to 1\r\n\tdouble r = Math.random();\r\n\t// find the index where the random number lie in the \r\n\t// probability array\r\n\tfor(i = 0; i < prob.length && r > prob[i]; i++);\r\n\r\n\t// sometimes, due to the rounding error, the last \r\n\t// accumulate probability is less than 1 and the search\r\n\t// will fail. \r\n\t// when this case happen, return the last index\r\n\tif(i == prob.length)\r\n\t i--;\r\n\treturn i;\r\n }",
"Integer getMaximumResults();",
"public int indexOfBestDecade() {\n\t\tint min = rank.get(0);\n\t\tfor(int index = 1; index < NUM_DECADES; index++) {\n\t\t\tmin = Math.min(min, rank.get(index));\n\t\t}\n\t\treturn min;\n\t}",
"int getLikelihoodValue();",
"static int findMaxProfit(int numOfPredictedDays, int[] predictedSharePrices) {\n int max = 0;\n for(int i = 0; i< numOfPredictedDays -1; i++)\n {\n for (int j = i+1; j< numOfPredictedDays;j++)\n {\n int temp = predictedSharePrices[j] - predictedSharePrices[i];\n if(temp > max)\n {\n max = temp;\n }\n }\n }\n return max;\n }",
"private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }",
"@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 }",
"private void CalcChromNum()\r\n {\r\n max = 0;\r\n\r\n for(int i = 0; i < colorArray.length; i++)\r\n {\r\n if(colorArray[i] > max)\r\n {\r\n max = colorArray[i];\r\n }\r\n }\r\n }",
"private int getMaxValuedKey(final Map<Integer, Integer> map) {\n\t\tint maxfreq = Integer.MIN_VALUE;\n\t\tint result = 0;\n\t\tfor (Entry<Integer, Integer> currentPair : map.entrySet()) {\n\t\t\tint currentScore = 0;\n\t\t\tfor (int i = currentPair.getKey() - IGNORE_MARGIN; i <= currentPair\n\t\t\t\t\t.getKey() + IGNORE_MARGIN; i++) {\n\t\t\t\tif (map.containsKey(i)) {\n\t\t\t\t\tcurrentScore += map.get(currentPair.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (currentScore > maxfreq) {\n\t\t\t\tmaxfreq = currentScore;\n\t\t\t\tresult = currentPair.getKey();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public double getHighestConfidence() {\n\t\tdouble best = Double.MIN_VALUE;\n\n\t\tfor (ResultConfidencePairing rcp : m_results) {\n\t\t\tif (rcp.getConfidence() > best)\n\t\t\t\tbest = rcp.getConfidence();\n\t\t}\n\t\treturn best;\n\t}",
"public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}",
"default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }",
"public double getCandProbability(String candidate){\n\t\tString[] candTerms = candidate.split(\"\\\\s+\");\n\t\t\n\t\t// Total Tokens\n\t\tdouble totTokens = (double)unigramDict.termCount();\n\t\t//P(w1) in log\n\t\tString w1 = candTerms[0];\n\t\tdouble probW1 = Math.log10((double)unigramDict.count(w1, wordToId)/totTokens);\n\t\t\n\t\t//P (w1, w2, ..., wn)\n\t\tdouble probCandidate = probW1;\n\t\t\n\t\t\n\t\tfor( int i =0; i < candTerms.length-1; i++){\n\t\t\t//Pint(w2|w1) = Pmle(w2) + (1 )Pmle(w2|w1)\n\t\t\tString currentTerm = candTerms[i];\n\t\t\tString nextTerm = candTerms[i+1];\n\t\t\tString bigram = currentTerm + \" \" + nextTerm;\n\t\t\tint freqBigram = bigramDict.count(bigram, wordToId);\n\t\t\t\n\t\t\t//this term should be in dictionary\n\t\t\tint freqFirstTerm = unigramDict.count(currentTerm, wordToId);\n\t\t\t\n\t\t\tdouble PmleW2W1 = (double)freqBigram/(double)freqFirstTerm;\n\t\t\t\n\t\t\t//System.out.println(\"candidate=[\" + candidate + \"]\\tbigram=[\" + bigram + \"]\\tterms=\" + Arrays.toString(terms));\n\t\t\tdouble PmleW2 = (double)unigramDict.count(nextTerm, wordToId) / totTokens;\n\t\t\t//double lamda= 0.1;\n\t\t\tdouble PintW2W1 = lamda*PmleW2 + (1-lamda)*PmleW2W1;\n\t\t\tprobCandidate = probCandidate + Math.log10(PintW2W1);\n\t\t}\n\t\treturn probCandidate;\n\t}",
"private int find(String input) {\n int maxSubsequent = 0;\n int currentSubsequent = 1;\n\n String[] inputArray = input.split(\" \");\n List<Integer> numbers = new ArrayList<Integer>();\n\n for (String s : inputArray) {\n numbers.add(Integer.parseInt(s));\n }\n\n for (int i = 0; i < numbers.size() - 1; i++) {\n if (Math.abs((numbers.get(i + 1) - numbers.get(i))) == DIFFERENCE) {\n currentSubsequent++;\n } else {\n maxSubsequent = (currentSubsequent > maxSubsequent) ? currentSubsequent : maxSubsequent;\n currentSubsequent = 1;\n }\n }\n\n maxSubsequent = (currentSubsequent > maxSubsequent) ? currentSubsequent : maxSubsequent;\n\n return maxSubsequent;\n }",
"public ArrayList<String> predict(String sentence){\r\n\t\t//Splits the String and creates the necessary maps\r\n\t\tString words[] = sentence.split(\" \");\r\n\t\tSystem.out.println(\"SENTENCE \" + sentence + \" LENGTH \" + words.length);\r\n\t\tTreeMap<String, Float> prevscores = new TreeMap<String, Float>();\r\n\t\tArrayList<TreeMap<String, String>> backtrack = new ArrayList<TreeMap<String, String>>(); \r\n\t\tFloat zero = new Float(0);\r\n\t\tprevscores.put(\"start\", zero);\r\n\t\t//Looping over every word in the String\r\n\t\tfor (int i = 0; i < words.length; i++){\r\n\t\t\tTreeMap<String, Float> scores = new TreeMap<String, Float>();\r\n\t\t\tSet<String> keys = prevscores.keySet();\r\n\t\t\tbacktrack.add(new TreeMap<String, String>());\r\n\t\t\t//Looping over all the previous states\r\n\t\t\tfor(String state : keys){\r\n\t\t\t\tSet<String> tagKeys = this.transMap.get(state).keySet();\r\n\t\t\t\t//Looping over all the possible states\r\n\t\t\t\tfor(String tagKey : tagKeys){\r\n\t\t\t\t\r\n\t\t\t\t\tfloat nextscore = (prevscores.get(state) + this.transMap.get(state).get(tagKey));\r\n\t\t\t\t\tif(this.emissionMap.containsKey(tagKey) && this.emissionMap.get(tagKey).containsKey(words[i])){\r\n\t\t\t\t\t\tnextscore += this.emissionMap.get(tagKey).get(words[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse nextscore += -200;\r\n\t\t\t\t\tif(!scores.containsKey(tagKey) || nextscore > scores.get(tagKey)){\r\n\t\t\t\t\t\tscores.put(tagKey, nextscore);\r\n\t\t\t\t\t\tbacktrack.get(i).put(tagKey, state);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprevscores = scores;\r\n\r\n\t\t}\r\n\t\tString finalState = \"\";\r\n\t\tSet<String> prevKeys = prevscores.keySet();\r\n\t\tfloat max = -100000;\r\n\t\tfor(String key : prevKeys){\r\n\t\t\tfloat num = prevscores.get(key);\r\n\t\t\tif(num > max) {\r\n\t\t\t\tmax = num;\r\n\t\t\t\tfinalState = key;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] end_states = new String[sentence.split(\" \").length];\r\n\t\tend_states[backtrack.size() - 1] = finalState;\r\n\r\n\t\tString state = finalState;\r\n\t\tfor(int i = backtrack.size() - 1; i>=1; i-- ) {\r\n\t\t\tstate = backtrack.get(i).get(state);\r\n\t\t\tend_states[i - 1] = state;\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<String> sequence = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < end_states.length; i++) {\r\n\t\t\tsequence.add(end_states[i]);\r\n\t\t}\r\n\t\treturn sequence;\r\n\t}",
"public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }",
"public int findMax(){\n return nilaiMaks(this.root);\n }",
"@Override\r\n public int[] bestSequence(SequenceModel ts) {\r\n return Counters.argmax(kBestSequences(ts, 1));\r\n }",
"private static void findLeader(Integer[] array) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < array.length; i++) {\n // Map key -> value from input array\n Integer key = array[i];\n // Map value -> occurrences number\n Integer count = map.get(key);\n if (count == null) {\n // if null put new occurrence with count 1\n map.put(key, 1);\n } else {\n // if not null increment occurrences and replace in map (put works the same in this situation)\n // https://stackoverflow.com/a/35297640\n count++;\n map.replace(key, count);\n }\n }\n Integer leader = 0;\n Integer maxCount = 0;\n // Iterator enables you to cycle through a collection, obtaining or removing elements\n // https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html\n // Take map iterator\n Iterator it = map.entrySet().iterator();\n // Loop till iterator has next element\n while (it.hasNext()) {\n // Take map next entry -> map entry consists of key and value\n Map.Entry pair = (Map.Entry) it.next();\n // Check if map value (occurrences number) is greater than current maximum\n if ((Integer) pair.getValue() > maxCount) {\n // if true swap current maxCount and leader\n maxCount = (Integer) pair.getValue();\n leader = (Integer) pair.getKey();\n }\n }\n // Check if occur more than 50%\n if(maxCount < array.length / 2 + 1){\n leader = -1;\n }\n System.out.println(leader);\n }",
"@Override\n public int degree() {\n boolean first = true;\n int highestKey = 0;\n for (Map.Entry<Integer, Integer> e : this.values.entrySet()) {\n int expo = e.getKey();\n int coeff = e.getValue();\n if (first) {\n highestKey = expo;\n first = false;\n } else if (coeff != 0 && expo > highestKey)\n highestKey = expo;\n }\n return highestKey;\n }",
"double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}",
"public int getPrediction(int i, int j) {\n\t\treturn predictions[i][j];\n\t}",
"public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}",
"int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}",
"public int classify(String doc){\n\t\tint label = 0;\n\t\tint vSize = vocabulary.size();\n\t\tdouble[] score = new double[numClasses];\n\t\tfor(int i=0;i<score.length;i++){\n\t\t\tscore[i] = Math.log(classCounts[i]*1.0/trainingDocs.size());\n\t\t}\n\t\tString[] tokens = doc.split(\" \");\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tfor(String token: tokens){\n\t\t\t\tif(condProb[i].containsKey(token)){\n\t\t\t\t\tscore[i] += Math.log(condProb[i].get(token));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tscore[i] += Math.log(1.0/(classTokenCounts[i]+vSize));\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"token: \"+token+\" \"+score[i]);\n\t\t\t}\n\t\t}\n\t\tdouble maxScore = score[0];\n\t\t//System.out.println(\"class 0: \"+score[0]);\n\t\tfor(int i=1;i<score.length;i++){\n\t\t\t//System.out.println(\"class \"+i+\": \"+score[i]);\n\t\t\tif(score[i]>maxScore){\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t}",
"private String chooseNextCharacter(final Random random, final String sequence) throws NoSuchElementException {\n if(! sequenceProbabilities.containsKey(sequence)) {\n throw new NoSuchElementException(\"There are no computed probabilities for the specified key.\");\n }\n\n Integer highestProbability = null;\n final List<String> highestStrings = new ArrayList<>();\n\n for(final Map.Entry<String, Integer> entry : sequenceProbabilities.get(sequence).entrySet()) {\n // If the initial data has not yet been set,\n // then set it.\n if(highestProbability == null) {\n highestStrings.add(entry.getKey());\n highestProbability = entry.getValue();\n } else {\n if(entry.getValue() > highestProbability) {\n highestStrings.clear();\n highestStrings.add(entry.getKey());\n highestProbability = entry.getValue();\n } else {\n highestStrings.add(entry.getKey());\n }\n }\n }\n\n final int randomIndex = random.nextInt(highestStrings.size());\n\n return highestStrings.get(randomIndex);\n }",
"private static native float predict_0(long nativeObj, long sample_nativeObj, boolean returnDFVal);",
"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 int calculateOutput(int dataIndex){\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n activation[i] = hiddenLayer[i].a = sigmoid(hiddenLayer[i].calculateZ(data[dataIndex]));\r\n }\r\n int ans = -1;\r\n double max = 0;\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n outputLayer[i].a = sigmoid(outputLayer[i].calculateZ(activation));\r\n if (outputLayer[i].a > outputLayer[i].activationThreshold) {\r\n if (max < outputLayer[i].a) {\r\n max = outputLayer[i].a;\r\n ans = i;\r\n }\r\n }\r\n }\r\n return ans;\r\n }",
"private int indexOfLargest(ArrayList<QuakeEntry> data) {\n int index = 0;\n double magnitude = 0;\n for (QuakeEntry qe : data) {\n double currMag = qe.getMagnitude();\n if (currMag > magnitude) {\n index = data.indexOf(qe);\n magnitude = currMag;\n }\n }\n System.out.println(magnitude);\n return index;\n }",
"public int highestInterIndex(){\r\n\t\tint index = -1;\r\n\t\tfor (int i = 0; i < this.interVec.length; i++) {\r\n\t\t\tif (index == -1 && this.interVec[i] == true \r\n\t\t\t\t\t&& this.getSwitchState(Model.getInterAt(i).getIRQ()) == true)\r\n\t\t\t\tindex = i;\r\n\t\t\telse if(this.interVec[i] == true &&\r\n\t\t\t\t\t\tthis.getSwitchState(Model.getInterAt(i).getIRQ()) == true &&\r\n\t\t\t\t\t\t\tModel.getInterAt(i).getPriority() < Model.getInterAt(index).getPriority())\r\n\t\t\t\tindex = i;\r\n\t\t}\r\n\t\treturn index;\r\n\t}",
"@Override\n\tpublic Pair<List<Integer>, List<Integer>> getFittest() {\n\t\tif (m_random == null) {\n\t\t\tm_random = new Random();\n\t\t}\n\t\tfinal Pair<List<Integer>, List<Integer>> inc = getRandomIncomparablePair(m_preorder, m_random);\n\t\tif (inc == null) {\n\t\t\treturn Pair.create(m_rvs.getRankVectors().first(), m_rvs.getRankVectors().first());\n\t\t}\n\t\treturn inc;\n\t}",
"private ResultIntent.IntentProbability maxElementIntent(List<ResultIntent.IntentProbability> element) {\n return Collections.max(element, (intentProbability, t1) -> {\n if (intentProbability.getProbability() == t1.getProbability()) {\n return 0;\n } else if (intentProbability.getProbability() < t1.getProbability()) {\n return -1;\n }\n return 1;\n });\n }",
"private double predict(String tweet) {\n\t\tDocumentCategorizerME myCategorizer = new DocumentCategorizerME(\n\t\t\t\t(DoccatModel) model);\n\t\tdouble[] outcomes = myCategorizer.categorize(tweet);\n\t\treturn Double.parseDouble(myCategorizer.getBestCategory(outcomes));\n\t}",
"private int LF(int i){\n Character[] alphabet = wt.root.alphabetMap.keySet().toArray(new Character[0]);\n char li = 0;\n for (int j = 1; j < alphabet.length; j++) {\n int rank1 = wt.rank(alphabet[j].charValue(), i);\n int rank2 = wt.rank(alphabet[j].charValue(), i-1);\n if(rank1 != rank2){\n li = alphabet[j].charValue();\n }\n }\n return c.occurrence.get(li);\n }",
"public int maxFrequency(int[] nums, int k) {\n Arrays.sort(nums);\n int n = nums.length;\n int res = 1;\n for (int i = 0, j = 1, cost = 0; j < n; ) {\n int nextCost = cost + (nums[j] - nums[j - 1]) * (j - i);\n if (nextCost <= k) {\n res = Math.max(res, ++j - i);\n cost = nextCost;\n } else {\n cost -= nums[j - 1] - nums[i++];\n }\n }\n return res;\n }",
"public static int discrete(double[] a) { \n double r = Math.random();\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n sum = sum + a[i];\n if (sum >= r) return i;\n }\n assert (false);\n return -1;\n }",
"public double getObservationProbability(){\r\n double ret=0;\r\n int time=o.length;\r\n int N=hmm.stateCount;\r\n for (int t=0;t<=time;++t){\r\n for (int i=0;i<N;++i){\r\n ret+=fbManipulator.alpha[t][i]*fbManipulator.beta[t][i];\r\n }\r\n }\r\n ret/=time;\r\n return ret;\r\n }",
"public int robBest(TreeNode root) {\n\t\treturn maxMoney(root)[1];\n\t}",
"@Override\n\tpublic int compareTo(PredictProbPair o) {\n\t\tif (keylen == o.keylen)\n\t\t{\n\t\t\treturn ((Double)(-prob)).compareTo((Double)(-o.prob));\n\t\t}\n\t\treturn ((Integer)(-keylen)).compareTo((Integer)(-o.keylen));\n\t}",
"private int getPRFurthestUse() {\n int max = -1;\n int maxPR = -1;\n for (int i = 0; i < numPhysRegs - 1; i++) {\n if (PRNU[i] > max) {\n max = PRNU[i];\n maxPR = i;\n }\n }\n return maxPR; // no free physical register\n }",
"public int candy(int[] ratings) {\r\n if (ratings == null || ratings.length == 0)\r\n return 0;\r\n int peak = 0, up = 0, down = 0, res = 1;\r\n for (int i = 1, n = ratings.length; i < n; i++) {\r\n if (ratings[i - 1] > ratings[i]) {\r\n up = 0;\r\n down++;\r\n res += (1 + down + (peak >= down ? -1 : 0));\r\n } else if (ratings[i - 1] == ratings[i]) {\r\n peak = up = down = 0;\r\n res++;\r\n }\r\n // ratings[i-1] < ratings[i]\r\n else {\r\n down = 0;\r\n up++;\r\n peak = up;\r\n res += (1 + up);\r\n }\r\n }\r\n return res;\r\n }",
"static int findBinaryStringUsingHMap(int[] arr){\n Map<Integer, Integer> map = new HashMap<>();\n int count =0, maxLength =0;\n //need a default value in map (0,-1) i.e count is zero at index -1 because when we start travelling\n // (after +- counter and encounter zero at very first time (means 0==1) means from index 0 --> current 0=1\n // to calculate the length we need 0,-1\n //e.g 0 1 --> count will be like -1 --> 0 at 1 = 1 ( how to calculate i-(-1) => 2\n map.put(0, -1);\n for(int i=0; i<arr.length; i++){\n count = count + (arr[i]==1 ? 1 : -1);\n if(map.containsKey(count)){\n maxLength = Math.max(maxLength, i - map.get(count));\n }else{\n map.put(count, i);\n }\n }\n return maxLength;\n }",
"public static int findNextHigher(int[] a, int k) {\n\t int low = 0; \n\t int high = a.length - 1;\n\t \n\t int result = Integer.MAX_VALUE;\n\t while (low <= high) {\n\t int mid = (low + high) / 2;\n\t \n\t if (a[mid] > k) {\n\t result = a[mid]; /*update the result and continue*/\n\t high = mid - 1;\n\t } else {\n\t low = mid + 1;\n\t }\n\t } \n\t \n\t return result;\n\t}",
"private static int choose_index(int percentage){\n\t\tif ( percentage < 50 )\n\t\t\treturn 0;\n\t\tif ( percentage > 50 )\n\t\t\treturn 2;\n\t\treturn 1;\n\t}",
"public abstract int maxIndex();",
"public int index_bin(Example e) {\n\n int i;\n int index = -1; // -1 = EXAMPLES HAS UNKNOWN FEATURE VALUE\n int number_satisfied = 0;\n if (!Example.FEATURE_IS_UNKNOWN(e, feature_index)) { // written for checks, can be sped up\n for (i = 0; i < histogram_proportions.size(); i++) {\n if (Feature.EXAMPLE_MATCHES_FEATURE(\n e,\n histogram_features.elementAt(i),\n feature_index,\n histogram_features.elementAt(i).type)) {\n if ((index == -1) || (Algorithm.R.nextDouble() < 0.5)) {\n index = i;\n number_satisfied++;\n }\n }\n }\n if (index == -1) {\n System.out.println(e + \" :: \");\n for (i = 0; i < histogram_proportions.size(); i++)\n System.out.println(histogram_features.elementAt(i));\n\n Dataset.perror(\"Histogram.class :: example \" + e + \" has no bin in histogram \");\n }\n }\n return index;\n }",
"public int highDie(){\n int highest = this.dice[0].getFaceValue();\n for (int i = 1; i < dice.length; i++){\n highest = Math.max(highest, this.dice[i].getFaceValue());\n }\n return highest;\n }",
"public static int mostMoney(int[][] a) { \n double[] totals = new double[3]; \n double rowTotal = 0.0;\n double rowTotal1 = 0.0;\n double rowTotal2 = 0.0;\n \n \n for(int i = 0; i<4; i++){\n rowTotal += a[0][i];\n totals[0] = rowTotal;}\n \n for(int j = 0; j<4; j++){\n rowTotal1 += a[1][j];\n totals[1] = rowTotal1;}\n \n for(int k = 0; k<4; k++){\n rowTotal2 += a[0][k];\n totals[2] = rowTotal2;}\n \n int indexOfBest=0; //used to find index of best year\n double best = totals[0];\n for(int i =0; i < 3; i++) {\n if(totals[i] >= best){\n best = totals[i];\n indexOfBest = i;}\n \n } return indexOfBest;\n }",
"public static void main(String[] args) {\n System.out.println(new lc564().nearestPalindromic(\"10\")); //预期结果11\r\n }",
"java.lang.String getPredicted();",
"public static double getHeightScore(DynamicScoringRandomCutForest forest,double[] point){\n return forest.getDynamicScore(point,0,(x,y)->1.0*(x+Math.log(y)),(x,y)->1.0*x,(x,y)->1.0);\n }",
"public int maximum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer maxRepr = xft.maximum();\n \n assert(maxRepr != null);\n \n int index = maxRepr.intValue()/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Entry<Integer, Integer> lastItem = map.lastEntry();\n \n assert(lastItem != null);\n \n return lastItem.getKey();\n }",
"public int getMaximumPoints();"
] | [
"0.62320465",
"0.6208474",
"0.6120999",
"0.59655476",
"0.59584844",
"0.59405714",
"0.5829027",
"0.58018863",
"0.5778898",
"0.5741807",
"0.572912",
"0.57131916",
"0.5668002",
"0.56460863",
"0.56232715",
"0.55654556",
"0.55316556",
"0.5520826",
"0.5512142",
"0.5506327",
"0.54596496",
"0.54570365",
"0.54414004",
"0.5424534",
"0.5410249",
"0.5409107",
"0.5391372",
"0.53796595",
"0.5369861",
"0.5358978",
"0.53575337",
"0.5351937",
"0.5341296",
"0.53397256",
"0.5339656",
"0.5339307",
"0.5322012",
"0.53185207",
"0.5309977",
"0.53071344",
"0.5300348",
"0.52937293",
"0.5282518",
"0.5277119",
"0.5276044",
"0.5272963",
"0.5268361",
"0.5266715",
"0.52624047",
"0.52586246",
"0.5243996",
"0.5223105",
"0.5217515",
"0.519294",
"0.518503",
"0.5183518",
"0.5176247",
"0.5164425",
"0.51600224",
"0.51583874",
"0.51553494",
"0.5154993",
"0.5153975",
"0.5153373",
"0.51476514",
"0.5147439",
"0.5145912",
"0.5141606",
"0.5137747",
"0.5132443",
"0.5120363",
"0.51155645",
"0.5110111",
"0.51085424",
"0.5103112",
"0.5079763",
"0.5075902",
"0.5075845",
"0.5074514",
"0.5067191",
"0.50587523",
"0.50574154",
"0.50522304",
"0.5049668",
"0.5036255",
"0.5035351",
"0.50343144",
"0.5033949",
"0.5018863",
"0.50163245",
"0.5008664",
"0.5007893",
"0.5007652",
"0.50069094",
"0.500486",
"0.5002703",
"0.49935928",
"0.4992455",
"0.49877754",
"0.49839637"
] | 0.73573655 | 0 |
Specialized Constructor that receives the command set to execute. | public HydraFrame(final Stage tgtStage, final CommandSet useCommands) {
super(HydraFrame.DEFAULT_TITLE);
this.stage = tgtStage;
this.commands = useCommands;
this.initialize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Command() {\n this.arguments = new String[0];\n }",
"public Tree(Console console, String command[]) {\n userFileSystem = console.getFileSystem();\n commandArgument = command;\n }",
"Command(String command, int parameterCount) {\n this.command = command;\n this.parameterCount = parameterCount;\n }",
"public Command() {\n }",
"public CommandMAN() {\n super();\n }",
"public AbstractCommandController(Class commandClass, String commandName)\r\n/* 21: */ {\r\n/* 22:75 */ setCommandClass(commandClass);\r\n/* 23:76 */ setCommandName(commandName);\r\n/* 24: */ }",
"Command(String[] commandArgs) {\n this.commandArgs = commandArgs;\n assert this.commandArgs != null : \"Command with null arguments constructed\";\n }",
"public ControlCommand() {\r\n\t\tthis(CommandType.NotSet);\r\n\t}",
"CommandTypes(String command) {\n this.command = command;\n }",
"protected Command(String input, String[] data) {\n this.setInput(input);\n this.setData(data);\n }",
"public CommandManager() {}",
"public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}",
"public AbstractCommandController(Class commandClass)\r\n/* 16: */ {\r\n/* 17:66 */ setCommandClass(commandClass);\r\n/* 18: */ }",
"public abstract void setCommand(String cmd);",
"protected VmPoolCommandBase(Guid commandId) {\n super(commandId);\n }",
"protected PermissionsCommandBase(Guid commandId) {\n super(commandId);\n }",
"public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}",
"PSConsoleCommand(String cmdArgs)\n {\n super();\n m_cmdArgs = cmdArgs;\n }",
"public AbstractCommand()\n {\n this.logger = new ConsoleLogger();\n }",
"public CPRCommand()\r\n {\r\n }",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"public Command(String[] arguments) {\n this.setArguments(arguments);\n }",
"public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }",
"public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }",
"private Query(String command) {\n\t\tthis.command = command;\n\t}",
"public ItemCommand() {\n }",
"private Command() {\n initFields();\n }",
"protected void setComponent(List<Object> Command) throws Exception {\r\n if (Command.isEmpty()) {\r\n throw new Exception(\"No setting/component specified\");\r\n }\r\n String Component = Command.get(0).toString().toLowerCase();\r\n switch (Component) {\r\n case \"objective\":\r\n case \"obj\": {\r\n // Usage: <optimizer> set objective <max|min> <method> [<method options..>]\r\n String Method;\r\n List<Object> Options;\r\n boolean toMaximize;\r\n try {\r\n // Read whether to max / minimize\r\n if (Command.get(1).toString().startsWith(\"max\")) {\r\n toMaximize = true;\r\n } else if (Command.get(1).toString().startsWith(\"min\")) {\r\n toMaximize = false;\r\n } else {\r\n throw new Exception();\r\n }\r\n // Read Method name\r\n Method = Command.get(2).toString();\r\n if (Method.equals(\"?\")) {\r\n System.out.println(printImplmentingClasses(BaseEntryRanker.class, false));\r\n return;\r\n }\r\n // Get method options\r\n Options = Command.subList(3, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set objective <max|min> <method> [<method options..>]\");\r\n }\r\n // Make the ranker, attach it\r\n BaseEntryRanker objFun = (BaseEntryRanker) instantiateClass(\"optimization.rankers.\" + Method, Options);\r\n objFun.setUseMeasured(true);\r\n objFun.setMaximizeFunction(toMaximize);\r\n setObjectiveFunction(objFun);\r\n System.out.println(\"\\tDefined objective function to be a \" + Method);\r\n }\r\n break;\r\n case \"gensize\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set gensize <#>\");\r\n }\r\n setEntriesPerGeneration(value);\r\n System.out.println(\"\\tSet number of entries per generation to \" + value);\r\n }\r\n break;\r\n case \"initial\": {\r\n // Usage: set intial $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set initial $<dataset>\");\r\n }\r\n setInitialData(Data);\r\n System.out.println(\"\\tDefined an intial population of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"search\": {\r\n // Usage: set search $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set search $<dataset>\");\r\n }\r\n setSearchSpace(Data);\r\n System.out.println(\"\\tDefined a search space of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"oracle\": {\r\n // Usage: set oracle <method> [<options...>]\r\n String Method;\r\n List<Object> Options;\r\n try {\r\n Method = Command.get(1).toString();\r\n if (Method.contains(\"?\")) {\r\n System.out.println(\"Available Oracles:\");\r\n System.out.println(CommandHandler.printImplmentingClasses(BaseOracle.class, false));\r\n }\r\n Options = Command.subList(2, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set oracle <method> [<options...>]\");\r\n }\r\n BaseOracle NewOracle = (BaseOracle) CommandHandler.instantiateClass(\"optimization.oracles.\" + Method, Options);\r\n setOracle(NewOracle);\r\n System.out.println(\"\\tSet algorithm to use a \" + Method);\r\n }\r\n break;\r\n case \"maxiter\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set maxiter <#>\");\r\n }\r\n setMaxIterations(value);\r\n System.out.println(\"\\tSet maximum number of iterations to \" + value);\r\n }\r\n break;\r\n default:\r\n throw new Exception(\"Setting not recognized: \" + Component);\r\n }\r\n }",
"protected VmCommand(Guid commandId) {\n super(commandId);\n }",
"public void init( String command, Map<String, Object> commandArgs, BindContext ctx, Set<Property> notifys, final Component target ) {\r\n super.init( target );\r\n this.commandArgs = commandArgs;\r\n this.command = command;\r\n this.notifys = notifys;\r\n this.ctx = ctx;\r\n }",
"private CommandWord(String commandString)\n {\n this.commandString = commandString;\n }",
"public SetEnvCommand() {\n }",
"public CommandManager(String path) {\n\n myParser = new TextParser(path);\n myTracker = new VariableTracker();\n preloadCommands();\n\n }",
"public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}",
"@Test\n public void testConstructor() {\n interpreterInstance.interpret(\"cd \");\n Command testCommand = interpreterInstance.getCommand();\n List<String> testArguments = interpreterInstance.getArguments();\n assertEquals(\"driver.ChangeDirectory\", testCommand.getClass().getName());\n assertTrue(testArguments.isEmpty());\n }",
"public Command (int id, String name) {\n if (commands[id] != null) {\n\n } else {\n commands[id] = this;\n this.name = name;\n System.out.println(\"[Command Initialization] Command \" + name + \" successfully initialized with id \"\n + id + \" and allowable arguments:\" /*allowable args will be printed here.*/);\n }\n }",
"private CommandBrocker() {}",
"public CommandMAN(String[] arguments) {\n super(arguments);\n }",
"public RedoCommand() {\n }",
"public HydraMenu(final CommandSet useCommands) {\n\t\tsuper();\n\t\tthis.commands = useCommands;\n\t\tthis.initialize();\n\t}",
"public FrameworkCommand(String input, ObjectType init) \n {\n commandString = input.toUpperCase();\n initiator = init;\n\n // todo: verb as first word?\n \n /* This is a crummy timestamp.. We'll hope to do better in subclasses \n using scheduler instances. */\n lTimestamp = System.currentTimeMillis() * 1000;\n }",
"public ListCommand() {\n super();\n }",
"public TodoCommand(String userInputCommand) {\n this.userInputCommand = userInputCommand;\n }",
"public RedditCommand() {\n\t\tsuper();\n\t}",
"public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}",
"public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}",
"private CommandLine() {\n\t}",
"protected void setCommand(String command)\n {\n Command = command;\n }",
"public Cli (BufferedReader in,PrintWriter out , Controller thecontroller) {\r\n\t\tsuper(thecontroller);\r\n\t\tthis.in=in;\r\n\t\tthis.out=out;\r\n\t\tthis.commandsSet= controller.getCommandSet();\r\n\t}",
"public MailCommand() {\n this(\"\");\n }",
"private CommandFactory( ThreadGroup mainThreadGroup ) {\n this.mainThreadGroup = mainThreadGroup;\n \n map = new HashMap<String, String>();\n\n map.put( \"LS\", \"org.ajstark.LinuxShell.Command.LsCommand\" );\n map.put( \"GREP\", \"org.ajstark.LinuxShell.Command.GrepCommand\" );\n map.put( \"PWD\", \"org.ajstark.LinuxShell.Command.PwdCommand\" );\n map.put( \"CD\", \"org.ajstark.LinuxShell.Command.CdCommand\" );\n map.put( \"ENV_VAR\", \"org.ajstark.LinuxShell.Command.SetEnvVarCommand\" );\n map.put( \"ENV\", \"org.ajstark.LinuxShell.Command.EnvCommand\" );\n map.put( \"HISTORY\", \"org.ajstark.LinuxShell.Command.HistoryCommand\" );\n }",
"public CallSet() {}",
"private Set() {\n this(\"<Set>\", null, null);\n }",
"public void parseCommand(ActionSet actionset, String command)\n\t\t\tthrows ParseException\n\t{\n\n\t\t_actionset = actionset;\n\t\t_command = command;\n\n\t\tString[] syntax = command.split(\" \");\n\n\t\tfor (String s : syntax)\n\t\t{\n\t\t\ts.trim(); // clean up extra whitespaces\n\t\t}// end loop\n\n\t\tString firstCommand = syntax[0].toUpperCase();\n\t\tString secCommand = syntax[1].toUpperCase();\n\n\t\tswitch (firstCommand)\n\t\t{\n\t\tcase \"DEFINE\":\n\t\t\tswitch (secCommand)\n\t\t\t{\n\t\t\tcase \"TRAP\":\n\t\t\t\tdefineTrap(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"CATAPULT\":\n\t\t\t\tdefineCatapult(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"OLS_XMT\":\n\t\t\t\tdefineXMT(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"OLS_RCV\":\n\t\t\t\tdefineRCV(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"CARRIER\":\n\t\t\t\tdefineCarrier(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"FIGHTER\":\n\t\t\t\tdefineFighter(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"TANKER\":\n\t\t\t\tdefineTanker(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"BOOM\":\n\t\t\t\tString thirdCommand = syntax[2].toUpperCase();\n\t\t\t\tswitch (thirdCommand)\n\t\t\t\t{\n\t\t\t\tcase \"MALE\":\n\t\t\t\t\tdefineBoomMale(syntax);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"FEMALE\":\n\t\t\t\t\tdefineBoomFemale(syntax);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t\t\t}// end switch\n\t\t\tcase \"TAILHOOK\":\n\t\t\t\tdefineTailhook(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"BARRIER\":\n\t\t\t\tdefineBarrier(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"AUX_TANK\":\n\t\t\t\tdefineAuxTank(syntax);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t\t}// end switch\n\t\tcase \"UNDEFINE\":\n\t\t\tundefine(syntax);\n\t\t\tbreak;\n\t\tcase \"SHOW\":\n\t\t\tshowTemplates(syntax);\n\t\t\tbreak;\n\t\tcase \"LIST\":\n\t\t\tlistTemplates();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t}\n\n\t}",
"public FrameworkCommand(String input, String _verb, ObjectType init) \n {\n this(input, init);\n setVerb(_verb);\n }",
"protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatenate strings\n\t\tin the while belowe: looks like null!Command nullArgument1 ...*/\n\t\t//for(int i = 0; i < this.numberOfTokens; i++) this.tokens[i] = \"\";\n\t\t\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tcurrentToken = st.nextToken();\n\t\t\t//System.out.println(\"token\"+tokenNumber+\": \"+currentToken);\n\t\t\t\n\t\t\tthis.tokens[tokenNumber] = currentToken;\n\t\t\tif(tokenNumber>1)\n\t\t\t\tmiscParam += \" \"+currentToken;\n\t\t\tif(tokenNumber>0 && !currentToken.startsWith(\"$\")) \n\t\t\t\tallParam += \" \"+currentToken;\n\t\t\t\n\t\t\ttokenNumber++;\n\t\t}\n\t\t/*this is just for remove the first <space> from the second param of the command*/\n\t\t//if(this.hasAllParam()) this.tokens[2] = this.tokens[2].substring(1);\n\t}",
"@Override\n public Command build() {\n switch (CommandType.fromString(commandName.getEscapedAndStrippedValue())) {\n case ASSIGN:\n return new AssignmentCommand(commandArgs);\n case CAT:\n return new CatCommand(commandArgs);\n case ECHO:\n return new EchoCommand(commandArgs);\n case WC:\n return new WcCommand(commandArgs);\n case PWD:\n return new PwdCommand(commandArgs);\n case GREP:\n return new GrepCommand(commandArgs);\n case EXIT:\n return new ExitCommand(commandArgs);\n default:\n return new OtherCommand(commandName, commandArgs);\n }\n }",
"public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }",
"public GetMotorPositionCommand ()\r\n {\r\n }",
"Command(String c, String id) {\n commandWord = c;\n pageId = id;\n\n pageValue = -1;\n }",
"public DefaultCommand(com.netflix.hystrix.HystrixCommand.Setter setter) {\n\t\tsuper(setter);\n\t}",
"public CommandsFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"protected Commands (MyStringBuilder obj) {\n\t\t_objMyStringBuilder = obj;\n\t\t_size = obj.size();\n\t\t\n\t\t\n}",
"public GenericCommand(String name, String service, String interaction) {\n\t\tmyName = name;\n\t\tmyService = service;\n\t\tmyInteraction = interaction;\n\t\t\n\t\tparams = new LinkedList();\n\t}",
"public void setCommand(String command) {\n this.command = command;\n }",
"private CommandMapper() {\n }",
"public Command() {\n this.executed = false;\n }",
"public DrawCommand() {\n\t\tcommand = null;\n\t\targs1 = null;\n\t\targs2 = null;\n\t}",
"public SystemCommandRequest()\r\n\t{\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}",
"public MSCCommander(String CLIServer, String CLIUser, String LocalUser) {\n\n hostname = CLIServer;\n username = CLIUser;\n localUsername = LocalUser;\n execMode = remoteMode;\n rexec = new Rsh(hostname,username,localUsername,null,false);\n }",
"public Command(byte[] data, long timestamp, int sid, int size) throws IOException {\n this.timestamp = timestamp;\n this.sid = sid;\n this.setSize(size);\n DataInputStream in = new DataInputStream(new ByteArrayInputStream(data));\n int magic = in.readUnsignedByte();\n if (magic != TTMAGICNUM) throw new IOException(\"Wrong magic header.\");\n command = in.readUnsignedByte();\n switch (command) {\n case TTCMDMISC:\n parseCommandMisc(in);\n break;\n case TTCMDPUT:\n name = \"put\";\n parseCommandPut(in);\n break;\n case TTCMDPUTKEEP:\n name = \"putkeep\";\n parseCommandPut(in);\n break;\n default:\n if (LOG.isDebugEnabled()) LOG.debug(\"constructor: Found unhandled command -> 0x\" + Integer.toHexString(command));\n break;\n }\n in.close();\n in = null;\n }",
"public AddCommand(Task task){\r\n this.task = task;\r\n }",
"public Parser(String[] userInput) {\n this.command = userInput[0];\n if (userInput.length > 1) {\n this.description = userInput[1];\n }\n }",
"public Commands(final Main main) {\r\n this.main = main;\r\n main.getCommand(\"fly\").setExecutor(this);\r\n }",
"public Command(Paint paint) {\n\t\tcmdPaint = new Paint(paint);\n\t\tcmdPath = null;\n\t\tcmdPoint = null;\n\t}",
"public CommandLineBuilder()\n {\n m_commandLine = new String[0];\n }",
"public CommandFactory() {\n command = new HashMap<>();\n command.put(\"GET/login\", new EmptyCommand());\n command.put(\"POST/login\", new LoginCommand());\n command.put(\"GET/admin\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/user\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/profile\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"POST/ban\", new BanUserCommand());\n command.put(\"POST/changelang\", new ChangeLanguageCommand());\n command.put(\"POST/unban\", new UnbanUserCommand());\n command.put(\"POST/add\", new AddPublicationCommand());\n command.put(\"POST/delete\", new DeletePublicationCommand());\n command.put(\"GET/main\", new ForwardToMainCommand());\n command.put(\"GET/controller/error\", new ForwardToErrorCommand());\n command.put(\"GET/logout\", new LogoutCommand());\n command.put(\"POST/subscribe\", new SubscribeCommand());\n command.put(\"POST/unsubscribe\", new UnsubscribeCommand());\n command.put(\"POST/changename\", new ChangeNameCommand());\n command.put(\"POST/changepassword\", new ChangePasswordCommand());\n command.put(\"POST/adminchangename\", new SetUserNameCommand());\n command.put(\"POST/changebalance\", new SetUserBalanceCommand());\n command.put(\"POST/changepublicationprice\", new SetPublicationPriceCommand());\n command.put(\"POST/changepublicationname\", new SetPublicationNameCommand());\n command.put(\"POST/changepublicationtype\", new SetPublicationTypeCommand());\n command.put(\"GET/admin/publications\", new ForwardToProfileCommand(Pages.PUBLICATIONS_PATH, Pages.USER_PATH));\n command.put(\"GET/user/payments\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.PAYMENTS_PATH));\n command.put(\"GET/admin/users\", new ForwardToProfileCommand(Pages.USERS_PATH, Pages.USERS_PATH));\n command.put(\"POST/login/restore\", new RestorePasswordCommand());\n\n }",
"CommandHandler() {\n registerArgument(new ChallengeCmd());\n registerArgument(new CreateCmd());\n }",
"public CommandDictionary() {\n // Add Commands\n commandDict.add(new Pair<>(\"add stock\", \"<StockType> <StockCode> <Quantity> <Description> \"\n + \"[Optional: -m <Minimum quantity>]\"));\n commandDict.add(new Pair<>(\"add stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"add person\", \"<MatricNo> <Name>\"));\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode>, <Quantity>}\"));\n\n // Delete Commands\n commandDict.add(new Pair<>(\"delete stock\", \"<StockCode>\"));\n commandDict.add(new Pair<>(\"delete stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"delete person\", \"<MatricNo>\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n\n // Edit Commands\n commandDict.add(new Pair<>(\"edit stock\", \"<StockCode> <Property> <NewValue>\"));\n commandDict.add(new Pair<>(\"edit stocktype\", \"<StockType> <NewStockType>\"));\n commandDict.add(new Pair<>(\"edit person\", \"<MatricNo> <Property> <NewValue>\"));\n\n // List Commands\n commandDict.add(new Pair<>(\"list stock\", null));\n commandDict.add(new Pair<>(\"list stocktype\", \"all\"));\n commandDict.add(new Pair<>(\"list stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"list loan\", null));\n commandDict.add(new Pair<>(\"list template\", null));\n commandDict.add(new Pair<>(\"list template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"list lost\", null));\n commandDict.add(new Pair<>(\"list person\", null));\n commandDict.add(new Pair<>(\"list person\", \"<MatricNo>\"));\n\n // List Minimum Commands\n commandDict.add(new Pair<>(\"list minimum\", null));\n commandDict.add(new Pair<>(\"list shopping\", null));\n\n // Loan Commands\n commandDict.add(new Pair<>(\"add loan\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan return\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan returnall\", \"<MatricNo>\"));\n\n // Template Commands\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode> <Quantity>}\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"add loan\", \"<Template Name>\"));\n\n // Find Commands\n commandDict.add(new Pair<>(\"find description\", \"<Query>\"));\n\n // Other Commands\n commandDict.add(new Pair<>(\"undo\", null));\n commandDict.add(new Pair<>(\"redo\", null));\n commandDict.add(new Pair<>(\"bye\", null));\n }",
"public void setCommand(String command)\n {\n this.command = command;\n }",
"public SetSet() {\n\t}",
"public DefaultNashRequestImpl(String command, String workingDirectory, Properties environment, String...arguments) {\n\t\tthis.command = command;\n\t\tthis.workingDirectory = workingDirectory;\n\t\tthis.environment.putAll(environment);\n\t\tfor(String arg: arguments) {\n\t\t\tif(arg!=null && !arg.isEmpty()) {\n\t\t\t\tthis.arguments.add(arg);\n\t\t\t}\n\t\t}\n\t}",
"private static Object command(String userCommandLine[]) {\n\t\tint size = userCommandLine.length;\n\n\t\tswitch(userCommandLine[0].trim().toUpperCase()) {\n\n\t\t/*\n\t\t * INFORMATION\n\t\t *\n\t\t * Add executecommand on each case\n\t\t * but if it dosn't yet implemented\n\t\t * comment the command allow to user\n\t\t * on the variable string[] commands\n\t\t *\n\t\t */\n\t\t\n\t\t/* ************************************\n\t\t * standard commands\n\t\t *************************************/\n\t\tcase \"QUIT\": return ExecuteCommand.exit();\n\t\tcase \"EXIT\": return ExecuteCommand.exit();\n\t\tcase \"HELP\": help( (size > 1) ? userCommandLine[1].trim() : \"\"); break;\n\t\tcase \"VAR\": ExecuteCommand.showVar(); break;\n\t\tcase \"DEL\" : ExecuteCommand.delVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"RENAME\": ExecuteCommand.renameVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"STARTSPARK\": ExecuteCommand.startSpark(); break;\n\t\tcase \"STOPSPARK\": ExecuteCommand.stopSpark(); break;\n\t\t\n\t\t/* ************************************\n\t\t * database\n\t\t *************************************/ \n\t\t\n\t\t/* open database(name: String, filesystem: FileSystem, conf: Config) */\n\t\tcase \"OPEN\" : ExecuteCommand.openDB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* close database */\n\t\tcase \"CLOSE\" : ExecuteCommand.closeDB(); break;\n\t\t/* restart database */\n\t\tcase \"RESTART\" : ExecuteCommand.restartDB(); break;\n\t\t/* show list of TimeSeries */\n\t\tcase \"SHOW\" : ExecuteCommand.showTS(); break;\n\t\t/* drop a timeSeries */\n\t\tcase \"DROP\" : ExecuteCommand.dropTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* exist a timeSeries with name ... */\n\t\tcase \"EXIST\" : ExecuteCommand.existTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get a timeSeries */\n\t\tcase \"GET\" : ExecuteCommand.getTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* create a timeSeries */\n\t\tcase \"CREATE\" : ExecuteCommand.createTS2DB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Time Series\n\t\t *************************************/\n\t\t\n\t\t/* create the timeSerie schema */\n\t\tcase \"CREATE_SCHEMA\" : ExecuteCommand.createSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* show the schema of the timeSerie */\n\t\tcase \"SHOW_SCHEMA\" : ExecuteCommand.showSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get the schema of the timeSerie*/\n\t\tcase \"GET_SCHEMA\" : ExecuteCommand.getSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* insert data at a certain file */\n\t\tcase \"INSERT\" : ExecuteCommand.insertDataFromFile(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* select timeSerie Range from timeStart to timeEnd */\n\t\tcase \"SELECT_RANGE\": break;\n\t\t/* select a column of a timeserie */\n\t\tcase \"SELECT\": ExecuteCommand.selectColumn(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find max value of timeSerie */\n\t\tcase \"MAX_VALUE\" : ExecuteCommand.maxValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find min value of timeSerie */\n\t\tcase \"MIN_VALUE\" : ExecuteCommand.minValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* print first five values */\n\t\tcase \"PRINT\" : ExecuteCommand.printHead(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Transformations\n\t\t *************************************/\n\t\t\n\t\t/* power transformation of timeSerie: square root */\n\t\tcase \"SQRT_TRANSFORM\" : break;\n\t\t/* power transformation of timeSerie: logarithm */\n\t\tcase \"LOG_TRANSFORM\" : break;\n\t\t/* average of timeSerie */\n\t\tcase \"MEAN\" : break;\n\t\t/* shifting timeSerie with coefficient */\n\t\tcase \"SHIFT\" : break;\n\t\t/* scaling timeSerie with coefficient */\n\t\tcase \"SCALE\" : break;\n\t\t/* standard deviation of timeSeries */\n\t\tcase \"STD_DEVIATION\" : break;\n\t\t/* normalize the TimeSerie */\n\t\tcase \"NORMALIZE\" : break;\n\t\t/* search the first time occurs */\n\t\tcase \"SEARCH\" : break;\n\t\t/* moving average */\n\t\tcase \"MOVING_AVERAGE\" : break;\n\t\t/* DFT of timeSerie */\n\t\tcase \"DFT\" : break;\n\t\t/* DTW of 2 timeSerie (similarity between two timeseries) */\n\t\tcase \"DTW\" : break;\n\t\t\n\t\t/* ************************************\n\t\t * Compression \n\t\t *************************************/\n\n\t\t/* compress a timeserie */\n\t\tcase \"COMPRESSION\" : ExecuteCommand.compression(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* decompress a timeserie */\n\t\tcase \"DECOMPRESSION\" : break;\n\n\t\t/* ************************************\n\t\t * indexing \n\t\t *************************************/\n\t\t\n\t\t/* create index for many ts */\n\t\tcase \"CREATE_INDEX\" : ExecuteCommand.createIndex(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* return neighbors of a ts from the create index */\n\t\tcase \"NEIGHBORS\" : break;\n\t\t/* ************************************\n\t\t * clustering \n\t\t *************************************/\n\t\t\n\t\t/* ************************************\n\t\t * Application \n\t\t *************************************/\n\t\tcase \"CREATE_DNA\" : break;\n\t\tcase \"DNA_SIMILARITY\" : ExecuteCommand.dnApplication(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\t\t\n\t\tdefault: System.out.println(\"oups it may have a code error\");\n\t\t}\n\n\t\treturn true;\n\t}",
"Command createCommand();",
"public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}",
"public OpenMidiMusicBank(ArrayList<String> creationcommands)\n\t{\n\t\t// Initializes attributes\n\t\tthis.commands = creationcommands;\n\t}",
"SetCommand getSetl();",
"public PrintCommand(int line, String command, boolean isString) {\n\t\tsuper(line, command);\n\t\tthis.isString = isString;\n\t}",
"@Override\n public ExplainCommand fromMap(Map<String, Object> m) {\n super.fromMap(m);\n setCommand((Map<String, Object>) m.get(getCommandName()));\n return this;\n }",
"@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}",
"public DeviceDataRequestCommand()\n {\n }",
"private Visitor createCommand(String[][] cmdTokens)\n {\n Visitor cmd = null;\n\n try {\n String cmdName = Character.toUpperCase(cmdTokens[0][Helpers.CMD].charAt(0)) + cmdTokens[Helpers.CMD][0].substring(1);\n Class<?> aClass = Class.forName(Visitor.class.getPackage().getName() + '.' + cmdName);\n Constructor<?> ctor = aClass.getConstructor(String[].class, User.class, String[].class);\n cmd = (Visitor) ctor.newInstance(cmdTokens[ARGS], currentUser, cmdTokens[FS_ELEMENTS]);\n } catch (Exception ignored) {\n System.out.println(cmdTokens[0][Helpers.CMD] + \": command not found\");\n } finally {\n System.out.println(); // print out a new line after the command runs (or errors)\n }\n\n return cmd;\n }",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}",
"public void initCmds() {\n cmd.put(\"hist\",(i) -> histRPN(i));\n cmd.put(\"pile\",(i) -> pile(i));\n cmd.put(\"!\",(c) -> store(c));\n cmd.put(\"?\",(c) -> getVal(c));\n\n }",
"public void setCommand(String command) {\n _command = command;\n }",
"public AbstractTtcsCommandController() {\n\t}",
"protected CommandDispatcher()\n {\n // do nothing\n }"
] | [
"0.65065956",
"0.64485705",
"0.64401233",
"0.63938826",
"0.6362856",
"0.6357402",
"0.63230056",
"0.6312683",
"0.6304613",
"0.6303943",
"0.6299983",
"0.62354916",
"0.62327814",
"0.62160325",
"0.6191959",
"0.6151853",
"0.6143268",
"0.61246586",
"0.6110096",
"0.6105112",
"0.60903907",
"0.60567915",
"0.6039214",
"0.6027515",
"0.6012918",
"0.5972744",
"0.59643817",
"0.59378076",
"0.59346575",
"0.5933505",
"0.5932676",
"0.59041893",
"0.5889815",
"0.5878465",
"0.58765686",
"0.5855624",
"0.5854894",
"0.5850337",
"0.5814499",
"0.5797009",
"0.5788838",
"0.57797414",
"0.5779307",
"0.5775848",
"0.5771333",
"0.57703894",
"0.57586867",
"0.57465476",
"0.57449114",
"0.57436055",
"0.5736281",
"0.5720629",
"0.5720572",
"0.57089394",
"0.570011",
"0.5666023",
"0.5665169",
"0.56508386",
"0.5649462",
"0.5648452",
"0.56403655",
"0.56357664",
"0.56329566",
"0.5630443",
"0.5628262",
"0.56264484",
"0.56247157",
"0.56239545",
"0.5620492",
"0.5619587",
"0.56008804",
"0.5592901",
"0.5586922",
"0.5582553",
"0.5556995",
"0.5553234",
"0.5540287",
"0.55391514",
"0.5536153",
"0.55334157",
"0.55286056",
"0.5524227",
"0.5520718",
"0.55144316",
"0.55123",
"0.5481221",
"0.54808605",
"0.5474806",
"0.54518014",
"0.54496473",
"0.54442793",
"0.544263",
"0.5440921",
"0.54406345",
"0.5439413",
"0.5439413",
"0.5438061",
"0.5437779",
"0.5431101",
"0.5429665",
"0.54291564"
] | 0.0 | -1 |
Intializes the frame and all of the sub components. | private void initialize() {
this.setExtendedState(Frame.MAXIMIZED_BOTH);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(true);
this.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();
this.getContentPane().setLayout(new BorderLayout());
// Initialize SubComponents and GUI Commands
this.initializeSplitPane();
this.initializeExplorer();
this.initializeConsole();
this.initializeMenuBar();
this.pack();
this.hydraExplorer.refreshExplorer();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}",
"public void buildFrame();",
"public Frame7() {\n initComponents();\n // System.out.println(\"numf7: \"+attributes);\n }",
"final void parse_frame() {\n // Convert Bytes read to int\n for (k = 0,b=0; k < framesize; k += 4) {\n b0 = frame_bytes[k];\n if (k + 3 < framesize) {\n b3 = frame_bytes[k + 3];\n b2 = frame_bytes[k + 2];\n b1 = frame_bytes[k + 1];\n } else if (k + 2 < framesize) {\n b3 = 0;\n b2 = frame_bytes[k + 2];\n b1 = frame_bytes[k + 1];\n } else if (k + 1 < framesize) {\n b2 = b3 = 0;\n b1 = frame_bytes[k + 1];\n }\n // 4 bytes are stored in a int array\n framebuffer[b++] = ((b0 << 24) & 0xFF000000) | ((b1 << 16) & 0x00FF0000) | ((b2 << 8) & 0x0000FF00) | (b3 & 0x000000FF);\n }\n \n wordpointer = bitindex = 0;\n }",
"public void updateFromDeserialization() {\n\t\tif (inSerializedState) {\n\t\t\tframes = new KeyFrames();\n\t\t\tfor(Integer key : pixelsMap.keySet()) {\n\t\t\t\tint[][] pixels = pixelsMap.get(key);\n\t\t\t\tDrawFrame image = new DrawFrame(serializedWidth, serializedHeight);\n\t\t\t\tfor(int r = 0; r < serializedHeight; r++) {\n\t\t\t\t\tfor (int c = 0; c < serializedWidth; c++) {\n\t\t\t\t\t\timage.setRGB(c, r, pixels[r][c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t WritableRaster raster = (WritableRaster) image.getData();\n\t\t raster.setPixels(0,0, serializedWidth, serializedHeight, pixels);\n\t\t image.setData(raster);\n\t\t */\n\t\t\t\tframes.put(key, image);\n\t\t\t}\n\t\t\tinitializeTransientUIComponents();\n\t\t\tinSerializedState = false;\t\n\t\t}\n\t}",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public BreukFrame() {\n super();\n initialize();\n }",
"public FrameDesign() {\n initComponents();\n }",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"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 MainFrame() {\n initComponents();\n \n }",
"public Mainframe() {\n initComponents();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public FrameControl() {\n initComponents();\n }",
"public frame() {\r\n\t\tframeOwner = 0;\r\n\t\tassignedProcess = 0;\r\n\t\tpageNumber = 0;\r\n\t}",
"public frame5() {\n initComponents();\n }",
"public Frame1() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }",
"public void initializeWindow(boolean deserialized) {\r\n game.getStage().hide();\r\n\r\n buttonCodes.clear();\r\n\r\n VBox root = new VBox();\r\n // -10 to removeFromField weird length and width excess\r\n scene = new Scene(root, FIELD_WIDTH - 10, HEADER_HEIGHT + FIELD_HEIGHT - 10);\r\n game.getStage().setScene(scene);\r\n\r\n Canvas headerCanvas = new Canvas(FIELD_WIDTH, HEADER_HEIGHT);\r\n headerContext = headerCanvas.getGraphicsContext2D();\r\n root.getChildren().add(headerCanvas);\r\n\r\n Font font = new Font(\"Verdana\", HEADER_HEIGHT * 0.7);\r\n headerContext.setFont(font);\r\n headerContext.setStroke(Color.WHITE);\r\n\r\n Canvas fieldCanvas = new Canvas(FIELD_WIDTH, FIELD_HEIGHT);\r\n fieldContext = fieldCanvas.getGraphicsContext2D();\r\n root.getChildren().add(fieldCanvas);\r\n\r\n // TODO: move somewhere\r\n fieldContext.setFont(new Font(\"Verdana\", fontSize));\r\n fieldContext.setStroke(Color.RED);\r\n fieldContext.setFill(Color.BLACK);\r\n\r\n if (!deserialized) {\r\n loadFieldObjects();\r\n loadHeaderObjects();\r\n }\r\n setHandlers();\r\n }",
"public mainframe() {\n initComponents();\n }",
"public PropertiesFrame(FrameController fc) {\n this.fc = fc;\n objects = new ArrayList<IDataObject>();\n \n initComponents();\n reset();\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"public addStFrame() {\n initComponents();\n }",
"private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }",
"public FrameOpcoesAgenda() {\n initComponents();\n }",
"private void initComponents() {\r\n\r\n lbBurro = new javax.swing.JLabel();\r\n canvas1 = new java.awt.Canvas();\r\n canvas2 = new java.awt.Canvas();\r\n jInternalFrame2 = new javax.swing.JInternalFrame();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Mostra = new javax.swing.JTextPane();\r\n jInternalFrame1 = new javax.swing.JInternalFrame();\r\n jButton5 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n cbMidi = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n jButton3 = new javax.swing.JButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n JtmInicial = new javax.swing.JTextField();\r\n jtmFinal = new javax.swing.JTextField();\r\n jButton9 = new javax.swing.JButton();\r\n jpAngulo = new javax.swing.JProgressBar();\r\n jpDistancia = new javax.swing.JProgressBar();\r\n jpVelocidade = new javax.swing.JProgressBar();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jInternalFrame3 = new javax.swing.JInternalFrame();\r\n jLabel3 = new javax.swing.JLabel();\r\n edTempo = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n edPos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n edId = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n edDis = new javax.swing.JTextField();\r\n edVel = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n edMTempo = new javax.swing.JTextField();\r\n edMTempo2 = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n edPtGoogle = new javax.swing.JTextField();\r\n jInternalFrame4 = new javax.swing.JInternalFrame();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSlider1 = new javax.swing.JSlider();\r\n CbMapa = new javax.swing.JCheckBox();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jPanel1 = new javax.swing.JPanel();\r\n GPSGoogle = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem1 = new javax.swing.JMenuItem();\r\n jMenuItem2 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenu3 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"HAPAX - GPSMIDI Conectado ao Servidor ***\");\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setFocusTraversalPolicyProvider(true);\r\n setFocusable(false);\r\n setForeground(java.awt.Color.white);\r\n\r\n lbBurro.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n lbBurro.setForeground(new java.awt.Color(255, 0, 51));\r\n lbBurro.setText(\"HAPAX GPS MIDI Client - Gerador de Eventos MIDI - GPS\");\r\n\r\n canvas1.setBackground(new java.awt.Color(255, 255, 51));\r\n canvas1.setForeground(java.awt.Color.black);\r\n canvas1.setVisible(false);\r\n\r\n jInternalFrame2.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame2.setTitle(\"Server\");\r\n jInternalFrame2.setMinimumSize(new java.awt.Dimension(86, 35));\r\n jInternalFrame2.setOpaque(true);\r\n jInternalFrame2.setRequestFocusEnabled(false);\r\n jInternalFrame2.setVisible(true);\r\n\r\n Mostra.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n Mostra.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n Mostra.setFocusCycleRoot(false);\r\n Mostra.setRequestFocusEnabled(false);\r\n jScrollPane1.setViewportView(Mostra);\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame2Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame2.getContentPane());\r\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\r\n jInternalFrame2Layout.setHorizontalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\r\n );\r\n jInternalFrame2Layout.setVerticalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\r\n );\r\n\r\n jInternalFrame1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\r\n jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame1.setIconifiable(true);\r\n jInternalFrame1.setResizable(true);\r\n jInternalFrame1.setTitle(\"MIDI\");\r\n jInternalFrame1.setLayer(1);\r\n jInternalFrame1.setVisible(true);\r\n jInternalFrame1.addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\r\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameOpened(evt);\r\n }\r\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameIconified(evt);\r\n }\r\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n });\r\n\r\n jButton5.setText(\"SC_A_80\");\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton5MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"SC_D_82\");\r\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton7MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"BC_V_83\");\r\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton8MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"SC_V_81\");\r\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton6MouseClicked(evt);\r\n }\r\n });\r\n\r\n cbMidi.setAutoscrolls(true);\r\n cbMidi.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n cbMidiItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\r\n jLabel4.setText(\" Dispositivo MIDI\");\r\n\r\n jButton3.setBackground(javax.swing.UIManager.getDefaults().getColor(\"InternalFrame.borderLight\"));\r\n jButton3.setText(\"TesteMIDI\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel1.setText(\"Inicial\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel10.setText(\"Final\");\r\n\r\n JtmInicial.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n JtmInicial.setText(\"80\");\r\n JtmInicial.setAutoscrolls(false);\r\n\r\n jtmFinal.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n jtmFinal.setText(\"83\");\r\n jtmFinal.setAutoscrolls(false);\r\n\r\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jButton9.setText(\"Set\");\r\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton9MouseClicked(evt);\r\n }\r\n });\r\n\r\n jpAngulo.setBackground(new java.awt.Color(255, 255, 255));\r\n jpAngulo.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpAngulo.setForeground(new java.awt.Color(153, 255, 0));\r\n jpAngulo.setMaximum(360);\r\n jpAngulo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpAngulo.setString(\"0 graus\");\r\n jpAngulo.setStringPainted(true);\r\n\r\n jpDistancia.setBackground(new java.awt.Color(255, 255, 255));\r\n jpDistancia.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpDistancia.setForeground(new java.awt.Color(0, 102, 255));\r\n jpDistancia.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpDistancia.setString(\"0 m\");\r\n jpDistancia.setStringPainted(true);\r\n\r\n jpVelocidade.setBackground(new java.awt.Color(255, 255, 255));\r\n jpVelocidade.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpVelocidade.setForeground(new java.awt.Color(255, 0, 51));\r\n jpVelocidade.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpVelocidade.setString(\"0 Km/h\");\r\n jpVelocidade.setStringPainted(true);\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel11.setText(\"A\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel12.setText(\"D\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel13.setText(\"V\");\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());\r\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\r\n jInternalFrame1Layout.setHorizontalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(17, 17, 17)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel1)\r\n .add(jLabel10))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jtmFinal)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton9))\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 208, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(27, 27, 27)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(91, 91, 91)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(jButton6)\r\n .add(jButton8)))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton7)\r\n .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 77, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(91, 91, 91)))))\r\n .add(18, 18, 18))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jInternalFrame1Layout.linkSize(new java.awt.Component[] {jButton5, jButton6, jButton7, jButton8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\r\n\r\n jInternalFrame1Layout.setVerticalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel4)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel10)\r\n .add(jtmFinal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(35, 35, 35)\r\n .add(jButton9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(35, 35, 35)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton5)\r\n .add(jButton6))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton7)\r\n .add(jButton8))\r\n .add(16, 16, 16)\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(18, 18, 18)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel11))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel12))\r\n .add(14, 14, 14)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel13))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jInternalFrame3.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame3.setIconifiable(true);\r\n jInternalFrame3.setResizable(true);\r\n jInternalFrame3.setTitle(\"Utilitys\");\r\n jInternalFrame3.setVisible(true);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel3.setText(\"Tempo\");\r\n\r\n edTempo.setText(\"1000\");\r\n edTempo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n edTempoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel5.setText(\"Pos\");\r\n\r\n edPos.setText(\"0\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel2.setText(\"ServerId\");\r\n\r\n edId.setText(\"l2.dat\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel7.setText(\"Vel. Max.\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel8.setText(\"Dis. Max.\");\r\n\r\n edDis.setText(\"5\");\r\n\r\n edVel.setText(\"3\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel6.setText(\"Tempo Msg\");\r\n\r\n edMTempo.setText(\"5000\");\r\n\r\n edMTempo2.setText(\"260\");\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel9.setText(\"Pts\");\r\n\r\n edPtGoogle.setText(\"60\");\r\n\r\n jInternalFrame4.setBackground(new java.awt.Color(255, 255, 153));\r\n jInternalFrame4.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(255, 204, 51)));\r\n jInternalFrame4.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame4.setIconifiable(true);\r\n jInternalFrame4.setResizable(true);\r\n jInternalFrame4.setTitle(\"Comandos\");\r\n jInternalFrame4.setVisible(true);\r\n\r\n jButton1.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/tn2.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton1.setBorder(new javax.swing.border.MatteBorder(null));\r\n jButton1.setDefaultCapable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/pause.JPG\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/stop.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jSlider1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"ToolBar.dockingForeground\"));\r\n jSlider1.setMaximum(20);\r\n jSlider1.setMinimum(5);\r\n jSlider1.setValue(14);\r\n\r\n CbMapa.setBackground(new java.awt.Color(255, 51, 51));\r\n CbMapa.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\r\n CbMapa.setForeground(new java.awt.Color(0, 51, 255));\r\n CbMapa.setText(\"Mapa\");\r\n CbMapa.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\r\n CbMapa.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n CbMapa.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n CbMapaMouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame4Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame4.getContentPane());\r\n jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);\r\n jInternalFrame4Layout.setHorizontalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jSlider1, 0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 64, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n jInternalFrame4Layout.setVerticalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame3Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame3.getContentPane());\r\n jInternalFrame3.getContentPane().setLayout(jInternalFrame3Layout);\r\n jInternalFrame3Layout.setHorizontalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jInternalFrame4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(26, 26, 26)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel5)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edId)))\r\n .add(58, 58, 58)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel7)\r\n .add(jLabel8)\r\n .add(jLabel6))\r\n .add(20, 20, 20)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, edDis)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame3Layout.createSequentialGroup()\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(45, Short.MAX_VALUE))\r\n );\r\n jInternalFrame3Layout.setVerticalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame4)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel6)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel7)\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel8)\r\n .add(edDis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(edId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel3)\r\n .add(jLabel5)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n GPSGoogle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n GPSGoogle.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://maps.google.com/staticmap?center=-21.7566133,-41.331430&zoom=15&size=600x500&key=ABQIAAAANfHaNxB2EEc7ZYvIOCXAohTCRf8s8QHhhExYFAkAHu8ZlJqlqRR7p2SmTf-HSf3XPv6G1SGPptN5QA\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n GPSGoogle.setVerticalAlignment(javax.swing.SwingConstants.TOP);\r\n GPSGoogle.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\r\n\r\n jMenuBar1.setOpaque(false);\r\n\r\n jMenu1.setText(\"Servidor\");\r\n\r\n jMenuItem1.setText(\"Start\");\r\n jMenu1.add(jMenuItem1);\r\n\r\n jMenuItem2.setText(\"Resume\");\r\n jMenu1.add(jMenuItem2);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"Exibir Janelas\");\r\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu2MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"Performace\");\r\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu3MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu3);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap(42, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 806, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(145, 145, 145)\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(10, 10, 10))\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(12, 12, 12)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(4292, 4292, 4292)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(515, 515, 515)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 598, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(3637, 3637, 3637))\r\n .add(layout.createSequentialGroup()\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(741, 741, 741)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 922, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(1368, 1368, 1368)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))\r\n .add(layout.createSequentialGroup()\r\n .add(98, 98, 98)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 583, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(9621, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(4, 4, 4)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .add(23, 23, 23)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 393, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(layout.createSequentialGroup()\r\n .add(355, 355, 355)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(25, 25, 25)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(20, 20, 20))\r\n .add(layout.createSequentialGroup()\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)))\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 447, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(14, 14, 14)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(8144, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"public FrameInsert() {\n initComponents();\n }",
"public BaseFrame() {\n initComponents();\n }",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"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 }",
"public FrameForm() {\n initComponents();\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public OrganizerFrame() {\n super(\"Органайзер\");\n init();\n }",
"StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"public AISDecoder() {\n initComponents();\n }",
"@Override\n\tpublic void serializeUI() {\n\t\t\n\t}",
"public updateFrame() {\n initComponents();\n }",
"public PilaFrame() {\n initComponents();\n }",
"public Scoreboard() { // constructor to initialize \n\t\tfor (int i = 1; i < 10; i++) { // adds the first 9 frames, hence the start from i = 1.\n\t\t\tframes.add(new Frame(this));\n\t\t}\n\t\tframes.add(new FinalFrame(this)); // 10th frame is added separately with its own properties. \n\t\t\n\t\tcurrent = frames.get(0); // current is the first added frame at 0th index. \n\t}",
"public MainFrame() {\n initComponents();\n\n\n }",
"public FinalFrame()\n\t{\n\t\tsuper.setFirstRoll(0); //uses superclass to set first and second roll, and type\n\t\tsuper.setSecondRoll(0);\n\t\tsuper.setType(\"\");\n\t\troll3 = 0; //sets default third roll\n\t}",
"public void initializeLayout(){\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 8);\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 3);\r\n\tsuper.addField(FIELDTYPE_PICX, 5);\r\n\tsuper.addField(FIELDTYPE_PICX, 18);\r\n\tsuper.addField(FIELDTYPE_PICX, 4);\r\n\tsuper.addField(FIELDTYPE_PICX, 110);\r\n\tsuper.addField(FIELDTYPE_PICX, 105);\r\n}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 743, 472);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel label = new JLabel(\"ID:\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setForeground(Color.BLACK);\n\t\tlabel.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel.setBounds(10, 87, 82, 36);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel lblStudentFee = new JLabel(\"Student Fee\");\n\t\tlblStudentFee.setForeground(Color.BLACK);\n\t\tlblStudentFee.setFont(new Font(\"Sitka Display\", Font.PLAIN, 36));\n\t\tlblStudentFee.setBounds(309, -24, 224, 96);\n\t\tframe.getContentPane().add(lblStudentFee);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"Father Name:\");\n\t\tlabel_4.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_4.setForeground(Color.BLACK);\n\t\tlabel_4.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_4.setBounds(328, 123, 135, 36);\n\t\tframe.getContentPane().add(label_4);\n\t\t\n\t\tJLabel label_6 = new JLabel(\"Email:\");\n\t\tlabel_6.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_6.setForeground(Color.BLACK);\n\t\tlabel_6.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_6.setBounds(30, 163, 62, 36);\n\t\tframe.getContentPane().add(label_6);\n\t\t\n\t\tJLabel label_7 = new JLabel(\"Admission Date:\");\n\t\tlabel_7.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_7.setForeground(Color.BLACK);\n\t\tlabel_7.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_7.setBounds(328, 83, 131, 36);\n\t\tframe.getContentPane().add(label_7);\n\t\t\n\t\tJLabel label_8 = new JLabel(\"Name:\");\n\t\tlabel_8.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_8.setForeground(Color.BLACK);\n\t\tlabel_8.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_8.setBounds(20, 123, 82, 36);\n\t\tframe.getContentPane().add(label_8);\n\t\t\n\t\tJLabel label_9 = new JLabel(\"CNIC:\");\n\t\tlabel_9.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_9.setForeground(Color.BLACK);\n\t\tlabel_9.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_9.setBounds(365, 163, 94, 36);\n\t\tframe.getContentPane().add(label_9);\n\t\t\n\t\tJLabel label_10 = new JLabel(\"Fees:\");\n\t\tlabel_10.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_10.setForeground(Color.BLACK);\n\t\tlabel_10.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_10.setBounds(20, 203, 72, 36);\n\t\tframe.getContentPane().add(label_10);\n\t\t\n\t\tJLabel label_11 = new JLabel(\"Roll No:\");\n\t\tlabel_11.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_11.setForeground(Color.BLACK);\n\t\tlabel_11.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlabel_11.setBounds(387, 203, 72, 36);\n\t\tframe.getContentPane().add(label_11);\n\t\t\n\t\tname = new JTextField();\n\t\tname.setEditable(false);\n\t\tname.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tname.setColumns(10);\n\t\tname.setBounds(108, 127, 216, 29);\n\t\tframe.getContentPane().add(name);\n\t\t\n\t\tadate = new JTextField();\n\t\tadate.setEditable(false);\n\t\tadate.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tadate.setColumns(10);\n\t\tadate.setBounds(475, 87, 216, 29);\n\t\tframe.getContentPane().add(adate);\n\t\t\n\t\tid = new JTextField();\n\t\tid.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tid.setColumns(10);\n\t\tid.setBounds(108, 87, 135, 29);\n\t\tframe.getContentPane().add(id);\n\t\t\n\t\tfname = new JTextField();\n\t\tfname.setEditable(false);\n\t\tfname.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tfname.setColumns(10);\n\t\tfname.setBounds(475, 127, 216, 29);\n\t\tframe.getContentPane().add(fname);\n\t\t\n\t\temail = new JTextField();\n\t\temail.setEditable(false);\n\t\temail.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\temail.setColumns(10);\n\t\temail.setBounds(108, 167, 216, 29);\n\t\tframe.getContentPane().add(email);\n\t\t\n\t\tfees = new JTextField();\n\t\tfees.setEditable(false);\n\t\tfees.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tfees.setColumns(10);\n\t\tfees.setBounds(108, 207, 216, 29);\n\t\tframe.getContentPane().add(fees);\n\t\t\n\t\tcnic = new JTextField();\n\t\tcnic.setEditable(false);\n\t\tcnic.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tcnic.setColumns(10);\n\t\tcnic.setBounds(475, 170, 216, 29);\n\t\tframe.getContentPane().add(cnic);\n\t\t\n\t\troll = new JTextField();\n\t\troll.setEditable(false);\n\t\troll.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\troll.setColumns(10);\n\t\troll.setBounds(475, 210, 216, 29);\n\t\tframe.getContentPane().add(roll);\n\t\t\n\t\tJButton button = new JButton(\"Search\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint Id=Integer.parseInt(id.getText());\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tString URL=\"jdbc:mysql://localhost/School\";\n\t\t\t\t\tConnection con=DriverManager.getConnection(URL,\"root\",\"\");\n\t\t\t\t\tStatement st=con.createStatement();\n\t\t\t\t\tResultSet ps=null;\n\t\t\t\t\trs=st.executeQuery(\"SELECT admissiondate,name,father,email,cnic,fees,rollno FROM student Where id=\"+Id+\"\");\n\t\t\t\t if(rs!=null)\n\t\t\t\t {\n\t\t\t\t \twhile(rs.next())\n\t\t\t\t \t{\n\t\t\t\t\t adate.setText(rs.getString(\"admissiondate\"));\n\t\t\t\t\t\t\tname.setText(rs.getString(\"name\"));\n\t\t\t\t\t\t\tfname.setText(rs.getString(\"father\"));\n\t\t\t\t\t\t\temail.setText(rs.getString(\"email\"));\n\t\t\t\t\t\t\tcnic.setText(rs.getString(\"cnic\"));\n\t\t\t\t\t\t\tfees.setText(rs.getString(\"fees\"));\n\t\t\t\t\t\t\troll.setText(rs.getString(\"rollno\"));\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\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbutton.setFont(new Font(\"Sitka Display\", Font.PLAIN, 17));\n\t\tbutton.setBounds(243, 87, 82, 29);\n\t\tframe.getContentPane().add(button);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint Fee=Integer.parseInt(fees.getText());\n\t\t\t\tint Id=Integer.parseInt(id.getText());\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tString URL=\"jdbc:mysql://localhost/School\";\n\t\t\t\t\tConnection con=DriverManager.getConnection(URL,\"root\",\"\");\n\t\t\t\t\tStatement st=con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\tst.executeUpdate(\"INSERT INTO fee(ID,Fee) Values('\"+Id+\"','\"+Fee+\"')\");\n\t\t\t\t\tJOptionPane.showConfirmDialog(null, \"Record Saved\");\n\t\t\t\t\tcon.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSave.setFont(new Font(\"Sitka Display\", Font.PLAIN, 17));\n\t\tbtnSave.setBounds(107, 358, 89, 50);\n\t\tframe.getContentPane().add(btnSave);\n\t\t\n\t\tJButton button_2 = new JButton(\"Clear\");\n\t\tbutton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbutton_2.setFont(new Font(\"Sitka Display\", Font.PLAIN, 17));\n\t\tbutton_2.setBounds(314, 358, 89, 50);\n\t\tframe.getContentPane().add(button_2);\n\t\t\n\t\tJButton button_3 = new JButton(\"Cancel\");\n\t\tbutton_3.setFont(new Font(\"Sitka Display\", Font.PLAIN, 17));\n\t\tbutton_3.setBounds(544, 358, 89, 50);\n\t\tframe.getContentPane().add(button_3);\n\t\t\n\t\tJLabel lblAmount = new JLabel(\"Amount:\");\n\t\tlblAmount.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblAmount.setForeground(Color.BLACK);\n\t\tlblAmount.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlblAmount.setBounds(20, 245, 72, 36);\n\t\tframe.getContentPane().add(lblAmount);\n\t\t\n\t\tamount = new JTextField();\n\t\tamount.addFocusListener(new FocusAdapter() {\n\t\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\t\tint Fee=Integer.parseInt(fees.getText());\n\t\t\t\tint Amount=Integer.parseInt(amount.getText());\n\t\t\t\t\n\t\t\t\tint GTotal=Amount-Fee;\n\t\t\t\tgtotal.setText(GTotal+\"\");\n\t\t\t}\n\t\t});\n\t\tamount.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tamount.setColumns(10);\n\t\tamount.setBounds(108, 249, 216, 29);\n\t\tframe.getContentPane().add(amount);\n\t\t\n\t\tJLabel lblGrandTotal = new JLabel(\"Grand Total:\");\n\t\tlblGrandTotal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblGrandTotal.setForeground(Color.BLACK);\n\t\tlblGrandTotal.setFont(new Font(\"Sitka Display\", Font.BOLD, 18));\n\t\tlblGrandTotal.setBounds(0, 287, 102, 36);\n\t\tframe.getContentPane().add(lblGrandTotal);\n\t\t\n\t\tgtotal = new JTextField();\n\t\tgtotal.setFont(new Font(\"Sitka Display\", Font.PLAIN, 15));\n\t\tgtotal.setColumns(10);\n\t\tgtotal.setBounds(108, 291, 216, 29);\n\t\tframe.getContentPane().add(gtotal);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"\");\n\t\tlabel_1.setIcon(new ImageIcon(StudentFee.class.getResource(\"/Images/StudentFee.jpg\")));\n\t\tlabel_1.setBounds(0, 0, 727, 433);\n\t\tframe.getContentPane().add(label_1);\n\t\tframe.getContentPane().setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{id, button, fees, amount, btnSave, label, lblStudentFee, label_4, label_6, label_7, label_8, label_9, label_10, label_11, name, adate, fname, email, cnic, roll, button_2, button_3, lblAmount, lblGrandTotal, gtotal}));\n\t}",
"private void initialize() {\r\n\t\ttheFrame = new JFrame();\r\n\t\ttheFrame.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDataHandler.save();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// The default setting is (100, 100, 450, 300)\r\n\t\ttheFrame.setBounds(100, 100, 900, 600);\r\n\t\t\r\n\t\t// Centers the frame on the screen\r\n\t\ttheFrame.setLocationRelativeTo(null);\r\n\t\ttheFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttheFrame.setTitle(\"adBase v0.1\");\r\n\r\n\t\ttry {\r\n\t\t\tDataHandler.load();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tmainPanel = new JPanel();\r\n\t\ttheFrame.getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n\t\tmainPanel.setLayout(new CardLayout(0, 0));\r\n\r\n\t\ttoolBar = new ToolBar(mainPanel, this);\r\n\t\ttheFrame.getContentPane().add(toolBar, BorderLayout.NORTH);\r\n\t\ttoolBar.update();\r\n\r\n\t\tpanelBusiness = new PanelBusiness(this);\r\n\t\tmainPanel.add(panelBusiness, \"Business\");\r\n\r\n\t\tpanelMonth = new PanelMonth();\r\n\t\tmainPanel.add(panelMonth, \"Month\");\r\n\r\n\t\tpanelNewBusiness = new PanelNewBusiness(this);\r\n\t\tmainPanel.add(panelNewBusiness, \"New Business\");\r\n\r\n\t\tpanelEditBusiness = new PanelEditBusiness(this);\r\n\t\tmainPanel.add(panelEditBusiness, \"Edit Business\");\r\n\t\t\r\n\t\tinitializeMenu();\r\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"public intrebarea() {\n initComponents();\n }",
"public void initializeInternalFrames(){\n this.championshipsInternalFrameControllerObject.initializeInternalFrameObjectComponents();\n \n // initialize components of competetorssInternalFrameObject\n this.competitorsInternalFrameControllerObject.initializeInternalFrameObjectComponents();\n \n this.reportInternalFrameControllerObject.initializeInternalFrameObjectComponents();\n \n this.setBackgroundColourToJInternalFrameObjects();\n this.removeUselessButtonFromJInternalFrameObjects();\n this.removeAbilityToMoveFromJInternalFrameObjects();\n }",
"public holdersframe() {\n initComponents();\n }",
"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 createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }",
"public MiFrame2() {\n initComponents();\n }",
"Frame2(){\n initComponants();//this is a method\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnEntriData = new javax.swing.JToggleButton();\n btnDoSerialization = new javax.swing.JToggleButton();\n btnDoDeserialization = new javax.swing.JToggleButton();\n jSplitPane1 = new javax.swing.JSplitPane();\n jScrollPane4 = new javax.swing.JScrollPane();\n areaSerialization = new javax.swing.JTextArea();\n jScrollPane3 = new javax.swing.JScrollPane();\n areaDeserialization = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n btnEntriData.setFont(new java.awt.Font(\"Tahoma\", 1, 8)); // NOI18N\n btnEntriData.setText(\"1.ENTRI DATA PRODUK\");\n btnEntriData.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEntriDataActionPerformed(evt);\n }\n });\n\n btnDoSerialization.setFont(new java.awt.Font(\"Tahoma\", 1, 8)); // NOI18N\n btnDoSerialization.setText(\"2.LAKUKAN SERIALIZATION\");\n btnDoSerialization.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDoSerializationActionPerformed(evt);\n }\n });\n\n btnDoDeserialization.setFont(new java.awt.Font(\"Tahoma\", 1, 8)); // NOI18N\n btnDoDeserialization.setText(\"3.LAKUKAN DESERIALIZATION\");\n btnDoDeserialization.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDoDeserializationActionPerformed(evt);\n }\n });\n\n jSplitPane1.setOneTouchExpandable(true);\n\n areaSerialization.setColumns(20);\n areaSerialization.setRows(5);\n areaSerialization.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Hasil Serialization\"));\n jScrollPane4.setViewportView(areaSerialization);\n\n jSplitPane1.setLeftComponent(jScrollPane4);\n\n areaDeserialization.setColumns(20);\n areaDeserialization.setRows(5);\n areaDeserialization.setWrapStyleWord(true);\n areaDeserialization.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Hasil Serialization\"));\n jScrollPane3.setViewportView(areaDeserialization);\n\n jSplitPane1.setRightComponent(jScrollPane3);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnEntriData, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDoSerialization, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDoDeserialization, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnEntriData, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnDoDeserialization, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnDoSerialization, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 366, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }",
"protected ProtocolControlFrame() {\n super();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"FrameData[%d: %d x %d] (%d,%d,%d) %s\", frameId, width, height, d3dShareHandle, ioSurfaceHandle, textureName, surfaceData);\n\t}",
"public MassMsgFrame() {\n\t}",
"public void initializeStructure(){\n\t\tif ( !this.isRegistered()){\n\t\t\tthrow new Error(\"Can't initialize structure for unregistered SOS2Primitive\");\n\t\t}\n\t\tMatrix matrix=parentComponent.matrix;\n\t\tint col=0;\n\t\t// First create a variable for the x value itself but have it contribute nothing to the objective \n\t\tMatrixVariable newVariable=new MatrixVariable(0,0,1.0,LPX.LPX_FR,LPX.LPX_CV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\tnewVariable.setTag(objType+label+\"_x\");\n\t\tmatrix.addVariable(newVariable);\n\t\tregisterVariable(newVariable,col);\n\t\tcol++;\n\t\t// Now create the weighting variables \n\t\tfor(int i=0;i<xVals.length;i++){\n\t\t\tnewVariable=new MatrixVariable(yVals[i],\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_CV,matrix.numCols(),objType);\n\t\t\tnewVariable.setTag(objType+label+\"y\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\n\t\t// Now the binary variables\n\t\tfor(int i=0;i<(xVals.length-1);i++){\n\t\t\tnewVariable=new MatrixVariable(0,\n\t\t\t\t\t0.0,1.0,\n\t\t\t\t\tLPX.LPX_DB,LPX.LPX_IV,matrix.numCols(),ObjectiveType.SOS2DUMMY);\n\t\t\tnewVariable.setTag(label+\"b\"+i);\n\t\t\tmatrix.addVariable(newVariable);\n\t\t\tregisterVariable(newVariable,col);\n\t\t\tcol++;\n\t\t}\t\t\n\t}",
"public Frame2() {\n \n initComponents();\n }",
"private void fillConstructorFields() {\n constructorId.setText(\"\"+ constructorMutator.getConstructor().getConstructorId());\n constructorUrl.setText(\"\"+ constructorMutator.getConstructor().getConstructorUrl());\n constructorName.setText(\"\"+ constructorMutator.getConstructor().getConstructorName());\n constructorNationality.setText(\"\"+ constructorMutator.getConstructor().getNationality());\n teamLogo.setImage(constructorMutator.getConstructor().getTeamLogo().getImage());\n // Display Drivers that were from the JSON File\n constructorMutator.getConstructor().setBuffer(new StringBuffer());\n // Java 8 Streaming\n constructorMutator.getConstructorsList().stream().forEach(constructorList -> constructorMutator.getConstructor().toString(constructorList));\n }",
"public NewFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"public FrameBodyASPI() {\r\n super();\r\n }",
"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 CFJInternalFrame( ) {\n initComponents();\n \n refresh();\n }",
"private void init() {\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setResizable(false);\n\t\tlbl1.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl2.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl3.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl4.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl5.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl6.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl7.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtncanel.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtnsave.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\t\n\t\tpnlInfo.setBounds(10,5,320,220);\n//\t\tpnlInfo.setBackground(Color.cyan);\n//\t\tpnlMain.setBackground(Color.green);\n//\t\tbtnsave.setBackground(Color.pink);\n//\t\tbtncanel.setBackground(Color.yellow);\n\t\tbtnsave.setBounds(120, 230, 70, 25);\n\t\tbtncanel.setBounds(210, 230, 70, 25);\n\t\t\n\t\tbtncanel.addActionListener(new AddRederTypeFrame_btncanel_ActionListener(this));\n\t\tbtnsave.addActionListener(new AddRederTypeFrame_btnsave_ActionListener(this));\n\t\t\n//\t\tpnlInfo.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, Color.cyan));\n\t\t\n\t\tpnlInfo.add(lbl1);\n\t\tpnlInfo.add(txtname);\n\t\tpnlInfo.add(lbl2);\n\t\tpnlInfo.add(txtcount);\n\t\tpnlInfo.add(lbl3);\n\t\tpnlInfo.add(txtdate);\n\t\tpnlInfo.add(lbl4);\n\t\tpnlInfo.add(txtmtp);\n\t\tpnlInfo.add(lbl5);\n\t\tpnlInfo.add(txtstcharge);\n\t\tpnlInfo.add(lbl6);\n\t\tpnlInfo.add(txtoutcharge);\n\t\tpnlInfo.add(lbl7);\n\t\tpnlInfo.add(txtqty);\n\t\t\n\t\tpnlMain.add(pnlInfo);\n\t\tpnlMain.add(btnsave);\n\t\tpnlMain.add(btncanel);\n\t\tthis.add(pnlMain);\n\t\tthis.setTitle(\"新增用户\");\n\t\tGlobal.setCenterByWindow(this);\n\t\tthis.setVisible(true);\n\t}",
"public ProtocolControlFrame(byte[] buffer) throws FrameException {\n super(Frame.PROTOCOLCONTROLFRAME_T, buffer);\n this.infoElements = new Hashtable<Integer, byte[]>();\n try {\n byte[] iesBuffer = new byte[buffer.length - FULLFRAME_HEADER_LENGTH];\n System.arraycopy(buffer, FULLFRAME_HEADER_LENGTH, iesBuffer, 0, iesBuffer.length);\n int bytesRemaining = iesBuffer.length;\n //This while iterate the buffer to search information elements. \n //These are variable in number, type and size. \n while(bytesRemaining > 0) {\n byte[] aux = new byte[bytesRemaining];\n System.arraycopy(iesBuffer, iesBuffer.length - bytesRemaining, aux, 0, aux.length);\n ByteBuffer byteBuffer = new ByteBuffer(aux);\n int id = byteBuffer.get8bits();\n int dataLength = byteBuffer.get8bits();\n byte[] data = new byte[dataLength];\n System.arraycopy(byteBuffer.getByteArray(), 0, data, 0, data.length);\n infoElements.put(new Integer(id),data);\n bytesRemaining -= InfoElement.HEADER_LENGTH + dataLength;\n }\n } catch (Exception e) {\n throw new FrameException(e);\n } \n }",
"public ThreadState() {\n initComponents();\n thread1.setOpaque(true);\n thread2.setOpaque(true);\n thread3.setOpaque(true);\n thread4.setOpaque(true);\n thread5.setOpaque(true);\n thread6.setOpaque(true);\n thread7.setOpaque(true);\n Thread8.setOpaque(true);\n thread9.setOpaque(true);\n thread10.setOpaque(true);\n\n }",
"private void initTracks() {\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame1.getUI()).setNorthPane(null);\n jInternalFrame1.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame2.getUI()).setNorthPane(null);\n jInternalFrame2.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame3.getUI()).setNorthPane(null);\n jInternalFrame3.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame4.getUI()).setNorthPane(null);\n jInternalFrame4.setVisible(false);\n \n //Creates the track array\n trackArray = new javax.swing.JInternalFrame[4];\n trackArray[0] = jInternalFrame1;\n trackArray[1] = jInternalFrame2;\n trackArray[2] = jInternalFrame3;\n trackArray[3] = jInternalFrame4;\n \n //Creates the waveforme array\n waveArray = new javax.swing.JPanel[4];\n waveArray[0] = track1Wave;\n waveArray[1] = track2Wave;\n waveArray[2] = track3Wave;\n waveArray[3] = track4Wave;\n \n //Creates tracklabel array\n labelArray = new javax.swing.JLabel[4];\n labelArray[0] = jLabel18;\n labelArray[1] = jLabel19;\n labelArray[2] = jLabel17;\n labelArray[3] = jLabel20;\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"private void generateComponents(Universe universe) throws SAXException {\n ArrayList<MainSceneComponent> components = universe.getScene().getComponentArray();\n for (int i = 0; i < components.size(); i++) {\n saver.addAttribute(\"src\", XmlSaver.CDATA, relativePath(components.get(i).getSource().getAbsolutePath()));\n saver.addAttribute(\"type\", XmlSaver.CDATA, components.get(i).getType().name());\n saver.startTag(\"object\");\n saver.startTag(\"name\", \"\"+components.get(i).getComponentName());\n saver.startTag(\"scale\", String.valueOf(components.get(i).getScale()));\n saver.startTag(\"location\", Converter.tuple3dToString(components.get(i).getPosition()));\n saver.startTag(\"rotation\", Converter.tuple3dToString(components.get(i).getRotation()));\n saver.closeTag(\"object\");\n }\n }",
"public frame_utama() {\n initComponents();\n }",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public void init() {\n initComponents();\n initData();\n }",
"public ShopHoursFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}",
"public Frame2() {\n initComponents();\n }",
"public Frame2() {\n initComponents();\n }",
"public MercadoFrame() {\n initComponents();\n }",
"private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }"
] | [
"0.6103572",
"0.56607676",
"0.5615813",
"0.5598644",
"0.5524702",
"0.55204797",
"0.548803",
"0.5458853",
"0.54572374",
"0.5454769",
"0.5452115",
"0.5408583",
"0.5342545",
"0.5342545",
"0.5327469",
"0.528097",
"0.52732784",
"0.52457064",
"0.52142054",
"0.52009076",
"0.51729995",
"0.5170802",
"0.5167461",
"0.5165995",
"0.5164535",
"0.5157247",
"0.5152581",
"0.5145087",
"0.5121608",
"0.5121421",
"0.5112487",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.511062",
"0.51026475",
"0.51026475",
"0.5087272",
"0.5074359",
"0.50679374",
"0.506674",
"0.50622916",
"0.50507766",
"0.5049157",
"0.5042804",
"0.50137705",
"0.5002769",
"0.49975032",
"0.49965107",
"0.49939388",
"0.49867374",
"0.49845752",
"0.49831864",
"0.4980484",
"0.49745744",
"0.49712113",
"0.49670154",
"0.49600288",
"0.49580047",
"0.4953487",
"0.49452007",
"0.49428412",
"0.49303728",
"0.4923655",
"0.49152115",
"0.49148467",
"0.49056774",
"0.48992497",
"0.48946267",
"0.4893235",
"0.48894343",
"0.48883373",
"0.48868403",
"0.48854527",
"0.487864",
"0.48765734",
"0.48758593",
"0.48724526",
"0.48723477",
"0.4872182",
"0.487026",
"0.48675963",
"0.48609757",
"0.4860156",
"0.4858879",
"0.48540083",
"0.48528543",
"0.48509514",
"0.48392648",
"0.4834918",
"0.4834918",
"0.48348236",
"0.4832934"
] | 0.0 | -1 |
Initializes the split pane, explorer on top and console on bottom. | private void initializeSplitPane() {
this.splitPane = new JSplitPane();
this.splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
this.splitPane.setDividerLocation(this.screenDimensions.height / 2);
this.getContentPane().add(this.splitPane, BorderLayout.CENTER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}",
"private void init() {\n this.currentStatus = false;\n\n // Instantiate both the left & the right panels.\n leftPanel = new LeftListPanel();\n rightPanel = new RightListPanel();\n // Initialize the splitPane with left & right panels.\n splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, rightPanel);\n\n }",
"public SplitPaneTest2() {\n initComponents();\n\n horizontalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n horizontalSplitPane.setDividerSize(1);\n verticalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n\n messageScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n messagesScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n foldersScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n /*\n horizontalSplitPane.setContinuousLayout(true);\n verticalSplitPane.setContinuousLayout(true);\n */\n\n }",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}",
"public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}",
"private void initializeExplorer() {\n\t\tthis.hydraExplorer = new HydraExplorer(this.stage);\n\t\tthis.splitPane.setTopComponent(this.hydraExplorer);\n\t\tthis.initializeExplorerCommands();\n\t}",
"private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }",
"private void initializeConsole() {\n\t\tthis.hydraConsole = new HydraConsole(this.stage, this.commands);\n\t\tthis.splitPane.setBottomComponent(this.hydraConsole);\n\t}",
"private void initSideBar(JSplitPane splitPane) {\n\t\tJPanel sidebar = new JPanel();\n\t\tJScrollPane leftComponent = new JScrollPane(sidebar);\n\t\tleftComponent.setMinimumSize(new Dimension(210, 400));\n\t\tsplitPane.setLeftComponent(leftComponent);\n\t\tGridBagLayout gbl_sidebar = new GridBagLayout();\n\t\tsidebar.setLayout(gbl_sidebar);\n\n\t\t// init basic constraints\n\t\tGridBagConstraints gbc_sidebar = new GridBagConstraints();\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.anchor = GridBagConstraints.CENTER;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy = 0;\n\t\t\n\t\t// init step buttons here so other buttons can reference them\n\t\tfinal JButton btnStepBack = new JButton(\"Step\");\n\t\tfinal JButton btnStepForward = new JButton(\"Step\");\n\t\t\n\t\t// run button\n\t\tfinal JButton btnRun = new JButton(new AbstractAction(\"Run\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates();\n\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\ttry {\n\t\t\t\t\tmachine.run(inputText.getText());\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tsidebar.add(btnRun, gbc_sidebar);\n\t\tcomponents.add(btnRun);\n\t\t\n\t\t// reset button\n\t\tfinal JButton btnReset = new JButton(new AbstractAction(\"Reset\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tmachine.reset(); // reset the automaton\n\t\t\t\tgraphicManager.clearStates(); // clear state selection\n\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t\n\t\t\t\tinputText.setEditable(true); // enable input editing\n\t\t\t\tbtnRun.setEnabled(true); // enable run btn\n\t\t\t\tbtnStepBack.setEnabled(false); // disable step back btn\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward btn\n\t\t\t\t\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnReset, gbc_sidebar);\n\t\tcomponents.add(btnReset);\n\t\t\n\t\t// step back button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_left.png\");\n\t\t\tbtnStepBack.setIcon(new ImageIcon(url));\n\t\t\tbtnStepBack.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepBack.setText(\"<-- Step\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepBack.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates(); // clear selections\n\t\t\t\tmachine.stepBack();\n\t\t\t\t\n\t\t\t\t// if reached beginning of current input\n\t\t\t\tif (machine.atStart()) {\n\t\t\t\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t machine.getCurrentInput());\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(btnStepBack, gbc_sidebar);\n\t\tcomponents.add(btnStepBack);\n\t\t\n\t\t// step forward button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_right.png\");\n\t\t\tbtnStepForward.setIcon(new ImageIcon(url));\n\t\t\tbtnStepForward.setHorizontalTextPosition(SwingConstants.LEADING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepForward.setText(\"Step -->\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepForward.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\n\t\t\t\t// if first step, set input\n\t\t\t\tif (machine.atStart())\n\t\t\t\t\tmachine.setInput(inputText.getText());\n\t\t\t\t\n\t\t\t\ttry { \n\t\t\t\t\tmachine.step(); // take a step\n\t\t\t\t\t\n\t\t\t\t\t// if there is input\n\t\t\t\t\tif (inputText.getText().length() > 0) {\n\t\t\t\t\t\tinputText.setEditable(false); // disable input edit\n\t\t\t\t\t\tbtnRun.setEnabled(false); // disable run\n\t\t\t\t\t\tbtnStepBack.setEnabled(true); // enable step back\n\n\t\t\t\t\t\t// report character just read\n\t\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t\t\t\t\t\t machine.getCurrentInput());\n\t\t\t\t\t}\n\n\t\t\t\t\t// if end of input, disable step forward\n\t\t\t\t\tif (! (machine.getStatus().equals(Automaton.READY) ||\n\t\t\t\t\t\t\tmachine.getStatus().equals(Automaton.RUN)))\n\t\t\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnStepForward, gbc_sidebar);\n\t\tcomponents.add(btnStepForward);\n\t\t\n\t\t// input label\n\t\tlblInput = new JLabel(\"Input:\");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 0, 5); // T, L, B, R\n\t\tgbc_sidebar.anchor = GridBagConstraints.SOUTH;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.gridwidth = 2; // fill entire row\n\t\tsidebar.add(lblInput, gbc_sidebar);\n\t\tcomponents.add(lblInput);\n\t\t\n\t\t// input text field (scrollable)\n\t\tinputText = new JTextArea();\n\t\tJScrollPane areaScrollPane = new JScrollPane(inputText);\n\t\tgbc_sidebar.insets = new Insets(0, 5, 5, 5); // T, L, B, R\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 1.0;\n\t\tgbc_sidebar.fill = GridBagConstraints.BOTH;\n\t\tsidebar.add(areaScrollPane, gbc_sidebar);\n\t\tcomponents.add(inputText);\n\t\t\n\t\t// current input label\n\t\tlblCurrentInput = new JLabel(\" \");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 0;\n\t\tgbc_sidebar.fill = GridBagConstraints.NONE;\n\t\tsidebar.add(lblCurrentInput, gbc_sidebar);\n\t\tcomponents.add(lblCurrentInput);\n\t\t\n\t\t// status label\n\t\tlblStatus = new JLabel(\"Status: \" + machineStatus); // default: ready\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblStatus, gbc_sidebar);\n\t\tcomponents.add(lblStatus);\n\t\t\n\t\t// automaton type label\n\t\tlblType = new JLabel(\"Type: \" + machineType); // default: DFA\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblType, gbc_sidebar);\n\t\tcomponents.add(lblType);\n\t}",
"@Override\n\tpublic void init() {\n\t\tsetMainWindow(new Window(\"Module Demo Application\", tabs));\n\t\ttabs.setSizeFull();\n\t}",
"public void initModule(){\n SplitPane pane = new SplitPane();\n VBox module = (VBox) loader.getNamespace().get(\"vbox_grapher\");\n ScrollPane module_parent = (ScrollPane) loader.getNamespace().get(\"vbox_grapher_parent\");\n\n //bug solution (set resizable with parent):\n module_parent.setFitToHeight(true);\n module_parent.setFitToWidth(true);\n\n //clear(module);\n createGraphes(-1, module);\n }",
"public void init() {\n\t\ttry {\n\t\t\tfinal IWorkbench workbench = PlatformUI.getWorkbench();\n\t\t\tworkbench.getDisplay().asyncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfinal IWorkbenchWindow window = workbench\n\t\t\t\t\t\t\t.getActiveWorkbenchWindow();\n\t\t\t\t\tif (window != null) {\n\t\t\t\t\t\tStatusLineManager sm = ((WorkbenchWindow) PlatformUI\n\t\t\t\t\t\t\t\t.getWorkbench().getActiveWorkbenchWindow())\n\t\t\t\t\t\t\t\t.getStatusLineManager();\n\t\t\t\t\t\tsm.add(new SplitContributionItem(\"SPLIT\"));\n\t\t\t\t\t\tsm.update(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private JSplitPane getSplMain() {\r\n\t\tif (splMain == null) {\r\n\t\t\tsplMain = new JSplitPane();\r\n\t\t\tsplMain.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\t\tsplMain.setBottomComponent(getTxtInput());\r\n\t\t\tsplMain.setTopComponent(getScrMessage());\r\n\t\t\tsplMain.setDividerLocation(100);\r\n\t\t}\r\n\t\treturn splMain;\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(629, 270);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setPreferredSize(new Dimension(629, 270));\n\t\tthis.setMinimumSize(new Dimension(629, 270));\n\t\tthis.setMaximumSize(new Dimension(629, 270));\n\t\tthis.add(getJSplitPane2(), BorderLayout.CENTER);\n\t}",
"public MainWindow()\n {\n initComponents();\n\n // Asignamos los eventos de los controles propios\n this.setCustomControlEvents();\n // Desactivamos por defecto todos los elementos de las barras de imagen\n this.setImageWindowDeactivated();\n \n this.jSplitPane1.setDividerLocation(0.9);\n }",
"private void initMainWorkspace() throws IOException {\n // THE TOP WORKSPACE PANE WILL ONLY DIRECTLY HOLD 2 THINGS, A LABEL\n // AND A SPLIT PANE, WHICH WILL HOLD 2 ADDITIONAL GROUPS OF CONTROLS\n mainWorkspacePane = new TabPane();\n mainWorkspacePane.setSide(Side.BOTTOM);\n mainWorkspacePane.setTabClosingPolicy(UNAVAILABLE);\n \n initTeamsTab();\n initPlayersTab();\n initStandingTab();\n initDraftTab();\n initMLBTeamTab();\n }",
"public MainExonCorPanel() {\n initComponents();\n errorsp.setVisible(false);\n jSplitPane1.setDividerLocation(0);\n }",
"private void splitFrame(){\n setPreferredSize(new Dimension(800,200));\n getContentPane().setLayout(new GridLayout());\n getContentPane().add(splitPane);\n \n // Configure the split pane\n splitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n splitPane.setDividerLocation(300);\n splitPane.setTopComponent(subPanel1); // Add panels to pane\n splitPane.setBottomComponent(subPanel2); // Add panels to pane\n }",
"private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }",
"public AppMain(String title) {\n setTitle(title);\n leftPanel = new LeftPanel();\n jTabbedPane = new JTabbedPane();\n menuBar = new JMenuBar();\n addMenuItems();\n horizontalPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, jTabbedPane);\n verticalPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, menuBar, horizontalPane);\n horizontalPane.setResizeWeight(0.2);\n verticalPane.setResizeWeight(0.03);\n add(verticalPane);\n setSize(1280, 720);\n setVisible(true);\n setResizable(false);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n verticalPane.resetToPreferredSizes();\n horizontalPane.resetToPreferredSizes();\n horizontalPane.setEnabled(false);\n verticalPane.setEnabled(false);\n addPanelActionListeners();\n createWorkSpace();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n split = new javax.swing.JSplitPane();\n\n split.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }",
"private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}",
"public PropertyInspector()\n {\n super( new BorderLayout() );\n\n add(splitPane, BorderLayout.CENTER); \n splitPane.setDividerSize(5);\n\n setupPopupMenu( popup = new JPopupMenu() );\n\n //inspectorActionManager = new InspectorActionManager( mobile );\n\n addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentResized(ComponentEvent evt)\n {\n updateSplitPaneDivider();\n }\n });\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n splitPane = new javax.swing.JSplitPane();\n outlineViewPanel = new org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel();\n messageContentViewer = new MessageDataContent();\n\n setLayout(new java.awt.BorderLayout());\n\n splitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n splitPane.setLeftComponent(outlineViewPanel);\n splitPane.setRightComponent(messageContentViewer);\n\n add(splitPane, java.awt.BorderLayout.CENTER);\n }",
"private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n pnlTree = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtrLocal = new DnDTree();\n pnlTab = new javax.swing.JPanel();\n jtpApps = new javax.swing.JTabbedPane();\n\n jSplitPane1.setDividerLocation(260);\n\n pnlTree.setBorder(javax.swing.BorderFactory.createTitledBorder(\n NbBundle.getMessage(\n EditDistributionVisualPanel2.class,\n \"EditDistributionVisualPanel2.pnlTree.border.title\"))); // NOI18N\n\n jtrLocal.setDragEnabled(true);\n jScrollPane1.setViewportView(jtrLocal);\n\n final javax.swing.GroupLayout pnlTreeLayout = new javax.swing.GroupLayout(pnlTree);\n pnlTree.setLayout(pnlTreeLayout);\n pnlTreeLayout.setHorizontalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 246,\n Short.MAX_VALUE));\n pnlTreeLayout.setVerticalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 238,\n Short.MAX_VALUE));\n\n jSplitPane1.setLeftComponent(pnlTree);\n\n final javax.swing.GroupLayout pnlTabLayout = new javax.swing.GroupLayout(pnlTab);\n pnlTab.setLayout(pnlTabLayout);\n pnlTabLayout.setHorizontalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 200,\n Short.MAX_VALUE));\n pnlTabLayout.setVerticalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 266,\n Short.MAX_VALUE));\n\n jSplitPane1.setRightComponent(pnlTab);\n\n final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 471,\n Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 270,\n Short.MAX_VALUE));\n }",
"@SuppressWarnings(\"serial\")\n\tprivate void initialize() {\n\t\tframe = new JFrame();\n\t\tString url = this.getClass().getResource(\"\").getPath() + \"icon.png\";\n\t\t\n\t\ttry {\n\t\t\timage = ImageIO.read(new File(url));\n\t\t\tframe.setIconImage(image);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tframe.setTitle(\"Testing Demo\");\n\t\tframe.setBounds(100, 100, 1062, 622);\n//\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t @Override\n\t\t public void windowClosing(WindowEvent e) {\n\t\t \tif (mainTaskThread != null) {\n\t\t \t\tmainTaskThread.requestStop();\n\t\t \t}\n\t\t \tSystem.exit(0);\n\t\t }\n\t\t});\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\t\t\n\t\tJScrollPane dropListSP = new JScrollPane();\n\t\tJScrollPane consoleSP = new JScrollPane();\n\t\t\n\t\tJTextArea dropTA = new JTextArea(20, 20);\n\t\tdropTA.setBackground(Color.LIGHT_GRAY);\n\t\tdropTA.setText(\"DropListTA\\n\\n\");\n\t\tdropTA.setEditable(false);\n\t\tdropListSP.getViewport().setView(dropTA);\n\t\tpanel.add(dropListSP);\n\n\t\tJTextArea consoleTA = new JTextArea(40, 40);\n\t\t\n\t\t// move textview to the line\n\t\tDefaultCaret caret = (DefaultCaret) consoleTA.getCaret();\n\t\tcaret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE); \n//\t\tTextAreaFIFO consoleTA = new TextAreaFIFO(1000);\n\t\t//redirect sysout\n//\t\tredirectOutput(consoleTA);\n\t\tconsoleTA.setForeground(Color.ORANGE);\n\t\tconsoleTA.setBackground(Color.DARK_GRAY);\n\t\tconsoleTA.setText(\"ConsoleTA\\n\\n\");\n\t\tconsoleTA.setEditable(false); \n\t\tconsoleSP.getViewport().setView(consoleTA);\n\t\t\n\t\tpanel.add(consoleSP);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tframe.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJButton mainBtn = new JButton(\"Run\");\n\t\tpanel_1.add(mainBtn);\n\t\t\n\t\tJButton stopBtn = new JButton(\"Stops\");\n\t\tstopBtn.setEnabled(false);\n\t\tpanel_1.add(stopBtn);\n\t\t\n\t\tJButton ruleBtn = new JButton(\"Helps\");\n\t\tpanel_1.add(ruleBtn);\n\t\t\n\t\t\t\n\t\tmainBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tstopBtn.setEnabled(true);\n\t\t\t\tmainTaskThread = new MainThread(consoleTA, stopBtn);\n\t\t\t\tmainTaskThread.start();\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tstopBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tmainTaskThread.requestStop();\n\t\t\t\t// stop mainThread\n\t\t\t\tstopBtn.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tdropTA.setDropTarget(new DropTarget() {\n\t\t public synchronized void drop(DropTargetDropEvent evt) {\n\t\t try {\n\t\t evt.acceptDrop(DnDConstants.ACTION_COPY);\n\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t\tList<File> droppedFiles = (List<File>)\n\t\t evt.getTransferable().getTransferData(DataFlavor.javaFileListFlavor);\n\t\t \n\t\t //do thing to each file\n\t\t for (File file : droppedFiles) {\n\t\t \t\n\t\t dropTA.append(file.getAbsolutePath() + \"\\n\");\n\t\t }\n\t\t } catch (Exception ex) {\n\t\t ex.printStackTrace();\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\truleBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (frameRule == null) {\n\t\t\t\t\tframeRule = new JFrame();\n\t\t\t\t\tframeRule.setIconImage(image);\n\t\t\t\t\tframeRule.setTitle(\"Helps\");\n\t\t\t\t\tframeRule.setBounds(1162, 100, 500, 622);\n\t\t\t\t\tframeRule.setVisible(true);\n\t\t\t\t\tframeRule.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\t\t\t\t\tframeRule.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\t\t\tJScrollPane rulePanel = new JScrollPane();\n\t\t\t\t\tframeRule.getContentPane().add(rulePanel, BorderLayout.CENTER);\n\t\t\t\t\tJTextArea ruleTA = new JTextArea();\n\t\t\t\t\truleTA.setForeground(Color.ORANGE);\n\t\t\t\t\truleTA.setBackground(Color.DARK_GRAY);\n\t\t\t\t\truleTA.setToolTipText(\"Imporntant Rules\");\n\t\t\t\t\truleTA.setEditable(false); \n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\trulePanel.getViewport().setView(ruleTA);\n\t\t\t\t} else {\n\t\t\t\t\tframeRule.dispose();\n\t\t\t\t\tframeRule = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}",
"public Exercise33_8() {\n jSplitPane1 = new javax.swing.JSplitPane(\n JSplitPane.VERTICAL_SPLIT, jSplitPane2 = new JSplitPane(),\n jSplitPane3 = new JSplitPane());\n\n jSplitPane2.setLeftComponent(figurePanel1);\n jSplitPane2.setRightComponent(figurePanel2);\n jSplitPane3.setLeftComponent(figurePanel3);\n jSplitPane3.setRightComponent(figurePanel4);\n\n add(jSplitPane1, java.awt.BorderLayout.CENTER);\n }",
"private void initGUI() {\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel top = new JPanel(new GridLayout(0, 1));\n\t\tcp.add(top, BorderLayout.PAGE_START);\n\t\t\n\t\ttop.add(createMenuBar());\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.add(\"Encryptor\", encryptorPanel);\n\t\ttabs.add(\"Decryptor\", decryptorPanel);\n\t\ttabs.setSelectedComponent(encryptorPanel);\n\t\t\n\t\tcp.add(tabs);\n\t}",
"private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }",
"public void defaultstatus()\n {\n try{\n this.isExpaneded = false;\n \n // hide the right annotation edit and diff area\n if (main_splitpane !=null)\n {\n main_splitpane.setDividerLocation(\n main_splitpane.getParent().getWidth() // width of wholesplitter\n - this.main_splitpane.getDividerSize() // width of divider of splitter\n );\n }}catch(Exception ex){\n System.out.println(\"error 1206151048\");\n }\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"public void displayTestPane() {\n mainWindow.setContent(new TestPane());\n console = null;\n }",
"private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}",
"public void initView() {\n JPanel pane= new JPanel();\n panel = new JPanel();\n this.getFile(pane);\n JScrollPane scp = new JScrollPane(pane);\n scp.setPreferredSize(new Dimension(500, 280));\n scp.setVisible(true);\n enter.setPreferredSize(new Dimension(100, 50));\n enter.setVisible(true);\n enter.setActionCommand(\"enter\");\n enter.addActionListener(this);\n send.setPreferredSize(new Dimension(80, 50));\n send.setVisible(true);\n send.setActionCommand(\"sendOptions\");\n send.addActionListener(this);\n send.setEnabled(true);\n back.setVisible(true);\n back.setActionCommand(\"back\");\n back.addActionListener(this);\n back.setPreferredSize(new Dimension(80, 50));\n \n panel.add(scp);\n panel.add(send);\n panel.add(enter);\n panel.add(back);\n Launch.frame.add(panel);\n }",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"@Override\n\tpublic void setPane() {\n\t\tNewTaskPane textListPane = new NewTaskPane();\n\t\trootPane = new HomePane(new MainLeftPane(),textListPane);\t\t\n\t}",
"private void initialize() {\r\n this.setJMenuBar(getMainMenuBar());\r\n this.setContentPane(getPaneContent());\r\n\r\n this.setSize(800, 600);\r\n this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n this.addWindowListener(new java.awt.event.WindowAdapter() { \r\n\r\n \tpublic void windowClosing(java.awt.event.WindowEvent e) { \r\n\r\n \t\tgetMainMenuBar().getMenuFileControl().exit();\r\n \t}\r\n });\r\n\r\n this.setVisible(false);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJSplitPane splitPane = new JSplitPane();\n\t\tsplitPane.setResizeWeight(0.1);\n\t\tframe.getContentPane().add(splitPane, BorderLayout.CENTER);\n\t\t\n\t\tlist = new JList();\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"file1\", \"file2\", \"file3\", \"file4\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tsplitPane.setLeftComponent(list);\n\t\t\n\t\tJPopupMenu popupMenu1 = new JPopupMenu();\n\t\taddPopup(list, popupMenu1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"copy\");\n\t\tpopupMenu1.add(mntmNewMenuItem);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"paste\");\n\t\tpopupMenu1.add(mntmNewMenuItem_1);\n\t\t\n\t\t\n\t\t\n\t\tpanel = new JPanel();\n\t\tsplitPane.setRightComponent(panel);\n\t\t\n\t\tJPopupMenu popupMenu = new JPopupMenu();\n\t\taddPopup(panel, popupMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Rect\");\n\t\tpopupMenu.add(mntmNewMenuItem_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Line\");\n\t\tpopupMenu.add(mntmNewMenuItem_3);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Circle\");\n\t\tpopupMenu.add(mntmNewMenuItem_4);\n\t\t\n\t\tJMenu mnNewMenu = new JMenu(\"Color\");\n\t\tpopupMenu.add(mnNewMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Red\");\n\t\tmntmNewMenuItem_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanel.setBackground(Color.RED);\n\t\t\t}\n\t\t});\n\t\tmnNewMenu.add(mntmNewMenuItem_5);\n\t}",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(50, 50, 1050, 650);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tmtopJPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\tframe.getContentPane().add(mtopJPanel, BorderLayout.NORTH);\n\t\ttopPanel();\n\t\t\n\t\tmleftJPanel = new JPanel();\n\t\tframe.getContentPane().add(mleftJPanel, BorderLayout.WEST);\n\t\twestPanel();\n\t\t\n\t\tmcenterJPanel = new JPanel();\n\t\tframe.getContentPane().add(mcenterJPanel, BorderLayout.CENTER);\n\t\tcenterPanel();\n\t\t\n\t\tmbottomJPanel = new JPanel();\n\t\tframe.getContentPane().add(mbottomJPanel, BorderLayout.SOUTH);\n\t\tbottomPanel();\n\t\t\n\t}",
"public void displayWelcomePane() {\n mainWindow.setContent(new WelcomePane());\n console = null;\n }",
"private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}",
"private void initialize() {\n\t\tthis.setResizable(true);\n\t\tthis.setJMenuBar(getMbMain());\n\t\tthis.setSize(547, 453);\n\t\tthis.setContentPane(getCpMainFrame());\n\t\tthis.getGlassPane().setVisible(true);\n\t\tthis.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\tthis.setTitle(\"Mernis KPS �rnek Uygulamasi\");\n\t\tthis.addWindowListener(new java.awt.event.WindowAdapter() { \n\t\t\tpublic void windowClosing(java.awt.event.WindowEvent e) { \n\t\t\t\tclose(true);\n\t\t\t}\n\t\t});\n\t}",
"private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"private void initialize()\n\t{\n\t\t_frame = new JFrame();\n\t\t_frame.setTitle(\"Super Awesome Fighter GUI\");\n\t\t_frame.setBounds(100, 100, 624, 461);\n\t\t_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t_frame.getContentPane().setBounds(100, 100, 100, 100);\n\t\t_frame.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t_frame.setMinimumSize(new Dimension(400, 200));\n\t\t\n\t\tJPanel bottom = new JPanel();\n\t\t_frame.getContentPane().add(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tDimension minimumSize = new Dimension(100, 50);\n\t\t\n\t\tJPanel top = new JPanel();\n\t\t_frame.getContentPane().add(top, BorderLayout.NORTH);\n\n\t\tJTree tree = new JTree();\n\t\ttree.setModel(new DefaultTreeModel(\n\t\t\tnew DefaultMutableTreeNode(\"SAF 0.0.1\") {\n\t\t\t\t{\n\t\t\t\t\tadd(new DefaultMutableTreeNode(\"D. Blommesteijn\"));\n\t\t\t\t\tadd(new DefaultMutableTreeNode(\"UvA id: 10276726\"));\n\t\t\t\t}\n\t\t\t}\n\t\t));\n\t\ttree.setBackground(new Color(250,250,250));\n\t\ttree.setRootVisible(false);\n\t\ttree.setShowsRootHandles(true);\n\t\ttree.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\ttree.setAlignmentY(Component.TOP_ALIGNMENT);\n\t\ttree.setMinimumSize(minimumSize);\n\t\ttree.repaint();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(tree);\n\t\tscrollPane.setBorder(null);\n\t\tscrollPane.setMinimumSize(minimumSize);\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\n\t\tJPanel contentScrollPane = new JPanel();\n\t\tcontentScrollPane.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\n\t\tcontentScrollPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tcontentScrollPane.setBackground(Color.WHITE);\n\t\tcontentScrollPane.setMinimumSize(minimumSize);\n\t\tcontentScrollPane.setLayout(new BorderLayout(0, 0));\n\t\t\t\t\n\t\t\n\t\t_outputPaneLeft = new JTextPane();\n\t\t_outputPaneLeft.setFont(new Font(\"Courier\", Font.PLAIN, 13));\n\t\t_outputPaneLeft.setText(\"center\");\n\t\t_outputPaneLeft.setEditable(false);\n\t\tcontentScrollPane.add(_outputPaneLeft, BorderLayout.WEST);\n\t\t\n\t\t\n\t\tJSplitPane center = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, scrollPane, contentScrollPane);\n\t\t\n\t\t_score = new JTextField();\n\t\t_score.setFont(new Font(\"Courier\", Font.PLAIN, 13));\n\t\tcontentScrollPane.add(_score, BorderLayout.NORTH);\n\t\t_score.setColumns(10);\n\t\t\n\t\t_action = new JTextField();\n\t\t_action.setFont(new Font(\"Courier\", Font.PLAIN, 10));\n\t\t_action.setColumns(10);\n\t\tcontentScrollPane.add(_action, BorderLayout.SOUTH);\n\t\t\n\t\t_outputPaneRight = new JTextPane();\n\t\t_outputPaneRight.setText(\"center\");\n\t\t_outputPaneRight.setFont(new Font(\"Courier\", Font.PLAIN, 13));\n\t\t_outputPaneRight.setEditable(false);\n\t\tcontentScrollPane.add(_outputPaneRight, BorderLayout.EAST);\n\t\tcenter.setBackground(new Color(250,250,250));\n\t\tcenter.setForeground(Color.LIGHT_GRAY);\n\t\tcenter.setContinuousLayout(true);\n\t\tcenter.setDividerLocation(200);\n\t\tcenter.scrollRectToVisible(new Rectangle(10,10));\n\t\t\n\t\t\n\t\t_frame.getContentPane().add(center, BorderLayout.CENTER);\n\t\t\n\t\t\n\t\t\n\t}",
"private void initialize() {\r\n\t\tfrmMainWindow = new JFrame();\r\n\t\tfrmMainWindow.addWindowListener(this);\r\n\t\tfrmMainWindow.addWindowFocusListener(this);\r\n\t\tfrmMainWindow.setTitle(\"Main Window\");\r\n\t\tfrmMainWindow.setResizable(false);\r\n\t\tfrmMainWindow.setBounds(100, 100, 1500, 1000);\r\n\t\tfrmMainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmMainWindow.getContentPane().setLayout(null);\r\n\t\tfrmMainWindow.setLocation(5, 5);\r\n\r\n\t\tsplitPane = new JSplitPane();\r\n\t\tsplitPane.setResizeWeight(0.5);\r\n\t\tsplitPane.setBounds(10, 56, 1474, 581);\r\n\t\tfrmMainWindow.getContentPane().add(splitPane);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tsplitPane.setLeftComponent(scrollPane);\r\n\t\t\r\n\t\t\t\tapplyList = new JList(axiomListModel);\r\n\t\t\t\tscrollPane.setViewportView(applyList);\r\n\t\t\t\t\r\n\t\t\t\tscrollPane_2 = new JScrollPane();\r\n\t\t\t\tsplitPane.setRightComponent(scrollPane_2);\r\n\t\t\t\t\r\n\t\t\t\t\t\ttoList = new JList(axiomListModel);\r\n\t\t\t\t\t\tscrollPane_2.setViewportView(toList);\r\n\t\t\t\t\t\ttoList.addListSelectionListener(this);\r\n\t\t\t\tapplyList.addListSelectionListener(this);\r\n\r\n\t\tlblApply = new JLabel(\"Apply\");\r\n\t\tlblApply.setBounds(360, 41, 35, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblApply);\r\n\r\n\t\tlblTo = new JLabel(\"To\");\r\n\t\tlblTo.setBounds(1133, 41, 19, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblTo);\r\n\r\n\t\tbtnImportAxioms = new JButton(\"Import Axioms\");\r\n\t\tbtnImportAxioms.addActionListener(this);\r\n\t\tbtnImportAxioms.setBounds(10, 11, 124, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportAxioms);\r\n\r\n\t\tbtnImportDefinitions = new JButton(\"Import Definitions\");\r\n\t\tbtnImportDefinitions.addActionListener(this);\r\n\t\tbtnImportDefinitions.setBounds(1343, 11, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportDefinitions);\r\n\r\n\t\tpositionSelectorPane = new JPanel();\r\n\r\n\t\tpositionScrollPane = new JScrollPane(positionSelectorPane);\r\n\t\tpositionSelectorPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\tpositionScrollPane.setBounds(10, 674, 1474, 60);\r\n\t\tfrmMainWindow.getContentPane().add(positionScrollPane);\r\n\r\n\t\tJLabel lblAtPosition = new JLabel(\"At Position\");\r\n\t\tlblAtPosition.setBounds(712, 649, 71, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAtPosition);\r\n\r\n\t\tresultArea = new JTextPane();\r\n\t\tresultArea.setEditable(false);\r\n\t\tresultArea.setBounds(10, 777, 1474, 42);\r\n\t\tfrmMainWindow.getContentPane().add(resultArea);\r\n\t\tSimpleAttributeSet attribs = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(attribs, StyleConstants.ALIGN_CENTER);\r\n\t\tStyleConstants.setFontSize(attribs, 22);\r\n\t\tresultArea.setParagraphAttributes(attribs, true);\r\n\r\n\t\tJLabel lblResult = new JLabel(\"Result\");\r\n\t\tlblResult.setBounds(723, 745, 46, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblResult);\r\n\r\n\t\taddTheorem = new JButton(\"Add To List\");\r\n\t\taddTheorem.addActionListener(this);\r\n\t\taddTheorem.setBounds(1343, 745, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(addTheorem);\r\n\r\n\t\ttoggleDebugBtn = new JButton(\"Toggle Debug Mode\");\r\n\t\ttoggleDebugBtn.addActionListener(this);\r\n\t\ttoggleDebugBtn.setBounds(10, 745, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(toggleDebugBtn);\r\n\r\n\t\tbtnLoadState = new JButton(\"Load State\");\r\n\t\tbtnLoadState.addActionListener(this);\r\n\t\tbtnLoadState.setBounds(641, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnLoadState);\r\n\r\n\t\tbtnSaveState = new JButton(\"Save State\");\r\n\t\tbtnSaveState.addActionListener(this);\r\n\t\tbtnSaveState.setBounds(749, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnSaveState);\r\n\r\n\t\tlblAddNewStatement = new JLabel(\"Add New Statement\");\r\n\t\tlblAddNewStatement.setBounds(686, 839, 124, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAddNewStatement);\r\n\r\n\t\tbtnAsAxiom = new JButton(\"As Axiom\");\r\n\t\tbtnAsAxiom.addActionListener(this);\r\n\t\tbtnAsAxiom.setBounds(641, 917, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsAxiom);\r\n\r\n\t\tbtnAsDefinition = new JButton(\"As Definition\");\r\n\t\tbtnAsDefinition.addActionListener(this);\r\n\t\tbtnAsDefinition.setBounds(749, 917, 116, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsDefinition);\r\n\r\n\t\tbtnReset = new JButton(\"Reset\");\r\n\t\tbtnReset.addActionListener(this);\r\n\t\tbtnReset.setBounds(328, 11, 89, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnReset);\r\n\r\n\t\tbtnImportPunctuation = new JButton(\"Import Punctuation\");\r\n\t\tbtnImportPunctuation.addActionListener(this);\r\n\t\tbtnImportPunctuation.setBounds(1070, 11, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportPunctuation);\r\n\r\n\t\tbtnPlayWithSelected = new JButton(\"Play With Selected Axioms\");\r\n\t\tbtnPlayWithSelected.addActionListener(this);\r\n\t\tbtnPlayWithSelected.setBounds(10, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnPlayWithSelected);\r\n\t\t\r\n\t\tbtnRemoveSelectedStatement = new JButton(\"Remove Selected Statement\");\r\n\t\tbtnRemoveSelectedStatement.addActionListener(this);\r\n\t\tbtnRemoveSelectedStatement.setBounds(226, 640, 198, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnRemoveSelectedStatement);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(10, 864, 1474, 44);\r\n\t\tfrmMainWindow.getContentPane().add(scrollPane_1);\r\n\t\t\r\n\t\tmanualStmt = new JTextPane();\r\n\t\tscrollPane_1.setViewportView(manualStmt);\r\n\t\t\t\t\r\n\t\tbtnAddImportantResult = new JButton(\"Add To Important Results\");\r\n\t\tbtnAddImportantResult.addActionListener(this);\r\n\t\tbtnAddImportantResult.setBounds(434, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAddImportantResult);\r\n\t\tmanualStmt.setParagraphAttributes(attribs, true);\r\n\t}",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }",
"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 }",
"public Window() {\n // Creation de la fenetre\n super();\n\n // Creation du graphe de scene\n sceneGraph = new SceneGraph(\"Scene Graph\");\n origin = new int[2];\n\n // Proprietes generales de la fenetre\n // Titre de la fenetre\n this.setTitle(NOMFENETRE);\n /// Taille de la fenetre\n this.setSize(HTAILLE, VTAILLE);\n // Centre la fenetre a l'ecran\n this.setLocationRelativeTo(null);\n // Pour fermer la fenetre lorsqu'on clique sur la croix\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Creation des composants de la fenetre\n infoBar = new InfoBar();\n treeZone = new TreePanel();\n drawZone = new DrawPanel(infoBar, treeZone);\n optionZone = new OptionPanel(drawZone);\n menuBar = new MenuBar();\n toolBar = new ToolBar(optionZone);\n\n split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treeZone, drawZone);\n split.setDividerLocation(200);\n\n treeZone.initializeListeners(drawZone);\n menuBar.initializeListeners(drawZone);\n\n // Ajout de la barre de menu a la fenetre\n this.setJMenuBar(menuBar);\n // Ajout des differents sous-conteneurs au conteneur principal\n this.getContentPane().setLayout(new BorderLayout());\n this.add(optionZone, BorderLayout.NORTH);\n this.add(toolBar, BorderLayout.WEST);\n this.add(split, BorderLayout.CENTER);\n this.add(infoBar, BorderLayout.SOUTH);\n\n // Affiche la fenetre a l'ecran\n this.setVisible(true);\n\n this.addComponentListener(new ComponentAdapter() {\n\n @Override\n public void componentResized(ComponentEvent e) {\n drawZone.calculateOrigin();\n }\n });\n\n }",
"private void init() {\n\t\tsetModal(true);\n\t\t\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.insets = new Insets(10, 10, 10, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t}",
"private void setupLayoutManager() {\n\n setLayout(new BorderLayout());\n add(directoryChooserPanel, BorderLayout.NORTH);\n add(splitPane, BorderLayout.CENTER);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPaneMain = new javax.swing.JSplitPane();\n jSplitPaneTrees = new javax.swing.JSplitPane();\n jTabbedPaneViews = new FactoryTabs();\n jTabbedPaneCollectors = new FactoryTabs();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuTools = new javax.swing.JMenu();\n jMenuItemSearchIPAddress = new javax.swing.JMenuItem();\n jMenuItemSearchPort = new javax.swing.JMenuItem();\n jMenuItemSearchSubnet = new javax.swing.JMenuItem();\n jMenuItemCreateReport = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jSplitPaneMain.setDividerLocation(250);\n\n jSplitPaneTrees.setDividerLocation(250);\n jSplitPaneTrees.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n jSplitPaneTrees.setTopComponent(jTabbedPaneViews);\n jSplitPaneTrees.setRightComponent(jTabbedPaneCollectors);\n\n jSplitPaneMain.setLeftComponent(jSplitPaneTrees);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/views/images/sniffer.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(251, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(422, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n\n jSplitPaneMain.setRightComponent(jPanel1);\n\n jMenuTools.setText(\"Tools\");\n\n jMenuItemSearchIPAddress.setText(\"search ip address\");\n jMenuTools.add(jMenuItemSearchIPAddress);\n\n jMenuItemSearchPort.setText(\"search port\");\n jMenuTools.add(jMenuItemSearchPort);\n\n jMenuItemSearchSubnet.setText(\"search subnet\");\n jMenuTools.add(jMenuItemSearchSubnet);\n\n jMenuItemCreateReport.setText(\"create report\");\n jMenuTools.add(jMenuItemCreateReport);\n\n jMenuBar1.add(jMenuTools);\n\n setJMenuBar(jMenuBar1);\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 .addComponent(jSplitPaneMain, javax.swing.GroupLayout.DEFAULT_SIZE, 761, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPaneMain)\n );\n\n pack();\n }",
"private void init() {\n initMenu();\n initWelcome();\n search = new SearchFrame();\n search.setVisible(true);\n basePanel.add(search, \"Search\");\n add = new AddFrame();\n add.setVisible(true);\n basePanel.add(add, \"Add\");\n this.changeState(\"Welcome\");\n \n }",
"private void init(){\r\n\t\tsetLayout(new FlowLayout());\r\n\t\tsetPreferredSize(new Dimension(40,40));\r\n\t\tsetVisible(true);\r\n\t}",
"@FXML\n\tprivate void initialize() {\n\n\t\thelp.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}\n\t\t});\n\t\tcomparator.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's comparator button\");\n\t\t\t\tshowRootDocumentScreen(ID_COMPARATOR);\n\t\t\t}\n\t\t});\n\t\tsetting.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's setting button\");\n\t\t\t\tshowRootDocumentScreen(ID_SETTING);\n\t\t\t}\n\t\t});\n\t\tsubmitButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's submit button\");\n\n\t\t\t\tScreensContainer container = new ScreensContainer();\n\t\t\t\tcontainer.registerScreen(ID_SHOWPROBLEM, file_showproblem);\n\t\t\t\tcontainer.registerScreen(ID_SUBMITCODE, file_submitcode);\n\n\t\t\t\tStage dialogStage = new Stage();\n\t\t\t\tdialogStage.setTitle(\"在线提交\");\n\t\t\t\tdialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\t\tdialogStage.initOwner(rootLayout.getScene().getWindow());\n\n\t\t\t\tScene scene = new Scene(container);\n\t\t\t\tdialogStage.setScene(scene);\n\t\t\t\tcontainer.setScreen(ID_SHOWPROBLEM);\n\n\t\t\t\tdialogStage.showAndWait();\n\n\t\t\t}\n\t\t});\n\t\ttabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.SELECTED_TAB);\n\t}",
"private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }",
"private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}",
"private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initComponents() {\n\t\tSplitPane mainSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tmainSplitPane.setSeparatorPosition(new Extent(34));\n\t\tnavigator = new AnyRowNavigator();\n\t\tmainSplitPane.add(navigator);\n\t\tSplitPane splitPane = new SplitPane();\n\t\tsplitPane.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tsplitPane.setSeparatorPosition(new Extent(200));\n\t\tsplitPane.setResizable(true);\n\t\tmainSplitPane.add(splitPane);\n\t\tadd(mainSplitPane);\t\t\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(8);\n splitPane.add(rootLayout);\n EMPSN_CaptionLabel = new nextapp.echo2.app.Label();\n EMPSN_CaptionLabel.setText(\"N_GET_DATA.EMPSN\");\n rootLayout.add(EMPSN_CaptionLabel);\n GridLayoutData infoLayout = new GridLayoutData();\n infoLayout.setColumnSpan(7);\n Row row = new Row();\n row.setLayoutData(infoLayout);\n EMPSN_DscField1 = new dsc.echo2app.component.DscField();\n EMPSN_DscField1.setWidth(new Extent(60));\n EMPSN_DscField1.setId(\"EMPSN_DscField1\");\n row.add(EMPSN_DscField1);\n lblInfo = new DirectHtml();\n row.add(lblInfo);\n rootLayout.add(row);\n// DEPSN_CaptionLabel = new nextapp.echo2.app.Label();\n// rootLayout.add(DEPSN_CaptionLabel);\n// DEPSN_DscField1 = new dsc.echo2app.component.DscField();\n// DEPSN_DscField1.setWidth(new Extent(60));\n// DEPSN_DscField1.setId(\"DEPSN_DscField1\");\n// rootLayout.add(DEPSN_DscField1);\n MONTHS_CaptionLabel = new nextapp.echo2.app.Label();\n MONTHS_CaptionLabel.setText(\"N_GET_DATA.MONTHS\");\n rootLayout.add(MONTHS_CaptionLabel);\n MONTHS_DscField2 = new dsc.echo2app.component.DscField();\n MONTHS_DscField2.setWidth(new Extent(60));\n MONTHS_DscField2.setId(\"MONTHS_DscField2\");\n rootLayout.add(MONTHS_DscField2);\n YEARS_CaptionLabel = new nextapp.echo2.app.Label();\n YEARS_CaptionLabel.setText(\"N_GET_DATA.YEARS\");\n rootLayout.add(YEARS_CaptionLabel);\n YEARS_DscField3 = new dsc.echo2app.component.DscField();\n YEARS_DscField3.setWidth(new Extent(60));\n YEARS_DscField3.setId(\"YEARS_DscField3\");\n rootLayout.add(YEARS_DscField3);\n DUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n DUCLS_CaptionLabel.setText(\"N_GET_DATA.DUCLS\");\n rootLayout.add(DUCLS_CaptionLabel);\n DUCLS_DscField4 = new dsc.echo2app.component.DscField();\n DUCLS_DscField4.setWidth(new Extent(60));\n DUCLS_DscField4.setDisabledBackground(new Color(0xFBF4D4));\n DUCLS_DscField4.setDisabledForeground(new Color(0x2A7FFF));\n DUCLS_DscField4.setId(\"DUCLS_DscField4\");\n rootLayout.add(DUCLS_DscField4);\n NDUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NDUCLS_CaptionLabel.setText(\"N_GET_DATA.NDUCLS\");\n rootLayout.add(NDUCLS_CaptionLabel);\n NDUCLS_DscField5 = new dsc.echo2app.component.DscField();\n NDUCLS_DscField5.setWidth(new Extent(60));\n NDUCLS_DscField5.setId(\"NDUCLS_DscField5\");\n rootLayout.add(NDUCLS_DscField5);\n ADDHOL_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOL_CaptionLabel.setText(\"N_GET_DATA.ADDHOL\");\n rootLayout.add(ADDHOL_CaptionLabel);\n ADDHOL_DscField6 = new dsc.echo2app.component.DscField();\n ADDHOL_DscField6.setWidth(new Extent(60));\n ADDHOL_DscField6.setId(\"ADDHOL_DscField6\");\n rootLayout.add(ADDHOL_DscField6);\n ADDCLS1_CaptionLabel = new nextapp.echo2.app.Label();\n ADDCLS1_CaptionLabel.setText(\"N_GET_DATA.ADDCLS1\");\n rootLayout.add(ADDCLS1_CaptionLabel);\n ADDCLS1_DscField7 = new dsc.echo2app.component.DscField();\n ADDCLS1_DscField7.setWidth(new Extent(60));\n ADDCLS1_DscField7.setId(\"ADDCLS1_DscField7\");\n rootLayout.add(ADDCLS1_DscField7);\n NADDCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NADDCLS_CaptionLabel.setText(\"N_GET_DATA.NADDCLS\");\n rootLayout.add(NADDCLS_CaptionLabel);\n NADDCLS_DscField8 = new dsc.echo2app.component.DscField();\n NADDCLS_DscField8.setWidth(new Extent(60));\n NADDCLS_DscField8.setId(\"NADDCLS_DscField8\");\n rootLayout.add(NADDCLS_DscField8);\n LATE_CaptionLabel = new nextapp.echo2.app.Label();\n LATE_CaptionLabel.setText(\"N_GET_DATA.LATE\");\n rootLayout.add(LATE_CaptionLabel);\n LATE_DscField9 = new dsc.echo2app.component.DscField();\n LATE_DscField9.setWidth(new Extent(60));\n LATE_DscField9.setId(\"LATE_DscField9\");\n rootLayout.add(LATE_DscField9);\n SIGN_CaptionLabel = new nextapp.echo2.app.Label();\n SIGN_CaptionLabel.setText(\"N_GET_DATA.SIGN\");\n rootLayout.add(SIGN_CaptionLabel);\n SIGN_DscField10 = new dsc.echo2app.component.DscField();\n SIGN_DscField10.setWidth(new Extent(60));\n SIGN_DscField10.setId(\"SIGN_DscField10\");\n rootLayout.add(SIGN_DscField10);\n ACN_CaptionLabel = new nextapp.echo2.app.Label();\n ACN_CaptionLabel.setText(\"N_GET_DATA.ACN\");\n rootLayout.add(ACN_CaptionLabel);\n ACN_DscField11 = new dsc.echo2app.component.DscField();\n ACN_DscField11.setWidth(new Extent(60));\n ACN_DscField11.setId(\"ACN_DscField11\");\n rootLayout.add(ACN_DscField11);\n ACNM_CaptionLabel = new nextapp.echo2.app.Label();\n ACNM_CaptionLabel.setText(\"N_GET_DATA.ACNM\");\n rootLayout.add(ACNM_CaptionLabel);\n ACNM_DscField12 = new dsc.echo2app.component.DscField();\n ACNM_DscField12.setWidth(new Extent(60));\n ACNM_DscField12.setId(\"ACNM_DscField12\");\n rootLayout.add(ACNM_DscField12);\n REST_CaptionLabel = new nextapp.echo2.app.Label();\n REST_CaptionLabel.setText(\"N_GET_DATA.REST\");\n rootLayout.add(REST_CaptionLabel);\n REST_DscField13 = new dsc.echo2app.component.DscField();\n REST_DscField13.setWidth(new Extent(60));\n REST_DscField13.setId(\"REST_DscField13\");\n rootLayout.add(REST_DscField13);\n REST_PAY_CaptionLabel = new nextapp.echo2.app.Label();\n REST_PAY_CaptionLabel.setText(\"N_GET_DATA.REST_PAY\");\n rootLayout.add(REST_PAY_CaptionLabel);\n REST_PAY_DscField14 = new dsc.echo2app.component.DscField();\n REST_PAY_DscField14.setWidth(new Extent(60));\n REST_PAY_DscField14.setId(\"REST_PAY_DscField14\");\n rootLayout.add(REST_PAY_DscField14);\n REST_SICK_CaptionLabel = new nextapp.echo2.app.Label();\n REST_SICK_CaptionLabel.setText(\"N_GET_DATA.REST_SICK\");\n rootLayout.add(REST_SICK_CaptionLabel);\n REST_SICK_DscField15 = new dsc.echo2app.component.DscField();\n REST_SICK_DscField15.setWidth(new Extent(60));\n REST_SICK_DscField15.setId(\"REST_SICK_DscField15\");\n rootLayout.add(REST_SICK_DscField15);\n OTHER_CaptionLabel = new nextapp.echo2.app.Label();\n OTHER_CaptionLabel.setText(\"N_GET_DATA.OTHER\");\n rootLayout.add(OTHER_CaptionLabel);\n OTHER_DscField16 = new dsc.echo2app.component.DscField();\n OTHER_DscField16.setWidth(new Extent(60));\n OTHER_DscField16.setId(\"OTHER_DscField16\");\n rootLayout.add(OTHER_DscField16);\n NWHOUR_CaptionLabel = new nextapp.echo2.app.Label();\n NWHOUR_CaptionLabel.setText(\"N_GET_DATA.NWHOUR\");\n rootLayout.add(NWHOUR_CaptionLabel);\n NWHOUR_DscField17 = new dsc.echo2app.component.DscField();\n NWHOUR_DscField17.setWidth(new Extent(60));\n NWHOUR_DscField17.setId(\"NWHOUR_DscField17\");\n rootLayout.add(NWHOUR_DscField17);\n ADDHOLN_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOLN_CaptionLabel.setText(\"N_GET_DATA.ADDHOLN\");\n rootLayout.add(ADDHOLN_CaptionLabel);\n ADDHOLN_DscField18 = new dsc.echo2app.component.DscField();\n ADDHOLN_DscField18.setWidth(new Extent(60));\n ADDHOLN_DscField18.setId(\"ADDHOLN_DscField18\");\n rootLayout.add(ADDHOLN_DscField18);\n LMATER_CaptionLabel = new nextapp.echo2.app.Label();\n LMATER_CaptionLabel.setText(\"N_GET_DATA.LMATER\");\n rootLayout.add(LMATER_CaptionLabel);\n LMATER_DscField19 = new dsc.echo2app.component.DscField();\n LMATER_DscField19.setWidth(new Extent(60));\n LMATER_DscField19.setId(\"LMATER_DscField19\");\n rootLayout.add(LMATER_DscField19);\n LOCKED_CaptionLabel = new nextapp.echo2.app.Label();\n LOCKED_CaptionLabel.setText(\"N_GET_DATA.LOCKED\");\n rootLayout.add(LOCKED_CaptionLabel);\n LOCKED_DscField20 = new dsc.echo2app.component.DscField();\n LOCKED_DscField20.setWidth(new Extent(60));\n LOCKED_DscField20.setId(\"LOCKED_DscField20\");\n rootLayout.add(LOCKED_DscField20);\n// UP_DATE_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_DATE_CaptionLabel.setText(\"N_GET_DATA.UP_DATE\");\n// rootLayout.add(UP_DATE_CaptionLabel);\n// UP_DATE_DscDateField1 = new dsc.echo2app.component.DscDateField();\n// UP_DATE_DscDateField1.setId(\"UP_DATE_DscDateField1\");\n// rootLayout.add(UP_DATE_DscDateField1);\n// UP_USER_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_USER_CaptionLabel.setText(\"N_GET_DATA.UP_USER\");\n// rootLayout.add(UP_USER_CaptionLabel);\n// UP_USER_DscField22 = new dsc.echo2app.component.DscField();\n// UP_USER_DscField22.setId(\"UP_USER_DscField22\");\n// rootLayout.add(UP_USER_DscField22);\n dailyContent = new DataDailyBrowserContent();\n splitPane.add(dailyContent);\n\t}",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"public DivisionJSP() {\r\n\t\tsetBackground(Color.WHITE);\r\n\t\tsetOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tsetDividerLocation(SPLIT_POSITION);\r\n\t\tsetElements();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"public void startEnterSplit() {\n update(this.mDisplayController.getDisplayContext(this.mContext.getDisplayId()).getResources().getConfiguration());\n this.mHomeStackResizable = this.mWindowManagerProxy.applyEnterSplit(this.mSplits, this.mSplitLayout);\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void init() {\n setLayout(new BorderLayout());\n }",
"private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n splitPane = new javax.swing.JSplitPane();\n controlPanel = new javax.swing.JPanel();\n btnAdmin = new javax.swing.JButton();\n btnSupplier = new javax.swing.JButton();\n btnSupplier1 = new javax.swing.JButton();\n userProcessContainer = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Lab 5 Skeleton\");\n setBackground(new java.awt.Color(240, 240, 240));\n\n splitPane.setDividerLocation(150);\n splitPane.setOpaque(false);\n\n controlPanel.setBackground(new java.awt.Color(240, 240, 240));\n\n btnAdmin.setText(\"city\");\n btnAdmin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdminActionPerformed(evt);\n }\n });\n\n btnSupplier.setText(\"People\");\n btnSupplier.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSupplierActionPerformed(evt);\n }\n });\n\n btnSupplier1.setText(\"patient\");\n btnSupplier1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSupplier1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout controlPanelLayout = new javax.swing.GroupLayout(controlPanel);\n controlPanel.setLayout(controlPanelLayout);\n controlPanelLayout.setHorizontalGroup(\n controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAdmin, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSupplier, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnSupplier1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n controlPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAdmin, btnSupplier});\n\n controlPanelLayout.setVerticalGroup(\n controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(btnAdmin)\n .addGap(18, 18, 18)\n .addComponent(btnSupplier)\n .addGap(18, 18, 18)\n .addComponent(btnSupplier1)\n .addContainerGap(411, Short.MAX_VALUE))\n );\n\n splitPane.setLeftComponent(controlPanel);\n\n userProcessContainer.setBackground(new java.awt.Color(240, 240, 240));\n userProcessContainer.setLayout(new java.awt.CardLayout());\n splitPane.setRightComponent(userProcessContainer);\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 .addComponent(splitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 854, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(splitPane)\n );\n\n pack();\n }",
"@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}",
"private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}",
"private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout(0, 0));\n centerPanel = new JPanel();\n centerPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(centerPanel, BorderLayout.CENTER);\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setDividerLocation(240);\n splitPane1.setResizeWeight(0.5);\n centerPanel.add(splitPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n leftPanel = new JPanel();\n leftPanel.setLayout(new BorderLayout(0, 0));\n splitPane1.setLeftComponent(leftPanel);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel1, BorderLayout.NORTH);\n userListTitle = new JLabel();\n userListTitle.setText(\"在线用户\");\n panel1.add(userListTitle, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel2, BorderLayout.CENTER);\n JSP_list = new JScrollPane();\n panel2.add(JSP_list, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n rightPanel = new JPanel();\n rightPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n splitPane1.setRightComponent(rightPanel);\n southPanel = new JPanel();\n southPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(southPanel, BorderLayout.SOUTH);\n northPanel = new JPanel();\n northPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(northPanel, BorderLayout.NORTH);\n }",
"private void init() {\n\t\tcontentPane=getContentPane();\n\t\ttopPanel= new JPanel();\n\t\tcontentPane.setLayout(new BorderLayout());\n\t\tlabel = new JLabel(\"Username\");\n\t\ttextfield = new JTextField(\"Type Username\", 15);\n\t\ttextfield.addActionListener(aListener);\n\t\tconnectButton = new JButton(\"Connect to Server\");\n\t\tconnectButton.addActionListener(aListener);\n\t\ttopPanel.setLayout(new FlowLayout());\n\t\tlabel.setVerticalAlignment(FlowLayout.LEFT);\n\t\ttopPanel.add(label);\n\t\ttopPanel.add(textfield);\n\t\ttopPanel.add(connectButton);\n\t\tsetSize(600, 600);\n\t\tcontentPane.add(topPanel, BorderLayout.NORTH);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tthis.addWindowListener(framListener);\n\t}",
"private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void init() {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n controlPanel = new ControlPanel(this);\n canvas = new DrawingPanel(this);\n shapeController = ShapeController.getInstance();\n\n shapeController.setFactory(new RegularPolygonShapeFactory(6, 50));\n optionsPanel = new RegularPolygonOptionsPanel(this, 6, 50);\n toolPanel = new ToolPanel(this);\n\n add(optionsPanel, BorderLayout.NORTH);\n add(canvas, BorderLayout.CENTER);\n add(controlPanel, BorderLayout.SOUTH);\n add(toolPanel, BorderLayout.EAST);\n\n pack();\n }",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }",
"private JSplitPane getJSplitPane() {\n\t\tif (jSplitPane == null) {\n\t\t\tjSplitPane = new JSplitPane();\n\t\t\tjSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n\t\t\tjSplitPane.setBottomComponent(getPanelInfo());\n\t\t\tjSplitPane.setTopComponent(getPanelJLists());\n\t\t}\n\t\treturn jSplitPane;\n\t}",
"private BrowserToolbar() {\n\t\tinitComponents();\n\t}",
"private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}"
] | [
"0.7715149",
"0.73800325",
"0.6979314",
"0.6953812",
"0.68960583",
"0.6797022",
"0.6771977",
"0.6738243",
"0.66962636",
"0.6666938",
"0.66638714",
"0.665624",
"0.6649861",
"0.66408074",
"0.6637467",
"0.66116524",
"0.6559877",
"0.65411913",
"0.64981616",
"0.647961",
"0.6459229",
"0.6439871",
"0.6384717",
"0.6341614",
"0.6311897",
"0.6301797",
"0.62843627",
"0.62715393",
"0.6256174",
"0.62487763",
"0.62486154",
"0.6219163",
"0.6211381",
"0.62001956",
"0.6177705",
"0.6168699",
"0.616026",
"0.6113893",
"0.6110705",
"0.6103731",
"0.6102474",
"0.60936284",
"0.60899895",
"0.60817695",
"0.6076592",
"0.6075705",
"0.60610753",
"0.60374844",
"0.6017105",
"0.60165876",
"0.60106856",
"0.60083413",
"0.60065544",
"0.60033274",
"0.5999606",
"0.5999376",
"0.59982526",
"0.59939903",
"0.5991709",
"0.59911543",
"0.59901094",
"0.59777826",
"0.5971559",
"0.59691",
"0.5969008",
"0.59669644",
"0.5966873",
"0.5950841",
"0.59380925",
"0.5932428",
"0.59273493",
"0.5920871",
"0.5912894",
"0.5901529",
"0.58961654",
"0.58957916",
"0.58876055",
"0.5878424",
"0.58780307",
"0.58754635",
"0.5867589",
"0.58636945",
"0.5863653",
"0.585716",
"0.5853569",
"0.58526075",
"0.58520764",
"0.5849442",
"0.5842589",
"0.584097",
"0.58321273",
"0.5826663",
"0.58238596",
"0.5821801",
"0.582111",
"0.5816486",
"0.58160424",
"0.5813976",
"0.5810388",
"0.5809488"
] | 0.77291065 | 0 |
Initializes the hydra visualization panel, which provides a visual representation of the managed logical units. | private void initializeExplorer() {
this.hydraExplorer = new HydraExplorer(this.stage);
this.splitPane.setTopComponent(this.hydraExplorer);
this.initializeExplorerCommands();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Visualizador() {\n initComponents();\n inicializar();\n }",
"private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }",
"private void initWorkspacePanel() {\n workspacePanel = new JPanel();\n workspacePanel.setLayout(new BorderLayout());\n workspacePanel.add(workspace, BorderLayout.CENTER);\n isWorkspacePanelInitialized = true;\n }",
"public SimulationView() {\n initComponents();\n }",
"private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }",
"public HealthUI() {\n init();\n }",
"public DRInitialPlotPanel() {\n initComponents();\n }",
"public void initialize() {\n\t\ttoolBar.setDrawingPanel(this.drawingPanel);\r\n\t\t//component initialize\r\n\t\tmenuBar.initialize();\r\n\t\ttoolBar.initialize();\r\n\t\tdrawingPanel.initialize();\r\n\t\t\r\n\t}",
"public void initialize(){\n\t\ttoolBar.setDrawingPanel(drawingPanel);\n\t\t// component initialization\n\t\tmenuBar.initialize();\t\n\t\ttoolBar.initialize();\t\n\t\tdrawingPanel.initialize();\n\t\t\n\t\t\n\t}",
"public Visualize() {\n initComponents();\n \n }",
"public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }",
"public LayerViewPanel()\r\n {\r\n \r\n }",
"private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }",
"public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}",
"public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }",
"public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }",
"public MondrianPanel()\n {\n setPreferredSize(new Dimension(size, size));\n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}",
"private void initializeConsole() {\n\t\tthis.hydraConsole = new HydraConsole(this.stage, this.commands);\n\t\tthis.splitPane.setBottomComponent(this.hydraConsole);\n\t}",
"private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}",
"private void init() {\n healthBars = new TextureAtlas( Gdx.files.internal( \"health/health.pack\" ) );\n buildUIElements();\n }",
"public void init() {\r\n\t\t/*\r\n\t\t * Initialize panel for base\r\n\t\t */\r\n\t\tbaseList = GameMap.getBaseList();\r\n\t\tthis.add(new BaseInfoPanel(baseList.getFirst(), controlPanel));\r\n\t}",
"public ControlView (SimulationController sc){\n myProperties = ResourceBundle.getBundle(\"english\");\n myStartBoolean = false;\n mySimulationController = sc;\n myRoot = new HBox();\n myPropertiesList = sc.getMyPropertiesList();\n setView();\n\n }",
"private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}",
"private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}",
"public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }",
"public DataSetPanel() {\n initComponents();\n }",
"public TShapePanel() {\r\ncommonInitialization();\r\n }",
"public void initBaseProductionSpace(){\n this.baseProductionPanel = new BaseProductionPanel(gui);\n\n this.add(baseProductionPanel);\n }",
"private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}",
"public HoaDonJPanel() {\n initComponents(); \n this.init();\n }",
"private void initStatisticsPanels() {\n tpSolver.removeAll();\n //create new Tabs\n\n statsPanel = new StatisticsChartExperiment(simulationRunning.solvers);\n statsPanel.resetDataSets();\n\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: SETUP\n// tpSolver.addTab(\"Multiple Solver\", pnRunInTextMode);\n// tpSolver.addTab(\"Experiment\", pnSetupSolver);\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: STATISTICS\n JTabbedPane tpStats = new JTabbedPane();\n txtLogSolver = new JTextArea(simulationRunning.getSolversInfo());\n txtLogSolver.setFont(new Font(\"courier new\", Font.PLAIN, 12));\n tpStats.addTab(\"Simulation \", new JScrollPane(txtLogSolver));\n\n int totalTabs = statsPanel.getTabs().getTabCount();\n for (int i = 0; i < totalTabs; i++) {\n tpStats.addTab(statsPanel.getTabs().getTitleAt(0), statsPanel.getTabs().getComponentAt(0));\n }\n\n //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: STATISTICS\n tpSolver.addTab(\"Evolution\", tpStats);\n tpSolver.setSelectedComponent(tpStats);\n tpStats.setSelectedIndex(1); // 0-config 1-statistics\n\n this.revalidate();\n this.repaint();\n }",
"public DashBoardPanel() {\n initComponents();\n }",
"public PanelPhysicalExam() {\n initComponents();\n setLanguage(null);\n }",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"public DemoPanel() {\n }",
"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 init() {\r\n\r\n\t\ttry {\r\n\t\t\ttextoHud = new Text();\r\n\t\t\tcompass = new Compass(m_planet);\r\n\t\t\tif(projectionType == Planet.CoordinateSystemType.GEOCENTRIC){\r\n\t\t\t\tcompass.setPanetType(Compass.Mode.SPHERIC);\r\n\t\t\t}\r\n\t\t\telse compass.setPanetType(Compass.Mode.FLAT);\r\n\t\t} catch (NodeException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tif (getProjectionType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Setting up longitud and latitud string\r\n\t\t\tlonText = PluginServices.getText(this, \"Ext3D.longitude\");\r\n\t\t\tlatText = PluginServices.getText(this, \"Ext3D.latitude\");\r\n\t\t} else {\r\n\t\t\tlonText = PluginServices.getText(this, \"X\") + \" \";\r\n\t\t\t;\r\n\t\t\tlatText = PluginServices.getText(this, \"Y\") + \" \";\r\n\t\t\t;\r\n\t\t}\r\n\r\n\t\t// Adding text to group\r\n\t\ttry {\r\n\t\t\tthis.addChild(textoHud);\r\n\t\t\tthis.addChild(compass);\r\n\t\t} catch (NodeException e) {\r\n\t\t\tlogger.error(\"Comand:\" + \"Error al a�adir nodo al hud.\",e);\r\n\t\t}\r\n\t\t\r\n\t\t//Setting up the lighting mode to disable (rgaitan)\r\n\t\ttry {\r\n\t\t\tgetOrCreateStateSet().setLightingMode(Node.Mode.OFF | Node.Mode.PROTECTED);\r\n\t\t} catch (InvalidValueException e) {\r\n\t\t\tlogger.error(\"Comand:\" + \"Error al inicializar las luces.\",e);\r\n\t\t};\r\n\r\n\t\t// Seting up text\r\n\t\ttextoHud.setCharacterSize(14);\r\n\t\ttextoHud.setColor(new Vec4(1.0f, 1.0f, 1.0f, 1.0f));\r\n\t\ttextoHud.setBackdropColor(0.0f, 0.0f, 1.0f, 1.0f);\r\n\r\n\t\tif (ResourcesFactory.exitsResouce(\"arial.ttf\"))\r\n\t\t\ttextoHud.setFont(ResourcesFactory.getResourcePath(\"arial.ttf\"));\r\n\t\telse {\r\n\t\t\t// TODO: This freeze the execution.. disable when working. \r\n\t\t\ttextoHud.setFont(\"arial.ttf\");\r\n\t\t}\r\n\r\n\t\ttextoHud.setPosition(10, 10, 0);\r\n\t\ttextoHud.setBackdropType(Text.BackdropType.OUTLINE);\r\n\t\ttextoHud.setAlignment(Text.AlignmentType.LEFT_CENTER);\r\n\t\t\r\n\t\tcompass.setUpdateListener(new UpdateNodeListener(){\r\n\r\n\t\t\tpublic void update(Node arg0) {\r\n\t\t\t\tcompass.update(m_canvas3d.getOSGViewer().getCamera());\r\n\t\t\t\t\r\n\t\t\t}});\r\n\t\t\r\n\t\t//disabling compass.\r\n\t\tcompass.setEnabledNode(false);\r\n\r\n\t\t// Add mouse listener to viewer\r\n\t\t((Component) m_canvas3d).addMouseMotionListener(this);\r\n\r\n\t\t// Update Hud\r\n\t\tupdateHud();\r\n\t}",
"private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new GridLayoutManager(3, 5, new Insets(0, 5, 5, 5), -1, -1));\n worldMap = new JPanel();\n worldMap.setLayout(new GridBagLayout());\n worldMap.setBackground(new Color(-1250068));\n rootPanel.add(worldMap, new GridConstraints(1, 0, 2, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(500, 500), null, null, 0, false));\n simulationTime = new JLabel();\n simulationTime.setText(\"0s\");\n rootPanel.add(simulationTime, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Simulation time:\");\n rootPanel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n rootPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n averageWaitingTime = new JLabel();\n averageWaitingTime.setText(\"0s\");\n rootPanel.add(averageWaitingTime, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Average waiting time\");\n rootPanel.add(label2, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"@Override\n public void setupPanel()\n {\n\n }",
"private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}",
"public StateVisualizer() {\r\n }",
"public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }",
"public PanelSgamacView1()\n {\n }",
"public VisualizarLlamada() {\n initComponents();\n }",
"public AStationPane() {\n }",
"public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(3, 3, new Insets(11, 11, 11, 11), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel1,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Magnetometer\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(7, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n magnetometerPort = new JComboBox();\n panel2.add(magnetometerPort,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label1 = new JLabel();\n label1.setText(\"COM port:\");\n panel2.add(label1,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label2 = new JLabel();\n label2.setText(\"Calibration constant with polarity (Amē/flux quantum)\");\n panel2.add(label2,\n new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label3 = new JLabel();\n label3.setText(\"X\");\n panel2.add(label3,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label4 = new JLabel();\n label4.setText(\"Y\");\n panel2.add(label4,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label5 = new JLabel();\n label5.setText(\"Z\");\n panel2.add(label5,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n yAxisCalibration = new JFormattedTextField();\n yAxisCalibration.setHorizontalAlignment(4);\n panel2.add(yAxisCalibration,\n new GridConstraints(4, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n xAxisCalibration = new JFormattedTextField();\n xAxisCalibration.setHorizontalAlignment(4);\n panel2.add(xAxisCalibration,\n new GridConstraints(3, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n zAxisCalibration = new JFormattedTextField();\n zAxisCalibration.setHorizontalAlignment(4);\n panel2.add(zAxisCalibration,\n new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1,\n new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel3,\n new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Demagnetizer\"));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(panel4,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final Spacer spacer2 = new Spacer();\n panel4.add(spacer2,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new GridLayoutManager(8, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel4.add(panel5,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JLabel label6 = new JLabel();\n label6.setText(\"COM port:\");\n panel5.add(label6,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label7 = new JLabel();\n label7.setText(\"Ramp\");\n panel5.add(label7,\n new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label8 = new JLabel();\n label8.setText(\"Delay\");\n panel5.add(label8,\n new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label9 = new JLabel();\n label9.setText(\"Maximum Field\");\n panel5.add(label9,\n new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n maximumField = new JFormattedTextField();\n maximumField.setHorizontalAlignment(4);\n panel5.add(maximumField,\n new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n demagRamp = new JComboBox();\n panel5.add(demagRamp,\n new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n demagDelay = new JComboBox();\n panel5.add(demagDelay,\n new GridConstraints(7, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n demagnetizerPort = new JComboBox();\n panel5.add(demagnetizerPort,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel6,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel6.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Handler\"));\n final JPanel panel7 = new JPanel();\n panel7.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel6.add(panel7,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel8 = new JPanel();\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel7.add(panel8,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel9 = new JPanel();\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel8.add(panel9,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel10 = new JPanel();\n panel10.setLayout(new GridLayoutManager(17, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel9.add(panel10,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n rotation = new JFormattedTextField();\n rotation.setHorizontalAlignment(4);\n panel10.add(rotation,\n new GridConstraints(15, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label10 = new JLabel();\n label10.setText(\"Rotation counts\");\n panel10.add(label10,\n new GridConstraints(15, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer3 = new Spacer();\n panel10.add(spacer3,\n new GridConstraints(16, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n deceleration = new JFormattedTextField();\n deceleration.setHorizontalAlignment(4);\n panel10.add(deceleration,\n new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label11 = new JLabel();\n label11.setText(\"Velocity\");\n panel10.add(label11,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n velocity = new JFormattedTextField();\n velocity.setHorizontalAlignment(4);\n panel10.add(velocity,\n new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label12 = new JLabel();\n label12.setText(\"Velocity Meas.\");\n panel10.add(label12,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n measurementVelocity = new JFormattedTextField();\n measurementVelocity.setHorizontalAlignment(4);\n panel10.add(measurementVelocity,\n new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label13 = new JLabel();\n label13.setText(\"Transverse Y AF\");\n panel10.add(label13,\n new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n transverseYAFPosition = new JFormattedTextField();\n transverseYAFPosition.setHorizontalAlignment(4);\n panel10.add(transverseYAFPosition,\n new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label14 = new JLabel();\n label14.setText(\"Translation positions\");\n panel10.add(label14,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label15 = new JLabel();\n label15.setText(\"Axial AF\");\n panel10.add(label15,\n new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n axialAFPosition = new JFormattedTextField();\n axialAFPosition.setHorizontalAlignment(4);\n panel10.add(axialAFPosition,\n new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label16 = new JLabel();\n label16.setText(\"Sample Load\");\n panel10.add(label16,\n new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n sampleLoadPosition = new JFormattedTextField();\n sampleLoadPosition.setHorizontalAlignment(4);\n panel10.add(sampleLoadPosition,\n new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label17 = new JLabel();\n label17.setText(\"Background\");\n panel10.add(label17,\n new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n backgroundPosition = new JFormattedTextField();\n backgroundPosition.setHorizontalAlignment(4);\n panel10.add(backgroundPosition,\n new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label18 = new JLabel();\n label18.setText(\"Measurement\");\n panel10.add(label18,\n new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n measurementPosition = new JFormattedTextField();\n measurementPosition.setHorizontalAlignment(4);\n panel10.add(measurementPosition,\n new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationAcc = new JFormattedTextField();\n rotationAcc.setHorizontalAlignment(4);\n panel10.add(rotationAcc,\n new GridConstraints(13, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationVelocity = new JFormattedTextField();\n rotationVelocity.setHorizontalAlignment(4);\n rotationVelocity.setText(\"\");\n panel10.add(rotationVelocity,\n new GridConstraints(12, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationDec = new JFormattedTextField();\n rotationDec.setHorizontalAlignment(4);\n panel10.add(rotationDec,\n new GridConstraints(14, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label19 = new JLabel();\n label19.setText(\"Rotation acc.\");\n panel10.add(label19,\n new GridConstraints(13, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label20 = new JLabel();\n label20.setText(\"Rotation velocity\");\n panel10.add(label20,\n new GridConstraints(12, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label21 = new JLabel();\n label21.setText(\"Rotation dec.\");\n panel10.add(label21,\n new GridConstraints(14, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label22 = new JLabel();\n label22.setText(\"COM port:\");\n panel10.add(label22,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n handlerPort = new JComboBox();\n panel10.add(handlerPort,\n new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label23 = new JLabel();\n label23.setText(\"Acceleration\");\n panel10.add(label23,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n acceleration = new JFormattedTextField();\n acceleration.setHorizontalAlignment(4);\n panel10.add(acceleration,\n new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label24 = new JLabel();\n label24.setText(\"Deceleration\");\n panel10.add(label24,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JPanel panel11 = new JPanel();\n panel11.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel11,\n new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel11.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));\n final JPanel panel12 = new JPanel();\n panel12.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel11.add(panel12,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n panel12.add(cancelButton,\n new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer4 = new Spacer();\n panel12.add(spacer4,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n panel12.add(saveButton,\n new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer5 = new Spacer();\n panel12.add(spacer5,\n new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));\n warningLabel = new JLabel();\n warningLabel.setHorizontalAlignment(0);\n warningLabel.setHorizontalTextPosition(0);\n warningLabel.setText(\"WARNING! Incorrect configuration may damage the equipment.\");\n contentPane.add(warningLabel,\n new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new BorderLayout(0, 0));\n }",
"public RegionView() {\n initComponents();\n this.regionController=new RegionController(new MyConnection().getConnection());\n bindingTable();\n }",
"@Override\r\n public void initialiseEmptyPanel()\r\n {\r\n gaugeName = Helpers.createLabel(\"Default\");\r\n \r\n gauge = new Radial();\r\n \r\n gauge.setPreferredSize(new Dimension(300,300));\r\n setTitle(\"Default\");\r\n add(gaugeName);\r\n add(gauge);\r\n \r\n }",
"private void initializePhaseConfigView() {\n resetViews();\n phaseConfigView.initialize(phasesUI, skin);\n }",
"public MainDisplay(SelectedUnitManager selectedUnitManager, GameObjectManager gom, UnitActionDisplay uadisp, double width, double height, ImageView map) {\n\t\tmyUnitActionDisp = uadisp;\n\t\tmyGameObjectManager = gom;\n\t\tmyDisplayGameObjects = new ArrayList<>();\n\t\tmySelectedUnitManager = selectedUnitManager;\n\t\tmyMainDisplay = new Group();\n\t\tmyWidth = width;\n\t\tmyHeight = height;\n\t\tmyMap = map;\n\t\tinitialize();\n\t\tmyMainDisplay.getChildren().addAll(myMap, myDisplayables, myMoveWindowButtons);\n\t}",
"public MetadataPanel()\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }",
"private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}",
"private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"public Display() {\n initComponents();\n }",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"private void initPanel() {\n final JPanel mainPanel = new JPanel(new BorderLayout());\n mainPanel.setBorder(new TitledBorder(\"Edit Indegree Condition\"));\n\n final JPanel operatorPanel = new JPanel(new BorderLayout());\n operatorPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n operatorPanel.add(m_operatorBox, BorderLayout.CENTER);\n\n final JPanel inputPanel = new JPanel(new BorderLayout());\n inputPanel.setBorder(new EmptyBorder(5, 0, 5, 5));\n inputPanel.add(m_inputField, BorderLayout.CENTER);\n\n final JPanel containerPanel = new JPanel(new BorderLayout());\n containerPanel.add(operatorPanel, BorderLayout.WEST);\n containerPanel.add(inputPanel, BorderLayout.CENTER);\n\n mainPanel.add(containerPanel, BorderLayout.NORTH);\n\n add(mainPanel, BorderLayout.CENTER);\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"public HUD(MoleculePanel mP, GamePanel gP) {\n moleculePanel1 = mP;\n gamePanel1 = gP;\n $$$setupUI$$$();\n add(panel1);\n }",
"public DictionariesPanel() {\n \n initComponents();\n \n postInit();\n }",
"public WaveView() {\n initComponents();\n }",
"public Region() {\n initComponents();\n bindingTabel();\n }",
"private void initComponents() {\n\t\tfiltersPanel = new FiltersPanel(mainView);\n\t\tdetailsPanel = new DetailsPanel();\n\t\t\n\t\tthis.setStylePrimaryName(\"variantdisplay\");\n\t\tthis.addWest(filtersPanel, 240);\n\n\t\tvarTable = new VarTable(this, colModel);\n\n\t\t\n\t\t//details panel listens to variant selection events generated by the varTable\n\t\tvarTable.addVariantSelectionListener(detailsPanel); \n\t\tvarManager.addListener(this);\n\t\tcolModel.addListener(this);\n\t\tfiltersPanel.addListener(this);\n\t\t\n\t\tthis.addSouth(detailsPanel, 300.0);\n\t\tthis.add(varTable);\n\t}",
"public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}",
"public Dashboard() {\n initComponents();\n }",
"public void onModuleLoad() {\n RootPanel.get(\"mock-simple-container\").add(new RpcSampleView());\n }",
"private void init() {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n controlPanel = new ControlPanel(this);\n canvas = new DrawingPanel(this);\n shapeController = ShapeController.getInstance();\n\n shapeController.setFactory(new RegularPolygonShapeFactory(6, 50));\n optionsPanel = new RegularPolygonOptionsPanel(this, 6, 50);\n toolPanel = new ToolPanel(this);\n\n add(optionsPanel, BorderLayout.NORTH);\n add(canvas, BorderLayout.CENTER);\n add(controlPanel, BorderLayout.SOUTH);\n add(toolPanel, BorderLayout.EAST);\n\n pack();\n }",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}",
"public RobotContainer()\n {\n SmartDashboard.putData(new InstantCommand(\n () -> flywheelSubsystem.hoodEncoder.setPosition(0)\n ));\n // Configure the button bindings\n configureButtonBindings();\n }",
"public HotelPanel() {\n initComponents();\n showAllHotelToTable();\n }",
"private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}",
"public GraphView() {\r\n graphModel = new GraphModel();\r\n graphModel.setNoOfChannels(0);\r\n graphModel.setXLength(1);\r\n initializeGraph();\r\n add(chartPanel);\r\n setVisible(true);\r\n }",
"private void showMonitorVisualization() {\n\t\tsetVisualization(new MonitorVisualization(rootComposite, controller, checklist));\n\t}",
"public FreimapVisualPanel2() {\n initComponents();\n }",
"public ReportPane() {\n initComponents();\n }",
"public kinpanel() {\n initComponents();\n }",
"private void buildUIElements() {\n uiCamera = new OrthographicCamera( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT );\n uiViewport = new ExtendViewport( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT, uiCamera );\n\n //Build the table.\n uiStage = new Stage( uiViewport );\n rootTable = new Table( VisUI.getSkin() );\n uiStage.addActor( rootTable );\n rootTable.setFillParent( true );\n rootTable.left().top();\n\n //Fill up the healthMeter is images to be used as healthBars.\n for ( int i = 0; i < 20; i++ ) {\n healthMeter.add( new Image( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }",
"private void initComposants() {\r\n\t\tselectionMatierePanel = new SelectionMatierePanel(1);\r\n\t\ttableauPanel = new TableauPanel(1);\r\n\t\tadd(selectionMatierePanel, BorderLayout.NORTH);\r\n\t\tadd(tableauPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t}",
"@Override\n public void initialize() {\n sectionsPanel.removeAll();\n \n section1 = new ProgressReportSectionSettingPanel(this);\n section2 = new ProgressReportSectionSettingPanel(this);\n section3 = new ProgressReportSectionSettingPanel(this);\n section4 = new ProgressReportSectionSettingPanel(this);\n addSectionElement(0,section1);\n addSectionElement(1,section2);\n addSectionElement(2,section3);\n addSectionElement(3,section4);\n \n refresh();\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel.setMinimumSize(new Dimension(-1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n nodeList.setSelectionMode(1);\n scrollPane1.setViewportView(nodeList);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n addNodeButton = new JButton();\n this.$$$loadButtonText$$$(addNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_addNode\"));\n panel1.add(addNodeButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n removeNodeButton = new JButton();\n this.$$$loadButtonText$$$(removeNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_removeNode\"));\n panel1.add(removeNodeButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"language\").getString(\"title_nodes\"));\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"@Override\r\n\tpublic void initAditionalPanelElements() {\n\t\tchartDataset = new TimeSeriesCollection();\r\n\t\tfor(int i = 0; i < categoryVariableBuffers.size(); i++) \r\n\t\t\tchartDataset.addSeries(categoryVariableBuffers.get(i).getDataSerie());\r\n\t}",
"private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}",
"public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }",
"public ImageDataSetVisualPanel3() {\n initComponents();\n fillComboBox();\n }",
"private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }",
"public RoadNetworkStatisticComparationPanel() {\n initComponents();\n if (aggTopComponent1.isStatusBarVisible()) {\n aggTopComponent1.setStatusBarVisible(false);\n }\n aggTopComponent1.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n updateMap();\n aggTopComponent1.setDisplayToFitMapMarkers();\n }\n\n @Override\n public void componentShown(ComponentEvent e) {\n updateMap();\n aggTopComponent1.setDisplayToFitMapMarkers();\n }\n });\n }",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void initialize() {\r\n label = new JLabel();\r\n panel = new JPanel();\r\n }",
"private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}",
"public void init() {\n setLayout(new BorderLayout());\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"private void initComponent(){\n chart = view.findViewById(R.id.chart1);\n imMood = view.findViewById(R.id.mood_view);\n btnSetMood = view.findViewById(R.id.btnSetMood);\n tvToday = view.findViewById(R.id.step_today);\n tvStepTakenToday = view.findViewById(R.id.step_takens_today);\n tvStepRunningToday = view.findViewById(R.id.step_running_today);\n btnSetMood2 = view.findViewById(R.id.btnSetMood2);\n tvToday.setText(DateUtilities.getCurrentDateInString());\n tvStepRunningToday.setText(\"0 km\");\n }",
"private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}"
] | [
"0.63820475",
"0.61836386",
"0.6147676",
"0.6143351",
"0.61415",
"0.6138148",
"0.61090946",
"0.608928",
"0.6064507",
"0.6025706",
"0.59960264",
"0.59597397",
"0.5940474",
"0.5937976",
"0.59303844",
"0.59169614",
"0.5906832",
"0.59008074",
"0.5884278",
"0.5883347",
"0.587039",
"0.5870065",
"0.5850033",
"0.58403724",
"0.58286804",
"0.5819233",
"0.58144116",
"0.58100396",
"0.57943094",
"0.57882756",
"0.57847345",
"0.57825524",
"0.57764834",
"0.5775736",
"0.5771644",
"0.57715636",
"0.57714045",
"0.5768121",
"0.57433665",
"0.5740259",
"0.5726882",
"0.5714803",
"0.57113224",
"0.5708107",
"0.56898785",
"0.5677527",
"0.5676468",
"0.56682384",
"0.56655663",
"0.5661103",
"0.5650833",
"0.5644631",
"0.56374556",
"0.5631958",
"0.5630772",
"0.5627308",
"0.5625599",
"0.56254596",
"0.5619115",
"0.5610449",
"0.5610047",
"0.56066793",
"0.56065875",
"0.56061757",
"0.5601857",
"0.5600341",
"0.5599935",
"0.5598435",
"0.55963755",
"0.559533",
"0.5588556",
"0.5588169",
"0.5586785",
"0.5585278",
"0.5582201",
"0.55812",
"0.5580751",
"0.55792046",
"0.5577457",
"0.5573668",
"0.55708414",
"0.5565464",
"0.5561991",
"0.5556494",
"0.55525494",
"0.5549959",
"0.5544652",
"0.5544031",
"0.553995",
"0.5538189",
"0.5525892",
"0.5521787",
"0.5520598",
"0.5517727",
"0.55152434",
"0.5515186",
"0.5512822",
"0.5510888",
"0.55105305",
"0.55041534"
] | 0.5657018 | 50 |
Initializes the gui commands relevant for the hydra explorer. | private void initializeExplorerCommands() {
this.commands.add(new GUICmdGraphMouseMode("Transforming",
"GUICmdGraphMouseMode.Transforming", this.hydraExplorer,
ModalGraphMouse.Mode.TRANSFORMING));
this.commands.add(new GUICmdGraphMouseMode("Picking",
"GUICmdGraphMouseMode.Picking", this.hydraExplorer,
ModalGraphMouse.Mode.PICKING));
this.commands.add(new GUICmdGraphRevert("Revert to Selected",
GUICmdGraphRevert.DEFAULT_ID, this.hydraExplorer));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeExplorer() {\n\t\tthis.hydraExplorer = new HydraExplorer(this.stage);\n\t\tthis.splitPane.setTopComponent(this.hydraExplorer);\n\t\tthis.initializeExplorerCommands();\n\t}",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}",
"public void initDefaultCommand() {\n \n }",
"private void initializeConsole() {\n\t\tthis.hydraConsole = new HydraConsole(this.stage, this.commands);\n\t\tthis.splitPane.setBottomComponent(this.hydraConsole);\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"public void initDefaultCommand() {\n \n }",
"public ExecutantGui() {\n initComponents();\n }",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new HatchExtenderCommand());\n\t}",
"public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }",
"public void initDefaultCommand() \n {\n }",
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"private void initializeMenuBar() {\n\t\tthis.hydraMenu = new HydraMenu(this.commands);\n\t\tthis.setJMenuBar(this.hydraMenu);\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new Drive());\n }",
"public void initDefaultCommand() {\n\t}",
"public void initDefaultCommand()\n {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand()\n\t{\n\t}",
"private void initComponents() {\n\n // Executes when window is closed\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent) {\n store.run();\n setVisible(false);\n }\n });\n\n // Set up commands label\n commands = new JLabel(\"Commands: \");\n newGUI.setButtonFontSize(commands, fontSize);\n\n String[] userCommands = store.currentUser.returnSelectCommandsList();\n // Set up commands Combo Box\n availableCommands = new JComboBox<>(userCommands);\n availableCommands.setEditable(false);\n newGUI.setButtonFontSize(availableCommands, fontSize);\n availableCommands.addActionListener(this);\n\n currentCommand = availableCommands.getItemAt(0); // Set first command as default\n\n // Set up enter button\n enterButton = new JButton(\"Enter\");\n newGUI.setButtonFontSize(enterButton, fontSize);\n enterButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n enterButtonActionPerformed(evt);\n }\n });\n\n addComponents(getContentPane());\n }",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"protected void initializeGUI() {\n\n\t}",
"public orgGui() {\n initComponents();\n }",
"protected void initDefaultCommand() {\n \t\t\n \t}",
"protected void setupUI() {\n\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n this.treeController = new FXMLAllTrees(interactions, edit, menus, trees);\n this.treeController.start();\n this.drawingController = new FXMLAllDrawings(interactions, edit, menus, tabs);\n this.drawingController.start();\n suggestionsController = new SuggestionsController(edit, suggestions);\n suggestionsController.start();\n\n upButton.setOnAction(event -> {\n interactions.navigateUp();\n event.consume();\n });\n downButton.setOnAction(event -> {\n interactions.navigateDown();\n event.consume();\n });\n\n newMenuItem.setOnAction(event -> {\n if (interactions.checkSave(\"Save before closing?\")) {\n String now = ISO8601.now();\n edit.clear(now);\n }\n event.consume();\n });\n openMenuItem.setOnAction(event -> {\n if (interactions.checkSave(\"Save before closing?\")) {\n interactions.tryLoadChooser(upButton.getScene().getWindow(), edit);\n }\n event.consume();\n });\n revertMenuItem.setOnAction(event -> {\n Optional<RecordStorage> dir = edit.getStorage().getChild();\n if (dir.isPresent()) {\n if (interactions.checkSave(\"Save before reloading?\")) {\n try {\n edit.load(dir.get(), ISO8601.now());\n } catch (IOException ex) {\n LOG.log(Level.SEVERE, null, ex);\n }\n }\n }\n event.consume();\n });\n ContextMenus.initPerInstanceSubmenu(openRecentMenu,\n () -> RecentFiles.getRecentFiles(),\n path -> new MenuItem(path.getFileName().toString()),\n (event, path) -> {\n if (interactions.checkSave(\"Save before closing?\")) {\n interactions.tryLoad(edit, CSVStorage.forPath(path));\n }\n event.consume();\n },\n Optional.empty());\n exploreMenuItem.setOnAction(event -> {\n Optional<RecordStorage> directory = edit.getStorage().getChild();\n if (directory.isPresent() && directory.get() instanceof FileStorage) {\n FileStorage fileStorage = (FileStorage) directory.get();\n try {\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(\"nautilus\", fileStorage.getPath().toString());\n builder.directory(fileStorage.getPath().toFile());\n builder.inheritIO();\n builder.start();\n } catch (IOException ex) {\n try {\n /*\n * I'm hitting a bug where this call hangs the whole\n * application on Ubuntu, so we only do this as a\n * fallback when nautilus is not available.\n */\n Desktop.getDesktop().open(fileStorage.getPath().toFile());\n } catch (IOException ex2) {\n ex2.addSuppressed(ex);\n LOG.log(Level.WARNING, null, ex2);\n }\n }\n } else {\n try {\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(\"nautilus\");\n builder.inheritIO();\n builder.start();\n } catch (IOException ex) {\n try {\n /*\n * I'm hitting a bug where this call hangs the whole\n * application on Ubuntu, so we only do this as a\n * fallback when nautilus is not available.\n */\n Desktop.getDesktop().open(Paths.get(\".\").toFile());\n } catch (IOException ex2) {\n ex2.addSuppressed(ex);\n LOG.log(Level.WARNING, null, ex2);\n }\n }\n }\n event.consume();\n });\n Runnable updateExploreMenuItemSensitivity = () -> {\n exploreMenuItem.setDisable(\n !edit.getStorage().getChild().isPresent());\n };\n edit.subscribe(updateExploreMenuItemSensitivity);\n updateExploreMenuItemSensitivity.run();\n\n saveMenuItem.setOnAction(event -> {\n interactions.trySave();\n event.consume();\n });\n exitMenuItem.setOnAction(event -> {\n interactions.tryExit();\n event.consume();\n });\n undoMenuItem.setOnAction(event -> {\n edit.undo();\n event.consume();\n });\n redoMenuItem.setOnAction(event -> {\n edit.redo();\n event.consume();\n });\n\n upMenuItem.setOnAction(event -> {\n interactions.navigateUp();\n event.consume();\n });\n downMenuItem.setOnAction(event -> {\n interactions.navigateDown();\n event.consume();\n });\n\n aboutMenuItem.setOnAction(event -> {\n Parent root;\n try {\n URL resource = getClass().getResource(\"/fxml/About.fxml\");\n root = FXMLLoader.load(resource);\n Stage stage = new Stage();\n stage.setTitle(\"About\");\n stage.setScene(new Scene(root, 450, 450));\n stage.show();\n } catch (RuntimeException | IOException ex) {\n LOG.log(Level.SEVERE, null, ex);\n }\n });\n\n versionMenuController = new VersionMenuController(\n edit, diffBranchMenu, diffVersionMenu,\n versionsMenu, diffNoneMenuItem);\n versionMenuController.start();\n\n commitMenuItem.setOnAction(event -> {\n if (interactions.checkSave(\"Save before committing?\")) {\n TextInputDialog dialog = new TextInputDialog();\n dialog.setTitle(\"Commit changes\");\n dialog.setHeaderText(\"Enter Commit Message\");\n\n Optional<String> interactionResult = dialog.showAndWait();\n if (interactionResult.isPresent()) {\n try {\n edit.getStorage().getChild().ifPresent(storage -> {\n try {\n storage.commit(interactionResult.get());\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n });\n } catch (UncheckedIOException ex) {\n LOG.log(Level.SEVERE, null, ex.getCause());\n }\n }\n }\n event.consume();\n });\n Runnable updateCommitMenuItemSensitivity = () -> {\n commitMenuItem.setDisable(\n !edit.getStorage().getChild().map(RecordStorage::canCommit).orElse(false));\n };\n edit.subscribe(updateCommitMenuItemSensitivity);\n updateCommitMenuItemSensitivity.run();\n\n edit.subscribe(buttonDisable);\n buttonDisable.run();\n }",
"private static void initAndShowGUI() {\n }",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new SetPlungerMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }",
"@Override\n public void initDefaultCommand() {\n\n }",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"@Override\n public void initDefaultCommand() \n {\n }",
"protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}",
"public static void initializeDefaultCommands()\n {\n m_chassis.setDefaultCommand(m_inlineCommands.m_driveWithJoystick);\n // m_intake.setDefaultCommand(null);\n m_chamber.setDefaultCommand(new ChamberIndexBalls());\n // m_launcher.setDefaultCommand(null);\n // m_climber.setDefaultCommand(null);\n // m_controlPanel.setDefaultCommand(null);\n }",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }",
"@Override\r\n\tpublic void initGui() {\r\n\t final int buttonSize = SIZE_X - 10;\r\n\r\n\t _curScrollValue = 0;\r\n\t buttonList.clear();\r\n\t _selectedList.clear();\r\n\r\n\t _deleteButton = new GuiButton(0, (width - buttonSize) / 2, (height + SIZE_Y) / 2 + 12, buttonSize, 20, \"Delete Selected Waypoints\");\r\n\t \r\n\t // load the saved waypoint data to initialize this gui\r\n\t UltraTeleportWaypoint.load();\r\n\t}",
"protected void initDefaultCommand() {\n\t\tsetDefaultCommand(CommandBase.scs);\r\n\t}",
"@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}",
"public void initDefaultCommand() {\n setDefaultCommand(new TankDrive());\n }",
"public void initDefaultCommand() {\r\n setDefaultCommand(new TankDrive());\r\n }",
"private void initUI() {\n }",
"public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"@Override\n public void initGUI() {\n\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new UserDriveCommand());\n\t}",
"public UI() \n {\n // initiate attributs\n loadedDictionaryFilename = \"\";\n lexiNodeTrees = new ArrayList<>();\n \n // initiate window component\n initComponents();\n setTitle(\"Dictio\");\n \n // empty lists\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n this.getAllWordsList().setModel( new DefaultListModel() );\n }",
"public MenuAdminGUI() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }"
] | [
"0.7207112",
"0.6869463",
"0.68054974",
"0.67324877",
"0.668447",
"0.6591219",
"0.65798944",
"0.657115",
"0.6545247",
"0.6536451",
"0.6522175",
"0.6501091",
"0.6484122",
"0.64723086",
"0.6462507",
"0.645615",
"0.6455623",
"0.64376336",
"0.64305985",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6429199",
"0.6427069",
"0.64246166",
"0.6420478",
"0.6415579",
"0.6411755",
"0.6409955",
"0.6395",
"0.63825357",
"0.6372081",
"0.6371308",
"0.63659316",
"0.63533694",
"0.6343031",
"0.6343031",
"0.6341348",
"0.6339967",
"0.63379264",
"0.6320546",
"0.6319538",
"0.63153213",
"0.6286232",
"0.62858003",
"0.6279297",
"0.62714374",
"0.6270731",
"0.62684023",
"0.62684023",
"0.62684023",
"0.62684023",
"0.62684023",
"0.62684023",
"0.62684023",
"0.62653464",
"0.62653464",
"0.62653464",
"0.6260085",
"0.625939",
"0.6254854",
"0.6254854",
"0.6254854",
"0.6254854",
"0.6254854",
"0.6254854",
"0.6253379",
"0.6252709",
"0.6241694",
"0.6240643",
"0.62369263",
"0.62341726",
"0.6231982",
"0.6222296",
"0.6213102",
"0.61947733",
"0.6174378",
"0.6174378",
"0.6174378"
] | 0.82308656 | 0 |
Initialize the hydra console which is used to display output to the user and to receive command line input from the user. | private void initializeConsole() {
this.hydraConsole = new HydraConsole(this.stage, this.commands);
this.splitPane.setBottomComponent(this.hydraConsole);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}",
"abstract void initiateConsole();",
"public Console() {\n initComponents();\n }",
"public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"private void initializeConsole()\n {\n final ConsolePrintStream consolePrintStream = new ConsolePrintStream(this.informationMessage);\n System.setOut(consolePrintStream.getPrintStream());\n }",
"public static void setup() {\n\t\toutputs.add(new Console.stdout());\n\t}",
"public ConsoleView() {\n\t\tcrapsControl = new CrapsControl();\n\t\tinput = new Scanner(System.in);\n\t}",
"public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }",
"public Skeleton() throws IOException {\n\t\tconsoleIn = new BufferedReader(new InputStreamReader(System.in));\n\t}",
"public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}",
"public SpacetimeCLI() {\n world = new World();\n input = new Scanner(System.in);\n jsonReader = new JsonReader(JSON_STORE);\n jsonWriter = new JsonWriter(JSON_STORE);\n runApp();\n }",
"private CommandLine() {\n\t}",
"private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }",
"Console(/*@ non_null */ Properties p, /*@ non_null */ CommandHandler ch)\n\t{\n\t\tsuper(\"Console\");\n\n\t\tthis._handler = ch;\n\t}",
"public Terminal() {\n initComponents();\n }",
"public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"void setup(CommandLine cmd);",
"public Console(/*@ non_null */ CommandHandler ch)\n\t{\n\t\tsuper(\"Console\");\n\t\tthis._handler = ch;\n\t}",
"public static void main(String[] _args) {\n \n \n Logger logger = LoggerFactory.getLogger(BluezShell.class);\n logger.debug(\"Initializing Shell\");\n \n \n \n try(EmbeddedShell shell = new EmbeddedShell(System.in, System.out, System.err)) {\n // initialize the shell\n shell.initialize(new ShellInitializeCommand(), new ShellDeInitializeCommand());\n // register our commands\n \n // adapter commands\n shell.registerCommand(new ShowBluetoothAdapters());\n shell.registerCommand(new SelectAdapter());\n \n // device commands\n shell.registerCommand(new ScanDevices());\n shell.registerCommand(new ShowDevices());\n \n // start shell\n shell.start(\"bluezShell > \");\n } catch (Exception _ex) {\n // EndOfFileException will occur when using CTRL+D to exit shell\n // UserInterruptException will occur when using CTRL+C\n if (! (_ex instanceof EndOfFileException) && !(_ex instanceof UserInterruptException)) { \n System.err.println(\"Error: (\" + _ex.getClass().getSimpleName() + \"): \" + _ex.getMessage());\n } \n } finally {\n DeviceManager.getInstance().closeConnection();\n logger.debug(\"Deinitializing Shell\");\n }\n\n }",
"public HelloWorldProgramOutput ()\n {\n initialize();\n }",
"public static void main( String[] cmdLine ) throws MalformedURLException,\n NotBoundException, RemoteException\n {\n TuiConsole tuiConsole = new TuiConsole();\n System.exit( tuiConsole.start( cmdLine ) );\n }",
"public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tprotected void setUp() {\n\t\ttry {\n\t\t\tconsole = new MMAConsole();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public int start( String[] cmdLine )\n {\n int exitCode = 0;\n Console console = null;\n\n if (null == System.getSecurityManager())\n {\n System.setSecurityManager( new RMISecurityManager() );\n }\n\n // Load the hsp properties.\n Property.loadProperties( cmdLine );\n Property.load( TuiConsole.class );\n\n // See if the command line has the console.\n String registryHost = System.getProperty( Console.JICOS_CONSOLE_HOST );\n int registryPort = RegistrationManager.PORT;\n boolean showHelp = false;\n //\n switch (cmdLine.length)\n {\n case 1:\n if (\"-help\".equals( cmdLine[0] ))\n {\n showHelp = true;\n }\n else\n {\n loadStartupConfig( cmdLine[0] );\n }\n break;\n\n case 0:\n break;\n\n default:\n showHelp = true;\n exitCode = 1;\n break;\n }\n\n if (showHelp)\n {\n System.err.println( \"Usage: <java> TuiConsole [config.xml]\" );\n if( 0 != exitCode )\n {\n System.exit( exitCode );\n }\n }\n\n \n // Startup files.\n String fileName = null;\n String homePrefix = \"/.jicos/\";\n String localPrefix = \".\";\n String suffix = \".conf\";\n \n if( System.getProperty( \"os.name\" ).toLowerCase().startsWith( \"window\" ) )\n {\n homePrefix = \"Application Data/Jicos/\";\n localPrefix = \"\";\n }\n \n // See if there is a global startupfile.\n if( null != (fileName = System.getProperty( \"user.home\" )) )\n {\n fileName += homePrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n }\n \n // See if there is a start-up file in the local directory\n fileName = \"./\" + localPrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n \n mainLoop();\n return (CMD_Error);\n }",
"void setConsole(ConsoleManager console);",
"public OutputConsole() {\n initComponents();\n setSize (1520, 750);\n }",
"public static void initiate() {\n System.out.println(\n \" Welcome to crawler by sergamesnius \\n\" +\n \" 1. Start \\n\" +\n \" 2. Options \\n\" +\n \" 3. Print top pages by total hits \\n\" +\n \" 4. Exit \\n\" +\n \"------======------\"\n\n\n );\n try {\n int input = defaultScanner.nextInt();\n switch (input) {\n case 1:\n System.out.println(\"Input URL link\");\n Console.start(defaultScanner.next());\n break;\n case 2:\n Console.options();\n break;\n case 3:\n Console.printResultsFromCSV();\n break;\n case 4:\n return;\n }\n } catch (NoSuchElementException e) {\n System.err.println(\"Incorrect input\");\n defaultScanner.next();\n }\n Console.initiate();\n }",
"private ConsoleScanner() {}",
"public static void programStandardInit() {\r\n System.setSecurityManager(null);\r\n LoggingUtils.setupConsoleOnly();\r\n }",
"public ConsoleGame() {\n\t\tSystem.out.println(\"Welcome to Quoridor!\");\n\t\twhile (!setUp());\n\t}",
"public static void main(String[] args) {\n \tWelcome console = null;\n\t\ttry {\n\t\t\t//console = new Welcome(conn);\n\t\t\tconsole = new Welcome();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \tconsole.start();\n }",
"public AbstractCommand()\n {\n this.logger = new ConsoleLogger();\n }",
"private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}",
"public Console(Client client, Controller controller){\r\n\t\tsuper(client,controller);\r\n\t\tsc = new Scanner(System.in);\r\n\t\tnew Thread(new ReadInput()).start();\r\n\t}",
"public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }",
"public static void init()\n {\n debugger = new Debugger(\"log\");\n info = true;\n }",
"public JsConsoleManagerTest() {\n console = new JsConsoleManager();\n }",
"public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }",
"public static void main(String[] args) {\n\t\tUI ui = new UI();\n\t\tui.console();\n\t}",
"private Shell() { }",
"public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }",
"public void init() {\n System.out.println(\"init\");\n }",
"public CommandLineBuilder()\n {\n m_commandLine = new String[0];\n }",
"public MainEntryPoint() {\r\n\r\n }",
"public ConsolePanel() throws Exception, SAXException, IOException\r\n\t{\r\n\t\tgame=null;\r\n\t\tgame_started=false;\r\n\t\tgs=new MainMenuDialog();\r\n\t\tMyKeyHandler kh = new MyKeyHandler();\r\n\t\taddKeyListener(kh);\r\n\t\tsetFocusable(true);\r\n\t}",
"public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }",
"private ConsoleUtils(String name) {\n instance = this;\n fConsole = new IOConsole(\"Mobius\" + name + \" Console\", EImages.TOOL.getDescriptor());\n fConsole.activate();\n ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[]{fConsole});\n final Display display = PlatformUI.getWorkbench().getDisplay();\n fRed = new Color(display, RED);\n fBlue = new Color(display, BLUE);\n fPurple = new Color(display, PURPLE);\n fBlack = new Color(display, BLACK);\n }",
"public static void main( String[] args )\n\t{\n\t\tResourceBundle rbm = ResourceBundle.getBundle( rbmFile );\n\t\tCommandLine userInput = prepCli( prepCliParser(), args, rbm );\n\t\tBerCli doesStuff = prepDoer( userInput );\n\t\tdoesStuff.setSessionConfig( prepConfig( userInput, rbm ) );\n\t\tdoesStuff.satisfySession();\n\t}",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"public void activateConsoleMode() {\n logger.addHandler(mConsoleHandler);\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public void teleopInit() {\n // Initalize test command\n Jagbot.isAutonomous = false;\n MessageWindow.write(1, \"Robot init\");\n //testCommand = new TestCommand();\n //testCommand.start();\n }",
"public void initDefaultCommand()\n {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"void main(CommandLine cmd);",
"public Panel03Console() {\n System.out.println(\"Panel03 ConsolePanel()\");\n initComponents();\n super.setPreferredSize(new Dimension(CONSOLE_WIDTH, CONSOLE_HEIGHT));\n }",
"public static void handle ( String input, JTextPane console ) {\r\n GUI.commandHistory.add ( input ) ;\r\n GUI.commandHistoryLocation = GUI.commandHistory.size ( ) ;\r\n\r\n GUI.write ( \"Processing... [ \"\r\n + console.getText ( ).replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" )\r\n + \" ]\" ) ;\r\n console.setText ( \"\" ) ;\r\n\r\n input = input.replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" ) ;\r\n try {\r\n if ( input.equalsIgnoreCase ( \"quit\" )\r\n || input.equalsIgnoreCase ( \"exit\" )\r\n || input.equalsIgnoreCase ( \"close\" ) ) {\r\n Core.fileLogger.flush ( ) ;\r\n System.exit ( 0 ) ;\r\n } else {\r\n final String inp[] = input.split ( \"(\\\\s)+\" ) ;\r\n if ( inp.length == 0 ) { return ; }\r\n final Class<?> cmdClass = Class.forName ( \"net.mokon.scrabble.cmd.CMD_\"\r\n + inp[ 0 ].toLowerCase ( ) ) ;\r\n final Constructor<?> cmdConstructor = cmdClass\r\n .getDeclaredConstructors ( )[ 0 ] ;\r\n final Command toRun = (Command) cmdConstructor.newInstance ( inp,\r\n console, Core.scrabbleBoard, Core.main, Core.moves,\r\n Core.scrabbleBoard.bag ) ;\r\n if ( inp[ 0 ].equalsIgnoreCase ( \"word\" ) ) {\r\n final Method method = cmdClass.getMethod ( \"setFrame\", JFrame.class ) ;\r\n method.invoke ( toRun, Core.showWorkingScreen ( ) ) ;\r\n }\r\n toRun.start ( ) ;\r\n }\r\n } catch ( final ClassNotFoundException e ) {\r\n GUI.write ( \"Unknown Command - Valid are [ help, word, use, draw,\"\r\n + \" place, set, unset, grid, size, fill, lookup ]\" ) ;\r\n } catch ( final Throwable e ) {\r\n GUI.write ( \"An error has been enountered [ \" + e.toString ( )\r\n + \" ]. Attempting to continue...\" ) ;\r\n e.printStackTrace ( ) ;\r\n e.printStackTrace ( Core.fileLogger ) ;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\t/**\n\t\t * Implementation of Environment. Used for communication with user.\n\t\t * Implements Closeable because needs to close Scanner.\n\t\t * */\n\t\tclass MyEnvironment implements Environment, Closeable {\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for scanning input of user.\n\t\t\t * */\n\t\t\tprivate Scanner scan;\n\t\t\t/**\n\t\t\t * Used for security check if scan closes.\n\t\t\t * */\n\t\t\tprivate boolean scanClosed;\n\t\t\t/**\n\t\t\t * multilineSymbol used for marking multilines\n\t\t\t * */\n\t\t\tprivate Character multilineSymbol;\n\t\t\t/**\n\t\t\t * promptSymbol is used for marking input line.\n\t\t\t * */\n\t\t\tprivate Character promptSymbol;\n\t\t\t/**\n\t\t\t * morelinesSymbol is used for marking more lines by user.\n\t\t\t * */\n\t\t\tprivate Character morelinesSymbol;\n\t\t\t/**\n\t\t\t * commands is used to pair commands' name with commands' object\n\t\t\t * */\n\t\t\tprivate SortedMap<String, ShellCommand> commands;\n\t\t\t/**\n\t\t\t * Contains current directory\n\t\t\t * */\n\t\t\tprivate Path currentDirectory;\n\t\t\t/**\n\t\t\t * Used for sharing data between commands\n\t\t\t * */\n\t\t\tprivate Map<String, Object> sharedData;\n\t\t\t\n\t\t\t/**\n\t\t\t * Default constructor. Sets all private variables to default.\n\t\t\t * */\n\t\t\tpublic MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for closing Scanner scan.\n\t\t\t * */\n\t\t\tpublic void close() {\n\t\t\t\tif(scanClosed == false) {\n\t\t\t\t\tscan.close();\n\t\t\t\t\tscanClosed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String readLine() throws ShellIOException {\n\t\t\t\tString line;\n\t\t\t\ttry {\n\t\t\t\t\tline = scan.nextLine();\n\t\t\t\t} catch (NoSuchElementException | IllegalStateException e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void write(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void writeln(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\t\treturn Collections.unmodifiableSortedMap(commands);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMultilineSymbol() {\n\t\t\t\treturn multilineSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMultilineSymbol(Character symbol) {\n\t\t\t\tmultilineSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getPromptSymbol() {\n\t\t\t\treturn promptSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setPromptSymbol(Character symbol) {\n\t\t\t\tpromptSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMorelinesSymbol() {\n\t\t\t\treturn morelinesSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMorelinesSymbol(Character symbol) {\n\t\t\t\tmorelinesSymbol = symbol;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Path getCurrentDirectory() {\n\t\t\t\treturn currentDirectory.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setCurrentDirectory(Path path) throws IOException{\n\t\t\t\tif(!path.toFile().isDirectory()) {\n\t\t\t\t\tthrow new IOException(\"No such directory.\");\n\t\t\t\t}\n\t\t\t\tcurrentDirectory = path.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object getSharedData(String key) {\n\t\t\t\tif (key == null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn sharedData.get(key);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setSharedData(String key, Object value) {\n\t\t\t\tif(key == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsharedData.put(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\ttry(MyEnvironment env = new MyEnvironment()) {\n\t\t\tShellStatus status = ShellStatus.CONTINUE;\n\t\t\tenv.writeln(\"Welcome to MyShell v 1.0\");\n\t\t\t\n\t\t\twhile(status != ShellStatus.TERMINATE) {\n\t\t\t\tenv.write(env.getPromptSymbol() + \" \");\n\t\t\t\tString l = readLineOrLines(env);\n\t\t\t\tint boundaryIndex = l.indexOf(' ') == -1 ? l.length() : l.indexOf(' ');\n\t\t\t\tString commandName = l.substring(0, boundaryIndex);\n\t\t\t\tString arguments = l.substring(boundaryIndex);\n\t\t\t\tShellCommand command = env.commands().get(commandName);\n\t\t\t\tif(command == null) {\n\t\t\t\t\tenv.writeln(\"Wrong command. Use 'help'.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstatus = command.executeCommand(env, arguments);\n\t\t\t} \n\t\t} catch(ShellIOException e) {\n\t\t\t// Terminates shell.\n\t\t}\n\t\t\n\t}",
"void showInConsole();",
"public void initDefaultCommand() \n {\n }",
"public UserInteractionConsole() {\n setupVariables();\n\n System.out.println(\"Select an Option\");\n int choice = userInteractionTree();\n while (true) {\n if (choice < 8) {\n courseOptions(choice);\n } else if (choice < 12) {\n scheduleOptions(choice);\n } else if (choice == 12) {\n saveAndExit();\n break;\n } else {\n break;\n }\n System.out.println(\"\\n\\nSelect an Option\");\n choice = userInteractionTree();\n }\n\n }",
"public void initDefaultCommand() {\n \n }",
"public void robotInit() {\n\t\toi = new OI();\n // instantiate the command used for the autonomous period\n }",
"public void initDefaultCommand() {\n \n }",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}",
"private Console startConsole( String consoleHost ) throws RemoteException\n {\n Console console = null;\n Registry registry = null;\n int attempt = 0;\n final int numAttempts = 5;\n final int delay = 750; // 0.75 seconds.\n \n if( Launcher.startChameleonConsole( consoleHost ) )\n {\n for( ; attempt < numAttempts; ++attempt )\n {\n try\n {\n registry = LocateRegistry.getRegistry( consoleHost,\n RegistrationManager.PORT );\n console = (Console) registry.lookup( Console.SERVICE_NAME );\n }\n catch( Exception anyException )\n {\n }\n \n if( null == console )\n {\n try\n {\n Thread.sleep( delay );\n }\n catch( InterruptedException interruptedException )\n {\n }\n }\n }\n }\n \n return( console );\n }",
"@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"public void initDefaultCommand()\n\t{\n\t}",
"public void initDefaultCommand() {\n\t}",
"public void installConsole() throws IOException {\r\n setupPladipus();\r\n installPladipusModules();\r\n installProcessingBeanProperties();\r\n createDesktopIcon(\"Pladipus-\" + version);\r\n setClassPath();\r\n }",
"public void run() {\n\t\trun(null, CommunicationDefaults.CONSOLE_PORT);\n\t}",
"public void robotInit()\n\t{\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\t// autonomousCommand = new Driver();\n\t}",
"public TerminalGame()\n \t{\n \t\tsuper();\n \t\tbuilder = new StringBuilder();\n \t\tscanner = new Scanner(System.in);\n \t}",
"public ConsoleOutputWrapper() {\n fCurrent = ConsoleUtils.getDefault().getConsole();\n }"
] | [
"0.73794454",
"0.7170263",
"0.7057201",
"0.6812334",
"0.6632388",
"0.65768933",
"0.64897513",
"0.6478243",
"0.6402889",
"0.63731945",
"0.6330152",
"0.6237366",
"0.61957294",
"0.6190575",
"0.6170539",
"0.6161224",
"0.6154571",
"0.61273766",
"0.6111766",
"0.6094681",
"0.6076143",
"0.60614467",
"0.60367846",
"0.60121447",
"0.5988483",
"0.5974442",
"0.5919553",
"0.59004617",
"0.5885925",
"0.5857251",
"0.5828294",
"0.58210075",
"0.57961",
"0.5793243",
"0.5780319",
"0.576961",
"0.57670015",
"0.5729946",
"0.5722504",
"0.5701717",
"0.5684908",
"0.56694204",
"0.5657404",
"0.5637323",
"0.5628964",
"0.55933684",
"0.5578649",
"0.55683327",
"0.5549532",
"0.554815",
"0.5547039",
"0.55384374",
"0.55278337",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5524646",
"0.5516844",
"0.55141056",
"0.55127287",
"0.5509043",
"0.55073345",
"0.5482259",
"0.5481603",
"0.5479704",
"0.547966",
"0.5476542",
"0.5474323",
"0.5472405",
"0.54654455",
"0.546095",
"0.54587805",
"0.5451574",
"0.5447379",
"0.5445288",
"0.5444153",
"0.5432663",
"0.5430463",
"0.5407658"
] | 0.82282525 | 0 |
Initialize the menu bar which provides selectable actions for the user to execute. | private void initializeMenuBar() {
this.hydraMenu = new HydraMenu(this.commands);
this.setJMenuBar(this.hydraMenu);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }",
"private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"public void initMenu(){\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}",
"private void initMenubar() {\r\n\t\tsetJMenuBar(new MenuBar(controller));\r\n\t}",
"private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}",
"private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}",
"public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }",
"private void initMenuBar() {\n\t\t// Menu Bar\n\t\tmenuBar = new JMenuBar();\n\t\tgameMenu = new JMenu(\"Boggle\");\n\t\tgameMenu.setMnemonic('B');\n\t\tmenuBar.add(gameMenu);\n\t\tthis.setJMenuBar(menuBar);\n\t\t\n\t\t// New Game\n\t\tnewGame = new JMenuItem(\"New Game\");\n\t\tnewGame.setMnemonic('N');\n\t\tnewGame.addActionListener(new NewGameListener());\n\t\tgameMenu.add(newGame);\n\t\t\n\t\t// Exit Game\n\t\texitGame = new JMenuItem(\"Exit Game\");\n\t\texitGame.setMnemonic('E');\n\t\texitGame.addActionListener(new ExitListener());\n\t\tgameMenu.add(exitGame);\n\t}",
"public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}",
"private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}",
"public startingMenu() {\r\n initComponents();\r\n }",
"MenuBar setMenu() {\r\n\t\t// initially set up the file chooser to look for cfg files in current directory\r\n\t\tMenuBar menuBar = new MenuBar(); // create main menu\r\n\r\n\t\tMenu mFile = new Menu(\"File\"); // add File main menu\r\n\t\tMenuItem mExit = new MenuItem(\"Exit\"); // whose sub menu has Exit\r\n\t\tmExit.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent t) { // action on exit\r\n\t\t\t\ttimer.stop(); // stop timer\r\n\t\t\t\tSystem.exit(0); // exit program\r\n\t\t\t}\r\n\t\t});\r\n\t\tmFile.getItems().addAll(mExit); // add load, save and exit to File menu\r\n\r\n\t\tMenu mHelp = new Menu(\"Help\"); // create Help menu\r\n\t\tMenuItem mAbout = new MenuItem(\"About\"); // add Welcome sub menu item\r\n\t\tmAbout.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent actionEvent) {\r\n\t\t\t\tshowAbout(); // whose action is to give welcome message\r\n\t\t\t}\r\n\t\t});\r\n\t\tmHelp.getItems().addAll(mAbout); // add Welcome and About to Run main item\r\n\r\n\t\tmenuBar.getMenus().addAll(mFile, mHelp); // set main menu with File, Config, Run, Help\r\n\t\treturn menuBar; // return the menu\r\n\t}",
"public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}",
"public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}",
"private void init() {\n StateManager.setState(new MenuState());\n }",
"public static void initMenuBars()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Options\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\n\t\t//a group of JMenuItems\n\t\tmenuItem = new JMenuItem(\"Quit\",\n\t\t KeyEvent.VK_T);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\n\t\t \"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Both text and icon\",\n\t\t new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_B);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_D);\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\tButtonGroup group = new ButtonGroup();\n\t\trbMenuItem = new JRadioButtonMenuItem(\"A radio button menu item\");\n\t\trbMenuItem.setSelected(true);\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\trbMenuItem = new JRadioButtonMenuItem(\"Another one\");\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_O);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\t//a group of check box menu items\n\t\tmenu.addSeparator();\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"A check box menu item\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.add(cbMenuItem);\n\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"Another one\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_H);\n\t\tmenu.add(cbMenuItem);\n\n\t\t//a submenu\n\t\tmenu.addSeparator();\n\t\tsubmenu = new JMenu(\"A submenu\");\n\t\tsubmenu.setMnemonic(KeyEvent.VK_S);\n\n\t\tmenuItem = new JMenuItem(\"An item in the submenu\");\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_2, ActionEvent.ALT_MASK));\n\t\tsubmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Another item\");\n\t\tsubmenu.add(menuItem);\n\t\tmenu.add(submenu);\n\n\t\t//Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Another Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_N);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"This menu does nothing\");\n\t\tmenuBar.add(menu);\n\t}",
"protected void initialize() {\n\t\tthis.initializeFileMenu();\n\t\tthis.initializeEditMenu();\n\t\tthis.initializeNavigationMenu();\n\t\tthis.initializeHelpMenu();\n\t}",
"private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"protected void initializeNavigationMenu() {\n\t\tfinal JMenu navigationMenu = new JMenu(\"Navigation\");\n\t\tthis.add(navigationMenu);\n\t\t// Revert to Picked\n\t\tfinal JMenuItem revertPickedItem = new JMenuItem();\n\t\trevertPickedItem.setAction(this.commands\n\t\t\t\t.findById(GUICmdGraphRevert.DEFAULT_ID));\n\t\trevertPickedItem.setAccelerator(KeyStroke.getKeyStroke('R',\n\t\t\t\tInputEvent.ALT_DOWN_MASK));\n\t\tnavigationMenu.add(revertPickedItem);\n\t}",
"private MenuManager() {\r\n\r\n\t\t\tmenubar = new Menu(shell, SWT.BAR);\r\n\t\t\tshell.setMenuBar(menubar);\r\n\t\t}",
"private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"private void init()\n {\n btnUser.setOnAction(buttonHandler);\n btnHome.setOnAction(event -> changeScene(\"store/fxml/home/home.fxml\"));\n btnCategories.setOnAction(event -> changeScene(\"store/fxml/category/categories.fxml\"));\n btnTopApps.setOnAction(buttonHandler);\n btnPurchased.setOnAction(buttonHandler);\n btnMenu.setOnAction(buttonHandler);\n btnSearch.setOnAction(buttonHandler);\n btnFeatured.setOnAction(buttonHandler);\n\n itmLogout = new MenuItem(\"Logout\");\n itmAddApp = new MenuItem(\"Add app\");\n itmUsers = new MenuItem(\"Manage users\");\n itmCategories = new MenuItem(\"Manage categories\");\n\n itmAddApp.setOnAction(itemHandler);\n itmLogout.setOnAction(itemHandler);\n itmUsers.setOnAction(itemHandler);\n itmCategories.setOnAction(itemHandler);\n\n if (user.getId() != null)\n {\n btnMenu.setVisible(true);\n if (user.getAdmin())\n btnMenu.getItems().addAll(itmAddApp, itmCategories, itmUsers, itmLogout);\n else\n btnMenu.getItems().add(itmLogout);\n\n ImageView imageView = new ImageView(user.getPicture());\n imageView.setFitHeight(25);\n imageView.setFitWidth(25);\n\n btnUser.setText(user.getUsername());\n }\n else\n btnMenu.setVisible(false);\n }",
"public ChessMenuBar() {\n String[] menuCategories = {\"File\", \"Options\", \"Help\"};\n String[] menuItemLists =\n {\"New game/restart,Exit\", \"Toggle graveyard,Toggle game log\",\n \"About\"};\n for (int i = 0; i < menuCategories.length; i++) {\n JMenu currMenu = new JMenu(menuCategories[i]);\n String[] currMenuItemList = menuItemLists[i].split(\",\");\n for (int j = 0; j < currMenuItemList.length; j++) {\n JMenuItem currItem = new JMenuItem(currMenuItemList[j]);\n currItem.addActionListener(new MenuListener());\n currMenu.add(currItem);\n }\n this.add(currMenu);\n }\n }",
"private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}",
"protected void initializeFileMenu() {\n\t\tfinal JMenu fileMenu = new JMenu(\"File\");\n\t\tthis.add(fileMenu);\n\t\t// Status\n\t\tfinal JMenuItem sysStatusItem = new JMenuItem();\n\t\tsysStatusItem.setAction(this.commands.findById(CmdStatus.DEFAULT_ID));\n\t\tsysStatusItem.setAccelerator(KeyStroke.getKeyStroke('S',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysStatusItem);\n\t\t// Log\n\t\tfinal JMenuItem sysLogItem = new JMenuItem();\n\t\tsysLogItem.setAction(this.commands.findById(CmdLog.DEFAULT_ID));\n\t\tsysLogItem.setAccelerator(KeyStroke.getKeyStroke('L',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysLogItem);\n\t\t// Separator\n\t\tfileMenu.add(new JSeparator());\n\t\t// Exit\n\t\tfinal JMenuItem exitItem = new JMenuItem(\"Exit\");\n\t\texitItem.setAction(this.commands.findById(CmdExit.DEFAULT_ID));\n\t\texitItem.setAccelerator(KeyStroke.getKeyStroke('Q',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(exitItem);\n\t}",
"private void initialize() {\r\n //this.setVisible(true);\r\n \r\n\t // added pre-set popup menu here\r\n// this.add(getPopupFindMenu());\r\n this.add(getPopupDeleteMenu());\r\n this.add(getPopupPurgeMenu());\r\n\t}",
"private void initializeMenuBar()\r\n\t{\r\n\t\tJMenuBar menuBar = new SmsMenuBar(this);\r\n\t\tsetJMenuBar(menuBar);\r\n\t}",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"protected void initializeHelpMenu() {\n\t\tfinal JMenu helpMenu = new JMenu(\"Help\");\n\t\tthis.add(helpMenu);\n\t\t// Help\n\t\tfinal JMenuItem sysHelpItem = new JMenuItem();\n\t\tsysHelpItem.setAction(this.commands.findById(CmdHelp.DEFAULT_ID));\n\t\tsysHelpItem.setAccelerator(KeyStroke.getKeyStroke('H',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\thelpMenu.add(sysHelpItem);\n\t}",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\n\t\thome = new MenuItem(\"Home Page\");\n\t\thome.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.CREDENTIALS);\n\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tnewuser = new MenuItem(\"New User\");\n\t\tnewuser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Calling New User window\");\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.NEWUSER);\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t\texit = new MenuItem(\"Exit Application\");\n\t\texit.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"quitting\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}); \n\n\t\t\n\t\tMain.getItems().add(home);\n\t\n\t\tMain.getItems().add(newuser);\n\n\t\tMain.getItems().add(exit);\n\t\t\n\n\t\t//---------------------------- Actions Menu Drop down --------------------------------\n\n\t\thistory = new MenuItem(\"View History\");\n\t\thistory.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) { \t\n\t\t\t\t// open the default web browser for the HTML page\n\t\t\t\ttry {\n\t\t\t\t\tURL webURL = new URL(\"http://webdevelopmentdev.azurewebsites.net/\");\n\t\t\t\t\tDesktop.getDesktop().browse(webURL.toURI());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (URISyntaxException 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\n\t\tActions.getItems().add(history);\n\n\t\tbrowser = new MenuItem(\"View Browser\");\n\t\tbrowser.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tSystem.out.println(\"Inside the browser\");\n\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.BROWSER);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(browser);\n\t\tbrowser.setDisable(true);\n\t\t\n\t\tissue = new MenuItem(\"Report Issue\");\n\t\tissue.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent t) {\n\t\t\t\tApplication_Navigator.loadVista(Application_Navigator.ISSUE);\n\t\t\t}\n\t\t}); \n\n\t\tActions.getItems().add(issue);\n\n\t\tStartConnection();\n\t}",
"public menu() {\n initComponents();\n }",
"public menu() {\n initComponents();\n }",
"private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"public void\n\tinitializeContextMenu()\n\t{\n\t\tMenuManager menuManager \n\t\t\t= new MenuManager();\n\t\tMenu menu \n\t\t\t= menuManager.createContextMenu(\n\t\t\t\tthis.snapshot_tree_viewer.getTree()\n\t\t\t);\n\t\t// Set the MenuManager\n\t\tthis.snapshot_tree_viewer.getTree().setMenu(menu);\n\t\tgetSite().registerContextMenu(\n\t\t\tmenuManager, \n\t\t\tthis.snapshot_tree_viewer\n\t\t);\n\t\t\n\t\t// Make the selection available\n\t\tgetSite().setSelectionProvider(\n\t\t\tthis.snapshot_tree_viewer\n\t\t);\n\t}",
"public Menus() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 678, 450);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tframe.setJMenuBar(menuBar);\n\t\t\n\t\tmnuAcciones = new JMenu(\"Acciones\");\n\t\tmenuBar.add(mnuAcciones);\n\t\t\n\t\tmnuABMCPersona = new JMenuItem(\"ABMC de Personas\");\n\t\tmnuABMCPersona.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuABMCPersonaClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(mnuABMCPersona);\n\t\t\n\t\tnuABMCTipoElemento = new JMenuItem(\"ABMC de Tipos de Elemento\");\n\t\tnuABMCTipoElemento.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuABMCTipoElementoClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuABMCTipoElemento);\n\t\t\n\t\tnuABMCElemento = new JMenuItem(\"ABMC de Elementos\");\n\t\tnuABMCElemento.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tmnuABMCElementoClick();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuABMCElemento);\n\t\t\n\t\tnuAReserva = new JMenuItem(\"Hacer una Reserva\");\n\t\tnuAReserva.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tmnuAReservaClick();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuAReserva);\n\t\t\n\t\tnuCBReserva = new JMenuItem(\"Listado de Reservas\");\n\t\tnuCBReserva.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuListadoPersonaClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuCBReserva);\n\t\t\n\t\tnuSalir = new JMenuItem(\"Salir\");\n\t\tnuSalir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsalir();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuSalir);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tdesktopPane = new JDesktopPane();\n\t\tframe.getContentPane().add(desktopPane, BorderLayout.CENTER);\n\t}",
"protected AccessibleAWTMenuComponent() {\n }",
"private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}",
"public void initMenuContext(){\n GralMenu menuCurve = getContextMenu();\n //menuCurve.addMenuItemGthread(\"pause\", \"pause\", null);\n menuCurve.addMenuItem(\"refresh\", actionPaintAll);\n menuCurve.addMenuItem(\"go\", actionGo);\n menuCurve.addMenuItem(\"show All\", actionShowAll);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"zoom in\", null);\n menuCurve.addMenuItem(\"zoomBetweenCursor\", \"zoom between Cursors\", actionZoomBetweenCursors);\n menuCurve.addMenuItem(\"zoomOut\", \"zoom out\", actionZoomOut);\n menuCurve.addMenuItem(\"cleanBuffer\", \"clean Buffer\", actionCleanBuffer);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to left\", null);\n //menuCurve.addMenuItemGthread(\"zoomOut\", \"to right\", null);\n \n }",
"@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}",
"private void actionbarInit() \n\t{\n\t\tactionbar_ll_left.setVisibility(View.VISIBLE);\n\t\tactionbar_tv_back_name_left.setVisibility(View.GONE);\t\t\n\t\t\n\t\tactionbar_btn_right_left.setVisibility(View.GONE);\n\t\tactionbar_imgbtn_right.setVisibility(View.GONE);\n\n\t\tactionbar_tv_back_name_left.setText(\"\");\n\t\tactionbar_tv_name_center.setText(getString(R.string.set));\n\t\tactionbar_btn_right_left.setText(getString(R.string.rule));\n\n\t\tactionbar_ll_left.setOnClickListener(clickListener_actionbar);\n//\t\tactionbar_imgbtn_right.setOnClickListener(clickListener_actionbar);\n\t}",
"private void initializeActionbar() {\n toolbar = binding.toolbar;\n Objects.requireNonNull(toolbar).setTitle(R.string.navigation_my_pets);\n setSupportActionBar(toolbar);\n ActionBar actionBar = getSupportActionBar();\n Objects.requireNonNull(actionBar).setDisplayHomeAsUpEnabled(true);\n }",
"public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}",
"private void initOptionsMenu() {\n final Function<Float, Void> changeAlpha = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n skyAlpha = Math.round(input);\n return null;\n }\n };\n\n final Function<Float, Void> changeMaxConfidence = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n options.confidenceThreshold = input;\n return null;\n }\n };\n\n bottomSheet = findViewById(R.id.option_menu);\n bottomSheet.setVisibility(View.VISIBLE);\n bottomSheet\n .withSlider(\"Alpha\", ALPHA_MAX, skyAlpha, changeAlpha, 1f)\n .withSlider(\"Confidence Threshold\", 1, options.confidenceThreshold, changeMaxConfidence);\n }",
"private void setActionListener() {\r\n\t\tactListener = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactController.handleMenuAction(e);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"private void initializeKeyBoardActions(){\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n cutMenuItem_actionPerformed(e);}},\r\n \"Cut\",\r\n KeyStroke.getKeyStroke('X', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n copyMenuItem_actionPerformed(e);}},\r\n \"Copy\",\r\n KeyStroke.getKeyStroke('C', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n pasteMenuItem_actionPerformed(e);}},\r\n \"Paste\",\r\n KeyStroke.getKeyStroke('V', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n selectAllMenuItem_actionPerformed(e);}},\r\n \"Select All\",\r\n KeyStroke.getKeyStroke('A', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n registerKeyboardAction(new java.awt.event.ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n deleteMenuItem_actionPerformed(e);}},\r\n \"Delete\",\r\n KeyStroke.getKeyStroke(KeyEvent.VK_DELETE,0),\r\n JComponent.WHEN_FOCUSED);\r\n\r\n\r\n}",
"public ActionMenuItem() {\n this(\"\");\n }",
"public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }",
"protected void initializeEditMenu() {\n\t\tfinal JMenu editMenu = new JMenu(\"Edit\");\n\t\tthis.add(editMenu);\n\t\t// History Mouse Mode\n\t\tfinal JMenu mouseModeSubMenu = new JMenu(\"History Mouse Mode\");\n\t\teditMenu.add(mouseModeSubMenu);\n\t\t// Transforming\n\t\tfinal JMenuItem transformingItem = new JMenuItem(\n\t\t\t\tthis.commands.findById(\"GUICmdGraphMouseMode.Transforming\"));\n\t\ttransformingItem.setAccelerator(KeyStroke.getKeyStroke('T',\n\t\t\t\tInputEvent.ALT_DOWN_MASK));\n\t\tmouseModeSubMenu.add(transformingItem);\n\t\t// Picking\n\t\tfinal JMenuItem pickingItem = new JMenuItem(\n\t\t\t\tthis.commands.findById(\"GUICmdGraphMouseMode.Picking\"));\n\t\tpickingItem.setAccelerator(KeyStroke.getKeyStroke('P',\n\t\t\t\tInputEvent.ALT_DOWN_MASK));\n\t\tmouseModeSubMenu.add(pickingItem);\n\t}",
"public Menu() {\n initComponents();\n }",
"public Menu() {\n initComponents();\n }",
"public Menu() {\n initComponents();\n }",
"private void initializeMenuForListView() {\n\t\tMenuItem sItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_S_MENU));\n\t\tsItem.setOnAction(event ->\n\t\t\taddSAction()\n\t\t);\n\t\t\n\t\tMenuItem scItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_SC_MENU));\n\t\tscItem.setOnAction(event ->\n\t\t\t\taddScAction()\n\t\t);\n\t\t\n\t\tContextMenu menu = new ContextMenu(sItem, scItem);\n\t\tfirstListView.setContextMenu(menu);\n\t\tsecondListView.setContextMenu(menu);\n\t}",
"private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }",
"public static void activateMenu() {\n instance.getMenu().show();\n }",
"public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}",
"private void initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }",
"private void setUpMenuBar_FileMenu(){\r\n\t\t// Add the file menu.\r\n\t\tthis.fileMenu = new JMenu(STR_FILE);\r\n\t\tthis.openMenuItem = new JMenuItem(STR_OPEN);\r\n\t\tthis.openMenuItem2 = new JMenuItem(STR_OPEN2);\r\n\t\tthis.resetMenuItem = new JMenuItem(STR_RESET);\r\n\t\tthis.saveMenuItem = new JMenuItem(STR_SAVE);\r\n\t\tthis.saveAsMenuItem = new JMenuItem(STR_SAVEAS);\r\n\t\tthis.exitMenuItem = new JMenuItem(STR_EXIT);\r\n\t\t\r\n\t\t// Add the action listeners for the file menu.\r\n\t\tthis.openMenuItem.addActionListener(this);\r\n\t\tthis.openMenuItem2.addActionListener(this);\r\n\t\tthis.resetMenuItem.addActionListener(this);\r\n\t\tthis.saveMenuItem.addActionListener(this);\r\n\t\tthis.saveAsMenuItem.addActionListener(this);\r\n\t\tthis.exitMenuItem.addActionListener(this);\r\n\t\t\r\n\t\t// Add the menu items to the file menu.\r\n\t\tthis.fileMenu.add(openMenuItem);\r\n\t\tthis.fileMenu.add(openMenuItem2);\r\n\t\tthis.fileMenu.add(resetMenuItem);\r\n\t\tthis.fileMenu.addSeparator();\r\n\t\tthis.fileMenu.add(saveMenuItem);\r\n\t\tthis.fileMenu.add(saveAsMenuItem);\r\n\t\tthis.fileMenu.addSeparator();\r\n\t\tthis.fileMenu.add(exitMenuItem);\r\n\t\tthis.menuBar.add(fileMenu);\r\n\t}",
"public void initPlayerMenu() {\n Font f = new Font(\"Helvetica\", Font.BOLD, 16);\n\n menuPanel = new JPanel();\n menuPanel.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuPanel.setLayout(null);\n\n menuBar = new JMenuBar();\n menuBar.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuBar.setBounds(0, 0, buttonWidth, buttonHeight);\n menuBar.setLayout(null);\n\n playerMenu = new JMenu();\n playerMenu.setText(\"Players\");\n playerMenu.setFont(f);\n playerMenu.setBounds(0, 0, buttonWidth, buttonHeight);\n playerMenu.setBackground(new Color(0xeaf1f7));\n playerMenu.setHorizontalTextPosition(SwingConstants.CENTER);\n playerMenu.setOpaque(true);\n playerMenu.setBorder(BorderFactory.createBevelBorder(0));\n\n menuBar.add(playerMenu);\n menuPanel.add(menuBar);\n }",
"public JMenuBar initBar() {\n\t\treturn null;\n\t}",
"private void initialize() {\r\n this.setJMenuBar(getMainMenuBar());\r\n this.setContentPane(getPaneContent());\r\n\r\n this.setSize(800, 600);\r\n this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n this.addWindowListener(new java.awt.event.WindowAdapter() { \r\n\r\n \tpublic void windowClosing(java.awt.event.WindowEvent e) { \r\n\r\n \t\tgetMainMenuBar().getMenuFileControl().exit();\r\n \t}\r\n });\r\n\r\n this.setVisible(false);\r\n\t}",
"@Override\n 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 public void initComponent() {\n System.out.println(\"initComponent called\");\n ActionManager actionManager = ActionManager.getInstance();\n PluginAction certLoaderAction = new PluginAction();\n\n // Passes an instance of your custom action class to the registerAction method of the ActionManager class.\n actionManager.registerAction(\"NewPluginAction\", certLoaderAction);\n\n // Gets an instance of the WindowMenu action group.\n // \"WindowMenu\" is exact!\n DefaultActionGroup viewMenu = (DefaultActionGroup) actionManager.getAction(TOOLS_MENU_NAME);\n\n // Adds a separator and a new menu command to the WindowMenu group on the main menu.\n viewMenu.addSeparator();\n viewMenu.add(certLoaderAction);\n }",
"private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}",
"private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }",
"public void menuSetup(){\r\n menu.add(menuItemSave);\r\n menu.add(menuItemLoad);\r\n menu.add(menuItemRestart);\r\n menuBar.add(menu); \r\n topPanel.add(menuBar);\r\n bottomPanel.add(message);\r\n \r\n this.setLayout(new BorderLayout());\r\n this.add(topPanel, BorderLayout.NORTH);\r\n this.add(middlePanel, BorderLayout.CENTER);\r\n this.add(bottomPanel, BorderLayout.SOUTH);\r\n \r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"public void setUpFileMenu() {\n add(fileMenu);\n fileMenu.add(new OpenAction(parent));\n fileMenu.add(new SaveAction(parent));\n fileMenu.add(new SaveAsAction(parent));\n fileMenu.addSeparator();\n fileMenu.add(new ShowWorldPrefsAction(parent.getWorldPanel()));\n fileMenu.add(new CloseAction(parent.getWorkspaceComponent()));\n }",
"public void updateMenus() {\n\t\tSystem.out.println(\"BarGraphDisplayer.updateMenus\");\n\t\tCommandRegistrar.gRegistrar.checkAction(\"barGraph\");\n\t\tCommandRegistrar.gRegistrar.enableAction(\"viewOptions\");\n\t}",
"private void initializeMenuForPairsListView() {\n\t\tMenuItem deleteItem = new MenuItem(labels.get(Labels.PROP_INFO_REMOVE_MENU));\n\t\tdeleteItem.setOnAction(event ->\n\t\t\t\tremoveSelectedAction()\n\t\t);\n\t\tpairsListView.setContextMenu(new ContextMenu(deleteItem));\n\t}",
"private void buildMenu() {\r\n\t\tJMenuBar mainmenu = new JMenuBar();\r\n\t\tsetJMenuBar(mainmenu);\r\n\r\n\t\tui.fileMenu = new JMenu(\"File\");\r\n\t\tui.editMenu = new JMenu(\"Edit\");\r\n\t\tui.viewMenu = new JMenu(\"View\");\r\n\t\tui.helpMenu = new JMenu(\"Help\");\r\n\t\t\r\n\t\tui.fileNew = new JMenuItem(\"New...\");\r\n\t\tui.fileOpen = new JMenuItem(\"Open...\");\r\n\t\tui.fileImport = new JMenuItem(\"Import...\");\r\n\t\tui.fileSave = new JMenuItem(\"Save\");\r\n\t\tui.fileSaveAs = new JMenuItem(\"Save as...\");\r\n\t\tui.fileExit = new JMenuItem(\"Exit\");\r\n\r\n\t\tui.fileOpen.setAccelerator(KeyStroke.getKeyStroke('O', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.fileSave.setAccelerator(KeyStroke.getKeyStroke('S', InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.fileImport.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doImport(); } });\r\n\t\tui.fileExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); doExit(); } });\r\n\t\t\r\n\t\tui.fileOpen.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoLoad();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSave.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSave();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSaveAs.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSaveAs();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editUndo = new JMenuItem(\"Undo\");\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo()); \r\n\t\t\r\n\t\tui.editRedo = new JMenuItem(\"Redo\");\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo()); \r\n\t\t\r\n\t\t\r\n\t\tui.editCut = new JMenuItem(\"Cut\");\r\n\t\tui.editCopy = new JMenuItem(\"Copy\");\r\n\t\tui.editPaste = new JMenuItem(\"Paste\");\r\n\t\t\r\n\t\tui.editCut.addActionListener(new Act() { @Override public void act() { doCut(true, true); } });\r\n\t\tui.editCopy.addActionListener(new Act() { @Override public void act() { doCopy(true, true); } });\r\n\t\tui.editPaste.addActionListener(new Act() { @Override public void act() { doPaste(true, true); } });\r\n\t\t\r\n\t\tui.editPlaceMode = new JCheckBoxMenuItem(\"Placement mode\");\r\n\t\t\r\n\t\tui.editDeleteBuilding = new JMenuItem(\"Delete building\");\r\n\t\tui.editDeleteSurface = new JMenuItem(\"Delete surface\");\r\n\t\tui.editDeleteBoth = new JMenuItem(\"Delete both\");\r\n\t\t\r\n\t\tui.editClearBuildings = new JMenuItem(\"Clear buildings\");\r\n\t\tui.editClearSurface = new JMenuItem(\"Clear surface\");\r\n\r\n\t\tui.editUndo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUndo(); } });\r\n\t\tui.editRedo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doRedo(); } });\r\n\t\tui.editClearBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearBuildings(true); } });\r\n\t\tui.editClearSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearSurfaces(true); } });\r\n\t\t\r\n\r\n\t\tui.editUndo.setAccelerator(KeyStroke.getKeyStroke('Z', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editRedo.setAccelerator(KeyStroke.getKeyStroke('Y', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCut.setAccelerator(KeyStroke.getKeyStroke('X', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCopy.setAccelerator(KeyStroke.getKeyStroke('C', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPaste.setAccelerator(KeyStroke.getKeyStroke('V', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPlaceMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));\r\n\t\t\r\n\t\tui.editDeleteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));\r\n\t\tui.editDeleteSurface.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editDeleteBoth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editDeleteBuilding.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBuilding(); } });\r\n\t\tui.editDeleteSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteSurface(); } });\r\n\t\tui.editDeleteBoth.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBoth(); } });\r\n\t\tui.editPlaceMode.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doPlaceMode(ui.editPlaceMode.isSelected()); } });\r\n\t\t\r\n\t\tui.editPlaceRoads = new JMenu(\"Place roads\");\r\n\t\t\r\n\t\tui.editResize = new JMenuItem(\"Resize map\");\r\n\t\tui.editCleanup = new JMenuItem(\"Remove outbound objects\");\r\n\t\t\r\n\t\tui.editResize.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoResize();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.editCleanup.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoCleanup();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editCutBuilding = new JMenuItem(\"Cut: building\");\r\n\t\tui.editCutSurface = new JMenuItem(\"Cut: surface\");\r\n\t\tui.editPasteBuilding = new JMenuItem(\"Paste: building\");\r\n\t\tui.editPasteSurface = new JMenuItem(\"Paste: surface\");\r\n\t\tui.editCopyBuilding = new JMenuItem(\"Copy: building\");\r\n\t\tui.editCopySurface = new JMenuItem(\"Copy: surface\");\r\n\t\t\r\n\t\tui.editCutBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editCopyBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editPasteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editCutBuilding.addActionListener(new Act() { @Override public void act() { doCut(false, true); } });\r\n\t\tui.editCutSurface.addActionListener(new Act() { @Override public void act() { doCut(true, false); } });\r\n\t\tui.editCopyBuilding.addActionListener(new Act() { @Override public void act() { doCopy(false, true); } });\r\n\t\tui.editCopySurface.addActionListener(new Act() { @Override public void act() { doCopy(true, false); } });\r\n\t\tui.editPasteBuilding.addActionListener(new Act() { @Override public void act() { doPaste(false, true); } });\r\n\t\tui.editPasteSurface.addActionListener(new Act() { @Override public void act() { doPaste(true, false); } });\r\n\t\t\r\n\t\tui.viewZoomIn = new JMenuItem(\"Zoom in\");\r\n\t\tui.viewZoomOut = new JMenuItem(\"Zoom out\");\r\n\t\tui.viewZoomNormal = new JMenuItem(\"Zoom normal\");\r\n\t\tui.viewBrighter = new JMenuItem(\"Daylight (1.0)\");\r\n\t\tui.viewDarker = new JMenuItem(\"Night (0.5)\");\r\n\t\tui.viewMoreLight = new JMenuItem(\"More light (+0.05)\");\r\n\t\tui.viewLessLight = new JMenuItem(\"Less light (-0.05)\");\r\n\t\t\r\n\t\tui.viewShowBuildings = new JCheckBoxMenuItem(\"Show/hide buildings\", renderer.showBuildings);\r\n\t\tui.viewShowBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewSymbolicBuildings = new JCheckBoxMenuItem(\"Minimap rendering mode\", renderer.minimapMode);\r\n\t\tui.viewSymbolicBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewTextBackgrounds = new JCheckBoxMenuItem(\"Show/hide text background boxes\", renderer.textBackgrounds);\r\n\t\tui.viewTextBackgrounds.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewTextBackgrounds.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleTextBackgrounds(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomIn(); } });\r\n\t\tui.viewZoomOut.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomOut(); } });\r\n\t\tui.viewZoomNormal.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomNormal(); } });\r\n\t\tui.viewShowBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleBuildings(); } });\r\n\t\tui.viewSymbolicBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleMinimap(); } });\r\n\t\t\r\n\t\tui.viewBrighter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doBright(); } });\r\n\t\tui.viewDarker.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDark(); } });\r\n\t\tui.viewMoreLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doMoreLight(); } });\r\n\t\tui.viewLessLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doLessLight(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD9, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomOut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD3, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomNormal.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewMoreLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD8, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewLessLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD2, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewBrighter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD7, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewDarker.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD1, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewStandardFonts = new JCheckBoxMenuItem(\"Use standard fonts\", TextRenderer.USE_STANDARD_FONTS);\r\n\t\t\r\n\t\tui.viewStandardFonts.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoStandardFonts();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.viewPlacementHints = new JCheckBoxMenuItem(\"View placement hints\", renderer.placementHints);\r\n\t\tui.viewPlacementHints.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoViewPlacementHints();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.helpOnline = new JMenuItem(\"Online wiki...\");\r\n\t\tui.helpOnline.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.helpAbout = new JMenuItem(\"About...\");\r\n\t\tui.helpAbout.setEnabled(false); // TODO implement\r\n\t\t\r\n\t\tui.languageMenu = new JMenu(\"Language\");\r\n\t\t\r\n\t\tui.languageEn = new JRadioButtonMenuItem(\"English\", true);\r\n\t\tui.languageEn.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"en\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.languageHu = new JRadioButtonMenuItem(\"Hungarian\", false);\r\n\t\tui.languageHu.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"hu\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\tbg.add(ui.languageEn);\r\n\t\tbg.add(ui.languageHu);\r\n\t\t\r\n\t\tui.fileRecent = new JMenu(\"Recent\");\r\n\t\tui.clearRecent = new JMenuItem(\"Clear recent\");\r\n\t\tui.clearRecent.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoClearRecent();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddAll(ui.fileRecent, ui.clearRecent);\r\n\t\t\r\n\t\taddAll(mainmenu, ui.fileMenu, ui.editMenu, ui.viewMenu, ui.languageMenu, ui.helpMenu);\r\n\t\taddAll(ui.fileMenu, ui.fileNew, null, ui.fileOpen, ui.fileRecent, ui.fileImport, null, ui.fileSave, ui.fileSaveAs, null, ui.fileExit);\r\n\t\taddAll(ui.editMenu, ui.editUndo, ui.editRedo, null, \r\n\t\t\t\tui.editCut, ui.editCopy, ui.editPaste, null, \r\n\t\t\t\tui.editCutBuilding, ui.editCopyBuilding, ui.editPasteBuilding, null, \r\n\t\t\t\tui.editCutSurface, ui.editCopySurface, ui.editPasteSurface, null, \r\n\t\t\t\tui.editPlaceMode, null, ui.editDeleteBuilding, ui.editDeleteSurface, ui.editDeleteBoth, null, \r\n\t\t\t\tui.editClearBuildings, ui.editClearSurface, null, ui.editPlaceRoads, null, ui.editResize, ui.editCleanup);\r\n\t\taddAll(ui.viewMenu, ui.viewZoomIn, ui.viewZoomOut, ui.viewZoomNormal, null, \r\n\t\t\t\tui.viewBrighter, ui.viewDarker, ui.viewMoreLight, ui.viewLessLight, null, \r\n\t\t\t\tui.viewShowBuildings, ui.viewSymbolicBuildings, ui.viewTextBackgrounds, ui.viewStandardFonts, ui.viewPlacementHints);\r\n\t\taddAll(ui.helpMenu, ui.helpOnline, null, ui.helpAbout);\r\n\t\t\r\n\t\taddAll(ui.languageMenu, ui.languageEn, ui.languageHu);\r\n\t\t\r\n\t\tui.fileNew.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoNew();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.toolbar = new JToolBar(\"Tools\");\r\n\t\tContainer c = getContentPane();\r\n\t\tc.add(ui.toolbar, BorderLayout.PAGE_START);\r\n\r\n\t\tui.toolbarCut = createFor(\"res/Cut24.gif\", \"Cut\", ui.editCut, false);\r\n\t\tui.toolbarCopy = createFor(\"res/Copy24.gif\", \"Copy\", ui.editCopy, false);\r\n\t\tui.toolbarPaste = createFor(\"res/Paste24.gif\", \"Paste\", ui.editPaste, false);\r\n\t\tui.toolbarRemove = createFor(\"res/Remove24.gif\", \"Remove\", ui.editDeleteBuilding, false);\r\n\t\tui.toolbarUndo = createFor(\"res/Undo24.gif\", \"Undo\", ui.editUndo, false);\r\n\t\tui.toolbarRedo = createFor(\"res/Redo24.gif\", \"Redo\", ui.editRedo, false);\r\n\t\tui.toolbarPlacementMode = createFor(\"res/Down24.gif\", \"Placement mode\", ui.editPlaceMode, true);\r\n\r\n\t\tui.toolbarUndo.setEnabled(false);\r\n\t\tui.toolbarRedo.setEnabled(false);\r\n\t\t\r\n\t\tui.toolbarNew = createFor(\"res/New24.gif\", \"New\", ui.fileNew, false);\r\n\t\tui.toolbarOpen = createFor(\"res/Open24.gif\", \"Open\", ui.fileOpen, false);\r\n\t\tui.toolbarSave = createFor(\"res/Save24.gif\", \"Save\", ui.fileSave, false);\r\n\t\tui.toolbarImport = createFor(\"res/Import24.gif\", \"Import\", ui.fileImport, false);\r\n\t\tui.toolbarSaveAs = createFor(\"res/SaveAs24.gif\", \"Save as\", ui.fileSaveAs, false);\r\n\t\tui.toolbarZoomNormal = createFor(\"res/Zoom24.gif\", \"Zoom normal\", ui.viewZoomNormal, false);\r\n\t\tui.toolbarZoomIn = createFor(\"res/ZoomIn24.gif\", \"Zoom in\", ui.viewZoomIn, false);\r\n\t\tui.toolbarZoomOut = createFor(\"res/ZoomOut24.gif\", \"Zoom out\", ui.viewZoomOut, false);\r\n\t\tui.toolbarBrighter = createFor(\"res/TipOfTheDay24.gif\", \"Daylight\", ui.viewBrighter, false);\r\n\t\tui.toolbarDarker = createFor(\"res/TipOfTheDayDark24.gif\", \"Night\", ui.viewDarker, false);\r\n\t\tui.toolbarHelp = createFor(\"res/Help24.gif\", \"Help\", ui.helpOnline, false);\r\n\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarNew);\r\n\t\tui.toolbar.add(ui.toolbarOpen);\r\n\t\tui.toolbar.add(ui.toolbarSave);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarImport);\r\n\t\tui.toolbar.add(ui.toolbarSaveAs);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarCut);\r\n\t\tui.toolbar.add(ui.toolbarCopy);\r\n\t\tui.toolbar.add(ui.toolbarPaste);\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarRemove);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarUndo);\r\n\t\tui.toolbar.add(ui.toolbarRedo);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarPlacementMode);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarZoomNormal);\r\n\t\tui.toolbar.add(ui.toolbarZoomIn);\r\n\t\tui.toolbar.add(ui.toolbarZoomOut);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarBrighter);\r\n\t\tui.toolbar.add(ui.toolbarDarker);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarHelp);\r\n\t\t\r\n\t}",
"private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }",
"public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}",
"private void initMenu() {\n\t\tloadImage();\r\n\t\t// Add listeners to buttons\r\n\t\tstartGame.addActionListener(new StartGameListener());\r\n\t\texitGame.addActionListener(new ExitGameListener());\r\n\t\t// Setting buttons in the middle of the screen\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tadd(startGame, gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 1;\r\n\t\t// Resize \"exitGame\" button to \"startGame\" button size\r\n\t\texitGame.setPreferredSize(startGame.getPreferredSize());\r\n\t\t// Set insets between two buttons in 100 px\r\n\t\tgbc.insets = new Insets(100, 0, 0, 0);\r\n\t\tadd(exitGame, gbc);\r\n\t}",
"public ScreenMainMenu() {\n\t\tsuper(AdapterInputMainMenu.class);\n\t\tobj.add(new MainMenuInteractObjTest<>(gRef,200,200,new Rectangle(0,0,32,32)));\n\t\tChartset.detect(\"resources\\\\Charts\");\n\t}",
"public LibrarianMenu() {\n initComponents();\n }",
"public MainMenu() {\n initComponents();\n }",
"public MainMenu() {\n initComponents();\n }",
"public MainMenu() {\n initComponents();\n }",
"private void initialize( )\n {\n this.setSize( 300, 200 );\n this.setLayout( new BorderLayout( ) );\n this.setBorder( BorderFactory.createTitledBorder( null, \"GnericMenu\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null ) );\n this.add( getJScrollPane( ), BorderLayout.CENTER );\n\n itemAddMenuItem.addActionListener( this );\n itemDelCategory.addActionListener( this );\n popupmenuCategory.add( itemAddMenuItem );\n popupmenuCategory.add( itemDelCategory );\n\n itemDel.addActionListener( this );\n popupmenuItem.add( itemDel );\n\n itemAddCategory.addActionListener( this );\n popupmenuMenu.add( itemAddCategory );\n }",
"public void menu() {\n\t\tstate.menu();\n\t}",
"public MenuBar() {\r\n super();\r\n myTrue = false;\r\n }",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"public OptionsMenu() {\n\t\tsuper(OPTIONS_WINDOW_TITLE);\n\t\tQ = new Quoridor();\n\t\tinitialize();\n\t\tsetVisible(true);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, 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}",
"private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}",
"@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 }",
"public MainMenu() {\n super();\n }",
"private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }"
] | [
"0.79748577",
"0.7695919",
"0.7605856",
"0.7577387",
"0.74034876",
"0.73983794",
"0.7355456",
"0.7336034",
"0.7270045",
"0.72445405",
"0.72185814",
"0.7156743",
"0.71279377",
"0.7068584",
"0.7048827",
"0.7015116",
"0.7014103",
"0.6998137",
"0.6982721",
"0.6962298",
"0.6948297",
"0.69431025",
"0.69352424",
"0.6930693",
"0.6920609",
"0.6909603",
"0.68948317",
"0.6876152",
"0.68679047",
"0.6839113",
"0.68249905",
"0.6808235",
"0.6772657",
"0.6769612",
"0.67616105",
"0.67223996",
"0.6721903",
"0.6721903",
"0.6719335",
"0.6714941",
"0.6707523",
"0.6701624",
"0.6679223",
"0.66790444",
"0.667037",
"0.66556245",
"0.6642484",
"0.6639255",
"0.6636707",
"0.6620783",
"0.6620197",
"0.6618158",
"0.6607704",
"0.6593251",
"0.6568078",
"0.655877",
"0.65430063",
"0.65392375",
"0.65311027",
"0.65258014",
"0.65258014",
"0.65258014",
"0.6516953",
"0.65144396",
"0.6507759",
"0.64807934",
"0.6479078",
"0.6471419",
"0.64695126",
"0.6467614",
"0.64642656",
"0.6458216",
"0.64572954",
"0.64560574",
"0.64458597",
"0.6443783",
"0.643659",
"0.64315546",
"0.64277476",
"0.6427323",
"0.642531",
"0.64233065",
"0.6416333",
"0.6408877",
"0.6406779",
"0.6405902",
"0.6399188",
"0.6399188",
"0.6399188",
"0.6379911",
"0.63798845",
"0.63772076",
"0.63751847",
"0.6368952",
"0.6363284",
"0.63624007",
"0.6359744",
"0.63585824",
"0.63541263",
"0.6354056"
] | 0.7109087 | 13 |
resets the frame probably | @Override
public void renderGameObject() {
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
//this is where we can actually display stuff on the screen
batch.begin();
batch.draw(new TextureRegion(background),100,100,100,100,200,200,1,1,0);
batch.end();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset ()\n {\n // position our buffer at the beginning of the frame data\n _buffer.position(getHeaderSize());\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"public void reset() {\n\r\n\t}",
"private void reset() {\n }",
"protected void reset() {\n\t\t}",
"public void reset() {\n reset(animateOnReset);\n }",
"public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }",
"public void reset() {\n\n\t}",
"public void reset() {\n this.displayHasContent = false;\n this.obscured = false;\n this.syswin = false;\n this.preferredRefreshRate = 0.0f;\n this.preferredModeId = 0;\n }",
"public void reset(){\n active = false;\n done = false;\n state = State.invisible;\n curX = 0;\n }",
"private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }",
"public void reset () {}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }",
"public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}",
"public void reset(){\n newGame();\n removeAll();\n repaint();\n ended = false;\n }",
"public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }",
"public void reset(){\n }",
"public void reset()\n {\n total_frames = 0;\n total_messages = 0;\n total_size = 0;\n lost_frames = 0;\n lost_segments = 0;\n num_files = 0;\n start_time = System.nanoTime();\n m_lastFrames.clear();\n }",
"public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }",
"public synchronized void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"private void reset() {\n darkSquare.reset();\n lightSquare.reset();\n background.reset();\n border.reset();\n showCoordinates.setSelected(resetCoordinates);\n pieceFont.reset();\n }",
"public void reset(){\r\n\t\tdialogToDisplay=0;\r\n\t\tqueuedDialog=0;\r\n\t\toptionSelection=null;\r\n\t\tdone=false;\r\n\t}",
"void reset() {\n setPosition(-(TILE_WIDTH * CYCLE), TOP_Y);\n mySequenceIndex = 0;\n setAnimatedTile(myAnimatedTileIndex, FRAME_SEQUENCE[mySequenceIndex]);\n }",
"public void reset() {\n\n }",
"@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}",
"public void reset() {\n super.reset();\n }",
"private void resetAfterGame() {\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }",
"protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}",
"public void resetBuffer() {\n\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}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"void reset() {\n myIsJumping = myNoJumpInt;\n setRefPixelPosition(myInitialX, myInitialY);\n setFrameSequence(FRAME_SEQUENCE);\n myScoreThisJump = 0;\n // at first the cowboy faces right:\n setTransform(TRANS_NONE);\n }",
"final void reset() {\r\n\t\t\tsp = 0;\r\n\t\t\thp = 0;\r\n\t\t}",
"void resetView();",
"void reset() {\n setVisible(false);\n myJumpedOver = false;\n }",
"void reset()\n {\n\n }",
"public void resetGame() {\r\n\r\n\t\tplayerScore = 0;\r\n\t\tframe.setVisible(false);\r\n\t\tgame = new Game();\r\n\r\n\t}",
"public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset() ;",
"public void resetUI() {\r\n\t\tframe.resetUI();\r\n\t}",
"public void reset(){\r\n \tif (resetdelay<=0){//if he didn't just die\r\n \t\tsetLoc(400,575);\r\n \t\timg = imgs[4];\r\n \t}\r\n }",
"public static void reset(){\r\n\t\tx=0;\r\n\t\ty=0;\r\n\t}",
"public void resetBuffer(){\n bufferSet = false;\n init();\n }",
"public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"public void reset() {\n cycles = 0;\n nextHaltCycle = GB_CYCLES_PER_FRAME;\n nextUpdateCycle = 0;\n running = false;\n timer.reset();\n \n cpu.reset();\n ram.reset();\n soundHandler.reset();\n }",
"@SuppressWarnings(\"NullAway\")\n\t\tpublic void reset() {\n\t\t\ttrackDoc = null;\n\t\t\tglobalDoc = null;\n\t\t\tpredicted.reset();\n\t\t\tobserved.reset();\n\t\t\tdoc_to_imagePixel.reset();\n\t\t}",
"@Override\n public void reset() \n {\n\n }",
"public void reset()\r\n {\r\n gameBoard.reset();\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard.reset();\r\n }"
] | [
"0.747288",
"0.7376584",
"0.73039615",
"0.72589034",
"0.72552073",
"0.7232739",
"0.72272235",
"0.72199327",
"0.72128654",
"0.72128654",
"0.7209067",
"0.7197873",
"0.71968365",
"0.71932423",
"0.71911514",
"0.71834654",
"0.7182506",
"0.7182506",
"0.7182506",
"0.7182506",
"0.71658754",
"0.7148354",
"0.71247256",
"0.71245956",
"0.7124113",
"0.7115465",
"0.71131796",
"0.70960563",
"0.7089832",
"0.7089832",
"0.7089832",
"0.7089832",
"0.7074076",
"0.707254",
"0.70540935",
"0.70479393",
"0.7032193",
"0.70192903",
"0.70147955",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6993967",
"0.6987278",
"0.69859225",
"0.6977665",
"0.69766295",
"0.6968504",
"0.69589734",
"0.6956446",
"0.6950802",
"0.6947529",
"0.69410616",
"0.6935258",
"0.6933204",
"0.69330424",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.6929421",
"0.69279766",
"0.692665",
"0.69197804",
"0.6916528",
"0.691307",
"0.6908826",
"0.68986934",
"0.68986934",
"0.68986934",
"0.68986934",
"0.68936574",
"0.68929654",
"0.688207",
"0.6880623"
] | 0.0 | -1 |
Creates a new jCard value. | public JCardValue(List<JsonValue> values) {
this.values = Collections.unmodifiableList(values);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();",
"public static JCardValue single(Object value) {\n\t\treturn new JCardValue(new JsonValue(value));\n\t}",
"public Card(String type,String value)\n {\n this.type = type;\n this.value = value;\n }",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}",
"public void createValue() {\n value = new GisInfoCaptureDO();\n }",
"public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }",
"public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }",
"public Card(String value, int numericval, Cardtype type, Cardcolor color) {\n this.value = value;\n this.numericval = numericval;\n this.type = type;\n this.color = color;\n }",
"public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }",
"public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }",
"public void generateCardValue() {\r\n\t\tswitch (cardNumber) {\r\n\t\tcase 1:\r\n\t\t\tcardValue = \"Ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardValue = \"Two\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tcardValue = \"Three\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardValue = \"Four\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardValue = \"Five\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardValue = \"Six\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardValue = \"Seven\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardValue = \"Eight\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardValue = \"Nine\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardValue = \"Ten\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardValue = \"Jack\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardValue = \"Queen\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardValue = \"King\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"ObjectValue createObjectValue();",
"public Card(String name) {\n setValue(name);\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"NumberValue createNumberValue();",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"@Override\r\n\tpublic Card createCard(Color color, Value label) {\r\n\t\tCard newCard = new Card(color, label);\r\n\t\treturn newCard;\r\n\t}",
"public KCard (Card.Color c, int value) {\n this.color = c;\n this.value = value;\n }",
"@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}",
"public Card(Suit suit, Value value){\n this.value = value;\n this.suit = suit;\n }",
"public static DevelopmentCard parseCard(JsonValue jCard){\n\t JsonObject card = jCard.asObject();\n\n String name = card.get(\"name\").asString();\n String cardType = card.get(\"cardType\").asString();\n Integer period = card.get(\"period\").asInt();\n Integer actionValue;\n \n if(\"TERRITORYCARD\".equals(cardType) || \"BUILDINGCARD\".equals(cardType)){\n JsonValue action = card.get(\"minimumActionValue\"); \n actionValue = action.asInt();\n } else {\n actionValue = 0;\n }\n\n DevelopmentCard newCard = new DevelopmentCard(name, period, cardType, actionValue);\n \n // registrazione costi e requisiti\n JsonValue resourceCost = card.get(\"cost\");\n if(resourceCost != null && !resourceCost.isNull()){\n JsonArray resourceArray = new JsonArray();\n if( resourceCost.isObject() ){ // Carta con costo singolo\n resourceArray.add(resourceCost);\n }\n if( resourceCost.isArray() ){ // Carta con costo multiplo\n resourceArray = resourceCost.asArray();\n }\n newCard.registerCost(resourceArray.iterator());\n }\n \n JsonValue requirements = card.get(\"requirements\");\n if(requirements != null && !requirements.isNull())\n newCard.setRequirments(requirements.asObject());\n \n // registrazione effetti\n JsonValue instantEffect = card.get(\"instantEffect\");\n JsonValue instantPayload = card.get(\"instantPayload\"); \n List<Tuple<JsonValue, JsonValue>> instantEffectList = parseEffect(instantEffect,\n instantPayload);\n \n for(Tuple<JsonValue, JsonValue> effect: instantEffectList){\n newCard.registerInstantEffect(getEffectFromRegistry(effect.getFirstArg().asString(),\n effect.getSecondArg()));\n newCard.registerInstantEffectType(effect.getFirstArg().asString());\n }\n\n JsonValue permanentEffect = card.get(\"permanentEffect\");\n JsonValue permanentPayload = card.get(\"permanentPayload\");\n List<Tuple<JsonValue, JsonValue>> permanentEffectList = parseEffect(permanentEffect,\n permanentPayload);\n for(Tuple<JsonValue, JsonValue> effect : permanentEffectList){\n newCard.registerPermanentEffect(getEffectFromRegistry(effect.getFirstArg().asString(), effect.getSecondArg()));\n newCard.addPayload(effect.getSecondArg()); //used by CHANGE effect for pretty context build\n newCard.registerPermanentEffectType(effect.getFirstArg().asString());\n }\n return newCard;\n\t}",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public Value() {}",
"public CreditCard(int pin, String number, String holder, Date expiryDate, int cvc){\r\n this.pin = pin;\r\n this.number = number;\r\n this.holder = holder;\r\n this.expiryDate = expiryDate;\r\n this.cvc = cvc;\r\n}",
"@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }",
"abstract public Vcard createVcard();",
"public Value(){}",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public String getCardValue() {\n return Cvalue;\n }",
"public Card(int cardNumber, JButton jButton) {//upon creation;\n this.cardNumber = cardNumber;//set the card number of this card;\n this.jButton = jButton;//set the JButton of this card;\n// System.out.println(cardNumber);//SOUT the card numbers;\n }",
"public Card (Suit s, int v) {\n suit = s;\n val = v;\n }",
"public JCardValue(JsonValue... values) {\n\t\tthis.values = Arrays.asList(values); //unmodifiable\n\t}",
"public int getCardValue()\n {\n return cardValue; \n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public Card() { this(12, 3); }",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"Quantity createQuantity();",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public NumericalCard(final Color color, final Value value) {\n this.color = color;\n this.value = value;\n }",
"public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }",
"public Card(int s, int v){\n\t\t//make a card with suit s and value v\n\t\tsuit = s;\n\t\tvalue = v; \n\t\t\n\t}",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"private JComboBox getCardValue() {\n\t\tif (cardValue == null) {\n\t\t\tcardValue = new JComboBox();\n\t\t\tcardValue.setModel(new TypeModel(TypeModel.valueType_cards));\n\t\t\tcardValue.setSelectedIndex(5);\n\t\t}\n\t\treturn cardValue;\n\t}",
"public Card() {\n this(new Random().nextInt(54));\n establishHierarchicalValue();\n }",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(char value, Suit suit) {\n this.set(value, suit);\n }",
"Values createValues();",
"abstract Valuable createMoney(double value);",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"private static ObjectNode createJsonNode(Player player, String name, double value) throws JsonProcessingException {\n ObjectNode jsonObject = objectMapper.createObjectNode();\n\n jsonObject.put(\"type\", TYPE.NUMBER.toString());\n jsonObject.put(\"playerId\", player.getId());\n jsonObject.put(\"teamId\", player.getTeamId());\n jsonObject.put(\"gameId\", player.getGameId());\n jsonObject.put(\"name\", player.getName());\n jsonObject.put(\"starttime\", (new Date()).getTime());\n jsonObject.put(\"variable\", name);\n jsonObject.put(\"number\", value);\n jsonObject.put(\"logID\", player.getGameModel().getProperties().getLogID());\n return jsonObject;\n }",
"private Value() {\n\t}",
"ConstValue createConstValue();",
"public Value() {\n }",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }",
"public BabbleValue() {}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"T mo512a(C0636l c0636l, JsonValue jsonValue);",
"public Card(Color color, int value) throws UnoException {\r\n this.color = color;\r\n if (value < 0 || value > 9) {\r\n throw new UnoException(\"Veuillez entrer une valeur comprise entre 0\"\r\n + \" et 9\");\r\n } else {\r\n this.value = value;\r\n }\r\n }",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"public Card(String cardRank, String cardSuit, int cardPointValue) {\r\n\t\t/* *** TO BE IMPLEMENTED IN ACTIVITY 1 *** */\r\n rank = cardRank;\r\n suit = cardSuit;\r\n pointValue = cardPointValue;\r\n \r\n\t}",
"public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }",
"public Card(int v, Suit s, String special) {\n this.value = v;\n this.suit = s;\n this.specialTypeOfCard = special;\n\n }",
"public creditPayment(String nm,String expdate,long no,double paymentAmount)\n{\nname=nm;\nexdate=expdate;\ncardnumber=no;\namount = paymentAmount;\n}",
"public Card()\r\n {\r\n rand = new Random();\r\n value = rand.nextInt(28); \r\n // Assigning value\r\n if (value >= 14) // Check if value is greater than 14 then value = value - 14;\r\n value -= 14;\r\n // Assigning color\r\n rand = new Random();\r\n // Switch statement for assigning different colors\r\n switch(rand.nextInt(4) )\r\n {\r\n case 0: color = \"Red\"; \r\n break;\r\n case 1: color = \"Green\"; \r\n break;\r\n case 2: color = \"Blue\"; \r\n break;\r\n case 3: color = \"Yellow\"; \r\n break;\r\n }\r\n // If the card is a wild card and value is greater than or equal to 13 then none value is assigned to color variable\r\n if (value >= 13)\r\n color = \"none\";\r\n }",
"RowValue createRowValue();",
"public void testCreateValue() {\n System.out.println(\"createValue\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\";// NOI18N\n PropertyValue result = PropertyValue.createValue(new PrimitiveDescriptorSupport().getDescriptorForTypeIDString(TypesSupport.TYPEID_JAVA_LANG_STRING.getString()), type, value);\n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }",
"public DebitCard(String n, int c, int p, Date e, Customer h, Provider p) {}",
"public card(){\n\t\tname = \"blank\";\n\t\ttype = \"blank\";\n\t\tcost = 0;\n\t\tgold = 0;\n\t\tvictory_points = 0;\n\t\taction = 0;\n\t\tbuy = 0;\n\t\tcard= 0;\n\t\tattack = false;\n\t}",
"public Card copy(){\n return new Card(Suits, Value);\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }",
"IntValue createIntValue();",
"IntValue createIntValue();",
"@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}",
"public Card(){\n suit = 0;\n rank = 0;\n }",
"@NotNull\n @Contract(\"!null -> new\")\n static CellValue newInstance(@Nullable Object originalValue) {\n if (originalValue == null) {\n return NULL;\n } else {\n return new CellValue(originalValue);\n }\n }",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"public Card(int x) {\n\t\tid = x;\n\t}",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"UnsignedValue createUnsignedValue();",
"public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }",
"static Card generateRandomCard()\n {\n Card.Suit suit;\n char val;\n\n int suitSelector, valSelector;\n\n // get random suit and value\n suitSelector = (int) (Math.random() * 4);\n valSelector = (int) (Math.random() * 14);\n\n // pick suit\n suit = Card.Suit.values()[suitSelector];\n\n // pick value\n valSelector++; // put in range 1-14\n switch(valSelector)\n {\n case 1:\n val = 'A';\n break;\n case 10:\n val = 'T';\n break;\n case 11:\n val = 'J';\n break;\n case 12:\n val = 'Q';\n break;\n case 13:\n val = 'K';\n break;\n case 14:\n val = 'X';\n break;\n default:\n val = (char)('0' + valSelector); // simple way to turn n into 'n' \n }\n return new Card(val, suit);\n }",
"public Card() {\n this(new VCard());\n vcard.getProperties().add(Version.VERSION_4_0);\n\n version = 4;\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }",
"public Card makeCopy(){\n return new Card(vimage);\n }",
"@JsonCreator\n\tpublic static ChargeType fromJsonValue(String jsonValue) {\n\t\tif (jsonValue != null) {\n\t\t\ttry {\n\t\t\t\treturn ChargeType.valueOf(jsonValue);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public FactoryValue( ) \r\n {\r\n }"
] | [
"0.6325887",
"0.6278705",
"0.62786186",
"0.608739",
"0.6044805",
"0.60177773",
"0.5996432",
"0.588255",
"0.5800796",
"0.57950604",
"0.57538855",
"0.5750251",
"0.574208",
"0.57291925",
"0.5708596",
"0.5708433",
"0.568887",
"0.56631166",
"0.565551",
"0.5628515",
"0.55624765",
"0.5554205",
"0.5552389",
"0.5513577",
"0.5467714",
"0.5462055",
"0.54132116",
"0.54049087",
"0.53794193",
"0.5372837",
"0.5363777",
"0.53637266",
"0.53500825",
"0.5347249",
"0.53458554",
"0.5345343",
"0.5307323",
"0.52995634",
"0.5296391",
"0.5290278",
"0.5282401",
"0.5281632",
"0.52811754",
"0.52804345",
"0.52743214",
"0.52655673",
"0.52494335",
"0.5244677",
"0.52433646",
"0.5240844",
"0.52260375",
"0.5221543",
"0.52089316",
"0.51994026",
"0.5188278",
"0.5188278",
"0.5188278",
"0.5188278",
"0.5182304",
"0.51772904",
"0.5174079",
"0.5171427",
"0.516574",
"0.5155114",
"0.51540315",
"0.5146202",
"0.51322",
"0.5095284",
"0.50772744",
"0.5073608",
"0.50690883",
"0.50624543",
"0.5038465",
"0.50078076",
"0.49949163",
"0.49802026",
"0.49737686",
"0.49686083",
"0.49583465",
"0.49560374",
"0.49560374",
"0.4954928",
"0.49319625",
"0.49319625",
"0.49232286",
"0.49223307",
"0.49159393",
"0.49020925",
"0.49019703",
"0.49016973",
"0.4882545",
"0.4866556",
"0.4847797",
"0.4845516",
"0.48415244",
"0.4838764",
"0.48377874",
"0.48305747",
"0.48223272",
"0.48076585"
] | 0.49243087 | 84 |
Creates a new jCard value. | public JCardValue(JsonValue... values) {
this.values = Arrays.asList(values); //unmodifiable
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"public BJCard(Suit s, Value gVal)\r\n {\r\n suit = s;\r\n value= gVal;\r\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();",
"public static JCardValue single(Object value) {\n\t\treturn new JCardValue(new JsonValue(value));\n\t}",
"public Card(String type,String value)\n {\n this.type = type;\n this.value = value;\n }",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}",
"public void createValue() {\n value = new GisInfoCaptureDO();\n }",
"public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }",
"public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }",
"public Card(String value, int numericval, Cardtype type, Cardcolor color) {\n this.value = value;\n this.numericval = numericval;\n this.type = type;\n this.color = color;\n }",
"public Card()\n {\n suite = \"\";\n number = \"\";\n value = 0;\n aceValue = 1;\n hasBeenPicked = false;\n }",
"public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }",
"public void generateCardValue() {\r\n\t\tswitch (cardNumber) {\r\n\t\tcase 1:\r\n\t\t\tcardValue = \"Ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardValue = \"Two\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tcardValue = \"Three\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardValue = \"Four\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardValue = \"Five\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardValue = \"Six\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardValue = \"Seven\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardValue = \"Eight\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardValue = \"Nine\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardValue = \"Ten\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardValue = \"Jack\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardValue = \"Queen\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardValue = \"King\";\r\n\t\t\tcardNumber = 10;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"ObjectValue createObjectValue();",
"public Card(String name) {\n setValue(name);\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"NumberValue createNumberValue();",
"public Card(int value, int suit)\n {\n cardValue = value;\n cardSuit = suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = value;\n \n }",
"@Override\r\n\tpublic Card createCard(Color color, Value label) {\r\n\t\tCard newCard = new Card(color, label);\r\n\t\treturn newCard;\r\n\t}",
"public KCard (Card.Color c, int value) {\n this.color = c;\n this.value = value;\n }",
"@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}",
"public Card(Suit suit, Value value){\n this.value = value;\n this.suit = suit;\n }",
"public static DevelopmentCard parseCard(JsonValue jCard){\n\t JsonObject card = jCard.asObject();\n\n String name = card.get(\"name\").asString();\n String cardType = card.get(\"cardType\").asString();\n Integer period = card.get(\"period\").asInt();\n Integer actionValue;\n \n if(\"TERRITORYCARD\".equals(cardType) || \"BUILDINGCARD\".equals(cardType)){\n JsonValue action = card.get(\"minimumActionValue\"); \n actionValue = action.asInt();\n } else {\n actionValue = 0;\n }\n\n DevelopmentCard newCard = new DevelopmentCard(name, period, cardType, actionValue);\n \n // registrazione costi e requisiti\n JsonValue resourceCost = card.get(\"cost\");\n if(resourceCost != null && !resourceCost.isNull()){\n JsonArray resourceArray = new JsonArray();\n if( resourceCost.isObject() ){ // Carta con costo singolo\n resourceArray.add(resourceCost);\n }\n if( resourceCost.isArray() ){ // Carta con costo multiplo\n resourceArray = resourceCost.asArray();\n }\n newCard.registerCost(resourceArray.iterator());\n }\n \n JsonValue requirements = card.get(\"requirements\");\n if(requirements != null && !requirements.isNull())\n newCard.setRequirments(requirements.asObject());\n \n // registrazione effetti\n JsonValue instantEffect = card.get(\"instantEffect\");\n JsonValue instantPayload = card.get(\"instantPayload\"); \n List<Tuple<JsonValue, JsonValue>> instantEffectList = parseEffect(instantEffect,\n instantPayload);\n \n for(Tuple<JsonValue, JsonValue> effect: instantEffectList){\n newCard.registerInstantEffect(getEffectFromRegistry(effect.getFirstArg().asString(),\n effect.getSecondArg()));\n newCard.registerInstantEffectType(effect.getFirstArg().asString());\n }\n\n JsonValue permanentEffect = card.get(\"permanentEffect\");\n JsonValue permanentPayload = card.get(\"permanentPayload\");\n List<Tuple<JsonValue, JsonValue>> permanentEffectList = parseEffect(permanentEffect,\n permanentPayload);\n for(Tuple<JsonValue, JsonValue> effect : permanentEffectList){\n newCard.registerPermanentEffect(getEffectFromRegistry(effect.getFirstArg().asString(), effect.getSecondArg()));\n newCard.addPayload(effect.getSecondArg()); //used by CHANGE effect for pretty context build\n newCard.registerPermanentEffectType(effect.getFirstArg().asString());\n }\n return newCard;\n\t}",
"public Card(String theSuite, int theValue){\r\n value = theValue;\r\n suite = theSuite;\r\n used = false;\r\n }",
"public Value() {}",
"public CreditCard(int pin, String number, String holder, Date expiryDate, int cvc){\r\n this.pin = pin;\r\n this.number = number;\r\n this.holder = holder;\r\n this.expiryDate = expiryDate;\r\n this.cvc = cvc;\r\n}",
"@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }",
"abstract public Vcard createVcard();",
"public Value(){}",
"public Card(String value, String suit) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(Card card) {\n this.set(card.value, card.suit);\n }",
"public String getCardValue() {\n return Cvalue;\n }",
"public Card(int cardNumber, JButton jButton) {//upon creation;\n this.cardNumber = cardNumber;//set the card number of this card;\n this.jButton = jButton;//set the JButton of this card;\n// System.out.println(cardNumber);//SOUT the card numbers;\n }",
"public Card (Suit s, int v) {\n suit = s;\n val = v;\n }",
"public int getCardValue()\n {\n return cardValue; \n }",
"Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }",
"public Card() { this(12, 3); }",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"Quantity createQuantity();",
"CardNumber(int number) {\r\n this.number = number;\r\n }",
"public NumericalCard(final Color color, final Value value) {\n this.color = color;\n this.value = value;\n }",
"public Card(String suit, String rank, int value)\t\r\n\t{\r\n\t\tthis.suit = suit;\r\n\t\tthis.rank = rank;\r\n\t\tthis.value = value;\r\n\t}",
"public Card(int v, Suit s) {\n this.value = v;\n this.suit = s;\n //this.specialTypeOfCard = NOT_FACE_NOT_ACE;\n\n }",
"public Card(int s, int v){\n\t\t//make a card with suit s and value v\n\t\tsuit = s;\n\t\tvalue = v; \n\t\t\n\t}",
"public Card(String suit,int value)\n\t{\n\t\tthis.suit=suit;\n\t\tthis.value=value;\n\t}",
"private JComboBox getCardValue() {\n\t\tif (cardValue == null) {\n\t\t\tcardValue = new JComboBox();\n\t\t\tcardValue.setModel(new TypeModel(TypeModel.valueType_cards));\n\t\t\tcardValue.setSelectedIndex(5);\n\t\t}\n\t\treturn cardValue;\n\t}",
"public Card() {\n this(new Random().nextInt(54));\n establishHierarchicalValue();\n }",
"public Card(String suit, int value) {\n this.value = value;\n this.suit = suit;\n }",
"public Card(char value, Suit suit) {\n this.set(value, suit);\n }",
"Values createValues();",
"abstract Valuable createMoney(double value);",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"private static ObjectNode createJsonNode(Player player, String name, double value) throws JsonProcessingException {\n ObjectNode jsonObject = objectMapper.createObjectNode();\n\n jsonObject.put(\"type\", TYPE.NUMBER.toString());\n jsonObject.put(\"playerId\", player.getId());\n jsonObject.put(\"teamId\", player.getTeamId());\n jsonObject.put(\"gameId\", player.getGameId());\n jsonObject.put(\"name\", player.getName());\n jsonObject.put(\"starttime\", (new Date()).getTime());\n jsonObject.put(\"variable\", name);\n jsonObject.put(\"number\", value);\n jsonObject.put(\"logID\", player.getGameModel().getProperties().getLogID());\n return jsonObject;\n }",
"private Value() {\n\t}",
"ConstValue createConstValue();",
"public Value() {\n }",
"public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }",
"public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }",
"public BabbleValue() {}",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"T mo512a(C0636l c0636l, JsonValue jsonValue);",
"public Card(Color color, int value) throws UnoException {\r\n this.color = color;\r\n if (value < 0 || value > 9) {\r\n throw new UnoException(\"Veuillez entrer une valeur comprise entre 0\"\r\n + \" et 9\");\r\n } else {\r\n this.value = value;\r\n }\r\n }",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"public Card(String cardRank, String cardSuit, int cardPointValue) {\r\n\t\t/* *** TO BE IMPLEMENTED IN ACTIVITY 1 *** */\r\n rank = cardRank;\r\n suit = cardSuit;\r\n pointValue = cardPointValue;\r\n \r\n\t}",
"public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }",
"public Card(int v, Suit s, String special) {\n this.value = v;\n this.suit = s;\n this.specialTypeOfCard = special;\n\n }",
"public creditPayment(String nm,String expdate,long no,double paymentAmount)\n{\nname=nm;\nexdate=expdate;\ncardnumber=no;\namount = paymentAmount;\n}",
"public Card()\r\n {\r\n rand = new Random();\r\n value = rand.nextInt(28); \r\n // Assigning value\r\n if (value >= 14) // Check if value is greater than 14 then value = value - 14;\r\n value -= 14;\r\n // Assigning color\r\n rand = new Random();\r\n // Switch statement for assigning different colors\r\n switch(rand.nextInt(4) )\r\n {\r\n case 0: color = \"Red\"; \r\n break;\r\n case 1: color = \"Green\"; \r\n break;\r\n case 2: color = \"Blue\"; \r\n break;\r\n case 3: color = \"Yellow\"; \r\n break;\r\n }\r\n // If the card is a wild card and value is greater than or equal to 13 then none value is assigned to color variable\r\n if (value >= 13)\r\n color = \"none\";\r\n }",
"RowValue createRowValue();",
"public void testCreateValue() {\n System.out.println(\"createValue\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\";// NOI18N\n PropertyValue result = PropertyValue.createValue(new PrimitiveDescriptorSupport().getDescriptorForTypeIDString(TypesSupport.TYPEID_JAVA_LANG_STRING.getString()), type, value);\n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }",
"public DebitCard(String n, int c, int p, Date e, Customer h, Provider p) {}",
"public card(){\n\t\tname = \"blank\";\n\t\ttype = \"blank\";\n\t\tcost = 0;\n\t\tgold = 0;\n\t\tvictory_points = 0;\n\t\taction = 0;\n\t\tbuy = 0;\n\t\tcard= 0;\n\t\tattack = false;\n\t}",
"public Card copy(){\n return new Card(Suits, Value);\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }",
"IntValue createIntValue();",
"IntValue createIntValue();",
"public JCardValue(List<JsonValue> values) {\n\t\tthis.values = Collections.unmodifiableList(values);\n\t}",
"@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}",
"public Card(){\n suit = 0;\n rank = 0;\n }",
"@NotNull\n @Contract(\"!null -> new\")\n static CellValue newInstance(@Nullable Object originalValue) {\n if (originalValue == null) {\n return NULL;\n } else {\n return new CellValue(originalValue);\n }\n }",
"public Card(int x) {\n\t\tid = x;\n\t}",
"public Card(int tempNum, int tempSuit)\n {\n num = tempNum;\n suit = tempSuit;\n }",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"UnsignedValue createUnsignedValue();",
"public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }",
"static Card generateRandomCard()\n {\n Card.Suit suit;\n char val;\n\n int suitSelector, valSelector;\n\n // get random suit and value\n suitSelector = (int) (Math.random() * 4);\n valSelector = (int) (Math.random() * 14);\n\n // pick suit\n suit = Card.Suit.values()[suitSelector];\n\n // pick value\n valSelector++; // put in range 1-14\n switch(valSelector)\n {\n case 1:\n val = 'A';\n break;\n case 10:\n val = 'T';\n break;\n case 11:\n val = 'J';\n break;\n case 12:\n val = 'Q';\n break;\n case 13:\n val = 'K';\n break;\n case 14:\n val = 'X';\n break;\n default:\n val = (char)('0' + valSelector); // simple way to turn n into 'n' \n }\n return new Card(val, suit);\n }",
"public Card() {\n this(new VCard());\n vcard.getProperties().add(Version.VERSION_4_0);\n\n version = 4;\n }",
"void mo350a(C0636l c0636l, JsonValue jsonValue);",
"public Card()\n {\n suit = 0;\n rank = Card.ACE;\n }",
"public Card makeCopy(){\n return new Card(vimage);\n }",
"@JsonCreator\n\tpublic static ChargeType fromJsonValue(String jsonValue) {\n\t\tif (jsonValue != null) {\n\t\t\ttry {\n\t\t\t\treturn ChargeType.valueOf(jsonValue);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public FactoryValue( ) \r\n {\r\n }"
] | [
"0.6323412",
"0.6278215",
"0.6277929",
"0.6088263",
"0.60434973",
"0.6017146",
"0.5994914",
"0.5880758",
"0.57995975",
"0.57938045",
"0.57524836",
"0.57487744",
"0.5739698",
"0.5728747",
"0.5708687",
"0.57063955",
"0.5686814",
"0.5661747",
"0.5654018",
"0.5628711",
"0.5562293",
"0.5552699",
"0.55508006",
"0.55139303",
"0.54664874",
"0.54618007",
"0.5412084",
"0.54028594",
"0.53797567",
"0.537259",
"0.5362679",
"0.5361643",
"0.5349578",
"0.5346666",
"0.5345034",
"0.53053546",
"0.5298324",
"0.5294988",
"0.52896327",
"0.5281779",
"0.52801573",
"0.52800304",
"0.5279979",
"0.52727646",
"0.5264588",
"0.5247937",
"0.52437735",
"0.52420014",
"0.5239488",
"0.5224479",
"0.52202255",
"0.5206853",
"0.5197665",
"0.5188216",
"0.5188216",
"0.5188216",
"0.5188216",
"0.51827",
"0.51762056",
"0.5174153",
"0.51711464",
"0.5162224",
"0.5155226",
"0.51532567",
"0.51463085",
"0.51327205",
"0.5094586",
"0.50755334",
"0.5072099",
"0.50677204",
"0.5061353",
"0.50373584",
"0.50061005",
"0.49941766",
"0.4979899",
"0.497322",
"0.4968159",
"0.49564806",
"0.49548143",
"0.49548143",
"0.49539152",
"0.49310753",
"0.49310753",
"0.49226165",
"0.49219003",
"0.4921199",
"0.49140579",
"0.49009314",
"0.49009117",
"0.4898598",
"0.4879362",
"0.48652738",
"0.4846375",
"0.48436335",
"0.48425755",
"0.48385468",
"0.4836813",
"0.4829391",
"0.4822454",
"0.48069364"
] | 0.53440076 | 35 |
Creates a singlevalued value. | public static JCardValue single(Object value) {
return new JCardValue(new JsonValue(value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object createSingleClonedValue(Object oSingleValue_p)\r\n {\r\n return oSingleValue_p;\r\n }",
"NumberValue createNumberValue();",
"ObjectValue createObjectValue();",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"T value();",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"ValueType getValue();",
"private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }",
"NullValue createNullValue();",
"NullValue createNullValue();",
"Object value();",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"IntegerValue getValueObject();",
"public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}",
"public ScalarType copyValue();",
"public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}",
"PrimitiveType createPrimitiveType();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"public Value() {}",
"private void createSingleValueSet(final double value)\n\t{\n\t\tm_mockery.checking(new Expectations()\n\t\t{\n\t\t\t{\n\t\t\t\tallowing(m_values).getItemCount();\n\t\t\t\twill(returnValue(1));\n\t\t\t\tallowing(m_values).getValue(0);\n\t\t\t\twill(returnValue(value));\n\t\t\t\t\n\t\t\t\tallowing(m_values).getKey(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getIndex(0);\n\t\t\t\twill(returnValue(0));\n\t\t\t\tallowing(m_values).getKeys();\n\t\t\t\twill(returnValue(new ArrayList<Integer>().add(0)));\n\t\t\t}\n\t\t});\n\t}",
"IntValue createIntValue();",
"IntValue createIntValue();",
"PrimitiveProperty createPrimitiveProperty();",
"protected static Object createValue(Class type)\n {\n Object rv = null;\n\n if (type.isPrimitive()) {\n if (type == Boolean.TYPE)\n rv = new Boolean(false);\n \n else if (type == Byte.TYPE)\n rv = new Byte((byte)0);\n \n else if (type == Character.TYPE)\n rv = new Character((char)0);\n \n else if (type == Short.TYPE)\n rv = new Short((short)0);\n \n else if (type == Integer.TYPE)\n rv = new Integer(0);\n \n else if (type == Long.TYPE)\n rv = new Long(0);\n \n else if (type == Float.TYPE)\n rv = new Float(0);\n \n else if (type == Double.TYPE)\n rv = new Double(0);\n \n else if (type == Void.TYPE)\n rv = null;\n \n else \n throw new Error(\"unreachable\");\n }\n\n return rv;\n }",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public Value(){}",
"static <V> Value<V> of(V value) {\n return new ImmutableValue<>(value);\n }",
"@NotNull\n T getValue();",
"static <V> Value<V> of(Value<V> value) {\n return new ImmutableValue<>(value.get());\n }",
"Short getValue();",
"public T getValue();",
"ScalarTypeDefinition createScalarTypeDefinition();",
"@Override\r\n\tpublic int single() {\n\t\treturn 0;\r\n\t}",
"public static void singleValue(String name, long value) {\n singleValue(name,value,null);\n }",
"ScalarOperand createScalarOperand();",
"public Object objectValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public Object getValue();",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"ConstValue createConstValue();",
"public void testCreateValue() {\n System.out.println(\"createValue\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\";// NOI18N\n PropertyValue result = PropertyValue.createValue(new PrimitiveDescriptorSupport().getDescriptorForTypeIDString(TypesSupport.TYPEID_JAVA_LANG_STRING.getString()), type, value);\n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }",
"public static <T> T getValue(T value){\n return value;\n }",
"UserDefinedType createUserDefinedType();",
"public V getValue1() {\n return v;\n }",
"public Jode single() {\n return single(false);\n }",
"public static Value makeAnyNum() {\n return theNumAny;\n }",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"SimpleLiteral createSimpleLiteral();",
"LValue getCreatedLValue();",
"Optional<ValueType> getSingle(KeyType key);",
"public static Value makeObject(ObjectLabel v) {\n if (v == null)\n throw new NullPointerException();\n Value r = new Value();\n r.object_labels = newSet();\n r.object_labels.add(v);\n return canonicalize(r);\n }",
"public S getValue() { return value; }",
"public Object _createValue( String lexicalValue, ValidationContext context ) {\n try {\n Short v = (Short)super._createValue(lexicalValue,context);\n if( v==null ) return null;\n if( v.shortValue()<0 ) return null;\n if( v.shortValue()>upperBound ) return null;\n return v;\n } catch( NumberFormatException e ) {\n return null;\n }\n }",
"protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }",
"Object getValueFrom();",
"public abstract O value();",
"public static VariableValue createValueObject(double value) {\n\t\treturn new DoubleValue(value);\n\t}",
"public String getCreationValue(Object obj, Database db)\r\n throws ReflectiveOperationException {\r\n if (fieldAccess.isConstantGetValue()) {\r\n return (String) getValue(obj);\r\n }\r\n else if (obj != null) {\r\n return db.formatValue(getValue(obj), databaseSetMethod.getParameterTypes()[1], false);\r\n }\r\n else {\r\n return \"?\";\r\n }\r\n }",
"protected T getValue0() {\n\t\treturn value;\n\t}",
"public V getValue();",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"public TrueValue (){\n }",
"protected abstract T _createWithSingleElement(DeserializationContext ctxt, Object value);",
"DomainValuesType createDomainValuesType();",
"public DataPrimitive(int value) {\n\t\tsuper();\n\t\tthis.value = Integer.toString(value);\n\t}",
"@Override\n\tpublic boolean isSingle() {\n\t\treturn true;\n\t}",
"@Test\n public void testGetSingleValue() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>(Collections.singletonList(new ConfigDocument(DS_3)));\n assertEquals(result.getFirstValue(), DS_3);\n }",
"Integer getValue();",
"Integer getValue();",
"static Nda<Short> of( short... value ) { return Tensor.of( Short.class, Shape.of( value.length ), value ); }",
"public static Value makeNull() {\n return theNull;\n }",
"Values createValues();",
"boolean isSimpleValue();",
"ArrayValue createArrayValue();",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }",
"public DataPrimitive(String value) {\n\t\tsuper();\n\t\tif (value == null) {\n\t\t\tthis.value = \"\"; \n\t\t} else {\n\t\t\tthis.value = value;\n\t\t}\n\t}",
"RowValue createRowValue();",
"public Number(final T theVal)\n {\n if (theVal instanceof Integer) {\n myInt = (Integer) theVal;\n isInt = true;\n } else if (theVal instanceof Double) {\n myDouble = (Double) theVal;\n isDouble = true;\n } else if (theVal instanceof Float) {\n myFloat = (Float) theVal;\n isFloat = true;\n } else if (theVal instanceof Long) {\n myLong = (Long) theVal;\n isLong = true;\n }\n }",
"UnsignedValue createUnsignedValue();",
"public abstract Object getValue();",
"public abstract Object getValue();",
"public abstract Object getValue();"
] | [
"0.6552693",
"0.65349656",
"0.64067835",
"0.6400549",
"0.6400549",
"0.6315018",
"0.6262787",
"0.619546",
"0.6183892",
"0.6174878",
"0.6174878",
"0.6118122",
"0.6112017",
"0.5957992",
"0.5957326",
"0.59572774",
"0.5919409",
"0.590795",
"0.58980864",
"0.58980864",
"0.58980864",
"0.58980864",
"0.58980864",
"0.58980864",
"0.58727974",
"0.58672005",
"0.58213645",
"0.58213645",
"0.58177555",
"0.5811758",
"0.5777079",
"0.5777079",
"0.5777079",
"0.5777079",
"0.5777079",
"0.5777079",
"0.5777079",
"0.57577807",
"0.57559854",
"0.5752285",
"0.5751443",
"0.57339674",
"0.5705734",
"0.56884015",
"0.5687684",
"0.56547934",
"0.5648428",
"0.56419796",
"0.5633408",
"0.5611535",
"0.5611535",
"0.5611535",
"0.5611535",
"0.5611535",
"0.5607299",
"0.5604468",
"0.55913085",
"0.557689",
"0.55316204",
"0.55177397",
"0.55081844",
"0.55027896",
"0.5497563",
"0.54928434",
"0.54871076",
"0.54865503",
"0.5483622",
"0.5481607",
"0.54647034",
"0.54602927",
"0.5443391",
"0.54406536",
"0.54289454",
"0.5428836",
"0.54138553",
"0.5409208",
"0.5397791",
"0.5397791",
"0.5382392",
"0.53730714",
"0.5367288",
"0.5366925",
"0.536124",
"0.53576845",
"0.5357066",
"0.5357066",
"0.5355032",
"0.53526103",
"0.5351769",
"0.5349735",
"0.53473294",
"0.5337892",
"0.5334137",
"0.533147",
"0.5317634",
"0.5314426",
"0.5299044",
"0.5296529",
"0.5296529",
"0.5296529"
] | 0.66426396 | 0 |
Creates a multivalued value. | public static JCardValue multi(Object... values) {
return multi(Arrays.asList(values));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Values createValues();",
"ArrayValue createArrayValue();",
"Multi createMulti();",
"Map<String, List<String>> getFormDataMultivalue();",
"FromValues createFromValues();",
"public static JCardValue multi(List<?> values) {\n\t\tList<JsonValue> multiValues = new ArrayList<>(values.size());\n\t\tfor (Object value : values) {\n\t\t\tmultiValues.add(new JsonValue(value));\n\t\t}\n\t\treturn new JCardValue(multiValues);\n\t}",
"public JSONObject buildMultivalueAttribute(Set<Attribute> multiValueAttribute, JSONObject json) {\n\n\t\tString mainAttributeName = \"\";\n\n\t\tList<String> checkedNames = new ArrayList<String>();\n\n\t\tSet<Attribute> specialMlAttributes = new HashSet<Attribute>();\n\t\tfor (Attribute i : multiValueAttribute) {\n\t\t\tString attributeName = i.getName();\n\t\t\tString[] attributeNameParts = attributeName.split(DELIMITER); // e.g.\n\t\t\t// name.givenName\n\n\t\t\tif (checkedNames.contains(attributeNameParts[0])) {\n\t\t\t} else {\n\t\t\t\tJSONObject jObject = new JSONObject();\n\t\t\t\tmainAttributeName = attributeNameParts[0];\n\t\t\t\tcheckedNames.add(mainAttributeName);\n\t\t\t\tfor (Attribute j : multiValueAttribute) {\n\t\t\t\t\tString secondLoopAttributeName = j.getName();\n\t\t\t\t\tString[] secondLoopAttributeNameParts = secondLoopAttributeName.split(DELIMITER); // e.g.\n\t\t\t\t\t// name.givenName\n\t\t\t\t\tif (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& !mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tjObject.put(secondLoopAttributeNameParts[1], AttributeUtil.getSingleValue(j));\n\t\t\t\t\t} else if (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tspecialMlAttributes.add(j);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (specialMlAttributes.isEmpty()) {\n\t\t\t\t\tjson.put(attributeNameParts[0], jObject);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\telse {\n\t\t\t\t\tString sMlAttributeName = \"No schema type\";\n\t\t\t\t\tBoolean nameWasSet = false;\n\n\t\t\t\t\tfor (Attribute specialAtribute : specialMlAttributes) {\n\t\t\t\t\t\tString innerName = specialAtribute.getName();\n\t\t\t\t\t\tString[] innerKeyParts = innerName.split(DELIMITER); // e.g.\n\t\t\t\t\t\t// name.givenName\n\t\t\t\t\t\tif (innerKeyParts[1].equals(TYPE) && !nameWasSet) {\n\t\t\t\t\t\t\tsMlAttributeName = AttributeUtil.getAsStringValue(specialAtribute);\n\t\t\t\t\t\t\tnameWasSet = true;\n\t\t\t\t\t\t} else if (!innerKeyParts[1].equals(TYPE)) {\n\n\t\t\t\t\t\t\tjObject.put(innerKeyParts[1], AttributeUtil.getSingleValue(specialAtribute));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (nameWasSet) {\n\n\t\t\t\t\t\tjson.put(sMlAttributeName, jObject);\n\t\t\t\t\t\tspecialMlAttributes.removeAll(specialMlAttributes);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLOGGER.error(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied {0}. Error ocourance while translating user object attribute set: {0}\",\n\t\t\t\t\t\t\t\tsMlAttributeName);\n\t\t\t\t\t\tthrow new InvalidAttributeValueException(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied. Error ocourance while translating user object attribute set\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn json;\n\t}",
"NumberValue createNumberValue();",
"@JsonIgnore\r\n\tpublic Integer getMultivalue() {\r\n\t\treturn multivalue;\r\n\t}",
"protected abstract T _createWithSingleElement(DeserializationContext ctxt, Object value);",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"public long addMulti(Integer qid, String value) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(MULTI_KEY_QUES_ID, qid);\n\t\tvalues.put(MULTI_KEY_VALUE, value);\n\n\t\tlong pid = db.insert(TABLE_MULTI, null, values);\n\t\tdb.close();\n\t\treturn pid;\n\t}",
"public void writeNextMultivalue(String name, String... values) throws ThingsException;",
"ListOfValuesType createListOfValuesType();",
"public int getMultiple() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getMultiple();\n } else {\n // @todo Replace with real Builder object if possible\n final String value = childBuilderElement.getAttributeValue(\"multiple\");\n final int retVal;\n if (getTime() != NOT_SET) {\n // can't use both time and multiple\n retVal = NOT_SET;\n } else if (value == null) {\n // no multiple attribute is set\n // use default multiple value\n retVal = 1;\n } else {\n retVal = Integer.parseInt(value);\n }\n return retVal;\n }\n }",
"protected MultivaluedMap<String, String> getParameters(\n\t\t\tString... keyValueParams) {\n\t\tif (keyValueParams == null)\n\t\t\treturn null;\n\t\tMultivaluedHashMap<String, String> parameters = null;\n\t\tparameters = new MultivaluedHashMap<>();\n\t\tfor (int i = 0; i < keyValueParams.length; i += 2)\n\t\t\tparameters.add(keyValueParams[i], keyValueParams[i + 1]);\n\t\treturn parameters;\n\t}",
"DomainValuesType createDomainValuesType();",
"default T multiParts(Part... multiParts) {\n return multiParts(Arrays.asList(multiParts));\n }",
"private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values)\n {\n return new Tuples.Value(values);\n }",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"ParamValueRelation createParamValueRelation();",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"default T multiParts(Collection<? extends Part> multiParts) {\n return body(new MultiPartHttpBody(multiParts));\n }",
"ObjectValue createObjectValue();",
"private void addScalarProperty(XMLName name, boolean multiValued)\n throws Exception\n {\n\n if (!multiValued)\n {\n //out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /*out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(name.getLocalName());\n */\n }\n }",
"protected Object createSingleClonedValue(Object oSingleValue_p)\r\n {\r\n return oSingleValue_p;\r\n }",
"public void addValue(String variable, List<String> list_values) {\n\t\tDate date = new Date();\n\t\tDatabaseStore ds = DatabaseStore.DatabaseMultichoiceStore(variable,\n\t\t\t\t\"multichoice\", date);\n\t\tlong pid = addQuestion(ds);\n\t\tfor (int i = 0; i < list_values.size(); i++) {\n\t\t\taddMulti((int) pid, list_values.get(i));\n\t\t}\n\t}",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"TupleLiteralPart createTupleLiteralPart();",
"public void setMulti(boolean value) {\n getElement().setMulti(value);\n }",
"public Value(){}",
"public static JCardValue structured(List<List<?>> values) {\n\t\tList<JsonValue> array = new ArrayList<>(values.size());\n\n\t\tfor (List<?> list : values) {\n\t\t\tif (list.isEmpty()) {\n\t\t\t\tarray.add(new JsonValue(\"\"));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (list.size() == 1) {\n\t\t\t\tObject value = list.get(0);\n\t\t\t\tif (value == null) {\n\t\t\t\t\tvalue = \"\";\n\t\t\t\t}\n\t\t\t\tarray.add(new JsonValue(value));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tList<JsonValue> subArray = new ArrayList<>(list.size());\n\t\t\tfor (Object value : list) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tvalue = \"\";\n\t\t\t\t}\n\t\t\t\tsubArray.add(new JsonValue(value));\n\t\t\t}\n\t\t\tarray.add(new JsonValue(subArray));\n\t\t}\n\n\t\treturn new JCardValue(new JsonValue(array));\n\t}",
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"ArrayProxyValue createArrayProxyValue();",
"private HttpEntity buildMultiPart(MetaExpression expression, ConstructContext context) {\n if (expression.getType() != OBJECT && expression.getType() != LIST) {\n throw new RobotRuntimeException(\"A multipart body must always be an OBJECT or a LIST. Please check the documentation.\");\n }\n MultipartEntityBuilder builder = MultipartEntityBuilder.create();\n\n if (expression.getType() == OBJECT) {\n expression.<Map<String, MetaExpression>>getValue()\n .forEach((name, bodyPart) -> buildPart(name, bodyPart, context, builder));\n } else if (expression.getType() == LIST) {\n expression.<List<MetaExpression>>getValue()\n .forEach(bodyPart -> buildPart(null, bodyPart, context, builder));\n }\n\n return builder.build();\n }",
"public static JCardValue single(Object value) {\n\t\treturn new JCardValue(new JsonValue(value));\n\t}",
"public static VariableValue createValueObject(String value) {\n\t\tif (value == null)\n\t\t\treturn null;\n\t\treturn new StringValue(value);\n\t}",
"Object getValueFrom();",
"RowValue createRowValue();",
"UnsignedValue createUnsignedValue();",
"public static AttributeValue buildAttributeValue(String attName, String attValue) {\n String attType = \"S\";\n Map<String, String> fieldTypeMap = ProductTableMetadata.getFieldTypeMap();\n if (fieldTypeMap.containsKey(attName)) {\n attType = fieldTypeMap.get(attName);\n }\n\n switch (attType) {\n case \"S\":\n return new AttributeValue().withS(attValue);\n case \"N\":\n return new AttributeValue().withN(attValue);\n default:\n throw new IllegalArgumentException(\"Type does not supported\");\n }\n }",
"public ArrayValue( Object array )\n\t{\n\t\tthis( array, (byte) 0, null, 0 );\n\t}",
"@NonNull\n\t\tMap<String, List<String>> getMultiValuedOptions();",
"private Values(){}",
"PropertyValue<?, ?>[] values();",
"static List<SubstantiveParametersParameterItem> createSubstantiveParametersParameterItem(List<String> collectionOfItems) {\n List<SubstantiveParametersParameterItem> substantiveParametersParameterItemList = new ArrayList<>();\n for (String item: collectionOfItems) {\n substantiveParametersParameterItemList.add(new SubstantiveParametersParameterItem(item));\n }\n return substantiveParametersParameterItemList;\n }",
"public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}",
"Property addValue(PropertyValue<?, ?> value);",
"public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}",
"public MultiString(String[] languages, String[] values)\n {\n // Verify arguments\n if (languages == null || values == null || languages.length == 0 || languages.length != values.length)\n throw new IllegalArgumentException();\n for (int i = 0; i < languages.length; i++)\n if (languages[i] == null || values[i] == null) throw new IllegalArgumentException();\n\n // Save arguments\n this.languages = languages;\n this.values = values;\n\n // Create hashtable\n createHashtable();\n }",
"ListValue createListValue();",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"protected T _deserializeFromSingleValue(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n final JsonDeserializer<?> valueDes = _valueDeserializer;\n final TypeDeserializer typeDeser = _valueTypeDeserializer;\n final JsonToken t = p.getCurrentToken();\n\n final Object value;\n\n if (t == JsonToken.VALUE_NULL) {\n if (_skipNullValues) {\n return _createEmpty(ctxt);\n }\n value = _nullProvider.getNullValue(ctxt);\n } else if (typeDeser == null) {\n value = valueDes.deserialize(p, ctxt);\n } else {\n value = valueDes.deserializeWithType(p, ctxt, typeDeser);\n }\n return _createWithSingleElement(ctxt, value);\n\n }",
"AdditionalValuesType getAdditionalValues();",
"public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public MemberBuilder addMemberScalar(String name, String desc, String units, DataType dtype, Number val) {\n MemberBuilder mb = addMember(name, desc, units, dtype, new int[0]);\n Array data = null;\n switch (dtype) {\n case UBYTE:\n case BYTE:\n case ENUM1:\n data = new ArrayByte.D0(dtype.isUnsigned());\n data.setByte(0, val.byteValue());\n break;\n case SHORT:\n case USHORT:\n case ENUM2:\n data = new ArrayShort.D0(dtype.isUnsigned());\n data.setShort(0, val.shortValue());\n break;\n case INT:\n case UINT:\n case ENUM4:\n data = new ArrayInt.D0(dtype.isUnsigned());\n data.setInt(0, val.intValue());\n break;\n case LONG:\n case ULONG:\n data = new ArrayLong.D0(dtype.isUnsigned());\n data.setDouble(0, val.longValue());\n break;\n case FLOAT:\n data = new ArrayFloat.D0();\n data.setFloat(0, val.floatValue());\n break;\n case DOUBLE:\n data = new ArrayDouble.D0();\n data.setDouble(0, val.doubleValue());\n break;\n }\n mb.setDataArray(data);\n return mb;\n }",
"public Metadata(String[] key, String[] value) {\n mJSONObject = new JSONObject();\n\n if (key.length != value.length) {\n LOGGER.warning(\"The JSON Object was created, but you gave me two arrays of \"\n + \"different sizes!\");\n \n if (key.length > value.length) {\n LOGGER.warning(\"The JSON Object created has null values.\");\n }\n else {\n LOGGER.warning(\"The JSON Object created has lost values.\");\n }\n }\n\n for (int i = 0; i < key.length; i++) {\n insert(key[i], value[i]);\n }\n }",
"FromValuesColumns createFromValuesColumns();",
"public static Value makeObject(Set<ObjectLabel> v) {\n Value r = new Value();\n if (!v.isEmpty())\n r.object_labels = newSet(v);\n return canonicalize(r);\n }",
"@ConstructorProperties({\"values\"})\n public Tuple(Object... values) {\n this();\n Collections.addAll(elements, values);\n }",
"UserDefinedType createUserDefinedType();",
"InputValueDefinition createInputValueDefinition();",
"@SafeVarargs\n private static Restriction newMultiIN(CFMetaData cfMetaData, int firstIndex, List<ByteBuffer>... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n List<Term> terms = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex + i));\n terms.add(toMultiItemTerminal(values[i].toArray(new ByteBuffer[0])));\n }\n return new MultiColumnRestriction.InWithValues(columnDefinitions, terms);\n }",
"private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}",
"FieldType newFieldType(ValueType valueType, QName name, Scope scope);",
"public Value() {}",
"public boolean isMultivalueRequestsSupported() {\n return multivalueRequestsSupported;\n }",
"@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}",
"private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}",
"RangeOfValuesType createRangeOfValuesType();",
"public StringSetField build() {\n Objects.requireNonNull(value, StringSetField.class + \": value is missing\");\n return new StringSetFieldImpl(value);\n }",
"public void setValues(List<Object> values);",
"Values values();",
"private static final void putValue(final ContentValues v, Object value) {\n if (value instanceof String) {\n v.put(\"value\", (String) value);\n } else {\n v.put(\"value\", (Integer) value);\n }\n }",
"public T value(final Object value) {\r\n\t\treturn values(value);\r\n\t}",
"protected abstract Property createProperty(String key, Object value);",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"@Test(expected=IllegalArgumentException.class)\n public void testNamedParamCollectionNotAllowedForSingleValuesValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).eq().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Collections.singletonList(10D));\n }",
"public Value(DataType t, Class c) {\n type = t;\n itemClass = c;\n }",
"<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();",
"TupleLiteralExp createTupleLiteralExp();",
"interface MetadataFieldValues {\n\n @FunctionalInterface\n interface Factory {\n MetadataFieldValues create(String fieldName, FieldType fieldType);\n }\n\n boolean shouldAddValuesWhileIndexing();\n\n Map<String, Integer> distribution();\n\n ValueListComplete isComplete();\n\n void setValues(JsonNode values);\n\n void setComplete(ValueListComplete complete);\n\n void addValue(String value);\n\n void removeValue(String value);\n\n void reset();\n}",
"protected DataField(final String value, final Charset charset)\n\t\tthrows UnsupportedEncodingException {\n\t\t\n\t\tsuper();\n\t\t\n\t\tDataDecoder decoder;\n\t\tString[] v;\n\t\tString vv;\n\t\tboolean subFields = false;\n\t\t\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException(\"Argument value is null.\");\n\t\t}\n\t\tdecoder = DataDecoder.getInstance();\n\t\tthis.value = decoder.decode(value);\n\t\tif (value.indexOf('\\'') >= 0) {\n\t\t\tv = value.split(\"\\\\'\", -1);\n\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\tvv = v[index];\n\t\t\t\tthis.values.addElement(decoder.decode(vv));\n\t\t\t\tif (!subFields && (vv.indexOf(',') >= 0)) {\n\t\t\t\t\tsubFields = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (subFields) {\n\t\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\t\tvv = v[index];\n\t\t\t\t\tthis.dataFields.addElement(new DataField(vv, charset));\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value.indexOf(',') >= 0) {\n\t\t\tv = value.split(\",\", -1);\n\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\tthis.values.addElement(decoder.decode(v[index]));\n\t\t\t}\n\t\t} else {\n\t\t\tthis.values.add(this.value);\n\t\t}\n\t}",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}",
"private static final Object getFieldValue(Field field, String value) {\r\n if (String.class == field.getType()) {\r\n // for fields of type String return value as-is\r\n return value;\r\n } else {\r\n // in all other cases try to construct an object using it's class single-arg constructor\r\n return newObjectFromString(field.getType(), value);\r\n }\r\n }",
"public Attribute_New(String _name, String _value)\n {\n name = _name;\n\n List singleAttributList = new ArrayList<String>();\n singleAttributList.add(_value);\n\n }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public JCardValue(JsonValue... values) {\n\t\tthis.values = Arrays.asList(values); //unmodifiable\n\t}",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"public static Instance createElement(Object[] vector) {\n List<Value> values = new Vector<Value>();\n for (Object value : vector) {\n values.add(createValue(value));\n }\n return new Instance(values);\n }",
"Object getValue();"
] | [
"0.5947393",
"0.5748297",
"0.5575866",
"0.55432963",
"0.55377954",
"0.5434732",
"0.53005326",
"0.526055",
"0.52346706",
"0.5109454",
"0.51074624",
"0.50910366",
"0.50879836",
"0.50664544",
"0.50607777",
"0.49851972",
"0.4937037",
"0.49292865",
"0.49067175",
"0.48775843",
"0.48761055",
"0.4868636",
"0.4868636",
"0.48159778",
"0.4794227",
"0.47900596",
"0.47826132",
"0.47823167",
"0.4770701",
"0.4718687",
"0.47141823",
"0.47016573",
"0.46066058",
"0.46016762",
"0.45959127",
"0.45940688",
"0.45818058",
"0.45751476",
"0.4561224",
"0.4560435",
"0.45563847",
"0.45517442",
"0.45317006",
"0.45304042",
"0.4529634",
"0.45250443",
"0.45211196",
"0.45200756",
"0.45196384",
"0.45161784",
"0.4513044",
"0.45127484",
"0.45096996",
"0.45087993",
"0.4496712",
"0.44942003",
"0.449162",
"0.44870543",
"0.44846967",
"0.4479229",
"0.44783288",
"0.44779018",
"0.44720754",
"0.44710478",
"0.4468284",
"0.4462392",
"0.4460789",
"0.44598752",
"0.4458429",
"0.44581124",
"0.44517094",
"0.44504902",
"0.44426495",
"0.44416037",
"0.44394976",
"0.44376108",
"0.443431",
"0.4429274",
"0.4428766",
"0.44266436",
"0.442488",
"0.442488",
"0.442488",
"0.442488",
"0.442488",
"0.442488",
"0.4424677",
"0.44182634",
"0.44055402",
"0.44048086",
"0.44020867",
"0.44019142",
"0.43776003",
"0.43731666",
"0.4365016",
"0.43644676",
"0.43615094",
"0.43613878",
"0.43515292",
"0.43502185"
] | 0.60016626 | 0 |
Creates a multivalued value. | public static JCardValue multi(List<?> values) {
List<JsonValue> multiValues = new ArrayList<>(values.size());
for (Object value : values) {
multiValues.add(new JsonValue(value));
}
return new JCardValue(multiValues);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static JCardValue multi(Object... values) {\n\t\treturn multi(Arrays.asList(values));\n\t}",
"Values createValues();",
"ArrayValue createArrayValue();",
"Multi createMulti();",
"Map<String, List<String>> getFormDataMultivalue();",
"FromValues createFromValues();",
"public JSONObject buildMultivalueAttribute(Set<Attribute> multiValueAttribute, JSONObject json) {\n\n\t\tString mainAttributeName = \"\";\n\n\t\tList<String> checkedNames = new ArrayList<String>();\n\n\t\tSet<Attribute> specialMlAttributes = new HashSet<Attribute>();\n\t\tfor (Attribute i : multiValueAttribute) {\n\t\t\tString attributeName = i.getName();\n\t\t\tString[] attributeNameParts = attributeName.split(DELIMITER); // e.g.\n\t\t\t// name.givenName\n\n\t\t\tif (checkedNames.contains(attributeNameParts[0])) {\n\t\t\t} else {\n\t\t\t\tJSONObject jObject = new JSONObject();\n\t\t\t\tmainAttributeName = attributeNameParts[0];\n\t\t\t\tcheckedNames.add(mainAttributeName);\n\t\t\t\tfor (Attribute j : multiValueAttribute) {\n\t\t\t\t\tString secondLoopAttributeName = j.getName();\n\t\t\t\t\tString[] secondLoopAttributeNameParts = secondLoopAttributeName.split(DELIMITER); // e.g.\n\t\t\t\t\t// name.givenName\n\t\t\t\t\tif (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& !mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tjObject.put(secondLoopAttributeNameParts[1], AttributeUtil.getSingleValue(j));\n\t\t\t\t\t} else if (secondLoopAttributeNameParts[0].equals(mainAttributeName)\n\t\t\t\t\t\t\t&& mainAttributeName.equals(SCHEMA)) {\n\t\t\t\t\t\tspecialMlAttributes.add(j);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (specialMlAttributes.isEmpty()) {\n\t\t\t\t\tjson.put(attributeNameParts[0], jObject);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\telse {\n\t\t\t\t\tString sMlAttributeName = \"No schema type\";\n\t\t\t\t\tBoolean nameWasSet = false;\n\n\t\t\t\t\tfor (Attribute specialAtribute : specialMlAttributes) {\n\t\t\t\t\t\tString innerName = specialAtribute.getName();\n\t\t\t\t\t\tString[] innerKeyParts = innerName.split(DELIMITER); // e.g.\n\t\t\t\t\t\t// name.givenName\n\t\t\t\t\t\tif (innerKeyParts[1].equals(TYPE) && !nameWasSet) {\n\t\t\t\t\t\t\tsMlAttributeName = AttributeUtil.getAsStringValue(specialAtribute);\n\t\t\t\t\t\t\tnameWasSet = true;\n\t\t\t\t\t\t} else if (!innerKeyParts[1].equals(TYPE)) {\n\n\t\t\t\t\t\t\tjObject.put(innerKeyParts[1], AttributeUtil.getSingleValue(specialAtribute));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (nameWasSet) {\n\n\t\t\t\t\t\tjson.put(sMlAttributeName, jObject);\n\t\t\t\t\t\tspecialMlAttributes.removeAll(specialMlAttributes);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLOGGER.error(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied {0}. Error ocourance while translating user object attribute set: {0}\",\n\t\t\t\t\t\t\t\tsMlAttributeName);\n\t\t\t\t\t\tthrow new InvalidAttributeValueException(\n\t\t\t\t\t\t\t\t\"Schema type not speciffied. Error ocourance while translating user object attribute set\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn json;\n\t}",
"NumberValue createNumberValue();",
"@JsonIgnore\r\n\tpublic Integer getMultivalue() {\r\n\t\treturn multivalue;\r\n\t}",
"protected abstract T _createWithSingleElement(DeserializationContext ctxt, Object value);",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"public long addMulti(Integer qid, String value) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(MULTI_KEY_QUES_ID, qid);\n\t\tvalues.put(MULTI_KEY_VALUE, value);\n\n\t\tlong pid = db.insert(TABLE_MULTI, null, values);\n\t\tdb.close();\n\t\treturn pid;\n\t}",
"public void writeNextMultivalue(String name, String... values) throws ThingsException;",
"ListOfValuesType createListOfValuesType();",
"public int getMultiple() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getMultiple();\n } else {\n // @todo Replace with real Builder object if possible\n final String value = childBuilderElement.getAttributeValue(\"multiple\");\n final int retVal;\n if (getTime() != NOT_SET) {\n // can't use both time and multiple\n retVal = NOT_SET;\n } else if (value == null) {\n // no multiple attribute is set\n // use default multiple value\n retVal = 1;\n } else {\n retVal = Integer.parseInt(value);\n }\n return retVal;\n }\n }",
"protected MultivaluedMap<String, String> getParameters(\n\t\t\tString... keyValueParams) {\n\t\tif (keyValueParams == null)\n\t\t\treturn null;\n\t\tMultivaluedHashMap<String, String> parameters = null;\n\t\tparameters = new MultivaluedHashMap<>();\n\t\tfor (int i = 0; i < keyValueParams.length; i += 2)\n\t\t\tparameters.add(keyValueParams[i], keyValueParams[i + 1]);\n\t\treturn parameters;\n\t}",
"DomainValuesType createDomainValuesType();",
"default T multiParts(Part... multiParts) {\n return multiParts(Arrays.asList(multiParts));\n }",
"private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values)\n {\n return new Tuples.Value(values);\n }",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"ParamValueRelation createParamValueRelation();",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"default T multiParts(Collection<? extends Part> multiParts) {\n return body(new MultiPartHttpBody(multiParts));\n }",
"ObjectValue createObjectValue();",
"private void addScalarProperty(XMLName name, boolean multiValued)\n throws Exception\n {\n\n if (!multiValued)\n {\n //out.write(\",\");\n out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(name.getLocalName());\n out.write(\" VARCHAR(50)\");\n createAllTablesQuery+=NEWLINE+INDENT+\"m_\"+name.getLocalName()+\" VARCHAR(50)\";\n\n }else\n {\n // out.write(\",\");\n /*out.write(NEWLINE);\n out.write(INDENT);\n out.write(\"m_\");\n out.write(name.getLocalName());\n */\n }\n }",
"protected Object createSingleClonedValue(Object oSingleValue_p)\r\n {\r\n return oSingleValue_p;\r\n }",
"public void addValue(String variable, List<String> list_values) {\n\t\tDate date = new Date();\n\t\tDatabaseStore ds = DatabaseStore.DatabaseMultichoiceStore(variable,\n\t\t\t\t\"multichoice\", date);\n\t\tlong pid = addQuestion(ds);\n\t\tfor (int i = 0; i < list_values.size(); i++) {\n\t\t\taddMulti((int) pid, list_values.get(i));\n\t\t}\n\t}",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();",
"TupleLiteralPart createTupleLiteralPart();",
"public void setMulti(boolean value) {\n getElement().setMulti(value);\n }",
"public Value(){}",
"public static JCardValue structured(List<List<?>> values) {\n\t\tList<JsonValue> array = new ArrayList<>(values.size());\n\n\t\tfor (List<?> list : values) {\n\t\t\tif (list.isEmpty()) {\n\t\t\t\tarray.add(new JsonValue(\"\"));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (list.size() == 1) {\n\t\t\t\tObject value = list.get(0);\n\t\t\t\tif (value == null) {\n\t\t\t\t\tvalue = \"\";\n\t\t\t\t}\n\t\t\t\tarray.add(new JsonValue(value));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tList<JsonValue> subArray = new ArrayList<>(list.size());\n\t\t\tfor (Object value : list) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tvalue = \"\";\n\t\t\t\t}\n\t\t\t\tsubArray.add(new JsonValue(value));\n\t\t\t}\n\t\t\tarray.add(new JsonValue(subArray));\n\t\t}\n\n\t\treturn new JCardValue(new JsonValue(array));\n\t}",
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"ArrayProxyValue createArrayProxyValue();",
"private HttpEntity buildMultiPart(MetaExpression expression, ConstructContext context) {\n if (expression.getType() != OBJECT && expression.getType() != LIST) {\n throw new RobotRuntimeException(\"A multipart body must always be an OBJECT or a LIST. Please check the documentation.\");\n }\n MultipartEntityBuilder builder = MultipartEntityBuilder.create();\n\n if (expression.getType() == OBJECT) {\n expression.<Map<String, MetaExpression>>getValue()\n .forEach((name, bodyPart) -> buildPart(name, bodyPart, context, builder));\n } else if (expression.getType() == LIST) {\n expression.<List<MetaExpression>>getValue()\n .forEach(bodyPart -> buildPart(null, bodyPart, context, builder));\n }\n\n return builder.build();\n }",
"public static JCardValue single(Object value) {\n\t\treturn new JCardValue(new JsonValue(value));\n\t}",
"public static VariableValue createValueObject(String value) {\n\t\tif (value == null)\n\t\t\treturn null;\n\t\treturn new StringValue(value);\n\t}",
"Object getValueFrom();",
"RowValue createRowValue();",
"UnsignedValue createUnsignedValue();",
"public static AttributeValue buildAttributeValue(String attName, String attValue) {\n String attType = \"S\";\n Map<String, String> fieldTypeMap = ProductTableMetadata.getFieldTypeMap();\n if (fieldTypeMap.containsKey(attName)) {\n attType = fieldTypeMap.get(attName);\n }\n\n switch (attType) {\n case \"S\":\n return new AttributeValue().withS(attValue);\n case \"N\":\n return new AttributeValue().withN(attValue);\n default:\n throw new IllegalArgumentException(\"Type does not supported\");\n }\n }",
"public ArrayValue( Object array )\n\t{\n\t\tthis( array, (byte) 0, null, 0 );\n\t}",
"@NonNull\n\t\tMap<String, List<String>> getMultiValuedOptions();",
"private Values(){}",
"static List<SubstantiveParametersParameterItem> createSubstantiveParametersParameterItem(List<String> collectionOfItems) {\n List<SubstantiveParametersParameterItem> substantiveParametersParameterItemList = new ArrayList<>();\n for (String item: collectionOfItems) {\n substantiveParametersParameterItemList.add(new SubstantiveParametersParameterItem(item));\n }\n return substantiveParametersParameterItemList;\n }",
"public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}",
"PropertyValue<?, ?>[] values();",
"Property addValue(PropertyValue<?, ?> value);",
"public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}",
"public MultiString(String[] languages, String[] values)\n {\n // Verify arguments\n if (languages == null || values == null || languages.length == 0 || languages.length != values.length)\n throw new IllegalArgumentException();\n for (int i = 0; i < languages.length; i++)\n if (languages[i] == null || values[i] == null) throw new IllegalArgumentException();\n\n // Save arguments\n this.languages = languages;\n this.values = values;\n\n // Create hashtable\n createHashtable();\n }",
"ListValue createListValue();",
"public abstract Quantity<Q> create(Number value, Unit<Q> unit);",
"protected T _deserializeFromSingleValue(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n final JsonDeserializer<?> valueDes = _valueDeserializer;\n final TypeDeserializer typeDeser = _valueTypeDeserializer;\n final JsonToken t = p.getCurrentToken();\n\n final Object value;\n\n if (t == JsonToken.VALUE_NULL) {\n if (_skipNullValues) {\n return _createEmpty(ctxt);\n }\n value = _nullProvider.getNullValue(ctxt);\n } else if (typeDeser == null) {\n value = valueDes.deserialize(p, ctxt);\n } else {\n value = valueDes.deserializeWithType(p, ctxt, typeDeser);\n }\n return _createWithSingleElement(ctxt, value);\n\n }",
"AdditionalValuesType getAdditionalValues();",
"public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public MemberBuilder addMemberScalar(String name, String desc, String units, DataType dtype, Number val) {\n MemberBuilder mb = addMember(name, desc, units, dtype, new int[0]);\n Array data = null;\n switch (dtype) {\n case UBYTE:\n case BYTE:\n case ENUM1:\n data = new ArrayByte.D0(dtype.isUnsigned());\n data.setByte(0, val.byteValue());\n break;\n case SHORT:\n case USHORT:\n case ENUM2:\n data = new ArrayShort.D0(dtype.isUnsigned());\n data.setShort(0, val.shortValue());\n break;\n case INT:\n case UINT:\n case ENUM4:\n data = new ArrayInt.D0(dtype.isUnsigned());\n data.setInt(0, val.intValue());\n break;\n case LONG:\n case ULONG:\n data = new ArrayLong.D0(dtype.isUnsigned());\n data.setDouble(0, val.longValue());\n break;\n case FLOAT:\n data = new ArrayFloat.D0();\n data.setFloat(0, val.floatValue());\n break;\n case DOUBLE:\n data = new ArrayDouble.D0();\n data.setDouble(0, val.doubleValue());\n break;\n }\n mb.setDataArray(data);\n return mb;\n }",
"public Metadata(String[] key, String[] value) {\n mJSONObject = new JSONObject();\n\n if (key.length != value.length) {\n LOGGER.warning(\"The JSON Object was created, but you gave me two arrays of \"\n + \"different sizes!\");\n \n if (key.length > value.length) {\n LOGGER.warning(\"The JSON Object created has null values.\");\n }\n else {\n LOGGER.warning(\"The JSON Object created has lost values.\");\n }\n }\n\n for (int i = 0; i < key.length; i++) {\n insert(key[i], value[i]);\n }\n }",
"public static Value makeObject(Set<ObjectLabel> v) {\n Value r = new Value();\n if (!v.isEmpty())\n r.object_labels = newSet(v);\n return canonicalize(r);\n }",
"FromValuesColumns createFromValuesColumns();",
"UserDefinedType createUserDefinedType();",
"InputValueDefinition createInputValueDefinition();",
"@ConstructorProperties({\"values\"})\n public Tuple(Object... values) {\n this();\n Collections.addAll(elements, values);\n }",
"FieldType newFieldType(ValueType valueType, QName name, Scope scope);",
"public Value() {}",
"@SafeVarargs\n private static Restriction newMultiIN(CFMetaData cfMetaData, int firstIndex, List<ByteBuffer>... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n List<Term> terms = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex + i));\n terms.add(toMultiItemTerminal(values[i].toArray(new ByteBuffer[0])));\n }\n return new MultiColumnRestriction.InWithValues(columnDefinitions, terms);\n }",
"private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}",
"public boolean isMultivalueRequestsSupported() {\n return multivalueRequestsSupported;\n }",
"@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}",
"private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}",
"public StringSetField build() {\n Objects.requireNonNull(value, StringSetField.class + \": value is missing\");\n return new StringSetFieldImpl(value);\n }",
"RangeOfValuesType createRangeOfValuesType();",
"public void setValues(List<Object> values);",
"private static final void putValue(final ContentValues v, Object value) {\n if (value instanceof String) {\n v.put(\"value\", (String) value);\n } else {\n v.put(\"value\", (Integer) value);\n }\n }",
"Values values();",
"protected abstract Property createProperty(String key, Object value);",
"public T value(final Object value) {\r\n\t\treturn values(value);\r\n\t}",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"@Test(expected=IllegalArgumentException.class)\n public void testNamedParamCollectionNotAllowedForSingleValuesValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).eq().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Collections.singletonList(10D));\n }",
"public Value(DataType t, Class c) {\n type = t;\n itemClass = c;\n }",
"protected DataField(final String value, final Charset charset)\n\t\tthrows UnsupportedEncodingException {\n\t\t\n\t\tsuper();\n\t\t\n\t\tDataDecoder decoder;\n\t\tString[] v;\n\t\tString vv;\n\t\tboolean subFields = false;\n\t\t\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException(\"Argument value is null.\");\n\t\t}\n\t\tdecoder = DataDecoder.getInstance();\n\t\tthis.value = decoder.decode(value);\n\t\tif (value.indexOf('\\'') >= 0) {\n\t\t\tv = value.split(\"\\\\'\", -1);\n\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\tvv = v[index];\n\t\t\t\tthis.values.addElement(decoder.decode(vv));\n\t\t\t\tif (!subFields && (vv.indexOf(',') >= 0)) {\n\t\t\t\t\tsubFields = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (subFields) {\n\t\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\t\tvv = v[index];\n\t\t\t\t\tthis.dataFields.addElement(new DataField(vv, charset));\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (value.indexOf(',') >= 0) {\n\t\t\tv = value.split(\",\", -1);\n\t\t\tfor (int index = 0; index < v.length; index++) {\n\t\t\t\tthis.values.addElement(decoder.decode(v[index]));\n\t\t\t}\n\t\t} else {\n\t\t\tthis.values.add(this.value);\n\t\t}\n\t}",
"TupleLiteralExp createTupleLiteralExp();",
"interface MetadataFieldValues {\n\n @FunctionalInterface\n interface Factory {\n MetadataFieldValues create(String fieldName, FieldType fieldType);\n }\n\n boolean shouldAddValuesWhileIndexing();\n\n Map<String, Integer> distribution();\n\n ValueListComplete isComplete();\n\n void setValues(JsonNode values);\n\n void setComplete(ValueListComplete complete);\n\n void addValue(String value);\n\n void removeValue(String value);\n\n void reset();\n}",
"<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}",
"private static final Object getFieldValue(Field field, String value) {\r\n if (String.class == field.getType()) {\r\n // for fields of type String return value as-is\r\n return value;\r\n } else {\r\n // in all other cases try to construct an object using it's class single-arg constructor\r\n return newObjectFromString(field.getType(), value);\r\n }\r\n }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public Attribute_New(String _name, String _value)\n {\n name = _name;\n\n List singleAttributList = new ArrayList<String>();\n singleAttributList.add(_value);\n\n }",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"public JCardValue(JsonValue... values) {\n\t\tthis.values = Arrays.asList(values); //unmodifiable\n\t}",
"Object getValue();",
"Object getValue();"
] | [
"0.5997797",
"0.5949197",
"0.574874",
"0.5572447",
"0.5542807",
"0.5539091",
"0.5299194",
"0.52631253",
"0.5232287",
"0.51126397",
"0.5108208",
"0.5089093",
"0.5086289",
"0.50665504",
"0.505787",
"0.49878085",
"0.49401805",
"0.49281722",
"0.49029478",
"0.48806772",
"0.4879045",
"0.48719352",
"0.48719352",
"0.4814529",
"0.47994843",
"0.4788749",
"0.47857898",
"0.47795126",
"0.47720698",
"0.4720555",
"0.4713777",
"0.4698183",
"0.46095327",
"0.45995837",
"0.45988193",
"0.4595659",
"0.45805934",
"0.45775497",
"0.45644996",
"0.45631522",
"0.4556564",
"0.45534438",
"0.453446",
"0.4531383",
"0.4527504",
"0.45257902",
"0.45210123",
"0.45206878",
"0.45196167",
"0.45180023",
"0.45145163",
"0.45117056",
"0.45110813",
"0.450763",
"0.44983217",
"0.44947448",
"0.44931743",
"0.44897953",
"0.4483906",
"0.4480039",
"0.44791892",
"0.44777527",
"0.4473048",
"0.44708818",
"0.4470773",
"0.44623",
"0.44617218",
"0.4460269",
"0.44601125",
"0.44586566",
"0.445405",
"0.44527486",
"0.44439605",
"0.44423288",
"0.4438384",
"0.44383654",
"0.4437713",
"0.44326052",
"0.4430591",
"0.4428937",
"0.44267452",
"0.44267452",
"0.44267452",
"0.44267452",
"0.44267452",
"0.44267452",
"0.4426444",
"0.44168946",
"0.44050676",
"0.4404563",
"0.44045365",
"0.44044963",
"0.43813083",
"0.43797982",
"0.43663302",
"0.43658155",
"0.43622574",
"0.4361286",
"0.43530682",
"0.43530682"
] | 0.5430986 | 6 |
Creates a structured value. | public static JCardValue structured(List<List<?>> values) {
List<JsonValue> array = new ArrayList<>(values.size());
for (List<?> list : values) {
if (list.isEmpty()) {
array.add(new JsonValue(""));
continue;
}
if (list.size() == 1) {
Object value = list.get(0);
if (value == null) {
value = "";
}
array.add(new JsonValue(value));
continue;
}
List<JsonValue> subArray = new ArrayList<>(list.size());
for (Object value : list) {
if (value == null) {
value = "";
}
subArray.add(new JsonValue(value));
}
array.add(new JsonValue(subArray));
}
return new JCardValue(new JsonValue(array));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Values createValues();",
"public BwValue mkValue() {\n\t\treturn new BwValue(this.sT);\n\t}",
"private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}",
"Structure createStructure();",
"ObjectValue createObjectValue();",
"ArrayValue createArrayValue();",
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }",
"StructureType createStructureType();",
"LValue getCreatedLValue();",
"protected abstract T create(ICalDataType dataType, SemiStructuredValueIterator it);",
"UserDefinedType createUserDefinedType();",
"RowValue createRowValue();",
"protected abstract T _createWithSingleElement(DeserializationContext ctxt, Object value);",
"DataElement createDataElement();",
"DataType createDataType();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"public abstract DataType<T> newInstance(String format);",
"DomainValuesType createDomainValuesType();",
"@Override\n\t\tpublic JSONWritable createValue() {\n\t\t\treturn null;\n\t\t}",
"public StructuredData getStructuredDataAttribute();",
"ScalarTypeDefinition createScalarTypeDefinition();",
"FromValues createFromValues();",
"public void createValue() {\n value = new GisInfoCaptureDO();\n }",
"InputValueDefinition createInputValueDefinition();",
"private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}",
"NumberValue createNumberValue();",
"@Override\r\n\t\tpublic Struct createStruct(String typeName, Object[] attributes)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public static VariableValue createValueObject(String value) {\n\t\tif (value == null)\n\t\t\treturn null;\n\t\treturn new StringValue(value);\n\t}",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"EDataType createEDataType();",
"ValueType getValue();",
"DatatypeType createDatatypeType();",
"public Value(){}",
"public Value() {}",
"MeanValueType createMeanValueType();",
"private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}",
"public Struct(String a, int b){\r\n\tid=a;\r\n\tsize=b;\t\r\n\tform=0;\r\n }",
"public Object createDataType(String typeName) throws BuildException {\n return ComponentHelper.getComponentHelper(this).createDataType(typeName);\n }",
"CsticValueModel createInstanceOfCsticValueModel(int valueType);",
"protected abstract D createData();",
"DatatypesType createDatatypesType();",
"public static Value makeObject(ObjectLabel v) {\n if (v == null)\n throw new NullPointerException();\n Value r = new Value();\n r.object_labels = newSet();\n r.object_labels.add(v);\n return canonicalize(r);\n }",
"ListOfValuesType createListOfValuesType();",
"public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }",
"public ValueInfo toValueInfo() {\r\n return new ValueInfo(name, typeName, isFinal);\r\n }",
"ListValue createListValue();",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public void createValue() {\n value = new AES_GetBusa_Lib_1_0.AES_GetBusa_Request();\n }",
"abstract protected ValueFactory getValueFactory();",
"ParameterStructInstance createParameterStructInstance();",
"interface MetadataFieldValues {\n\n @FunctionalInterface\n interface Factory {\n MetadataFieldValues create(String fieldName, FieldType fieldType);\n }\n\n boolean shouldAddValuesWhileIndexing();\n\n Map<String, Integer> distribution();\n\n ValueListComplete isComplete();\n\n void setValues(JsonNode values);\n\n void setComplete(ValueListComplete complete);\n\n void addValue(String value);\n\n void removeValue(String value);\n\n void reset();\n}",
"RecordType createRecordType();",
"public Struct(String b){\r\n\tid=b;\r\n\tsize=0;\r\n\tform=0;\r\n }",
"public static StructType STRUCT() {\n return new StructType();\n }",
"public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }",
"FieldType createFieldType();",
"FData createFData();",
"public TableValue(short type) {\n\tkey = null; // No name by default.\n\tstorageType = type; // Type of data. \n\tattrs = null; // No attributes yet.\n\tflags = -1; // No flags yet. \n\n\t// Create a generic, default vector clock. \n\tvclock = new VectorClock(\"s\".getBytes(), 0);\n }",
"public void testCreateValue() {\n System.out.println(\"createValue\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\";// NOI18N\n PropertyValue result = PropertyValue.createValue(new PrimitiveDescriptorSupport().getDescriptorForTypeIDString(TypesSupport.TYPEID_JAVA_LANG_STRING.getString()), type, value);\n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }",
"NullValue createNullValue();",
"NullValue createNullValue();",
"FieldType newFieldType(ValueType valueType, QName name, Scope scope);",
"public static WritableComparable createValue(TypeDescription type) {\n switch (type.getCategory()) {\n case BOOLEAN: return new BooleanWritable();\n case BYTE: return new ByteWritable();\n case SHORT: return new ShortWritable();\n case INT: return new IntWritable();\n case LONG: return new LongWritable();\n case FLOAT: return new FloatWritable();\n case DOUBLE: return new DoubleWritable();\n case BINARY: return new BytesWritable();\n case CHAR:\n case VARCHAR:\n case STRING:\n return new Text();\n case DATE:\n return new DateWritable();\n case TIMESTAMP:\n case TIMESTAMP_INSTANT:\n return new OrcTimestamp();\n case DECIMAL:\n return new HiveDecimalWritable();\n case STRUCT: {\n OrcStruct result = new OrcStruct(type);\n int c = 0;\n for(TypeDescription child: type.getChildren()) {\n result.setFieldValue(c++, createValue(child));\n }\n return result;\n }\n case UNION: return new OrcUnion(type);\n case LIST: return new OrcList(type);\n case MAP: return new OrcMap(type);\n default:\n throw new IllegalArgumentException(\"Unknown type \" + type);\n }\n }",
"BriefRecordType createBriefRecordType();",
"public void createDataTypeProperty(String sourceInstance, String propertyName, Object value)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName);\r\n\t\tsi.addProperty(prop, ONT_MODEL.createTypedLiteral(value)); \t\r\n\t}",
"public abstract DataType<T> newInstance(String format, Locale locale);",
"Object getValueFrom();",
"@Override\n\tpublic void builder(String name, Object value)\n\t{\n\t\tthis._data.put( name, this.preprocessObject(value));\n\t}",
"FieldsType createFieldsType();",
"static OVRF fromSTRUCT(STRUCT input) throws SQLException {\n\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tOVRF v = new OVRF();\n\t\tObject[] val = input.getAttributes();\n\t\tv.id = Helpers.integerOrNull((BigDecimal)val[0]);\n\t\tv.rt = (String)val[1];\n\t\tv.name = (String)val[2];\n\t\tv.description = (String)val[3];\n\n\t\treturn v;\n\n\t}",
"protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }",
"public IMessageFieldValue createFromString( String text) throws Exception;",
"private static LocalCacheValue createLocalCacheValue(Object internalValue, long ldtCreation, ExpiryPolicy policy,\n JCacheSyntheticKind kind)\n {\n return new LocalCacheValue(internalValue, ldtCreation, policy, kind);\n }",
"SummaryRecordType createSummaryRecordType();",
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"AtomicData createAtomicData();",
"public abstract DataType<T> newInstance();",
"org.apache.calcite.avatica.proto.Common.TypedValue getValue();",
"FieldDefinition createFieldDefinition();",
"org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getValueOrBuilder();",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}",
"com.google.protobuf.StringValue getCustomValue();",
"protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }",
"public S getValue() { return value; }",
"public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}",
"public static Value.Builder newBuilder() {\n return new Value.Builder();\n }",
"public abstract String valueAsText();",
"ConstValue createConstValue();",
"public abstract ValueType getValueType();",
"public static Column val(final Object obj) {\n\t\tif(obj == null) // if obj is null we can't generate metadata.. \n\t\t\tthrow new RuntimeException(\"Don't use val() with a null value! Use valNULL() instead!\"); \n\t\treturn new Column(obj, \"val(\" + obj.toString() + \")\"){\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t// make sure this val is only used as intended by the user..\n\t\t\t\t// ATTENTION: this means that for \"internal\" use, like\n\t\t\t\t// checkForNumber, the columnmetadata\n\t\t\t\t// needs to be accessed directly!\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}\n\t\t};\n\t}",
"public DataPrimitive(String value) {\n\t\tsuper();\n\t\tif (value == null) {\n\t\t\tthis.value = \"\"; \n\t\t} else {\n\t\t\tthis.value = value;\n\t\t}\n\t}",
"static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }",
"T getValue();"
] | [
"0.64698744",
"0.6069953",
"0.6014879",
"0.59676963",
"0.59676665",
"0.59096223",
"0.5851366",
"0.57792175",
"0.576815",
"0.5762064",
"0.57398355",
"0.5736066",
"0.5730542",
"0.57221955",
"0.57187885",
"0.5710762",
"0.55931103",
"0.55931103",
"0.55931103",
"0.55931103",
"0.5589424",
"0.5588358",
"0.5576941",
"0.5487002",
"0.54832286",
"0.5479258",
"0.542637",
"0.5401852",
"0.5383001",
"0.53829634",
"0.53395617",
"0.5334797",
"0.53330284",
"0.5324085",
"0.53083843",
"0.5261414",
"0.5243798",
"0.523643",
"0.52139926",
"0.5203977",
"0.52033824",
"0.5200504",
"0.51575744",
"0.51306033",
"0.5127443",
"0.512544",
"0.512475",
"0.5108778",
"0.51085776",
"0.51033485",
"0.5100262",
"0.5100262",
"0.50910413",
"0.50871485",
"0.50853246",
"0.5077677",
"0.5075916",
"0.50742024",
"0.5070114",
"0.50686175",
"0.5067742",
"0.50643307",
"0.5055336",
"0.50552857",
"0.50543743",
"0.50543743",
"0.5052116",
"0.505158",
"0.50500613",
"0.5040185",
"0.5037907",
"0.502536",
"0.5014888",
"0.50129306",
"0.5005391",
"0.5004553",
"0.5003999",
"0.49943927",
"0.49852374",
"0.49806723",
"0.49761918",
"0.49730185",
"0.49716407",
"0.49677122",
"0.49487925",
"0.49381313",
"0.49381313",
"0.49370718",
"0.49219543",
"0.491664",
"0.49132642",
"0.49019283",
"0.48956954",
"0.4894518",
"0.48928672",
"0.48919663",
"0.48858845",
"0.48722723",
"0.4862499",
"0.4861142"
] | 0.49259493 | 88 |
Gets all the JSON values. | public List<JsonValue> getValues() {
return values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsonIgnore\n List<T> getValues();",
"@Override\n\tpublic JSONObject getAll() {\n\t\treturn null;\n\t}",
"public List<Object> getValues();",
"public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }",
"List getValues();",
"public Collection<Object> values()\n {\n return data.values();\n }",
"Object[] getValues();",
"Object[] getValues();",
"String getJson();",
"String getJson();",
"String getJson();",
"public Object[] getValues() {\n return this.values;\n }",
"public Iterator<JacksonJrValue> elements() {\n return _values.iterator();\n }",
"public Object[] getValues();",
"public final List<Object> getResponseValues()\n\t{\n\t\treturn m_responseValues;\n\t}",
"public Iterable<Map<String,String>> get() {\n\t\tList<Map<String,String>> mapList = new ArrayList<Map<String,String>>();\n\t\tJsonParser parser = new JsonParser(); \n\t\tJsonObject json ;\n\t\tfor(String jsonString:jsonArr) {\n\t\t\tMap<String,String> sourceMap = new HashMap<String,String>();\n\t\t\tjson = (JsonObject) parser.parse(jsonString);\n\t\t\tsourceMap.put(\"SENSORID\", json.get(\"taxi_identifier\").toString());\n\t\t\tsourceMap.put(\"trip_time_in_secs\", json.get(\"trip_time_in_secs\").toString());\n\t\t\tsourceMap.put(\"trip_distance\", json.get(\"trip_distance\").toString());\n\t\t\tsourceMap.put(\"fare_amount\", json.get(\"fare_amount\").toString());\n\t\t\tsourceMap.put(\"tip_amount\", json.get(\"tip_amount\").toString());\n\t\t\tsourceMap.put(\"surcharge\", json.get(\"surcharge\").toString());\n\t\t\tmapList.add(sourceMap);\n\t\t}\n\t\t\n\t\t\n\t\treturn mapList;\n\t}",
"String getJSON();",
"public String getJson();",
"public java.util.List<java.lang.String> getValuesList() {\n return java.util.Collections.unmodifiableList(result.values_);\n }",
"@SuppressWarnings(\"unused\")\n public ArrayNode GetJsonObjectsCollection(){\n return jsonObjects;\n }",
"@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}",
"@Override\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public Future<jsonvalues.JsObj> get() {\n\n List<String> keys = bindings.keysIterator()\n .toList();\n\n\n java.util.List futures = bindings.values()\n .map(Supplier::get)\n .toJavaList();\n return CompositeFuture.all(futures)\n .map(r -> {\n JsObj result = JsObj.empty();\n java.util.List<?> list = r.result()\n .list();\n for (int i = 0; i < list.size(); i++) {\n result = result.set(keys.get(i),\n ((JsValue) list.get(i))\n );\n }\n\n return result;\n\n });\n\n\n\n /* Future<jsonvalues.JsObj> result = Future.succeededFuture(jsonvalues.JsObj.empty());\n\n for (final Tuple2<String, Exp<? extends JsValue>> tuple : bindings.iterator()) {\n result = result.flatMap(obj -> tuple._2.get()\n .map(v -> obj.set(tuple._1,\n v\n )));\n }\n\n\n return result;*/\n }",
"public List<V> values()\r\n\t{\r\n\t\tList<V> values = new ArrayList<V>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tvalues.add(element.value);\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn values;\r\n\t}",
"public String[] getValues()\n {\n return values;\n }",
"private StringBuilder getJSONHelper()\n\t{\n\t\tStringBuilder json = new StringBuilder();\n\t\tint n = 0;\n\t\tfor(String key : values.keySet())\n\t\t\tappendValue(json, key, n++);\n\t\treturn json;\n\t}",
"public JSONArray getJSONArray() {\n JSONArray result = new JSONArray();\n try {\n result.put(setting.ZERO.getJsonId(), setting.ZERO.getValueAsInt());\n // Strings\n result.put(setting.BLANK.getJsonId(), setting.BLANK.getValueAsString());\n result.put(setting.CHARACTERISTIC_DICE_TEST_NAME.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_NAME.getValueAsString());\n\n // Numbers\n // characteristic numbers\n result.put(setting.CHARACTERISTIC_AMOUNT.getJsonId(), setting.CHARACTERISTIC_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_MORE_AMOUNT.getJsonId(), setting.CHARACTERISTIC_MORE_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getValueAsInt());\n\n // Option menu numbers\n result.put(setting.OPTION_MENU_ITEM_ID_SETTINGS.getJsonId(), setting.OPTION_MENU_ITEM_ID_SETTINGS.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ID_EDIT.getJsonId(), setting.OPTION_MENU_ITEM_ID_EDIT.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getJsonId(), setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getValueAsInt());\n\n // JSON Strings\n result.put(setting.JSON_NAME.getJsonId(), setting.JSON_NAME.getValueAsString());\n result.put(setting.JSON_VALUE.getJsonId(), setting.JSON_VALUE.getValueAsString());\n\n //JSON Position Numbers\n result.put(setting.JSON_POS_CHARACTERISTICS.getJsonId(), setting.JSON_POS_CHARACTERISTICS.getValueAsInt());\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public List getValues() {\r\n\t\tif (this.values == null) {\r\n\t\t\tthis.values = new ArrayList();\r\n\t\t}\r\n\t\treturn values;\r\n\t}",
"@Override\n List<Value> values();",
"@Nonnull\n public <T extends Serializable> List<T> getValues() {\n final T[] ary = values();\n return Arrays.asList(ary);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic JSONObject[] selectAllJSON(String clase){\n \tJSONObject[] json=null;\n \ttry{\n\t \tList<JSONable> lista= selectAll(clase);\n\t \tInteger size= lista.size();\n\t\t\tjson=new JSONObject[size];\n\t\t\tInteger index=0;\n\t\t\tfor(JSONable j: lista){\n\t\t\t\t//System.out.println(j.toString());\n\t\t\t\tjson[index]= j.toJSON();\n\t\t\t\tindex++;\n\t\t\t}\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n\t\treturn json;\t\t\n }",
"public String[] getValues()\n\t{\n\t\tString[] retArr = new String[values.size()];\n\n\t\tvalues.toArray(retArr);\n\n\t\treturn retArr;\n\t}",
"@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }",
"public List<String> values() {\n return this.values;\n }",
"public List<V> values() {\n return values;\n }",
"public List<V> values() {\n return values;\n }",
"T[] getValues();",
"@Override\r\n\tpublic Collection<V> values() {\r\n\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tvalueList.addAll(b.values());\r\n\t\t}\r\n\t\treturn valueList;\r\n\t}",
"Map<String, Object> getValues(boolean deep);",
"public String getJsondata() {\n return jsondata;\n }",
"java.util.List<java.lang.String> getValuesList();",
"private org.json.simple.JSONArray createJsonArrayList() {\n org.json.simple.JSONArray list = new org.json.simple.JSONArray();\n for (VoteOption v : voteOptions) {\n list.add(v.getText());\n }\n return list;\n }",
"public static ArrayList<String> GetAllJSONKeyValues(String GETData) {\n\t\tArrayList<String> list = null;\n\t\tJSONObject objJSON1;\n\t\ttry {\n\t\t\tlist = new ArrayList<String>();\n\t\t\tobjJSON1 = new JSONObject(GETData);\n\t\t\tIterator<String> iterate1 = objJSON1.keys();\n\t\t\twhile (iterate1.hasNext()) {\n\t\t\t\tString jsonObjectStringValue = (String) iterate1.next();\n\t\t\t\tlist.add(jsonObjectStringValue);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"TemplateModel[] getValues();",
"public List<NeonValue> getValues();",
"public ArrayList<Person> getAll() throws IOException, JSONException {\n\t\tif(persons.isEmpty()){\n\t\t\tpersons=getAllFromServer();\n\t\t}\n\t\treturn persons;\n\t}",
"@Override\n\tpublic List<Map<String, String>> getData() throws Exception{\n\t\tqueryForList(\"\", null);\n\t\treturn null;\n\t}",
"public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }",
"public org.json.JSONObject getJSONObject() {\n return genClient.getJSONObject();\n }",
"public List<String> getAllData(){\n\t}",
"@Override\n public Value[] getValues() throws ValueFormatException, RepositoryException {\n return null;\n }",
"Values values();",
"private JsonArray toJsonObjectArray(Iterable<Map<String, Value>> values) {\n JsonArray arr = new JsonArray();\n for (Map<String, ?> item : values) {\n arr.add(JsonUtils.toJsonObject(item));\n }\n return arr;\n }",
"public List<T> values();",
"public ArrayList<Double> getAllValues()\n {\n return allValues;\n }",
"public List<KeyValuePair<Key, Value>> getData() {\r\n\t\t\tdata.reset();\r\n\t\t\treturn data;\r\n\t\t}",
"public List<String> getValues() {\n\t\treturn (new Vector<String>(this.values));\n\t}",
"public abstract String[] getValues();",
"public List<XYValue> getValues() {\n return values;\n }",
"public Object[] getScriptOfValuesAsObjects() {\r\n\t\tObject[] values = new Object[dataTestModel.size()];\r\n\t\tint i = 0;\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tvalues[i] = var.getValue();\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\treturn values;\r\n\t}",
"private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }",
"public java.util.List getData() {\r\n return data;\r\n }",
"public Collection<V> values() {\n\t\treturn new ValueCollection();\n\t}",
"public List<String> getData() {\r\n\t\treturn data;\r\n\t}",
"List<JSONObject> getFilteredItems();",
"public Object[] get_Values(){return new Object[]{ Id, CategoryId, StartTime, BreakTime, EndTime };}",
"Collection<V> values();",
"Collection<V> values();",
"protected abstract Object[] getValues(T t);",
"HCollection values();",
"public ArrayList<T> getAll() {\n\t\treturn new ArrayList<T>(this.data.values());\n\t}",
"protected JSONArray getJSON(HttpClient httpclient, String url){\n\t\t\tString body = \"[]\";\n\t\t\tString charset = null;\n\t\t\tJSONArray jsonarray = new JSONArray();\n\n\t\t\ttry {\t\t\t\n\t\t\t\tHttpGet httpget = new HttpGet(url);\n\n\t\t\t\tHttpResponse response = httpclient.execute(httpget);\n\t\t\t\tHttpEntity entity = response.getEntity();\n\n\t\t\t\tbody = (EntityUtils.toString(entity));\n\t\t\t\tcharset = (EntityUtils.getContentCharSet(entity));\n\t\t\t\tHeader header = entity.getContentType();\n\n\t\t\t\tJSONTokener jsontokener = new JSONTokener(body);\n\t\t\t\ttry {\n\t\t\t\t\tjsonarray = new JSONArray(jsontokener);\n\t\t\t\t\treturn jsonarray;\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn jsonarray; //jsonarray should be empty if we get here\n\t\t}",
"public List<String> getValue() {\r\n return value;\r\n }",
"public final JSONObject getJSONObject() {\n return jo;\n }",
"@Override\n\tpublic Map<String, ?> getValues() {\n\t\treturn null;\n\t}",
"public Collection<SingleValue> values() {\n return Collections.unmodifiableCollection(container.values());\n }",
"public amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[] getValueArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(VALUE$0, targetList);\n amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[] result = new amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"JSONObject toJson();",
"JSONObject toJson();",
"@Override\n\tpublic Collection<V> values() {\n\t\t// TODO\n\t\treturn new ValueView();\n\t}",
"public static ArrayList<Double> getAPITempValues() {\n try {\n return readDoubleDataInJsonFile(getPropertyValue(\"response\"), \"$..temp\");\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public JSONArray getArray (JSONValue val , String key) {\r\n\t\tJSONObject obj = val.isObject();\r\n\t\tif (obj==null)\r\n\t\t\treturn null ; \r\n\t\tJSONValue arr = obj.get(key);\r\n\t\treturn arr.isArray();\r\n\t\t\r\n\t}",
"public Object[] getElements() {\r\n\t\treturn data.toArray();\r\n\t}",
"@Override\n\tpublic Collection<V> values() {\n\t\tList<V> list = Util.newList();\n\t\tfor (K key : keys) {\n\t\t\tlist.add(map.get(key));\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}",
"public static JSONArray getGlobalValueSetList(JSONObject loginObject, String startdate, String enddate) {\n\t\tJSONArray jsonArray = null;\n\t\tString ObjectRestURL = ToolingQueryList.getGlobalValueSet(startdate, enddate);\n\t\tHttpClient httpClient = HttpClientBuilder.create().build();\n\n\t\tString instanceURL = loginObject.getString(\"instance_url\");\n\t\tString AccessToken = loginObject.getString(\"access_token\");\n\n\t\tHeader oauthHeader = new BasicHeader(\"Authorization\", \"OAuth \" + AccessToken);\n\t\tString uri = instanceURL + RestResourceURL.getToolingQueryURL(ObjectRestURL);\n\n\t\tHttpResponse response = null;\n\t\tHttpGet httpget = new HttpGet(uri);\n\t\thttpget.addHeader(oauthHeader);\n\t\ttry {\n\t\t\tresponse = httpClient.execute(httpget);\n\t\t\tif (response.getStatusLine().getStatusCode() == 200) {\n\t\t\t\tString Result = EntityUtils.toString(response.getEntity());\n\t\t\t\tJSONObject jsonObject = new JSONObject(Result);\n\t\t\t\tjsonArray = jsonObject.getJSONArray(\"records\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"getGlobalValueSetList error \" +response.getStatusLine());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getGlobalValueSetList : \" + e);\n\t\t}\n\t\treturn jsonArray;\n\t}",
"int[] getValues()\n {\n return values_;\n }",
"@GET\n public List<JsonGenre> getAll() {\n \tList<Genre> genres = genreDao.getGenres();\n \tLOGGER.info(\"find \"+genres.size()+\" genres in the database\");\n \tArrayList<JsonGenre> ls = new ArrayList<JsonGenre>();\n \tfor (Genre s:genres) {\n \t\tls.add(new JsonGenre(s.getId(), s.getName()));\n \t}\n \treturn ls;\n }",
"public List<T> values() {\n return values(System.currentTimeMillis());\n }",
"@JsonValue\n @Override\n public String toString()\n {\n return value;\n }",
"public ArrayList<HashMap<String, String>> getData() {\n\t\treturn this.data;\n\t}",
"public Set<T> values() {\n\t\t// This is immutable to prevent add/remove operation by 3rd party developers.\n\t\treturn Collections.unmodifiableSet(values);\n\t}",
"public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}",
"@ApiStatus.Internal\n @NotNull\n public Map<String, Object> getData() {\n return data;\n }",
"private JSONArray parseJSON() {\n JSONArray jsonArray = new JSONArray();\n for (TimestampedMessage m : fPending) {\n JSONTokener jsonTokener = new JSONTokener(m.fMsg);\n JSONObject jsonObject = null;\n JSONArray tempjsonArray = null;\n final char firstChar = jsonTokener.next();\n jsonTokener.back();\n if ('[' == firstChar) {\n tempjsonArray = new JSONArray(jsonTokener);\n for (int i = 0; i < tempjsonArray.length(); i++) {\n jsonArray.put(tempjsonArray.getJSONObject(i));\n }\n } else {\n jsonObject = new JSONObject(jsonTokener);\n jsonArray.put(jsonObject);\n }\n\n }\n return jsonArray;\n }",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"public JSONObject getResult()\n {\n return result;\n }",
"public Map getValues() {\r\n return this.params;\r\n }",
"@GET\n @Path(\"/getAll\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJson() {\n \n \ttry \n \t{\n \t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", \"*\").entity(servDoctores.getDoctores().toString()).build();\n \t} catch (Exception e) {\n\n \t\te.printStackTrace();\n \t\treturn Response.status(Response.Status.NO_CONTENT).build();\n \t}\n }",
"public List getPreparedValues() {\n return preparedValues;\n }"
] | [
"0.70826834",
"0.66455877",
"0.6537733",
"0.6469796",
"0.6410878",
"0.6404482",
"0.63254905",
"0.63254905",
"0.6291887",
"0.6291887",
"0.6291887",
"0.6269339",
"0.6260986",
"0.6229555",
"0.6216627",
"0.61912704",
"0.6180208",
"0.61762977",
"0.617287",
"0.59952784",
"0.5972655",
"0.59695745",
"0.5955958",
"0.5939286",
"0.5888704",
"0.5873184",
"0.5828069",
"0.5784553",
"0.5764131",
"0.57528406",
"0.57459474",
"0.57229716",
"0.5675753",
"0.56615263",
"0.56615263",
"0.5608376",
"0.5599602",
"0.5598574",
"0.5597774",
"0.55977315",
"0.5579334",
"0.55650026",
"0.5549792",
"0.5546168",
"0.55429333",
"0.5541462",
"0.5533803",
"0.5527722",
"0.5525862",
"0.55232054",
"0.5522964",
"0.5518489",
"0.5511143",
"0.55073035",
"0.54970604",
"0.548086",
"0.5468617",
"0.54683286",
"0.54515225",
"0.5451423",
"0.5445564",
"0.5441907",
"0.54410654",
"0.5425273",
"0.5417352",
"0.5415574",
"0.5415574",
"0.5409355",
"0.54092777",
"0.5400225",
"0.53953224",
"0.5389045",
"0.5385136",
"0.5380856",
"0.53731644",
"0.53666896",
"0.5365019",
"0.5365019",
"0.5355896",
"0.53535753",
"0.53526026",
"0.53507334",
"0.53476894",
"0.5342656",
"0.5341158",
"0.5340557",
"0.5339138",
"0.53360724",
"0.53345215",
"0.5329747",
"0.53135437",
"0.5298786",
"0.52980494",
"0.5296401",
"0.5294688",
"0.5294688",
"0.52909243",
"0.5281492",
"0.52749187",
"0.5273722"
] | 0.7065517 | 1 |
initial the errorNum = 0 and start to lookahead. | public Parser() throws IOException {
lookahead = System.in.read();
errorNum = 0;
input = "";
output = "";
errorPos = "";
errorList = new ArrayList<String>();
wrongState = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void restart_lookahead() throws Exception {\r\n for (int i = 1; i < error_sync_size(); i++) {\r\n Symbol[] symbolArr = this.lookahead;\r\n symbolArr[i - 1] = symbolArr[i];\r\n }\r\n this.cur_token = scan();\r\n this.lookahead[error_sync_size() - 1] = this.cur_token;\r\n this.lookahead_pos = 0;\r\n }",
"public void read_lookahead() throws Exception {\r\n this.lookahead = new Symbol[error_sync_size()];\r\n for (int i = 0; i < error_sync_size(); i++) {\r\n this.lookahead[i] = this.cur_token;\r\n this.cur_token = scan();\r\n }\r\n this.lookahead_pos = 0;\r\n }",
"public boolean advance_lookahead() {\r\n this.lookahead_pos++;\r\n if (this.lookahead_pos < error_sync_size()) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private void incrementErrors() {\n totalErrors++;\n totalTunitErrors++;\n }",
"@Test(timeout = 4000)\n public void test010() throws Throwable {\n StringReader stringReader0 = new StringReader(\"pZhZ$;yY23j:\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 121, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo((-1));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -1. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test\n public void testSingleErrorDetectingOn0thPosition() {\n final int[] msgWithError = {1,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n final int expectedErrorIndex = 0;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"public void incrementErrorCount() {\n\t\terrorCount++;\n\t}",
"void term() throws IOException {\n\t\tif (Character.isDigit((char)lookahead)) {\n\t\t\tif(errorNum == 0) {\n\t\t\t\toutput = output + (char)lookahead;\n\t\t\t}\n\t\t\tif(wrongState == false) \n\t\t\t\terrorPos = errorPos+(char)' ';\n\t\t\telse \n\t\t\t\twrongState = false;\n\t\t\tmatch(lookahead);\n\t\t} else if(lookahead == '+' || lookahead == '-') {\n\t\t\terrorNum++;\n\t\t\terrorPos = errorPos + (char)'^';\n\t\t\terrorList.add(\"Miss a digit!!\");\n\t\t\twrongState = true;\n\t\t} else {\n\t\t\tif(wrongState == false) {\n\t\t\t\terrorNum++;\n\t\t\t\terrorPos = errorPos + (char)'^';\n\t\t\t\terrorList.add(\"No this digit!!\");\n\t\t\t\tmatch(lookahead);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"protected Token lookahead() {\n return m_current;\n }",
"@Test(timeout = 4000)\n public void test040() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-796));\n // Undeclared exception!\n try { \n xPathLexer0.number();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"public void testBacktracking() throws IOException {\n assertEquals(1, regexQueryNrHits(\"4934[314]\"));\n }",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"public void CheckError(String s) {\r\n if (s.equals(token.get(lookAheadPossition))){\r\n System.out.println(\"Expected: \"+ s +\" at line:\"+ lookAheadPossition);\r\n lookAheadPossition=lookAheadPossition+1;\r\n }else {\r\n System.out.println(\"ERROR: at line:\"+ lookAheadPossition +\" expected-> \"+ s +\" --- \" + token.get(lookAheadPossition)+ \" <-detected.\" );\r\n System.exit(0);\r\n }\r\n }",
"public Symbol cur_err_token() {\r\n return this.lookahead[this.lookahead_pos];\r\n }",
"@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }",
"@Test\n\tpublic void testLookaheadBeyondEnd()\n\t{\n\t\tth.addError(1, 7, \"Unmatched '{'.\");\n\t\tth.addError(1, 7, \"Unrecoverable syntax error. (100% scanned).\");\n\t\tth.test(\"({ a: {\");\n\t}",
"private int getFirstExpectedToken(int state) {\n return getNextExpectedToken(state, -1);\n }",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n Token token0 = xPathLexer0.pipe();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(17, token0.getTokenType());\n assertEquals(\"c\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"om.werken.saxpath.XPathLexer\", token1.getTokenText());\n }",
"@Test\n public void testSingleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,0, 1,1,1,0};\n final int expectedErrorIndex = 10;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"@Test(timeout = 4000)\n public void test014() throws Throwable {\n JavaParserTokenManager javaParserTokenManager0 = null;\n try {\n javaParserTokenManager0 = new JavaParserTokenManager((JavaCharStream) null, 1632);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 1632. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test041() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-2521));\n // Undeclared exception!\n try { \n xPathLexer0.nextToken();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(91);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 91. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test017() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z&9#+FDLX&o2GJ-\");\n int int0 = xPathLexer0.currentPosition();\n assertEquals(0, int0);\n }",
"@Test(timeout = 4000)\n public void test120() throws Throwable {\n StringReader stringReader0 = new StringReader(\"NXMnbm>`7-o(jz g3N\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-439), 1101);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line -439, column 1108. Encountered: \\\"`\\\" (96), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"protected void noMatch() {\n Token[] tokens = m_errorHandler.noMatch(m_current, m_prev);\n m_current = tokens[0];\n m_prev = tokens[1];\n }",
"@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\" 6PR~\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 2);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 2. Encountered: \\\"6\\\" (54), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test024() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[9];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 3. Encountered: \\\"t\\\" (116), after : \\\"\\\\'#\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test153() throws Throwable {\n StringReader stringReader0 = new StringReader(\"#crIx\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2897, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2897, column 32. Encountered: \\\"#\\\" (35), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"public void incrementErrorCounter(int increment) {\n errorCounter += increment;\n }",
"public void testPrev() {\n test1.prev();\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n }",
"@Test(timeout = 4000)\n public void test030() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"\");\n // Undeclared exception!\n try { \n xPathLexer0.LA(0);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"@Test\n\tpublic void testLookaheadBoundary() {\n\t\t\n\t\t\n\t\tString lookaheads[] = {\"[true, f\", \"{\\\"boo\\\": nu\", \"[false, tr\", \"[false, t\", \"[false, tru\"};\n\t\t\n\t\tfor (String lookahead: lookaheads) {\n\t\t\tJSONParser jp = new JSONParser();\n\t\t\tList<ParsedElement> elements = jp.parse(lookahead);\n\t\t\tassertTrue(String.format(\"lookahead <%s> doesn't crash the parser\", lookahead),elements.size() == 3);\n\t\t}\n\t\t\n\t\tJSONParser jp = new JSONParser();\n\t\tList<ParsedElement> elements = jp.parse(\"{\\\"foo\\\": true\");\n\t\tassertTrue(\"Barewords are parsed at the right lookahead length\", elements.size() == 4);\n\t\t\n\t\telements = jp.parse(\"{\\\"foo\\\": false\");\n\t\tassertTrue(\"Barewords are parsed at the right lookahead length\", elements.size() == 4);\n\t\t\n\t\telements = jp.parse(\"[1, 2, 3, nul\");\n\t\tassertTrue(\"Barewords are parsed at the right lookahead length\", elements.size() == 7);\n\t}",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void test61() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//bug 10\n\t\tfor(int i =0;i<200;i++) {\n\t\t\tboolean dummy = RegExpMatcher.matches(String.valueOf(i), \"([0-9])+\");\n\t\t\tif(!dummy) {\n\t\t\t\t//System.err.print(i);\n \t\t\t\tassertTrue(dummy);\t\n\t\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.out.println(\"no bug on index \"+i);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"hello\");\n\t\t//assertTrue(RegExpMatcher.matches(\"\", \"([0-9])+\"));\n\t}",
"@Test(timeout = 4000)\n public void test014() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals((-1), token0.getTokenType());\n }",
"@Test(timeout = 4000)\n public void test012() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 93, (-1));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaCharStream0.inBuf = 29;\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 0, column 0. Encountered: \\\"\\\" (0), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test021() throws Throwable {\n byte[] byteArray0 = new byte[1];\n byteArray0[0] = (byte) (-25);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0, 119, (-820), 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 119, column -819. Encountered: <EOF> after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n StringReader stringReader0 = new StringReader(\"zT7o0P#=xp\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2146, 2146, 2146);\n // Undeclared exception!\n try { \n javaCharStream0.ExpandBuff(true);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"public int scanAhead(Lemming lemming){\n return 3;\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test066() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 4087, 122, 682);\n javaCharStream0.backup(4087);\n // Undeclared exception!\n try { \n javaCharStream0.BeginToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -3405\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MyV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 89, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 1);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 89, column 2. Encountered: \\\"A\\\" (65), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test166() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\">>=\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.ReInit(javaCharStream0, (-378));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -378. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"public int getErrorIndex() {\r\n return textErrorIndex;\r\n }",
"public void setErrorIndex(int index) {\r\n this.textErrorIndex = index;\r\n }",
"private final int internalPrev(int n) {\n if (n == 0 || n == -1 || this.backwardsTrie == null) {\n return n;\n }\n resetState();\n while (n != -1 && n != 0 && breakExceptionAt(n)) {\n n = this.delegate.previous();\n }\n return n;\n }",
"@Test(timeout = 4000)\n public void test011() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.ReInit(javaCharStream0);\n assertEquals(0, javaCharStream0.getBeginLine());\n }",
"@Test(timeout = 4000)\n public void test143() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.not();\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"6\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n \n Token token2 = xPathLexer0.at();\n assertEquals(\"_\", token2.getTokenText());\n assertEquals(16, token2.getTokenType());\n \n Token token3 = xPathLexer0.not();\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals((-1), token4.getTokenType());\n }",
"@Test(timeout = 4000)\n public void test113() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z&9#+FDLX&o2GJ-\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"Z\", token0.getTokenText());\n }",
"@Test(timeout = 4000)\n public void test051() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.consume((-3975));\n // Undeclared exception!\n try { \n xPathLexer0.dots();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"protected int getNextExpectedToken(int state, int token) {\n this.state = state;\n int lastTokenId = getLastTokenId();\n while (++token <= lastTokenId) {\n if (isValid(token)) {\n return token;\n }\n }\n return -1;\n }",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"F#VsZ=,K/\");\n xPathLexer0.consume((-3281));\n // Undeclared exception!\n try { \n xPathLexer0.mod();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"@Test(timeout = 4000)\n public void test016() throws Throwable {\n StringReader stringReader0 = new StringReader(\")0\\\":rw.f=QJ{Y+>$7\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 3);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 2. Encountered: \\\"0\\\" (48), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}",
"@Test(timeout = 4000)\n public void test019() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"}tH?N[RLAs'&]u\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 128, 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 128, column 44. Encountered: <EOF> after : \\\"\\\\\\\"}tH?N[RLAs\\\\'&]u\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test026() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.getMetaData((Connection) null, \"43X50.U\", \"43X50.U\", true, false, false, true, \"#hl2(.N!cDa@pc@R\", true);\n fail(\"Expecting exception: PatternSyntaxException\");\n \n } catch(PatternSyntaxException e) {\n //\n // Unclosed group near index 16\n // #hl2(.N!cDa@pc@R\n //\n verifyException(\"java.util.regex.Pattern\", e);\n }\n }",
"public boolean try_parse_ahead(boolean z) throws Exception {\r\n virtual_parse_stack virtual_parse_stack = new virtual_parse_stack(this.stack);\r\n while (true) {\r\n short s = get_action(virtual_parse_stack.top(), cur_err_token().sym);\r\n if (s == 0) {\r\n return false;\r\n }\r\n if (s > 0) {\r\n int i = s - 1;\r\n virtual_parse_stack.push(i);\r\n if (z) {\r\n debug_message(\"# Parse-ahead shifts Symbol #\" + cur_err_token().sym + \" into state #\" + i);\r\n }\r\n if (!advance_lookahead()) {\r\n return true;\r\n }\r\n } else {\r\n int i2 = (-s) - 1;\r\n if (i2 == start_production()) {\r\n if (z) {\r\n debug_message(\"# Parse-ahead accepts\");\r\n }\r\n return true;\r\n }\r\n short[][] sArr = this.production_tab;\r\n short s2 = sArr[i2][0];\r\n short s3 = sArr[i2][1];\r\n for (int i3 = 0; i3 < s3; i3++) {\r\n virtual_parse_stack.pop();\r\n }\r\n if (z) {\r\n debug_message(\"# Parse-ahead reduces: handle size = \" + ((int) s3) + \" lhs = #\" + ((int) s2) + \" from state #\" + virtual_parse_stack.top());\r\n }\r\n virtual_parse_stack.push(get_reduce(virtual_parse_stack.top(), s2));\r\n if (z) {\r\n debug_message(\"# Goto state #\" + virtual_parse_stack.top());\r\n }\r\n }\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test131() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.setXPath(\" C8?501.bl\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"C8\", token0.getTokenText());\n assertEquals(15, token0.getTokenType());\n }",
"private void calculateError() {\n this.error = this.elementCount - this.strippedPartition.size64();\n }",
"@Test(timeout = 4000)\n public void test038() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2535));\n // Undeclared exception!\n try { \n xPathLexer0.or();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public void setErrorCnt(Integer errorCnt) {\r\n this.errorCnt = errorCnt;\r\n }",
"public ParseResult failureAt (Object input, int error) {\n return failureAt(input, error, 1);\n }",
"private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }",
"private static int findNextStarter(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, char paramChar)\n/* */ {\n/* 1576 */ int j = 0xFF00 | paramInt3;\n/* */ \n/* 1578 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 1581 */ while (paramInt1 != paramInt2)\n/* */ {\n/* */ \n/* 1584 */ char c1 = paramArrayOfChar[paramInt1];\n/* 1585 */ if (c1 < paramChar) {\n/* */ break;\n/* */ }\n/* */ \n/* 1589 */ long l = getNorm32(c1);\n/* 1590 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ char c2;\n/* 1594 */ if (isNorm32LeadSurrogate(l))\n/* */ {\n/* 1596 */ if ((paramInt1 + 1 == paramInt2) || \n/* 1597 */ (!UTF16.isTrailSurrogate(c2 = paramArrayOfChar[(paramInt1 + 1)]))) {\n/* */ break;\n/* */ }\n/* */ \n/* 1601 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ \n/* 1603 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ } else {\n/* 1607 */ c2 = '\\000';\n/* */ }\n/* */ \n/* */ \n/* 1611 */ if ((l & paramInt4) != 0L)\n/* */ {\n/* */ \n/* 1614 */ int i = decompose(l, paramInt4, localDecomposeArgs);\n/* */ \n/* */ \n/* */ \n/* 1618 */ if ((localDecomposeArgs.cc == 0) && ((getNorm32(extraData, i, paramInt3) & paramInt3) == 0L)) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* 1623 */ paramInt1 += (c2 == 0 ? 1 : 2);\n/* */ }\n/* */ \n/* 1626 */ return paramInt1;\n/* */ }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"@Test(timeout = 4000)\n public void test061() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n javaCharStream0.backup((-1015));\n // Undeclared exception!\n try { \n javaCharStream0.BeginToken();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n StringReader stringReader0 = new StringReader(\"d{IHR}D';Z<m5\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[2];\n javaCharStream0.nextCharBuf = charArray0;\n // Undeclared exception!\n try { \n javaCharStream0.BeginToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test039() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 122, 122, 122);\n int[] intArray0 = new int[0];\n javaCharStream0.bufline = intArray0;\n // Undeclared exception!\n try { \n javaCharStream0.adjustBeginLineColumn(122, 122);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.curLexState = 464;\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, token0.kind);\n assertEquals(\"\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test060() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n javaCharStream0.ReInit((Reader) stringReader0);\n assertEquals((-1), javaCharStream0.bufpos);\n }",
"public final void AddError()\n\t{\n\t\terrorCount_++;\n\t\tentryValid_ = false;\n\t}",
"public int errorMessageOffset()\n {\n return offendingHeaderOffset() + offendingHeaderFrameLength();\n }",
"@Test(timeout = 4000)\n public void test015() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n int int0 = xPathLexer0.endPosition();\n assertEquals(0, int0);\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n JavaCharStream javaCharStream0 = new JavaCharStream(pipedInputStream0, Integer.MIN_VALUE, Integer.MIN_VALUE);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n StringReader stringReader0 = new StringReader(\"com.soops.CEN4010.JMCA.JParser.Token\");\n javaCharStream0.ReInit((Reader) stringReader0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(\".\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test110() throws Throwable {\n StringReader stringReader0 = new StringReader(\"RaLz,<NBG_}Q[P4}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 20, 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }",
"private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }",
"private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }",
"private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }",
"private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }",
"private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }",
"public void checkErrorLimit(int increment) {\n errorCounter += increment;\n if (errorCounter >= AppyAdService.getInstance().maxErrors()) {\n setAdProcessing(false);\n // todo ????\n }\n }",
"@Test\n public void testDoubleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,1, 1,1,1,0};\n final int expectedErrorIndex = ResponseCode.TWO_ERRORS.code;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"public void testSequenceNumWrapAround() {\n\t\tByteStreamNALUnit[] stream = new ByteStreamNALUnit[70000];\n\t\tfor (int i = 0; i < stream.length; i++) {\n\t\t\tstream[i] = new ByteStreamNALUnit(START_CODE_4, SAMPLE_STREAM[3].nalUnit, i);\n\t\t}\n\n\t\tStreamVerifier verifier = new StreamVerifier(stream);\n\t\tSdlSession session = createTestSession();\n\t\tRTPH264Packetizer packetizer = null;\n\t\ttry {\n\t\t\tpacketizer = new RTPH264Packetizer(verifier, SessionType.NAV, SESSION_ID, session);\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\t\tMockVideoApp encoder = new MockVideoApp(packetizer);\n\n\t\ttry {\n\t\t\tpacketizer.start();\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tencoder.inputByteStreamWithArray(stream);\n\t\ttry {\n\t\t\tThread.sleep(2000, 0);\n\t\t} catch (InterruptedException e) {}\n\n\t\tpacketizer.stop();\n\t\tassertEquals(stream.length, verifier.getPacketCount());\n\t}",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }",
"private void prepare(Source s) {\r\n source = s;\r\n input = source.rawText();\r\n ok = true;\r\n start = in = out = marked = lookahead = 0;\r\n failures = new TreeSet<>();\r\n output = new StringBuffer();\r\n outCount = 0;\r\n }",
"private static int findPreviousStarter(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, char paramChar)\n/* */ {\n/* 1550 */ PrevArgs localPrevArgs = new PrevArgs(null);\n/* 1551 */ localPrevArgs.src = paramArrayOfChar;\n/* 1552 */ localPrevArgs.start = paramInt1;\n/* 1553 */ localPrevArgs.current = paramInt2;\n/* */ \n/* 1555 */ while (localPrevArgs.start < localPrevArgs.current) {\n/* 1556 */ long l = getPrevNorm32(localPrevArgs, paramChar, paramInt3 | paramInt4);\n/* 1557 */ if (isTrueStarter(l, paramInt3, paramInt4)) {\n/* */ break;\n/* */ }\n/* */ }\n/* 1561 */ return localPrevArgs.current;\n/* */ }",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((Reader) stringReader0, (-1), (-1), (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n StringReader stringReader0 = new StringReader(\"n:M)[\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 99, 66);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(99, javaCharStream0.getEndLine());\n }",
"private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}",
"@Test(timeout = 4000)\n public void test037() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[Sdf yy*X>HdSr %<}\");\n xPathLexer0.consume((-1189));\n // Undeclared exception!\n try { \n xPathLexer0.or();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"@Test(timeout = 4000)\n public void test151() throws Throwable {\n StringReader stringReader0 = new StringReader(\"/&[o8PbSh8%nM__1\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 39);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"&\", token0.toString());\n }",
"public ParseResult failureAt (Object input, int errorPosition, int peel)\n {\n ParseResult r = failure(input, peel + 1);\n\n assertEquals(r.errorOffset, errorPosition, peel + 1,\n () -> \"The furthest parse error didn't occur at the expected location.\");\n\n return r;\n }",
"public static void registerError() {\r\n errorCount++;\r\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }",
"private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }"
] | [
"0.65061516",
"0.6460941",
"0.6386597",
"0.59813046",
"0.5875233",
"0.5758654",
"0.5692614",
"0.56285715",
"0.5609305",
"0.558978",
"0.54941595",
"0.549293",
"0.5381377",
"0.5354416",
"0.5340839",
"0.5323304",
"0.5311767",
"0.5310317",
"0.530489",
"0.5301219",
"0.5293159",
"0.52878755",
"0.5250641",
"0.52414274",
"0.52408403",
"0.52257425",
"0.5194751",
"0.51804984",
"0.51708627",
"0.5168215",
"0.51605034",
"0.51392496",
"0.51217055",
"0.51129186",
"0.510192",
"0.5091005",
"0.5085317",
"0.50783324",
"0.5066313",
"0.5054832",
"0.50517565",
"0.50461525",
"0.50440156",
"0.5036165",
"0.5036031",
"0.5013475",
"0.50111175",
"0.5008667",
"0.50018996",
"0.4992926",
"0.49878144",
"0.49807358",
"0.49722612",
"0.49532482",
"0.49384236",
"0.4937202",
"0.49278924",
"0.49272883",
"0.49258873",
"0.49236128",
"0.49228042",
"0.49160406",
"0.49148473",
"0.4910155",
"0.4909879",
"0.49082947",
"0.49021465",
"0.48991016",
"0.48973638",
"0.48953998",
"0.48929596",
"0.48910978",
"0.48787725",
"0.48753366",
"0.48704413",
"0.4866964",
"0.4863391",
"0.4863391",
"0.4863391",
"0.4863391",
"0.4863391",
"0.48616183",
"0.48600778",
"0.48596004",
"0.48572972",
"0.48558432",
"0.4853308",
"0.48507366",
"0.48489574",
"0.4837849",
"0.48352566",
"0.48302752",
"0.48293868",
"0.4827772",
"0.48272476",
"0.48255947",
"0.48255947",
"0.48255947",
"0.48255947",
"0.48255947",
"0.48255947"
] | 0.0 | -1 |
deal with the input. | void expr() throws IOException {
input = input+(char)lookahead;
term();
rest();
printPostfix();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void processInput() {\n\t}",
"private void processInput() {\r\n\t\ttry {\r\n\t\t\thandleInput(readLine());\r\n\t\t} catch (WrongFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void processInput() {\n\n\t}",
"protected void handleInput(String input) {}",
"@Override\n\tpublic void input() {\n\t\t\n\t}",
"public abstract void input();",
"protected abstract void getInput();",
"@Override\n\tpublic void handleInput() {\n\t\t\n\t}",
"public void takeUserInput() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}",
"public abstract void handleInput();",
"@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}",
"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 validateInputParameters(){\n\n }",
"private void handleInput() {\n\n // Get the input string and check if its not empty\n String text = textInput.getText().toString();\n if (text.equals(\"\\n\")) {\n textInput.setText(\"\");\n return;\n }\n // remove empty line\n if (text.length() >= 2 && text.endsWith(\"\\n\")) text = text.substring(0, text.length() - 1);\n\n if (TextUtils.isEmpty(text)) return;\n textInput.setText(\"\");\n\n myGame.onInputString(text);\n }",
"private void checkUserInput() {\n }",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String input() throws Exception {\n\t\treturn null;\n\t}",
"private void inputHandler(String input) throws Exception{\n\n switch (input) {\n\n case \"/quit\":\n done = true;\n break;\n\n default:\n PduMess mess = new PduMess(input);\n outStream.writeToServer(mess.getByteArray());\n break;\n }\n }",
"public void setInput(String input) { this.input = input; }",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"protected abstract boolean checkInput();",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"@Override\n\tpublic void inputEnded() {\n\n\t}",
"@Override\n public void processInput() throws IllegalArgumentException, InputMismatchException,\n FileNotFoundException {\n Scanner scanner = new Scanner(this.in);\n while (scanner.hasNext()) {\n String input = scanner.next();\n switch (input) {\n case \"q\":\n return;\n case \"load:\":\n File imageFile = new File(scanner.next());\n if (imageFile.exists()) {\n this.model = this.model.fromImage(load(imageFile));\n } else {\n throw new FileNotFoundException(\"File does not exist\");\n }\n break;\n case \"save:\":\n String path = scanner.next();\n this.save(this.model.getModelImage(), getImageFormat(path), path);\n break;\n default:\n Function<Scanner, EnhancedImageModel> getCommand = knownCommands.getOrDefault(\n input, null);\n if (getCommand == null) {\n throw new IllegalArgumentException(\"command not defined.\");\n } else {\n this.model = getCommand.apply(scanner);\n }\n break;\n }\n }\n\n }",
"@Override\n\tpublic void inputEnded() {\n\t\t\n\t}",
"void readInput() {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line = input.readLine();\n\t\t\tString [] numbers = line.split(\" \");\n\n\t\t\tlenA = Integer.parseInt(numbers[0]);\n\t\t\tlenB = Integer.parseInt(numbers[1]); \n\n\t\t\twordA = input.readLine().toLowerCase(); \n\t\t\twordB = input.readLine().toLowerCase();\n\n\t\t\tg = Integer.parseInt(input.readLine());\n\n\t\t\tString key; \n\t\t\tString [] chars;\n\t\t\tpenaltyMap = new HashMap<String, Integer>();\n\n\t\t\tfor(int i=0;i<676;i++) {\n\t\t\t\tline = input.readLine();\n\t\t\t\tchars = line.split(\" \");\n\t\t\t\tkey = chars[0] + \" \" + chars[1];\n\t\t\t\tpenaltyMap.put(key, Integer.parseInt(chars[2]));\n\n\t\t\t}\n\n\t\t\tinput.close();\n\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t}",
"public void parseInput(Map gameMap, Player player) {\n String[] splitInput = playerInput.split(\" \", 0); // Splits the input into an action and an object.\n String action; // Stores the action that the user input\n String predic; // Stores the predicate of the input\n String object; // Stores the object to do action on of the input\n String object2; // Stores extra words from the input\n String ANSI_RED = \"\\u001B[31m\"; // Red text color\n String ANSI_BLUE = \"\\u001B[34m\"; // Blue text color\n prevInputs.add(splitInput);\n\n // Parses single word inputs\n // Stores the action of the input\n if (splitInput.length == 1) {\n action = splitInput[0];\n switch (action.toLowerCase()) {\n case \"cheat\":\n System.out.println(player.getHint());\n break;\n case \"superbrief\":\n System.out.println(\"Dialogue length set to superbrief.\");\n player.changeDialogueState(\"superbrief\");\n break;\n case \"brief\":\n System.out.println(\"Dialogue length set to brief.\");\n player.changeDialogueState(\"brief\");\n break;\n case \"verbose\":\n System.out.println(\"Dialogue length set to verbose.\");\n player.changeDialogueState(\"verbose\");\n break;\n case \"autoplay\":\n case \"auto\":\n System.out.println(\"Turning on autoplay.\");\n player.changeDialogueState(\"autoplay\");\n break;\n case \"again\":\n case \"g\":\n prevInputs.remove(splitInput);\n playerInput = \"\";\n for (int i = 0; i < prevInputs.get(prevInputs.size() - 1).length; i++) {\n playerInput = playerInput.concat(prevInputs.get(prevInputs.size() - 1)[i]);\n playerInput = playerInput.concat(\" \");\n }\n parseInput(gameMap, player);\n return;\n case \"i\":\n case \"inventory\":\n case \"inv\":\n player.getInventory();\n break;\n case \"look\":\n case \"l\":\n player.checkArea();\n player.incrementTurn();\n break;\n case \"equipment\":\n player.getEquipment();\n break;\n case \"diagnose\":\n player.diagnose();\n player.incrementTurn();\n break;\n case \"hi\":\n case \"hello\":\n System.out.println(\"You said 'Hello'\");\n player.incrementTurn();\n break;\n case \"jump\":\n System.out.println(\"For whatever reason, you jumped in place.\");\n player.incrementTurn();\n break;\n case \"walk\":\n System.out.println(\"You walked around the area but you've already seen everything.\");\n player.incrementTurn();\n break;\n case \"save\":\n System.out.println(\"Saving Game...\");\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n player.save();\n break;\n case \"restore\":\n System.out.println(\"Loading Game...\");\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n player.load(gameMap);\n player.checkArea();\n break;\n case \"restart\":\n player.setHealth(0);\n break;\n case \"status\":\n player.getStatus();\n break;\n case \"score\":\n System.out.println(\"SCORE: \" + player.getScore());\n break;\n case \"quit\":\n case \"q\":\n System.out.print(\"Thank you for playing!\");\n System.exit(0);\n case \"wait\":\n case \"z\":\n case \"stay\":\n System.out.println(\"You stood in place.\");\n player.incrementTurn();\n break;\n case \"north\":\n case \"south\":\n case \"east\":\n case \"west\":\n case \"northeast\":\n case \"northwest\":\n case \"southeast\":\n case \"southwest\":\n case \"n\":\n case \"s\":\n case \"e\":\n case \"w\":\n case \"ne\":\n case \"nw\":\n case \"se\":\n case \"sw\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase()));\n player.incrementTurn();\n break;\n case \"version\":\n System.out.println(\"Version: \" + VERSION);\n return;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n // Parses two word inputs\n if (splitInput.length == 2) {\n action = splitInput[0]; // Stores the action that the user inputs\n object = splitInput[1]; // Stores the object that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom(object.toUpperCase())) {\n player.attack(player.getLocation().getChara(object.toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + object.toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"go\":\n if (player.getLocation().getConnectedRoom(object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(object.toLowerCase()));\n else\n System.out.println(\"There is nothing in that direction.\");\n player.incrementTurn();\n break;\n case \"enter\":\n case \"exit\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n player.incrementTurn();\n break;\n case \"break\":\n if (player.getLocation().getConnectedRoom(object.toLowerCase()) != null) {\n if (player.getLocation().getConnectedRoom(object.toLowerCase()).getLocked()) {\n player.getLocation().getConnectedRoom(object.toLowerCase()).unlock();\n System.out.println(\"You broke down the door.\");\n } else\n System.out.println(\"There is nothing to break down.\");\n }\n else\n System.out.println(\"There is nothing to break down.\");\n player.incrementTurn();\n break;\n case \"equip\":\n player.equipFromInv(object.toUpperCase());\n player.incrementTurn();\n break;\n case \"unequip\":\n player.equipToInv(object.toUpperCase());\n player.incrementTurn();\n break;\n case \"examine\":\n if (player.inInventory(object.toUpperCase()))\n player.examineInv(player.getItem(object.toUpperCase()));\n else if (player.inEquip(object.toUpperCase()))\n player.examineInv(player.getEquip(object.toUpperCase()));\n else\n System.out.println(\"You do not have: \" + ANSI_BLUE + object.toUpperCase() + ANSI_RESET);\n break;\n case \"read\":\n if (player.inInventory(object.toUpperCase()))\n player.examineInv(player.getItem(object.toUpperCase()));\n else\n System.out.println(\"You do not have: \" + ANSI_BLUE + object.toUpperCase() + ANSI_RESET);\n break;\n case \"get\":\n case \"take\":\n if (player.getLocation().isObjInRoom(object.toUpperCase())) {\n ZorkObj zorkObj = player.getLocation().getObj(object.toUpperCase());\n if (player.checkWeight(zorkObj))\n player.addItemToInventory(zorkObj);\n else {\n System.out.println(ANSI_BLUE + zorkObj.getName() + ANSI_RESET + \" is too heavy to pick up.\");\n player.getLocation().addObject(zorkObj);\n }\n }\n else if (object.toLowerCase().equals(\"all\")) {\n int objectsInRoom = player.getLocation().getObjLength();\n\n if (objectsInRoom == 0)\n System.out.println(\"There are no items in this room.\");\n\n for (int i = 0; i < objectsInRoom; i++) {\n ZorkObj zorkObj = player.getLocation().getObj();\n if (player.checkWeight(zorkObj) && player.checkInvSize()){\n player.addItemToInventory(zorkObj);\n }\n else if (!player.checkInvSize()) {\n System.out.println(\"Your inventory is too full.\");\n player.getLocation().addObject(zorkObj);\n }\n else {\n System.out.println(ANSI_BLUE + zorkObj.getName() + ANSI_RESET + \" is too heavy to pick up.\");\n player.getLocation().addObject(zorkObj);\n }\n }\n }\n else\n System.out.println(\"There is no item named \" + ANSI_BLUE + object + ANSI_RESET + \" in this area.\");\n player.incrementTurn();\n break;\n case \"drop\":\n player.removeItemFromChara(object.toUpperCase());\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n else if (splitInput.length == 3) {\n action = splitInput[0]; // Stores the action that the user inputs\n predic = splitInput[1]; // Stores the predicate of the input\n object = splitInput[2]; // Stores the object that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom((predic + \" \" + object).toUpperCase())) {\n player.attack(player.getLocation().getChara((predic + \" \" + object).toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + (predic + \" \" + object).toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"go\":\n switch (predic.toLowerCase()) {\n case \"down\":\n case \"up\":\n case \"in\":\n case \"out\":\n if (player.getLocation().getConnectedRoom(predic.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(predic.toLowerCase(), object.toLowerCase()));\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n break;\n }\n break;\n case \"look\":\n switch (predic.toLowerCase()) {\n case \"inside\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getInsideDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getInsideDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"under\":\n case \"below\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getUnderDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getUnderDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"behind\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getBehindDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getBehindDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"through\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getThroughDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getThroughDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"at\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getDescription());\n else if (player.getLocation().isCharaInRoom(object.toUpperCase()))\n player.examineChara(player.getLocation().getChara(object.toUpperCase()));\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n return;\n }\n break;\n case \"talk\":\n case \"speak\":\n if (\"to\".equals(predic)) {\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getDialogue());\n else if (player.getLocation().isCharaInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getChara(object.toUpperCase()).getDialogue());\n else\n System.out.println(\"There is nothing to talk to.\");\n player.incrementTurn();\n } else {\n System.out.println(\"Invalid Command.\");\n }\n break;\n case \"in\":\n case \"enter\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n else\n System.out.println(\"There is nothing to enter.\");\n player.incrementTurn();\n break;\n case \"out\":\n case \"exit\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n else\n System.out.println(\"There is nothing to exit.\");\n player.incrementTurn();\n break;\n case \"get\":\n case \"take\":\n if (predic.toLowerCase().equals(\"off\")) {\n player.equipToInv(object.toUpperCase());\n player.incrementTurn();\n break;\n }\n else if (player.getLocation().getObj((predic + object).toUpperCase()) != null) {\n player.addItemToInventory(player.getLocation().getObj((predic + object).toUpperCase()));\n System.out.println(\"You have picked up: \" + predic + \" \" + object);\n }\n else\n System.out.println(\"There is no item named \" + predic + \" \" + object + \" in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n else if (splitInput.length == 4) {\n action = splitInput[0]; // Stores the action that the user inputs\n predic = splitInput[1]; // Stores the predicate of the input\n object = splitInput[2]; // Stores the object that the user inputs\n object2 = splitInput[3]; // Stores extra words that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom((predic + \" \" + object + \" \" + object2).toUpperCase())) {\n player.attack(player.getLocation().getChara((predic + \" \" + object + \" \" + object2).toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + (predic + \" \" + object + \" \" + object2).toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"look\":\n switch (predic.toLowerCase()) {\n case \"inside\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getInsideDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getInsideDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"under\":\n case \"below\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getUnderDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getUnderDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"behind\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getBehindDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getBehindDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"through\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getThroughDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getThroughDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"at\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getDescription());\n else if (player.getLocation().isCharaInRoom((object + \" \" + object2).toUpperCase()))\n player.examineChara(player.getLocation().getChara((object + \" \" + object2).toUpperCase()));\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n break;\n }\n break;\n case \"talk\":\n case \"speak\":\n if (\"to\".equals(predic)) {\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getDialogue());\n else if (player.getLocation().isCharaInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getChara((object + \" \" + object2).toUpperCase()).getDialogue());\n else\n System.out.println(\"There is nothing to talk to.\");\n player.incrementTurn();\n } else {\n System.out.println(\"Invalid Command.\");\n }\n break;\n case \"use\":\n if (predic.toUpperCase().equals(\"KEY\")) {\n if (object.toUpperCase().equals(\"ON\")) {\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()) != null) {\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()).getLocked()) {\n player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()).unlock();\n System.out.println(\"You unlocked the door.\");\n } else\n System.out.println(\"You do not have a key.\");\n } else {\n if (player.inInventory(\"KEY\"))\n System.out.println(\"There is nothing to use a key on.\");\n else\n System.out.println(\"You do not have a key.\");\n }\n }\n }\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n else if (splitInput.length > 4) {\n System.out.println(\"Invalid Command\");\n return;\n }\n\n // Makes the enemies that are in the 'aggressive' state in the same room as the player attack the player.\n ArrayList<Character> NPCsInRoom = player.getLocation().getCharacters();\n if (NPCsInRoom.size() > 0) {\n for (Character character : NPCsInRoom) {\n if (character.getHealth() > 0 && character.getState().getStateName().equals(\"agg\")) {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n System.out.println(ANSI_RED + character.getName() + ANSI_RESET + \" is attacking!\");\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n character.attack(player);\n }\n }\n }\n }",
"public ConsList<String> tryToConsumeInput( ConsList<String> unprocessedInput );",
"public void readInput()\n\t{\n\t\tString userInput;\n\t\tChoices choice;\n\t\t\n\t\tdo {\n\t\t\tlog.log(Level.INFO, \"Please give the inputs as:\\n\"\n\t\t\t\t\t+ \"ADDACCOUNT to add the account\\n\" \n\t\t\t\t\t+ \"DISPLAYALL to display all accounts\\n\"\n\t\t\t\t\t+ \"SEARCHBYACCOUNT to search by account\\n\"\n\t\t\t\t\t+ \"DEPOSIT to deposit into account\\n\"\n\t\t\t\t\t+ \"WITHDRAW to withdraw from the account\\n\"\n\t\t\t\t\t+ \"EXIT to end the application\"\n\t\t\t\t\t);\n userInput = scan.next();\n choice = Choices.valueOf(userInput);\n\n switch (choice) {\n case ADDACCOUNT : \taddAccount();\n \t\t\t\t\t\tbreak;\n \n case DISPLAYALL :\t\tdisplayAll();\n \t\t\t\t\t\tbreak;\n\n case SEARCHBYACCOUNT :\tsearchByAccount();\n \t\t\t\t\t\tbreak;\n \n case DEPOSIT :\t\t\tdepositAmount();\n \t\t\t\t\t\tbreak;\n \n case WITHDRAW :\t\t\twithDrawAmount();\n \t\t\t\t\t\tbreak;\n \n case EXIT:\t\t\t\tlog.log(Level.INFO, \"Application has ended successfully\");\n \t\t\t\t\t\tbreak;\n \n default: break;\n }\n } while(choice != Choices.EXIT);\n\t\t\n\t\tscan.close();\n\t}",
"public void handleInput(InputDecoder.Input input) {\n this.state.handleInput(this, input);\n }",
"private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }",
"@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 }",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();",
"String getInput();",
"public WrongInputDataInScanner() {\n\tsuper();\n\t\n}",
"public abstract Object getInput ();",
"public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}",
"public void setInput(String input){\n this.input = input;\n }",
"private void process() {\n Machine newEnigma = readConfig();\n String configLine = _input.nextLine();\n\n if (configLine.charAt(0) != '*') {\n throw error(\"wrong input format, missing *\");\n }\n\n while (_input.hasNextLine()) {\n setUp(newEnigma, configLine);\n String inputLine = _input.nextLine();\n while (!inputLine.contains(\"*\")) {\n if (inputLine.isEmpty()) {\n _output.println();\n }\n if (_input.hasNextLine()) {\n String inputMessage = inputLine.replaceAll(\"\\\\s+\", \"\")\n .toUpperCase();\n printMessageLine(newEnigma.convert(inputMessage));\n inputLine = _input.nextLine();\n } else {\n String inputMessage = inputLine.replaceAll(\"\\\\s+\", \"\")\n .toUpperCase();\n printMessageLine(newEnigma.convert(inputMessage));\n break;\n }\n }\n }\n }",
"private Input()\n {\n }",
"void requestInput();",
"@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 }",
"@Override\n\tvoid input() {\n\t}",
"private static void handleInput(int input){\n In in = new In(); \n \n int i, j;\n double x;\n \n switch(input){\n case 1: //report\n graph.report();\n break;\n case 2: //MST\n graph.mst();\n break;\n case 3: //shortest path\n //GET 2 INPUTS and pass to shortest()\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.shortest(i, j);\n break;\n case 4: //down\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.edgeDown(i, j);\n break;\n case 5: //up\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n graph.edgeUp(i, j);\n break;\n case 6: //change\n System.out.print(\"Enter from vertex: \");\n i = in.readInt();\n System.out.print(\"Enter to vertex: \");\n j = in.readInt();\n System.out.print(\"Enter weight: \");\n x = in.readDouble();\n graph.changeWeight(i, j, x);\n break;\n case 7: //eulerian\n graph.eulerian();\n break;\n case 8: //quit\n System.out.println(\"Exiting...\");\n quit = true;\n break;\n default:\n //nothing -- should never get here if all input is verified\n }\n \n }",
"private static void readInput() { input = sc.nextLine().toLowerCase().toCharArray(); }",
"private boolean isInputValid() {\n return true;\n }",
"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 getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }",
"public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }",
"public void processInput(String text);",
"void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);",
"public void doIt(Input in);",
"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 void processInputs() {\n if (controller.escape) { parent.changeScreen(parent.PAUSE, parent.GAME_PLAY); }\r\n\r\n // Ask the controller if the left paddle has been told to do anything\r\n if (controller.leftUp) { leftPaddle.moveUp(); }\r\n else if (controller.leftDown) { leftPaddle.moveDown(); }\r\n else { leftPaddle.stayPut(); }\r\n // same for the right\r\n if (controller.rightUp) { rightPaddle.moveUp(); }\r\n else if (controller.rightDown) { rightPaddle.moveDown(); }\r\n else { rightPaddle.stayPut(); }\r\n\r\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"public void readInput()\n\t{\n\t\t//wrap input stream read input from user\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader( System.in ));\n\t\t\n\t\t//prompt user for input\n\t\tSystem.out.println( \"Please enter a letter or type Quit to end.\");\n\t\t\n\t\ttry{\n\t\t\tString userGuess = in.readLine();\n\t\t\t\n\t\t\t//loop until the user types \"Quit\"\n\t\t\tdo{\n\t\t\t\t//invoke guessletter function with String input\n\t\t\t\thangmanGame.guessLetter(userGuess);\n\t\t\t\t//update currentGuessText\n\t\t\t\tcurrentGuessText = hangmanGame.getCurrentGuess();\n\t\t\t\t//trace out current guess\n\t\t\t\tSystem.out.println(\"Your current guess is: \" + currentGuessText);\n\t\t\t\t//update remainingStrikes\n\t\t\t\thangmanGame.numberOfRemainingStrikes();\n\t\t\t\t//trace out remaining number of strikes\n\t\t\t\tSystem.out.println(\"You currently have \" + hangmanGame);\n\t\t\t\t//invoke revealAnswer function to check over gameOver, gameWon, and getAnswer\n\t\t\t\trevealAnswer();\n\t\t\t}while ( userGuess != \"Quit\" );\n\t\t}\n\t\t//catch IOException ioe\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t//tell exception to print its error log\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"@Override\n public Word input(){ \n System.out.println(\"[IO]: Error - Tried to receive from printer.\");\n return null;\n }",
"private void handleInput()\n {\n String instructions = \"Options:\\n<q> to disconnect\\n<s> to set a value to the current time\\n<p> to print the map contents\\n<?> to display this message\";\n System.out.println(instructions);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n while (true) {\n String line = br.readLine();\n if (line.equals(\"q\")) {\n System.out.println(\"Closing...\");\n break;\n } else if (line.equals(\"s\")) {\n System.out.println(\"setting value cli_app to current time\");\n collabMap.set(\"cli_app\", System.currentTimeMillis());\n } else if (line.equals(\"?\")) {\n System.out.println(instructions);\n } else if (line.equals(\"p\")) {\n System.out.println(\"Map contents:\");\n for (String key : collabMap.keys()) {\n System.out.println(key + \": \" + collabMap.get(key));\n }\n }\n }\n } catch (Exception ex) {\n }\n\n if (document != null)\n document.close();\n System.out.println(\"Closed\");\n }",
"protected abstract void registerInput();",
"public void processInput( String input ){\n\t\tString opponent;//holds either \"client\" or \"server\". Whichever is the opponent\n\t\tif( parent.whichPlayer.equals(\"server\") ) opponent = \"client\";\n\t\telse opponent = \"server\";\n\t\t\n\t\t//create a string array to hold the input split around spaces\n\t\tString[] split = input.split(\" \");\n\t\t\n\t\t//input was mouseclick\n\t\tif( split[0].equals(\"C\") ) {\n\t\t\t//If the line contains mouseClick information, then send it to handleMouseClick\n\t\t\tparent.handleMouseClick(Integer.parseInt(split[1]), Integer.parseInt(split[2]), opponent);\n\t\t}\n\n\t\t//input was name\n\t\telse if(split[0].equals(\"N\")) {\n\t\t\t//if this window is the server, set the recieved name to the client\n\t\t\tif( parent.serverRadio.isSelected() ) {\n\t\t\t\tparent.playerTwoTextField.setText(split[1]);\n\t\t\t}\n\t\t\t//if this window is the client, set the recieved name to the server\n\t\t\telse {\n\t\t\t\tparent.playerOneTextField.setText(split[1]);\n\t\t\t}\n\t\t}\n\t\t//if a quit flag was sent\n\t\telse if(split[0].equals(\"Q\")){\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t\tss.close();\n\t\t\t\tpw.close();\n\t\t\t\tsc.close();\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Unable to close the connection!\");\n\t\t\t}\n\t\t}\n\n\t}",
"public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}",
"public void setInput(String input);",
"@Override\n\tpublic void input() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"매입 매출 등록\");\n\t\tSystem.out.println(\"-----------------\");\n\t\tString pname = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"상품명(QUIET:입력중단)>>\");\n\t\t\tpname = scan.nextLine();\n\t\t\tif (pname.equals(\"QUIET\")) {\n\t\t\t\treturn;\n\t\t\t} else if (pname.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"상품명은 반드시 입력해야합니다\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.print(\"거래일자(yyyy-mm-dd)\");\n\t\tString date = scan.next();\n\n\t\tSystem.out.print(\"거래처 명 >>\");\n\t\tString dname = scan.next();\n\n\t\tSystem.out.print(\"매입매출구분>>\");\n\t\tString iout = scan.next();\n\n\t\tSystem.out.print(\"수량>>\");\n\t\tInteger qty = scan.nextInt();\n\t\tInteger iprice = this.inputPrice(\"매입\");\n\t\tif (iprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tInteger oprice = this.inputPrice(\"매출\");\n\t\tif (oprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tIolistVO VO = new IolistVO();\n\t\tVO.setPname(pname);\n\t\tVO.setDate(date);\n\t\tVO.setDname(dname);\n\t\tVO.setInout(iout);\n\t\tVO.setIprice(iprice);\n\t\tVO.setOprice(oprice);\n\t\tVO.setQty(qty);\n\t\tiolist.add(VO);\n\t}",
"public void takeInput() {\n\t\tboolean flag = true;\n\t\tMain test = new Main();\n\t\twhile(flag) {\n\t\t\tLOGGER.info(\"Enter an option 1.Calculate Simple Interest 2.Calculate Compound Interest 3.exit\");\n\t\t\tint val = sc.nextInt();\n\t\t\tswitch(val) {\n\t\t\tcase 1:\n\t\t\t\ttest.takeInputForSimpleInterest();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttest.takeInputForCompoundInterest();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOGGER.info(\"Enter valid input\");\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"INPUT createINPUT();",
"static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}",
"public String readInput() {\n\t\treturn null;\n\t}",
"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 processStreamInput() {\n }",
"@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}",
"public void operator() {\n while (keepOperational) {\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"\\nInput:\\n\");\n String input = scanner.nextLine();\n\n /** delegate the input - all for enabling unit testing */\n operate(input);\n }\n }",
"public void setInput(Input input) {\n this.input = input;\n }",
"public void beforeInput() {\n }",
"public void beforeInput() {\n }",
"public static void processUserInput(String input){\n\t\t\n\t\t\tAlgorithm1 alg1 = new Algorithm1(input, distance, inputMap);\n\t\t\t// Calculates shortest path using distance file for distance metric\n\t\t\t// Prints the path nodes\n\t\t\t// Prints the distance\n\t\t\talg1.getShortestPath();\n\t\t\t\n\t\t\t\n\t\t\tAlgorithm2 alg2 = new Algorithm2(input, distance, inputMap);\n\t\t\t// Calculates shortest path using both input and distance file for distance metric\n\t\t\t// Prints the path nodes\n\t\t\t// Prints the distance\n\t\t\talg2.getShortestPath();\n\t\t\t\n\t\t\t\n\t}",
"public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }",
"public String input() throws Exception {\r\n\t\treturn INPUT;\r\n\t}",
"public void getInput(String input) {\n ((problemGeneratorArrayListener) activity).problemGeneratorArrayActivity(input);\n }",
"public void input() throws ParseException {\r\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter id: \");\r\n\t\tString idSt = scn.nextLine();\r\n\t\tid = Integer.parseInt(idSt);\r\n\t\tSystem.out.println(\"Please enter title: \");\r\n\t\ttitle = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter authors name: \");\r\n\t\tauthor = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter date (dd.MM.yyyy): \");\r\n\t\tString scnDate = scn.nextLine();\r\n\t\tdateOfPublication = stringToDate(scnDate);\r\n\t}",
"private static PointCP2 getInput() throws IOException\n {\n byte[] buffer = new byte[1024]; //Buffer to hold byte input\n boolean isOK = false; // Flag set if input correct\n String theInput = \"\"; // Input information\n \n //Information to be passed to the constructor\n \n double a = 0.0;\n double b = 0.0;\n\n // Allow the user to enter the three different arguments\n for (int i = 0; i < 2; i++)\n {\n while (!(isOK))\n {\n isOK = true; //flag set to true assuming input will be valid\n \n // Prompt the user\n if (i == 0) // First argument - type of coordinates\n {\n System.out.print(\"Enter Rho value: \");\n }\n else // Second and third arguments\n {\n System.out.print(\"Enter Theta value: \");\n }\n\n // Get the user's input \n \n // Initialize the buffer before we read the input\n for(int k=0; k<1024; k++)\n \tbuffer[k] = '\\u0020'; \n \n System.in.read(buffer);\n theInput = new String(buffer).trim();\n \n // Verify the user's input\n try\n {\n if (i == 0) // First argument \n {\n a = Double.valueOf(theInput).doubleValue();\n }\n else // Second and \n { \n b = Double.valueOf(theInput).doubleValue();\n }\n }\n catch(Exception e)\n {\n \tSystem.out.println(\"Incorrect input\");\n \tisOK = false; //Reset flag as so not to end while loop\n }\n }\n\n //Reset flag so while loop will prompt for other arguments\n isOK = false;\n }\n //Return a new PointCP object\n return (new PointCP2( a, b));\n }",
"public T caseInput(Input object) {\n\t\treturn null;\n\t}",
"public void processInput(CommandLineInput commandLineInput) {\n\t\t\n\t}",
"@Override\n public String readUserInput() {\n while (true) {\n System.out.println(\"\");\n System.out.print(\"Enter Information: \");\n Scanner in = new Scanner(System.in);\n String userInput = in.nextLine();\n\n if (!userInput.equals(\"0\")) {\n String[] parts = userInput.split(\",\");\n if (parts.length == 5) {\n if (DateSorting.isDateValid(\"dd-MM-yyyy\", parts[2])) {\n if (TodoList.tasks.get(parts[0]) == null) {\n return userInput;\n } else {\n System.out.println(\"A task with this ID already exists, try again: \");\n }\n } else {\n System.out.println(\"The date entered is invalid, try again: \");\n }\n } else {\n System.out.println(\"Please follow instructions, try again: \");\n }\n } else {\n return userInput;\n }\n }\n }",
"@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Integer.valueOf(sc.nextLine());\n System.out.printf(\"Nhập tình trạng sách giáo khoa: \");\n status = sc.nextLine();\n System.out.printf(\"Nhập số lượng mượn: \");\n amountBorrow= Integer.valueOf(sc.nextLine());\n }",
"private static void requestInput() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Enter Item ID\");\n int usedId = 0;\n int usedWithId = 0;\n int level = 0;\n int productId = 0;\n int xp = 0;\n int low = 0;\n int high = 0;\n Scanner scanner = new Scanner(System.in);\n while (true) {\n try {\n usedId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Secondary Item ID\");\n usedWithId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Level Requirement\");\n level = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Product Item ID\");\n productId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Action XP\");\n xp = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Low Roll\");\n low = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter High Roll\");\n high = Integer.parseInt(in.nextLine());\n\n createPotionAction(usedId, usedWithId, level, productId, xp, low, high);\n } catch (NumberFormatException e) {\n System.out.println(\"Please input an integer.\");\n }\n }\n }",
"protected void processInputs() {\n\t\twhile (InputInfo.size() > 0) {\n\t\t\tInputInfo info = InputInfo.get();\n\n\t\t\tif (info.kind == 'k' && (info.action == GLFW_PRESS\n\t\t\t\t\t|| info.action == GLFW_REPEAT)) {\n\t\t\t\tint code = info.code;\n\n\t\t\t}// input event is a key\n\t\t\telse if (info.kind == 'm') {// mouse moved\n\t\t\t\t// System.out.println( info );\n\t\t\t} else if (info.kind == 'b') {// button action\n\t\t\t\t// System.out.println( info );\n\t\t\t}\n\n\t\t}// loop to process all input events\n\n\t}",
"@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 }",
"@Override\n\tpublic void setInput(Input arg0) {\n\n\t}",
"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 void aInput(Packet packet)\r\n {\r\n \t\tif(!isCorrupted(packet))\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"|aInput| : packet\"+ packet.getSeqnum()+\"is received without corruption.\");\r\n \t\t\t\tint offset = ((packet.getSeqnum()+1) % LimitSeqNo - window_base);\r\n \t\t\t\tif(offset>1)\r\n \t\t\t\t{\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : window_base: \"+window_base);\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : next sequence number: \"+ Integer.toString((packet.getSeqnum()+1) % LimitSeqNo));\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : offset: \"+offset);\r\n \t\t\t\t}\r\n \t\t\t\twindow_base = (packet.getSeqnum()+1) % LimitSeqNo;;\r\n \t\t\t\t\r\n \t\t\t\tif(messageCongestionBuffer.size()>0)\r\n \t\t\t\t{\r\n \t\t\t\t\tString data = messageCongestionBuffer.get(0).getData();\r\n \t\t \t\t\tmessageCongestionBuffer.remove(0);\r\n \t\t \t\t\r\n \t\t \t\t//public Packet(int seq, int ack, int check, String newPayload)\r\n \t\t \t\t\r\n \t\t \t\t\tint seq = next_seq_num % LimitSeqNo;\r\n \t\t \t\t\tint ack = ACK_NOT_USED;\r\n \t\t \t\t\tint check = makeCheckSum(seq,ack,data);\r\n \t\t \t\t\tpacketBufferAry[next_seq_num % LimitSeqNo] = new Packet(seq,ack,check,data);\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is made\");\r\n \t\t \t\t\ttoLayer3(0,packetBufferAry[next_seq_num % LimitSeqNo]); //udt_send\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is sent\");\r\n \t\t \t\t\t\r\n \t\t \t\t\tnext_seq_num = (next_seq_num+1)% LimitSeqNo;\t\r\n \t\t \t\tSystem.out.println(\"|aInput| : next_seq_num now becomes: \"+next_seq_num+\".\");\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tSystem.out.println(\"|aInput| : window_base becomes: \"+ window_base+\".\");\r\n \t\t\t\t\r\n \t\t\t\tif(window_base == next_seq_num)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is stopped\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t}\r\n \t\t\t\telse\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is restarted\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\t\t\t}\r\n \t\t\t}\r\n \t\r\n \t/*\r\n \t\tif(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\t\r\n \t\t\tif(isCorrupted(packet)) //corrupted \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 0 is corrupted\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()== ACK_ACKed_1) \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_1_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) //corrupted\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 1 is corrupted\");\r\n \t\t\t\t//esendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()==ACK_ACKed_0)//Ack = -1 means NAK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_0_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t}\r\n \t\t*/\r\n \t\t\r\n\r\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 }",
"private void processInput(byte b) throws IOException {\n\t\ttry {\n\t\t\tProtocol protocol = Protocol.fromValue(b);\n\t\t\tprocessInput(protocol);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tlogger.catching(e);\n\t\t}\n\t}",
"private void run()\n {\n\tString[] info = null;\n\tnumber = new Stack<String>();\n\totherNumber = new Stack<String>();\n\tScanner scan = new Scanner(System.in);\n\twhile(scan.hasNext())\n\t{\n\t info = scan.nextLine().trim().split(\"\\\\s+\");\n\t if(info.length == 2)\n\t {\n\t\tnum1 = isValid(info[0]);\n\t\tnum2 = isValid(info[1]);\n\t\tif(num1 != null && num2 != null)\n\t\t{\n\t\t generateLists();\n\t\t addition();\n\t\t outputData();\n\t\t clear();\n\t\t}\n\t\telse error();\n\t }\n\t else error();\n\t}\n }",
"public void input(InputScript in){\n\n switch(in.type()){\n\n case Back:\n input_back();\n break;\n\n case Emphasis:\n input_emphasis();\n break;\n\n case Deemphasis:\n input_deemphasis();\n break;\n\n default:\n break;\n }\n }",
"@FXML\n private void handleUserInput() {\n Parser parser = new Parser();\n String input = userInput.getText();\n String response;\n if (input.equals(\"bye\")) {\n response = ui.ending();\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n\n } else {\n response = parser.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n\n }\n userInput.clear();\n\n\n }",
"public void setInput(String input) {\n\t\t\tthis.input = input;\n\t\t}",
"@Test\n public void testTooManyInput(){\n //set up\n CurrencyRates test = new CurrencyRates();\n\n //add sample user input\n InputStream in = new ByteArrayInputStream(\"ABC123 BCD234 WER456 FDG435\".getBytes());\n System.setIn(in);\n\n //test if system exits when user input is incorrect\n assertNull(test.takeInput());\n\n return;\n }",
"private void getRequest() {\n System.out.print(\"Enter song: \");\n ar.setSong(scanner.nextLine());\n //if the artist was correct but the song title wasn't we don't need to ask for the artist again\n if(wrongSong)\n return;\n System.out.print(\"Enter artist: \");\n ar.setArtist(scanner.nextLine());\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 prepareInput() {\n\t\tif(input.charAt(0) == '-') input = \"0\" + input;\n\t\tfor(int i = 0; i < input.length() - 1; i++) {\n\t\t\tif(input.charAt(i) == '(' && input.charAt(i+1) == '-') input = input.substring(0, i+1) + \"0\" + input.substring(i+1); \n\t\t}\n\t}"
] | [
"0.7456821",
"0.7198114",
"0.71261245",
"0.70484555",
"0.6564236",
"0.6548098",
"0.65316355",
"0.6509941",
"0.6492414",
"0.63114613",
"0.62999034",
"0.6297264",
"0.62932485",
"0.6293154",
"0.6278503",
"0.62477183",
"0.6240518",
"0.6240518",
"0.61877644",
"0.61829406",
"0.61763334",
"0.6115869",
"0.61150163",
"0.6063803",
"0.60495037",
"0.603967",
"0.6037709",
"0.59941083",
"0.5985736",
"0.5981006",
"0.5975322",
"0.5966517",
"0.59584886",
"0.5955763",
"0.5945326",
"0.5937226",
"0.5915334",
"0.5915332",
"0.59080684",
"0.5883674",
"0.5862076",
"0.5850725",
"0.58272785",
"0.5824394",
"0.57965416",
"0.57826984",
"0.57706463",
"0.57656246",
"0.5753768",
"0.57341385",
"0.57195044",
"0.5703846",
"0.5685782",
"0.56844807",
"0.5683261",
"0.5677778",
"0.5677741",
"0.5677483",
"0.5676881",
"0.5674501",
"0.5672372",
"0.56673574",
"0.5662799",
"0.566025",
"0.5646354",
"0.5640163",
"0.5639158",
"0.56387633",
"0.56242824",
"0.5612346",
"0.56115246",
"0.5608637",
"0.56035566",
"0.5602449",
"0.5602449",
"0.56015074",
"0.5598603",
"0.5598445",
"0.5597202",
"0.5595689",
"0.5595061",
"0.5591657",
"0.55889046",
"0.5587453",
"0.55720663",
"0.5565577",
"0.55639315",
"0.5551",
"0.55476403",
"0.5545447",
"0.55448925",
"0.55392486",
"0.5535431",
"0.5534246",
"0.5524171",
"0.5515565",
"0.550895",
"0.5506472",
"0.54955584",
"0.5495194",
"0.5491668"
] | 0.0 | -1 |
deal with the +and. | void rest() throws IOException {
while(true) {
if (lookahead == '+') {
if(wrongState == false)
errorPos = errorPos+(char)' ';
else
wrongState = false;
match('+');
term();
if(errorNum == 0) {
output = output + (char)'+';
}
} else if (lookahead == '-') {
if(wrongState == false)
errorPos = errorPos+(char)' ';
else
wrongState = false;
match('-');
term();
if(errorNum == 0) {
output = output + (char)'-';
}
} else if(lookahead == 13){
break;
} else {
errorNum++;
if(Character.isDigit((char)lookahead)) {
errorList.add("Miss a operator!!");
errorPos = errorPos + (char)'^';
wrongState = true;
} else {
errorList.add("Operator don't exist!!");
errorPos = errorPos + (char)'^';
match(lookahead);
}
term();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void passAND() {\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'a' && data[currentIndex] != 'A')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'n' && data[currentIndex] != 'N')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t\tif (currentIndex >= data.length || (data[currentIndex] != 'd' && data[currentIndex] != 'D')) {\n\t\t\tthrow new LexerException(\"Ulaz ne valja!\");\n\t\t}\n\t\tcurrentIndex++;\n\t}",
"public void executeAnd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString operand1 = mRegisters[mIR.substring(7, 3).getValue()];\n\t\tchar[] andSolution = new char[16];\n\t\tBitString operand2 = new BitString();\n\t\tif(mIR.substring(10, 1).getValue() == 1){ //immediate mode\n\t\t\toperand2 = mIR.substring(11, 5); //imma5\n\t\t\tif(operand2.getValue2sComp() < 0){\n\t\t\t\tBitString negativeExtend = new BitString();\n\t\t\t\tnegativeExtend.setBits(\"11111111111\".toCharArray());\n\t\t\t\tnegativeExtend.append(operand2);\n\t\t\t\toperand2 = negativeExtend;\n\t\t\t} else {\n\t\t\t\tBitString positiveExtended = new BitString();\n\t\t\t\tpositiveExtended.setBits(\"00000000000\".toCharArray());\n\t\t\t\toperand2 = positiveExtended.append(operand2);\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t//register mode\n\t\t\toperand2 = mRegisters[mIR.substring(13, 3).getValue()];\n\t\t}\n\n\n\t\tfor (int i = 0; i < operand1.getLength(); i++) {\n\t\t\tif(operand1.substring(i, 1).getValue() + operand2.substring(i, 1).getValue() ==2){\n\t\t\t\tandSolution[i] = '1';\n\t\t\t} else {\n\t\t\t\tandSolution[i] = '0';\n\t\t\t}\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setBits(andSolution);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\t}",
"private void and() {\n // PROGRAM 1: Student must complete this method\n //loop through the output array\n for (int i = 0; i < output.length; i++) {\n //take the and of index i of inputA and inputB and place result in output[i]\n output[i] = inputA[i] & inputB[i];\n }\n }",
"protected void sequence_AND(ISerializationContext context, AND semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAND_And()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAND_And()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getANDAccess().getAndAndKeyword_0(), semanticObject.getAnd());\n\t\tfeeder.finish();\n\t}",
"@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}",
"Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }",
"public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"protected final void operationAND(final int data) {\r\n this.ac &= data;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n }",
"public void setAnd(boolean and) {\n reqIsAnd = and;\n }",
"public void visita(And and) {\n and.getOperando(0).accept(this);\r\n Resultado resIzq = new Resultado(resParcial.getResultado());\r\n if (resIzq.equals(Resultado.COD_TRUE)) {\r\n resIzq.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resIzq.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n and.getOperando(1).accept(this);\r\n Resultado resDer = new Resultado(resParcial.getResultado());\r\n if (resDer.equals(Resultado.COD_TRUE)) {\r\n resDer.setEjemplo(resParcial.getEjemplo());\r\n } else {\r\n resDer.setContraejemplo(resParcial.getContraejemplo());\r\n }\r\n Resultado resAND;\r\n try {\r\n boolean part1 = Boolean.parseBoolean(resIzq.getResultado());\r\n boolean part2 = Boolean.parseBoolean(resDer.getResultado());\r\n part1 = part1 && part2;\r\n resAND = new Resultado(String.valueOf(part1));\r\n if (part1) {\r\n resAND.setEjemplo(resIzq.getEjemplo());\r\n } else if (part2) {\r\n resAND.setContraejemplo(resIzq.getContraejemplo());\r\n } else {\r\n resAND.setContraejemplo(resDer.getContraejemplo());\r\n }\r\n } catch (Exception e) {\r\n if ((resIzq.getResultado().equals(Resultado.COD_FALSE)) ||\r\n (resDer.getResultado().equals(Resultado.COD_FALSE))) {\r\n resAND = new Resultado(Resultado.COD_FALSE);\r\n } else {\r\n resAND = new Resultado(Resultado.COD_MAYBEF);\r\n }\r\n }\r\n resParcial = resAND;\r\n\r\n }",
"public final void ruleOpAnd() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:445:2: ( ( '&&' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:446:1: ( '&&' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:447:1: '&&'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n match(input,14,FOLLOW_14_in_ruleOpAnd886); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }",
"private void parseAnd(Node node) {\r\n if (switchTest) return;\r\n parse(node.left());\r\n if (! ok) return;\r\n parse(node.right());\r\n }",
"private double logicalAnd() {\n\t\tdouble q = p<=0.5?p:1-p;\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t') + q * configMap.get('m') + p * configMap.get('a');\n\t}",
"public String getAndOr();",
"public void testAND2() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 226, \"&\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}",
"public static BinaryExpression andAlso(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"private static void andify(List<ExternalizedStateComponent> inputs, ExternalizedStateComponent output, ExternalizedStateConstant trueProp) {\n\t\tfor(ExternalizedStateComponent c : inputs) {\n\t\t\tif(c instanceof ExternalizedStateConstant && !((ExternalizedStateConstant)c).getValue()) {\n\t\t\t\t//Connect false (c) to the output\n\t\t\t\toutput.addInput(c);\n\t\t\t\tc.addOutput(output);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t//For reals... just skip over any true constants\n\t\tExternalizedStateAnd and = new ExternalizedStateAnd();\n\t\tfor(ExternalizedStateComponent in : inputs) {\n\t\t\tif(!(in instanceof ExternalizedStateConstant)) {\n\t\t\t\tin.addOutput(and);\n\t\t\t\tand.addInput(in);\n\t\t\t}\n\t\t}\n\t\t//What if they're all true? (Or inputs is empty?) Then no inputs at this point...\n\t\tif(and.getInputs().isEmpty()) {\n\t\t\t//Hook up to \"true\"\n\t\t\ttrueProp.addOutput(output);\n\t\t\toutput.addInput(trueProp);\n\t\t\treturn;\n\t\t}\n\t\t//If there's just one, on the other hand, don't use the and gate\n\t\tif(and.getInputs().size() == 1) {\n\t\t\tExternalizedStateComponent in = and.getSingleInput();\n\t\t\tin.removeOutput(and);\n\t\t\tand.removeInput(in);\n\t\t\tin.addOutput(output);\n\t\t\toutput.addInput(in);\n\t\t\treturn;\n\t\t}\n\t\tand.addOutput(output);\n\t\toutput.addInput(and);\n\t}",
"public static BinaryExpression and(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"@OperationMeta(opType = OperationType.INFIX)\n public static boolean and(boolean b1, boolean b2) {\n return b1 & b2;\n }",
"public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }",
"@Override\n\tpublic void VisitAndNode(BunAndNode Node) {\n\n\t}",
"public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public bit and(bit other)\n\t{\n\t\tbit andBit = new bit();\n\t\t\n\t\tif(bitHolder.getValue() == other.getValue())\n\t\t{\n\t\t\tif(bitHolder.getValue() == 0)\n\t\t\t{\n\t\t\t\tandBit.setValue(0);\n\t\t\t}else {\n\t\t\tandBit.setValue(1);\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\tandBit.setValue(0);\n\t\t}\n\t\t\n\t\treturn andBit;\n\t}",
"public LogicGateAND() {\r\n\t\t// Initialize input and output ports\r\n\t\tsuper(Operators.AND, new IDynamicInterface(2), new IFixedInterface(new IPort()));\r\n\t}",
"@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }",
"@Override\n public ILogical and(ILogical operador) {\n return operador.andBinary(this);\n }",
"@Test\n public void testAnd() {\n if (true && addValue()) {\n assertThat(flag, equalTo(1));\n }\n\n // first expression is not satisfied conditions, then second expression not invoke\n if (false && addValue()) {\n assertThat(flag, equalTo(1));\n }\n }",
"void visit(final AndCondition andCondition);",
"public RtAndOp(RtExpr[] paras) {\n super(paras);\n }",
"public T caseAnd(And object)\n {\n return null;\n }",
"@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}",
"public FluentExp<Boolean> and (SQLExpression<Boolean> expr)\n {\n return Ops.and(this, expr);\n }",
"private Term parseLogicalAnd(final boolean required) throws ParseException {\n Term t1 = parseComparison(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"&&\") || isKeyword(\"and\")) {\n Term t2 = parseComparison(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.AndB(t1, t2);\n } else {\n reportTypeErrorB2(\"'&&' or 'and'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }",
"public final void rule__PredicateAnd__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3667:1: ( ( '&&' ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3668:1: ( '&&' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3668:1: ( '&&' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3669:1: '&&'\n {\n before(grammarAccess.getPredicateAndAccess().getAmpersandAmpersandKeyword_1_1()); \n match(input,28,FOLLOW_28_in_rule__PredicateAnd__Group_1__1__Impl7218); \n after(grammarAccess.getPredicateAndAccess().getAmpersandAmpersandKeyword_1_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 }",
"public final void entryRuleOpAnd() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:433:1: ( ruleOpAnd EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:434:1: ruleOpAnd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAndRule()); \n }\n pushFollow(FOLLOW_ruleOpAnd_in_entryRuleOpAnd852);\n ruleOpAnd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAndRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAnd859); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public T caseAnd(And object) {\n\t\treturn null;\n\t}",
"@Test\n\tpublic void explicitANDTest() {\n\t\tString query = \"hello goodbye\";\n\t\tString query2 = \"hello goodbye hello\";\n\t\tString query3 = \"( hello ( goodbye | hello bye ) )\";\n\t\t\n\t\tString queryResults = \"hello & goodbye\";\n\t\tString query2Results = \"hello & goodbye & hello\";\n\t\tString query3Results = \"( hello & ( goodbye | hello & bye ) )\";\n\n\t\tassertEquals(queryResults, String.join(\" \", queryTest.addExplicitAND(query.split(\" \"))));\n\t\tassertEquals(query2Results, String.join(\" \", queryTest.addExplicitAND(query2.split(\" \"))));\n\t\tassertEquals(query3Results, String.join(\" \", queryTest.addExplicitAND(query3.split(\" \"))));\n\t}",
"private static boolean checkAndOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"and\")) {\n\t\t\tString[] arr = expression.split(\"and\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkOrOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t} else if (expression.endsWith(\"and\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"and\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkOrOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public void testAND3() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 227, \"+\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.AND)\n default IData and(IData other) {\n \n return notSupportedOperator(OperatorType.AND);\n }",
"public void and (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n }\n }",
"public Snippet visit(AndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" & \"+f2.returnTemp;\n\t return _ret;\n\t }",
"@Test\n public void testPredicateAnd() {\n Predicate<Integer> isEven = (x) -> (x % 2) == 0;\n Predicate<Integer> isDivSeven = (x) -> (x % 7) == 0;\n\n Predicate<Integer> evenOrDivSeven = isEven.and(isDivSeven);\n\n assertTrue(evenOrDivSeven.apply(14));\n assertFalse(evenOrDivSeven.apply(21));\n assertFalse(evenOrDivSeven.apply(8));\n assertFalse(evenOrDivSeven.apply(5));\n }",
"public And(Formula f1, Formula f2) {\n\t\tsuper(f1, f2);\n\t}",
"Expr join() throws IOException {\n\t\tExpr e = equality();\n\t\twhile (look.tag == Tag.AND) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new And(tok, e, equality());\n\t\t}\n\t\treturn e;\n\t}",
"public void testAND1() throws Exception {\n\t\tObject retval = execLexer(\"AND\", 225, \"and\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"AND\", expecting, actual);\n\t}",
"public void andWhere(String dbsel)\n {\n this._appendWhere(dbsel, WHERE_AND); // WHERE_OR [2.6.4-B59]\n }",
"IRequirement and(IRequirement requirement);",
"ANDDecomposition createANDDecomposition();",
"public final void mAND() throws RecognitionException {\n try {\n int _type = AND;\n // /Users/benjamincoe/HackWars/C.g:217:5: ( '&&' )\n // /Users/benjamincoe/HackWars/C.g:217:7: '&&'\n {\n match(\"&&\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public final void rule__AstExpressionAnd__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2818:1: ( ( '&&' ) | ( 'and' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==17) ) {\n alt13=1;\n }\n else if ( (LA13_0==18) ) {\n alt13=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2819:1: ( '&&' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2820:1: '&&'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n match(input,17,FOLLOW_17_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06085); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2827:6: ( 'and' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2828:1: 'and'\n {\n before(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n match(input,18,FOLLOW_18_in_rule__AstExpressionAnd__OperatorAlternatives_1_1_06105); \n after(grammarAccess.getAstExpressionAndAccess().getOperatorAndKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static RuntimeValue and(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteBoolSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.and(left.getDiscreteBoolSample(), right.getDiscreteBoolSample())\n );\n }\n\n throw new RuntimeException(\"AND-ing incompatible types\");\n }",
"public Snippet visit(ConditionalAndExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" && \"+f2.returnTemp;\n\t return _ret;\n\t }",
"public ExpressionSearch and(Search srch)\n\t{\n\t\treturn new ExpressionSearch(true).addOps(this, srch);\n\t}",
"public final void ruleOpAnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:642:2: ( ( '&&' ) )\r\n // InternalDroneScript.g:643:2: ( '&&' )\r\n {\r\n // InternalDroneScript.g:643:2: ( '&&' )\r\n // InternalDroneScript.g:644:3: '&&'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n match(input,15,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"public void outABinAndExp(ABinAndExp node) throws TypeException{\n\tPExp l = node.getL();\n\tPExp r = node.getR();\n\tType typel = typemap.get(l);\n\tType typer = typemap.get(r);\n\tif(areBoolean(typel,typer)) typemap.put(node, typel);\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Binary and used without two Booleans.\");\n }",
"public void visit(AndExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }",
"public final void ruleOpAnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:528:2: ( ( '&&' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:529:1: ( '&&' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:530:1: '&&'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n match(input,17,FOLLOW_17_in_ruleOpAnd1066); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void setAndOr (String AndOr);",
"public Operation zCombinedAnd(Operation op)\r\n {\r\n if (op.equals(this))\r\n {\r\n return this;\r\n }\r\n return null;\r\n }",
"public MType visit(AndExpression n, MType argu) {\n \tMType _ret = new MBoolean();\n \tn.f0.accept(this, argu);\n \tn.f1.accept(this, argu);\n \tn.f2.accept(this, argu);\n \treturn _ret;\n }",
"public void and(Condition c){\n result.retainAll(c.result);\n Collections.sort(result);\n }",
"@Override\n\tpublic Object visit(ASTFilterAnd node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" and \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}",
"public static Object and(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) & ((Boolean) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).and((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in and\");\n\t}",
"public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }",
"public final void entryRuleOpAnd() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:630:1: ( ruleOpAnd EOF )\r\n // InternalDroneScript.g:631:1: ruleOpAnd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void entryRuleOpAnd() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:516:1: ( ruleOpAnd EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:517:1: ruleOpAnd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAndRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAnd_in_entryRuleOpAnd1032);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAndRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAnd1039); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"protected void sequence_And(ISerializationContext context, And semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"private Object eval(AndExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = true;\n for (RelExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result && (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (!result) {\n return false;\n }\n }\n return true;\n }",
"public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12207:1: ( ( ( ruleOpAnd ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12208:1: ( ( ruleOpAnd ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12209:1: ( ruleOpAnd )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12210:1: ( ruleOpAnd )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12211:1: ruleOpAnd\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_124487);\n ruleOpAnd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"default <V> Parser<S, T, P<U, V>> and(Parser<S, T, V> p) {\n return and(p,(a,b)->P.p(a,b));\n }",
"And createAnd();",
"And createAnd();",
"public T caseAndExpression(AndExpression object)\n {\n return null;\n }",
"public final void mRULE_AND() throws RecognitionException {\n try {\n int _type = RULE_AND;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:10: ( '&' '&' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12791:12: '&' '&'\n {\n match('&'); \n match('&'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final Expr andExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int andExpr_StartIndex = input.index();\r\n\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 17) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:5: (lhs= relExpr ( '&&' rhs= relExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:9: lhs= relExpr ( '&&' rhs= relExpr )*\r\n {\r\n pushFollow(FOLLOW_relExpr_in_andExpr789);\r\n lhs=relExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:46: ( '&&' rhs= relExpr )*\r\n loop12:\r\n do {\r\n int alt12=2;\r\n int LA12_0 = input.LA(1);\r\n\r\n if ( (LA12_0==20) ) {\r\n alt12=1;\r\n }\r\n\r\n\r\n switch (alt12) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:157:48: '&&' rhs= relExpr\r\n \t {\r\n \t match(input,20,FOLLOW_20_in_andExpr795); if (state.failed) return result;\r\n\r\n \t pushFollow(FOLLOW_relExpr_in_andExpr799);\r\n \t rhs=relExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { result = new And(result, rhs); }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop12;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 17, andExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }",
"private boolean factor() {\r\n return MARK(ATOM) && atom() && postops();\r\n }",
"private Expr or() { // This uses the same recursive matching structure as other binary operators.\n Expr expr = and(); // OR takes precedence over AND.\n while(match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n return expr;\n }",
"public final EObject ruleAnd() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_RelationalExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3903:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3904:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3905:5: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n {\n \n newCompositeNode(grammarAccess.getAndAccess().getRelationalExpressionParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8765);\n this_RelationalExpression_0=ruleRelationalExpression();\n\n state._fsp--;\n\n \n current = this_RelationalExpression_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) ) )*\n loop35:\n do {\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==59) ) {\n alt35=1;\n }\n\n\n switch (alt35) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_right_3_0= ruleRelationalExpression ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3913:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3914:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getAndAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3919:2: ( (lv_operator_2_0= '&&' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3920:1: (lv_operator_2_0= '&&' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3921:3: lv_operator_2_0= '&&'\n \t {\n \t lv_operator_2_0=(Token)match(input,59,FOLLOW_59_in_ruleAnd8792); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getAndAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getAndRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"&&\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3934:2: ( (lv_right_3_0= ruleRelationalExpression ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3935:1: (lv_right_3_0= ruleRelationalExpression )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3936:3: lv_right_3_0= ruleRelationalExpression\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getAndAccess().getRightRelationalExpressionParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleRelationalExpression_in_ruleAnd8826);\n \t lv_right_3_0=ruleRelationalExpression();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getAndRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"RelationalExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop35;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"StatementChain and(ProfileStatement... statements);",
"public final CQLParser.andExpression_return andExpression() throws RecognitionException {\n CQLParser.andExpression_return retval = new CQLParser.andExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token AND88=null;\n CQLParser.relationalExpression_return relationalExpression87 = null;\n\n CQLParser.relationalExpression_return relationalExpression89 = null;\n\n\n Object AND88_tree=null;\n\n errorMessageStack.push(\"AND expression\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:2: ( relationalExpression ( AND relationalExpression )* )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:4: relationalExpression ( AND relationalExpression )*\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_relationalExpression_in_andExpression1729);\n relationalExpression87=relationalExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, relationalExpression87.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:25: ( AND relationalExpression )*\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==AND) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:373:26: AND relationalExpression\n \t {\n \t AND88=(Token)match(input,AND,FOLLOW_AND_in_andExpression1732); \n \t AND88_tree = (Object)adaptor.create(AND88);\n \t root_0 = (Object)adaptor.becomeRoot(AND88_tree, root_0);\n\n \t pushFollow(FOLLOW_relationalExpression_in_andExpression1735);\n \t relationalExpression89=relationalExpression();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, relationalExpression89.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop23;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }",
"static long andOperator(long x, long y)\n {\n long res = 0; // Initialize result\n while (x > 0 && y > 0) {\n // Find positions of MSB in x and y\n int msb_p1 = msbPos(x);\n int msb_p2 = msbPos(y);\n // If positions are not same, return\n if (msb_p1 != msb_p2)\n break;\n // Add 2^msb_p1 to result\n long msb_val = (1 << msb_p1);\n res = res + msb_val;\n // subtract 2^msb_p1 from x and y.\n x = x - msb_val;\n y = y - msb_val;\n }\n return res;\n }",
"public static void appendAndToWhereClause(StringBuilder whereBuilder) {\n if (whereBuilder.length() > 0) {\n whereBuilder.append(\" and \");\n }\n }",
"public final EObject ruleAndOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4468:28: ( ( () (otherlv_1= 'and' | otherlv_2= '&&' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:1: ( () (otherlv_1= 'and' | otherlv_2= '&&' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: () (otherlv_1= 'and' | otherlv_2= '&&' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4469:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4470:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAndOperatorAccess().getAndOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:2: (otherlv_1= 'and' | otherlv_2= '&&' )\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==51) ) {\r\n alt53=1;\r\n }\r\n else if ( (LA53_0==52) ) {\r\n alt53=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 53, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4475:4: otherlv_1= 'and'\r\n {\r\n otherlv_1=(Token)match(input,51,FOLLOW_51_in_ruleAndOperator9750); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAndOperatorAccess().getAndKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4480:7: otherlv_2= '&&'\r\n {\r\n otherlv_2=(Token)match(input,52,FOLLOW_52_in_ruleAndOperator9768); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getAndOperatorAccess().getAmpersandAmpersandKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public final void rulePredicateAnd() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:440:2: ( ( ( rule__PredicateAnd__Group__0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:441:1: ( ( rule__PredicateAnd__Group__0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:441:1: ( ( rule__PredicateAnd__Group__0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:442:1: ( rule__PredicateAnd__Group__0 )\n {\n before(grammarAccess.getPredicateAndAccess().getGroup()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:443:1: ( rule__PredicateAnd__Group__0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:443:2: rule__PredicateAnd__Group__0\n {\n pushFollow(FOLLOW_rule__PredicateAnd__Group__0_in_rulePredicateAnd792);\n rule__PredicateAnd__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateAndAccess().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 \tmyHiddenTokenState.restore();\n\n }\n return ;\n }",
"public final void mT__89() throws RecognitionException {\r\n try {\r\n int _type = T__89;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:86:7: ( 'and' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:86:9: 'and'\r\n {\r\n match(\"and\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public String visit(AndExpression n, LLVMRedux argu) throws Exception {\n\n String arg1 = n.f0.accept(this, argu), arg2 = n.f2.accept(this, argu);\n u.println(u.getReg()+\" = and i1 \"+arg1+\", \"+arg2);\n return u.getLastReg();\n }",
"public Exp bind(Node qnode, Node node) {\n Exp bind = create(NODE, qnode);\n Exp value = create(NODE, node);\n bind.add(value);\n Exp and = this;\n if (this.type() != AND) {\n and = create(AND, this);\n }\n and.add(0, bind);\n return and;\n }",
"public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17456:1: ( ( ( ruleOpAnd ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17457:1: ( ( ruleOpAnd ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17458:1: ( ruleOpAnd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17459:1: ( ruleOpAnd )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17460:1: ruleOpAnd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAnd_in_rule__XAndExpression__FeatureAssignment_1_0_0_135247);\r\n ruleOpAnd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void execute() {\n\t\tnot_a.in.set(a.get());\n\t\tnot_b.in.set(b.get());\n\n\t\t/* we now execute both of the NOT gates. Each one should\n\t\t * write a value to their output.\n\t\t */\n\t\tnot_a.execute();\n\t\tnot_b.execute();\n\n\n\t\t/* ----- IMPORTANT NOTE 2: -----\n\t\t *\n\t\t * We need to perform NOT twice in this component - since XOR\n\t\t * uses the NOT value of each of the inputs a,b. But we MUST\n\t\t * NOT use the same object twice! Instead, we use two\n\t\t * different NOT objects.\n\t\t *\n\t\t * In a program, this is of course a silly design. But\n\t\t * remember that we are trying to simulate hardware here - and\n\t\t * each component (such as a NOT gate) can only generate one\n\t\t * result per clock tick. So if we want to negate two different\n\t\t * signals for the same calculation, we need two differnt gates.\n\t\t */\n\n\n\t\t/* we now connect various wires to each AND gate. Each AND\n\t\t * checks for \"this value is true, the other is false\"; it does\n\t\t * this by doing the AND of one of the inputs, and the NOT of\n\t\t * the other.\n\t\t *\n\t\t * Note that it's perfectly OK to connect the same input to\n\t\t * two different devices - we just run wires to two different\n\t\t * physical places.\n\t\t */\n\t\tand1.a.set(a.get());\n\t\tand1.b.set(not_b.out.get());\n\n\t\tand2.a.set(not_a.out.get());\n\t\tand2.b.set(b.get());\n\n\t\t/* we execute the two AND gates *AFTER* their inputs are\n\t\t * in place.\n\t\t */\n\t\tand1.execute();\n\t\tand2.execute();\n\n\n\t\t/* the value of XOR is \"this and not that, or not this and that\" -\n\t\t * or, more formally,\n\t\t * (A ~B) + (~A B)\n\t\t * So our last step is to OR the result of the two AND gates\n\t\t * together. Its output is the output from our XOR gate.\n\t\t */\n\t\tor.a.set(and1.out.get());\n\t\tor.b.set(and2.out.get());\n\t\tor.execute();\n\t\tout.set(or.out.get());\n\t}",
"public static void main(String[] args) {\n unaryAndBinaryOperator();\n }",
"public final Expr andExpr() throws RecognitionException {\n Expr result = null;\n\n int andExpr_StartIndex = input.index();\n\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 13) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:5: (lhs= relExpr ( '&&' rhs= relExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:9: lhs= relExpr ( '&&' rhs= relExpr )*\n {\n pushFollow(FOLLOW_relExpr_in_andExpr662);\n lhs=relExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result =lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:46: ( '&&' rhs= relExpr )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==17) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:160:48: '&&' rhs= relExpr\n \t {\n \t match(input,17,FOLLOW_17_in_andExpr668); if (state.failed) return result;\n\n \t pushFollow(FOLLOW_relExpr_in_andExpr672);\n \t rhs=relExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { result = new And(result, rhs); }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 13, andExpr_StartIndex); }\n\n }\n return result;\n }",
"public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}",
"boolean isAdditionAllowed();",
"public void testToString_AND() {\n assertEquals(\"Returns an incorrect string\", \"AND\", BinaryOperation.AND.toString());\n }",
"public final void rule__BoolOperation__Group__15__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1557:1: ( ( '&' ) )\n // InternalBSQL2Java.g:1558:1: ( '&' )\n {\n // InternalBSQL2Java.g:1558:1: ( '&' )\n // InternalBSQL2Java.g:1559:2: '&'\n {\n before(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_15()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getBoolOperationAccess().getAmpersandKeyword_15()); \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 }"
] | [
"0.69140357",
"0.67666984",
"0.67480946",
"0.67440253",
"0.6739466",
"0.6697963",
"0.66584134",
"0.6580107",
"0.6579349",
"0.6571932",
"0.65473014",
"0.6545959",
"0.6527735",
"0.6511445",
"0.64893836",
"0.6471629",
"0.6459901",
"0.63841385",
"0.63788396",
"0.63419414",
"0.6335314",
"0.63256675",
"0.62600625",
"0.6241365",
"0.6229952",
"0.622406",
"0.6221823",
"0.62163436",
"0.62064224",
"0.6167159",
"0.61422133",
"0.61355513",
"0.61222917",
"0.6091411",
"0.605815",
"0.6039778",
"0.60308695",
"0.6026507",
"0.60252976",
"0.6024915",
"0.60133517",
"0.6006372",
"0.5998793",
"0.5998631",
"0.59864676",
"0.59774375",
"0.59680235",
"0.59674454",
"0.59311306",
"0.5929978",
"0.5924852",
"0.5920306",
"0.5916705",
"0.5905355",
"0.58995837",
"0.5882547",
"0.58746237",
"0.58323765",
"0.58120847",
"0.5811394",
"0.58083516",
"0.5806464",
"0.57961696",
"0.5791249",
"0.5786246",
"0.57825327",
"0.5781241",
"0.5778344",
"0.5767789",
"0.5763985",
"0.5760968",
"0.5759807",
"0.5738808",
"0.5705341",
"0.564979",
"0.56495553",
"0.5635893",
"0.5635893",
"0.56271344",
"0.5626431",
"0.56021214",
"0.5597669",
"0.559417",
"0.5586286",
"0.55858594",
"0.5570973",
"0.55704373",
"0.55682933",
"0.55592024",
"0.5541375",
"0.5537861",
"0.55350995",
"0.55349296",
"0.5534583",
"0.552197",
"0.5520923",
"0.5519863",
"0.5511952",
"0.5511312",
"0.55103385",
"0.5506408"
] | 0.0 | -1 |
deal with the digit.And check the lookahead if its digit. | void term() throws IOException {
if (Character.isDigit((char)lookahead)) {
if(errorNum == 0) {
output = output + (char)lookahead;
}
if(wrongState == false)
errorPos = errorPos+(char)' ';
else
wrongState = false;
match(lookahead);
} else if(lookahead == '+' || lookahead == '-') {
errorNum++;
errorPos = errorPos + (char)'^';
errorList.add("Miss a digit!!");
wrongState = true;
} else {
if(wrongState == false) {
errorNum++;
errorPos = errorPos + (char)'^';
errorList.add("No this digit!!");
match(lookahead);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}",
"Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }",
"public boolean checkNumberContinuation(String password) {\n for (int i = 0; i < password.length(); i++) {\n if (String.valueOf(password.charAt(i)).matches(\"[0-9]\")) { //next time: Character.isDigit(passtword.charAt(i))\n if ((password.charAt(i) + 1 == password.charAt(i + 1))\n && (password.charAt(i) + 2 == password.charAt(i + 2))) {\n return false;\n }\n }\n }\n return true;\n }",
"public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }",
"private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}",
"private boolean isDigit(char ch) {\n if ( (ch >= '0') && (ch <= '9')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }",
"@Test\n public void shouldMatchDigits(){\n Assert.assertThat(\"match all digits\",CharMatcher.DIGIT.matchesAllOf(\"1234434\"),is(true));\n Assert.assertThat(\"match any digits \",CharMatcher.DIGIT.matchesAnyOf(\"123TTT4\"),is(true));\n }",
"public boolean checkDigits(String password) {\n return password.matches(\".*\\\\d.*\");\n }",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}",
"private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }",
"@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }",
"public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }",
"public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }",
"void overflowDigits() {\n for (int i = 0; i < preDigits.length(); i++) {\n char digit = preDigits.charAt(i);\n // This could be implemented with a modulo, but compared to the main\n // loop this code is too quick to measure.\n if (digit == '9') {\n preDigits.setCharAt(i, '0');\n } else {\n preDigits.setCharAt(i, (char)(digit + 1));\n }\n }\n }",
"private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }",
"static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }",
"private static int digit(int b) {\n\t\tif (b >= '0' && b <= '9') return b - '0';\n\t\tthrow exceptionf(\"Not a digit: '%s'\" + escape((char) b));\n\t}",
"public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }",
"private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }",
"public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}",
"public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }",
"public void testDIGITS3() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 240, \"1234567890\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }",
"public void testDIGITS1() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 238, \"1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isAlphaNumeric(char toCheck) {\n return isAlpha(toCheck) || isDigit(toCheck);\n }",
"private int extractDigits(String courseCode) {\n CharMatcher matcher = CharMatcher.javaLetter();\n String digitOnly = matcher.removeFrom(courseCode);\n int digits = Integer.parseInt(digitOnly);\n return digits;\n }",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}",
"private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }",
"static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }",
"private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }",
"static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}",
"@Test\n\tpublic void checkNumbersFollowedByExclamationMark() {\n\t\tString input = \"Five six SEVEN eiGHt!!\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"5 6 7 8!!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"public static boolean checkUnlucky(int num) {\n\t\twhile (num != 0) {\n\t\t\tif (num == 13) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\tnum = num / 10;\n\t\t}\n\t\treturn false;\n\t}",
"public void testDIGITS5() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 242, \"\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public static int funky(int a, int digit) {\n int count = 0;// always zero right here\n\n // Point A\n while (a != 0) {\n \n // Point B\n\n if (a % 10 == digit) { \n count++;\n // Point C\n } else if (count > 0) { // only decrements when count > 0 \n count--;\n // Point D\n }\n a = a / 10;\n }\n\n // Point E : may or may not have gone into loop\n return count;\n}",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return true;\n\n pos++;\n }\n\n return false;\n }",
"private Token scanNumber(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(firstChar.getCharacter());\n\t\tappendSubsequentDigits(buffer);\n\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\tLocatedChar c = input.next();\n\t\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\t\tinput.pushback(c);\n\t\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\tbuffer.append(c.getCharacter());\n\t\t\tif(input.peek().isDigit()) {\n\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\tif(input.peek().getCharacter() == CAPITAL_E) {\n\t\t\t\t\tLocatedChar expChar = input.next();\n\t\t\t\t\tbuffer.append(expChar.getCharacter());\n\t\t\t\t\tif(input.peek().getCharacter() == '+' || input.peek().getCharacter() == '-') {\n\t\t\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\t\t}\n\t\t\t\t\tif(input.peek().isDigit()) {\n\t\t\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlexicalError(expChar, \"malformed floating exponent literal\");\n\t\t\t\t\t\treturn findNextToken();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\treturn FloatToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed floating literal\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t}\n\t}",
"private static boolean isDigitFollowing(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (Character.isDigit(c)) {\n return true;\n }\n return false;\n }\n return false;\n }",
"public boolean checkConNum(String temp) {\n boolean counter = true;\n char[] ch = new char[temp.length()];\n \n for (int i = 0; i < temp.length(); i++) {\n ch[i] = temp.charAt(i);\n }\n \n for(int g = 0 ;g < ch.length; g++){\n \tif(!Character.isDigit(ch[g])){\n counter = false;\n break;\n \t}\n }\n \n return counter;\n \n }",
"static int checkdigit(String num1, String num2)\n {\n for (int i=0;i<num1.length();i++)\n {\n char c1=num1.charAt(i);\n if((num1.substring(0,i).indexOf(c1))!=-1)//To check if a digit repeats itself in the substring \n continue;\n if(num2.indexOf(c1)==-1)//To check the presence of the digit in the factors\n return 0;\n \n int f1=0;int f2 =0;\n \n for(int k=0;k<num1.length();k++)//To find how many times c1 occurs in num1\n {\n if(c1==num1.charAt(k))\n f1=f1+1;\n }\n for(int p=0;p<num2.length();p++)//To find how many times c1 occurs in num2\n {\n if(c1==num2.charAt(p))\n f2=f2+1;\n }\n if(f1!=f2)//If c1 occurs the same number of times in num1 and num2\n {\n return 0;\n }\n \n }\n return 1;\n \n }",
"private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }",
"public String digit(String digit);",
"private boolean containsDigit(String expr) {\r\n for (int i = 0; i < expr.length(); i++) {\r\n if (Character.isDigit(expr.charAt(i))) {\r\n return true;\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public void testDIGITS6() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 243, \"one\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }",
"public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }",
"public static Boolean Digit(String arg){\n\t\tif(arg.length() == 1 && Is.Int(arg)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }",
"public static String verifyEmpNum(Scanner input, String tempNumber){\n \n //String used for regex verification of Employee number\n String theRegex = \"[0-9][0-9][0-9][-][A-Ma-m]\";\n \n //While tempNumber does not match theRegex\n while(!tempNumber.matches(theRegex)){\n System.out.print(\"The Employee Number you entered was invalid.\\nThe Employee Number must match XXX-L including the dash \"\n + \"where X is a digit and L is a letter A-M: \");\n tempNumber = input.nextLine();\n }\n return tempNumber;\n }",
"public static boolean letter_digit_check(String pass){\n\t\tint sum=0;\n\t\tint count=0;\n\t\tfor (int i=0; i<pass.length(); i++){\n\t\t\tif (Character.isDigit(pass.charAt(i))){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\telse if(Character.isLetter(pass.charAt(i))){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (sum>=2 && count>=2)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}",
"public void processLastDigit()\r\n\t{\r\n\t int lastDigit = currentNumber % 10;\r\n\t lastDigitCounters[lastDigit]++;\r\n\t}",
"@Override\r\n public void keyTyped(KeyEvent e) {\r\n char input = e.getKeyChar();\r\n //checking input!='\\b' prevents hitting backspace to enter the condition\r\n //cheking input!='\\n' prevents hitting enter to enter the condition\r\n if (((input < '0' || input > '9') && (input != ' ')) && (input != '\\b') && (input != '\\n')) {\r\n e.consume();\r\n JOptionPane.showMessageDialog(null, \"Invalid input. Type number\");\r\n } else if (input >= '0' && input <= '9') {//if valid input but not whitespace\r\n\r\n counter++;//if valid number input, counter increases by 1\r\n spaceCounter = 0;//number typed and make spaceCounter again zero\r\n tester = input;\r\n if (counter >= 4) {\r\n\r\n e.consume();\r\n counter--;//so as last keytyped won't count\r\n JOptionPane.showMessageDialog(null, \"Type Space to proceed\");\r\n\r\n }\r\n } else if (input == '\\b') {\r\n\r\n if (tester == ' ') {//if user erased whitespace\r\n\r\n if (textField.getText().length() > 0) {\r\n tester = textField.getText().charAt(textField.getText().length() - 1);//tester takes the value of the last char after hitting backspace\r\n // System.out.println(\"TESTER IS:\" + tester);\r\n\r\n int i = textField.getText().length() - 1;\r\n int numberOfChars = 0;\r\n while (i >= 0) {\r\n if (textField.getText().charAt(i) != ' ') {//count backwards the number of digits until reach whitespace\r\n i--;\r\n numberOfChars++;\r\n } else {\r\n break;\r\n }\r\n\r\n }\r\n counter = numberOfChars;\r\n // System.out.println(\"NUMBER OF DIGITS AFTER REMOVING SPACE:\" + counter);\r\n spaceCounter = 0;\r\n // System.out.println(\"NUMBER OF SPACES AFTER REMOVING SPACE:\" + spaceCounter);\r\n } else {\r\n counter = 0;\r\n spaceCounter = 0;\r\n }\r\n\r\n } else if (tester >= '0' && tester <= '9') {//if user erased digit\r\n\r\n if (textField.getText().length() > 0) {//if textField is not empty\r\n tester = textField.getText().charAt(textField.getText().length() - 1);//tester takes the value of the last char after hitting backspace\r\n // System.out.println(\"TESTER IS:\" + tester);\r\n\r\n int i = textField.getText().length() - 1;\r\n int numberOfChars = 0;\r\n while (i >= 0) {\r\n if (textField.getText().charAt(i) != ' ') {//count backwards the number of digits until reach whitespace\r\n i--;\r\n numberOfChars++;\r\n } else {\r\n break;\r\n }\r\n\r\n }\r\n counter = numberOfChars;\r\n // System.out.println(\"NUMBER OF DIGITS:\" + counter);\r\n } else {\r\n counter = 0;//counter becomes 0 if there are no characters in the textfield\r\n }\r\n\r\n }\r\n } else { //user typed whitespace\r\n spaceCounter++;//spaceCounter increases by one\r\n tester = input;\r\n if (spaceCounter >= 2) {\r\n e.consume();\r\n spaceCounter--;//so that last keytyped wont count\r\n JOptionPane.showMessageDialog(null, \"You have already typed space\");\r\n } \r\n\r\n counter = 0;//space typed counter is made zero again\r\n }\r\n\r\n }",
"@Test\r\n\tpublic void testIsValidPasswordNoDigit()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"GreenLeaves\"));\r\n\t\t}\r\n\t\tcatch(NoDigitException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoDigitExcepetion\",true);\r\n\t\t}\r\n\t}",
"@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }",
"@Test\n public void testAnyDigitSequences() {\n assertThat(regex(seq(e(\"0\"), e(\"1\"), X))).isEqualTo(\"01\\\\d\");\n // \"\\d\\d\" is shorter than \"\\d{2}\"\n assertThat(regex(seq(X, X))).isEqualTo(\"\\\\d\\\\d\");\n assertThat(regex(seq(X, X, X))).isEqualTo(\"\\\\d{3}\");\n // Top level optional groups are supported.\n assertThat(regex(opt(seq(X, X)))).isEqualTo(\"(?:\\\\d{2})?\");\n // Optional parts go at the end.\n assertThat(regex(\n seq(\n opt(seq(X, X)),\n X, X)))\n .isEqualTo(\"\\\\d\\\\d(?:\\\\d{2})?\");\n // \"(x(x(x)?)?)?\"\n Edge anyGrp = opt(seq(\n X,\n opt(seq(\n X,\n opt(X)))));\n // The two cases of a group on its own or as part of a sequence are handled separately, so\n // must be tested separately.\n assertThat(regex(anyGrp)).isEqualTo(\"\\\\d{0,3}\");\n assertThat(regex(seq(e(\"1\"), e(\"2\"), anyGrp))).isEqualTo(\"12\\\\d{0,3}\");\n // xx(x(x(x)?)?)?\"\n assertThat(regex(seq(X, X, anyGrp))).isEqualTo(\"\\\\d{2,5}\");\n // Combining \"any digit\" groups produces minimal representation\n assertThat(regex(seq(anyGrp, anyGrp))).isEqualTo(\"\\\\d{0,6}\");\n }",
"@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}",
"private boolean checkSoThang(String soThang){\n String pattern = \"\\\\d+\"; \n return soThang.matches(pattern);\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"@Test\n\tpublic void castNumbersFollowedByMultipleDifferentNonAlphapeticalCharacters() {\n\t\tString input = \"I have one~!@##$%^^&*( new test\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 1~!@##$%^^&*( new test\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"private void processPossibleNumber(String data, int position) {\n\n Token t = tokens.get(currentTokenPointer);\n\n try {\n\n char possiblePlus = data.charAt(position);\n\n Integer value = null;\n\n if (possiblePlus == '+') {\n\n String number = data.substring(position + 1);\n\n if (number.length() > 0 && number.charAt(0) == '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position + 1));\n\n } else {\n\n if (possiblePlus != '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position));\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"unable to determine the numeric modifier for macro. Macro was '\" + data + \"' at position \" + t.start, t.start);\n\n }\n\n }",
"@Test\n public void shouldReturnLastIndexOfFirstWhitespace(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT\n .lastIndexIn(\"123TT T4\"),is(7));\n }",
"public boolean checkDel (TextView tv){\n String s = expressionView.getText().toString();\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n return true;\n }\n }\n return false;\n }",
"public static void alldigitscheck(int x, int l) {\n do {\n int y = x % 10;\n digits[y] = digits[y] + l;\n x = x / 10;\n } while (x != 0);\n }",
"private String compactNumbers(String inWord)\n {\n StringBuffer rtn = new StringBuffer().append(\"^\");\n boolean last_digit = false;\n\n for(int i = 0; i < inWord.length(); i++)\n {\n char ch = inWord.charAt(i);\n if(Character.isDigit(ch))\n {\n if(!last_digit)\n {\n last_digit = true;\n rtn.append('1');\n } // fi\n } // fi\n\n else\n {\n last_digit = false;\n rtn.append(ch);\n } // else\n } // for\n \n rtn.append(\"_\");\n\n return(rtn.toString());\n }",
"public boolean check3sameNumbersMax(String password) {\n for (int i = 0; i < password.length() - 3; i++) {\n if (String.valueOf(password.charAt(i)).matches(\"\\\\d\")) { //next time: Character.isDigit(passtword.charAt(i))\n for (int j = i; j < i+3; j++) {\n if (password.charAt(j) != password.charAt(j + 1)) {\n break;\n } else if (j-i == 2) {\n return false;\n }\n }\n }\n }\n return true;\n }",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"public boolean isContainNumericalDigits(String password) {\n\t\treturn password.matches(\".*[0-9].*\");\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString password = \"$$ Welcome to 1st Automation Interview $$\" ;\r\n\t\t\r\n\t\tSystem.out.println(password.charAt(5));\r\n\r\n\t\tint lettercount = 0 , digitcount = 0 , specialcount = 0 ; \r\n\r\n\t\tPattern letter = Pattern.compile(\"[a-zA-z]\");\r\n\t\tPattern digit = Pattern.compile(\"[0-9]\");\r\n\t\tPattern special = Pattern.compile (\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\r\n\t\t//Pattern eight = Pattern.compile (\".{8}\");\r\n\r\n\r\n\t\tMatcher hasLetter = letter.matcher(password);\r\n\t\tMatcher hasDigit = digit.matcher(password);\r\n\t\tMatcher hasSpecial = special.matcher(password);\r\n\r\n\r\n\t\tfor (int i = 0 ;password.length()<i ; i++) {\r\n\r\n\t\t\tif(hasLetter.find(password.charAt(i))) {\r\n\r\n\t\t\t\tlettercount++ ;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(lettercount);\r\n\r\n\t\t/*while ( hasLetter.find()) {\r\n\t\t\tlettercount++ ; \r\n\r\n\r\n\r\n\t\t} System.out.println(lettercount);\r\n\r\n\t\twhile (hasDigit.find()) {\r\n\t\t\tdigitcount++ ; \r\n\t\t\tSystem.out.println(hasDigit.group());\r\n\t\t} \r\n\t\tSystem.out.println(digitcount);\r\n\r\n\t\twhile ( hasSpecial.find()) {\r\n\t\t\tSystem.out.println(hasSpecial.group());\r\n\r\n\t\t\tspecialcount++;\r\n\t\t}System.out.println(specialcount);\r\n\t\t */\r\n\r\n\r\n\t}",
"private void validateDigits(List<Integer> digits) throws DigitException {\n int validDigits = 0;\n for (int digit : digits) {\n if (digit % 2 == 0 || digit == 9) {\n validDigits = validDigits + 1;\n }\n }\n if (validDigits == 0) {\n int number = convertToNumber(digits);\n throw new DigitException(\"Invalid number: \" + number + \" that would cause division by 0\");\n }\n }",
"@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}",
"protected long bruteForce(long endingNumber) {\n StringBuffer buffer = new StringBuffer();\n for (int index = 1; index <= endingNumber; ++index) {\n buffer.append(index);\n }\n String digits = buffer.toString();\n int matches = 0, offset = 0;\n while ((offset = digits.indexOf('2', offset)) != -1) {\n matches++;\n offset++;\n }\n return matches;\n }",
"@Test\n public void contactNumber_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.contactNumber( \"91 1234567890\");\n Assert.assertEquals(true,result);\n }",
"private int digitOf(Stack<String> number)\n {\n\tif(number.isEmpty()) return 0;\n\treturn Integer.parseInt(number.pop());\n }",
"public void c() {\n\t\tSystem.out.println(\"\\nTask 9c:\");\n\t\tfor(int i=0; i<this.str.length(); i++) {\n\t\t\tchar temp = this.str.charAt(i);\n\t\t\tif(Character.isDigit(temp)==false) {\n\t\t\t\tSystem.out.println(temp);\n\t\t\t}\n\t\t}\n\t}",
"public int digitOnly(String input) {\n int digit = 0;\n String digitInString= input.replaceAll(\"[^0-9]\", \"\");\n digit = Integer.valueOf(digitInString);\n return digit;\n }",
"public void testGetOnesDigit() {\n\t\tNumberConverter test5 = new NumberConverter(295);\n\t\tNumberConverter test9 = new NumberConverter(109);\n\t\tNumberConverter test11 = new NumberConverter(311);\n\t\tNumberConverter test0 = new NumberConverter(310);\n\t\tNumberConverter test00 = new NumberConverter(2);\n\t\tassertEquals(\"Should have returned last digit\", test5.getNthDigit(1), 5);\n\t\tassertEquals(\"Should have returned last digit\", test9.getNthDigit(1), 9);\n\t\tassertEquals(\"Should have returned last digit\", test11.getNthDigit(1),\n\t\t\t\t1);\n\t\tassertEquals(\"Should have returned last digit\", test0.getNthDigit(1), 0);\n\t\tassertEquals(\"Should have returned last digit\", test00.getNthDigit(1),\n\t\t\t\t2);\n\t}",
"public static boolean hasDigit(String password) throws NoDigitException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[0-9].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoDigitException();\r\n return true;\r\n }",
"public boolean isDigit(String s)\r\n\t\t{\n\t\t\tfor(char c : s.toCharArray())\r\n\t\t\t{\r\n\t\t\t if(!(Character.isDigit(c)))\r\n\t\t\t {\r\n\t\t\t return false;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t//return false;\r\n\t\t\treturn true;\r\n\t\t}",
"private int previousDigit(RuleBasedCollator collator, int ce, char ch)\n {\n // We do a check to see if we want to collate digits as numbers; if so we generate\n // a custom collation key. Otherwise we pull out the value stored in the expansion table.\n if (m_collator_.m_isNumericCollation_){\n int leadingZeroIndex = 0;\n int collateVal = 0;\n boolean nonZeroValReached = false;\n\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a digit\n // Use this u_charDigitValue. This might be slow because we have to \n // handle surrogates...\n int char32 = ch;\n if (UTF16.isTrailSurrogate(ch)) {\n if (!isBackwardsStart()){\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n char32 = UCharacterProperty.getRawSupplementary(lead,\n ch);\n } \n else {\n goForwardOne();\n }\n }\n } \n int digVal = UCharacter.digit(char32);\n int digIndx = 0;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over \"trailing\" zeroes but we still add to digIndx.\n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n }\n \n // We parse the digit string into base 100 numbers (this \n // fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the 'tens' \n // digit while the if we are parsing an even one, that is \n // the 'ones' digit. We dumped the parsed base 100 value \n // (collateVal) into a buffer. We multiply each collateVal \n // by 2 (to give us room) and add 5 (to avoid overlapping \n // magic CE byte values). The last byte we subtract 1 to \n // ensure it is less than all the other bytes. \n // Since we're doing in this reverse we want to put the \n // first digit encountered into the ones place and the \n // second digit encountered into the tens place.\n \n if (digIndx % 2 != 0){\n collateVal += digVal * 10;\n \n // This removes leading zeroes.\n if (collateVal == 0 && leadingZeroIndex == 0) {\n leadingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (leadingZeroIndex != 0) {\n leadingZeroIndex = 0;\n }\n \n m_utilStringBuffer_.setCharAt(((digIndx - 1) >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n collateVal = digVal; \n }\n }\n digIndx ++;\n \n if (!isBackwardsStart()){\n backupInternalState(m_utilSpecialBackUp_);\n char32 = previousChar();\n if (UTF16.isTrailSurrogate(ch)){\n if (!isBackwardsStart()) {\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n char32 \n = UCharacterProperty.getRawSupplementary(\n lead, ch);\n } \n else {\n updateInternalState(m_utilSpecialBackUp_);\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n }\n else {\n break;\n }\n }\n\n if (nonZeroValReached == false) {\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n if (digIndx % 2 != 0) {\n if (collateVal == 0 && leadingZeroIndex == 0) {\n // This removes the leading 0 in a odd number sequence of \n // numbers e.g. avery001\n leadingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else {\n // this is not a leading 0, we add it in\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n digIndx ++; \n } \n }\n \n int endIndex = leadingZeroIndex != 0 ? leadingZeroIndex \n : ((digIndx >>> 1) + 2) ; \n digIndx = ((endIndex - 2) << 1) + 1; // removing initial zeros \n // Subtract one off of the last byte. \n // Really the first byte here, but it's reversed...\n m_utilStringBuffer_.setCharAt(2, \n (char)(m_utilStringBuffer_.charAt(2) - 1)); \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the \n // next largest even value divided by two.\n m_CEBufferSize_ = 0;\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_)\n // Tertiary weight. \n | RuleBasedCollator.BYTE_COMMON_; \n int i = endIndex - 1; // Reset the index into the buffer.\n while (i >= 2) {\n int primWeight = m_utilStringBuffer_.charAt(i --) << 8;\n if (i >= 2) {\n primWeight |= m_utilStringBuffer_.charAt(i --);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n m_CEBufferOffset_ = m_CEBufferSize_ - 1;\n return m_CEBuffer_[m_CEBufferOffset_];\n }\n else {\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }\n }",
"private int nextDigit(RuleBasedCollator collator, int ce, int cp)\n {\n // We do a check to see if we want to collate digits as numbers; \n // if so we generate a custom collation key. Otherwise we pull out \n // the value stored in the expansion table.\n\n if (m_collator_.m_isNumericCollation_){\n int collateVal = 0;\n int trailingZeroIndex = 0;\n boolean nonZeroValReached = false;\n\n // I just need a temporary place to store my generated CEs.\n // icu4c uses a unsigned byte array, i'll use a stringbuffer here\n // to avoid dealing with the sign problems and array allocation\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a \n // digit.\n // Use this u_charDigitValue. This might be slow because we have \n // to handle surrogates...\n int digVal = UCharacter.digit(cp); \n // if we have arrived here, we have already processed possible \n // supplementaries that trigered the digit tag -\n // all supplementaries are marked in the UCA.\n // We pad a zero in front of the first element anyways. \n // This takes care of the (probably) most common case where \n // people are sorting things followed by a single digit\n int digIndx = 1;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over leading zeroes. \n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n } \n // We parse the digit string into base 100 numbers \n // (this fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the \n // 'tens' digit while the if we are parsing an even \n // one, that is the 'ones' digit. We dumped the \n // parsed base 100 value (collateVal) into a buffer. \n // We multiply each collateVal by 2 (to give us room) \n // and add 5 (to avoid overlapping magic CE byte \n // values). The last byte we subtract 1 to ensure it is \n // less than all the other bytes.\n if (digIndx % 2 != 0) {\n collateVal += digVal; \n // This removes trailing zeroes.\n if (collateVal == 0 && trailingZeroIndex == 0) {\n trailingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (trailingZeroIndex != 0) {\n trailingZeroIndex = 0;\n }\n m_utilStringBuffer_.setCharAt(\n ((digIndx - 1) >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n // We drop the collation value into the buffer so if \n // we need to do a \"front patch\" we don't have to \n // check to see if we're hitting the last element.\n collateVal = digVal * 10;\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n }\n digIndx ++;\n }\n \n // Get next character.\n if (!isEnd()){\n backupInternalState(m_utilSpecialBackUp_);\n int char32 = nextChar();\n char ch = (char)char32;\n if (UTF16.isLeadSurrogate(ch)){\n if (!isEnd()) {\n char trail = (char)nextChar();\n if (UTF16.isTrailSurrogate(trail)) {\n char32 = UCharacterProperty.getRawSupplementary(\n ch, trail);\n } \n else {\n goBackOne();\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n // Resetting position to point to the next unprocessed \n // char. We overshot it when doing our test/set for \n // numbers.\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n } \n else {\n break;\n }\n }\n \n if (nonZeroValReached == false){\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n int endIndex = trailingZeroIndex != 0 ? trailingZeroIndex \n : (digIndx >>> 1) + 2; \n if (digIndx % 2 != 0){\n // We missed a value. Since digIndx isn't even, stuck too many \n // values into the buffer (this is what we get for padding the \n // first byte with a zero). \"Front-patch\" now by pushing all \n // nybbles forward.\n // Doing it this way ensures that at least 50% of the time \n // (statistically speaking) we'll only be doing a single pass \n // and optimizes for strings with single digits. I'm just \n // assuming that's the more common case.\n for (int i = 2; i < endIndex; i ++){\n m_utilStringBuffer_.setCharAt(i, \n (char)((((((m_utilStringBuffer_.charAt(i) - 6) >>> 1) \n % 10) * 10) \n + (((m_utilStringBuffer_.charAt(i + 1) - 6) \n >>> 1) / 10) << 1) + 6));\n }\n -- digIndx;\n }\n \n // Subtract one off of the last byte. \n m_utilStringBuffer_.setCharAt(endIndex - 1, \n (char)(m_utilStringBuffer_.charAt(endIndex - 1) - 1)); \n \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the next largest even value divided by two.\n ce = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_) \n | RuleBasedCollator.BYTE_COMMON_; // Tertiary weight.\n int i = 2; // Reset the index into the buffer.\n \n m_CEBuffer_[0] = ce;\n m_CEBufferSize_ = 1;\n m_CEBufferOffset_ = 1;\n while (i < endIndex)\n {\n int primWeight = m_utilStringBuffer_.charAt(i ++) << 8;\n if (i < endIndex) {\n primWeight |= m_utilStringBuffer_.charAt(i ++);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n return ce;\n } \n \n // no numeric mode, we'll just switch to whatever we stashed and \n // continue\n // find the offset to expansion table\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }",
"@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar c = e.getKeyChar();\r\n\t\t\t\tif (!Character.isDigit(c)) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}",
"public boolean validatePass(String pass){\n Pattern pattern;\n Matcher matcher;\n //pattern = Pattern.compile(\"([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)\");\n //pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$\");\n pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)(?!^[a]*$)^([a-zA-Z0-9]{8,45})$\");\n matcher = pattern.matcher(pass);\n return matcher.matches();\n }",
"private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }",
"private static boolean isSingleDigit(int number) {\n\t\treturn number < 10;\n\t}",
"private boolean checkMobileDigit(String mobileNumber) {\n\t\tString patternStr = \"^[0-9]*$\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(mobileNumber);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"public void daffodilNum(int digit) {\n int count = 0;\n for (int i = (int) Math.pow(10, digit-1); i < (int) Math.pow(10, digit); i++) {\n int sum = 0;\n for (int index = 0; index < digit; index++) {\n int curDigit = (i / ((index == 0) ? 1 : ((int) Math.pow(10, index)))) % 10;\n sum += Math.pow(curDigit, 3);\n }\n if (sum == i) {\n System.out.print(i);\n System.out.print(' ');\n count++;\n if (count == 2) {\n System.out.println();\n count = 0;\n }\n }\n }\n }",
"private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"private void processNumber() {\r\n\t\tString number = extractNumber();\r\n\r\n\t\tif ((!number.equals(\"1\")) && (!number.equals(\"0\"))) {\r\n\t\t\tthrow new LexerException(String.format(\"Unexpected number: %s.\", number));\r\n\t\t}\r\n\r\n\t\ttoken = new Token(TokenType.CONSTANT, number.equals(\"1\"));\r\n\t}",
"@Override // kotlin.p2243e.p2244a.AbstractC32522b\n public /* synthetic */ Regex invoke(Integer num) {\n return mo131903a(num.intValue());\n }"
] | [
"0.6684202",
"0.6504488",
"0.6151358",
"0.60652417",
"0.60597587",
"0.6034636",
"0.60109776",
"0.5900952",
"0.5892191",
"0.58766997",
"0.5841467",
"0.57977366",
"0.57908225",
"0.5761418",
"0.5721138",
"0.57054937",
"0.5704213",
"0.5697427",
"0.5662022",
"0.56515455",
"0.56506616",
"0.5620419",
"0.5589147",
"0.557515",
"0.55651844",
"0.5547516",
"0.5538719",
"0.5536362",
"0.5530271",
"0.5522467",
"0.5518292",
"0.5479561",
"0.5460471",
"0.53913087",
"0.5378854",
"0.5371391",
"0.53551453",
"0.53529936",
"0.53445727",
"0.5339685",
"0.53316706",
"0.5322755",
"0.53149825",
"0.53122294",
"0.53096414",
"0.5305568",
"0.5299739",
"0.5287281",
"0.528298",
"0.5272035",
"0.5266027",
"0.5263256",
"0.5261435",
"0.52609986",
"0.5250727",
"0.52505517",
"0.5244371",
"0.5241193",
"0.5240796",
"0.5226865",
"0.52263594",
"0.5219265",
"0.5210733",
"0.5207366",
"0.52005684",
"0.519788",
"0.51915205",
"0.51900965",
"0.5180051",
"0.5170812",
"0.51668",
"0.5166603",
"0.516336",
"0.5159583",
"0.51405555",
"0.5137216",
"0.51008",
"0.5098883",
"0.5097221",
"0.50916886",
"0.50839734",
"0.50777495",
"0.5073182",
"0.50729614",
"0.5071895",
"0.50703406",
"0.5067216",
"0.506428",
"0.5052132",
"0.5050554",
"0.5050125",
"0.5045485",
"0.5039333",
"0.50357646",
"0.5034302",
"0.5023887",
"0.50238055",
"0.50230163",
"0.50026596",
"0.50017416"
] | 0.5704287 | 16 |
deal with the digit.And check the lookahead if its digit. | void match(int t) throws IOException {
if (lookahead == t) {
lookahead = System.in.read();
input = input + (char)lookahead;
} else {
throw new Error("syntax error");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}",
"Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }",
"public boolean checkNumberContinuation(String password) {\n for (int i = 0; i < password.length(); i++) {\n if (String.valueOf(password.charAt(i)).matches(\"[0-9]\")) { //next time: Character.isDigit(passtword.charAt(i))\n if ((password.charAt(i) + 1 == password.charAt(i + 1))\n && (password.charAt(i) + 2 == password.charAt(i + 2))) {\n return false;\n }\n }\n }\n return true;\n }",
"public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }",
"private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}",
"private boolean isDigit(char ch) {\n if ( (ch >= '0') && (ch <= '9')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }",
"@Test\n public void shouldMatchDigits(){\n Assert.assertThat(\"match all digits\",CharMatcher.DIGIT.matchesAllOf(\"1234434\"),is(true));\n Assert.assertThat(\"match any digits \",CharMatcher.DIGIT.matchesAnyOf(\"123TTT4\"),is(true));\n }",
"public boolean checkDigits(String password) {\n return password.matches(\".*\\\\d.*\");\n }",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}",
"private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }",
"@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }",
"public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }",
"public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }",
"void term() throws IOException {\n\t\tif (Character.isDigit((char)lookahead)) {\n\t\t\tif(errorNum == 0) {\n\t\t\t\toutput = output + (char)lookahead;\n\t\t\t}\n\t\t\tif(wrongState == false) \n\t\t\t\terrorPos = errorPos+(char)' ';\n\t\t\telse \n\t\t\t\twrongState = false;\n\t\t\tmatch(lookahead);\n\t\t} else if(lookahead == '+' || lookahead == '-') {\n\t\t\terrorNum++;\n\t\t\terrorPos = errorPos + (char)'^';\n\t\t\terrorList.add(\"Miss a digit!!\");\n\t\t\twrongState = true;\n\t\t} else {\n\t\t\tif(wrongState == false) {\n\t\t\t\terrorNum++;\n\t\t\t\terrorPos = errorPos + (char)'^';\n\t\t\t\terrorList.add(\"No this digit!!\");\n\t\t\t\tmatch(lookahead);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"void overflowDigits() {\n for (int i = 0; i < preDigits.length(); i++) {\n char digit = preDigits.charAt(i);\n // This could be implemented with a modulo, but compared to the main\n // loop this code is too quick to measure.\n if (digit == '9') {\n preDigits.setCharAt(i, '0');\n } else {\n preDigits.setCharAt(i, (char)(digit + 1));\n }\n }\n }",
"private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }",
"static boolean checkNumber(int number) {\r\n\t\t\r\n\t\tint lastDigit= number%10;\r\n\t\tnumber/=10;\r\n\t\tboolean flag= false;\r\n\t\t\r\n\t\twhile(number>0) {\r\n\t\t\tif(lastDigit<=number%10) {\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tlastDigit= number%10;\r\n\t\t\tnumber/=10;\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(flag) \r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }",
"private static int digit(int b) {\n\t\tif (b >= '0' && b <= '9') return b - '0';\n\t\tthrow exceptionf(\"Not a digit: '%s'\" + escape((char) b));\n\t}",
"public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }",
"private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }",
"public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}",
"public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }",
"public void testDIGITS3() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 240, \"1234567890\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }",
"public void testDIGITS1() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 238, \"1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"private boolean isAlphaNumeric(char toCheck) {\n return isAlpha(toCheck) || isDigit(toCheck);\n }",
"private int extractDigits(String courseCode) {\n CharMatcher matcher = CharMatcher.javaLetter();\n String digitOnly = matcher.removeFrom(courseCode);\n int digits = Integer.parseInt(digitOnly);\n return digits;\n }",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}",
"private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }",
"static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }",
"private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }",
"static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}",
"@Test\n\tpublic void checkNumbersFollowedByExclamationMark() {\n\t\tString input = \"Five six SEVEN eiGHt!!\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"5 6 7 8!!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"public static boolean checkUnlucky(int num) {\n\t\twhile (num != 0) {\n\t\t\tif (num == 13) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\tnum = num / 10;\n\t\t}\n\t\treturn false;\n\t}",
"public void testDIGITS5() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 242, \"\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public static int funky(int a, int digit) {\n int count = 0;// always zero right here\n\n // Point A\n while (a != 0) {\n \n // Point B\n\n if (a % 10 == digit) { \n count++;\n // Point C\n } else if (count > 0) { // only decrements when count > 0 \n count--;\n // Point D\n }\n a = a / 10;\n }\n\n // Point E : may or may not have gone into loop\n return count;\n}",
"private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}",
"public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return true;\n\n pos++;\n }\n\n return false;\n }",
"private Token scanNumber(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(firstChar.getCharacter());\n\t\tappendSubsequentDigits(buffer);\n\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\tLocatedChar c = input.next();\n\t\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\t\tinput.pushback(c);\n\t\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\tbuffer.append(c.getCharacter());\n\t\t\tif(input.peek().isDigit()) {\n\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\tif(input.peek().getCharacter() == CAPITAL_E) {\n\t\t\t\t\tLocatedChar expChar = input.next();\n\t\t\t\t\tbuffer.append(expChar.getCharacter());\n\t\t\t\t\tif(input.peek().getCharacter() == '+' || input.peek().getCharacter() == '-') {\n\t\t\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\t\t}\n\t\t\t\t\tif(input.peek().isDigit()) {\n\t\t\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlexicalError(expChar, \"malformed floating exponent literal\");\n\t\t\t\t\t\treturn findNextToken();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\treturn FloatToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed floating literal\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t}\n\t}",
"private static boolean isDigitFollowing(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (Character.isDigit(c)) {\n return true;\n }\n return false;\n }\n return false;\n }",
"public boolean checkConNum(String temp) {\n boolean counter = true;\n char[] ch = new char[temp.length()];\n \n for (int i = 0; i < temp.length(); i++) {\n ch[i] = temp.charAt(i);\n }\n \n for(int g = 0 ;g < ch.length; g++){\n \tif(!Character.isDigit(ch[g])){\n counter = false;\n break;\n \t}\n }\n \n return counter;\n \n }",
"static int checkdigit(String num1, String num2)\n {\n for (int i=0;i<num1.length();i++)\n {\n char c1=num1.charAt(i);\n if((num1.substring(0,i).indexOf(c1))!=-1)//To check if a digit repeats itself in the substring \n continue;\n if(num2.indexOf(c1)==-1)//To check the presence of the digit in the factors\n return 0;\n \n int f1=0;int f2 =0;\n \n for(int k=0;k<num1.length();k++)//To find how many times c1 occurs in num1\n {\n if(c1==num1.charAt(k))\n f1=f1+1;\n }\n for(int p=0;p<num2.length();p++)//To find how many times c1 occurs in num2\n {\n if(c1==num2.charAt(p))\n f2=f2+1;\n }\n if(f1!=f2)//If c1 occurs the same number of times in num1 and num2\n {\n return 0;\n }\n \n }\n return 1;\n \n }",
"private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }",
"private boolean containsDigit(String expr) {\r\n for (int i = 0; i < expr.length(); i++) {\r\n if (Character.isDigit(expr.charAt(i))) {\r\n return true;\r\n }\r\n }\r\n \r\n return false;\r\n }",
"public String digit(String digit);",
"public void testDIGITS6() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 243, \"one\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public boolean Digito(){\n return ((byte)this.caracter>=48 && (byte)this.caracter<=57);\n }",
"public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }",
"public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }",
"public static Boolean Digit(String arg){\n\t\tif(arg.length() == 1 && Is.Int(arg)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean letter_digit_check(String pass){\n\t\tint sum=0;\n\t\tint count=0;\n\t\tfor (int i=0; i<pass.length(); i++){\n\t\t\tif (Character.isDigit(pass.charAt(i))){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\telse if(Character.isLetter(pass.charAt(i))){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (sum>=2 && count>=2)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}",
"public static String verifyEmpNum(Scanner input, String tempNumber){\n \n //String used for regex verification of Employee number\n String theRegex = \"[0-9][0-9][0-9][-][A-Ma-m]\";\n \n //While tempNumber does not match theRegex\n while(!tempNumber.matches(theRegex)){\n System.out.print(\"The Employee Number you entered was invalid.\\nThe Employee Number must match XXX-L including the dash \"\n + \"where X is a digit and L is a letter A-M: \");\n tempNumber = input.nextLine();\n }\n return tempNumber;\n }",
"public void processLastDigit()\r\n\t{\r\n\t int lastDigit = currentNumber % 10;\r\n\t lastDigitCounters[lastDigit]++;\r\n\t}",
"@Override\r\n public void keyTyped(KeyEvent e) {\r\n char input = e.getKeyChar();\r\n //checking input!='\\b' prevents hitting backspace to enter the condition\r\n //cheking input!='\\n' prevents hitting enter to enter the condition\r\n if (((input < '0' || input > '9') && (input != ' ')) && (input != '\\b') && (input != '\\n')) {\r\n e.consume();\r\n JOptionPane.showMessageDialog(null, \"Invalid input. Type number\");\r\n } else if (input >= '0' && input <= '9') {//if valid input but not whitespace\r\n\r\n counter++;//if valid number input, counter increases by 1\r\n spaceCounter = 0;//number typed and make spaceCounter again zero\r\n tester = input;\r\n if (counter >= 4) {\r\n\r\n e.consume();\r\n counter--;//so as last keytyped won't count\r\n JOptionPane.showMessageDialog(null, \"Type Space to proceed\");\r\n\r\n }\r\n } else if (input == '\\b') {\r\n\r\n if (tester == ' ') {//if user erased whitespace\r\n\r\n if (textField.getText().length() > 0) {\r\n tester = textField.getText().charAt(textField.getText().length() - 1);//tester takes the value of the last char after hitting backspace\r\n // System.out.println(\"TESTER IS:\" + tester);\r\n\r\n int i = textField.getText().length() - 1;\r\n int numberOfChars = 0;\r\n while (i >= 0) {\r\n if (textField.getText().charAt(i) != ' ') {//count backwards the number of digits until reach whitespace\r\n i--;\r\n numberOfChars++;\r\n } else {\r\n break;\r\n }\r\n\r\n }\r\n counter = numberOfChars;\r\n // System.out.println(\"NUMBER OF DIGITS AFTER REMOVING SPACE:\" + counter);\r\n spaceCounter = 0;\r\n // System.out.println(\"NUMBER OF SPACES AFTER REMOVING SPACE:\" + spaceCounter);\r\n } else {\r\n counter = 0;\r\n spaceCounter = 0;\r\n }\r\n\r\n } else if (tester >= '0' && tester <= '9') {//if user erased digit\r\n\r\n if (textField.getText().length() > 0) {//if textField is not empty\r\n tester = textField.getText().charAt(textField.getText().length() - 1);//tester takes the value of the last char after hitting backspace\r\n // System.out.println(\"TESTER IS:\" + tester);\r\n\r\n int i = textField.getText().length() - 1;\r\n int numberOfChars = 0;\r\n while (i >= 0) {\r\n if (textField.getText().charAt(i) != ' ') {//count backwards the number of digits until reach whitespace\r\n i--;\r\n numberOfChars++;\r\n } else {\r\n break;\r\n }\r\n\r\n }\r\n counter = numberOfChars;\r\n // System.out.println(\"NUMBER OF DIGITS:\" + counter);\r\n } else {\r\n counter = 0;//counter becomes 0 if there are no characters in the textfield\r\n }\r\n\r\n }\r\n } else { //user typed whitespace\r\n spaceCounter++;//spaceCounter increases by one\r\n tester = input;\r\n if (spaceCounter >= 2) {\r\n e.consume();\r\n spaceCounter--;//so that last keytyped wont count\r\n JOptionPane.showMessageDialog(null, \"You have already typed space\");\r\n } \r\n\r\n counter = 0;//space typed counter is made zero again\r\n }\r\n\r\n }",
"@Test\r\n\tpublic void testIsValidPasswordNoDigit()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"GreenLeaves\"));\r\n\t\t}\r\n\t\tcatch(NoDigitException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoDigitExcepetion\",true);\r\n\t\t}\r\n\t}",
"@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }",
"@Test\n public void testAnyDigitSequences() {\n assertThat(regex(seq(e(\"0\"), e(\"1\"), X))).isEqualTo(\"01\\\\d\");\n // \"\\d\\d\" is shorter than \"\\d{2}\"\n assertThat(regex(seq(X, X))).isEqualTo(\"\\\\d\\\\d\");\n assertThat(regex(seq(X, X, X))).isEqualTo(\"\\\\d{3}\");\n // Top level optional groups are supported.\n assertThat(regex(opt(seq(X, X)))).isEqualTo(\"(?:\\\\d{2})?\");\n // Optional parts go at the end.\n assertThat(regex(\n seq(\n opt(seq(X, X)),\n X, X)))\n .isEqualTo(\"\\\\d\\\\d(?:\\\\d{2})?\");\n // \"(x(x(x)?)?)?\"\n Edge anyGrp = opt(seq(\n X,\n opt(seq(\n X,\n opt(X)))));\n // The two cases of a group on its own or as part of a sequence are handled separately, so\n // must be tested separately.\n assertThat(regex(anyGrp)).isEqualTo(\"\\\\d{0,3}\");\n assertThat(regex(seq(e(\"1\"), e(\"2\"), anyGrp))).isEqualTo(\"12\\\\d{0,3}\");\n // xx(x(x(x)?)?)?\"\n assertThat(regex(seq(X, X, anyGrp))).isEqualTo(\"\\\\d{2,5}\");\n // Combining \"any digit\" groups produces minimal representation\n assertThat(regex(seq(anyGrp, anyGrp))).isEqualTo(\"\\\\d{0,6}\");\n }",
"@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}",
"private boolean checkSoThang(String soThang){\n String pattern = \"\\\\d+\"; \n return soThang.matches(pattern);\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"@Test\n\tpublic void castNumbersFollowedByMultipleDifferentNonAlphapeticalCharacters() {\n\t\tString input = \"I have one~!@##$%^^&*( new test\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 1~!@##$%^^&*( new test\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"@Test\n public void shouldReturnLastIndexOfFirstWhitespace(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT\n .lastIndexIn(\"123TT T4\"),is(7));\n }",
"private void processPossibleNumber(String data, int position) {\n\n Token t = tokens.get(currentTokenPointer);\n\n try {\n\n char possiblePlus = data.charAt(position);\n\n Integer value = null;\n\n if (possiblePlus == '+') {\n\n String number = data.substring(position + 1);\n\n if (number.length() > 0 && number.charAt(0) == '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position + 1));\n\n } else {\n\n if (possiblePlus != '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position));\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"unable to determine the numeric modifier for macro. Macro was '\" + data + \"' at position \" + t.start, t.start);\n\n }\n\n }",
"public boolean checkDel (TextView tv){\n String s = expressionView.getText().toString();\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n return true;\n }\n }\n return false;\n }",
"public static void alldigitscheck(int x, int l) {\n do {\n int y = x % 10;\n digits[y] = digits[y] + l;\n x = x / 10;\n } while (x != 0);\n }",
"private String compactNumbers(String inWord)\n {\n StringBuffer rtn = new StringBuffer().append(\"^\");\n boolean last_digit = false;\n\n for(int i = 0; i < inWord.length(); i++)\n {\n char ch = inWord.charAt(i);\n if(Character.isDigit(ch))\n {\n if(!last_digit)\n {\n last_digit = true;\n rtn.append('1');\n } // fi\n } // fi\n\n else\n {\n last_digit = false;\n rtn.append(ch);\n } // else\n } // for\n \n rtn.append(\"_\");\n\n return(rtn.toString());\n }",
"public boolean check3sameNumbersMax(String password) {\n for (int i = 0; i < password.length() - 3; i++) {\n if (String.valueOf(password.charAt(i)).matches(\"\\\\d\")) { //next time: Character.isDigit(passtword.charAt(i))\n for (int j = i; j < i+3; j++) {\n if (password.charAt(j) != password.charAt(j + 1)) {\n break;\n } else if (j-i == 2) {\n return false;\n }\n }\n }\n }\n return true;\n }",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"public boolean isContainNumericalDigits(String password) {\n\t\treturn password.matches(\".*[0-9].*\");\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString password = \"$$ Welcome to 1st Automation Interview $$\" ;\r\n\t\t\r\n\t\tSystem.out.println(password.charAt(5));\r\n\r\n\t\tint lettercount = 0 , digitcount = 0 , specialcount = 0 ; \r\n\r\n\t\tPattern letter = Pattern.compile(\"[a-zA-z]\");\r\n\t\tPattern digit = Pattern.compile(\"[0-9]\");\r\n\t\tPattern special = Pattern.compile (\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\r\n\t\t//Pattern eight = Pattern.compile (\".{8}\");\r\n\r\n\r\n\t\tMatcher hasLetter = letter.matcher(password);\r\n\t\tMatcher hasDigit = digit.matcher(password);\r\n\t\tMatcher hasSpecial = special.matcher(password);\r\n\r\n\r\n\t\tfor (int i = 0 ;password.length()<i ; i++) {\r\n\r\n\t\t\tif(hasLetter.find(password.charAt(i))) {\r\n\r\n\t\t\t\tlettercount++ ;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(lettercount);\r\n\r\n\t\t/*while ( hasLetter.find()) {\r\n\t\t\tlettercount++ ; \r\n\r\n\r\n\r\n\t\t} System.out.println(lettercount);\r\n\r\n\t\twhile (hasDigit.find()) {\r\n\t\t\tdigitcount++ ; \r\n\t\t\tSystem.out.println(hasDigit.group());\r\n\t\t} \r\n\t\tSystem.out.println(digitcount);\r\n\r\n\t\twhile ( hasSpecial.find()) {\r\n\t\t\tSystem.out.println(hasSpecial.group());\r\n\r\n\t\t\tspecialcount++;\r\n\t\t}System.out.println(specialcount);\r\n\t\t */\r\n\r\n\r\n\t}",
"private void validateDigits(List<Integer> digits) throws DigitException {\n int validDigits = 0;\n for (int digit : digits) {\n if (digit % 2 == 0 || digit == 9) {\n validDigits = validDigits + 1;\n }\n }\n if (validDigits == 0) {\n int number = convertToNumber(digits);\n throw new DigitException(\"Invalid number: \" + number + \" that would cause division by 0\");\n }\n }",
"@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}",
"protected long bruteForce(long endingNumber) {\n StringBuffer buffer = new StringBuffer();\n for (int index = 1; index <= endingNumber; ++index) {\n buffer.append(index);\n }\n String digits = buffer.toString();\n int matches = 0, offset = 0;\n while ((offset = digits.indexOf('2', offset)) != -1) {\n matches++;\n offset++;\n }\n return matches;\n }",
"@Test\n public void contactNumber_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.contactNumber( \"91 1234567890\");\n Assert.assertEquals(true,result);\n }",
"private int digitOf(Stack<String> number)\n {\n\tif(number.isEmpty()) return 0;\n\treturn Integer.parseInt(number.pop());\n }",
"public void c() {\n\t\tSystem.out.println(\"\\nTask 9c:\");\n\t\tfor(int i=0; i<this.str.length(); i++) {\n\t\t\tchar temp = this.str.charAt(i);\n\t\t\tif(Character.isDigit(temp)==false) {\n\t\t\t\tSystem.out.println(temp);\n\t\t\t}\n\t\t}\n\t}",
"public int digitOnly(String input) {\n int digit = 0;\n String digitInString= input.replaceAll(\"[^0-9]\", \"\");\n digit = Integer.valueOf(digitInString);\n return digit;\n }",
"public void testGetOnesDigit() {\n\t\tNumberConverter test5 = new NumberConverter(295);\n\t\tNumberConverter test9 = new NumberConverter(109);\n\t\tNumberConverter test11 = new NumberConverter(311);\n\t\tNumberConverter test0 = new NumberConverter(310);\n\t\tNumberConverter test00 = new NumberConverter(2);\n\t\tassertEquals(\"Should have returned last digit\", test5.getNthDigit(1), 5);\n\t\tassertEquals(\"Should have returned last digit\", test9.getNthDigit(1), 9);\n\t\tassertEquals(\"Should have returned last digit\", test11.getNthDigit(1),\n\t\t\t\t1);\n\t\tassertEquals(\"Should have returned last digit\", test0.getNthDigit(1), 0);\n\t\tassertEquals(\"Should have returned last digit\", test00.getNthDigit(1),\n\t\t\t\t2);\n\t}",
"public static boolean hasDigit(String password) throws NoDigitException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[0-9].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoDigitException();\r\n return true;\r\n }",
"public boolean isDigit(String s)\r\n\t\t{\n\t\t\tfor(char c : s.toCharArray())\r\n\t\t\t{\r\n\t\t\t if(!(Character.isDigit(c)))\r\n\t\t\t {\r\n\t\t\t return false;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t//return false;\r\n\t\t\treturn true;\r\n\t\t}",
"private int previousDigit(RuleBasedCollator collator, int ce, char ch)\n {\n // We do a check to see if we want to collate digits as numbers; if so we generate\n // a custom collation key. Otherwise we pull out the value stored in the expansion table.\n if (m_collator_.m_isNumericCollation_){\n int leadingZeroIndex = 0;\n int collateVal = 0;\n boolean nonZeroValReached = false;\n\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a digit\n // Use this u_charDigitValue. This might be slow because we have to \n // handle surrogates...\n int char32 = ch;\n if (UTF16.isTrailSurrogate(ch)) {\n if (!isBackwardsStart()){\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n char32 = UCharacterProperty.getRawSupplementary(lead,\n ch);\n } \n else {\n goForwardOne();\n }\n }\n } \n int digVal = UCharacter.digit(char32);\n int digIndx = 0;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over \"trailing\" zeroes but we still add to digIndx.\n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n }\n \n // We parse the digit string into base 100 numbers (this \n // fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the 'tens' \n // digit while the if we are parsing an even one, that is \n // the 'ones' digit. We dumped the parsed base 100 value \n // (collateVal) into a buffer. We multiply each collateVal \n // by 2 (to give us room) and add 5 (to avoid overlapping \n // magic CE byte values). The last byte we subtract 1 to \n // ensure it is less than all the other bytes. \n // Since we're doing in this reverse we want to put the \n // first digit encountered into the ones place and the \n // second digit encountered into the tens place.\n \n if (digIndx % 2 != 0){\n collateVal += digVal * 10;\n \n // This removes leading zeroes.\n if (collateVal == 0 && leadingZeroIndex == 0) {\n leadingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (leadingZeroIndex != 0) {\n leadingZeroIndex = 0;\n }\n \n m_utilStringBuffer_.setCharAt(((digIndx - 1) >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n collateVal = digVal; \n }\n }\n digIndx ++;\n \n if (!isBackwardsStart()){\n backupInternalState(m_utilSpecialBackUp_);\n char32 = previousChar();\n if (UTF16.isTrailSurrogate(ch)){\n if (!isBackwardsStart()) {\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n char32 \n = UCharacterProperty.getRawSupplementary(\n lead, ch);\n } \n else {\n updateInternalState(m_utilSpecialBackUp_);\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n }\n else {\n break;\n }\n }\n\n if (nonZeroValReached == false) {\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n if (digIndx % 2 != 0) {\n if (collateVal == 0 && leadingZeroIndex == 0) {\n // This removes the leading 0 in a odd number sequence of \n // numbers e.g. avery001\n leadingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else {\n // this is not a leading 0, we add it in\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n digIndx ++; \n } \n }\n \n int endIndex = leadingZeroIndex != 0 ? leadingZeroIndex \n : ((digIndx >>> 1) + 2) ; \n digIndx = ((endIndex - 2) << 1) + 1; // removing initial zeros \n // Subtract one off of the last byte. \n // Really the first byte here, but it's reversed...\n m_utilStringBuffer_.setCharAt(2, \n (char)(m_utilStringBuffer_.charAt(2) - 1)); \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the \n // next largest even value divided by two.\n m_CEBufferSize_ = 0;\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_)\n // Tertiary weight. \n | RuleBasedCollator.BYTE_COMMON_; \n int i = endIndex - 1; // Reset the index into the buffer.\n while (i >= 2) {\n int primWeight = m_utilStringBuffer_.charAt(i --) << 8;\n if (i >= 2) {\n primWeight |= m_utilStringBuffer_.charAt(i --);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n m_CEBufferOffset_ = m_CEBufferSize_ - 1;\n return m_CEBuffer_[m_CEBufferOffset_];\n }\n else {\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }\n }",
"private int nextDigit(RuleBasedCollator collator, int ce, int cp)\n {\n // We do a check to see if we want to collate digits as numbers; \n // if so we generate a custom collation key. Otherwise we pull out \n // the value stored in the expansion table.\n\n if (m_collator_.m_isNumericCollation_){\n int collateVal = 0;\n int trailingZeroIndex = 0;\n boolean nonZeroValReached = false;\n\n // I just need a temporary place to store my generated CEs.\n // icu4c uses a unsigned byte array, i'll use a stringbuffer here\n // to avoid dealing with the sign problems and array allocation\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a \n // digit.\n // Use this u_charDigitValue. This might be slow because we have \n // to handle surrogates...\n int digVal = UCharacter.digit(cp); \n // if we have arrived here, we have already processed possible \n // supplementaries that trigered the digit tag -\n // all supplementaries are marked in the UCA.\n // We pad a zero in front of the first element anyways. \n // This takes care of the (probably) most common case where \n // people are sorting things followed by a single digit\n int digIndx = 1;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over leading zeroes. \n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n } \n // We parse the digit string into base 100 numbers \n // (this fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the \n // 'tens' digit while the if we are parsing an even \n // one, that is the 'ones' digit. We dumped the \n // parsed base 100 value (collateVal) into a buffer. \n // We multiply each collateVal by 2 (to give us room) \n // and add 5 (to avoid overlapping magic CE byte \n // values). The last byte we subtract 1 to ensure it is \n // less than all the other bytes.\n if (digIndx % 2 != 0) {\n collateVal += digVal; \n // This removes trailing zeroes.\n if (collateVal == 0 && trailingZeroIndex == 0) {\n trailingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (trailingZeroIndex != 0) {\n trailingZeroIndex = 0;\n }\n m_utilStringBuffer_.setCharAt(\n ((digIndx - 1) >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n // We drop the collation value into the buffer so if \n // we need to do a \"front patch\" we don't have to \n // check to see if we're hitting the last element.\n collateVal = digVal * 10;\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n }\n digIndx ++;\n }\n \n // Get next character.\n if (!isEnd()){\n backupInternalState(m_utilSpecialBackUp_);\n int char32 = nextChar();\n char ch = (char)char32;\n if (UTF16.isLeadSurrogate(ch)){\n if (!isEnd()) {\n char trail = (char)nextChar();\n if (UTF16.isTrailSurrogate(trail)) {\n char32 = UCharacterProperty.getRawSupplementary(\n ch, trail);\n } \n else {\n goBackOne();\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n // Resetting position to point to the next unprocessed \n // char. We overshot it when doing our test/set for \n // numbers.\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n } \n else {\n break;\n }\n }\n \n if (nonZeroValReached == false){\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n int endIndex = trailingZeroIndex != 0 ? trailingZeroIndex \n : (digIndx >>> 1) + 2; \n if (digIndx % 2 != 0){\n // We missed a value. Since digIndx isn't even, stuck too many \n // values into the buffer (this is what we get for padding the \n // first byte with a zero). \"Front-patch\" now by pushing all \n // nybbles forward.\n // Doing it this way ensures that at least 50% of the time \n // (statistically speaking) we'll only be doing a single pass \n // and optimizes for strings with single digits. I'm just \n // assuming that's the more common case.\n for (int i = 2; i < endIndex; i ++){\n m_utilStringBuffer_.setCharAt(i, \n (char)((((((m_utilStringBuffer_.charAt(i) - 6) >>> 1) \n % 10) * 10) \n + (((m_utilStringBuffer_.charAt(i + 1) - 6) \n >>> 1) / 10) << 1) + 6));\n }\n -- digIndx;\n }\n \n // Subtract one off of the last byte. \n m_utilStringBuffer_.setCharAt(endIndex - 1, \n (char)(m_utilStringBuffer_.charAt(endIndex - 1) - 1)); \n \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the next largest even value divided by two.\n ce = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_) \n | RuleBasedCollator.BYTE_COMMON_; // Tertiary weight.\n int i = 2; // Reset the index into the buffer.\n \n m_CEBuffer_[0] = ce;\n m_CEBufferSize_ = 1;\n m_CEBufferOffset_ = 1;\n while (i < endIndex)\n {\n int primWeight = m_utilStringBuffer_.charAt(i ++) << 8;\n if (i < endIndex) {\n primWeight |= m_utilStringBuffer_.charAt(i ++);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n return ce;\n } \n \n // no numeric mode, we'll just switch to whatever we stashed and \n // continue\n // find the offset to expansion table\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }",
"@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tchar c = e.getKeyChar();\r\n\t\t\t\tif (!Character.isDigit(c)) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}",
"public boolean validatePass(String pass){\n Pattern pattern;\n Matcher matcher;\n //pattern = Pattern.compile(\"([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)\");\n //pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$\");\n pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)(?!^[a]*$)^([a-zA-Z0-9]{8,45})$\");\n matcher = pattern.matcher(pass);\n return matcher.matches();\n }",
"private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }",
"private static boolean isSingleDigit(int number) {\n\t\treturn number < 10;\n\t}",
"private boolean checkMobileDigit(String mobileNumber) {\n\t\tString patternStr = \"^[0-9]*$\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(mobileNumber);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"public void daffodilNum(int digit) {\n int count = 0;\n for (int i = (int) Math.pow(10, digit-1); i < (int) Math.pow(10, digit); i++) {\n int sum = 0;\n for (int index = 0; index < digit; index++) {\n int curDigit = (i / ((index == 0) ? 1 : ((int) Math.pow(10, index)))) % 10;\n sum += Math.pow(curDigit, 3);\n }\n if (sum == i) {\n System.out.print(i);\n System.out.print(' ');\n count++;\n if (count == 2) {\n System.out.println();\n count = 0;\n }\n }\n }\n }",
"private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"private void processNumber() {\r\n\t\tString number = extractNumber();\r\n\r\n\t\tif ((!number.equals(\"1\")) && (!number.equals(\"0\"))) {\r\n\t\t\tthrow new LexerException(String.format(\"Unexpected number: %s.\", number));\r\n\t\t}\r\n\r\n\t\ttoken = new Token(TokenType.CONSTANT, number.equals(\"1\"));\r\n\t}",
"@Override // kotlin.p2243e.p2244a.AbstractC32522b\n public /* synthetic */ Regex invoke(Integer num) {\n return mo131903a(num.intValue());\n }"
] | [
"0.6684222",
"0.65041286",
"0.6149705",
"0.60649353",
"0.6061188",
"0.6034744",
"0.6011104",
"0.5900415",
"0.58924115",
"0.5876622",
"0.58406",
"0.5797818",
"0.5790562",
"0.5762056",
"0.57207274",
"0.57064486",
"0.57042426",
"0.5703473",
"0.5696916",
"0.5661738",
"0.56517756",
"0.56507933",
"0.56195563",
"0.558992",
"0.5573266",
"0.55650145",
"0.55472475",
"0.5538846",
"0.5536665",
"0.5530104",
"0.5521623",
"0.55183405",
"0.54787296",
"0.54601717",
"0.53919125",
"0.53779197",
"0.53713673",
"0.5355394",
"0.53531176",
"0.53442824",
"0.5339497",
"0.5331348",
"0.53213626",
"0.5315347",
"0.53123015",
"0.5308936",
"0.53057575",
"0.5301906",
"0.52860355",
"0.52837485",
"0.52719903",
"0.5265991",
"0.5263943",
"0.5260476",
"0.5259975",
"0.52505434",
"0.52494967",
"0.5243403",
"0.5241983",
"0.5240238",
"0.5228006",
"0.52269286",
"0.52175546",
"0.5211037",
"0.5207395",
"0.52003115",
"0.5198275",
"0.5191466",
"0.5189088",
"0.5178611",
"0.5169359",
"0.51679826",
"0.5165113",
"0.5162571",
"0.5159222",
"0.5141016",
"0.5138766",
"0.5100236",
"0.5098802",
"0.509742",
"0.5091249",
"0.508421",
"0.5077605",
"0.5072734",
"0.507123",
"0.50704134",
"0.50696516",
"0.50655407",
"0.5064446",
"0.50516665",
"0.5050269",
"0.5049085",
"0.5044653",
"0.5040827",
"0.5035174",
"0.50337386",
"0.5023874",
"0.50229883",
"0.5022755",
"0.5000866",
"0.49993956"
] | 0.0 | -1 |
printf the output if no Syntax ERROR. But printf the error if there are errors. | void printPostfix() {
System.out.println(output+"\n");
for(int i = 0; i < errorNum; i++) {
System.out.println("\nThere is an error:\"" + errorList.get(i) + "\" at:");
System.out.println(input);
int n = i;
for(int j = 0; j < errorPos.length(); j++) {
if(errorPos.charAt(j) != '^') {
System.out.write(errorPos.charAt(j));
} else {
if(n == 0) {
System.out.write(errorPos.charAt(j));
break;
} else {
System.out.write(' ');
n--;
}
}
}
System.out.println("\n");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printErrors() {\r\n\t\tif (this.syntaxError) {\r\n\t\t\tSystem.err.println(\"\\nErrors found running the parser:\");\r\n\t\t\tfor (String error : errors) {\r\n\t\t\t\tSystem.err.println(\"\\t => \" + error);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }",
"public void printErrorParse() {\n\t\tSystem.out.println(ConsoleColors.RED + \"Invalid option. Please re-enter a valid option.\" + ConsoleColors.RESET);\n\t\t\n\t}",
"private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }",
"public final void printOut() {\n\t\tUtilities.outputString(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tUtilities.outputString(THESTRINGS[i]);\n\t\t}\n\t}",
"public void printError(SourcePosition arg0, String arg1) {\n\n }",
"void printError(String errorMsg, boolean displayHelp);",
"public void printErrors() {\n final int size = _errors.size();\n if (size > 0) {\n System.err.println(new ErrorMsg(ErrorMsg.COMPILER_ERROR_KEY));\n for (int i = 0; i < size; i++) {\n System.err.println(\" \" + _errors.get(i));\n }\n }\n }",
"protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}",
"public void printError(String arg0) {\n\n }",
"private static void printUsage(String error, CmdLineParser parser) {\n\tSystem.out.println(error);\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }",
"public void printErrToken(){\r\n System.err.println(\"Invalid token at line: \" + lineNum + \" , column \" + colNum);\r\n }",
"private final void prtlnErr(String s) {\n\n\t\tSystem.err.println(getDateStamp() + \" \" + s);\n\n\t}",
"private static void printUsageExitError(){\n\t\tSystem.out.println(usage);\n\t\tSystem.exit(1);\n\t}",
"private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }",
"private void printErrorMsg(String line) {\n\t\tString msg = StringUtils.substringBetween(line, \"<svrl:text>\", \"</svrl:text>\");\n\t\tSystem.out.println(msg);\n\t}",
"public static String checkStringFormat(String str, String error, String format) {\r\n while (true) {\r\n System.out.print(str);\r\n inputValue = sc.nextLine().trim();//trim to let input only string (After blankspace doesn't count)\r\n if (inputValue.isEmpty() || inputValue.matches(format) == false) {//check if inputed value is empty or match the right format.\r\n System.out.println(error);\r\n } else {\r\n break; // if correct formated, exit loop\r\n }\r\n }\r\n return inputValue;\r\n }",
"public void showError(String error);",
"public void err(String s)\n\t{\n\t\tout(s);\n\t}",
"public Snippet visit(PrintErrorStatement n, Snippet argu) {\n\t\t Snippet _ret = new Snippet(\"\", \"\", null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.identifier.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t \t_ret.returnTemp = generateTabs(blockDepth)+\"System.err.println(\"+f2.returnTemp+\");\";\n\t\ttPlasmaCode+=_ret.returnTemp+\"\\n\";\n\t return _ret;\n\t }",
"java.lang.String getErr();",
"@FormatMethod\n private void reportError(ParseTree parseTree, @FormatString String message, Object... arguments) {\n if (parseTree == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(parseTree.location.start, message, arguments);\n }\n }",
"public static void printError(String message)\n {\n System.out.println(\"\\n\\n=============================\\n\\n\");\n System.out.println(message);\n System.out.println(\"\\n\\n=============================\\n\\n\");\n }",
"protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}",
"private String formatError(String message) {\n return \"error : \" + message;\n }",
"void showError(String message);",
"void showError(String message);",
"protected void printError(String msg) {\r\n\t\tSystem.err.println();\r\n\t\tSystem.err.println(msg);\r\n\t\tSystem.err.println(\"Invoke with '--help' for help.\");\r\n\t}",
"public void __printOn(TextWriter out) throws IOException {\n out.print(ErrPrefix);\n String msg = getMessage();\n if (!\"syntax error\".equals(msg)) {\n out.indent(ErrIndent).println(msg);\n }\n if (null != myOptLine) {\n out = out.indent(\" \");\n out.lnPrint(myOptLine.replaceAll(\"\\t\", \" \"));\n if (!myOptLine.endsWith(\"\\n\")) {\n out.println();\n }\n out.print(StringHelper.multiply(\" \", myStart));\n out.print(StringHelper.multiply(\"^\", myBound - myStart));\n SourceSpan optSpan = optDamage().getOptSpan();\n if (null != optSpan) {\n out.lnPrint(\"@ \" + optSpan);\n }\n }\n }",
"private static void printUsage(String error) {\n\t\tSystem.err.println(\"\\nError: \" + error);\n\t\tSystem.err.println(\"Usage:\" +\n\t\t\t\t\t\t \"\\nISAReferenceGenerator\" +\n\t\t\t\t\t\t \"\\nISAReferenceGenerator input output\" +\n\t\t\t\t\t\t \"\\n\\tinput The ISA file to read (default: isa.txt)\" +\n\t\t\t\t\t\t \"\\n\\toutput The reference file to write (default: reference.txt)\");\n\t}",
"public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }",
"private void usageError(String error) {\n System.err.println(\"\\n\" + error);\n usage(-1);\n }",
"private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }",
"private void error(@Nonnull Token pptok, boolean is_error)\r\n throws IOException,\r\n LexerException {\r\n StringBuilder buf = new StringBuilder();\r\n buf.append('#').append(pptok.getText()).append(' ');\r\n /* Peculiar construction to ditch first whitespace. */\r\n Token tok = source_token_nonwhite();\r\n ERROR:\r\n for (;;) {\r\n switch (tok.getType()) {\r\n case NL:\r\n case EOF:\r\n break ERROR;\r\n default:\r\n buf.append(tok.getText());\r\n break;\r\n }\r\n tok = source_token();\r\n }\r\n if (is_error)\r\n error(pptok, buf.toString());\r\n else\r\n warning(pptok, buf.toString());\r\n }",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"public void usageError(String msg) {\n System.err.println(\"Usage error: \" + msg + \"\\n\");\n printUsage(System.err);\n System.exit(1);\n }",
"void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}",
"public static\n PrintStream err() {\n return Ansi.err;\n }",
"private void err4() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand4.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand4.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand4.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand4.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic final void showCommandError(String command, String message) {\n\t}",
"private static void printUsage(Exception ex) {\n if (null == ex.getMessage()) {\n final StringBuilder builder = new StringBuilder();\n for (final OvsDbCli command : values())\n builder.append(command.usage());\n log.error(builder.toString(), ex);\n } else {\n log.error(\"{}\", ex.getMessage(), ex);\n }\n }",
"protected void ERROR(String message)\n\t{\n\t\t//allow children to modify output\n\t\tPRINT(message);\n\t\tSystem.exit(1);\n\t}",
"public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}",
"private void error(String message) {\n errors++;\n System.err.println(\"Line \" + token.line + \",\"\n + \" Col \" + token.col + \": \"\n + message);\n }",
"public void print_error( String text, int level ) {\n\t\tif ( get_debug_level() >= level ) {\n\t\t\t_platform_io.print_error( text );\n\t\t}\n\t}",
"public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}",
"public String error();",
"protected void syntaxError(Object obj) {\n\t\tsyntaxError(obj.toString());\n\t}",
"void showErrorMsg(String string);",
"public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n }",
"public void printInvalidTaskInFileMessage() {\n System.out.println(BORDER_LINE + System.lineSeparator()\n + \" INVALID TASK DETECTED\" + System.lineSeparator()\n + BORDER_LINE);\n }",
"public static void printEmptyTodoError() {\n botSpeak(Message.EMPTY_TODO_ERROR);\n }",
"private void parseError(String s) throws FSException {\n\n // set up our error block\n error=new String[6];\n error[0]=s;\n error[1]=(new Integer(code.getCurLine())).toString();\n error[2]=code.getLineAsString();\n error[3]=tok.toString();;\n error[4]=vars.toString();\n if (gVars!=null) error[5]=(gVars==null)?\"\":gVars.toString();\n\n // build the display string\n s=\"\\n\\t\"+s+\"\\n\"+getContext();\n\n throw new FSException(s);\n }",
"void outputError(String message) {\n\n fatalCount++;\n/*\n if (fatalCount == 1) {\n //fatalErrorsTable.addRow(ec.cr1ColRow(\n // \"Fatal errors\", true, \"red\", IHAlign.CENTER));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(\n \"<font color=red><b>Fatal errors</b></font>\").setHAlign(IHAlign.CENTER));\n fatalErrorsTable.addRow(row);\n } // if (fatalCount == 1)\n //fatalErrorsTable.addRow(ec.cr1ColRow(message));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(message));\n fatalErrorsTable.addRow(row);\n*/\n ec.writeFileLine(reportFile, message);\n if (dbg) System.out.println(\"<br>outputError: message = \" + message);\n }",
"private void errorCheck( Token token, String kind ) {\n if( ! token.isKind( kind ) ) {\n System.out.println(\"Error: expected \" + token + \" to be of kind \" + kind );\n System.exit(1);\n }\n }",
"void showError(String errorMessage);",
"public static void invalidSetCommandPrinter() {\n System.out.println(line);\n System.out.println(INVALID_FORMAT_MSG);\n System.out.println(SET_FORMAT_MSG);\n System.out.println(line);\n }",
"public static void printErrorForInvalidCommand(String userInput) {\n System.out.println(\"Aw man! I am unable to \" + userInput + \" yet! Please specify a different function! :D\");\n }",
"private void outputAndThrow(RuntimeException ex) {\n\t\toutput += \"\\n\" + ex.getMessage();\n\t\tSystem.out.println(output);\n\t\tthrow ex;\n\t}",
"public static void verify(boolean condition, String error, Object... formatting) {\n if (!condition)\n throw new RuntimeException(formatting.length > 0 ? String.format(error, formatting) : error);\n }",
"private static void printUsage() {\n\t\tSystem.out.println(errorHeader + \"Incorrect parameters\\nUsage :\"\n\t\t\t\t+ \"\\njava DaemonImpl <server>\\n With server = address of the server\"\n\t\t\t\t+ \" the DaemonImpl is executed on\");\n\t}",
"public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"public void printFailure() {\n //\n }",
"private static String checkOutput(List<String> lines) {\n\t\tString result = \"\";\n\t\tfor(String l : lines) {\n\t\t\tif(l.contains(\"OK\")) {\n\t\t\t\tresult = \"OK\";\n\t\t\t}else if(l.contains(\"Failure\")) {\n\t\t\t\tresult = \"FAILURE\";\n\t\t\t}else if(l.isEmpty()) {\n\t\t\t\tcontinue;\n\t\t\t}else if(l.contains(\"error\")){\n\t\t\t\tresult = \"SYNTAX_ERROR\";\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"public PrintStream semantError(AbstractSymbol filename, TreeNode t) {\n \terrorStream.print(filename + \":\" + t.getLineNumber() + \": \");\n \treturn semantError();\n }",
"public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }",
"java.lang.String getErrmsg();",
"@FormatMethod\n private void reportError(@FormatString String message, Object... arguments) {\n errorReporter.reportError(scanner.getPosition(), message, arguments);\n }",
"private void err3() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand3.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand3.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand3.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand3.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado\");\n TablaErr.add(datos);\n */\n }",
"private void syntaxError(String message, int line) {\n\t\tString error = String.format(\"Syntax error: %s on line %d.\", message,\r\n\t\t\t\tline);\r\n\t\terrors.add(error);\r\n\r\n\t\tthis.syntaxError = true;\r\n\t}",
"public static void printFileError() {\n printLine();\n System.out.println(\" Oops! Something went wrong with duke.txt\");\n printLine();\n }",
"@FormatMethod\n private void reportError(Token token, @FormatString String message, Object... arguments) {\n if (token == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(token.getStart(), message, arguments);\n }\n }",
"public static String checkFormatCommandLine(String[] cmdStrings) {\n String result = \"\";\n String checkFormat = cmdStrings.length != 0 ? cmdStrings[0] : \"\";\n if (cmdStrings.length == 0 || checkFormat.equalsIgnoreCase(\"-h\")) {\n result = HELP;\n } else {\n if (find(cmdStrings, \"-r\") == -1) {\n result = \"Error: Not input file.\";\n } else if (find(cmdStrings, \"-1\") + 1 >= cmdStrings.length) {\n result = \"Error: Not found file.\";\n }\n }\n return result;\n }",
"public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado Error Fatal\");\n TablaErr.add(datos);\n */\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }",
"public void showError(String errorMessage);",
"public PrintStream semantError() {\n \tsemantErrors++;\n \treturn errorStream;\n }",
"public void error();",
"String getErrorsString();",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"public static void printf(String format, Object ... args)\n {\n if(!info) return;\n debugger.log.printf(format, args);\n }",
"public static void scannerError(String fmt, Object... varArgs) throws Exception\r\n\t{\r\n\t\tString diagnosticTxt = String.format(fmt, varArgs);\r\n\t\tthrow new ScannerException((Scanner.iSourceLineNr + 1), diagnosticTxt);\r\n\t}",
"private static void printEmptyMessage() {\r\n\t\tSystem.out.println(\"usage: bfck [-p <filename>] [-i <filename>] [-o <filename>]\\n\"\r\n\t\t\t\t+ \" [--rewrite] [--translate] [--check] [--cgen]\\n\"\r\n\t\t\t\t+ \"BRAINFUCK [M\\u00fcl93] is a programming language created in 1993 by Urban M\\u00fcller,\"\r\n\t\t\t\t+ \" and notable for its extreme minimalism.\\nThis is the BrainFuck interpreter made by the group PolyStirN,\"\r\n\t\t\t\t+ \" composed of Jo\\u00ebl CANCELA VAZ, Pierre RAINERO, Aghiles DZIRI and Tanguy INVERNIZZI.\");\r\n\t}",
"private boolean printError(\n String message, ActionAnalysisMetadata action, @Nullable FileOutErr actionOutput) {\n message = action.describe() + \" failed: \" + message;\n return dumpRecordedOutErr(\n reporter, Event.error(action.getOwner().getLocation(), message), actionOutput);\n }",
"public void printFaultyEmployees() {\n System.out.println(localizer.getString(Messages.INVALID_LINES, violations.size()));\n }",
"public abstract void showInitError(String s);",
"@Override\n public void showError() {\n }",
"private void logErrorMessage(String found, String expected)throws LexemeException {\n\t\tSystem.out.println(\"Error: (L\" + lexAnalyser.getLineCount()\n\t\t\t\t+ \") Error on token \\\"\" + found + \"\\\" Expected \" + expected);\n\n\t\tlogMessage(\"Error on token \\\"\" + found + \"\\\" Expected \" + expected);\n\t\tlog.closeLog();\n\t\tthrow new LexemeException(\"Error on token \\\"\" + found + \"\\\" Expected \"\n\t\t\t\t+ expected);\n\n\t}",
"protected void writeError(\n \tString groupName,\n \tString baseDNGroups,\n \tList<String[]> validMembers,\n \tList<String[]> duplicateMembers,\n \tPrintWriter pw\n ) throws ServiceException {\n \tString dn = this.getDN(groupName, baseDNGroups);\n \tpw.println(\"DN: \" + (dn == null ? \"N/A\" : dn));\n \tpw.println();\n \tpw.println(\"Valid members:\");\n \tfor(String[] member: validMembers) {\n \t\tpw.println(member[0] + \": \" + member[1]);\n \t}\n \tpw.println();\n \tpw.println(\"Duplicate members:\");\n \tfor(String[] member: duplicateMembers) {\n \t\tpw.println(member[0] + \": \" + member[1]);\n \t}\n }",
"public void displayGraphErrMsg(String message) {\r\n \t\t// per ora faccio printare nell'output, assolutamente provvisorio.\r\n \t\tSystem.out.println(\"message = \" + message);\r\n \t}",
"public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }",
"private void printSqlError(SQLException e){\n\t System.out.println(\"SQLException: \" + e.getMessage());\n\t System.out.println(\"SQLState: \" + e.getSQLState());\n\t System.out.println(\"VendorError: \" + e.getErrorCode());\n\t\te.printStackTrace();\n\t}"
] | [
"0.7198056",
"0.6820216",
"0.65580237",
"0.65553373",
"0.6448083",
"0.64079",
"0.63841844",
"0.6357017",
"0.6324532",
"0.6277108",
"0.62536496",
"0.6185929",
"0.6172956",
"0.6116656",
"0.60432416",
"0.60209185",
"0.5969966",
"0.59513247",
"0.59274685",
"0.5897278",
"0.5892516",
"0.5888467",
"0.58841133",
"0.5877959",
"0.5872755",
"0.5833822",
"0.5833822",
"0.58331877",
"0.58271146",
"0.5821718",
"0.5792439",
"0.57909554",
"0.5770626",
"0.576708",
"0.5657618",
"0.5657618",
"0.5657618",
"0.56397635",
"0.5638278",
"0.56279874",
"0.5609474",
"0.56027174",
"0.5602195",
"0.55986255",
"0.55946684",
"0.5590172",
"0.5586714",
"0.5583914",
"0.55783117",
"0.55724233",
"0.55588853",
"0.5551705",
"0.5547934",
"0.5545807",
"0.5544603",
"0.5537897",
"0.55374193",
"0.55362195",
"0.55084085",
"0.5499902",
"0.5494648",
"0.547073",
"0.54701805",
"0.546899",
"0.5466509",
"0.5466509",
"0.5466509",
"0.5466509",
"0.5460055",
"0.54570144",
"0.54440093",
"0.543888",
"0.5429708",
"0.5424718",
"0.5422502",
"0.54160047",
"0.5410674",
"0.5397413",
"0.53948665",
"0.5393864",
"0.5383178",
"0.53743285",
"0.5370298",
"0.53600365",
"0.5359864",
"0.53592026",
"0.53484607",
"0.53457767",
"0.5344633",
"0.5338703",
"0.53373015",
"0.53325015",
"0.53271216",
"0.5324075",
"0.5317295",
"0.5317142",
"0.53141093",
"0.5306941",
"0.5306831",
"0.5295502"
] | 0.5371862 | 82 |
this condition checks if the subarrays are of length > 0 | private static void sortWrapper(int list[], int leftIndex, int rightIndex) {
if (leftIndex!=rightIndex) {
int midIndex = (leftIndex + rightIndex)/2;
//Sort left
sortWrapper(list, leftIndex, midIndex);
//Sort right
sortWrapper(list, midIndex+1, rightIndex);
//Merge sorted halves together
merge(list, leftIndex, midIndex, rightIndex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }",
"public static boolean isArray_estLength() {\n return false;\n }",
"private boolean ifTooEmpty() {\n if (items.length <= 8) {\n return false;\n }\n float efficiency = (float) size / (float) items.length;\n return efficiency < 0.25;\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public boolean isFull()\n { \n return count == elements.length; \n }",
"public static boolean isArray_length() {\n return false;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"private static boolean sliceIsValid(final int[] slice, final int flowOrderLength) {\n int consecutiveZeros = 0;\n for ( int key : slice ) {\n if ( key != 0 ) {\n consecutiveZeros = 0;\n } else {\n consecutiveZeros++;\n if ( consecutiveZeros >= (flowOrderLength - 1) ) {\n return false;\n }\n }\n }\n\n // if here, not found -> valid\n return true;\n }",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isFull() {\n return size == k;\n}",
"static boolean checkSplitsArray (double[][] splitsArray) { throw new RuntimeException(); }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn ((front == 0 && rear == MAX_LENGTH - 1) || rear == front - 1);\r\n\t}",
"public boolean isEmpty(){\n\t\treturn tail <= 0;\n\t}",
"@Override\n\tpublic boolean notEmpty() {\n\t\treturn count==0&&front==rear?true:false;\n\t}",
"public boolean isEmtpyBySize(){\n\t\treturn size == 0;\n\t}",
"private boolean isEmpty() {\n/* 547 */ return (this.filters.isEmpty() && this.maxArrayLength == Long.MAX_VALUE && this.maxDepth == Long.MAX_VALUE && this.maxReferences == Long.MAX_VALUE && this.maxStreamBytes == Long.MAX_VALUE);\n/* */ }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"private boolean isEmpty() {\n/* 549 */ return (this.filters.isEmpty() && this.maxArrayLength == Long.MAX_VALUE && this.maxDepth == Long.MAX_VALUE && this.maxReferences == Long.MAX_VALUE && this.maxStreamBytes == Long.MAX_VALUE);\n/* */ }",
"private boolean isEmpty() {\n return dataSize == 0;\n }",
"@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}",
"private static boolean checkZero(int[] count) {\n\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\tif (count[i] != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }",
"public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"public boolean is_full()\n\t {\n\t if (num_elements == capacity)\n\t return true;\n\t return false;\n\t }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"@Override\n public int getNumSubElements()\n {\n return 0;\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean isEmpty()\n\t{\n\t\treturn arraySize == 0;\n\t}",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif (this.front == 0 && this.rear == this.size - 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (this.front == this.rear + 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isEmpty() {\n //if the array length is 0, then the array is empty\n if (this.array.length < 1) {\n return true;\n }\n \n //return false if the length is greater than 0\n return false;\n }",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"public boolean isEmpty()\n {\n return size <= 0;\n }",
"public boolean isEmpty(){ return size==0;}",
"boolean hasArray();",
"public static boolean shouldProcessSlice(OBSlice x) throws Exception {\n return x.size() <= maxSliceSize;\n }",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"public boolean checkIfFull() {\n this.isFull = true;\n for(int i=0; i<this.size; i++) {\n for(int j=0; j<this.size; j++) if(this.state[i][j].isEmpty) this.isFull = false;\n }\n }",
"public boolean hasOverflow() {\r\n\t\t\treturn (data.size() > 3);\r\n\t\t}",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\tboolean bandera=true;\r\n\t\tif(vector.size()>0){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tbandera=false;\r\n\t\t}\r\n\t\treturn bandera;\r\n\t}",
"private static boolean arrayAccess_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"arrayAccess_0\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NOT_);\n r = !arrayAccess_0_0(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public boolean isFull() {\n return size == cnt;\n }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}",
"public boolean isEmpty() {\r\n\tfor (int i = 0; i < this.size; i++) {\r\n\t if (this.territory[0][i] != 0 || this.territory[1][i] != 0) {\r\n\t\treturn false;\r\n\t }\r\n\t}\r\n\r\n\treturn true;\r\n }",
"private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public boolean isEmpty() {\n return size <= 0;\n }",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"boolean isFull()\n {\n return ((front == 0 && end == size-1) || front == end+1);\n }",
"public boolean isEmpty(){\n return size==0;\n }",
"@Override\n public boolean isEmpty() {\n return size == 0;\n }",
"@Override\n public boolean isEmpty() {\n return size == 0;\n }",
"@Override\n public boolean isEmpty() {\n return size == 0;\n }",
"@Override\n public boolean isEmpty() {\n return size == 0;\n }",
"@Override\n public boolean isEmpty() {\n return size == 0;\n }",
"boolean isEmpty(int[] array) {\n return array.length == 0;\n }",
"@Override\n public boolean isEmpty()\n {\n return size == 0;\n }",
"public boolean empty() {\n return size <= 0;\n }",
"public boolean isEmpty(){\n return size == 0;\n }",
"public boolean isEmpty()\r\n { return N == 0; }",
"protected static boolean isBackedBySimpleArray(Buffer b) {\n return b.hasArray() && (b.arrayOffset() == 0);\n }",
"private boolean isEmpty() { return getSize() == 0; }",
"public boolean isEmpty() {\n \t return size == 0;\n }",
"public boolean isEmpty(){\r\n return currentSize == 0;\r\n }",
"public boolean isEmpty(){\n return size==0;\n }",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public boolean isEmpty(){\n\t\treturn (howMany==0);\n\t}",
"@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }",
"protected boolean arrayIsEmpty(Object arr[]) {\n boolean empty = true;\n \n for (Object obj : arr) {\n \tif (obj != null) {\n \t\tempty = false;\n \t\tbreak;\n \t}\n }\n \treturn empty;\n }",
"boolean isEmpty(){\n return tail==0;\n }",
"@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }",
"private static int sizeArr(int[] arr) {\n int count = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] != 0) count++;\n }\n return count;\n }",
"private boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty() {//check if empty\n return N == 0;\n }",
"public boolean isEmpty(){\n return size == 0;\n }",
"public boolean isEmpty(){\n return size == 0;\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"@Test\n public void sumOddLengthSubarrays3() {\n SumOddLengthSubarrays sol = new SumOddLengthSubarrays();\n int actual, expected;\n int[] nums;\n\n nums = new int[]{1,4,2,5,3};\n expected = 58;\n actual = sol.sumOddLengthSubarrays3(nums);\n Assert.assertEquals(expected, actual);\n\n\n nums = new int[]{10,11,12};\n expected = 66;\n actual = sol.sumOddLengthSubarrays3(nums);\n Assert.assertEquals(expected, actual);\n\n }",
"private int isArraySorted(int[] arr, int length) {\n\t\tif(length==1){\n\t\t\t//Base case, if the length is 1 ..array is sorted\n\t\t\treturn 1;\n\t\t}\n\t\t/*If second last element is bigger than last element (length-1)th element \n\t\t return 0 else check if (length-3)th element is bigger than (length-2)th element*/\n\t\treturn ((arr[length-1]<arr[length-2])? 0: isArraySorted(arr, length-1));\n\t}",
"@Override\n public boolean isEmpty() {\n return size()==0;\n }",
"private boolean isEmpty()\n {\n return dimensions.isEmpty();\n }",
"public boolean isEmpty(){\r\n\t\treturn size == 0;\r\n\t}",
"public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }",
"public boolean isEmpty() {\n\t\treturn array.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}",
"public int sizeOfSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUB$2);\n }\n }",
"@Override\n public boolean isEmpty() {\n return _size == 0;\n }",
"public boolean isFull() {\n return head - tail == 1 || (head == 0 && tail == size - 1);\n }",
"public boolean isEmpty() {\n\t\treturn (N == 0);\t\n\t}",
"public boolean isEmpty() {\n \treturn size == 0;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}"
] | [
"0.706821",
"0.689389",
"0.68248034",
"0.65287673",
"0.6438967",
"0.6347955",
"0.63163334",
"0.6281935",
"0.62153715",
"0.621499",
"0.61969674",
"0.6159472",
"0.6154665",
"0.6121275",
"0.61106765",
"0.60939294",
"0.60482705",
"0.604148",
"0.6039248",
"0.60330653",
"0.60081536",
"0.5988464",
"0.5985774",
"0.59832865",
"0.5983044",
"0.59793687",
"0.5976581",
"0.5949155",
"0.5948665",
"0.59453297",
"0.5944738",
"0.5928039",
"0.5906092",
"0.5893871",
"0.58895105",
"0.58853",
"0.5877847",
"0.58777577",
"0.5872848",
"0.5872619",
"0.5862014",
"0.5851665",
"0.583943",
"0.58216965",
"0.58193064",
"0.5812445",
"0.5811466",
"0.5797653",
"0.57924134",
"0.57924134",
"0.57924134",
"0.57896894",
"0.57883155",
"0.57811385",
"0.578018",
"0.5773586",
"0.57715225",
"0.5755289",
"0.5753076",
"0.5752711",
"0.5752711",
"0.5752711",
"0.5752711",
"0.5752711",
"0.5751915",
"0.57361084",
"0.57291055",
"0.57274556",
"0.57169795",
"0.5709011",
"0.5698366",
"0.56891614",
"0.5686795",
"0.5678658",
"0.5677636",
"0.5677621",
"0.5671413",
"0.56675404",
"0.5667162",
"0.5665471",
"0.5663113",
"0.5655162",
"0.5653658",
"0.56482965",
"0.56482965",
"0.5642508",
"0.5642508",
"0.56413233",
"0.56317204",
"0.56294066",
"0.5627817",
"0.56262636",
"0.5624929",
"0.5624053",
"0.5622279",
"0.5621546",
"0.5619512",
"0.5618812",
"0.5614917",
"0.5614333",
"0.56140167"
] | 0.0 | -1 |
return teacherService.list(); return teacherService.list(teacher); return teacherService.list(pageBean); | @RequestMapping("list")
List<Teacher> list(Teacher teacher, PageBean pageBean){
return teacherService.list(teacher,pageBean);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ITeacherService {\n\n List<Teacher> getAllTeacher();\n}",
"@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }",
"public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}",
"public interface TeacherRepository extends CrudRepository<Teacher,Long> {\n List<Teacher> findAll();\n\n}",
"@GetMapping(value = getAllTeacherStudentMapping)\r\n\tpublic ResponseEntity<List<TeacherStudent>> getAllTeacherStudents() {\r\n\t\treturn ResponseEntity.ok().body(teacherStudentService.findAll());\r\n\t}",
"@Produces(MediaType.APPLICATION_JSON)\n @Override\n public List<Teacher> getAllTeachers() {\n List<Map<String, Object>> teachersIds = getJdbcTemplate().queryForList(sqlGetAllTeachersIds);\n if (teachersIds.size() == 0) {\n return null;\n }\n // find list of lessons by ID's\n List<Teacher> resultTeachers = new ArrayList<>();\n for (Map<String, Object> teacherId : teachersIds) {\n resultTeachers.add(getTeacherById((int) teacherId.get(\"id\")));\n }\n return resultTeachers;\n }",
"@Service\r\npublic interface ResearchService {\r\n\r\n public Page<product_research> getResearchPage(Map<String,Object> params);\r\n public Page<product_research> researchProductPageList(Map<String,Object> params);\r\n public List<product_research> getResearchforbaobiao(Map<String,Object> params);\r\n public int research_add(Map<String,Object> params);\r\n public void research_in(Map<String,Object> params);\r\n public void putuAdd(Map<String,Object> params);\r\n public void researchDel(Map<String,Object> params);\r\n public List<Product_sale_detail> venditionSelect(Map<String,Object> params);\r\n public product_research researchSelect(Map<String,Object> params);\r\n public void researchStatusUp(Map<String,Object> params);\r\n\r\n void research_mod(Map<String, Object> params);\r\n /*public List<pss_research_doc> research_putu(Map<String, Object> params);*/\r\n //public void research_putu(Map<String,Object> params);\r\n}",
"@Override\n\tpublic List<Users> listTeacher() {\n\t\treturn genericDAO.listTeacher();\n\t}",
"public interface UserManagerService {\r\n public Staff_info getStaffInfo(Map<String,Object> params);\r\n\r\n public Page<Staff_info> getUserPageList(Map<String,Object> params);\r\n\r\n public void addUserInfo(Map<String,Object> params);\r\n public void updUserInfo(Map<String,Object> params);\r\n\r\n public void delUser(Map<String,Object> params);\r\n\r\n public List<Staff_info> moblieSelect();\r\n\r\n}",
"public interface TeacherService {\n\n public boolean isValid(Integer id,\n String lastName,\n String firstName,\n String password);\n public boolean validateRegister(String lastName, String firstName,\n String fatherInitial, String username,\n String password);\n public Teacher getTeacher(Integer id);\n public void addStudent(String lastName, String firstName,\n String fatherInitial, String username,\n String password,\n Integer courseId, Integer teacherId);\n public Integer getStudentId(String username);\n public void addGrade(String studentName, String courseName, Integer teacherId, Integer nota);\n public Integer getCourseID(Integer id, String courseName);\n public List<Course> getCourses(Integer id);\n public List<Student> getStudents(int courseId, int teacherId);\n public int CountStudents(int courseId, int teacherId);\n public List<StudentperCourse> getPopulation (int teacherId);\n public List<StudentwithGrades> getStudentAtCourse(int teacherId, int courseId);\n}",
"@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }",
"@GetMapping(\"pageTeacher/{current}/{limit}\")\n public R pageTeacher(@PathVariable long current,@PathVariable long limit){\n R result = eduTeacherService.pageTeacher(current, limit);\n return result;\n }",
"public List<User> GetAllUsers() {\n/* 38 */ return this.userDal.GetAllUsers();\n/* */ }",
"public interface TBizTalentService extends BaseService<TBizTalent,TBizTalentExample>{\n\n PageParams<TBizTalent> list(PageParams<TBizTalent> pageParams,Boolean ownerFlag);\n\n List<TBizTalent> listAll();\n\n TBizTalent findById(@NotNull Long id);\n\n Boolean fakeDel(List<Long> ids);\n\n Boolean adminDel(List<Long> ids);\n\n Boolean saveOrUpdate(TalentVo bean);\n\n //查询视图信息\n TalentVo findVoById(Long id);\n\n List<TalentVo> findVoListByIds(List<Long> ids);\n\n}",
"public void GetListaTjWomenResponseBean() {\n }",
"public interface TeacherService {\n void save (Teacher teacher);\n\n void delete (Teacher teacher);\n\n Teacher getTeacherById(Long id);\n\n List<Teacher> listTeachers();\n}",
"Page<Expert> findAll(Pageable pageable);",
"@Override\n\tpublic List<User> showTeacher() {\n\t\treturn userDao.showTeacher();\n\t}",
"@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }",
"@Transactional\r\npublic interface CollegeService {\r\n\t\r\n\tpublic List<CollegeDTO> getAllColleges();\r\n\tpublic List<CollegeDTO> fetchAllCollegeInPage(int startLimit,int endLimit);\r\n\tpublic Integer getAllCollegeCount();\r\n}",
"public interface TeacherDao {\n\n TeacherPO getTeacherByEmail(String email);\n\n void saveTeacher(TeacherPO teacherPO);\n\n void saveCode(TeacherMailValidationPO mailValidationPO);\n\n TeacherMailValidationPO getTeacherMailValidationPO(String email);\n\n List<TeacherPO> getTeachersByEmailCollection(Collection<String> collection);\n\n int countHasValidatedTeacher();\n\n}",
"public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}",
"protected void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException{\n\t\n\tlog.debug(\"college list do get start\");\n\tint pageNo=1;\n\tint pageSize=DataUtility.getInt(PropertyReader.getValue(\"page.size\"));\n\t\n\tCollegeBean bean=(CollegeBean)populateBean(request);\n\tCollegeModel model=new CollegeModel();\n\tList list;\n\tList next;\n\t\n\ttry{\n\t\tlist=model.search(bean,pageNo,pageSize);\n\t\tnext=model.search(bean, pageNo + 1, pageSize);\n\t\t\n\t\tServletUtility.setList(list, request);\n\t\tif (list == null || list.size() == 0) {\n\t\t\tServletUtility.setErrorMessage(\"No record found \", request);\n\t\t}\n\t\tif (next == null || next.size() == 0) {\n\t\t\trequest.setAttribute(\"nextListSize\", 0);\n\t\t} else {\n\t\t\trequest.setAttribute(\"nextListSize\", next.size());\n\t\t}\n\n\t\tServletUtility.setList(list, request);\n\t\tServletUtility.setPageNo(pageNo, request);\n\t\tServletUtility.setPageSize(pageSize, request);\n\t\tServletUtility.forward(getView(), request, response);\n\n\t\t\n\t}catch(ApplicationException e){\n\t\tlog.error(e);\n\t\tServletUtility.handleException(e, request, response);\n\t\treturn;\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tlog.debug(\"college list do get end\");\n}",
"public List<EmployeeDetails> getEmployeeDetails();",
"@RequestMapping(value=\"/show\",method = RequestMethod.GET)\n\n public List<Student> show_data() \n {\n return srt.findAll();\n }",
"@RequestMapping(value=\"/department\", method = RequestMethod.GET)\npublic @ResponseBody List<Department> department(){\n\treturn (List<Department>) departmentrepository.findAll();\n}",
"Page<Student> findAll(Pageable pageable);",
"@Override\r\n\tpublic Teacher retrieveStudents(Teacher teacher) {\n\t\tStudent student1 = new Student(\"www\", \"ÄÐ\");\r\n\t\tStudent student2 = new Student(\"zzz\", \"Å®\");\r\n\t\tStudent student3 = new Student(\"qqq\", \"ÄÐ\");\r\n\t\tTeacher teacher1 = new Teacher(1, \"Íõ\", null);\r\n\t\tTeacher teacher2 = new Teacher(2, \"ÁÖ\", null);\r\n\t\t\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tif (teacher1.getId() == teacher.getId()) {\r\n\t\t\tteacher1.getStudents().add(student1);\r\n\t\t\tteacher1.getStudents().add(student2);\r\n\t\t\treturn teacher1;\r\n\t\t} else if (teacher2.getId() == teacher.getId()) {\r\n\t\t\tteacher2.getStudents().add(student3);\r\n\t\t\treturn teacher2;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t}",
"public interface StudentService {\n\n Integer getTeacherIdByStudentId(Integer studentId);\n\n Student getStudentInfo(Integer id);\n\n List<Class> getAllClass();\n\n List<Teacher> getAllTeacher();\n\n void updateInfo(String username, Integer id, String name, String password, Integer stClass, Integer studentNum,\n Integer teacher);\n\n List<Student> getAllStudent();\n\n void delStudent(Integer studentId);\n\n void createClassAndImportStu(String className, String majorName,Integer teacherId, List<StudentDTO> list) throws Exception ;\n}",
"public ArrayList<Booking> viewbookingsadmin() {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO.viewbookingsadmin();\n\t\n\t\n}",
"private void refresh(TeachersBean teacher) {\n\t\tTeacherService teacherservice = new TeacherService(teacher);\n\t\tsubjectname=teacher.getSubject().getSubjectname();\n\t\tSet<AssignmentBean> temp = teacherservice.readTeacher().getSubject().getAssignments();\n\t\tfor (AssignmentBean assignmentBean : temp) {\n\t\t\tassignmentslist.add(assignmentBean);\n\t\t\t\n\t\t}\n\t\t\n\t\tStudentService studentservice = new StudentService(null);\n\t\tstudentslist=studentservice.getAllStudentofSubject(teacherservice.readTeacher().getSubject());\n\t}",
"public interface StockTigerListService extends IService<StockTigerList> {\n\n Page<StockTigerList_VO> getStockTigerList(Integer page , Integer size , String stockCode , String stockName , String startDay , String endDay);\n}",
"@Override\npublic List<Department> queryForEmp() {\n\treturn departmentMapper.queryForEmp();\n}",
"public interface TScientificEntityDao {\n\n public Page<TScientificEntity> listRecordsByCondition(Page page);\n public List<TScientificEntity> getLists(Page.FilterModel condition);\n\n public String getNumber(int uer_id);\n\n}",
"public List<PersonaDTO> consultarPersonas() ;",
"@Service\npublic interface UserService {\n\n public Page<UserInfo> findAll(Pageable pageable);\n\n /**通过username查找用户信息;*/\n public UserInfo findByUsername(String username);\n\n public UserInfo findByUserCode(String userCode);\n\n List<Tree<SysPermission>> listMenuTree(Integer id);\n}",
"List<TeacherRecord> getTeachers(String clientId) throws Exception;",
"@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }",
"public interface TeacherRepository extends PagingAndSortingRepository<Teacher, Long> {\n Teacher findByRfid(@Param(\"name\") String rfid);\n}",
"Page<AccountDTO> coverListAccountToListEmpDTO(Page<Account> accounts);",
"List<NominatedStudentDto> showAll();",
"List<Student> getAllStudents();",
"@GetMapping(\"/sort-asc\")\n public List<TeacherDTO> getSortedTeachers() {\n return teacherService.getSortedTeachers().stream()\n .map(this::convertToDto)\n .collect(Collectors.toList());\n }",
"List<Teacher> selectAll();",
"public interface ApiWwdUserEnjoyPoService extends feihua.jdbc.api.service.ApiBaseService<WwdUserEnjoyPo, WwdUserEnjoyDto, String> {\n PageResultDto<WwdUserEnjoyDto> searchWwdUserEnjoysDsf(SearchWwdUserEnjoysConditionDto dto, PageAndOrderbyParamDto pageAndOrderbyParamDto);\n\n /**\n * 查询我有意思的人\n * @param wwdUserId\n * @param type\n * @param typeLimit\n * @return\n */\n List<WwdUserEnjoyDto> selectByWwdUserId(String wwdUserId,String type,String typeLimit);\n\n /**\n * 查询我有意思的人\n * @param wwdUserId\n * @return\n */\n List<WwdUserEnjoyDto> selectByWwdUserId(String wwdUserId);\n\n /**\n * 查询我有意思的人分页\n * @param wwdUserId\n * @param pageAndOrderbyParamDto\n * @return\n */\n PageResultDto<WwdUserEnjoyDto> selectByWwdUserId(String wwdUserId, PageAndOrderbyParamDto pageAndOrderbyParamDto);\n\n /**\n * 查询对我有意思的人\n * @param enjoyedWwdUserId\n * @return\n */\n List<WwdUserEnjoyDto> selectByEnjoyedWwdUserId(String enjoyedWwdUserId);\n\n /**\n * 查询对我有意思的人分页\n * @param enjoyedWwdUserId\n * @param pageAndOrderbyParamDto\n * @return\n */\n PageResultDto<WwdUserEnjoyDto> selectByEnjoyedWwdUserId(String enjoyedWwdUserId, PageAndOrderbyParamDto pageAndOrderbyParamDto);\n\n /**\n * 查询我有意思且也对我有意思的人\n * @param enjoyedWwdUserId\n * @return\n */\n List<WwdUserEnjoyDto> selectEnjoyedByWwdUserId(String enjoyedWwdUserId);\n\n /**\n * 分页查询我有意思且也对我有意思的人\n * @param wwdUserId 主体用户id\n * @param pageAndOrderbyParamDto\n * @return\n */\n PageResultDto<WwdUserEnjoyDto> selectEnjoyedByWwdUserId(String wwdUserId, PageAndOrderbyParamDto pageAndOrderbyParamDto);\n\n /**\n * 查询 wwdUserId 是否对 enjoyedWwdUserId有意思\n * @param wwdUserId\n * @param enjoyedWwdUserId\n * @return 存在数据即有意思\n */\n public WwdUserEnjoyDto selectEnjoyedFromTo(String wwdUserId, String enjoyedWwdUserId);\n}",
"@Override\n public List<Person> getPeople() {\n return this.personRepository.findAll();\n }",
"private void viewTeachers() {\n Iterable<Teacher> teachers = ctrl.getTeacherRepo().findAll();\n teachers.forEach(System.out::println);\n }",
"@Service\n@Transactional\npublic interface CourseService {\n\n public ResultVO<String> create(Course course);\n\n public ResultVO<CourseVO> update(CourseVO course);\n\n public ResultVO<String> delete(Integer courseId);\n\n public ResultVO<List<CourseVO>> getAllCourses(Page page);\n\n public ResultVO<List<CourseVO>> selectByTeacher(Page page, String teacherName);\n\n public ResultVO<List<CourseVO>> selectByCategory(Page page, Integer categoryId);\n\n public ResultVO<List<CourseVO>> selectByCourseName(Page page, String courseName);\n\n public ResultVO<CourseVO> selectByCourseId(Integer courseId);\n\n public ResultVO<Integer> findCount();\n\n public ResultVO<Integer> findCountByName(String courseName);\n\n public ResultVO<List<CourseVO>> getAllPreviousCourses();\n\n public ResultVO<Integer> findCountByTeacher(String teacherName);\n\n public ResultVO<Integer> findCountByCategory(Category category);\n\n public ResultVO<List<CategoryVO>> getCategoryVO();\n\n public ResultVO<List<Course>> getAllCourse();\n}",
"@Override\r\n\tprotected String go() throws Exception {\n\t\tif(userSize==0)\r\n\t\t{\r\n\t\t\tuserSize=3;\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tint userid=(Integer)this.get(\"currentUserid\");\r\n\t\t\tProDiaryService proDiaryService=(ProDiaryService)this.getBean(\"proDiaryService\");\r\n\t\t\t\r\n\t\t\tpage=proDiaryService.getCurrProDiaryListByUserID(userid,userSize,pageNo);\r\n\t\t\tPagefoot pagefoot = new Pagefoot();\r\n\t\t\tpageString = pagefoot.packString(page, pageNo,\"getPage\",userSize);\r\n\t\t\t \r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t return \"success\";\r\n\t}",
"@Override\r\n\t\tpublic List<TeacherDto> getAllTeacher(long studentId) {\n\t\t\tList<TeacherDto> list = new ArrayList<>();\r\n\t\t\tteacherRepository.findByStudentid(studentId).forEach(e -> list.add(TeacherTransformer.getTeacherEntityToDto(e)));\r\n\t\t\treturn list;\r\n\t\t}",
"List<Student> getStudent();",
"public List<Employee> getEmployees();",
"public interface HomeworkService extends CRUDService<Homework>{\n\n List<Homework> findByTitle(String title);\n List<Homework> findByLesson(Lesson lesson);\n List<Homework> findByLesson_Subject_User(User user);\n}",
"public interface EmpService {\n //查询一页数据\n Result<TbEmpPage> getList(Page page,Order order,EmpQuery empQuery);\n //删除制定的id,其实是修改状态\n int updateEmpsByIds(List<Integer> ids);\n}",
"public interface AppLoginLogService {\n PageInfo<AppLoginLog> selectAllAppLoginLog(int page_number, int page_size,String corp_code,String search_value)throws Exception;\n\n PageInfo<AppLoginLog> selectAllScreen(int page_number, int page_size, String corp_code,Map<String,String> map) throws Exception;\n\n int delAppLoginlogById(int id)throws Exception;\n\n AppLoginLog selByLogId(int id) throws Exception;\n}",
"@RequestMapping(method=RequestMethod.GET, value=\"/{id}/teacher/{idSubject}/subject/{idClass}/class\")\r\n\tpublic ResponseEntity<?> getMarksForTeacher(@PathVariable Long id, @PathVariable Long idSubject, @PathVariable Long idClass){\r\n\t\ttry {\r\n\t\t\tTeacherEntity teacher= teacherService.getById(id);\r\n\t\t\tif(teacher==null) {\r\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(\"Teacher not found.\"), HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\tSubjectEntity subject= subjectService.getById(idSubject);\r\n\t\t\tif(subject==null) {\r\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(\"Subject not found.\"), HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\tTeacherSubjectEntity ts= tsService.findByTeacherAndSubject(teacher, subject);\r\n\t\t\tif(ts==null) {\r\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(\"Teacher dont have this subject.\"), HttpStatus.BAD_REQUEST);\r\n\t\t\t}\r\n\t\t\tClassEntity classs= classService.getById(idClass);\r\n\t\t\tTeacherSubjectClassEntity tsc= tscService.findByTeacherSubjectAndClass(ts, classs);\r\n\t\t\tif(tsc==null) {\r\n\t\t\t\treturn new ResponseEntity<RESTError>(new RESTError(\"Teacher cannot see marks for this student, because he dont teach him.\"), HttpStatus.BAD_REQUEST);\r\n\t\t\t}\t\r\n\t\t\tList<StudentEntity> students= studentService.findStudentsByClass(idClass);\r\n\t\t\tList<StudentMarksDto> studentList= new ArrayList<>();\r\n\t\t\tList<MarkDto> marksFirst= new ArrayList<>();\r\n\t\t\tList<MarkDto> marksSecond = new ArrayList<>();\r\n\t\t\tfor(StudentEntity student: students) {\r\n\t\t\t\tStudentDto studentDto = new StudentDto(student.getCode(), student.getFirstName(), student.getLastName());\r\n\t\t\t\tmarksFirst= gradingService.getMarksBySubjectBySemester(student, tsc, 1);\r\n\t\t\t\tmarksSecond= gradingService.getMarksBySubjectBySemester(student, tsc, 2);\r\n\t\t\t\tStudentMarksDto smDto= new StudentMarksDto(studentDto, marksFirst, marksSecond);\r\n\t\t\t\tstudentList.add(smDto);\r\n\t\t\t}\r\n return new ResponseEntity<List<StudentMarksDto>>(studentList, HttpStatus.OK);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn new ResponseEntity<RESTError>(new RESTError(\"Exception occurred: \" + e.getMessage()), HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t }\r\n\t }",
"public interface StudentsService {\n List<Students> findAllStudents();\n\n Students getStudentById(long id);\n\n Students saveStudent(Students students);\n\n void deleteStudentById(long id);\n\n Page<Students> findAllByPage(Pageable pageable);\n\n List<Students> getStudentsByName(String name);\n\n\n\n}",
"public List<EmployeeDto> retrieveEmployees();",
"public List<Departmentdetails> getDepartmentDetails();",
"public interface EmpService {\n Boolean addEmp(EMP emp);\n\n EMP getEmpName(String name);\n\n List<EMP> getEmp(@Param(\"did\") Integer d_id, @Param(\"state\") Integer e_state);\n\n List<EMP> getEmpLimits(Integer d_id, int currentPage, int pages, Integer e_state);\n\n List<EMP> getEmpLimit(Integer d_id, int currentPage, int pages, Integer e_state, Integer position);\n\n EMP empLogin(EMP emp);\n\n List<EMP_TRAIN> getEmpAndTrain(EMP emp);\n\n List<EMP_TRAIN> getEmpAndTrainLimit(EMP emp, int currentPage, int pages);\n}",
"public interface AgentAuditService {\r\n\r\n Pagination<TblAgentInfoDo> queryAgentInfoList(Map map,TblAgentInfoDo tblAgentInfoDo) ;\r\n\r\n TblAgentInfoDo queryAgentById(String memberId);\r\n\r\n int auditAgent(String memberId, String errorFields, String remark, String userName,String autid);\r\n\r\n Pagination<Map<String,Object>> queryAgentAuditRecordList(Map<String,String> queryMap);\r\n\r\n List<TblAgentFeeInfoDo> queryAgentFeeById(String memberId);\r\n\r\n TblAgentAuditRecordDo queryAgentAuditReocrdById(String memberId);\r\n\r\n List<TblAgentInfoDo> selectAllAgentInfo();\r\n\r\n\r\n\r\n\r\n}",
"@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List <Student> getAllStudents();",
"@GetMapping(\"/list\")\n public List<Traveller> listTraveller() {\n List<Traveller> theTraveller = travelService.findAll();\n return theTraveller;\n }",
"@Override\r\n\tprotected String go() throws Exception {\n\t\tBasicService basicService=(BasicService)getBean(\"basicService\");\r\n\t\tDetachedCriteria detachedCriteria=DetachedCriteria.forClass(SysUser.class);\r\n\r\n\t\tdetachedCriteria.add(Restrictions.eq(\"delflag\", false));\r\n\t\tif (username != null && !\"\".equals(username) ) {\r\n\t\t\tdetachedCriteria.add(Restrictions.like(\"username\", username, MatchMode.ANYWHERE));\r\n\t\t\t\r\n\t\t}\r\n\t\tif (lawerno != null && !\"\".equals(lawerno) ) {\r\n\t\t\tdetachedCriteria.add(Restrictions.like(\"lawerno\", lawerno, MatchMode.ANYWHERE));\r\n\t\t\t\r\n\t\t}\r\n\t\tif (cardno != null && !\"\".equals(cardno) ) {\r\n\t\t\tdetachedCriteria.add(Restrictions.like(\"cardno\", cardno, MatchMode.ANYWHERE));\r\n\t\t\t\r\n\t\t}\r\n\t\tif (certno != null && !\"\".equals(certno) ) {\r\n\t\t\tdetachedCriteria.add(Restrictions.like(\"certno\", certno, MatchMode.ANYWHERE));\r\n\t\t\t\r\n\t\t}\r\n\t\tif (systemno != null && !\"\".equals(systemno) ) {\r\n\t\t\tdetachedCriteria.add(Restrictions.like(\"systemno\", systemno, MatchMode.ANYWHERE));\r\n\t\t\t\r\n\t\t}\r\n\t\tif (groupname != null && !\"\".equals(groupname)) {\r\n\t\t detachedCriteria.createAlias(\"sysGroup\", \"group\").add(\r\n\t\t\t\t\t\tRestrictions.like(\"group.groupname\", groupname, MatchMode.ANYWHERE));\r\n\t\t}\r\n\t\t\r\n\t\t//只显示律师,不知道对不对,得实践检验一下\r\n//\t\tdetachedCriteria.createAlias(\"sysRoles\", \"roles\").add(Restrictions.eq(\"roles.roleid\", (short)1));\r\n\t\tdetachedCriteria.add(Restrictions.eq(\"roleid\",1));\r\n\t\tdetachedCriteria.addOrder(Order.desc(\"systemno\"));\r\n\t\tthis.page=basicService.findPageByCriteria(detachedCriteria, pageSize, pageNo);\r\n\t\t\t\t\r\n\t\treturn SUCCESS;\r\n\t}",
"@Override\r\n\tpublic List<Teacher> findallTeachers() throws Exception {\n\t\ttry {\r\n\t\t\treturn this.dao.findallTeachers();\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t}",
"Page<ServiceUserDTO> findAll(Pageable pageable);",
"@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}",
"@mybatisRepository\r\npublic interface StuWrongDao {\r\n List<StuWrong> getUserListPage(StuWrong stuwrong);\r\n List<StuWrong> searchStuWrongListPage(String attribute,String value);\r\n}",
"public void doGet(HttpServletRequest req, HttpServletResponse resp){\n\n req.setAttribute(\"page\", \"null\");\n if (!LoginStatus.getStatus()){ // True if the user has not logged in to an account\n req.setAttribute(\"isApproved\", \"0\");\n req.setAttribute(\"log\", LoginStatus.getLogInUrl(\"/create_profile\"));\n try {\n req.setAttribute(\"logIn\", LoginStatus.getLogInUrl(\"/\"));\n req.setAttribute(\"createProf\", LoginStatus.getLogInUrl(\"/create_profile\"));\n req.getRequestDispatcher(\"Home2.jsp\").forward(req, resp);\n } catch(Exception e) {e.printStackTrace();}\n }\n else{ // Runs if the user has logged in to an account\n UserService userService = UserServiceFactory.getUserService(); // Finds the user's email from OAuth\n com.google.appengine.api.users.User user = userService.getCurrentUser();\n String email = user.getEmail();\n req.setAttribute(\"isApproved\", \"1\");\n req.setAttribute(\"log\", LoginStatus.getLogOutUrl(\"/\"));\n\n long curTime = new Date().getTime(); // Calculates the current time as a milliseconds timestamp\n\n\n List<Entity> queriedTrips = queryManager.query(\"trip\",\"lastOrder\", curTime-21600000, 1000,Query.FilterOperator.GREATER_THAN);\n // Queries the trips to find those that are still available for orders\n ArrayList<Trip> trips = new ArrayList<Trip>(); // Valid trips\n HashSet<Key> unique = new HashSet<Key>(); // Checks to see if a user has already joined a trip\n List<Entity> myOrders = queryManager.query(\"order\", \"email\", email ,1000, Query.FilterOperator.EQUAL);\n // Checks the orders that belong to this user\n for(Entity order:myOrders){\n\n unique.add(order.getParent()); // Adds the keys of the trips the users have joined\n\n }\n\n for (Entity trip : queriedTrips){\n if(!unique.contains(trip.getKey())) { // True if the user has not gone on said trip\n trips.add(new Trip(trip)); // Serializes the trip entity to a trip object in the ArrayList\n }\n }\n req.setAttribute(\"trips\", new Gson().toJson(trips)); // Returns a Json representation of the trips\n try{\n req.getRequestDispatcher(\"Home1.jsp\").forward(req, resp); // Sends the user back to the home page\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\r\n\t\tpublic boolean addTeacher(TeacherDto teacherDto) {\n\t\t\ttry{\r\n\t\t\t\tList<Teacher> list = teacherRepository.findBySubjectAndStudentid(teacherDto.getSubject(), teacherDto.getStudentid());\r\n\t\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\t\t\r\n\t\t\tArrayList arr=new ArrayList<>();\r\n\t\t\tarr.add(\"MATHS\");\r\n\t\t\tarr.add(\"PHYSICS\");\r\n\t\t\tarr.add(\"CHEMISTRY\");\r\n\t\t\tif(!arr.contains(teacherDto.getSubject()))\r\n\t\t\t{\r\n\t\t\tTeacher teacher=teacherRepository.save(TeacherTransformer.getTeacherDtoToEntity(teacherDto));\r\n\t\t\tStudent student = restTemplate.getForObject(\"http://localhost:8080/studentservice/students/\" + teacher.getStudentid(),Student.class);\r\n\t if(teacher.getSubject().toUpperCase().equals(\"MATHS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setMaths(teacher.getMarks());\r\n\t\t\t}else if(teacher.getSubject().toUpperCase().equals(\"PHYSICS\"))\r\n\t\t\t{\r\n\t\t\t\tstudent.setPhysics(teacher.getMarks());\r\n\t\t\t}\r\n\t\t\telse if(teacher.getSubject().toUpperCase().equals(\"CHEMISTRY\")) \r\n\t\t\t{\r\n\t\t\t\tstudent.setChemistry(teacher.getMarks());\r\n\t\t\t}else {}\r\n\t\t\t\t\trestTemplate.postForObject(\"http://localhost:8080/studentservice/students/update\", StudentTransformer.getStudentEntityToDto(student), StudentDto.class);\r\n\t\t\t\t\treturn true;\r\n\t\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\t\t}catch(Exception e)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public interface AccountSerialService extends BaseService<AccountSerialModel,AccountSerial>{\n\n\n /**\n * 分页查询记账明细\n * @param userId\n * @param accountType\n * @param tradeType\n * @param bookkeeping\n * @param page\n * @param orderBy\n * @param order\n * @return\n * @throws Exception\n */\n public Page queryForPage(Long userId, AccountType accountType, AccountTradeType tradeType, AccountTradeType bookkeeping, Page page, String orderBy,\n String order) throws Exception;\n\n}",
"@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n}",
"public List<Employee> listAllCrud(){\n return employeeCrudRepository.findAll();\n }",
"@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(\"/homeserv\")\n\tpublic ModelAndView homePage(@ModelAttribute(\"deptpage\") Department det,HttpServletRequest request,HttpServletResponse response,/*Pageable pageable*/@RequestParam(required = false) Integer page)\n\t{\n\t\tHttpSession sess = request.getSession();\n\t\tList<Department> ldeptj = deptEmpService.readAllDeptServ();\n\t\tint size = ldeptj.size();\n\t\t//Page<Department> pages =deptEmpService.readAllDeptPage(pageable);\n\t\t\n\t\t//System.out.println(\"pages val\"+pages.getContent()+\" \" +pages.getNumber() +\" \"+pages.getSize()+pages.getNumberOfElements());\n\t\t\n\t\t\n\t\t//Locale cLoc = request.getLocale();\n\t\t\n\t\tUsernamePasswordAuthenticationToken authentication = (UsernamePasswordAuthenticationToken) SecurityContextHolder.getContext().getAuthentication();\n //validatePrinciple(authentication.getPrincipal());\n String loggedInUser = authentication.getName();\n System.out.println(\"user name in controller \"+loggedInUser);\n sess.setAttribute(\"loggedInUser\", loggedInUser);\n\t\tlog.info(\"hello homeserv\");\n\t\t\n\t\t\n\t\t//System.out.println(\"lang code \"+cLoc.getLanguage());\n\t\t//System.out.println(\"lang name\"+cLoc.getDisplayLanguage());\n\t\t\n\t\t/*\n\t\t * String uName = useDet.getUsername(); String password = useDet.getPassword();\n\t\t * System.out.println(\"uName \"+uName + \" password\"+ password +\"in controller\");\n\t\t */\n\t\t//List<Employee> lemps = dede.readAllEmp();\n\t\t//request.setAttribute(\"empall\", lemps);\n ModelAndView mdc = new ModelAndView(\"home3\");\n \n \n\t\t\n\t\t PagedListHolder<Department> pagedListHolder = new\n\t\t PagedListHolder<Department>(ldeptj); \n\t\t pagedListHolder.setPageSize(3);\n\t\t System.out.println(\"page count\"+pagedListHolder.getPageCount());\n\t\t mdc.addObject(\"maxPages\", pagedListHolder.getPageCount());\n\t\t \n\t\t page=null;\n\t\t if(page==null || page < 1 || page > pagedListHolder.getPageCount())\n\t\t\t \n\t\t\t page=1;\n\t\t \n\t\t mdc.addObject(\"page\", page); if(page == null || page < 1 || page >\n\t\t pagedListHolder.getPageCount()){ pagedListHolder.setPage(0);\n\t\t mdc.addObject(\"deptlv\", pagedListHolder.getPageList()); } else if(page <=\n\t\t pagedListHolder.getPageCount()) { pagedListHolder.setPage(page-1);\n\t\t mdc.addObject(\"deptlv\", pagedListHolder.getPageList()); }\n\t\t \n\t\t/*\n\t\t * int x =3; log.info(\"excecuting pagination\"); mdc.addObject(\"number\",\n\t\t * pages.getNumber()); mdc.addObject(\"totalPages\", pages.getTotalPages());\n\t\t * mdc.addObject(\"totalElements\", pages.getTotalElements());\n\t\t * mdc.addObject(\"size\", x); mdc.addObject(\"deptlv\",pages.getContent());\n\t\t */\n\t\tsess.setAttribute(\"ldeptj\", ldeptj);\n\t\t\n\t\tmdc.addObject(\"loggedInUser\",loggedInUser );\n\t\tmdc.addObject(\"size\", size);\n\t\t//mdc.addObject(\"deptlv\", ldeptj);\n\t\tmdc.addObject(\"hoser\", \"hseval\");\n\t\treturn mdc;\t\n\t\t\n\t\t\n\t\t\n\t}",
"public ArrayList<Teacher> getTeacherList()\r\n\t {\r\n\t\t return teacherList;\r\n\t }",
"@RequestMapping(value = \"/tutorlist\", method = RequestMethod.GET)\n\tpublic String listTutors(ModelMap model)\n\t{\n\t\tList<User> users = userService.findAllTutors();\n\t\tmodel.addAttribute(\"users\", users);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipalUsername());\n\t\treturn \"tutorslist\";\n\t}",
"public String getTeacherName() {\n/* 31 */ return this.teacherName;\n/* */ }",
"@SneakyThrows\n public static void main(String[] args) {\n List<Developer> all = new DeveloperServiceImpl().findAll();\n System.out.println(all.size());\n System.out.println(all.get(50));\n\n// Developer developerServiceByID = developerService.findByID(1L);\n// System.out.println(developerServiceByID);\n// GetQueryServiceImpl getQueryServiceImpl = new GetQueryServiceImpl();\n//\n// // Новый разработчик\n// DeveloperServiceImpl developerService = new DeveloperServiceImpl();\n// developerService.create(Developer.builder()\n// .developerID(14L)\n// .companyID(2L)\n// .age(23L)\n// .name(\"Рыжий\")\n// .email(\"asd@asd.asd\")\n// .gender(\"Male\")\n// .numberPhone(12345L)\n// .salary(1111L)\n// .build());\n\n // Новый проект\n// ProjectServiceImpl projectService = new ProjectServiceImpl();\n// projectService.create(Project.builder()\n// .id(4L)\n// .name(\"New Project\")\n// .cost(123456L)\n// .companyID(3L)\n// .customerID(1L)\n// .build());\n\n // Новый клиент\n// CustomerServiceImpl customerService = new CustomerServiceImpl();\n// customerService.create(Customer.builder()\n// .id(4L)\n// .name(\"Customer4\")\n// .budget(1000000L)\n// .companyID(2L)\n// .build());\n\n // изменить разработчика\n // default -(4,'Витя', 27, 'Male', 'abc3@com.ua', 8765434,1,5600),\n// developerService.update(4L, Developer.builder()\n// .name(\"newName\")\n// .age(33L)\n// .numberPhone(1234567L)\n// .companyID(1L)\n// .salary(600L)\n// .gender(\"Male\")\n// .email(\"abcder3@com.ua\")\n// .build());\n\n // удалить - разработчика/проект/клиента\n// developerService.delete(14L);\n// projectService.delete(4L);\n// customerService.delete(4L);\n\n // все юзеры 1-ого проекта по айди - done\n// System.out.println(getQueryServiceImpl.getDevelopersByProjectID(1L));\n// // сумма всех зарплат 1-ого проекта - done\n// System.out.println(getQueryServiceImpl.getSumSalariesByProjectID(1L));\n// // список всех Java - done\n// System.out.println(getQueryServiceImpl.getDevelopersByActivity(\"Java\"));\n// // список юзеров middle - done\n// System.out.println(getQueryServiceImpl.getDevelopersByLevel(\"middle\"));\n// //список проектов в формате: дата создания - название проекта - количество разработчиков на этом проекте.\n// System.out.println(getQueryServiceImpl.projectsWithCountDevelopers());\n\n\n// Map<Long, Developer> testMap = new HashMap<>();\n// Developer developer = Developer.builder()\n// .developerID(20L)\n// .name(\"User1\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer.getDeveloperID(), developer);\n//\n// Developer developer1 = Developer.builder()\n// .developerID(21L)\n// .name(\"User2\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer1.getDeveloperID(), developer1);\n//\n// Developer developer2 = Developer.builder()\n// .developerID(22L)\n// .name(\"User3\")\n// .age(10L)\n// .gender(\"Male\")\n// .email(\"abc1@a\")\n// .numberPhone(123345L)\n// .salary(1000L)\n// .companyID(1L)\n// .build();\n// testMap.put(developer2.getDeveloperID(), developer2);\n//\n// System.out.println(testMap);\n// Stream<Developer> developerStream = testMap.values().stream();\n// Stream<Developer> developerStream1 = developerStream.filter((testMap1) -> developer.getName().contains(\"1\"));\n// System.out.println(developerStream);\n// System.out.println(Arrays.toString(developerStream1.toArray()));\n\n }",
"public interface IStudentService {\n\n public Page<Student> findAllStudent(Pageable pageable);\n public List<Student> findAll();\n public Student findById(Long id);\n public Student save(Student student);\n public void deleteById(Long id);\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<Teacher> findAllTeacher(){\n\t\tList<Teacher> teachers = new ArrayList<Teacher>();\n\t\tSession session = null;\n\t\ttry{\n\t\t\tsession = HibernateSessionFactory.getSession();\n\t\t\tteachers = session.getNamedQuery(\"findAllTeacher\").list();\n\t\t}catch(Exception e){\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn teachers;\n\t}",
"public List<UserType> GetUserTypes() {\n/* 50 */ return this.userDal.GetUserTypes();\n/* */ }",
"public interface NewStudentInfoService {\n List<NewStudent> getAllStudent();\n}",
"@Repository\npublic interface UserMapper extends BaseMapper<User> {\n List<User> findAllStudentPage(Page<User> page);\n}",
"@Override\n\tpublic List<Teacher> findAll() {\n\t\treturn dao.findAll();\n\t}",
"public interface ItripUserService {\n\n /**\n * 根据id查询\n * @param id\n * @return\n * @throws Exception\n */\n public ItripUser getItripUserById(Long id)throws Exception;\n\n /**\n *\n * @param param\n * @return\n * @throws Exception\n */\n public List<ItripUser>\tgetItripUserListByMap(Map<String, Object> param)throws Exception;\n\n /**\n * 查询数目\n * @param param\n * @return\n * @throws Exception\n */\n public Integer getItripUserCountByMap(Map<String, Object> param)throws Exception;\n\n /**\n * 添加\n * @param itripUser\n * @return\n * @throws Exception\n */\n public Integer itriptxAddItripUser(ItripUser itripUser)throws Exception;\n\n /**\n * 修改\n * @param itripUser\n * @return\n * @throws Exception\n */\n public Integer itriptxModifyItripUser(ItripUser itripUser)throws Exception;\n\n /**\n * 删除\n * @param id\n * @return\n * @throws Exception\n */\n public Integer itriptxDeleteItripUserById(Long id)throws Exception;\n\n /**\n * 分页\n * @param param\n * @param pageNo\n * @param pageSize\n * @return\n * @throws Exception\n */\n public Page<ItripUser> queryItripUserPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;\n}",
"@ResponseBody\n @RequestMapping(value=\"/trainer/data\")\n public LinkedList<Trainer> showTrainer(){\n dbManager.initializeDatabase();\n LinkedList<Trainer> trainerList=dbManager.getTrainerList();\n dbManager.closeDatabase();\n return trainerList;\n }",
"@Override\nprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\tList<query_status_Bean> query_status_list=new query_status_Dao().select();\n\trequest.setAttribute(\"query_status_list\", query_status_list);\n\trequest.getRequestDispatcher(\"query_status_list_jsp.jsp\").forward(request, response);\n\t}",
"public interface StudentClassworkService {\n /**\n * 初始化作业主页面\n * @param model\n * @return\n */\n List<Map<String,Object>> initClasswork(StudentModel model);\n\n /**\n * 按学科获取学生的作业列表\n * @param model\n * @return\n */\n// List<StudentRecordModel> classworkList(StudentModel model);\n}",
"public interface StaffService {\n void saveStaff(Staff staff);\n void updateStaff(Staff staff);\n Staff login(String name);\n Staff findStaffById(String staffId);\n PageBean<Staff> findAll(int pageCode, int pageSize);\n PageBean<Staff> query(int pageCode, int pageSize);\n PageBean<Staff> higherQuery(int pageCode, int pageSize, Map<String,Object> params);\n\n}",
"public List<People> getPeople();",
"@Override\n\n protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\n protected void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException {\n //AccountDao dao = new AccountDao();\n\n DaoInterface<KeerthiAccount> dao = new AccountDaoImpl();\n KeerthiAccount keerthiAccount = new KeerthiAccount();\n String id = req.getParameter(\"id\");\n String name = req.getParameter(\"uname\");\n String accNum = req.getParameter(\"accNum\");\n String bal = req.getParameter(\"balance\");\n\n keerthiAccount.setId(Integer.parseInt(id));\n keerthiAccount.setUserName(name);\n keerthiAccount.setAccNumber(Long.parseLong(accNum));\n keerthiAccount.setBalance(Double.parseDouble(bal));\n\n dao.update(keerthiAccount);\n //DAO.updateAccount(Integer.parseInt(id), name, Long.parseLong(accNum), Double.parseDouble(bal));\n\n ServletContext ctxt = req.getSession().getServletContext();\n //get bean factory\n ApplicationContext appContext = WebApplicationContextUtils.getRequiredWebApplicationContext(ctxt);\n AccountDao accountDao = (AccountDao) appContext.getBean(\"keerthidAccDao\");\n accountDao.updateAccount(keerthiAccount);\n\n // dao.update(keerthiAccount);\n //dao.updateAccount(Integer.parseInt(id), name, Long.parseLong(accNum), Double.parseDouble(bal));\n\n\n RequestDispatcher rd = req.getRequestDispatcher(\"keeAccountList\");\n rd.forward(req, res);\n }\n }",
"public interface OverTimeDao extends BaseDao<OverTimeRecord>{\n\n List<OverTimeRecord> findByDateAndResource(java.util.Date beginDate, java.util.Date endDate,HrmResource resource);\n\n List<OverTimeRecord> findByDateForRepeat(java.util.Date beginDate, java.util.Date endDate,HrmResource resource);\n\n// PageInfo list(Date beginDate, Date endDate, List<HrmResource> resources, int pageNo, int pageSize);\n PageInfo list(Date beginDate, Date endDate, List<Integer> resources, int pageNo, int pageSize);\n}",
"@GET\r\n @Produces(MediaType.TEXT_PLAIN)\r\n public String getIt() {\r\n\r\n\r\n \tApplicationContext appContext = new ClassPathXmlApplicationContext(\"beans/Beans.xml\");\r\n\r\n \tPerson pers = (Person) appContext.getBean(\"personBean\");\r\n\r\n \tSystem.out.println(pers.getPerNombre());\r\n\r\n\r\n \tPersonDaoImp personDao = new PersonDaoImp();\r\n\r\n \tPerson aux = new Person(\"Rivero\", new Date(), \"Matias\", 36133395, \"DNI\");\r\n \taux.setPerId(1);\r\n\r\n \tpersonDao.addOrUpdate(aux);\r\n\r\n \tSystem.out.println(personDao.getAll().isEmpty() ? \"Nada\" : \"Varios\");\r\n\r\n return \"Got it!\";\r\n }",
"public interface BirthdayService {\n\n List<Birthday> getAllBirthdayInfo();\n\n List<Birthday> queryBirthdayInfoByPage(int nowPage, int pageSize);\n\n int queryCount();\n\n}",
"@RequestMapping(\"/programmers-list\")\n public List<Programmer> getProgrammerListMembers() {\n return programmerService.getProgrammersListMembers();\n\n }",
"public interface UserService extends ICommonService<User> {\r\n\r\n public Page<User> findPage(User user,Integer sortId, int pagenum, int pagesize);\r\n\r\n public List<Map<String, Object>> pageToExcel(Map<String, Object> map);\r\n\r\n}",
"@RequestMapping(value=\"/admin/resource/list\")\n\tpublic String teacherResouInfo(HttpSession session,Model model ,@RequestParam(value=\"pageNumber\",defaultValue=\"0\") \n\tint pageNumber, @RequestParam(value=\"pageSize\", defaultValue=\"10\") int pageSize){\n\t\tlogger.info(\"#####Into TeacherResouInfoPageController#####\");\n\t\tUserInfo userInfo = (UserInfo) session.getAttribute(GlobalDefs.SESSION_USER_INFO);\n\t\tUser user = userInfo.getUser();\n\t\tif(user.getRole().equals(\"user\")){\n\t\t\treturn \"redirect:/admin\";\n\t\t}else{\n\t\t\ttry {\n\t\t\t\tList<CourseResource> list = resourceService.listAllByUser(user);\n\t\t\t\tint pageNum = MyUtil.getPageNumber(pageNumber, list.size(), pageSize);\n\t\t\t\t\n\t\t\t\tPage<CourseResource> onePage = resourceService.findAllResouByUserAndStatus(pageNum, pageSize, user, GlobalDefs.STATUS_RESOURCE);\n\t\t\t\tmodel.addAttribute(\"page\", onePage);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (userInfo.getUser().getRole().equals(\"teacher\")) {\n\t\t\t\tlogger.info(\"----- teacher resource----\");\n\t\t\t\treturn \"admin.teacher.resource.list\";\n\t\t\t} else if (userInfo.getUser().getRole().equals(\"enterprise\")) {\n\t\t\t\tlogger.info(\"----- enterprise resource ----\");\n\t\t\t\treturn \"admin.enterprise.resource.list\";\n\t\t\t} else {\n\t\t\t\treturn \"404\";\n\t\t\t}\n\t\t}\n\t}",
"@GetMapping(\"/\")\n public String viewHomePage(Model model){\n model.addAttribute(\"listEmployee\",employeeService.getAllEmployees());\n return \"index\";\n }",
"@GetMapping(\"/sort-desc\")\n public List<TeacherDTO> getSortedRevertTeachers() {\n return teacherService.getSortedRevertTeachers().stream()\n .map(this::convertToDto)\n .collect(Collectors.toList());\n }"
] | [
"0.67277944",
"0.6652601",
"0.65990126",
"0.6525002",
"0.6461599",
"0.6366909",
"0.63484323",
"0.6343151",
"0.62964904",
"0.6230035",
"0.6206726",
"0.619215",
"0.61886764",
"0.61879814",
"0.6136389",
"0.60965896",
"0.6084007",
"0.6065308",
"0.6052744",
"0.60428745",
"0.6041713",
"0.6039169",
"0.6000159",
"0.5990046",
"0.59586334",
"0.5954197",
"0.5936223",
"0.5929274",
"0.59269637",
"0.5925834",
"0.59193456",
"0.59139085",
"0.59091616",
"0.5905266",
"0.5904698",
"0.5896503",
"0.5890582",
"0.58774143",
"0.5869696",
"0.58665836",
"0.5863673",
"0.58519703",
"0.58470696",
"0.5838181",
"0.5831706",
"0.58315784",
"0.58305293",
"0.58287174",
"0.5827061",
"0.58146405",
"0.5810195",
"0.580806",
"0.58057487",
"0.5805227",
"0.58022577",
"0.57937765",
"0.5790166",
"0.578711",
"0.57857805",
"0.5775452",
"0.57729506",
"0.576268",
"0.5742458",
"0.5740443",
"0.57404196",
"0.5739442",
"0.57376486",
"0.5734136",
"0.5730253",
"0.5728328",
"0.5725126",
"0.5724633",
"0.5721124",
"0.5719942",
"0.5709781",
"0.5709169",
"0.5707843",
"0.57069314",
"0.5701149",
"0.56999695",
"0.56999254",
"0.56937134",
"0.56922174",
"0.5689728",
"0.5685317",
"0.5683257",
"0.5681698",
"0.5674979",
"0.56670743",
"0.5664755",
"0.5661058",
"0.5660422",
"0.5653863",
"0.56516385",
"0.5645737",
"0.56446487",
"0.56410885",
"0.56399053",
"0.5637599",
"0.5631569"
] | 0.7954093 | 0 |
Created by Sermilion on 15/02/2017. Project: Listening <a href=" <a href=" | public interface ModelData<A> {
List<A> getPrimaryData();
Map<String, String> getMetaData();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void linkPressed(String href) {\r\n String[] s = href.split(\":\");\r\n if (s.length >= 2) {\r\n /* Ex: \"toggle:Window lamp\"\r\n this means we should toggle the Window lamp. */\r\n if (s[0].equals(\"toggle\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n toggleRoomObject(o.address, o.byteValue);\r\n }\r\n }\r\n /* Ex: \"on:Window lamp\"\r\n this means we should turn ON the Window lamp. */\r\n else if (s[0].equals(\"on\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n setRoomObject(o.address, o.byteValue ,true);\r\n }\r\n }\r\n /* Ex: \"off:Window lamp\"\r\n this means we should turn OFF the Window lamp. */\r\n else if (s[0].equals(\"off\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n setRoomObject(o.address, o.byteValue, false);\r\n }\r\n }\r\n }\r\n }",
"@Test\n public void testLink() {\n try {\n Message email = emailUtils.getMessagesBySubject(\"You've received a document via HelloSign\", true, 5)[0];\n String link = emailUtils.getUrlsFromMessage(email, Data.mainUrl + \"/t\").get(0);\n\n driver.get(link);\n\n //TODO: continue testing\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"HtmlPage clickLink();",
"private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}",
"String nextLink();",
"@Test\r\n\tpublic void verifyUrlOnClickingListenNow(){\r\n\t\tdriver.get(url+radioUrl+audioUrl);\r\n\t\tObject response = jse.executeScript(\r\n\t\t\t\t\"if(document.readyState === 'complete'){\"\r\n\t\t\t\t+ \"document.querySelector('.cs-has-media').children[0].children[0].click();\"\r\n\t\t\t\t+ \"if(documet.readyState === 'complete'){\"\r\n\t\t\t\t+ \"var currUrl = window.location.href;\"\r\n\t\t\t\t+ \"return currUrl;}}\", \"\");\r\n\t\tAssert.assertTrue(response.toString().equalsIgnoreCase(\"https://radio.abc.net.au/programitem/pg1aGbWlx6?play=true\"), \"Url not redirected as expected.\");\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }",
"private void subscribeShortLink() {\n mProductDetailsViewModel.getShortLink().observe(this, shortLink -> {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(TEXT_PLAIN);\n intent.putExtra(Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name));\n intent.putExtra(Intent.EXTRA_TEXT, shortLink.toString());\n startActivity(intent);\n });\n }",
"@Test\n\tpublic void testLocalLinkHTML(){\n\t\t\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.html-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tTestUtils.view().getTextArea().scrollTo(893,false);\n \tgotoPositionAndWait(893);\n \tPause.pause(2000);\n \tHyperlinkSource src = new HTMLHyperlinkSource();\n\t\tfinal Hyperlink h = src.getHyperlink(b, 893);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileAndGotoHyperlink);\n\t\tassertEquals(29, h.getStartLine());\n\t\tassertEquals(29, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// moved same file, but below\n\t\tassertEquals(b.getPath(),TestUtils.view().getBuffer().getPath());\n\t\tassertEquals(114, TestUtils.view().getTextArea().getCaretLine());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}",
"@Test\n\tpublic void testLocalLinkHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = new HTMLHyperlinkSource();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 893);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileAndGotoHyperlink);\n\t\tassertEquals(29, h.getStartLine());\n\t\tassertEquals(29, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\t// moved same file, but below\n\t\tassertEquals(b.getPath(),TestUtils.view().getBuffer().getPath());\n\t\tassertEquals(114, TestUtils.view().getTextArea().getCaretLine());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}",
"public abstract String linkText();",
"@Override\n public void onClick(View v) {\n Toast.makeText(c, \"yes\" + article.getWeblink(), Toast.LENGTH_LONG).show();\n }",
"@UiHandler(\"talksLink\")\r\n\tprotected void onClickTalksLink(ClickEvent event) {\r\n\t\tnavigation.goTo(TalkListPage.class, PageStates.empty());\r\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n Pattern pattern = Pattern.compile(\"<a\\\\s+(href=[^>]+)>([^<]+)<\\\\/a>\");\n\n StringBuilder sb = new StringBuilder();\n String currentLine = reader.readLine();\n\n while (!\"END\".equals(currentLine)) {\n sb.append(currentLine).append(System.getProperty(\"line.separator\"));\n currentLine = reader.readLine();\n }\n\n Matcher matcher = pattern.matcher(sb);\n\n while (matcher.find()) {\n // group 1 = <a da stane => [URL\n // group 3 = > da stane => ]\n // group 5 = </a> da stane => [/URL]\n\n int startIndex = matcher.start();\n int endIndex = matcher.end();\n\n String replacedTag = \"[URL \" + matcher.group(1) + \"]\" + matcher.group(2) + \"[/URL]\";\n sb.replace(startIndex, endIndex, replacedTag);\n matcher = pattern.matcher(sb);\n\n }\n\n\n\n\n System.out.println(sb);\n\n\n }",
"@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}",
"@Override\n public void onPourSoupRaised() {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\t\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n \n }",
"@Override\n public void onClick(View v) {\n mAndroidServer.listenForConnections(new AndroidServer.ConnectionCallback() {\n @Override\n public void connectionResult(boolean result) {\n if (result == true) {\n Toast.makeText(mActivity, \"SUCCESSFULLY CONNECTED TO A VIEWER\", Toast.LENGTH_LONG);\n }\n }\n });\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}",
"@Test\n\tpublic void demoqaLinkIsClickable() {\n\t\tassertTrue(ServicesLogic.demoqaLinkIsClickable());\n\t}",
"String getLink();",
"public interface LinkClickHandler { void onLinkClicked(GURL url); }",
"HtmlPage clickSiteLink();",
"@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(\"https://www.google.com/?gws_rd=ssl#q=\" + mAnswer.getWord());\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }",
"private void launchLink(List<Track> tracks) {\n List<org.jajuk.base.File> toPlay = new ArrayList<org.jajuk.base.File>(1);\n for (Track track : tracks) {\n File file = track.getBestFile(true);\n if (file != null) {\n toPlay.add(file);\n }\n }\n text.setCursor(UtilGUI.WAIT_CURSOR);\n QueueModel.push(\n UtilFeatures.createStackItems(UtilFeatures.applyPlayOption(toPlay),\n Conf.getBoolean(Const.CONF_STATE_REPEAT), true),\n Conf.getBoolean(Const.CONF_OPTIONS_PUSH_ON_CLICK));\n // Change icon cursor and wait a while so user can see it in case\n // the PUSH_ON_CLICK option is set, otherwise, user may think\n // nothing appened.\n try {\n Thread.sleep(250);\n } catch (InterruptedException e1) {\n Log.error(e1);\n }\n text.setCursor(UtilGUI.LINK_CURSOR);\n }",
"private void writeLink() throws SAXException, IOException {\n if (state.uri != null && state.uri.trim().length() > 0) {\n xhtml.startElement(\"a\", \"href\", state.uri);\n xhtml.characters(state.hrefAnchorBuilder.toString());\n xhtml.endElement(\"a\");\n } else {\n try {\n //if it isn't a uri, output this anyhow\n writeString(state.hrefAnchorBuilder.toString());\n } catch (IOException e) {\n handleCatchableIOE(e);\n }\n }\n state.hrefAnchorBuilder.setLength(0);\n state.inLink = false;\n state.uri = null;\n\n }",
"public String getLink();",
"public void notifyPage(Webpage page, Weblink link);",
"public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }",
"public void hyperlinkUpdate(HyperlinkEvent e){\n\t\tif(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){\n\t\t\t\n\t\t\t\t// Take the link-URL clicked, simplify, and open in browser.\n\t\t\t\t// Simplification involves conversion to an ASCII character\n\t\t\t \t// set (to weed out any unusual characters).\n\t\t\tString ascii_url;\n\t\t\ttry{ascii_url = e.getURL().toString();\n\t\t\t\tascii_url = new URL(ascii_url).toURI().toASCIIString();\n\t\t\t} catch(Exception exception){\n\t\t\t\tgui_globals.open_url(this, e.getURL().toString());\n\t\t\t\treturn; \n\t\t\t} // If conversion fails, just pass off to the browser, which\n\t\t\t // may also fail, but will show a graphical warning message.\n\t\t\t\n\t\t\tgui_globals.open_url(this, ascii_url);\n\t\t}\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn \"下载链接:\"+showLink;\n\t\t}",
"java.lang.String getClickURL();",
"public void onLinksClick(View v){\n // Launch the Links activity\n onAnyClick(Links.class);\n }",
"public static WebElement lnk_clickSubscribeNow() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"//Strong[text()='Subscribe now']\"));\r\n \t\tAdd_Log.info(\"Subscribe now hyperlink is click on the page.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Subscribe now hyperlink is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"@UiHandler(\"speakersLink\")\r\n\tprotected void onClickSpeakersLink(ClickEvent event) {\r\n\t\tnavigation.goTo(SpeakerListPage.class, PageStates.empty());\r\n\t}",
"SimpleLink createSimpleLink();",
"private String findLink(BasicPanel panel, Element e)\n {\n String uri = null;\n\n for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node.getParentNode())\n {\n uri = panel.getSharedContext().getNamespaceHandler().getLinkUri((Element) node);\n\n if (uri != null)\n {\n try\n {\n URI linkUri = getLinkUri(uri);\n String target = panel.getSharedContext().getNamespaceHandler().getAttributeValue((Element) node, \"target\");\n logger.debug(\"link target: \" + target);\n if (EXTERNAL_TARGET.equalsIgnoreCase(target))\n {\n logger.info(\"launch external browser for \" + uri);\n BareBonesBrowserLaunch.openURL(linkUri.toString());\n uri = null;\n }\n else if (EXTERNAL_MORE_ASSIGNMENT.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more assignment with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.ASSIGNMENT, eloUri);\n }\n else\n {\n logger.info(\"could not show more assignment (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n else if (EXTERNAL_MORE_RESOURCES.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more resources with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.RESOURCES, eloUri);\n }\n else\n {\n logger.info(\"could not show more resources (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n break;\n }\n catch (URISyntaxException ex)\n {\n logger.error(\"error in uri\", ex);\n }\n }\n }\n\n return uri;\n }",
"public void clickShowReceived() throws UIAutomationException{\t\t\r\n\t\telementController.requireElementSmart(fileName,\"Show Received In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Received In Social Panel\");\r\n\t\tUIActions.click(fileName,\"Show Received In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Received In Social Panel\");\r\n\t\t\t\r\n\t\t/*\t// Check by clicking on 'show sent' it changes to 'show received'\r\n\t\t\telementController.requireElementSmart(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInPage=UIActions.getText(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInXML=dataController.getPageDataElements(fileName,\"Show Received Text\" , \"Name\");\r\n\t\t\tif(!linkTextInPage.contains(linkTextInXML)){\r\n\t\t\t\tthrow new UIAutomationException( \"'\"+linkTextInXML +\"' not found\");\r\n\t\t\t}*/\r\n\t}",
"public void clickLink(String link){\n\t\tSystem.out.println(\"CONTROLLER: LINK WAS CLICKED: \" + link);\n\t\tURL url_ = null;\n\t\ttry{\n\t\t\turl_ = new URL(new URL(this.url), link);\n\t\t\tthis.content = BrowsrDocumentValidator.assertIsValidBrowsrDocument(url_);\n\t\t\tthis.url = url_.toString();\n\t\t\tSystem.out.println(\"URL CONTROLLER:\" + this.url);\n\t\t} catch (Exception exception){\n\t\t\tthis.content = new Text(exception.toString());\n\t\t}\n\n\t}",
"public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long id) {\n\t\tListView newsList = (ListView)findViewById(R.id.list);\n\t\tString rssLink = ((INewsData)newsList.getAdapter().getItem(position)).link;\n\t\t// bad hack , need to replace later\n\t\trssLink = rssLink.substring(linkSubstr);\n\t\tStringBuilder link = new StringBuilder();\n\t\tlink.append(\"http://www.poli-sons.fr/\");\n\t\tlink.append(rssLink);\n\t\tthis.startActivity(new Intent(this,IRss.class).putExtra(\"link\", link.toString()));\n\t}",
"public void htmlReference(View v){\n Intent intent = new Intent(this, HtmlTagsActivity.class);\n startActivity(intent);\n }",
"public void onLearnMoreClickedListener(View view) {\n Toast.makeText(this, \"Go to service page on the website . . . \", Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onComponentTag(final ComponentTag _tag)\n {\n super.onComponentTag(_tag);\n _tag.setName(\"a\");\n _tag.put(\"href\", \"#\");\n onComponentTagInternal(_tag);\n }",
"@Override\n public void onTextLinkClick(View textView, String clickedString) {\n if(clickedString.equalsIgnoreCase(\"_fertilization\")){\n Log.e(\"Hyperlink is :1: \" + clickedString, \"Hyperlink is :: \" + clickedString);\n }else if(clickedString.equalsIgnoreCase(\"_Nitrogen\")){\n Intent i = new Intent(CP_Fertilization.this,Nitrogen.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_Phosphorous_and_potash\")) {\n Intent i = new Intent(CP_Fertilization.this,PhosphorusandPotash.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_calcium\")) {\n Intent i = new Intent(CP_Fertilization.this,CalciumnMagnisium.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_sulphur\")) {\n Intent i = new Intent(CP_Fertilization.this,Sulphur.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_micronutrients\")) {\n Intent i = new Intent(CP_Fertilization.this,Micronutrient.class);\n startActivity(i);\n }else\n {\n Log.e(\"Hyperlink is :x: \" + clickedString, \"Hyperlink is :: \" + clickedString);\n }\n }",
"public boolean clickMyWebinarsLink(){\n\t\tif(util.clickElementByLinkText(\"My Webinars\")==\"Pass\"){\n\t\t\tSystem.out.println(\"Left Frame >> My Webinar link clicked successfully...............\");\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n \t\t\n \t}",
"private Hyperlink makeHyperlink(){\n\t\tHyperlink ret = new Hyperlink();\n\t\tret.setId(\"variable\");\n\t\tret.setOnMouseClicked(e -> clickedVariable(ret));\n\t\tvBox.getChildren().add(ret);\n\t\treturn ret;\n\t}",
"void openLink(Link target);",
"protected APPAAnnounce() {\n\n url = AppaLounge.BASE_URL + \"announcements/2/\";\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTextHttp();\n\t\t\t}",
"public static void m15844c() {\n HashMap hashMap = new HashMap();\n hashMap.put(\"action_type\", \"click\");\n C8443c.m25663a().mo21606a(\"guest_connection_anchor\", hashMap, Room.class);\n }",
"public static void main(String[] args) throws IOException, InterruptedException {\n\t\t\n\t\tWebDriver driver= new ChromeDriver();\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\rahul-shar\\\\chromedriver_win32 (17)\\\\chromedriver.exe\");\n\t\t\n\t\tdriver.get(\"https://demoqa.com/links\");\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\tList<WebElement> links= driver.findElements(By.tagName(\"a\"));\n\t\t\n\t\tfor(int i=0;i<links.size();i++) {\n\t\t\t\n\t\t\tString urlLinks=links.get(i).getAttribute(\"href\");\n\t\t\tSystem.out.println(urlLinks);\n\t\t\tString text=links.get(i).getText();\n\t\t\t//System.out.println(text);\n\t\t\t\n\t\t\t//verifyLinks(urlLinks);\n\t\t\t\n\t\t}\n\t\tdriver.close();\n\t\t\n\n\t}",
"@Override\n public void onClick(View v) {\n if (mListenr != null) {\n mListenr.onClick(v, tag);\n }\n }",
"@Test\n\tpublic void testGetLinksUpperCaseLink() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A HREF=\\\"test.com\\\"> junk junk\", null);\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}",
"@Override\n public void onClick(View v) {\n HashMap<String, String> hash = new HashMap<String, String>();\n hash.put(\n TextToSpeech.Engine.KEY_PARAM_STREAM,\n String.valueOf(AudioManager.STREAM_NOTIFICATION));\n textToSpeach.speak(questionText.getText().toString(), TextToSpeech.QUEUE_ADD, hash);\n }",
"@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.zhy.socket.SocketClientDemoActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}",
"public void readMore22(View view) {\n String readMore22 = \"Website: http://www.kilivr.com/\";\n displayMessage22(readMore22);\n }",
"@Override\n public void onClick(View view) {\n Intent Getintent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://feedback.avriant.com\"));\n startActivity(Getintent);\n }",
"@Test\n\tpublic void testHTMLAsXML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick.parser.xml-switch\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}",
"public void AdminLink(){\n\t\tAdminLink.click();\n\t}",
"@Override\n\tprotected void start () {\n\t\tsuper.start();\t\t\n\t\tncName = mNode.getAttribute( AT_LINK_NAME );\n\n\t}",
"private String externalLink2Anchor(String href) {\n\t\t\n\t\tString replaceText = null;\n\t\tString id = baseId + \"-\" + UUID.uuid(4);\n\t\tString target = (openLinksinNewTab) ? \"_blank\" : \"_self\";\n\t\t\n\t\tLinkInfo pli = new LinkInfo(id, LinkType.EXTERNAL, href, target);\n\t\tparserResult.linkInfos.add(pli);\n\t\treplaceText = \"<a id='\" + id + \"' target='\" + target + \"' href='\" + href + \"'\";\n\t\t\n\t\treturn replaceText;\n\t}",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}",
"@Override\n public void onClick(View view) {\n Log.d(\"LoginActivity\", \"// span link clicked..\");\n }",
"void queueInternalLinks(Elements paragraphs) {\n // FILL THIS IN!\n\t\tfor(Element paragraph: paragraphs)\n\t\t{\n\t\t\tIterable<Node> iterator = new WikiNodeIterable(paragraph);\n\t\t\tfor(Node node: iterator)\n\t\t\t{\n\t\t\t\tif(node instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString link = node.attr(\"href\");\n\t\t\t\t\tif(link.startsWith(\"/wiki/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tqueue.add(\"https://en.wikipedia.org\" + ((Element)node).attr(\"href\"));\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void clickContactUS() {\n\t\tSystem.out.println(\"Clicked contactus link\");\n\t}",
"@Override\r\n public void onClick(View v){\n RequestUrl(\"led1\");\r\n }",
"private URI talkUri(String botName) throws URISyntaxException {\n return new URI(composeUri(\"talk\", botName, null, null));\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 setLink(String link)\n {\n this.link = link;\n }",
"public void readMore24(View view) {\n String readMore24 = \"Website: http://www.smsgh.com\";\n displayMessage24(readMore24);\n }",
"public void onClickAddLink(View v) {\n linkDefined = true;\n switch ((int) linkType.getSelectedItemId()) {\n case 0:\n linkTypeValue = \"link\";\n break;\n case 1:\n linkTypeValue = \"media\";\n break;\n default:\n break;\n }\n linkStringList += links.getText() + \"|\" + linkTypeValue + \";\";\n links.setText(\"\");\n }",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlisten_word();\n\t\t\t}",
"public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}",
"private void link(MainActivity pActivity) {\n\n\t\t}",
"public String clickOnPresenternameLink() {\n String linkName=presenterNameLink.getText().substring(0, 21);\n waitAndClick(presenterNameLink);\n return linkName;\n\t}",
"private void createAndListen() {\n\n\t\t\n\t}",
"public void clickOnLaceBootsLink(){\n Reporter.log(\"clicking on boots \"+ bootsLink+\"<br>\");\n clickOnElement(bootsLink);\n }",
"public void readMore14(View view) {\n String readMore14 = \"Website: http://ologa.com/\";\n displayMessage14(readMore14);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}",
"public void ClickNotesAndMessagesPage() {\r\n\t\tnotesandmessages.click();\r\n\t\t\tLog(\"Clicked the \\\"Notes and Messages\\\" button on the Birthdays page\");\r\n\t}",
"public String getLink() {\n return link;\n }",
"public void clickOnEngagementLink() {\n getLogger().info(\"Click on engagement link\");\n try {\n waitForClickableOfElement(eleEngagementLink, \"Wait for click on engagement link\");\n clickElement(eleEngagementLink, \"Click on engagement\");\n NXGReports.addStep(\"Verify click on engagement link \", LogAs.PASSED, null);\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify click on engagement link \", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"public void generateEnquireLink();",
"public boolean clickScheduleAWebinarLink(){\n\t\tif(util.clickElementByLinkText(\"Schedule a Webinar\")==\"Pass\"){\n\t\t\tSystem.out.println(\"Left Frame >> Schedule A Webinar link clicked successfully..................\");\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void clickAssertionLinkAdd() {\r\n\t\tString Expected1 = \"The link has been added.\";\r\n\t\tString Actualtext1 = driver.findElement(By.xpath(\"//*[@id=\\\"content-section\\\"]/div/div[2]\")).getText();\r\n\t\tAssert.assertEquals(Actualtext1, Expected1);\r\n\t\tSystem.out.println(Actualtext1);\r\n\r\n\t}",
"@Override\r\n public void onClick(View v){\n RequestUrl(\"led2\");\r\n }",
"public ClickListener(){\n System.out.println(\"I've been attached\");\n }",
"public void clickShowSent() throws UIAutomationException{\t\t\r\n\t\telementController.requireElementSmart(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\tUIActions.click(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\t\r\n\t\t/*\t// Check by clicking on 'show sent' it changes to 'show received'\r\n\t\t\telementController.requireElementSmart(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInPage=UIActions.getText(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInXML=dataController.getPageDataElements(fileName,\"Show Received Text\" , \"Name\");\r\n\t\t\tif(!linkTextInPage.contains(linkTextInXML)){\r\n\t\t\t\tthrow new UIAutomationException( \"'\"+linkTextInXML +\"' not found\");\r\n\t\t\t}*/\r\n\t}",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"public void selectEventLink(String inputEventName);",
"public LinkButton( String text) {\n\t\tsuper( text);\n\t\tinit();\n\t}",
"String getHref();",
"private boolean getLinks() {\n return false;\n }",
"public String getLink() {\r\n return link;\r\n }",
"@Test\n\tpublic void testHTML(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tBuffer b = TestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \taction(\"sidekick-tree\");\n \tPause.pause(2000);\n\n \tHyperlinkSource src = HTMLHyperlinkSource.create();\n\t\tfinal Hyperlink h = src.getHyperlink(TestUtils.view().getBuffer(), 3319);\n\t\tassertNotNull(h);\n\t\tassertTrue(h instanceof jEditOpenFileHyperlink);\n\t\tassertEquals(67, h.getStartLine());\n\t\tassertEquals(67, h.getEndLine());\n\t\tGuiActionRunner.execute(new GuiTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void executeInEDT() throws Throwable {\n\t\t\t\th.click(TestUtils.view());\n\t\t\t}\n\t\t});\n\t\t\n\t\tassertEquals(\"jeditresource:/SideKick.jar!/index.html\",TestUtils.view().getBuffer().getPath());\n\t\t\n\t\tTestUtils.close(TestUtils.view(), TestUtils.view().getBuffer());\n\t\tTestUtils.close(TestUtils.view(), b);\n\t}",
"@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(url);\n //Se crea un intent implicito para visualizar los links en un navegador\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n //Se inicia la actividad del navegador\n activityt.startActivity(intent);\n }"
] | [
"0.61162275",
"0.58788824",
"0.5807308",
"0.5707244",
"0.5703681",
"0.56766236",
"0.56169015",
"0.55666524",
"0.55603117",
"0.5558839",
"0.5551768",
"0.5547441",
"0.5464703",
"0.5440323",
"0.54288256",
"0.542752",
"0.5417707",
"0.53743804",
"0.5356211",
"0.53476274",
"0.5343601",
"0.5341655",
"0.5341484",
"0.5337636",
"0.5330171",
"0.5328047",
"0.53227097",
"0.5318667",
"0.53125757",
"0.5306704",
"0.5297146",
"0.5282592",
"0.5278781",
"0.52522576",
"0.5251269",
"0.52461666",
"0.5243529",
"0.52340645",
"0.52213407",
"0.5214448",
"0.52092916",
"0.52037203",
"0.51976866",
"0.51895714",
"0.51840687",
"0.5176955",
"0.5163651",
"0.51370597",
"0.5134375",
"0.5119673",
"0.51152384",
"0.5109018",
"0.5107365",
"0.510695",
"0.51013666",
"0.50993234",
"0.50971216",
"0.50908595",
"0.5085422",
"0.5084325",
"0.508097",
"0.5080196",
"0.50792503",
"0.5076937",
"0.507346",
"0.506051",
"0.50538564",
"0.5048356",
"0.50465435",
"0.5042439",
"0.5040423",
"0.5032352",
"0.5031525",
"0.50278383",
"0.50262403",
"0.502227",
"0.5020937",
"0.501733",
"0.50140756",
"0.5007873",
"0.5007256",
"0.50071985",
"0.4996963",
"0.4991877",
"0.4990439",
"0.49892038",
"0.4987774",
"0.49782965",
"0.49780297",
"0.49771485",
"0.49764186",
"0.49757612",
"0.4972801",
"0.49714485",
"0.49618033",
"0.4961728",
"0.49605155",
"0.49572268",
"0.49510983",
"0.4950673",
"0.4950026"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (convertView == null) {
convertView = inflater.inflate(R.layout.list_search_item, null);
mainActivity = inflater.inflate(R.layout.activity_search, null); //for showing result not found
}
TextView name = (TextView) convertView.findViewById(R.id.flower_name);
ImageView img = (ImageView) convertView.findViewById(R.id.flower_pic);
TextView price = (TextView) convertView.findViewById(R.id.price);
name.setText(rowItems.get(position).getAdi());
//load pic cover using picasso
Picasso.with(context)
.load(rowItems.get(position).getResimKucuk())
.into(img);
price.setText(String.valueOf((int) rowItems.get(position).getSatisFiyat()));
return convertView;
} | {
"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}",
"private stendhal() {\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}",
"@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}",
"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\tprotected void initialize() {\n\n\t}",
"@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}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}"
] | [
"0.66730285",
"0.65698135",
"0.6524193",
"0.64818907",
"0.6477969",
"0.6459897",
"0.64150065",
"0.6378023",
"0.62785167",
"0.6256323",
"0.62391806",
"0.6225302",
"0.6203955",
"0.6196986",
"0.6196986",
"0.6193411",
"0.6188864",
"0.6175446",
"0.61352557",
"0.6129083",
"0.6081512",
"0.6078478",
"0.604346",
"0.6027257",
"0.6019896",
"0.6001062",
"0.5969694",
"0.5969694",
"0.59695363",
"0.5950136",
"0.5940857",
"0.5923273",
"0.59109026",
"0.5904841",
"0.58943695",
"0.58871347",
"0.5884626",
"0.5871665",
"0.5857174",
"0.58529896",
"0.58477926",
"0.5827649",
"0.58111745",
"0.5810771",
"0.58093345",
"0.58093345",
"0.58016413",
"0.5792614",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.579047",
"0.5788485",
"0.5783461",
"0.5783461",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.5762863",
"0.57603353",
"0.57603353",
"0.5751224",
"0.5751224",
"0.5751224",
"0.5751004",
"0.573491",
"0.573491",
"0.573491",
"0.572175",
"0.5717107",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5716174",
"0.5715048",
"0.5704484",
"0.5700041",
"0.5699844",
"0.56887585",
"0.56792545",
"0.5674781",
"0.56728446",
"0.56702185",
"0.5662837",
"0.5657697",
"0.56568635",
"0.56568635",
"0.56568635",
"0.5656818",
"0.5655768",
"0.56533396",
"0.56532913"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Filter getFilter() {
if(filter == null)
{
filter=new CustomFilter();
}
return filter;
} | {
"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
protected FilterResults performFiltering(CharSequence constraint) {
FilterResults results = new FilterResults();
if (constraint != null && constraint.length() > 0) {
//CONSTARINT TO UPPER
constraint = constraint.toString().toUpperCase();
List<Product> filters = new ArrayList<Product>();
//get specific items
for (int i = 0; i < filterList.size(); i++) {
if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {
Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),
filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),
filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),
filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());
filters.add(p);
}
}
results.count = filters.size();
results.values = filters;
if(filters.size()==0){ // if not found result
TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);
tv.setText("Üzgünüz, aradığınız sonucu bulamadık..");
Log.e("bbı","oıfnot");
}
else
mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);
} else {
results.count = filterList.size();
results.values = filterList;
}
return results;
} | {
"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
protected void publishResults(CharSequence constraint, FilterResults results) {
rowItems = (List<Product>) results.values;
notifyDataSetChanged();
} | {
"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 |
+0.5 teleport to the center of a block > avoid suffocating | public static void teleport(ServerPlayer player, ServerLevel world, BlockPos targetPos) {
player.teleportTo(world, targetPos.getX() + 0.5, targetPos.getY() + 0.1, targetPos.getZ() + 0.5, player.yRotO, player.xRotO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)\r\n/* 171: */ {\r\n/* 172:193 */ if (par9 < 12) {\r\n/* 173:194 */ return ForgeDirection.OPPOSITES[par5] + par9 & 0xF;\r\n/* 174: */ }\r\n/* 175:196 */ return par9 & 0xF;\r\n/* 176: */ }",
"public void tick() {\n super.tick();\n BlockPos blockpos = this.dataManager.get(ATTACHED_BLOCK_POS).orElse((BlockPos)null);\n if (blockpos == null && !this.world.isRemote) {\n blockpos = this.getPosition();\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n }\n\n if (this.isPassenger()) {\n blockpos = null;\n float f = this.getRidingEntity().rotationYaw;\n this.rotationYaw = f;\n this.renderYawOffset = f;\n this.prevRenderYawOffset = f;\n this.clientSideTeleportInterpolation = 0;\n } else if (!this.world.isRemote) {\n BlockState blockstate = this.world.getBlockState(blockpos);\n if (!blockstate.isAir(this.world, blockpos)) {\n if (blockstate.isIn(Blocks.MOVING_PISTON)) {\n Direction direction = blockstate.get(PistonBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction))) {\n blockpos = blockpos.offset(direction);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else if (blockstate.isIn(Blocks.PISTON_HEAD)) {\n Direction direction3 = blockstate.get(PistonHeadBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction3))) {\n blockpos = blockpos.offset(direction3);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n\n Direction direction4 = this.getAttachmentFacing();\n if (!this.func_234298_a_(blockpos, direction4)) {\n Direction direction1 = this.func_234299_g_(blockpos);\n if (direction1 != null) {\n this.dataManager.set(ATTACHED_FACE, direction1);\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n }\n\n float f1 = (float)this.getPeekTick() * 0.01F;\n this.prevPeekAmount = this.peekAmount;\n if (this.peekAmount > f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount - 0.05F, f1, 1.0F);\n } else if (this.peekAmount < f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount + 0.05F, 0.0F, f1);\n }\n\n if (blockpos != null) {\n if (this.world.isRemote) {\n if (this.clientSideTeleportInterpolation > 0 && this.currentAttachmentPosition != null) {\n --this.clientSideTeleportInterpolation;\n } else {\n this.currentAttachmentPosition = blockpos;\n }\n }\n\n this.forceSetPosition((double)blockpos.getX() + 0.5D, (double)blockpos.getY(), (double)blockpos.getZ() + 0.5D);\n double d2 = 0.5D - (double)MathHelper.sin((0.5F + this.peekAmount) * (float)Math.PI) * 0.5D;\n double d0 = 0.5D - (double)MathHelper.sin((0.5F + this.prevPeekAmount) * (float)Math.PI) * 0.5D;\n if (this.isAddedToWorld() && this.world instanceof net.minecraft.world.server.ServerWorld) ((net.minecraft.world.server.ServerWorld)this.world).chunkCheck(this); // Forge - Process chunk registration after moving.\n Direction direction2 = this.getAttachmentFacing().getOpposite();\n this.setBoundingBox((new AxisAlignedBB(this.getPosX() - 0.5D, this.getPosY(), this.getPosZ() - 0.5D, this.getPosX() + 0.5D, this.getPosY() + 1.0D, this.getPosZ() + 0.5D)).expand((double)direction2.getXOffset() * d2, (double)direction2.getYOffset() * d2, (double)direction2.getZOffset() * d2));\n double d1 = d2 - d0;\n if (d1 > 0.0D) {\n List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getBoundingBox());\n if (!list.isEmpty()) {\n for(Entity entity : list) {\n if (!(entity instanceof ShulkerEntity) && !entity.noClip) {\n entity.move(MoverType.SHULKER, new Vector3d(d1 * (double)direction2.getXOffset(), d1 * (double)direction2.getYOffset(), d1 * (double)direction2.getZOffset()));\n }\n }\n }\n }\n }\n\n }",
"void block(Directions dir);",
"public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}",
"protected boolean teleportTo(double x, double y, double z) {\n double xI = this.posX;\n double yI = this.posY;\n double zI = this.posZ;\n this.posX = x;\n this.posY = y;\n this.posZ = z;\n boolean canTeleport = false;\n int blockX = (int)Math.floor(this.posX);\n int blockY = (int)Math.floor(this.posY);\n int blockZ = (int)Math.floor(this.posZ);\n Block block;\n if (this.worldObj.blockExists(blockX, blockY, blockZ)) {\n boolean canTeleportToBlock = false;\n while (!canTeleportToBlock && blockY > 0) {\n block = this.worldObj.getBlock(blockX, blockY - 1, blockZ);\n if (block != null && block.getMaterial().blocksMovement()) {\n canTeleportToBlock = true;\n }\n else {\n --this.posY;\n --blockY;\n }\n }\n if (canTeleportToBlock) {\n this.setPosition(this.posX, this.posY, this.posZ);\n if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox)) {\n canTeleport = true;\n }\n }\n }\n if (!canTeleport) {\n this.setPosition(xI, yI, zI);\n return false;\n }\n for (int i = 0; i < 128; i++) {\n double posRelative = i / 127.0;\n float vX = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vY = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vZ = (this.rand.nextFloat() - 0.5F) * 0.2F;\n double dX = xI + (this.posX - xI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n double dY = yI + (this.posY - yI) * posRelative + this.rand.nextDouble() * this.height;\n double dZ = zI + (this.posZ - zI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n this.worldObj.spawnParticle(\"portal\", dX, dY, dZ, vX, vY, vZ);\n }\n this.worldObj.playSoundEffect(xI, yI, zI, \"mob.endermen.portal\", 1.0F, 1.0F);\n this.worldObj.playSoundAtEntity(this, \"mob.endermen.portal\", 1.0F, 1.0F);\n return true;\n }",
"void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }",
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n\t {\n//\t if (this.blockMaterial == Material.iron)\n//\t {\n//\t return false; //Allow items to interact with the door\n//\t }\n//\t else\n//\t {\t \t\n\t int i1 = this.func_150012_g(world, x, y, z);\n\t int j1 = i1 & 7;\n\t j1 ^= 4;\n\t int i = i1 & 3;\n//\t System.out.print(\" Direction :\");\n\t Block b=null;\n\t int x2=x;\n\t int y2=y;\n\t int z2=z;\n\t switch(i){\n\t case 0:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t}\n//\t \tSystem.out.print(\"WEST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(4, 2));\n\t \tbreak;\n\t case 1:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t}\n//\t \tSystem.out.print(\"NORTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(2, 2));\n\t \tbreak;\n\t case 2:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t}\n\t \t\n//\t \tSystem.out.print(\"EAST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(5, 2));\n\t \tbreak;\n\t case 3:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t}\n//\t \tSystem.out.print(\"SOUTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(3, 2));\n\t \tbreak;\n\t }\n\t b=world.getBlock(x2, y2, z2);\n//\t System.out.print(\" : \"+b+\" : \");\n\t\t\t\t/*\nDirection :SOUTH 11 : 100 Open :Open Y :1 Side :Right\nDirection :NORTH 01 : 010 Open :Open Y :1 Side :Left\nDirection :EAST 10 : 101 Open :Open Y :1 Side :Left\nDirection :WEST 00 : 100 Open :Open Y :1 Side :Left\n\t\t\t\t */\n//\t System.out.print(\" Open :\"+(((j1 & 4) >> 2)==0?\"Closed\":\"Open\"));\n//\t System.out.print(\" Y :\"+Integer.toBinaryString( (i1 & 8) >>3 ));\n//\t System.out.print(\" Side :\"+(((i1 & 16) >> 4)==0?\"Right\":\"Left\"));\n\t \n//\t System.out.println();\n\t \n\n\t if ((i1 & 8) == 0)\n\t {\n\t world.setBlockMetadataWithNotify(x, y, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2, z2, x2, y2, z2);\n\t }\n\t }\n\t else\n\t {\n\t world.setBlockMetadataWithNotify(x, y - 1, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y - 1, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2-1, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2-1, z2, x2, y2, z2);\n\t }\n\t }\n\n\t world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);\n\t return true;\n//\t }\n\t }",
"private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}",
"public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)\n {\n return par9;\n }",
"public void wrap(){\n\t\tif(this.y_location >=99){\n\t\t\tthis.y_location = this.y_location%99;\n\t\t}\n\t\telse if(this.y_location <=0){\n\t\t\tthis.y_location = 99 - (this.y_location%99);\n\t\t}\n\t\tif(this.x_location >= 99){\n\t\t\tthis.x_location = this.x_location%99;\n\t\t}\n\t\telse if(this.x_location <=0){\n\t\t\tthis.x_location = 99-(this.x_location%99);\n\t\t}\n\t}",
"@Test\n public void chunkPosShouldBeMinus1ByMinus1WhenPlayerPosIsMinus1byMinus1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(-1, -1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(-1, -1))\n );\n }",
"public static void blockMove(Player player) {\n Location location1 = (Location) plugin.getConfig().get(\"region1\");\n Location location2 = (Location) plugin.getConfig().get(\"region2\");\n\n int y = (location1.getBlockY() < location2.getBlockY() ? location2.getBlockY() : location1.getBlockY());\n\n for (Location location : blockPlace.redblockloc) {\n int x = location.getBlockX();\n int z = location.getBlockZ();\n new Location(player.getWorld(), x, y + 1, z).getBlock().setType(location.getBlock().getType());\n player.sendMessage(String.valueOf(location.getBlock().getType()));\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()==Material.WATER) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()== Material.IRON_BLOCK) {\n blockPlace.redblock.add(location.getBlock());\n }\n location.getBlock().setType(Material.AIR);\n }\n\n for (Location location : blockPlace.blueblockloc) {\n int xb = location.getBlockX();\n int zb = location.getBlockZ();\n new Location(player.getWorld(), xb, y + 1, zb).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.blueblock.remove(location.getBlock().getType());\n }\n }\n\n for (Location location : blockPlace.greenblockloc) {\n int xg = location.getBlockX();\n int zg = location.getBlockZ();\n new Location(player.getWorld(), xg, y + 1, zg).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n for (Location location : blockPlace.yellowblockloc) {\n int xy = location.getBlockX();\n int zy = location.getBlockZ();\n new Location(player.getWorld(), xy, y + 1, zy).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n }",
"@Override\n public boolean moveBlock(Box pos) {\n if (indexPossibleBlock == 1) {\n if (pos.getCounter() == 3)\n completeTowers++;\n pos.build(4);\n } else {\n super.moveBlock(pos);\n if (pos.getCounter() == 4)\n completeTowers++;\n }\n return true;\n }",
"public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }",
"private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}",
"protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"private boolean UpdateWithoutCarriedBlock()\r\n {\r\n if ( rand.nextInt(20) == 0 )\r\n {\r\n int i = MathHelper.floor_double( ( posX - 3D ) + rand.nextDouble() * 6D );\r\n int j = MathHelper.floor_double( posY - 1D + rand.nextDouble() * 7D );\r\n int k = MathHelper.floor_double( ( posZ - 3D ) + rand.nextDouble() * 6D );\r\n \r\n int l1 = worldObj.getBlockId( i, j, k );\r\n\r\n if ( CanPickUpBlock( i, j, k ) )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockCollectAuxFXID, i, j, k, l1 + ( worldObj.getBlockMetadata( i, j, k ) << 12 ) );\r\n\t\t \r\n setCarried( worldObj.getBlockId( i, j, k ) );\r\n setCarryingData( worldObj.getBlockMetadata( i, j, k ) );\r\n worldObj.setBlockToAir( i, j, k );\r\n }\r\n }\r\n else if ( worldObj.provider.dimensionId == 1 )\r\n {\r\n \t// Endermen in the end without a block in hand will eventually teleport back to the overworld\r\n \t\r\n \t\tif ( rand.nextInt( 9600 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n }\r\n \r\n return true;\r\n }",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}",
"public abstract void snapPoseToTileMid();",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"private boolean UpdateWithCarriedBlock()\r\n {\r\n \tint iCarriedBlockID = getCarried();\r\n \t\r\n \tif ( worldObj.provider.dimensionId == 1 ) \r\n \t{\r\n\t\t\t// we're in the end dimension with a block, and should attempt to place it\r\n\t\t\t\r\n int i = MathHelper.floor_double( posX ) + rand.nextInt( 5 ) - 2;\r\n int j = MathHelper.floor_double( posY ) + rand.nextInt( 7 ) - 3;\r\n int k = MathHelper.floor_double( posZ ) + rand.nextInt( 5 ) - 2;\r\n \r\n\t\t\tint iWeight = GetPlaceEndstoneWeight( i, j, k );\r\n\t\t\t\r\n if ( rand.nextInt( m_iMaxEnstonePlaceWeight >> 9 ) < iWeight )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockPlaceAuxFXID, i, j, k, iCarriedBlockID + ( getCarryingData() << 12 ) );\r\n\t\t \r\n worldObj.setBlockAndMetadataWithNotify( i, j, k, getCarried(), getCarryingData());\r\n \r\n setCarried(0);\r\n }\r\n \t}\r\n \telse\r\n \t{\r\n\t\t\t// \teventually the enderman should teleport away to the end with his block\r\n\t\t\t\r\n \t\tif ( rand.nextInt( 2400 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn true;\r\n }",
"public static Vec3 findRandomTargetBlockTowards(EntityCreature aWaterMob, int xzFleeZoneSize, int yFleeZoneSize, Vec3 aTargetVectorPos, int aMinRangeXZ, int aMinDepth)\r\n{\r\n\r\n Vec3 _fleeingVector = Vec3.createVectorHelper(aTargetVectorPos.xCoord - aWaterMob.posX,aTargetVectorPos.yCoord - aWaterMob.posY,aTargetVectorPos.zCoord - aWaterMob.posZ);\r\n return findRandomTargetBlock(aWaterMob, xzFleeZoneSize, yFleeZoneSize,_fleeingVector,aMinRangeXZ,aMinDepth);\r\n}",
"public void mueveBala() {\n switch (direccion) {\n case NORTE:\n posY -= velocidadBala;\n break;\n case SUR:\n posY += velocidadBala;\n break;\n case ESTE:\n posX += velocidadBala;\n break;\n case OESTE:\n posX -= velocidadBala;\n break;\n }\n actualizaHitbox();\n }",
"public boolean makePortal(Entity entityIn) {\n/* 203 */ int i = 16;\n/* 204 */ double d0 = -1.0D;\n/* 205 */ int j = MathHelper.floor(entityIn.posX);\n/* 206 */ int k = MathHelper.floor(entityIn.posY);\n/* 207 */ int l = MathHelper.floor(entityIn.posZ);\n/* 208 */ int i1 = j;\n/* 209 */ int j1 = k;\n/* 210 */ int k1 = l;\n/* 211 */ int l1 = 0;\n/* 212 */ int i2 = this.random.nextInt(4);\n/* 213 */ BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos();\n/* */ \n/* 215 */ for (int j2 = j - 16; j2 <= j + 16; j2++) {\n/* */ \n/* 217 */ double d1 = j2 + 0.5D - entityIn.posX;\n/* */ \n/* 219 */ for (int l2 = l - 16; l2 <= l + 16; l2++) {\n/* */ \n/* 221 */ double d2 = l2 + 0.5D - entityIn.posZ;\n/* */ \n/* */ \n/* 224 */ for (int j3 = this.worldServerInstance.getActualHeight() - 1; j3 >= 0; j3--) {\n/* */ \n/* 226 */ if (this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(j2, j3, l2))) {\n/* */ \n/* 228 */ while (j3 > 0 && this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(j2, j3 - 1, l2)))\n/* */ {\n/* 230 */ j3--;\n/* */ }\n/* */ int k3;\n/* 233 */ label168: for (k3 = i2; k3 < i2 + 4; k3++) {\n/* */ \n/* 235 */ int l3 = k3 % 2;\n/* 236 */ int i4 = 1 - l3;\n/* */ \n/* 238 */ if (k3 % 4 >= 2) {\n/* */ \n/* 240 */ l3 = -l3;\n/* 241 */ i4 = -i4;\n/* */ } \n/* */ \n/* 244 */ for (int j4 = 0; j4 < 3; j4++) {\n/* */ \n/* 246 */ for (int k4 = 0; k4 < 4; k4++) {\n/* */ \n/* 248 */ for (int l4 = -1; l4 < 4; ) {\n/* */ \n/* 250 */ int i5 = j2 + (k4 - 1) * l3 + j4 * i4;\n/* 251 */ int j5 = j3 + l4;\n/* 252 */ int k5 = l2 + (k4 - 1) * i4 - j4 * l3;\n/* 253 */ blockpos$mutableblockpos.setPos(i5, j5, k5);\n/* */ \n/* 255 */ if (l4 >= 0 || this.worldServerInstance.getBlockState((BlockPos)blockpos$mutableblockpos).getMaterial().isSolid()) { if (l4 >= 0 && !this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos))\n/* */ break label168; \n/* */ l4++; }\n/* */ \n/* */ break label168;\n/* */ } \n/* */ } \n/* */ } \n/* 263 */ double d5 = j3 + 0.5D - entityIn.posY;\n/* 264 */ double d7 = d1 * d1 + d5 * d5 + d2 * d2;\n/* */ \n/* 266 */ if (d0 < 0.0D || d7 < d0) {\n/* */ \n/* 268 */ d0 = d7;\n/* 269 */ i1 = j2;\n/* 270 */ j1 = j3;\n/* 271 */ k1 = l2;\n/* 272 */ l1 = k3 % 4;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 280 */ if (d0 < 0.0D)\n/* */ {\n/* 282 */ for (int l5 = j - 16; l5 <= j + 16; l5++) {\n/* */ \n/* 284 */ double d3 = l5 + 0.5D - entityIn.posX;\n/* */ \n/* 286 */ for (int j6 = l - 16; j6 <= l + 16; j6++) {\n/* */ \n/* 288 */ double d4 = j6 + 0.5D - entityIn.posZ;\n/* */ \n/* */ \n/* 291 */ for (int i7 = this.worldServerInstance.getActualHeight() - 1; i7 >= 0; i7--) {\n/* */ \n/* 293 */ if (this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(l5, i7, j6))) {\n/* */ \n/* 295 */ while (i7 > 0 && this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(l5, i7 - 1, j6)))\n/* */ {\n/* 297 */ i7--;\n/* */ }\n/* */ int k7;\n/* 300 */ label167: for (k7 = i2; k7 < i2 + 2; k7++) {\n/* */ \n/* 302 */ int j8 = k7 % 2;\n/* 303 */ int j9 = 1 - j8;\n/* */ \n/* 305 */ for (int j10 = 0; j10 < 4; j10++) {\n/* */ \n/* 307 */ for (int j11 = -1; j11 < 4; ) {\n/* */ \n/* 309 */ int j12 = l5 + (j10 - 1) * j8;\n/* 310 */ int i13 = i7 + j11;\n/* 311 */ int j13 = j6 + (j10 - 1) * j9;\n/* 312 */ blockpos$mutableblockpos.setPos(j12, i13, j13);\n/* */ \n/* 314 */ if (j11 >= 0 || this.worldServerInstance.getBlockState((BlockPos)blockpos$mutableblockpos).getMaterial().isSolid()) { if (j11 >= 0 && !this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos))\n/* */ break label167; \n/* */ j11++; }\n/* */ \n/* */ break label167;\n/* */ } \n/* */ } \n/* 321 */ double d6 = i7 + 0.5D - entityIn.posY;\n/* 322 */ double d8 = d3 * d3 + d6 * d6 + d4 * d4;\n/* */ \n/* 324 */ if (d0 < 0.0D || d8 < d0) {\n/* */ \n/* 326 */ d0 = d8;\n/* 327 */ i1 = l5;\n/* 328 */ j1 = i7;\n/* 329 */ k1 = j6;\n/* 330 */ l1 = k7 % 2;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* 339 */ int i6 = i1;\n/* 340 */ int k2 = j1;\n/* 341 */ int k6 = k1;\n/* 342 */ int l6 = l1 % 2;\n/* 343 */ int i3 = 1 - l6;\n/* */ \n/* 345 */ if (l1 % 4 >= 2) {\n/* */ \n/* 347 */ l6 = -l6;\n/* 348 */ i3 = -i3;\n/* */ } \n/* */ \n/* 351 */ if (d0 < 0.0D) {\n/* */ \n/* 353 */ j1 = MathHelper.clamp(j1, 70, this.worldServerInstance.getActualHeight() - 10);\n/* 354 */ k2 = j1;\n/* */ \n/* 356 */ for (int j7 = -1; j7 <= 1; j7++) {\n/* */ \n/* 358 */ for (int l7 = 1; l7 < 3; l7++) {\n/* */ \n/* 360 */ for (int k8 = -1; k8 < 3; k8++) {\n/* */ \n/* 362 */ int k9 = i6 + (l7 - 1) * l6 + j7 * i3;\n/* 363 */ int k10 = k2 + k8;\n/* 364 */ int k11 = k6 + (l7 - 1) * i3 - j7 * l6;\n/* 365 */ boolean flag = (k8 < 0);\n/* 366 */ this.worldServerInstance.setBlockState(new BlockPos(k9, k10, k11), flag ? Blocks.OBSIDIAN.getDefaultState() : Blocks.AIR.getDefaultState());\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 372 */ IBlockState iblockstate = Blocks.PORTAL.getDefaultState().withProperty((IProperty)BlockPortal.AXIS, (l6 == 0) ? (Comparable)EnumFacing.Axis.Z : (Comparable)EnumFacing.Axis.X);\n/* */ \n/* 374 */ for (int i8 = 0; i8 < 4; i8++) {\n/* */ \n/* 376 */ for (int l8 = 0; l8 < 4; l8++) {\n/* */ \n/* 378 */ for (int l9 = -1; l9 < 4; l9++) {\n/* */ \n/* 380 */ int l10 = i6 + (l8 - 1) * l6;\n/* 381 */ int l11 = k2 + l9;\n/* 382 */ int k12 = k6 + (l8 - 1) * i3;\n/* 383 */ boolean flag1 = !(l8 != 0 && l8 != 3 && l9 != -1 && l9 != 3);\n/* 384 */ this.worldServerInstance.setBlockState(new BlockPos(l10, l11, k12), flag1 ? Blocks.OBSIDIAN.getDefaultState() : iblockstate, 2);\n/* */ } \n/* */ } \n/* */ \n/* 388 */ for (int i9 = 0; i9 < 4; i9++) {\n/* */ \n/* 390 */ for (int i10 = -1; i10 < 4; i10++) {\n/* */ \n/* 392 */ int i11 = i6 + (i9 - 1) * l6;\n/* 393 */ int i12 = k2 + i10;\n/* 394 */ int l12 = k6 + (i9 - 1) * i3;\n/* 395 */ BlockPos blockpos = new BlockPos(i11, i12, l12);\n/* 396 */ this.worldServerInstance.notifyNeighborsOfStateChange(blockpos, this.worldServerInstance.getBlockState(blockpos).getBlock(), false);\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 401 */ return true;\n/* */ }",
"public void updateMainBlock() {\n\t\tthis.mainblock = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t}",
"public void update(long delta){\n \n if(placement <= -1000){\n placement = zPosition;\n }\n placement -= 5;\n \n \n }",
"void moveNorthEast(){\n xpos = xpos + 3;\n ypos = ypos-xspeed;\n if (xpos > width){ // 20\n xpos = random(-width/2, width/2); // 25\n ypos = width; // 30\n }\n }",
"private static void placeGlazedTerracotta(SimpleBlock target, Material glazedTerracotta) {\n \tBlockFace dir = BlockFace.NORTH;\n \tif(target.getX() % 2 == 0) {\n \t\tif(target.getZ() % 2 == 0)\n \t\t\tdir = BlockFace.SOUTH;\n \t\telse\n \t\t\tdir = BlockFace.WEST;\n \t}else {\n \t\tif(target.getZ() % 2 == 0)\n \t\t\tdir = BlockFace.EAST;\n \t\telse\n \t\t\tdir = BlockFace.NORTH;\n \t}\n \tnew DirectionalBuilder(glazedTerracotta)\n \t.setFacing(dir)\n \t.apply(target);\n }",
"public void onLivingUpdate()\n {\n super.onLivingUpdate();\n double moveSpeed = this.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue();\n if (timetopee-- < 0 && !bumgave)\n {\n isJumping = false;\n\n if (bumrotation == 999F)\n {\n bumrotation = rotationYaw;\n }\n\n rotationYaw = bumrotation;\n moveSpeed = 0.0F;\n\n if (!onGround)\n {\n motionY -= 0.5D;\n }\n \n /* TODO\n if(worldObj.isRemote)\n {\n \tMCW.proxy.pee(worldObj, posX, posY, posZ, rotationYaw, modelsize);\n } */\n\n if (timetopee < -200)\n {\n timetopee = rand.nextInt(600) + 600;\n bumrotation = 999F;\n int j = MathHelper.floor_double(posX);\n int k = MathHelper.floor_double(posY);\n int l = MathHelper.floor_double(posZ);\n\n for (int i1 = -1; i1 < 2; i1++)\n {\n for (int j1 = -1; j1 < 2; j1++)\n {\n if (rand.nextInt(3) != 0)\n {\n continue;\n }\n\n Block k1 = worldObj.getBlockState(new BlockPos(j + j1, k - 1, l - i1)).getBlock();\n Block l1 = worldObj.getBlockState(new BlockPos(j + j1, k, l - i1)).getBlock();\n\n if (rand.nextInt(2) == 0)\n {\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n worldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.YELLOW_FLOWER.getDefaultState());\n }\n\n continue;\n }\n\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n \tworldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.RED_FLOWER.getDefaultState());\n }\n }\n }\n }\n }\n }",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{\n \t\tTECarpentersBlock TE_XN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_XP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_ZN = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_ZP = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZNN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZNP = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZPN = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZPP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\t\n \t\tint height = Collapsible.getQuadHeight(TE, src_quadrant);\n \t\t\n \t\tswitch (src_quadrant)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_XZNN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XZNP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XZPN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_XZPP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}",
"private void resetTankPoint() {\n\t\tmodifyMapStatus(0);// release the point where tank occupies\n\t\tif (direction == UP) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() - speed);\n\t\t} else if (direction == DOWN) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() + speed);\n\t\t} else if (direction == LEFT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() - speed);\n\t\t} else if (direction == RIGHT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() + speed);\n\t\t}\n\t\tresetFrontPoint();\n\t\tmodifyMapStatus(1);\n\t}",
"private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n\t\t\t\toffset=eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset=-eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/8;\n\t\t}\n\t\telse {\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\t\t\t\toffset = eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset = -eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/4;\n\t\t}\n\t}",
"public void breakBlock(World world, int x, int y, int z, Block par5, int par6)\r\n/* 186: */ {\r\n/* 187:209 */ if ((world.getBlock(x, y, z) != FMPBase.getFMPBlockId()) && \r\n/* 188:210 */ ((world.getTileEntity(x, y, z) instanceof TileEntityTransferNode)))\r\n/* 189: */ {\r\n/* 190:211 */ TileEntityTransferNode tile = (TileEntityTransferNode)world.getTileEntity(x, y, z);\r\n/* 191:213 */ if (!tile.getUpgrades().isEmpty()) {\r\n/* 192:214 */ for (int i = 0; i < tile.getUpgrades().size(); i++)\r\n/* 193: */ {\r\n/* 194:215 */ ItemStack itemstack = (ItemStack)tile.getUpgrades().get(i);\r\n/* 195:216 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 196:217 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 197: */ EntityItem entityitem;\r\n/* 198:220 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 199: */ {\r\n/* 200:221 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 201:223 */ if (k1 > itemstack.stackSize) {\r\n/* 202:224 */ k1 = itemstack.stackSize;\r\n/* 203: */ }\r\n/* 204:227 */ itemstack.stackSize -= k1;\r\n/* 205:228 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 206:229 */ float f3 = 0.05F;\r\n/* 207:230 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 208:231 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 209:232 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 210:234 */ if (itemstack.hasTagCompound()) {\r\n/* 211:235 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 212: */ }\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:241 */ if ((tile instanceof TileEntityTransferNodeInventory))\r\n/* 217: */ {\r\n/* 218:242 */ TileEntityTransferNodeInventory tileentity = (TileEntityTransferNodeInventory)tile;\r\n/* 219: */ \r\n/* 220:244 */ ItemStack itemstack = tileentity.getStackInSlot(0);\r\n/* 221:246 */ if (itemstack != null)\r\n/* 222: */ {\r\n/* 223:247 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 224:248 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 225: */ EntityItem entityitem;\r\n/* 226:251 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 227: */ {\r\n/* 228:252 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 229:254 */ if (k1 > itemstack.stackSize) {\r\n/* 230:255 */ k1 = itemstack.stackSize;\r\n/* 231: */ }\r\n/* 232:258 */ itemstack.stackSize -= k1;\r\n/* 233:259 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 234:260 */ float f3 = 0.05F;\r\n/* 235:261 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 236:262 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 237:263 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 238:265 */ if (itemstack.hasTagCompound()) {\r\n/* 239:266 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 240: */ }\r\n/* 241: */ }\r\n/* 242: */ }\r\n/* 243:271 */ world.func_147453_f(x, y, z, par5);\r\n/* 244: */ }\r\n/* 245: */ }\r\n/* 246:276 */ super.breakBlock(world, x, y, z, par5, par6);\r\n/* 247: */ }",
"private void recenter(PlayerMapObjectInterface target) {\n\n\t}",
"private void testGrab()\n {\n if(gamepad1.y) {\n //move to position where it touches block ----might have to change angle based on trial----\n //Drastic angles at the moment for testing\n servoLeft.setPosition(0.5);\n //servoRight.setPosition(0.5);\n }\n }",
"private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}",
"private Location getPlayersLightBlockLocation(final Player player) {\r\n final Location location = player.getLocation();\r\n final World world = location.getWorld();\r\n\r\n // the block to be replaced is beneath the player's feet\r\n location.setY(location.getY() - 1);\r\n\r\n // skip undesirable blocks, e.g. air, fences, etc\r\n while (config.getIgnoredBlocks().contains(world.getBlockAt(location).getType())) {\r\n location.setY(location.getY() - 1);\r\n }\r\n return location;\r\n }",
"@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}",
"public void ensureTeleportBreathable(Entity e) {\r\n\r\n // Not if in spectator mode\r\n if(e instanceof Player) {\r\n if(((Player)e).getGameMode() == GameMode.SPECTATOR)\r\n return;\r\n }\r\n\r\n Location loc = e.getLocation();\r\n int x = loc.getBlockX();\r\n int z = loc.getBlockZ();\r\n int height = (int)Math.ceil(e.getHeight());\r\n\r\n // Check for sufficient air before teleporting player\r\n for(int i = 0; i < height; i++) {\r\n\r\n // Calculate y level\r\n int y = (worldToIsBelow)\r\n ? yTo - i - 1\r\n : yTo + i + 1;\r\n\r\n // Get block\r\n Block block = worldTo.getBlockAt(x, y, z);\r\n\r\n // Determine if breathable and make breathable if not\r\n if(!BreathableBlocks.isBreathable(block.getType()))\r\n block.setType(Material.AIR);\r\n }\r\n }",
"@SubscribeEvent\n public void onItemUseFinish(LivingEntityUseItemEvent.Start event) {\n boolean didTeleport = false;\n\n if (teleportStabilize\n && event.getEntityLiving() instanceof PlayerEntity\n && event.getItem().getItem() == Items.CHORUS_FRUIT\n && !event.getEntityLiving().getEntityWorld().isRemote\n ) {\n World world = event.getEntityLiving().world;\n PlayerEntity player = (PlayerEntity) event.getEntityLiving();\n Map<Double, BlockPos> positions = new HashMap<>();\n BlockPos playerPos = player.getPosition();\n BlockPos targetPos = null;\n\n // find the blocks around the player\n BlockPos.getAllInBox(playerPos.add(-range, -range, -range), playerPos.add(range, range, range)).forEach(pos -> {\n if (world.getBlockState(pos).getBlock() == block && !pos.up(1).equals(playerPos)) {\n\n // should be able to stand on it\n if (world.getBlockState(pos.up(1)).getMaterial() == Material.AIR && world.getBlockState(pos.up(2)).getMaterial() == Material.AIR) {\n positions.put(WorldHelper.getDistanceSq(playerPos, pos.up(1)), pos.up(1));\n }\n }\n });\n\n // get the closest position by finding the smallest distance\n if (!positions.isEmpty()) {\n targetPos = positions.get(Collections.min(positions.keySet()));\n }\n\n if (targetPos != null) {\n double x = targetPos.getX() + 0.5D;\n double y = targetPos.getY();\n double z = targetPos.getZ() + 0.5D;\n if (player.attemptTeleport(x, y, z, true)) {\n didTeleport = true;\n\n // play sound at original location and new location\n world.playSound(null, x, y, z, SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, SoundCategory.PLAYERS, 1.0F, 1.0F);\n player.playSound(SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, 1.0F, 1.0F);\n }\n }\n\n if (didTeleport) {\n player.getCooldownTracker().setCooldown(Items.CHORUS_FRUIT, 20);\n event.getItem().shrink(1);\n event.setCanceled(true);\n }\n }\n }",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"private void truncatePosition()\r\n {\n setTranslateX(getTranslateX() - Constants.inchesToPixels(getXInches() % 0.25));\r\n setTranslateY(getTranslateY() + Constants.inchesToPixels(getFlippedYInches() % 0.25));\r\n }",
"public void preyMovement(WallBuilding wb, int x1, int x2, int y1, int y2){\r\n int b1 = wb.block.get(wb.block.stx(x1), wb.block.sty(y1));//one away\r\n int b2 = wb.block.get(wb.block.stx(x2), wb.block.sty(y2));//two away\r\n if(b1 == 0){//if there are no blocks, we can move normally\r\n if(wb.food.getObjectsAtLocation(x1, y1) == null){//if there is no food in that space\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b1 == 1){//if there is one block\r\n if(b2 == 0){//if the space after is empty, we can move too!\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b2 < 3){//there is space to move the block\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }else{//if there are 2 or 3 blocks\r\n if(b2 < 3){//there is space to move the block\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }\r\n }\r\n }",
"public static boolean safeTeleport(Player toBeTeleported, Location toTeleport, boolean isFlying, boolean registerBackLocation, boolean... ignoreCooldown) throws CommandException {\n //Get SlapPlayer\n// SlapPlayer sp = PlayerControl.getPlayer(toBeTeleported);\n//\n// if ((ignoreCooldown.length > 0 && !ignoreCooldown[0]) || ignoreCooldown.length == 0) {\n// if (!sp.getTeleporter().canTeleport()) { //Check if able to teleport if cooldown\n// if (!Util.testPermission(toBeTeleported, \"tp.cooldownoverride\")) {\n// throw new CommandException(\"You'll need to wait a bit before teleporting agian!\");\n// }\n// }\n// }\n\n\n Location teleportTo = null;\n boolean tpUnder = false;\n\n Location fromLocation = toBeTeleported.getLocation();\n\n if (isFlying && !toBeTeleported.isFlying()) { //Target is flying while the player is not flying -> Find first block under target\n tpUnder = true;\n boolean creative = (toBeTeleported.getGameMode() == GameMode.CREATIVE); //Check if in creative\n for (Location loc = toTeleport; loc.getBlockY() > 0; loc.add(0, -1, 0)) { //Loop thru all blocks under target's location\n Material m = loc.getBlock().getType();\n if (m == Material.AIR) continue; //Looking for first solid\n if (m == Material.LAVA && !creative) { //If teleporting into lava && not in creative\n throw new CommandException(\"You would be teleported into Lava!\");\n }\n teleportTo = loc.add(0, 1, 0); //Set loc + 1 block above\n break;\n }\n } else { //Not flying\n teleportTo = toTeleport;\n }\n\n if (teleportTo == null) { //Check if location found\n throw new CommandException(\"Cannot teleport! Player above void!\");\n }\n\n toBeTeleported.teleport(teleportTo); //Teleport\n toBeTeleported.setVelocity(new Vector(0, 0, 0)); //Reset velocity\n\n// if (registerBackLocation) { //If registering back location\n// sp.getTeleporter().setBackLocation(fromLocation); //Set back location\n// }\n\n //Register teleport\n// sp.getTeleporter().teleported();\n\n return tpUnder;\n }",
"void moveEast() {\n xpos = xpos + xspeed;\n if (xpos > width){\n xpos = 0; // 30\n }\n }",
"public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }",
"@Override\n\tprotected void moveto(World world, double x, double y)\n\t{\n\t\t// If the destination is not blocked by terrain, move there\n\t\tif (!world.terrainBlocks(x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}\n\t\t// Else: Check vertically collision\n\t\telse if (!world.terrainBlocks(this.x + halfPlayerWidth(), y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x + halfPlayerWidth(), y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(this.x - halfPlayerWidth(), y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.y = y;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t\t// Else: Check horizontally collision\n\t\telse if (!world.terrainBlocks(x + halfPlayerWidth(), this.y - halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x + halfPlayerWidth(), this.y + halfPlayerHeight()) &&\n\t\t\t\t!world.terrainBlocks(x - halfPlayerWidth(), this.y - halfPlayerHeight()))\n\t\t{\n\t\t\tthis.x = x;\n\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t}",
"public float latchOntoAnchor (RectF anchorSpriteBoundary){\n readyToLaunch = false;\n isAnchored = true;\n isExploding = false;\n Tether = new ElasticSling(anchorSpriteBoundary, atomSpriteBoundary, new Coordinate(screen_width, screen_length));\n\n /* Pass the parameters of motion to the sling*/\n Tether.setInitialConditions(xVelocity/2, 3*yVelocity/10);\n\n /* Since the playeris now slinged, it carries no autonomous motion of its own*/\n xVelocity = yVelocity = 0;\n\n float distanceToCompensate =\n (float) (defaultYCoordinateAsPerctangeOfScreen * screen_length) - anchorSpriteBoundary.centerY();\n\n /* If the player is out of a certain range, then don't bother compensating */\n moveOtherObjects = distanceToCompensate - screen_length / 50 == 0?\n false : true;\n\n return distanceToCompensate;\n }",
"@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\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\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}",
"public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}",
"@Override\n\tpublic boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) {\n\t\tif (player.getHeldItem() != null) {\n\t\t\tif (player.getHeldItem().getItem() == Items.iron_pickaxe) {\n\t\t\t\tplayer.getHeldItem().damageItem(100, player);\n\t\t\t\tfor (int i = -10; i < 10; i++) {// xval\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x + i, y + j, z);\n\t\t\t\t}\n\n\t\t\t\tfor (int i = -10; i < 10; i++) {\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x, y + j, z + i);\n\t\t\t\t}\n\t\t\t\t// player.getHeldItem().damageItem(100, player);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {//if hand empty\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"[NausicaaMod]This block digs 10x2x1 mineshafts in all 4 directions\"));\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"**DISTROYS BLOCK WITH NO DROPS**\"));\n\n\t\t}\n\t\treturn false;\n\t}",
"public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)\n {\n int var7 = ((MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4;\n p_149689_1_.setBlock(p_149689_2_, p_149689_3_ + 1, p_149689_4_, this, 8 | var7, 2);\n }",
"void moveSouthEast(){\n xpos = xpos + 15;\n ypos = ypos + 15;\n if (xpos > width){ // 25\n xpos = random(-width, width); // 30\n ypos = 0; // 35\n }\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t\ttarget = pointEntity(caster,50);\r\n\t\tif (target == null) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trefund = true;\r\n\t\t\tdead = true;\r\n\t\t\tif (refined)\r\n\t\t\t\tsteprange = 240;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_ACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tdist = target.getLocation().distance(caster.getLocation());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"private int Block_Move() {\n\t\tfinal int POSSIBLE_BLOCK = 2;\n\t\tint move = NO_MOVE;\n\t\t\n\t\tif(( gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[TOP_CENTER] == EMPTY){\n\t\t\t\tmove = TOP_CENTER;\n\t\t\t}else if (gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[CTR_LEFT] == EMPTY){\n\t\t\t\tmove = CTR_LEFT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[CTR_RIGHT] == EMPTY){\n\t\t\t\tmove = CTR_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}else if (gameBoard[BTM_CENTER] == EMPTY){\n\t\t\t\tmove = BTM_CENTER;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[CTR_LEFT] == EMPTY){\n\t\t\t\tmove = CTR_LEFT;\n\t\t\t}else if (gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_CENTER] == EMPTY){\n\t\t\t\tmove = TOP_CENTER;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_CENTER] == EMPTY){\n\t\t\t\tmove = BTM_CENTER;\n\t\t\t}\t\t\t\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}else if (gameBoard[CTR_RIGHT] == EMPTY){\n\t\t\t\tmove = CTR_RIGHT;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}\n\t\t}\n\t\treturn move;\n\t}",
"public int IsSourceToFluidBlockAtFacing( World world, int i, int j, int k, int iFacing );",
"public void movbolitas() {\n x += vx;\n y += vy;\n if (x > width || x < 0) {\n vx *= -1;\n }\n if (y > height || y < 0) {\n vy *= -1;\n }\n }",
"public void movbolitas1() {\n x += vx1;\n y += vy1;\n if (x > width || x < 0) {\n vx1 *= -1;\n }\n if (y > height || y < 0) {\n vy1 *= -1;\n }\n }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"public void centerOnEntity(Item e)\n {\n xOffset = e.GetX() - refLinks.GetWidth()/2 + e.GetWidth()/2;\n yOffset = e.GetY() - refLinks.GetHeight()/2 + e.GetHeight()/2;\n checkCameraLimits();\n }",
"public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }",
"@Override\n\tpublic final int onBlockPlaced( World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metaData )\n\t{\n\t\t// Get the opposite face and return it\n\t\treturn ForgeDirection.OPPOSITES[side];\n\t}",
"private void returnPlayerHome(Player player_to_be_eaten)\n {\n player_to_be_eaten.setX_cordinate(player_to_be_eaten.getInitial_x());\n player_to_be_eaten.setY_cordinate(player_to_be_eaten.getInitial_y());\n player_to_be_eaten.setSteps_moved(0);\n }",
"@Test\n public void chunkPosShouldBeMinus2ByMinus2WhenPlayerPosIsMinus111byMinus111() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n final int playerPos = -111;\n final int expectedChunkPos = -2;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(playerPos, playerPos)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(expectedChunkPos, expectedChunkPos))\n );\n }",
"public static boolean collide(CustomAABB us, CustomBlockBox block, Vector3f pos, Vector3f inertia, float width, float height, boolean onGround){\n boolean xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n boolean yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n boolean zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //double check to stop clipping if not enough space\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()+2,block.getFront()))) {\n\n //floor detection\n if (block.getTop() > us.getBottom() && inertia.y < 0 && us.getBottom() - block.getTop() > -0.15f) {\n //this is the collision debug sphere for terrain\n float oldPos = pos.y;\n pos.y = block.getTop();\n //don't move up if too high\n if (pos.y - oldPos > 1) {\n pos.y = (int)oldPos;\n }\n inertia.y = 0;\n onGround = true;\n }\n }\n\n //stop getting shot across the map\n if (xWithin && zWithin && yWithin &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-1,block.getFront())) &&\n !detectBlock(new Vector3f(block.getLeft(), block.getBottom()-2,block.getFront()))) {\n //head detection\n if (block.getBottom() < us.getTop() && inertia.y >= 0 && us.getTop() - block.getBottom() < 0.15f) {\n pos.y = block.getBottom() - height;\n inertia.y = 0;\n }\n }\n\n float averageX = Math.abs(((block.getLeft() + block.getRight())/2f) - pos.x);\n float averageY = Math.abs(((block.getBottom() + block.getTop())/2f) - pos.y);\n float averageZ = Math.abs(((block.getFront() + block.getBack())/2f) - pos.z);\n if (averageX > averageZ) {\n if (!detectBlock(new Vector3f(block.getLeft()+1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getRight() > us.getLeft() && inertia.x < 0) {\n pos.x = block.getRight() + width + 0.00001f;\n inertia.x = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft()-1, block.getBottom(),block.getFront()))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //x+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getLeft() < us.getRight() && inertia.x > 0) {\n pos.x = block.getLeft() - width - 0.00001f;\n inertia.x = 0;\n }\n }\n }\n } else {\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()+1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z- detection\n if (xWithin && zWithin && yWithin) {\n if (block.getBack() > us.getFront() && inertia.z < 0) {\n pos.z = block.getBack() + width + 0.00001f;\n inertia.z = 0;\n }\n }\n }\n if (!detectBlock(new Vector3f(block.getLeft(), block.getBottom(),block.getFront()-1))) {\n us = new CustomAABB(pos.x, pos.y + 0.1501f, pos.z, width, height - 0.3001f);\n xWithin = !(us.getLeft() > block.getRight() || us.getRight() < block.getLeft());\n yWithin = !(us.getBottom() > block.getTop() || us.getTop() < block.getBottom());\n zWithin = !(us.getFront() > block.getBack() || us.getBack() < block.getFront());\n\n //z+ detection\n if (xWithin && zWithin && yWithin) {\n if (block.getFront() < us.getBack() && inertia.z > 0) {\n pos.z = block.getFront() - width - 0.00001f;\n inertia.z = 0;\n }\n }\n }\n }\n return onGround;\n }",
"void startClipJump();",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public void updateVerticalPosition() {\n\t\tVector3 avatarWorldPositionP1 = dolphinNodeOne.getWorldPosition();\n\t\tVector3 avatarLocalPositionP1 = dolphinNodeOne.getLocalPosition();\n\t\tVector3 terrainPositionP1 = (Vector3) Vector3f.createFrom(avatarLocalPositionP1.x(),\n\t\t\t\ttessellationEntity.getWorldHeight(avatarWorldPositionP1.x(), avatarWorldPositionP1.z()) + 0.3f,\n\t\t\t\tavatarLocalPositionP1.z());\n\t\tVector3 groundPositionP1 = (Vector3) Vector3f.createFrom(avatarLocalPositionP1.x(),\n\t\t\t\tgroundTessellation.getWorldHeight(avatarWorldPositionP1.x(), avatarWorldPositionP1.z() - 0.3f),\n\t\t\t\tavatarLocalPositionP1.z());\n\t\tif (avatarLocalPositionP1.y() <= terrainPositionP1.y() + 0.3f\n\t\t\t\t|| avatarLocalPositionP1.y() <= groundPositionP1.y()) {\n\t\t\tVector3 avatarPositionP1 = terrainPositionP1;\n\t\t\tif (avatarPositionP1.y() < groundPositionP1.y()) {\n\t\t\t\tavatarPositionP1 = groundPositionP1;\n\t\t\t}\n\t\t\tdolphinNodeOne.setLocalPosition(avatarPositionP1);\n\t\t\tsynchronizeAvatarPhysics(dolphinNodeOne);\n\t\t\tif (jumpP1) {\n\t\t\t\tdolphinNodeOne.getPhysicsObject().applyForce(0.0f, 800f, 0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\t\t// jumpP1 = false;\n\t\t\t}\n\t\t} // else if (avatarLocaPositionP1.y() > terrainPositionP1.y() + 1.0f) {\n\t\t\t// jumpP1 = true;\n\t\t\t// }\n\t\tfor (int i = 0; i < npcEntity.length; i++) {\n\t\t\tVector3 npcWorldPosition = npcEntity[i].getNode().getWorldPosition();\n\t\t\tVector3 npcLocalPosition = npcEntity[i].getNode().getLocalPosition();\n\t\t\tVector3 npcTerrainPosition = (Vector3) Vector3f.createFrom(npcLocalPosition.x(),\n\t\t\t\t\ttessellationEntity.getWorldHeight(npcWorldPosition.x(), npcWorldPosition.z() + 0.3f),\n\t\t\t\t\tnpcLocalPosition.z());\n\t\t\tVector3 npcGroundPlanePosition = (Vector3) Vector3f.createFrom(npcLocalPosition.x(),\n\t\t\t\t\tgroundTessellation.getWorldHeight(npcWorldPosition.x(), npcWorldPosition.z() + 0.2f),\n\t\t\t\t\tnpcLocalPosition.z());\n\n\t\t\tif (npcLocalPosition.y() <= npcTerrainPosition.y() + 0.3f\n\t\t\t\t\t|| npcLocalPosition.y() <= npcGroundPlanePosition.y()) {\n\t\t\t\tVector3 npcPosition = npcTerrainPosition;\n\t\t\t\tif (npcLocalPosition.y() < npcGroundPlanePosition.y()) {\n\t\t\t\t\tnpcPosition = npcGroundPlanePosition;\n\t\t\t\t}\n\t\t\t\tnpcEntity[i].getNode().setLocalPosition(npcPosition);\n\t\t\t\tsynchronizeAvatarPhysics(npcEntity[i].getNode());\n\t\t\t}\n\n\t\t}\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 }",
"private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }",
"public void originalSpace() {\n\t\tpos.x = 65;\n\t\tpos.y = p.height/2 + 100;\n\t\t\n\t}",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAtMinus110ByMinus110() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n final int playerPos = -110;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(playerPos, playerPos)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(-1, -1))\n );\n }",
"private BlockPos stuckInBlock(AltoClef mod) {\n BlockPos p = mod.getPlayer().getBlockPos();\n if (isAnnoying(mod, p)) return p;\n if (isAnnoying(mod, p.up())) return p.up();\n BlockPos[] toCheck = generateSides(p);\n for (BlockPos check : toCheck) {\n if (isAnnoying(mod, check)) {\n return check;\n }\n }\n BlockPos[] toCheckHigh = generateSides(p.up());\n for (BlockPos check : toCheckHigh) {\n if (isAnnoying(mod, check)) {\n return check;\n }\n }\n return null;\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 }",
"public void strafeLeft(){\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}",
"@Override\n public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z)\n {\n if(!this.canDoublechest) {\n this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);\n return;\n }\n if (isSameBlock(world, x, y, z - 1))\n {\n this.setBlockBounds(0.0625F, 0.0F, 0.0F, 0.9375F, 0.875F, 0.9375F);\n }\n else if (isSameBlock(world, x, y, z + 1))\n {\n this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 1.0F);\n }\n else if (isSameBlock(world, x - 1, y, z))\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);\n }\n else if (isSameBlock(world, x + 1, y, z))\n {\n this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 1.0F, 0.875F, 0.9375F);\n }\n else\n {\n this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);\n }\n }",
"@Override\n public void teleopPeriodic() {\n \n boolean targetFound = false; \n int Xpos = -1; int Ypos = -1; int Height = -1; int Width = -1; Double objDist = -1.0; double []objAng = {-1.0,-1.0};\n\n //Getting the number of blocks found\n int blockCount = pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25);\n\t\tSystem.out.println(\"Found \" + blockCount + \" blocks!\"); // Reports number of blocks found\n\t\tif (blockCount <= 0) {\n System.err.println(\"No blocks found\");\n }\n ArrayList <Block> blocks = pixy.getCCC().getBlocks();\n Block largestBlock = null;\n\n //verifies the largest block and store it in largestBlock\n for (Block block:blocks){\n if (block.getSignature() == Pixy2CCC.CCC_SIG1) {\n\n\t\t\t\tif (largestBlock == null) {\n\t\t\t\t\tlargestBlock = block;\n\t\t\t\t} else if (block.getWidth() > largestBlock.getWidth()) {\n\t\t\t\t\tlargestBlock = block;\n }\n\t\t\t}\n }\n //loop\n while (pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25)>=0 && ButtonLB){\n\n if (largestBlock != null){\n targetFound = true; \n Xpos = largestBlock.getX();\n Ypos = largestBlock.getY();\n Height = largestBlock.getHeight();\n Width = largestBlock.getWidth();\n\n objDist = RobotMap.calculateDist((double)Height, (double)Width, (double)Xpos, (double)Ypos);\n objAng = RobotMap.calculateAngle(objDist, Xpos, Ypos);\n \n }\n //print out values to Dashboard\n SmartDashboard.putBoolean(\"Target found\", targetFound);\n SmartDashboard.putNumber (\"Object_X\", Xpos);\n SmartDashboard.putNumber (\"Object_Y\", Ypos);\n SmartDashboard.putNumber (\"Height\", Height);\n SmartDashboard.putNumber(\"Width\", Width);\n SmartDashboard.putNumber (\"Distance\", objDist);\n SmartDashboard.putNumber(\"X Angle\", objAng[0]);\n SmartDashboard.putNumber(\"Y Angle\", objAng[1]);\n }\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/* */ }",
"public void onNeighborBlockChange(World world, int x, int y, int z, Block block){\n\t\t\tif (!world.isRemote && !world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStop(true);}\n\t\t\t\n\t if (!world.isRemote && world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStart(true);}\n\t\t}",
"public void go_to_base_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_base, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n // Extend the arm after getting to the base position\n Dispatcher.get_instance().add_job(new JRunnable(() -> Pneumatics.get_instance().set_solenoids(true), this));\n hold_arm();\n }",
"void dropCenter(ItemStack itemStack, Location location) {\n Location centeredLocation = new Location(location.getWorld(), location.getBlockX() + 0.5,\n location.getBlockY() + 0.5, location.getBlockZ() + 0.5);\n Item item = location.getWorld().dropItem(centeredLocation, itemStack);\n item.setVelocity(new Vector(0.0, 0.2, 0.0));\n }",
"public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemStack)\r\n {\r\n int l = MathHelper.floor_double((double)(entity.rotationYaw * (float)this.maxRotation / 360.0F) + 0.5D) & (this.maxRotation - 1);\r\n l %= this.maxRotation;\r\n\r\n TileCampfire tile = (TileCampfire)world.getTileEntity(x, y, z);\r\n tile.rotation = l; \r\n \r\n if (itemStack.hasDisplayName()) {\r\n \ttile.func_145951_a(itemStack.getDisplayName());\r\n }\r\n \t\t\r\n// if (l == 0)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 2, 2);\r\n// }\r\n//\r\n// if (l == 1)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 5, 2);\r\n// }\r\n//\r\n// if (l == 2)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 3, 2);\r\n// }\r\n//\r\n// if (l == 3)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 4, 2);\r\n// }\r\n//\r\n// if (itemStack.hasDisplayName())\r\n// {\r\n// ((TileCampfire)world.getTileEntity(x, y, z)).func_145951_a(itemStack.getDisplayName());\r\n// }\r\n \r\n// int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * (float)this.maxRotation() / 360.0F) + 0.5D) & this.maxRotation() - 1;\r\n// l %= this.maxRotation();\r\n// TileColorable tile = (TileColorable)par1World.getTileEntity(par2, par3, par4);\r\n// tile.rotation = l;\r\n }",
"@Override\n\tpublic boolean updatePos(Physical_passive map) {\n\t\tupdate_animSpeed();\n\t\t// if (!map.getPhysicalRectangle().contains(getPhysicalShape()))\n\t\t// return false;\n\t\tif (!isDead()) {\n\t\t\tResolveUnreleasedMovements();\n\t\t\tgetWeapon().update();\n\t\t\tupdatePush();\n\t\t\t/*\n\t\t\t * if (!isBlock_down()) { // Por lo visto esto controla el salto if\n\t\t\t * (getJumpTTL() != 0) { moveJump(); } else // Y este 3 es la\n\t\t\t * gravedad., lo paso a un metodo de actor // para decirle q empiece\n\t\t\t * a caer fall(); // ; }\n\t\t\t */\n\t\t\t// Aqui es donde realmente cambiamos la posicion una vez calculado\n\t\t\t// donde va a ir.\n\t\t\t// updateLegsRotation(getSpeed().add(getPosition()));\n\t\t\tgetLegs().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\tsetPosition(getPosition().add(getSpeed().add(getPush())));\n\t\t\tgetTorax().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\t// setPosition(getPosition().add(getSpeed().add(getPush()))); //\n\t\t\t// CAmbiado;\n\t\t\tLine2D line = new Line2D.Float((float) getKillTracer().getTrace().getLine().getX1(),\n\t\t\t\t\t(float) getKillTracer().getTrace().getLine().getY1(), (float) getSpeed().x(),\n\t\t\t\t\t(float) getSpeed().y());\n\t\t\tgetKillTracer().getTrace().setLine(line);\n\t\t\tArrayList<Entity> hits = getKillTracer().getCollision(getMap());\n\t\t\tfor (Entity ent : hits) {\n\t\t\t\tif (ent instanceof Player && ent != this) {\n\t\t\t\t\tPlayer plent = (Player) ent;\n\t\t\t\t\tplent.die();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onBlockPlace(BlockPlaceEvent event) {\n if (event.getBlock().getType() == Material.IRON_BLOCK) {\n\n running = true;\n\n Location location = event.getBlock().getLocation();\n int size = Options.ARENA_SIZE;\n\n // Set our Y to where we won't collide with anything.\n location.setY(location.getWorld().getHighestBlockYAt(location));\n\n for (int x = -size / 2; x <= size / 2; x++) {\n for (int z = -size / 2; z <= size / 2; z++) {\n int maxY = (x == -size / 2 || z == -size / 2 || x == size / 2 || z == size / 2) ? 5 : 1;\n\n for (int y = 0; y < maxY; y++) {\n Block block = location.clone().add(x, y, z).getBlock();\n\n if (y == 0) {\n block.setType(Material.NETHERRACK);\n } else {\n block.setType(Material.IRON_FENCE);\n }\n }\n }\n }\n\n Player player = event.getPlayer();\n\n player.getInventory().clear();\n player.getActivePotionEffects().clear();\n player.setGameMode(GameMode.ADVENTURE);\n player.teleport(location.clone().add(5, 1, 0));\n\n player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(ChatColor.RED + \"An arena appears...\"));\n\n Options.KIT_ITEMS.forEach(itemStack -> player.getInventory().addItem(itemStack.clone()));\n \n updateArmor(player);\n\n Bukkit.getScheduler().scheduleSyncDelayedTask(Plugin.getInstance(), () -> {\n Location spawnLocation = location.clone().add(0, 1, 0);\n\n SpawnControl point = new SpawnControl(spawnLocation);\n NPCController controller = new NPCController(player.getUniqueId(), point);\n\n NPCRegistry.getInstance().register(controller);\n });\n\n event.setBuild(false);\n }\n }",
"@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAtOrigin() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(0, 0)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }",
"public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }",
"public Location teleport(LivingEntity entity, boolean safe, boolean centerEntity, boolean allowWater, TeleportCause tpCause) {\r\n\t\t// get the safe tp location\r\n\t\tLocation tpLocation = destination.clone();\r\n\t\t\r\n\t\tif(centerEntity)\r\n\t\t\ttpLocation = new Location(\r\n\t\t\t\t\ttpLocation.getWorld(), \r\n\t\t\t\t\ttpLocation.getBlockX() + 0.5, \r\n\t\t\t\t\ttpLocation.getBlockY(), \r\n\t\t\t\t\ttpLocation.getBlockZ() + 0.5, \r\n\t\t\t\t\ttpLocation.getYaw(), \r\n\t\t\t\t\ttpLocation.getPitch());\r\n\t\t\r\n\t\t// if we want the tp to be safe, get the safe location\r\n\t\tif(safe)\r\n\t\t\ttpLocation = getSafePoint(tpLocation, allowWater, (int)entity.getEyeHeight());\r\n\t\t\r\n\t\t// if null, no safe location found, return null\r\n\t\tif(tpLocation == null)\r\n\t\t\treturn null;\r\n\t\tHashMap<Entity, List<Entity>> ridingEntities = new HashMap<Entity, List<Entity>>();\r\n\t\t\r\n\t\t// loop all the passengers\r\n\t\tLinkedList<Entity> passengers = new LinkedList<Entity>();\r\n\t\tpassengers.add(entity);\r\n\t\t\r\n\t\t// add all the entities into the hashmap\r\n\t\tEntity passenger_ = null;\r\n\t\twhile(!passengers.isEmpty()) {\r\n\t\t\tpassenger_ = passengers.pop();\r\n\t\t\tpassengers.addAll(passenger_.getPassengers());\r\n\t\t\t\r\n\t\t\tridingEntities.put(passenger_, passenger_.getPassengers());\r\n\t\t\t// unseat the riding entites\r\n\t\t\tentity.eject();\r\n\t\t}\r\n\t\t\r\n\t\t// entities to remove from the riding thing\r\n\t\tList<Entity> toRemove = new ArrayList<Entity>();\r\n\t\t\r\n\t\t// teleport all players to the new location\r\n\t\tfor(Entity entity_ : ridingEntities.keySet()) {\r\n\t\t\tif(!entity_.teleport(tpLocation, tpCause))\r\n\t\t\t\ttoRemove.add(entity_);\r\n\t\t}\r\n\t\t\r\n\t\t// remove any mounts that may have failed to teleport\r\n\t\tfor(Entity ent : toRemove)\r\n\t\t\tridingEntities.remove(ent);\r\n\t\t\r\n\t\t// mount the entities\r\n\t\tfor(Entry<Entity, List<Entity>> entry : ridingEntities.entrySet()) {\r\n\t\t\t// seat all the passengers except those which failed to teleport\r\n\t\t\tfor(Entity ent : entry.getValue()) {\r\n\t\t\t\tif(toRemove.contains(ent))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tentry.getKey().addPassenger(ent);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn tpLocation;\r\n\t}",
"Tile getPosition();",
"private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }",
"@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\tpublic void IsAtCentre(boolean b, Time time) {\n\t\t\n\t}",
"@SubscribeEvent\n public void onPlayerClickGrassBlock(BonemealEvent event)\n {\n if (!event.getWorld().isRemote)\n {\n \t\n if (event.getBlock()==Blocks.GRASS.getDefaultState())\n {\n \tSystem.out.println(\"触发了骨粉对草方块施肥事件\");\n EntityLiving entityLiving = new EntityButterfly(event.getWorld());\n BlockPos pos = event.getPos();\n entityLiving.setPositionAndUpdate(pos.getX() , pos.getY()+1, pos.getZ());\n event.getWorld().spawnEntityInWorld(entityLiving);\n return;\n }\n }\n }",
"void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"public void stepForwad() {\n\t\t\t\n\t\t\tswitch(this.direction) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tthis.x = (this.worldWidth + this.x)%this.worldWidth;\n\t\t\tthis.y = (this.worldHeight + this.y)%this.worldHeight;\n\t\t}"
] | [
"0.6668421",
"0.6639431",
"0.64958674",
"0.6267684",
"0.62140924",
"0.619627",
"0.61750525",
"0.61623514",
"0.6126287",
"0.60004514",
"0.5967872",
"0.5964074",
"0.59627575",
"0.595974",
"0.5940142",
"0.5930943",
"0.5923187",
"0.5920014",
"0.58922815",
"0.5887618",
"0.5887618",
"0.5887618",
"0.5867118",
"0.5846971",
"0.58455837",
"0.58292735",
"0.58200294",
"0.58190215",
"0.58063537",
"0.57938486",
"0.5780356",
"0.5756674",
"0.57563937",
"0.5755153",
"0.5748981",
"0.5748911",
"0.5748231",
"0.5740471",
"0.5730936",
"0.5716639",
"0.5715011",
"0.56996346",
"0.56901664",
"0.56889695",
"0.56814253",
"0.5667765",
"0.56433636",
"0.5638747",
"0.5635998",
"0.56340206",
"0.5622256",
"0.5619311",
"0.56171185",
"0.5612862",
"0.5609488",
"0.5602139",
"0.5600268",
"0.5596872",
"0.5596707",
"0.55927914",
"0.55882955",
"0.55744475",
"0.5566032",
"0.5565596",
"0.556359",
"0.55604434",
"0.55531526",
"0.55300236",
"0.552884",
"0.55172455",
"0.5501866",
"0.54931927",
"0.5482669",
"0.54817504",
"0.5480119",
"0.5472091",
"0.5469642",
"0.54585797",
"0.5458492",
"0.54540175",
"0.5452269",
"0.54520315",
"0.5449988",
"0.54495955",
"0.5449463",
"0.54493004",
"0.54473996",
"0.5443231",
"0.54427195",
"0.5436949",
"0.54291254",
"0.5426099",
"0.54204303",
"0.54164255",
"0.54164124",
"0.54145217",
"0.5411743",
"0.5405116",
"0.5404166",
"0.5404032",
"0.5402032"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getServerBroadcastPort() {
return 10081;
} | {
"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 int getClientBroadcastPort() {
return 10082;
} | {
"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 int getConnectionPort() {
return 10083;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Created by YZBbanban on 16/7/21. | public interface IPresenterDownload {
void findDownloadMessage();
void sendDownLoadMessage(DownloadDoc doc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\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\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"private void m50366E() {\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void poetries() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private void init() {\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 ligar() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"@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 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 init() {}",
"@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\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private Rekenhulp()\n\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}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"public void mo12628c() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void mo12930a() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"protected void mo6255a() {\n }",
"public void m23075a() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.6198023",
"0.60642153",
"0.6050115",
"0.6016394",
"0.5951107",
"0.5951107",
"0.594118",
"0.5912864",
"0.5839768",
"0.5818272",
"0.5789637",
"0.57784826",
"0.576121",
"0.5754079",
"0.57378995",
"0.5735934",
"0.5734229",
"0.57247496",
"0.5723645",
"0.57234114",
"0.57234114",
"0.57234114",
"0.57234114",
"0.57234114",
"0.5718949",
"0.5706637",
"0.5691903",
"0.5684979",
"0.5679481",
"0.5668652",
"0.56504136",
"0.56502193",
"0.56400114",
"0.56184614",
"0.561482",
"0.561482",
"0.5612623",
"0.5607848",
"0.56027454",
"0.55984616",
"0.55952805",
"0.5595241",
"0.5595241",
"0.5595241",
"0.5595241",
"0.5595241",
"0.5595241",
"0.5595241",
"0.55875975",
"0.55848986",
"0.55840576",
"0.55840576",
"0.55840576",
"0.55828315",
"0.55828315",
"0.55828315",
"0.55828315",
"0.55828315",
"0.55828315",
"0.55788493",
"0.55784583",
"0.55784583",
"0.55784583",
"0.5566385",
"0.5566385",
"0.5566368",
"0.5562638",
"0.5558793",
"0.5558793",
"0.55575997",
"0.5553188",
"0.5553188",
"0.5553188",
"0.55522555",
"0.55432165",
"0.553229",
"0.5529588",
"0.55292815",
"0.55227536",
"0.552094",
"0.55068046",
"0.55052775",
"0.5501647",
"0.5501296",
"0.5499854",
"0.549375",
"0.5489104",
"0.54879946",
"0.54767466",
"0.5464541",
"0.5464155",
"0.5464119",
"0.54575706",
"0.54557806",
"0.54461634",
"0.5445481",
"0.54377764",
"0.5430771",
"0.5408384",
"0.5407157",
"0.5406028"
] | 0.0 | -1 |
Inserta un nuevo juego | public boolean insertarNuevoJuego(Juegos juego) {
String metodo="insertarNuevoJuego";
boolean res = false;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
//guardamos
session.save(juego);
session.flush();
tx.commit();
log.info("DAOJuegos: "+metodo+": Juego " + juego.getNombre() + " INSERTADO OK");
res = true;
} catch (org.hibernate.HibernateException he) {
tx.rollback();
log.error("DAOJuegos: "+metodo+": Error de Hibernate: " + he.getMessage());
} catch (SQLException sqle) {
tx.rollback();
log.error("DAOJuegos: "+metodo+": Error SQLException: " + sqle.getMessage());
} catch (Exception e) {
tx.rollback();
log.error("DAOJuegos: "+metodo+": Error Exception: " + e.getMessage());
} finally {
// Liberamos sesión
HibernateUtil.closeSession();
log.info("DAOJuegos: "+metodo+": Sesion liberada. Finished");
}
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}",
"@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }",
"@Override\n\tpublic Tutorial insert(Tutorial t) {\n\t\treturn cotizadorRepository.save(t);\n\n\t\t\n\t}",
"public void inserir(Comentario c);",
"@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}",
"@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void insertar() {\n\t\t\n\t}",
"public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }",
"public void insertar() throws SQLException {\n String sentIn = \" INSERT INTO datosnodoactual(AmigoIP, AmigoPuerto, AmigoCertificado, AmigoNombre, AmigoSobreNombre, AmigoLogueoName, AmigoPassword) \"\r\n + \"VALUES (\" + AmigoIp + \",\" + AmigoPuerto + \",\" + AmigoCertificado + \",\" + AmigoNombre + \",\" + AmigoSobreNombre + \",\" + AmigoLogueoName + \",\" + AmigoPassword + \")\";\r\n System.out.println(sentIn);\r\n InsertApp command = new InsertApp();\r\n try (Connection conn = command.connect();\r\n PreparedStatement pstmt = conn.prepareStatement(sentIn)) {\r\n if (pstmt.executeUpdate() != 0) {\r\n System.out.println(\"guardado\");\r\n } else {\r\n System.out.println(\"error\");\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public void insert(Service servico){\n Database.servico.add(servico);\n }",
"public void nuevoPaciente(String idPaciente, String DNI, String nombres, String apellidos, String direccion, String ubigeo, String telefono1, String telefono2, String edad)\n {\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"insert into \" + \" paciente(idPaciente, dui, nombres, apellidos, direccion, ubigeo, telefono1, telefono2, edad)\" + \"values (?,?,?,?,?,?,?,?,?)\");\n \n pstm.setString(1, idPaciente);\n pstm.setString(2, DNI);\n pstm.setString(3, nombres);\n pstm.setString(4, apellidos);\n pstm.setString(5, direccion);\n pstm.setString(6, ubigeo);\n pstm.setString(7, telefono1);\n pstm.setString(8, telefono2);\n pstm.setString(9, edad); \n \n pstm.execute();\n pstm.close();\n }\n catch(SQLException e)\n {\n System.out.print(e);\n }\n }",
"@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}",
"int insert(Tipologia record);",
"public void guardar() {\n try {\n objConec.conectar();\n objConec.Sql = objConec.con.prepareStatement(\"insert into contacto values(null,?,?,?,?,?)\");\n objConec.Sql.setString(1, getNom_con());\n objConec.Sql.setInt(2, getTel_con()); \n objConec.Sql.setString(3, getEma_con());\n objConec.Sql.setString(4, getAsu_con());\n objConec.Sql.setString(5, getMen_con());\n objConec.Sql.executeUpdate();\n objConec.cerrar();\n JOptionPane.showMessageDialog(null, \"Mensaje enviado correctamente\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Error al enviar el mensaje\");\n\n }\n\n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}",
"public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }",
"public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"public void processInsertar() {\n }",
"int insert(Movimiento record);",
"public void insert(Curso curso) throws SQLException {\n String query = \"\";\n Conexion db = new Conexion();\n\n query = \"INSERT INTO curso VALUES (NULL,?,?,?);\";\n \n PreparedStatement ps = db.conectar().prepareStatement(query);\n //Aquí se asignaran a los interrogantes(?) anteriores el valor oportuno en el orden adecuado\n ps.setString(1, curso.getNombre()); \n ps.setInt(2, curso.getFamilia());\n ps.setString(3, curso.getProfesor());\n \n\n if (ps.executeUpdate() > 0) {\n System.out.println(\"El registro se insertó exitosamente.\");\n } else {\n System.out.println(\"No se pudo insertar el registro.\");\n }\n\n ps.close();\n db.conexion.close();\n }",
"public void InsertarProceso(Proceso nuevo) {\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tthis.cabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t}",
"private void insertar() {\n String nombre = edtNombre.getText().toString();\n String telefono = edtTelefono.getText().toString();\n String correo = edtCorreo.getText().toString();\n // Validaciones\n if (!esNombreValido(nombre)) {\n TextInputLayout mascaraCampoNombre = (TextInputLayout) findViewById(R.id.mcr_edt_nombre_empresa);\n mascaraCampoNombre.setError(\"Este campo no puede quedar vacío\");\n } else {\n mostrarProgreso(true);\n String[] columnasFiltro = {Configuracion.COLUMNA_EMPRESA_NOMBRE, Configuracion.COLUMNA_EMPRESA_TELEFONO\n , Configuracion.COLUMNA_EMPRESA_CORREO, Configuracion.COLUMNA_EMPRESA_STATUS};\n String[] valorFiltro = {nombre, telefono, correo, estado};\n Log.v(\"AGET-ESTADO\", \"ENVIADO: \" + estado);\n resultado = new ObtencionDeResultadoBcst(this, Configuracion.INTENT_EMPRESA_CLIENTE, columnasFiltro, valorFiltro, tabla, null, false);\n if (ID.isEmpty()) {\n resultado.execute(Configuracion.PETICION_EMPRESA_REGISTRO, tipoPeticion);\n } else {\n resultado.execute(Configuracion.PETICION_EMPRESA_MODIFICAR_ELIMINAR + ID, tipoPeticion);\n }\n }\n }",
"public void insere (String nome)\n {\n //TODO\n }",
"public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);",
"public Mascota insert(Mascota mascota){\n if(mascota != null)\n mascotaRepository.save(mascota);\n return mascota;\n }",
"public void AgregarUsuario(Usuario usuario)\n {\n //encerramos todo en un try para manejar los errores\n try{\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"INSERT INTO puntajes(nombre,puntaje) values(?,?)\";\n \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, usuario.RetornarNombre());\n statement.setInt(2, usuario.RetornarPremio());\n int RowsInserted = statement.executeUpdate();\n \n if(RowsInserted > 0)\n {\n System.out.println(\"La insercion fue exitosa\");\n System.out.println(\"--------------------------------------\");\n }\n else\n {\n System.out.println(\"Hubo un error con la insercion\");\n System.out.println(\"--------------------------------------\");\n }\n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void inserir(Evento evento) {\n\t\trepository.save(evento);\r\n\t}",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"public void insertaMensaje(InfoMensaje m) throws Exception;",
"public void insertar(int rafaga, int tiempo) {\n\t\tif (rafaga <= 0 || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.id = String.valueOf((char) this.caracter);\n\t\tthis.caracter++;\n\t\tnuevo.rafaga = rafaga;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.ColaProviene = this.NombreCola;\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"public static void inserir(String nome, int id){\n System.out.println(\"Dados inseridos!\");\n }",
"@Override\n\tpublic void insertArticle(BoardVO vo) {\n\t\tString sql = \"INSERT INTO board VALUES(board_id_seq.NEXTVAL,?,?,?)\";\n\t\ttemplate.update(sql,vo.getWriter(),vo.getTitle(),vo.getContent());\n\t}",
"public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n\tpublic String insert() {\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doSave(admin)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"²åÈë\");\r\n\t\treturn SUCCESS;\r\n\t}",
"int insert(Prueba record);",
"public void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\n}",
"@Override //inserisce un viaggio nel db // \r\n\tpublic boolean create(Viaggio viaggio) {\r\n\t\tboolean esito=false;\r\n\t\tif(viaggio==null) {\r\n\t\t\tSystem.out.println( \"insert(): failed to insert a null entry\");\r\n\t\t\t}\r\n\t\ttry {\r\n\t\t\tPreparedStatement prep_stmt = conn.prepareStatement(MssqlViaggioDAO.insert);\r\n\t\t\tprep_stmt.clearParameters();\r\n\t\t\t//prep_stmt.setInt(1,viaggio.getIdViaggio());\r\n\t\t\tint i=1;\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getCreatore().getId());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getTitolo());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDestinazione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDescrizione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLingua());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getBudget());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLuogopartenza());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getStato().ordinal());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatainizio());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatafine());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getImmaginiProfilo());\t\t\r\n\t\t\tif(prep_stmt.executeUpdate()>0) esito= true;\r\n\t\t\telse esito= false;\r\n\t\t\tprep_stmt.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"create(): failed to insert entry: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t\treturn esito;\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void insertUser() {}",
"public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }",
"int insert(ParUsuarios record);",
"@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void insertNewProduto(ProdutoTO produto){\n\t\ttry {\n\t\t\tmodelProduto.insertNewProduto(produto);\n\t\t\tsuper.updateViewPrincipal(viewPrincipal);\n\t\t} catch (ProdutoException e) {\n\t\t\te.printStackTrace();\n\t\t\tgetControllerError().initialize(e);\n\t\t}\n\t}",
"@Override\r\n\tpublic Usuario insert(Usuario t) {\n\t\treturn null;\r\n\t}",
"public void insertar2(String nombre, String apellido, String mail, String celular, String comuna,String profesor,String alumno,String clave) {\n db.execSQL(\"insert into \" + TABLE_NAME + \" values (null,'\" + nombre + \"','\" + apellido + \"','\" + mail + \"','\" + celular + \"','\" + comuna + \"',\" + profesor + \",0,0,0,0,\" + alumno + \",'\" + clave + \"')\");\n }",
"private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}",
"public void insert(Object objekt) throws SQLException {\r\n\t\t \r\n\t\tPomagaloVO ul = (PomagaloVO) objekt;\r\n\r\n\t\tif (ul == null)\r\n\t\t\tthrow new SQLException(\"Insert \" + tablica\r\n\t\t\t\t\t+ \", ulazna vrijednost je null!\");\r\n\t\t \r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\ttry {\r\n\t\t\tconn = conBroker.getConnection();\r\n\r\n\t\t\tps = conn.prepareStatement(insertUpit);\r\n\r\n\t\t\tps.setString(1, ul.getSifraArtikla());\r\n\t\t\tps.setString(2, ul.getNaziv());\r\n\t\t\tps.setInt(3, ul.getPoreznaSkupina().intValue());\r\n\r\n\t\t\tif (ul.getCijenaSPDVom() == null\r\n\t\t\t\t\t|| ul.getCijenaSPDVom().intValue() <= 0)\r\n\t\t\t\tps.setNull(4, Types.INTEGER);\r\n\t\t\telse\r\n\t\t\t\tps.setInt(4, ul.getCijenaSPDVom().intValue());\r\n\r\n\t\t\tString op = ul.getOptickoPomagalo() != null\r\n\t\t\t\t\t&& ul.getOptickoPomagalo().booleanValue() ? DA : NE;\r\n\r\n\t\t\tps.setString(5, op);\r\n\t\t\t\r\n\t\t\tps.setTimestamp(6, new Timestamp(System.currentTimeMillis()));\r\n\t\t\tps.setInt(7, NEPOSTOJECA_SIFRA);\r\n\t\t\tps.setTimestamp(8, null);\r\n\t\t\tps.setNull(9, Types.INTEGER);\r\n\r\n\t\t\tint kom = ps.executeUpdate();\r\n\r\n\t\t\tif (kom == 1) {\r\n\t\t\t\tul.setSifra(Integer.valueOf(0)); // po tome i pozivac zna da je\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// insert uspio...\r\n\t\t\t}// if kom==1\r\n\t\t\telse {\r\n\t\t\t\t//Logger.fatal(\"neuspio insert zapisa u tablicu \" + tablica, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// nema catch-anja SQL exceptiona... neka se pozivatelj iznad jebe ...\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (ps != null)\r\n\t\t\t\t\tps.close();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t}\r\n\t\t\tconBroker.freeConnection(conn);\r\n\t\t}// finally\r\n\r\n\t}",
"public boolean insert(Vacante vacante) {\n try {\n //Variable que lleva la sentencia SQL\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String sql = \"INSERT INTO vacante VALUES(?,?,?,?,?)\";\n //Permite ejecutar una sentencia SQL\n PreparedStatement ps = conn.getConnection().prepareStatement(sql);\n ps.setInt(1, vacante.getId());\n ps.setString(2, format.format(vacante.getFechaPublicacion()));\n ps.setString(3, vacante.getNombre());\n ps.setString(5, vacante.getDetalle());\n ps.setString(4, vacante.getDescripcion());\n ps.executeUpdate();\n return true;\n\n } catch (Exception e) {\n System.out.println(\"Error VacanteDao.insert\" + e.getMessage());\n return false;\n }\n\n }",
"public void insert() throws SQLException;",
"public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }",
"void insert(CTipoComprobante record) throws SQLException;",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"public static Efectivo insertEfectivo(int id_efectivo, int numero_pago){\n \n Efectivo miEfectivo = new Efectivo(id_efectivo,numero_pago);\n miEfectivo.registrarEfectivo();\n return miEfectivo;\n }",
"@Override\r\n public void agregarVehiculo(VehiculoModel vehiculo) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"Insert into vehiculo(veh_placa, veh_marca, veh_modelo, veh_anio, veh_capacidad, veh_color, veh_kilometros) values (?, ?, ?, ?, ?, ?, ?)\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, vehiculo.getVehPlaca());\r\n statement.setString(2, vehiculo.getVehMarca());\r\n statement.setString(3, vehiculo.getVehModelo());\r\n statement.setInt(4, vehiculo.getVehAnio());\r\n statement.setInt(5, vehiculo.getVehCapacidad());\r\n statement.setString(6, vehiculo.getVehColor());\r\n statement.setInt(7, vehiculo.getVehKilometros());\r\n //para insert into se usa executeUpdate();\r\n int rowUpdated = statement.executeUpdate();\r\n if(rowUpdated > 0){\r\n JOptionPane.showMessageDialog(null, \"El registro fue \" \r\n + \" creado exitosamente.\");\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Codigo : \" + ex.getErrorCode() + \"\\nError : \" + ex.getMessage());\r\n }\r\n }",
"public NominaPuestoPk insert(NominaPuesto dto) throws NominaPuestoDaoException;",
"public void insertarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdSeccion(38);\n \tgrado.setNumGrado(2);\n \tgrado.setUltimoGrado(0);\n \tString respuesta = negocio.insertarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }",
"public void insert(Doacao doacao) {\n SQLiteDatabase sqLiteDatabase = getWritableDatabase();\n\n //Abrindo o mapeamento dos dados para o insert\n ContentValues dados = new ContentValues();\n\n dados.put(\"id_participa_campanha\",doacao.getId_participa_campanha());\n dados.put(\"id_recurso\",doacao.getId_recurso());\n dados.put(\"data\",doacao.getData());\n dados.put(\"quantidade\",doacao.getQuantidade());\n\n\n sqLiteDatabase.insert(\"doacao\",null, dados);\n\n }",
"public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }",
"public void insertEstudio(){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n\n //Metodo apra almacenar fecha en SQLite\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = sdf.format(new Date());\n\n ContentValues registro = new ContentValues(); // Instanciamos el objeto contenedor de valores.\n registro.put(\"fecha\", date); // Aqui asociamos los atributos de la tabla con los valores de los campos (Recuerda el campo de la tabla debe ser igual aqui)\n registro.put(\"co_actividad\", \"1\"); // Aqui asociamos los atributos de la tabla con los valores de los campos (Recuerda el campo de la tabla debe ser igual aqui)\n\n //Conectamos con la base datos insertamos.\n BasesDeDatos.insert(\"t_estudios\", null, registro);\n BasesDeDatos.close();\n\n }",
"public TipologiaStrutturaPk insert(TipologiaStruttura dto) throws TipologiaStrutturaDaoException;",
"public boolean insertAdministrador(int id,int idEscuela,String nombre){\n boolean retorno = false;\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"IDADMIN\",id);\n contentValues.put(\"IDESCUELA\",idEscuela);\n contentValues.put(\"NOMADMIN\",nombre);\n long resul = db.insert(\"ADMINISTRADOR\",null,contentValues);\n db.close();\n if (resul ==-1){\n retorno=false;\n }else{\n retorno=true;\n }\n return retorno;\n }",
"public int insertar()\n {\n try {\n Conexion conn = Conexion.getInstance();\n return conn.insertarUsuario(this);\n } catch (SQLException |Config.ReadException|Config.EmptyProperty throwables) {\n return -1;\n }\n }",
"@Override\n\tpublic void inserir(CLIENTE cliente) {\n\t\t\n\t\tString sql = \"INSERT INTO CLIENTE (NOME_CLIENTE) VALUES (?)\";\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tps.setString(1, cliente.getNomeCliente());\n\t\t\t\n\t\t\tps.execute();\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.setString(2, getText());\n ps.setString(3, getBild());\n ps.setString(4, getPolizist());\n ps.setString(5, getFall());\n ps.executeUpdate();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n setID(rs.getString(1));\n getPk().setValue(getID());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void insert(Unidade obj) {\n\n\t}",
"int insertSelective(Movimiento record);",
"@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}",
"public void insertOption(Opcion o){\n\t\topciones.persist(o);\n\t}",
"@Override\n\tpublic void ajouter(Zone t) {\n\t\ttry {\n\t\t\t //preparation de la requete\n\t\t\tString sql=\"INSERT into zone (lieu,frequence,id_chaine) values(?, ?,?)\";\n\t\t\tPreparedStatement pst=Con.prepareStatement(sql);\n\t\t\t//transmission des valeurs aux parametres de la requete\n\t\t\tpst.setString(1,t.getLieu());\n\t\t\tpst.setString(2,t.getFrequence());\n\t\t\tpst.setInt(3, t.getChaine().getId_chaine());\n\t\t\t//execussion de la requete\n\t\t\tpst.executeUpdate();\n\t\t\tSystem.out.println(\"zone ajoutees \");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\tSystem.out.println(\"Probleme de driver ou connection avec la BD\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private void insertar(String nombre, String Contra) {\n ini.Tabla.insertar(nombre, Contra);\n AVLTree arbol = new AVLTree();\n Nod nodo=null;\n ini.ListaGen.append(0,0,\"\\\\\",nombre,\"\\\\\",\"\\\\\",arbol,\"C\",nodo); \n \n }",
"public OrdemDeServico inserir (OrdemDeServico servico) {\n\t\tservico.setId((Long) null);\n\t\treturn repoOrdem.save(servico);\n\t}",
"public boolean insert(Panier nouveau) {\n\t\treturn false;\r\n\t}",
"@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(DataTugas dataTugas);",
"public void insert()\n\t{\n\t}",
"public void insertar(Trabajo t){\r\n\t\tif(!estaLlena()){\r\n\t\t\tultimo = siguiente(ultimo);\r\n\t\t\telementos[ultimo] = t;\r\n\t\t}\r\n\t}",
"public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}",
"@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}",
"public void onClick(View v) {\n String cod = txtCodigo.getText().toString();\n String nom = txtNombre.getText().toString();\n\n //Alternativa 1: método sqlExec()\n //String sql = \"INSERT INTO Usuarios (codigo,nombre) VALUES ('\" + cod + \"','\" + nom + \"') \";\n //db.execSQL(sql);\n\n //Alternativa 2: método insert()\n ContentValues nuevoRegistro = new ContentValues();\n nuevoRegistro.put(\"codigo\", cod);\n nuevoRegistro.put(\"nombre\", nom);\n db.insert(\"Usuarios\", null, nuevoRegistro);\n }",
"public static void guardarEstudianteBD(Estudiante estudiante) {\r\n //metimos este metodo dentro de la base de datos \r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //ingresamos la direccion donde se encuntra la base de datos \r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.println(\"Conexion establecida!\");\r\n Statement sentencia = (Statement) conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"insert into estudiante values(\"\r\n + \"'\" + estudiante.getNro_de_ID()\r\n + \"','\" + estudiante.getNombres()\r\n + \"','\" + estudiante.getApellidos()\r\n + \"','\" + estudiante.getLaboratorio()\r\n + \"','\" + estudiante.getCarrera()\r\n + \"','\" + estudiante.getModulo()\r\n + \"','\" + estudiante.getMateria()\r\n + \"','\" + estudiante.getFecha()\r\n + \"','\" + estudiante.getHora_Ingreso()\r\n + \"','\" + estudiante.getHora_Salida()\r\n + \"')\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n }",
"@Override\n\tpublic UUID insert(KomponenNilai komp) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tUUID insertId = (UUID)session.save(komp);\n\t\ttx.commit();\n\t\tsession.flush();\n\t\tsession.close();\n\t\treturn insertId;\n\t}",
"@Override\n public int insertar(ClienteBean cliente) {\n clienteDAO = new ClienteDAOImpl();\n return clienteDAO.insertar (cliente);\n }",
"public static Paquete insertPaquete(String nombre_paquete, \n String descripcion_paquete){\n Paquete miPaquete = new Paquete(nombre_paquete, descripcion_paquete);\n miPaquete.registrarPaquete();\n return miPaquete;\n \n }",
"@Override\n\tpublic void insert(Categoria cat) throws SQLException {\n\t\t\n\t}",
"public int agregar(Persona p) {\n\t\tint r=0;\n\t\t\n\t\t\n\t\t String query = \"INSERT INTO TABLA (Id, nombre) values (?, ?)\";\n\t\ttry {\n\t\t\t\n\t\t\tcon= c.conectar();\n\t\t\tps=con.prepareStatement(query);\n\t\t\t\n\t\t\tps.setString(1, p.getId());\n\t\t\tps.setString(2, p.getNom());\n\t\t\tr=ps.executeUpdate();\n\t\t\tif(r==1) {\n\t\t\t\tr=1;\n\t\t\t}else {\n\t\t\t\tr=0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t}\n\t\treturn r;\n\t\t\n\t\t\n\t\t\n\t}",
"public void createEmp(Empresa p) throws ClassNotFoundException {\r\n\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n\r\n try {\r\n stmt = con.prepareStatement(\"INSERT INTO tbempresas(codEmp,nomeEmp)\" + \"VALUES(?,?)\");\r\n stmt.setInt(1, p.getCodEmp());\r\n stmt.setString(2, p.getNomeEmp());\r\n\r\n stmt.executeUpdate();\r\n\r\n JOptionPane.showMessageDialog(null, \"salvo com sucesso\");\r\n } catch (SQLException ex) {\r\n System.out.println(ex);\r\n } finally {\r\n ConnectionFactory.closeConnection((com.mysql.jdbc.Connection) con, stmt);\r\n }\r\n }",
"public void insertarHematologia(Examen.Hematologia hematologia)\n {\n ContentValues valores = new ContentValues();\n valores.put(\"fecha\",formatter.format(hematologia.getFechaExamen()));\n valores.put(\"fibrinogeno\",hematologia.getFibrinogeno());\n valores.put(\"leucocitos\",hematologia.getFibrinogeno());\n valores.put(\"hemoglobina\",hematologia.getHemoglobina());\n valores.put(\"hematocrito\",hematologia.getHematocrito());\n valores.put(\"plaqueta\",hematologia.getPlaquetas());\n valores.put(\"vsg\",hematologia.getVsg());\n valores.put(\"hcm\",hematologia.getVsg());\n\n db.insert(\"hematologia\",null,valores);\n\n }",
"public void ejecutar() {\r\n\t\tmediador.irInicioInsert(true);\r\n\t}",
"public int insertTurno(Turno t) {\r\n\t\t// TODO He quitado esta comprobación porque si metes un turno, se le asigna un id nuevo, ¿no? - Dani\r\n//\t\tif (getTurno(t.getIdTurno())!=null) return -1;\r\n\t\tint i = controlador.insertTurno(t);\r\n\t\tt.setIdTurno(i);\r\n\t\tturnos.add(t);\r\n\t\treturn i;\r\n\t}",
"public void insert(User user);",
"public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }",
"@RequestMapping(method = RequestMethod.POST)\n\t\tpublic ResponseEntity<Void> inserir(@RequestBody Pedido obj) {\n\t\t\tobj = service.insere(obj);\n\t\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n\t\t\treturn ResponseEntity.created(uri).build();\n\t\t}",
"public void insert(Teacher o) throws SQLException {\n\t\t\r\n\t}",
"public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}",
"public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void crearequipo(String nombre,String ciudad,String pais) {\r\n\r\n\t\t\tConnection c = ConnectionDB.conectarMySQL();\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement stmt = c\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO equipo (nombre , ciudad ,pais ) Values('\"+ nombre + \"','\" + ciudad + \"','\" + pais + \"')\");\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}",
"public String insertEscuela(Escuela escuela){\n String regInsertado = \"Registro Escuela #\";\n long contador = 0;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"IDESCUELA\",escuela.getIdentificadorEscuela());\n contentValues.put(\"NOMESCUELA\", escuela.getNombreEscuela());\n contador = db.insert(\"ESCUELA\",null,contentValues);\n db.close();\n\n if(contador == -1 || contador == 0){\n regInsertado = \"Error al insertar Escuela. Registro duplicado.\";\n }else{\n regInsertado = regInsertado + contador;\n }\n return regInsertado;\n }",
"public TipoPk insert(Tipo dto) throws TipoDaoException;",
"@Transactional\r\n\r\n\t@Override\r\n\tpublic void insertar(Distrito distrito) {\n\t\tem.persist(distrito);\t\r\n\t}"
] | [
"0.74369204",
"0.72363603",
"0.7235082",
"0.7163073",
"0.71303195",
"0.71209824",
"0.7053432",
"0.69889545",
"0.6986787",
"0.6971665",
"0.6908767",
"0.6876474",
"0.6871865",
"0.6821081",
"0.6796276",
"0.6779221",
"0.6776329",
"0.6773178",
"0.67708004",
"0.67691797",
"0.6747521",
"0.67447203",
"0.6724346",
"0.6709806",
"0.6700255",
"0.6688366",
"0.666999",
"0.6664814",
"0.66591173",
"0.6625988",
"0.66025215",
"0.65865624",
"0.6585198",
"0.65759695",
"0.6558195",
"0.6558184",
"0.65554243",
"0.6544947",
"0.6543688",
"0.65266144",
"0.6523412",
"0.6522689",
"0.6519811",
"0.6516824",
"0.65166426",
"0.6506869",
"0.6490641",
"0.64762086",
"0.6475372",
"0.646993",
"0.64685535",
"0.6460072",
"0.6457244",
"0.6453873",
"0.64469963",
"0.6440492",
"0.6436862",
"0.6435063",
"0.64130324",
"0.64098215",
"0.64039254",
"0.639957",
"0.6395833",
"0.6390297",
"0.63829124",
"0.63786244",
"0.6376192",
"0.6371049",
"0.6364757",
"0.6359262",
"0.6348888",
"0.6343615",
"0.63433284",
"0.63430554",
"0.63306504",
"0.6329665",
"0.63282764",
"0.632716",
"0.63263744",
"0.63228697",
"0.6322821",
"0.6321889",
"0.6313337",
"0.63079387",
"0.62935793",
"0.6290284",
"0.62850237",
"0.6284644",
"0.6280423",
"0.6278538",
"0.6269862",
"0.6264255",
"0.6260504",
"0.6253291",
"0.6253129",
"0.6252544",
"0.6251478",
"0.6249633",
"0.62435377",
"0.623946"
] | 0.6411814 | 59 |
Obtiene todos los juegos activos del Casino | public ArrayList getJuegosCasino() {
String metodo = "getJuegosCasino";
ArrayList lista = new ArrayList();
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
lista = (ArrayList) session.createQuery("from Juegos").list();
session.flush();
tx.commit();
log.info("DAOJuegos: " + metodo + ": Se obtienen " + lista.size() + " juegos");
} catch (org.hibernate.HibernateException he) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error de Hibernate: " + he.getMessage());
} catch (SQLException sqle) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error SQLException: " + sqle.getMessage());
} catch (Exception e) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error Exception: " + e.getMessage());
} finally {
// Liberamos sesión
HibernateUtil.closeSession();
log.info("DAOJuegos: " + metodo + ": Sesion liberada. Finished");
}
return lista;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Oficios> buscarActivas();",
"public void cargaJCIdiomas() {\n for (String idioma : lIdiomas) {\n Menus.jCIdioma.addItem(idioma);\n }\n }",
"private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }",
"private void cargaComonentes() {\n\t\trepoInstituciones = new InstitucionesRepository(session);\n\t\trepoInstitucion_usuario = new Institucion_UsuariosRepository(session);\n\t\tList upgdsList = null;\n\t\tif(mainApp.getUsuarioApp().getPer_Usu_Id().equalsIgnoreCase(\"Alcaldia\")){\n\t\t\tupgdsList = repoInstituciones.listByMunicipio(mainApp.getUsuarioApp().getMun_Usu_Id());\n\t\t\tInstituciones instiL=new Instituciones();\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstiL=(Instituciones) iter.next();\n\t\t\t\tinstitucionesList.add(instiL);\n\t\t\t}\n\t\t}else{\n\t\t\tInstitucion_Usuarios institucion_usuario = new Institucion_Usuarios();\n\t\t\tupgdsList = repoInstitucion_usuario.getListIpsByUsuario(mainApp.getUsuarioApp().getUsu_Id());\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstitucion_usuario = (Institucion_Usuarios) iter.next();\n\t\t\t\tinstitucionesList.add(repoInstituciones.findById(institucion_usuario.getIps_Ipsu_Id()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tinstitucionesBox.setItems(institucionesList);\n\t\tinstitucionesBox.setValue(mainApp.getInstitucionApp());\n\n\t\tinstitucionesBox.valueProperty().addListener(new ChangeListener<Instituciones>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Instituciones> observable, Instituciones oldValue,\n\t\t\t\t\tInstituciones newValue) {\n\t\t\t\tmainApp.setInstitucionApp(newValue);\n\t\t\t}\n\t\t});\n\t}",
"public JFPrincipioActivo() {\n initComponents();\n this.activarControles(false);\n this.listarPrincipiosActivos();\n }",
"private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}",
"public List<Permiso> obtenerTodosActivos();",
"private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }",
"private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}",
"private void inicializarComponentes() {\n universidadesIncluidos = UniversidadFacade.getInstance().listarTodosUniversidadOrdenados();\n universidadesIncluidos.removeAll(universidadesExcluidos);\n Comunes.cargarJList(jListMatriculasCatastrales, universidadesIncluidos);\n }",
"@Override\r\n\tpublic List<EquipoCompetencia> listarActivos() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String[] getActividades() {\n\t\treturn this.actividades;\n\t}",
"public String[] getActivations(){\n return activations;\n }",
"public CatalogoJogos() {\r\n\t\tthis.listaDeJogosComprados = new ArrayList<Jogo>();\r\n\t}",
"private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<TipoAsiento> listaTipoAsientosActivas() throws Exception {\n\t\treturn null;\n\t}",
"public void setActivo(String activo) {\r\n\t\tthis.activo = activo;\r\n\t}",
"private void cargarAutos() {\n Auto autos[]={\n new Auto(\"Bocho\",\"1994\"),\n new Auto(\"Jetta\",\"1997\"),\n new Auto(\"Challenger\",\"2011\"),\n new Auto(\"Ferrari\",\"2003\")\n };\n for (Auto auto : autos) {\n cboAutos.addItem(auto);\n \n }\n spnIndice.setModel(new SpinnerNumberModel(0, 0, autos.length-1, 1));\n }",
"@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}",
"public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}",
"private void getCodigosCasas(){\n mCodigosCasas = estudioAdapter.getListaCodigosCasasSinEnviar();\n //ca.close();\n }",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void turnoIniciado() {\n\t\t\n\t\tfor (Partida.Observer o : observers) {\n\n\t\t\to.turnoIniciado(tablero, turno);\n\t\t}\n\t}",
"public void listadoCarreras() {\r\n try {\r\n this.sessionProyecto.getCarreras().clear();\r\n this.sessionProyecto.getFilterCarreras().clear();\r\n this.sessionProyecto.getCarreras().addAll(sessionUsuarioCarrera.getCarreras());\r\n this.sessionProyecto.setFilterCarreras(this.sessionProyecto.getCarreras());\r\n } catch (Exception e) {\r\n }\r\n }",
"public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}",
"private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }",
"private void getCambiosCasas(){\n mCambiosCasas = estudioAdapter.getListaCambiosCasasSinEnviar();\n //ca.close();\n }",
"public void loadTodosMensajes() {\r\n\t\t// Carga mensajes\r\n\t\tinfoDebug(\"Vista\", \"Cargando mensajes\");\r\n\t\tmensajesEntrantes = getTodosMensajesEntrantes(getEmpleadoActual().getEmplId());\r\n\t\tinfoDebug(\"Vista\", \"Acabado\");\r\n\t}",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}",
"private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"private void inicializarJuego() {\n\t\tList<VerboIrregular> lista = utilService.getVerbosIrregulares(faciles, normales, dificiles);\n\n\t\trealmService.cambiarMostrarRespuestasVerbosIrregulares(lista, false);\n\n\t\tverbosIrregularesDesordenadas.clear();\n\n\t\tfor (VerboIrregular x : lista) {\n\t\t\tverbosIrregularesDesordenadas.add(x);\n\t\t}\n\n\t\tCollections.shuffle(verbosIrregularesDesordenadas);\n\t\t// --------------------------------------------------------------\n\n\t\t//------- Esto es por si el usuario quita una palabra problematica y se resetea el juego\n\t\tif (cantidadItems > verbosIrregularesDesordenadas.size()) {\n\t\t\tcantidadItems = verbosIrregularesDesordenadas.size();\n\t\t}\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tverbosIrregularesDesordenadas = verbosIrregularesDesordenadas.subList(0, cantidadItems);\n\n\t\tindice = 0;\n\t\tsetearTitulo();\n\n\t\tbtRestart.setVisibility(View.INVISIBLE);\n\t\tivCongratulations.setVisibility(View.INVISIBLE);\n\t\tmbNext.setVisibility(View.VISIBLE);\n\t\tbtPrevious.setVisibility(View.INVISIBLE);\n\t\ttvJuegoCantidadPalabras.setVisibility(View.VISIBLE);\n\t\tbtMostrarRespuestaJuego.setVisibility(View.VISIBLE);\n\t\ttvInfinitivo.setVisibility(View.VISIBLE);\n\t\tbtDificultad.setVisibility(View.VISIBLE);\n\t\tlyRespuestaJuego.setVisibility(View.INVISIBLE);\n\t\tbtVolver.setVisibility(View.INVISIBLE);\n\n\t\tsetearTextoArribaYColorDeBoton();\n\t}",
"public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }",
"public void setActivo(Boolean activo) {\n this.activo = activo;\n }",
"public String getActivo() {\r\n\t\treturn activo;\r\n\t}",
"private void getEncCasas() {\n mEncuestasCasas= estudioAdapter.getListaEncuestaCasasSinEnviar();\n //ca.close();\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"private void carregarAgendamentos() {\n agendamentos.clear();\n\n // Carregar os agendamentos do banco de dados\n agendamentos = new AgendamentoDAO(this).select();\n\n // Atualizar a lista\n setupRecyclerView();\n }",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}",
"public final Array<DodlesActor> activeActors() {\n return activeActors(true);\n }",
"private void solicitarDatos() {\n Intent intent = Henson.with(this).gotoAlumnoActivity().edad(mAlumno.getEdad()).nombre(\n mAlumno.getNombre()).build();\n startActivityForResult(intent, RC_ALUMNO);\n }",
"public void inicializarSugeridos() {\n\t\tarticulosSugeridos = new ArrayList<>();\n\t\tfor(Articulo articulo : this.getMain().getArticulosEnStock()) {\n\t\t\tarticulosSugeridos.add(articulo.getNombre().get() + \" - \" + articulo.getTalle().get());\n\t\t}\n\t\tasignarSugeridos();\n\t\tinicializarTxtArticuloVendido();\n\t}",
"private void activarControles(boolean estado) {\n this.panPrincipioActivo.setEnabled(estado);\n this.lblNombre.setEnabled(estado);\n this.txtNombre.setEditable(estado);\n this.lblDescripcion.setEnabled(estado);\n this.txtDescripcion.setEditable(estado);\n this.chkVigente.setEnabled(estado);\n this.btnAceptar.setEnabled(estado);\n this.btnCancelar.setEnabled(estado);\n \n this.panListadoPA.setEnabled(! estado);\n this.tblListadoPA.setEnabled(! estado);\n this.btnNuevo.setEnabled(! estado);\n this.btnModificar.setEnabled(! estado);\n \n if(estado == true){\n this.txtNombre.requestFocusInWindow();\n }else{\n this.tblListadoPA.requestFocusInWindow();\n }\n }",
"public void datosBundle()\n {\n //creamos un Bundle para recibir los datos de MascotasFavoritas al presionar el boton de atras en la ActionBar\n Bundle datosBundleAtras = getActivity().getIntent().getExtras();\n //preguntamos si este objeto viene con datos o esta vacio\n if(datosBundleAtras!=null)\n {//si hay datos estos se los agregamos a un ArrayList de mascotas\n mascotas = (ArrayList<Mascota>) datosBundleAtras.getSerializable(\"listamascotasatras\");\n }else{\n //si el bundle No trae datos entonces se inicializara la lista con datos\n validarBundle=1;\n //return;\n }\n }",
"@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}",
"@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}",
"private void mostrarLibros() {\n dlmLibros.clear();\n for (Libro libro : modelo.getLibros()) {\n dlmLibros.addElement(libro);\n }\n seleccionarLibrosOriginales();\n }",
"public List<Usuarios> findAllActive() throws javax.persistence.NoResultException {\r\n return EM.createNamedQuery(Usuarios.FIND_ALL_ACTIVE_USUARIOS)\r\n .setParameter(\"p2\", Estados.ACTIVO)\r\n .getResultList();\r\n }",
"private void obterDadosActivityLista() {\r\n bNnovo = getIntent().getExtras().getBoolean(\"novo\");\r\n }",
"public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}",
"public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }",
"private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }",
"public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}",
"public void abrirCaja() {\n\n\t\tthis.ventas.clear();\n\t\tthis.estadoDeCaja = true;\n\t}",
"public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }",
"private void capturarControles() {\n \t\n \ttxtNombre = (TextView)findViewById(R.id.txtNombre);\n \timagenDestacada = (ImageView)findViewById(R.id.imagenDestacada);\n\t\ttxtDescripcion = (TextView)findViewById(R.id.txtDescripcion);\n\t\tlblTitulo = (TextView)findViewById(R.id.lblTitulo);\n\t\tbtnVolver = (Button)findViewById(R.id.btnVolver);\n\t\tbtnHome = (Button)findViewById(R.id.btnHome);\n\t\tpanelCargando = (RelativeLayout)findViewById(R.id.panelCargando);\n\t}",
"private static void inicializarComponentes() {\n\t\tgaraje = new Garaje();\r\n\t\tgarajeController=new GarajeController();\r\n\t\tgarajeController.iniciarPlazas();\r\n\t\t\r\n\t\tmenuInicio = new StringBuilder();\r\n\t\tmenuInicio.append(\"¡Bienvenido al garaje!\\n\");\r\n\t\tmenuInicio.append(\"****************************************\\n\");\r\n\t\tmenuInicio.append(\"9: Guardar Plazas\\n\");\r\n\t\tmenuInicio.append(\"0: Listar Plazas\\n\");\r\n\t\tmenuInicio.append(\"1: Listar Plazas Coche\\n\");\r\n\t\tmenuInicio.append(\"2: Listar Plazas Moto\\n\");\r\n\t\tmenuInicio.append(\"3: Reservar Plaza\\n\");\r\n\t\tmenuInicio.append(\"4: Listar Plazas Libres\\n\");\r\n\t\tmenuInicio.append(\"5: Listar Clientes\\n\");\r\n\t\tmenuInicio.append(\"6: Listar Vehículos\\n\");\r\n//\t\tmenuInicio.append(\"7:\\n\");\r\n//\t\tmenuInicio.append(\"8:\\n\");\r\n\t}",
"private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }",
"public void conectarControlador(Controlador c){\n int i = 1;\n for(BCE b : eleccion.getBotones()){\n b.getBoton().setActionCommand(\"\" + i++);\n b.getBoton().addActionListener(c);\n }\n btnRegistrar.addActionListener(c);\n }",
"public void iniciarJuego(){\n\t\tcrearElementos();\n\t\t\n\t\t//CREAMOS LA PARTE GRAFICA\n\t\tJuegoUI vista = new JuegoUI();\n\t\tvista.iniciar(new Modelo()); \n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t \tturnos();\t\t \t\t\t\t\t \t\n\t\t \t\n\t\t \tvista.actualizar();\n\t\t\t\n\t\t\tverficarChoques();\n\t\t\t\n\t\t\tdepurarElementos();\n\t\t\t//Actualizar Estados\n\t\t\t\n\t\t\tactualizarEnConsola();\n\t\t\t\n\t\t \ttry {\n\t\t\t\tThread.sleep(100); //aca va un 1000\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public List<SistemaActividadHumana> obtenerActividadesConfiguradas(List<SistemaActividadHumana> actividades){\n\t\treturn null;\n\t}",
"private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\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 void activar(){\n\n }",
"public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }",
"public List<AccesorioBicicletaEntity> getAccesorioBici() {\r\n LOGGER.info(\"Inicia proceso de consultar todas las Bicicletaes\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<AccesorioBicicletaEntity> acc = persistence.findAll();\r\n LOGGER.info(\"Termina proceso de consultar todas las Bicicletaes\");\r\n return acc;\r\n }",
"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 }",
"private void onClasesValueChanged() {\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(listaArchivos.getSelectedValue());\n\t\t\tCompilationUnit cu = JavaParser.parse(in);\n\t\t\tif (listaClases.getSelectedValue() != null)\n\t\t\t{\n\t\t\t\tClassOrInterfaceDeclaration clase = cu.getClassByName(listaClases.getSelectedValue()).get();\n\t\n\t\t\t\tList<MethodDeclaration> metodos = clase.getMethods();\n\t\t\t\tList<ConstructorDeclaration> constructores = clase.getConstructors();\n\t\n\t\t\t\tString nombres[] = new String[metodos.size() + constructores.size()];\n\t\t\t\tfor (int i = 0; i < constructores.size(); i++) {\n\t\t\t\t\tnombres[i] = constructores.get(i).getName().toString();\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < metodos.size(); i++) {\n\t\t\t\t\tnombres[i + constructores.size()] = metodos.get(i).getName().toString();\n\t\t\t\t}\n\t\n\t\t\t\tactualizarLista(listaMetodos, nombres);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private List getActiveEntities() {\n \t\tList<String> chainIds = new ArrayList<String>();\n \t\tbioUnitTransformationsStructAssembly = bioUnitsStructAssembly.getBioUnitTransformationList(initialBioId);\n \t\tif (bioUnitTransformationsStructAssembly != null) {\n \t\t\tfor (ModelTransformationMatrix trans: bioUnitTransformationsStructAssembly) {\n \t\t\t\tchainIds.add(trans.ndbChainId);\n \t\t\t}\n \t\t}\n \t return chainIds;\n \t}",
"public void loadCompliments(){\n compliments = getResources().getStringArray(R.array.compliments_array);\n }",
"private void habilitaCampos() {\n for(java.util.ArrayList<JCheckBox> hijosAux: hijos)\n for(JCheckBox hijo: hijosAux)\n if(!hijo.isSelected())\n hijo.setSelected(true);\n \n }",
"public void inicializaEntradas(){\n\t\tentrada = TipoMotivoEntradaEnum.getList();\n\t\tentrada.remove(0);\n\t}",
"private void lanzarListadoCategorias() {\n\t\tIntent i = new Intent(this, ListCategorias.class);\n\t\tstartActivity(i);\n\t\t\n\t}",
"private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }",
"public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }",
"private void loadComponents() {\n\n //CARGANDO COMPONENTES\n this.nombres = findViewById(R.id.namep);\n this.precios = findViewById(R.id.precio);\n this.stocks = findViewById(R.id.stock);\n this.descripciones = findViewById(R.id.descripcion);\n this.cats = findViewById(R.id.btncategoria);\n this.estados = findViewById(R.id.editestado);\n this.image = findViewById(R.id.subim);\n\n //CARGAR BOTONES\n Button btnregistrarpro = findViewById(R.id.btnregistropro);\n btnregistrarpro.setOnClickListener(this);\n //parte de camara\n btn = (Button)findViewById(R.id.subimg);\n btn.setOnClickListener(this);\n img = findViewById(R.id.subim);\n\n ImageButton btnhome = findViewById(R.id.btnhome5);\n btnhome.setOnClickListener(this);\n }",
"public List<ActividadEntitie> LoadAllActividades() {\r\n\t\t\r\n\t\tCursor cursor = this.myDatabase.query(ActividadTablaEntidad.nombre_tabla,\r\n\t\t\t\t new String[] {ActividadTablaEntidad.id,ActividadTablaEntidad.actividad_codigo,ActividadTablaEntidad.actividad_descripcion}, \r\n\t\t\t\t null,null,null,null,ActividadTablaEntidad.actividad_codigo);\r\n\t\t\r\n\t\tcursor.moveToFirst();\r\n\t\t\r\n\t\tActividadEntitie datos = null;\r\n\t\tArrayList<ActividadEntitie> actividadList = null;\r\n\t\t\r\n\t\tif (cursor != null ) {\r\n\t\t\t\r\n\t\t\tactividadList = new ArrayList<ActividadEntitie>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t if (cursor.moveToFirst()) {\r\n\t\t do {\r\n\t\t \t\r\n\t\t \tdatos = new ActividadEntitie();\r\n\t\t \tdatos.set_codigoActividad(cursor.getString(cursor.getColumnIndex(ActividadTablaEntidad.actividad_codigo)));\r\n\t\t \tdatos.set_descripcionActividad(cursor.getString(cursor.getColumnIndex(ActividadTablaEntidad.actividad_descripcion)));\r\n\t\t \tdatos.set_id(cursor.getLong(cursor.getColumnIndex(ActividadTablaEntidad.id)));\r\n\t\t \t\r\n\t\t \tactividadList.add(datos);\r\n\t\t \t\r\n\t\t }while (cursor.moveToNext());\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\tif(cursor != null)\r\n cursor.close();\r\n\t\t\r\n\t\treturn actividadList;\r\n\t}",
"private void saveCodigosCasas(String estado) {\n int c = mCodigosCasas.size();\n for (CodigosCasas cons : mCodigosCasas) {\n cons.setEstado(estado);\n estudioAdapter.updateCodigosCasasSent(cons);\n publishProgress(\"Actualizando CodigosCasas\", Integer.valueOf(mCodigosCasas.indexOf(cons)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public static List<CentroDeCusto> readAllAtivos() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto WHERE status = 'A'\");\n return query.list();\n }",
"@Before\n\tpublic void incoporacionDeCandidatosYProvinciasHabilitadasALaJuntaElectoral(){\n\t\tmendoza.agregarPartido(pro);\n\t\tbuenosaires.agregarPartido(pro);\n\t\trionegro.agregarPartido(pro);\n\t\tentrerios.agregarPartido(pro);\n\t\tmendoza.agregarPartido(renovador);\n\t\tbuenosaires.agregarPartido(renovador);\n\t\trionegro.agregarPartido(renovador);\n\t\tentrerios.agregarPartido(renovador);\n\t\tmendoza.agregarPartido(fpv);\n\t\tbuenosaires.agregarPartido(fpv);\n\t\trionegro.agregarPartido(fpv);\n\t\tentrerios.agregarPartido(fpv);\n\n\t\t//Incorporacion de los candidatos habilitados al centro de computos\n\t\tjuntaElectoral.agregarCandidato(macri);\t\t\n\t\tjuntaElectoral.agregarCandidato(massa);\t\t\n\t\tjuntaElectoral.agregarCandidato(scioli);\n\n\t\t//Incorporacion de las provincias habilitadas al centro de computos\n\t\tjuntaElectoral.agregarProvincia(mendoza);\n\t\tjuntaElectoral.agregarProvincia(buenosaires);\n\t\tjuntaElectoral.agregarProvincia(rionegro);\n\t\tjuntaElectoral.agregarProvincia(entrerios);\n\t}",
"public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }",
"private void lanzarAjustes() {\n\t\tIntent i = new Intent(this, Ajustes.class);\n\t\tstartActivity(i);\n\t}",
"public static String [] getModelosCaballerosProvicional() {\n\n\t\tSession session = SessionHibernate.getInstance().openSession();\n\t\tsession.beginTransaction();\n\t\t\n\t\tString str = \"FROM ModeloCaballero\";\n\t\tQuery query = session.createQuery(str);\n\t\tint i=0;\n\n\t\tString [] list =new String [query.list().size()];\n\t\t\n\t\tfor (Object obj : query.list()) {\n\t\t\tModeloCaballero ma = (ModeloCaballero) obj;\n\t\t\tlist[i++]=ma.getNombreModelo();\n\t\t\n\t\t\tSystem.err.println(ma.getId() + \"; \" + ma.getNombreModelo());\n\t\t}\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\t\n\t\treturn list;\n\t}",
"VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }",
"public List<New> listByActiveCiteria(String active);",
"public static ArrayList<Comida> obtenerComidasDisponibles(){\n\t\tArrayList<Comida> comidasDisponibles = new ArrayList<Comida>();\n\t\tfor(Map.Entry<String, Comida> c : Comida.menuComidas.entrySet()) {\n\t\t\tComida comida = c.getValue();\n\t\t\tif(comida.getDisponible().equals(\"true\")) {\n\t\t\t\tcomidasDisponibles.add(comida);\n\t\t\t}\n\t\t}\n\t\treturn comidasDisponibles;\n\t}",
"@Override\n\tpublic List<ActividadesMejora> leerActividad() {\n\n\t\tConnection con = null;\n\t\tStatement stm = null;\n\t\tResultSet rs = null;\n\n\t\tString sql = \"SELECT idactividadmejora, actividadesmejora.nombre as nombre, fechainicio, fechatermino, estado, detalle, profesional_id_profesional, cliente_id_cliente, profesional.nombre || ' ' || apellido as profesional, nombreempresa as cliente FROM actividadesmejora INNER JOIN profesional ON profesional_id_profesional=id_profesional INNER JOIN cliente ON cliente_id_cliente=id_cliente\";\n\n\t\tList<ActividadesMejora> listaActividades = new ArrayList<ActividadesMejora>();\n\n\t\ttry {\n\t\t\tcon = ConexionSingleton.getConnection();\n\t\t\tstm = con.createStatement();\n\t\t\trs = stm.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tActividadesMejora c = new ActividadesMejora();\n\t\t\t\tc.setIdActMejora(rs.getInt(\"idactividadmejora\"));\n\t\t\t\tc.setNombre(rs.getString(\"nombre\"));\n\t\t\t\tc.setFechaInicio(rs.getString(\"fechainicio\"));\n\t\t\t\tc.setFechaTermino(rs.getString(\"fechatermino\"));\n\t\t\t\tc.setEstado(rs.getString(\"estado\"));\n\t\t\t\tc.setDetalle(rs.getString(\"detalle\"));\n\t\t\t\tc.setProfesional(rs.getString(\"profesional\"));\n\t\t\t\tc.setCliente(rs.getString(\"cliente\"));\n\t\t\t\tlistaActividades.add(c);\n\t\t\t}\n\t\t\tstm.close();\n\t\t\trs.close();\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error: Clase ActividadesMejoraDao, metodo leerActividad \");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn listaActividades;\n\t}",
"static void executa() {\n\t\tlistaProdutos = LoaderUtils.loadProdutos();\n\n\t\t// imprime lista de produtos cadastrados\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tloadEstoque();\n\t\t\n\t\t// imprime estoque\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tprintEstoque(listaEstoque);\n\t}",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }"
] | [
"0.6230798",
"0.6197751",
"0.60891354",
"0.5929776",
"0.59080803",
"0.5853972",
"0.58337563",
"0.579234",
"0.57913905",
"0.5782438",
"0.57614255",
"0.57594424",
"0.5739934",
"0.5735116",
"0.5721123",
"0.5662531",
"0.5658291",
"0.56511384",
"0.5649613",
"0.5624491",
"0.56225085",
"0.5567523",
"0.5560062",
"0.55176926",
"0.5514536",
"0.55033875",
"0.5495745",
"0.5492339",
"0.54554963",
"0.5453855",
"0.5451102",
"0.54362243",
"0.5421653",
"0.5418674",
"0.5418513",
"0.53848195",
"0.5374935",
"0.536376",
"0.5351449",
"0.5351218",
"0.5350266",
"0.53436387",
"0.5338447",
"0.5333144",
"0.5333144",
"0.53306276",
"0.53273064",
"0.53210056",
"0.5313114",
"0.53047544",
"0.5302736",
"0.52999884",
"0.52995455",
"0.52995455",
"0.5287252",
"0.5285723",
"0.52817214",
"0.5280609",
"0.52779776",
"0.5276151",
"0.52714485",
"0.52559626",
"0.5251872",
"0.5250568",
"0.5242369",
"0.5241344",
"0.5238919",
"0.52229804",
"0.5212599",
"0.52117026",
"0.52033985",
"0.520165",
"0.51895106",
"0.5184689",
"0.51797014",
"0.51760364",
"0.5175057",
"0.5174648",
"0.5171771",
"0.5170513",
"0.5168975",
"0.5166509",
"0.5166455",
"0.516268",
"0.51609004",
"0.5157149",
"0.5155303",
"0.51418924",
"0.5136802",
"0.51341045",
"0.5133921",
"0.51328075",
"0.5128164",
"0.51264143",
"0.512441",
"0.5124253",
"0.51221687",
"0.51196784",
"0.51103026",
"0.5105983"
] | 0.53893363 | 35 |
Busca un juego en la BBDD por codigo. | public Juegos getJuegoPorCodigo(int codigo) {
String metodo = "getJuegoPorCodigo";
Juegos juego = null;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
juego = (Juegos) session.createQuery("from Juegos j where j.codigo= ?").setString(0, ""+codigo).uniqueResult();
session.flush();
tx.commit();
log.info("DAOJuegos: " + metodo + ": Juego obtenido con CODIGO: " + juego.getCodigo());
} catch (org.hibernate.HibernateException he) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error de Hibernate: " + he.getMessage());
} catch (SQLException sqle) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error SQLException: " + sqle.getMessage());
} catch (Exception e) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error Exception: " + e.getMessage());
} finally {
// Liberamos sesión
HibernateUtil.closeSession();
log.info("DAOJuegos: " + metodo + ": Sesion liberada. Finished");
}
return juego;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }",
"String getCodiceFiscale();",
"public void codeJ(int number) {\n\tString d;\n\t\n\t//Scanner scan = new Scanner(System.in);\n\tdo {\n\tdo{\n\t\t\n\t\tif (App.SCANNER.hasNextInt()) {\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres\");\n\t\t\tApp.SCANNER.next();\n\t\t}\n\t\t\n\t\n\t}while(!App.SCANNER.hasNextInt()) ;\n\tthis.codeHumain=App.SCANNER.nextInt();\n\td = Integer.toString(codeHumain);\n\t\n\tif(d.length() != number) {\n\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres svp\" );\n\t}else if(d.length() == number) {\n\t}\n\t\n\t\n\t\n\t}while(d.length() != number) ;\n\t\n\t//scan.close();\n\t}",
"public abstract java.lang.String getCod_tecnico();",
"public abstract java.lang.String getCod_dpto();",
"public String getlbr_CNPJ();",
"public String getlbr_CNPJ();",
"public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}",
"java.lang.String getHangmogCode();",
"public String getJP_BankDataCustomerCode2();",
"public String vorschaubildFiltern(String quellcode){\r\n\t\tString bild = quellcode.substring((quellcode.indexOf(\"nivoSlider\") + 59), (quellcode.indexOf(\"slideshow-imagelink\") - 32));\r\n//\t\tSystem.out.println(bild);\r\n\r\n\t\treturn bild;\r\n\t}",
"@Override\n protected int getCodigoJuego() {\n return 5;\n }",
"public String getCODIGO() {\r\n return CODIGO;\r\n }",
"public static String formatarCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(2, 5);\r\n\t\tString parte3 = codigo.substring(5, 8);\r\n\r\n\t\tretornoCEP = parte1 + \".\" + parte2 + \"-\" + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}",
"public void setCodice(String codice) {\n\t\tthis.codice = codice;\n\t}",
"@Override\n\tpublic boolean verificaAgencia(String codigo)\n\t{\n\t\tchar[] digitos = capturaDigitos(codigo, 4, 0);\n\t\treturn (digitos != null);\n\t}",
"private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}",
"public static String creaCodiceMese(String mesePersona) {\n\t\tString meseCodice = \"\";\n\t\tswitch (mesePersona) {\n\t\tcase \"01\":\n\t\t\tmeseCodice = \"A\";\n\t\t\tbreak;\n\t\tcase \"02\":\n\t\t\tmeseCodice = \"B\";\n\t\t\tbreak;\n\t\tcase \"03\":\n\t\t\tmeseCodice = \"C\";\n\t\t\tbreak;\n\t\tcase \"04\":\n\t\t\tmeseCodice = \"D\";\n\t\t\tbreak;\n\t\tcase \"05\":\n\t\t\tmeseCodice = \"E\";\n\t\t\tbreak;\n\t\tcase \"06\":\n\t\t\tmeseCodice = \"H\";\n\t\t\tbreak;\n\t\tcase \"07\":\n\t\t\tmeseCodice = \"L\";\n\t\t\tbreak;\n\t\tcase \"08\":\n\t\t\tmeseCodice = \"M\";\n\t\t\tbreak;\n\t\tcase \"09\":\n\t\t\tmeseCodice = \"P\";\n\t\t\tbreak;\n\t\tcase \"10\":\n\t\t\tmeseCodice = \"R\";\n\t\t\tbreak;\n\t\tcase \"11\":\n\t\t\tmeseCodice = \"S\";\n\t\t\tbreak;\n\t\tcase \"12\":\n\t\t\tmeseCodice = \"T\";\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn meseCodice;\n\t}",
"public void setBucd(String bucd) {\r\n this.bucd = bucd;\r\n }",
"public static ResultSet mostrar(int cod) throws SQLException {\n int nFilas = 0;\r\n String lineaSQL = \"Select * from pago WHERE codigo LIKE '%\"+ cod +\"%';\" ;\r\n ResultSet resultado = Conexion.getInstance().execute_Select(lineaSQL);\r\n \r\n return resultado;\r\n \r\n }",
"protected String seuraavaBittijono(String binaarina, int i) {\n int loppu = Math.min(binaarina.length(), i + merkkienPituus);\n return binaarina.substring(i, loppu);\n }",
"String getCidade();",
"public String getJP_BankDataCustomerCode1();",
"public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}",
"public String code() {\r\n return code == null ? String.format(\"%s%04d\", type, num) : code;\r\n }",
"void mo1582a(String str, C1329do c1329do);",
"public static String retirarFormatacaoCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(3, 6);\r\n\t\tString parte3 = codigo.substring(7, 10);\r\n\r\n\t\tretornoCEP = parte1 + parte2 + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}",
"public int buscarCuenta (String cuenta){// busca el dni de los jugadores pasando un parametro cuenta valido\r\n\t\tString cadena=\"SELECT Dni_Jugador FROM jugadores where Cuenta_Bancaria='\"+cuenta+\"'\";\r\n\t\ttry{\r\n\t\t\tthis.abrir();\r\n\t\t\ts=c.createStatement(); // similar al anterior\r\n\t\t\treg=s.executeQuery(cadena);\r\n\t\t\twhile(reg.next()){ //mientras exista un próximo registro, retorna 1 o 0 si no hay mas registros\r\n\t\t\t\ts.close();\r\n\t\t\t\tthis.cerrar();\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\ts.close();\r\n\t\t\tthis.cerrar();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tcatch ( SQLException e){\r\n\t\t\tthis.cerrar();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"public void setCodigo(java.lang.String codigo) {\n this.codigo = codigo;\n }",
"public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}",
"@Test\n public void validCodenameShouldReturnClues()\n {\n String codename = DatabaseHelper.getRandomCodename();\n assertTrue(DatabaseHelper.getCluesForCodename(codename).length > 0);\n }",
"private String FormatoHoraDoce(String Hora){\n String HoraFormateada = \"\";\n\n switch (Hora) {\n case \"13\": HoraFormateada = \"1\";\n break;\n case \"14\": HoraFormateada = \"2\";\n break;\n case \"15\": HoraFormateada = \"3\";\n break;\n case \"16\": HoraFormateada = \"4\";\n break;\n case \"17\": HoraFormateada = \"5\";\n break;\n case \"18\": HoraFormateada = \"6\";\n break;\n case \"19\": HoraFormateada = \"7\";\n break;\n case \"20\": HoraFormateada = \"8\";\n break;\n case \"21\": HoraFormateada = \"9\";\n break;\n case \"22\": HoraFormateada = \"10\";\n break;\n case \"23\": HoraFormateada = \"11\";\n break;\n case \"00\": HoraFormateada = \"12\";\n break;\n default:\n int fmat = Integer.parseInt(Hora);\n HoraFormateada = Integer.toString(fmat);\n }\n return HoraFormateada;\n }",
"public String toText(String braille);",
"String getBusi_id();",
"public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }",
"public Banco(String nome) { // essa linha é uma assinatura do metodo\n \tthis.nome = nome;\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Введите день, месяц, год рождения\");\n\t\tint day;\n\t\tint month;\n\t\tint year;\n\t\tdo {\n\t\t\tSystem.out.println(\"Количество дней в месяце от 1 до 31\");\n\t\t\tday = scan.nextInt();\n\t\t}while((day > 31) || (day <= 0));\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Месяц равен от 1 до 12\");\n\t\t\tmonth = scan.nextInt();\n\t\t}while(month <1 || month > 12);\n\t\tint i;\n\t\tint n;\n\t\tdo {\n\t\t\ti = 0;\n\t\t\tSystem.out.println(\"Год - четырехзначное число\");\n\t\t\tyear = scan.nextInt();\n\t\t\tn = year;\n\t\t\twhile (n > 0) {\n\t\t\t n = n/10;\n\t\t\t i += 1;\n\t\t\t }\n\t\t}while(i != 4);\n\t\t\n\t\tSystem.out.println(day + \" \" + month + \" \" + year);\n\t\tString znakZodiak;\n\t\tString animalYear;\n\t\t\t\n\t\tif ((month == 3 && day >= 21) || (month == 4 && day <= 20))\n\t\t\tznakZodiak = \"Овен\";\n\t\telse if ((month == 4 && day >= 21) || (month == 5 && day <= 21))\n\t\t\tznakZodiak = \"Телец\";\n\t\telse if ((month == 5 && day >= 22) || (month == 6 && day <= 21))\n\t\t\tznakZodiak = \"Близнецы\";\n\t\telse if ((month == 6 && day >= 22) || (month == 7 && day <= 22))\n\t\t\tznakZodiak = \"Рак\";\n\t\telse if ((month == 7 && day >= 23) || (month == 8 && day <= 22))\n\t\t\tznakZodiak = \"Лев\";\n\t\telse if ((month == 8 && day >= 23) || (month == 9 && day <= 23))\n\t\t\tznakZodiak = \"Дева\";\n\t\telse if ((month == 9 && day >= 24) || (month == 10 && day <= 23))\n\t\t\tznakZodiak = \"Весы\";\n\t\telse if ((month == 10 && day >= 24) || (month == 11 && day <= 21))\n\t\t\tznakZodiak = \"Скорпион\";\n\t\telse if ((month == 11 && day >= 22) || (month == 12 && day <= 21))\n\t\t\tznakZodiak = \"Стрелец\";\n\t\telse if ((month == 12 && day >= 22) || (month == 1 && day <= 21))\n\t\t\tznakZodiak = \"Козерог\";\n\t\telse if ((month == 1 && day >= 22) || (month == 2 && day <= 19))\n\t\t\tznakZodiak = \"Водолей\";\n\t\telse if ((month == 2 && day >= 20) || (month == 3 && day <= 20))\n\t\t\tznakZodiak = \"Рыбы\";\n\t\telse\n\t\t\tznakZodiak = \"Введенный месяц не соответствует ни одному значению знака задиака. Месяц должен быть от 1 до 124\";\n\t\tswitch(year % 12) {\n\t\tcase 0: \n\t\t\tanimalYear = \"Год обезьяны\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tanimalYear = \"Год петуха\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tanimalYear = \"Год собаки\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tanimalYear = \"Год свиньи\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tanimalYear = \"Год крысы\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tanimalYear = \"Год коровы\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tanimalYear = \"Год тигра\";\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\tanimalYear = \"Год зайца\";\n\t\t\tbreak;\n\t\tcase 8: \n\t\t\tanimalYear = \"Год дракона\";\n\t\t\tbreak;\n\t\tcase 9: \n\t\t\tanimalYear = \"Год змеи\";\n\t\t\tbreak;\n\t\tcase 10: \n\t\t\tanimalYear = \"Год лошади\";\n\t\t\tbreak;\n\t\tcase 11: \n\t\t\tanimalYear = \"Год овцы\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tanimalYear = \"Что-то пошло не так\";\n\t\t}\n\t\tSystem.out.println(\"Знак: \" + znakZodiak);\n\t\tSystem.out.println(\"Знак: \" + animalYear);\n\t\tscan.close();\n\t}",
"public static void main(String[] args) {\n\t\tString nome;\r\n\t\t\t\r\n\t\tScanner leitor = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Digite um codigo\");\r\n\t\tnome = leitor.next();\r\n\t\t\r\n\t\t\r\n\t\tswitch(nome) {\r\n\t\tcase \"001\":\r\n\t\t\r\n\t\tSystem.out.println(\"Parafuso\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase \"002\":\r\n\t\t\tSystem.out.println(\"Porca\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase \"003\":\r\n\t\t\tSystem.out.println(\"Prego\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase \"004\":\r\n\t\t\tSystem.out.println(\"Ferramenta\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t\r\n\t\tdefault:\r\n\t\tSystem.out.println(\"Diversos\");\r\n\t}\r\n\t}",
"Jugador consultarGanador();",
"public char dna_to_code (String codon) {\n\r\n String code = (String) dna_to_code.get(codon.toUpperCase());\r\n if (code == null) {\r\n // failed lookup; sequence with Ns, etc\r\n return '?';\r\n } else if (code.length() == 1) {\r\n return code.charAt(0);\r\n } else if (code.equals(STOP_STRING)) {\r\n return STOP_CODE;\r\n } else {\r\n System.out.println(\"dna_to_code: wtf???\"); // debug\r\n }\r\n return '?';\r\n }",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public java.lang.String getCodigo_agencia();",
"static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }",
"public void setCoderegion(String value) {\n setAttributeInternal(CODEREGION, value);\n }",
"public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }",
"java.lang.String getBunho();",
"java.lang.String getBunho();",
"public void setCodigo(String codigo) {\n this.codigo = codigo;\n }",
"private static String adaptarFecha(int fecha) {\n\t\tString fechaFormateada = String.valueOf(fecha);\n\t\twhile(fechaFormateada.length()<2){\n\t\t\tfechaFormateada = \"0\"+fechaFormateada;\n\t\t}\n\n\t\treturn fechaFormateada;\n\t}",
"public java.lang.String getHora_desde();",
"protected static String getmodoJuego() {\n return modoJuego;\n }",
"public java.lang.String getHora_hasta();",
"@Test\n public void clueFromCodenameShouldReturnSaidCodename()\n {\n String codename = DatabaseHelper.getRandomCodename();\n String[] clues = DatabaseHelper.getCluesForCodename(codename);\n int errors = 0;\n\n for (int i = 0; i < clues.length; i++)\n {\n int index = Arrays.binarySearch(DatabaseHelper.getCodenamesForClue(clues[i]), codename);\n if (!(index >= 0))\n {\n errors++;\n }\n\n }\n\n assertEquals(0, errors);\n }",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tSystem.out.println(\"Input your bithday: \\n (ex:0528)\");\n\t\tint val = scn.nextInt();\n\t\tif (val <= 119) {\n\t\t\tSystem.out.println(\"Capricorn\");\n\t\t}\n\t\tif (120 <= val && val < 218) {\n\t\t\tSystem.out.println(\"Aquarius\");\n\t\t}\n\t\tif (219 <= val && val <= 320) {\n\t\t\tSystem.out.println(\"Pisces\");\n\t\t}\n\t\tif (321 <= val && val <= 419) {\n\t\t\tSystem.out.println(\"Aries\");\n\t\t}\n\t\tif (420 <= val && val <= 520) {\n\t\t\tSystem.out.println(\"Taurus\");\n\t\t}\n\t\tif (521 <= val && val <= 621) {\n\t\t\tSystem.out.println(\"Gemini\");\n\t\t}\n\t\tif (622 <= val && val <= 722) {\n\t\t\tSystem.out.println(\"Cancer\");\n\t\t}\n\t\tif (723 <= val && val <= 822) {\n\t\t\tSystem.out.println(\"Leo\");\n\t\t}\n\t\tif (823 <= val && val <= 922) {\n\t\t\tSystem.out.println(\"Virgo\");\n\t\t}\n\t\tif (923 <= val && val <= 1023) {\n\t\t\tSystem.out.println(\"Libra\");\n\t\t}\n\t\tif (1024 <= val && val <= 1122) {\n\t\t\tSystem.out.println(\"Scorpio\");\n\t\t}\n\t\tif (1123 <= val && val < 1221) {\n\t\t\tSystem.out.println(\"Sagittarius\");\n\t\t}\n\t\tif (1222 <= val && val < 1230) {\n\t\t\tSystem.out.println(\"Capricorn\");\n\t\t}\n\t}",
"@AutoEscape\n\tpublic String getCodDepartamento();",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public List<Madeira> buscaCidadesEstado(String estado);",
"public String getCode();",
"public String getCode();",
"public void setCodDepartamento(String codDepartamento);",
"public void setCodigoGrupoRiesgoBuro(java.lang.String codigoGrupoRiesgoBuro) {\r\n this.codigoGrupoRiesgoBuro = codigoGrupoRiesgoBuro;\r\n }",
"private String pedirCasilla(String mensaje) {\n char columna;\n int fila;\n String casilla;\n do {\n casilla = ManejoInfo.getTextoSimple(\"la casilla \" + mensaje);\n columna = casilla.charAt(0);\n fila = Character.getNumericValue(casilla.charAt(1));\n if (!validarColum(columna) && fila >= 9) {\n System.out.println(\"\\nIngrese una casilla valida!\\n\");\n }\n } while (!validarColum(columna) && fila >= 9);\n return casilla;\n }",
"public java.lang.String getCodigo_pcom();",
"public String lookupCodon( String codon )\n {\n // capitalize and replace U's with T's because the code tables are in terms of T's\n codon = codon.toUpperCase();\n codon = codon.replace('U','T');\n\n\n\n String letter = \"\";\n String outputStr = \"\";\n\n if (code.equals(\"Standard\"))\n {\n for (int i = 0; i < stdTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(stdTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( stdTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < stdTranCodeStart.length; j++)\n {\n if ( stdTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n for (int i = 0; i < drosMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(drosMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( drosMitoCode[i].equals( codon ) )\n {\n if ( ( letter.equals(\"I\") ) || ( letter.equals(\"M\") ) )\n {\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n \n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n for (int i = 0; i < vertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(vertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( vertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < vertMitoCodeStart.length; j++)\n {\n if ( vertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n for (int i = 0; i < yeastMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(yeastMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( yeastMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < yeastMitoCodeStart.length; j++)\n {\n if ( yeastMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n for (int i = 0; i < moldProtoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(moldProtoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( moldProtoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < moldProtoMitoCodeStart.length; j++)\n {\n if ( moldProtoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n for (int i = 0; i < invertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(invertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( invertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < invertMitoCodeStart.length; j++)\n {\n if ( invertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n for (int i = 0; i < cilDasHexNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(cilDasHexNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( cilDasHexNucCode[i].equals( codon ) )\n {\n for (int j = 0; j < cilDasHexNucCodeStart.length; j++)\n {\n if ( cilDasHexNucCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n for (int i = 0; i < echinoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(echinoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( echinoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < echinoMitoCodeStart.length; j++)\n {\n if ( echinoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n for (int i = 0; i < euplotidNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(euplotidNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( euplotidNucCode[i].equals( codon ) )\n {\n if ( letter.equals(\"M\") )\n {\n return (\"<B><FONT COLOR=red>M</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n for (int i = 0; i < bacterialTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(bacterialTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( bacterialTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < bacterialTranCodeStart.length; j++)\n {\n if ( bacterialTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n for (int i = 0; i < altYeastCodeAA.length(); i++)\n {\n\n letter = String.valueOf(altYeastCodeAA.charAt(i)); // takes one char as a string\n\n if ( altYeastCode[i].equals( codon ) )\n {\n for (int j = 0; j < altYeastCodeStart.length; j++)\n {\n if ( altYeastCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n for (int i = 0; i < ascidianMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(ascidianMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( ascidianMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < ascidianMitoCodeStart.length; j++)\n {\n if ( ascidianMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n for (int i = 0; i < flatMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(flatMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( flatMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < flatMitoCodeStart.length; j++)\n {\n if ( flatMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else // (code.equals(\"Blepharisma Mitochondrial\"))\n {\n for (int i = 0; i < blephMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(blephMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( blephMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < blephMitoCodeStart.length; j++)\n {\n if ( blephMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n unknownStatus = 1; // encountered an unknown codon so print this in legend\n\n return \"<FONT COLOR=#ff6633><B>u</B></FONT>\"; // unknown codon\n\n\n }",
"public String getToernooiSoort(){\n if(typeField.getText().equals(\"Toernooi\")){\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT soort_toernooi FROM Toernooi WHERE TC = ?\");\n st.setInt(1, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n String toernooiSoort = rs.getString(\"soort_toernooi\");\n System.out.println(toernooiSoort);\n return toernooiSoort;\n }\n\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(getToernooiSoort)\");\n }\n }\n\n return \"poepieScheetje\";}",
"public Paises obtenerPaisPorID(Integer txtPais);",
"public void receberJogada(Jogada jogada);",
"public static String creaCodiceCognome(String cognomePersona) {\n\t\tString codiceCognomePersona = \"\";\n\t\n\t\tcodiceCognomePersona = estraiTreConsonanti(cognomePersona, \"cognome\");\n\t\t\n\t\t//se vengono trovate 3 consonanti viene ritornato il codice composto da 3 consonanti\n\t\tif (codiceCognomePersona.length() == 3) return codiceCognomePersona;\n\t\telse {\n\t\t\t//altrimenti chiamo il metodo che completa la stringa ottenuta fin qua\n\t\t\treturn seConsonantiNonBastano(codiceCognomePersona, cognomePersona);\n\t\t\t}\n\t}",
"public String getJP_BankName_Kana_Line();",
"java.lang.String getArrivalAirportCode();",
"public String salvar(PessoaJuridica pessoaJuridica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}",
"public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }",
"boolean comprovarCodi(String codi) {\r\n if(codi == id) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }",
"@Test\r\n\tpublic void CT04ConsultarLivroComNomeEmBranco() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_branco();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}",
"public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }",
"public Bebida getBebida(String stringComparacao){\n if(stringComparacao == \"Nenhuma\")\n return Bebida.NENHUMA;\n else if(stringComparacao == \"Água\")\n return Bebida.AGUA;\n else if (stringComparacao == \"Refrigerante\")\n return Bebida.REFRIGERANTE;\n else\n return Bebida.NENHUMA;\n }",
"String getAnnoPubblicazione();",
"public String getBucd() {\r\n return bucd;\r\n }",
"public String getLedgerCode(String mon,String year){\r\n\t\tString ledgCode=\"\";\r\n\t\tObject ledgerData[][] = null;\r\n\t\ttry {\r\n\t\t\tString ledgerQuery = \"SELECT LEDGER_CODE FROM HRMS_SALARY_LEDGER \"\r\n\t\t\t\t+\"WHERE LEDGER_MONTH=\" + mon + \" AND LEDGER_YEAR=\"+ year + \" AND LEDGER_STATUS IN('SAL_START','SAL_FINAL')\";\r\n\t\t\t\r\n\t\t\tledgerData = getSqlModel().getSingleResult(ledgerQuery);\r\n\t\t\r\n\t\t\tif(ledgerData != null && ledgerData.length > 0){\r\n\t\t\t\tfor (int i = 0; i < ledgerData.length; i++) {\r\n\t\t\t\t\tif (i == ledgerData.length - 1) {\r\n\t\t\t\t\t\tledgCode += ledgerData[i][0];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tledgCode += ledgerData[i][0] + \",\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in ledgerData query\",e);\r\n\t\t} \r\n\t\t return ledgCode;\r\n\t }",
"public Comida(String nombre, int calorias){\n super(\"Comida\");\n this.calorias = calorias;\n }",
"public int set_code(String b);",
"public void ejercicio02() {\r\n\t\tcabecera(\"02\", \"Bisiesto no bisiesto\");\r\n\t\t// Inicio modificacion\r\n\t\t\r\n\t\tSystem.out.println(\"Introduce un año\");\r\n\r\n\t\tint anyo = Teclado.readInteger();\r\n\r\n\t\tif (anyo%400==0 || (anyo%4==0 && anyo%100!=0)) {\r\n\t\t\tSystem.out.println(anyo + \" es un año bisiesto\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(anyo + \" no es un año bisiesto\");\r\n\t\t}\r\n\r\n\t\t// Fin modificacion\r\n\t}",
"private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }",
"public void cambiarTitulo(int codVideojuego, String tituloNuevo)\n {\n if(codVideojuego>=0 && codVideojuego<=listaDeVideojuegos.size()) {\n Videojuegos Videojuego = listaDeVideojuegos.get(codVideojuego - 1);\n Videojuego.setTitulo(tituloNuevo);\n }\n else if(codVideojuego<=0 && codVideojuego>listaDeVideojuegos.size()){\n System.out.println(\"No hay videojuegos con ese codigo, introduce otro existente.\");\n }\n }",
"@Test\n public void test2() throws Throwable {\n SitNFe sitNFe0 = SitNFe.COM_DANFE;\n char char0 = sitNFe0.getValue();\n assertEquals('D', char0);\n }",
"void setCodiceFiscale(String codiceFiscale);",
"public String getlbr_Barcode2();",
"public void setDIA_CHI( String DIA_CHI )\n {\n this.DIA_CHI = DIA_CHI;\n }",
"public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Étude des contacts avec les 8 points de la bille\n\t\t// Contact GaucheHaut de la bille\n\n\t\t// Contact haut de la bille\n\t\tint[] p = billeEnCours.MH();\n\t\tif (p[1] <= barreEnCours.bas() && p[1] >= barreEnCours.haut() && p[0] <= barreEnCours.droite() && p[0] >= barreEnCours.gauche()) {\n\t\t\tcontact = 3;\n\t\t}\n\n\t\t// Contact bas de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.MB();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 7;\n\t\t\t}\n\t\t}\n\n\t\t// Contact droite de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.DM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact gauche de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.GM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 1;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 4;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 8;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 6;\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse \n\n\t\t// Rencontre d'un coin\n\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\tbilleEnCours.demiTour();\n\t\t}\n\n\t\t// Contact Classique\n\t\t// Gauche - Droite\n\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\t// Haut - Bas : Déviation de la balle\n\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\tint[] nv = new int[] {1,1};\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4 && billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] - 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] + 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\t\t\t\n\n\n\t}",
"@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }",
"public String createIban()\n {\n String iban = \"\";\n Random r = new Random();\n\n iban += \"NL\";\n for(int i = 1; i <=2; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n\n iban += \"INHO0\";\n for(int i = 1; i <=9; i++)\n {\n iban += Integer.toString(r.nextInt(10));\n }\n if(accountRepository.existsById(iban))\n {\n return createIban();\n }\n return iban;\n }",
"public int Kullanicino_Bul(String kullanici_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int kullanicino = 0;\r\n String sorgu = \"select kullanici_no from kullanicilar where kullanici_adi='\" + kullanici_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n kullanicino = rs.getInt(1);\r\n }\r\n return kullanicino;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(siparis.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }",
"public String getCodename() {\n return codename;\n }",
"public String getJP_BranchName_Kana_Line();",
"public static int parni(int broj) {\n\t\tString velicina = \"\" + broj;\n\t\tint velicinaBroja = velicina.length();\n\t\tint zbir = 0;\n\t\tint ostatak;\n\t\twhile (velicinaBroja > 0) {\n\t\t\tif (broj % 2 == 0) {\n\t\t\t\tostatak = broj % 10;\n\t\t\t\tzbir = 10 * zbir + ostatak;\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t\tif (broj % 2 != 0) {\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t}\n\n\t\treturn zbir;\n\t}",
"private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArray();\n//\n// /* Primeira parte da validação */\n// for (int i = 0; i < 4; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (6 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// if (cnpjCharArray[i + 4] - 48 >= 0 && cnpjCharArray[i + 4] - 48 <= 9) {\n// soma += (cnpjCharArray[i + 4] - 48) * (10 - (i + 1));\n// }\n// }\n//\n// dig = 11 - (soma % 11);\n//\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n//\n// /* Segunda parte da validação */\n// soma = 0;\n//\n// for (int i = 0; i < 5; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (7 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// soma += (cnpjCharArray[i + 5] - 48) * (10 - (i + 1));\n// }\n//\n// dig = 11 - (soma % 11);\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n\n// return cnpj.equals(digitosIniciais);\n }"
] | [
"0.5472821",
"0.5441756",
"0.5258558",
"0.5187626",
"0.51388484",
"0.51060915",
"0.51060915",
"0.5062147",
"0.50310755",
"0.5024175",
"0.5010735",
"0.5010644",
"0.49824014",
"0.49681434",
"0.49535158",
"0.49418142",
"0.4937305",
"0.4920758",
"0.49157226",
"0.49137908",
"0.48914534",
"0.4880244",
"0.48690042",
"0.48598173",
"0.48591882",
"0.48306662",
"0.48249093",
"0.48169094",
"0.48045117",
"0.4790013",
"0.47749782",
"0.4771702",
"0.47680318",
"0.47648904",
"0.4763775",
"0.47630385",
"0.47595772",
"0.47427347",
"0.47361702",
"0.47343767",
"0.47187293",
"0.47187293",
"0.47187293",
"0.47187293",
"0.47187293",
"0.47107726",
"0.47102553",
"0.47088048",
"0.46944037",
"0.4688673",
"0.4688673",
"0.46870074",
"0.4684338",
"0.46725968",
"0.4660171",
"0.46552932",
"0.46482867",
"0.46464926",
"0.46460408",
"0.46449563",
"0.46449563",
"0.4642799",
"0.46392232",
"0.46392232",
"0.46285895",
"0.462689",
"0.46224213",
"0.46221253",
"0.46219495",
"0.4617344",
"0.45983267",
"0.4597712",
"0.45964092",
"0.45961162",
"0.4592461",
"0.4588765",
"0.45836055",
"0.4577816",
"0.4574231",
"0.45734864",
"0.45682722",
"0.45678782",
"0.45668578",
"0.45597225",
"0.45592415",
"0.45588285",
"0.45581165",
"0.45561674",
"0.45560917",
"0.4553998",
"0.45484987",
"0.4546526",
"0.45456058",
"0.4542098",
"0.45380732",
"0.45293254",
"0.45292225",
"0.45288536",
"0.4522318",
"0.45190313",
"0.45185456"
] | 0.0 | -1 |
Busca un juego en la BBDD por nombre. | public Juegos getJuegoPorNombre(String nombre) {
String metodo = "getJuegoPorNombre";
Juegos juego = null;
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
juego = (Juegos) session.createQuery("from Juegos j where j.nombre= ?").setString(0, ""+nombre).uniqueResult();
session.flush();
tx.commit();
log.info("DAOJuegos: " + metodo + ": Juego obtenido con NOMBRE: " + juego.getNombre());
} catch (org.hibernate.HibernateException he) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error de Hibernate: " + he.getMessage());
} catch (SQLException sqle) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error SQLException: " + sqle.getMessage());
} catch (Exception e) {
tx.rollback();
log.error("DAOJuegos: " + metodo + ": Error Exception: " + e.getMessage());
} finally {
// Liberamos sesión
HibernateUtil.closeSession();
log.info("DAOJuegos: " + metodo + ": Sesion liberada. Finished");
}
return juego;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}",
"private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}",
"public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}",
"public void setNombreCompleto(String nombreCompleto);",
"private void affTourJoueur(String nomJoueur) {\r\n\t\tlbl_tour.setText(nomJoueur);\r\n\t}",
"public void setNombreJuridico(java.lang.String nombreJuridico) {\n this.nombreJuridico = nombreJuridico;\n }",
"public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }",
"public void cambiarNombre(String nuevoNombre,int numero){\n partida.cambiarNombre(nuevoNombre,numero);\n }",
"private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}",
"static void jugadorAJugar(String nombre) throws NombreNoValidoException, JugadorYaExisteException, JugadorNoExisteException{\n\t\tif(jugadores.contains(nombre)&&!participantes.contains(nombre))\n\t\t\tparticipantes.volcarJugadorALista(jugadores.get(jugadores.indexOf(nombre)));\n\t\telse if(!jugadores.contains(nombre))\n\t\t\tthrow new JugadorNoExisteException(\"Jugador no existe en la lista.\");\n\t\telse\n\t\t\tthrow new JugadorYaExisteException(\"Jugador ya existe.\");\n\t\t\t\n\t}",
"public Vendedor buscarVendedorPorNome(String nome);",
"public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void asignarNombre(String name);",
"private void validationNom(String nameGroup) throws FormValidationException {\n\t\tif (nameGroup != null && nameGroup.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le nom exist pas ds la bdd\n\t\t// else if (){\n\t\t//\n\t\t// }\n\t}",
"public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }",
"public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }",
"private boolean verifSalon(String name, String nbJoueurs){\n boolean result=true;\n if(!(name.length()>0 && nbJoueurs.length()>0 && nbJoueurs.matches(\"[3-9]|10\"))) result=false;\n return result;\n }",
"private String checkName(String name){\n\n if(name.isBlank()){\n name = \"guest\";\n }\n int i = 1;\n if(users.contains(name)) {\n while (users.contains(name + i)) {\n i++;\n }\n name+=i;\n }\n return name;\n }",
"public Banco(String nome) { // essa linha é uma assinatura do metodo\n \tthis.nome = nome;\n }",
"private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }",
"public Ciudad(String nombre)\n {\n this.nombre = nombre;\n }",
"java.lang.String getHangmogName();",
"public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}",
"public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }",
"public String getNomeJogador(Integer idJogador) throws RemoteException;",
"public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}",
"private static String getRegattaName() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"\\nPlease enter a name for the regatta...\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidRegattaName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}",
"private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void setNombreGrupo(String nombreGrupo) {\n\t\tthis.nombreGrupo = nombreGrupo;\n\t}",
"public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }",
"public String getVechicleGroupNamePlaceholder() {\r\n\t\tString VechicleGroupNamePlaceholderText = safeGetAttribute(vehicleNameField.replace(\"vehicle_name\", \"group_name\"), \"placeholder\", SHORTWAIT);\r\n\t\tlog.info(\"get Vechicle Group Name placeholder \");\r\n\t\treturn VechicleGroupNamePlaceholderText;\r\n\t}",
"public Builder setNombreDroga(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n nombreDroga_ = value;\n onChanged();\n return this;\n }",
"public jugador(){\n\t\tnombre=\"Dave\";\n\t\ttipo=\"jugador\";\n\t\tpoderataque=6;\n\t\tpuntosvida=20;\n\t}",
"static int lireNombreEntier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tSystem.out.print(\"\\n\\nEntrez le nombre : \");\n\t\tint nb = clavier.nextInt();\n\t\treturn nb;\n\t}",
"static String m33126a(String name, String separator) {\n StringBuilder translation = new StringBuilder();\n int length = name.length();\n for (int i = 0; i < length; i++) {\n char character = name.charAt(i);\n if (Character.isUpperCase(character) && translation.length() != 0) {\n translation.append(separator);\n }\n translation.append(character);\n }\n return translation.toString();\n }",
"Casilla(String nombre){\n this.nombre=nombre; \n }",
"public void printAnnuaireName() {\n\t\t\n\t}",
"public void nom_ven(){\n \n String SQL_select = \"SELECT Nombres FROM `vendedor` WHERE User = '\"+login.a+\"'\";\n String lolo = \"\";\n try {\n ps = con.getConnection().prepareStatement(SQL_select);\n RS = ps.executeQuery();\n while (RS.next()) { \n lolo = RS.getString(1);\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"no encontro el usuario\");\n }\n \n txtVendedor.setText(lolo);\n }",
"public Juego(String nombreJ1, String nombreJ2){\r\n\t\tMINATR = 3;\r\n\t\tMAXATR = 6;\r\n\t\tjugador1 = new Jugador(nombreJ1);\r\n\t\tjugador2 = new Jugador(nombreJ2);\r\n\t\tjugadorEnTurno = jugador1;\r\n\t}",
"public int buscarCuenta (String cuenta){// busca el dni de los jugadores pasando un parametro cuenta valido\r\n\t\tString cadena=\"SELECT Dni_Jugador FROM jugadores where Cuenta_Bancaria='\"+cuenta+\"'\";\r\n\t\ttry{\r\n\t\t\tthis.abrir();\r\n\t\t\ts=c.createStatement(); // similar al anterior\r\n\t\t\treg=s.executeQuery(cadena);\r\n\t\t\twhile(reg.next()){ //mientras exista un próximo registro, retorna 1 o 0 si no hay mas registros\r\n\t\t\t\ts.close();\r\n\t\t\t\tthis.cerrar();\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\ts.close();\r\n\t\t\tthis.cerrar();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tcatch ( SQLException e){\r\n\t\t\tthis.cerrar();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}",
"public Agenda(String nome) {\n\t\tthis.nome = nome;\n\t\tthis.compromisso = new ArrayList<>();\n\t}",
"private JComponent buildName() {\n name = new JTextField();\n name.setText(group.getName());\n return name;\n }",
"public String getNotchianName();",
"public String chName(String address) {\n\n if (Locale.getDefault().getLanguage() == \"en\") {//Check System Language\n\n if (address.contains(\"Hang Hau\")) {\n newName = \"HangHau\";\n } else if (address.contains(\"Po Lam\")) {\n newName = \"PoLam\";\n } else {\n newName = \"HangHau\";\n }//default, prevent error\n\n } else if (Locale.getDefault().getLanguage() == \"zh\") {\n\n\n if (address.contains(\"坑口\")) {\n newName = \"HangHau_ZH\";\n } else if (address.contains(\"寶琳\")) {\n newName = \"PoLam_ZH\";\n } else {\n newName = \"HangHau_ZH\";\n }//default, prevent error\n }\n return newName;\n }",
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }",
"private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}",
"public Etiqueta buscador(String nombreEtiqueta){\n for(int i = 0;i < listaEtiquetas.size();i++){\n if(this.listaEtiquetas.get(i).getEtiqueta().equals(nombreEtiqueta)){ //Si coincide el nombre de la etiqueta, se retorna\n return this.listaEtiquetas.get(i);\n }\n }\n return null;\n }",
"String getSurname();",
"public String getNombreCompleto();",
"public String getName() {return this.name.getText();}",
"public Comida(String nombre, int calorias){\n super(\"Comida\");\n this.calorias = calorias;\n }",
"public String getNomBdd() {\n\t\treturn nomBdd.getText();\n\t}",
"java.lang.String getSurname();",
"private static String getName(){\r\n\t\treturn new StringBuilder(input.next()).substring(0,3);\r\n\t}",
"protected static String getmodoJuego() {\n return modoJuego;\n }",
"private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServico.criandoNome(this, nome, \"text\");\n servidor.adicionarJogador(nome);\n servidor.atualizarLugares();\n } else {\n JanelaAlerta.janelaAlerta(null, \"Este nome já existe/inválido!\", null);\n enviarRequisicaoPerguntarNome();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void setJoueur1(String joueur1) {\r\n\t\tthis.joueur1 = joueur1;\r\n\t}",
"public static void main(String[] args) {\n\r\n\r\n Scanner scan = new Scanner(System.in);\r\n String word = scan.next();\r\n String separator = scan.next();\r\n int count = scan.nextInt();\r\n\r\n\r\n String name = \"\";\r\n for (int i = 1; i <= count; i++) {\r\n\r\n name = name +word + separator ;\r\n\r\n if (i == count) {\r\n\r\n System.out.print(name.substring(0, name.length()-separator.length() ));\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n }",
"String getUltimoNome();",
"public void setNombres(String nombres) { this.nombres = nombres; }",
"public void nombreParking (String queNombreParking) {\n nombreParking = queNombreParking;\n\n }",
"public Jugador(String nombreJugador)\n {\n this.nombreJugador = nombreJugador;\n cartasQueTieneEnLaMano = new Carta[5];\n numeroCartasEnLaMano = 0;\n }",
"public void nomeAluno(String na) {\n\t\tnomeAluno = na; \n\t}",
"String nameLabel();",
"public int eliminarJugador(String nombreJugador) {\n\n Log.d(\"DATABASE\", \"Eliminando Partida\");\n\n return getWritableDatabase().delete(\n JugadorEntry.TABLE_NAME,\n JugadorEntry.NOMBRE + \" LIKE ?\",\n new String[]{nombreJugador});\n }",
"public void setNombre(java.lang.String nombre) {\n this.nombre = nombre;\n }",
"public void setNombre(java.lang.String nombre) {\n this.nombre = nombre;\n }",
"public String name_data(String name)\r\n/* 14: */ {\r\n/* 15:27 */ if (name == \"gr_id\") {\r\n/* 16:27 */ return this.config.id.name;\r\n/* 17: */ }\r\n/* 18:28 */ String[] parts = name.split(\"c\");\r\n/* 19: */ try\r\n/* 20: */ {\r\n/* 21:32 */ if (parts[0].equals(\"\"))\r\n/* 22: */ {\r\n/* 23:33 */ int index = Integer.parseInt(parts[1]);\r\n/* 24:34 */ return ((ConnectorField)this.config.text.get(index)).name;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ catch (NumberFormatException localNumberFormatException) {}\r\n/* 28:38 */ return name;\r\n/* 29: */ }",
"String getPrimeiroNome();",
"public Laboratorio(String nombre) {\r\n\t\tsuper();\r\n\t\tthis.nombre = nombre;\r\n\t}",
"Karyawan(String n)\n {\n this.nama = n;\n }",
"java.lang.String getBusinessName();",
"public String getName(){\n if(number == 1) return \"ace\";\n if(number == 13) return \"king\";\n if(number == 12) return \"queen\";\n if(number == 11) return \"jack\";\n else return \"\" + number;\n }",
"public Builder setNombreComercial(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n nombreComercial_ = value;\n onChanged();\n return this;\n }",
"public void setNombres(String nombres);",
"public static void campoTextoTipoNumero(javax.swing.JTextField campo) {\n campo.addKeyListener(new java.awt.event.KeyAdapter() {\n @Override\n public void keyReleased(java.awt.event.KeyEvent e) {\n }\n\n @Override\n public void keyTyped(java.awt.event.KeyEvent e) {\n char caracter = e.getKeyChar();\n // Verificar si la tecla pulsada no es un digito\n if (((caracter < '0') || (caracter > '9')) && (caracter != '\\b' /*corresponde a BACK_SPACE*/)) {\n e.consume(); // ignorar el evento de teclado\n }\n }\n\n @Override\n public void keyPressed(java.awt.event.KeyEvent e) {\n }\n });\n }",
"public String getName() {\n/* 872 */ return CraftChatMessage.fromComponent(getHandle().getDisplayName());\n/* */ }",
"private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }",
"public static void main(String[] args) {\n //variable tipo local que recibe la opcion de nombre para el jugador\n int numeroDeOpcion;\n //acreditacion de los puntos iniciales\n puntosDeVida= 150*(nivel+1);\n puntosDeMana= 10*(nivel+1);\n //inicializacion del juego y preguntando si desea un nombre para el personaje\n \tSystem.out.println(\" ---->BIENVENIDO AL JUEGO<----\");\n \tSystem.out.println(\"\\nDesea ingresar un nombre a su personaje [S]si, [N]no\");\n \tScanner caracterNombre=new Scanner(System.in);\n \tString opcionTemp = caracterNombre.nextLine();\n \topcion = opcionTemp.charAt(0); //leyendo opcion\n \t//Ingresando un nombre por el jugador\n \tif(opcion=='s'||opcion=='S'){\n \t\tSystem.out.println(\"Ingrese el nombre:\");\n \t\tScanner cadenaNombre=new Scanner(System.in);\n \t\tnombrePersonaje=cadenaNombre.nextLine();\n \t}\n //Estableciendo nombre predeterminado por el juego\n else{\n \tnombrePersonaje=\"Jugador1\";\n \tSystem.out.printf(\"\\nSe le a asignado el personaje:\\t\"+nombrePersonaje); \n \t}\n do{\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n //Menu de opciones principales para el jugador\n System.out.println(\"\\n..MENU DE OPCIONES..\");\n System.out.println(\"1. A la carga.\"); //Inicia la battalla\n System.out.println(\"2.Tienda.\"); //Permite comprar articulos para la batalla\n System.out.println(\"3.zzZzzZzzZ(Dormir).\");//Permite recuperar al jugador a su estado inicial \n System.out.println(\"4.Status.\"); //Muestra las estadisticas del juego\n System.out.println(\"5.Mas Poder!!!.\"); //Para aumento de nivel del juego \n System.out.println(\"6.Salir.\"); //finaliza las acciones y sale del juego\n do{//validando el numero de opcion\n System.out.println(\"Ingrese el numero de opcion:\");\n numeroDeOpcion= scanner.nextInt();\n }\n while(numeroDeOpcion<1 || numeroDeOpcion>6);\n //comparando la opcion ingresada\n switch(numeroDeOpcion){\n //mostrando los casos existentes por comparar\n case 1:{\n do{\n batalla();//llamando a la funcion batalla\n //Validando la repeticion de la fuencion o su finalizacion\n System.out.println(\"\\nDesea otra Batalla? [S]i, [N]o\");\n Scanner caracterBatalla=new Scanner(System.in);\n String opcionTemp1 = caracterBatalla.nextLine();\n repetirOpcion = opcionTemp1.charAt(0);\n opcionMiedo=0; //reiniciando la opcion miedo\n } \n //condicion del bucle para la funcion batalla \n while(repetirOpcion=='s'||repetirOpcion=='S');\n break;\n }\n case 2:{\n do{\n tienda();//llamando a la funcion tienda\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea realizar otra compra? [S]i, [N]o\");\n Scanner caracterTienda=new Scanner(System.in);\n String opcionTemp2 = caracterTienda.nextLine();\n repetirOpcion2 = opcionTemp2.charAt(0);\n }\n //condicion de bucle para la funcion tienda\n while(repetirOpcion2=='s'||repetirOpcion2=='S');\n break;\n }\n case 3:{\n do{\n dormir();//llamando a la funcion dormir\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea volver a dormir? [S]i, [N]o\");\n Scanner caracterDormir=new Scanner(System.in);\n String opcionTemp3 = caracterDormir.nextLine();\n repetirOpcion3 = opcionTemp3.charAt(0);\n }\n //condicion de bucle para la funcion dormir \n while(repetirOpcion3=='s'||repetirOpcion3=='S');\n break;\n }\n case 4:{\n do{\n status();//llamando a la funcion status\n //validando su repeticion\n System.out.println(\"\\nMostrar nuevamente? [S]i, [N]o\");\n Scanner caracterStatus=new Scanner(System.in);\n String opcionTemp4 = caracterStatus.nextLine();\n repetirOpcion4 = opcionTemp4.charAt(0);\n }\n //condicion de bucle para la funcion status \n while(repetirOpcion4=='s'||repetirOpcion4=='S');\n break;\n }\n case 5:{\n do{\n poder();//llamando a la funcion poder\n //validando la repeticion de la funcion\n System.out.println(\"\\nDesea mas poder? [S]i, [N]o\");\n Scanner caracterPoder=new Scanner(System.in);\n String opcionTemp5 = caracterPoder.nextLine();\n repetirOpcion5 = opcionTemp5.charAt(0);\n }\n //condion de bucle para la funcion poder \n while(repetirOpcion5=='s'||repetirOpcion5=='S');\n break;\n }\n \tdefault:{\n System.exit(0);//saliendo del juego\n break;\n }\n }\n //validacion del retorno al menu principal\n System.out.println(\"volver al menu [S]si, [N]no?\");\n Scanner caracterVolver=new Scanner(System.in);\n String opcionTemp6 = caracterVolver.nextLine();\n opcionSalir=opcionTemp6.charAt(0);\n }\n //condicion del bucle para menu principal\n while(opcionSalir=='S'||opcionSalir=='s'); \n }",
"private void addPersonName(StringBuffer sb, final String patName) {\n\t\tStringTokenizer stk = new StringTokenizer(patName, \"^\", true);\n\t\tfor (int i = 0; i < 6 && stk.hasMoreTokens(); ++i) {\n\t\t\tsb.append(stk.nextToken());\n\t\t}\n\t\tif (stk.hasMoreTokens()) {\n\t\t\tString prefix = stk.nextToken();\n\t\t\tif (stk.hasMoreTokens()) {\n\t\t\t\tstk.nextToken(); // skip delim\n\t\t\t\tif (stk.hasMoreTokens()) {\n\t\t\t\t\tsb.append(stk.nextToken()); // name suffix\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append('^').append(prefix);\n\t\t}\n\t}",
"public String editBankName(String name) {\n return name.replaceFirst(\"[.][^.]+$\", \"\");\n }",
"public Joueur(String nomJoueur){\n\t\tthis.nom= nomJoueur;\n\t\tthis.cartesEnMain=new Main();\n\t\tthis.pileCartes=new Pile();\n\t\tthis.estDansPartie = true;\n\t\tthis.estDansBataille = true;\n\t}",
"Caseless getName();",
"@Override\n public void focusLost( FocusEvent arg0 ) {\n String newname = text.getText();\n if ( renameUser( name, newname ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }",
"public Field label(String label);",
"public static void asignarPunteo(int puntos, String nombreJugador) {\n for (int sizeNombres = 0; sizeNombres < nombres.length - 1; sizeNombres++) {\n if ((nombreJugador.equals(nombres[sizeNombres])) && (puntos == 1)) {\n punteos[sizeNombres] += 1;\n break;\n }\n\n }\n\n }",
"public static String inputName() {\n return GolferScoresTree.inputString(\"Golfer name: \");\n }",
"private static String getClassName (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\treturn label.substring (0, i);\n\t }; // if\n\t}; // for\n\n\treturn label;\n\n }",
"public int buscaCorJogador(List<Jogador> lista ,String a) {\n\t\tfor(int k = 0;k<lista.size();k++) {\n\t\t\tif(lista.get(k).getCor().toUpperCase().equals(a.toUpperCase())) {\n\t\t\t\treturn k;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint num;\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tJname jk = new Jname();\r\n\t\t\r\n\t\t//System.out.println(\"Enter the other name:\");\r\n\t\t//oname = sc.nextLine();\r\n\t\t\r\n\t\tjk.Dname();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private String getFullMonthNameFromHeader(String labelname) \r\n\t{\n\t\tString substringgetfirstthree = labelname;\r\n String getactualmonth = substringgetfirstthree.replaceAll(\"[^a-zA-Z]\", \"\").trim();\r\n \r\n return getactualmonth;\t\r\n\t\r\n\t}",
"private JTextField makeNameField()\n {\n _nameField = new JTextField(50);\n\n // Create DocumentFilter for restricting input length\n AbstractDocument d = (AbstractDocument) _nameField.getDocument();\n d.setDocumentFilter(new NameFieldLimiter(NewHeroCiv.MAX_NAMELEN));\n _nameField.setName(\"heroName\");\n\n // Extract Hero's name and update Hero's name into MainFrame Title\n // if Enter key is hit or text field loses focus.\n _nameField.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event)\n {\n _name = _nameField.getText().trim();\n setHeroBorder();\n }\n });\n\n return _nameField;\n }",
"public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }",
"void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }",
"private String name() {\n return Strings.concat(Token.DOLLAR, name.string());\n }",
"Ris(String nome) {\n this.nome = nome;\n }",
"String fullName();",
"private String ricavaNome(String itemSelected){\n int i = 0;\n String schema;\n \n while(itemSelected.charAt(i) != '.'){\n i++;\n }\n \n schema = itemSelected.substring(i+1);\n \n return schema;\n }",
"public void setNomBloque(String nomBloque) {\n this.nomBloque = nomBloque;\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }"
] | [
"0.6144052",
"0.6052098",
"0.5843714",
"0.55268085",
"0.54767174",
"0.5435841",
"0.5421732",
"0.53828335",
"0.537937",
"0.5351935",
"0.53327125",
"0.5321455",
"0.5307606",
"0.5289503",
"0.5235399",
"0.5234674",
"0.5224942",
"0.5215133",
"0.5199495",
"0.5186605",
"0.5181602",
"0.51530564",
"0.5150497",
"0.51145387",
"0.50962305",
"0.5068622",
"0.5063791",
"0.5058146",
"0.50215673",
"0.500633",
"0.49969536",
"0.4990147",
"0.49889997",
"0.49879327",
"0.49588248",
"0.4955506",
"0.49459556",
"0.49433768",
"0.49416235",
"0.49258333",
"0.49178582",
"0.4917199",
"0.49080426",
"0.48873466",
"0.48840263",
"0.48829108",
"0.48769015",
"0.48728636",
"0.48699635",
"0.4859774",
"0.4845191",
"0.48445094",
"0.48394075",
"0.4834004",
"0.48297724",
"0.48241606",
"0.4823915",
"0.48176563",
"0.48147452",
"0.48139286",
"0.48110494",
"0.4810498",
"0.48082748",
"0.4807742",
"0.4805767",
"0.4801303",
"0.4801303",
"0.47965273",
"0.4795852",
"0.47953752",
"0.47884837",
"0.47881627",
"0.47811395",
"0.4781009",
"0.47761795",
"0.4774056",
"0.4760437",
"0.47602597",
"0.4757293",
"0.4756512",
"0.47542846",
"0.47537667",
"0.47493485",
"0.47455445",
"0.4745393",
"0.4742065",
"0.4738889",
"0.47380573",
"0.47364786",
"0.47356346",
"0.47335583",
"0.4729973",
"0.47290885",
"0.47288975",
"0.47275117",
"0.47264224",
"0.47256076",
"0.47247824",
"0.47148684",
"0.47129878",
"0.47129878"
] | 0.0 | -1 |
Sets up the LOGGER for this class using a default configuration. | public static void setupLaTeXLoggers(String filename) throws IOException {
Formatter formatter = new LaTeXLogFormatter();
Handler fileHandler = new FileHandler( filename);
fileHandler.setFormatter(formatter);
LOGGER.addHandler( fileHandler );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeAll\n public static void configureLogger() {\n new SuperStructure(null, null, null, null, null);\n\n Logger.configure(null);\n Logger.start();\n }",
"private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }",
"private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}",
"public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }",
"protected void initLogger() {\n initLogger(\"DEBUG\");\n }",
"private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}",
"private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}",
"private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }",
"@Override\n\tpublic void initLogger() {\n\t\t\n\t}",
"private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }",
"@BeforeClass\n public static void setupClass() {\n build = System.getenv(\"BUILD\");\n \n File logFile = new File(LOG_FILE);\n if(!logFile.exists()) {\n System.out.println(\"Creating log file\");\n try {\n logFile.createNewFile();\n System.out.println(\"Created log file: \" + logFile.getPath());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n }\n \n try {\n FileHandler fileHandler = new FileHandler(logFile.getPath());\n fileHandler.setFormatter(new LogFormatter());\n LOGGER.addHandler(fileHandler);\n \n } catch (SecurityException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n \n LOGGER.setUseParentHandlers(false);\n \n }",
"@BeforeClass\n\tpublic static void setup() {\n\t\tLogger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\n\t\troot.setLevel(Level.INFO);\n\t}",
"public static synchronized void initializeLogger() {\n\t\t\n\t try {\n\t\t String workingDir = System.getProperty(\"user.dir\");\n\t\t String fileName = workingDir + File.separator + \"config\" + File.separator + \"logging.properties\";\n\t\t \n\t\t FileInputStream fileInputStream = new FileInputStream(fileName);\n\t\t LogManager.getLogManager().readConfiguration(fileInputStream);\n\t\t \n\t } catch (IOException ex) {\n\t\t System.err.println(\"Failed to load logging.properlies, please check the file and the path:\" + ex.getMessage()); \n\t ex.printStackTrace();\n\t System.exit(0);\n\t }\n\t}",
"public void configLogger() {\n Logger.addLogAdapter(new AndroidLogAdapter());\n }",
"private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }",
"public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }",
"void initializeLogging();",
"@BeforeClass\n\tpublic void setup() {\n\t\tlogger = Logger.getLogger(\"AveroRestAPI\");\n\t\tPropertyConfigurator.configure(\"Log4j.properties\");\n\t\tlogger.setLevel(Level.DEBUG);\n\n\t}",
"private void initLogConfig() {\n\t\t logConfigurator = new LogConfigurator();\n\t\t// Setting append log coudn't cover by a new log.\n\t\tlogConfigurator.setUseFileAppender(true);\n\t\t// Define a file path for output log.\n\t\tString filename = StorageUtils.getLogFile();\n\t\tLog.i(\"info\", filename);\n\t\t// Setting log output\n\t\tlogConfigurator.setFileName(filename);\n\t\t// Setting log's level\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setFilePattern(\"%d %-5p [%c{2}]-[%L] %m%n\");\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 5);\n\t\t// Set up to use the cache first and then output to a file for a period\n\t\t// of time\n\t\tlogConfigurator.setImmediateFlush(false);\n\t\tlogConfigurator.setUseLogCatAppender(true);\n\t\t// logConfigurator.setResetConfiguration(true);\n\t\tlogConfigurator.configure();\n\t}",
"private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ctx.updateLoggers();\n\n // Check if Maven repo exists\n File f = new File(globalConfig.getMavenRepoPath());\n if (!f.exists()) {\n // If not then create\n f.mkdir();\n }\n }",
"private void configureLogging() throws FileNotFoundException, IOException {\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SekaiClient.class);\r\n\t}",
"protected synchronized void initializeLogger(Logger logger) {\n\n if( config==null) {\n _unInitializedLoggers.add( logger );\n } else {\n internalInitializeLogger( logger ); \n }\n }",
"public static void getLoggerConfiguration() {\n\t\tPropertyConfigurator.configure(System.getProperty(\"user.dir\")+ \"\\\\Config\\\\log4j.properties\");\n\t}",
"private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}",
"private void configureLogging() throws FileNotFoundException, IOException {\r\n\t\t// Set configuration file for log4j2\r\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SBIWebServer.class);\r\n\t}",
"void initializeLogging(String loggingProperties);",
"public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setup (SProperties config) throws IOException {\n\tString sysLogging =\n\t System.getProperty (\"java.util.logging.config.file\");\n\tif (sysLogging != null) {\n\t System.out.println (\"Logging configure by system property\");\n\t} else {\n\t Logger eh = getLogger (config, \"error\", null, \"rabbit\",\n\t\t\t\t \"org.khelekore.rnio\");\n\t eh.info (\"Log level set to: \" + eh.getLevel ());\n\t}\n\taccessLog = getLogger (config, \"access\", new AccessFormatter (),\n\t\t\t \"rabbit_access\");\n }",
"@BeforeClass\n public static void beforeClass()\n throws Exception\n {\n LoggerConfiguration.logSetup();\n }",
"public ModularConfiguration(Logger logger) {\n this.logger = logger;\n }",
"@Override\n protected Logger getLogger() {\n return LOGGER;\n }",
"static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }",
"@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.createSession(this);\n\n final LogConfig logConfig = agentConfig.createLogConfig();\n\n // LOG: create logWriterAppender here\n loggingSession.startSession();\n\n // LOG: look in AgentConfigImpl for existing LogWriter to use\n InternalLogWriter existingLogWriter = agentConfig.getInternalLogWriter();\n if (existingLogWriter != null) {\n logWriter = existingLogWriter;\n } else {\n // LOG: create LogWriterLogger\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n // Set this log writer in AgentConfigImpl\n agentConfig.setInternalLogWriter(logWriter);\n }\n\n // LOG: create logWriter here\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n\n // Set this log writer in AgentConfig\n agentConfig.setInternalLogWriter(logWriter);\n\n // LOG:CONFIG: changed next three statements from config to info\n logger.info(LogMarker.CONFIG_MARKER,\n String.format(\"Agent config property file name: %s\",\n AgentConfigImpl.retrievePropertyFile()));\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.getPropertyFileDescription());\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.toPropertiesAsString());\n }",
"public void configLog()\n\t{\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + dataFileName);\n\t\t// Set the root log level\n\t\t//writerConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\t///writerConfigurator.setMaxFileSize(1024 * 1024 * 500);\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 1024);\n\t\t// Set log level of a specific logger\n\t\t//writerConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setImmediateFlush(true);\n\t\t//writerConfigurator.configure();\n\t\tlogConfigurator.configure();\n\n\t\t//gLogger = Logger.getLogger(this.getClass());\n\t\t//gWriter = \n\t\tgLogger = Logger.getLogger(\"vdian\");\n\t}",
"private void configure() {\r\n LogManager manager = LogManager.getLogManager();\r\n String className = this.getClass().getName();\r\n String level = manager.getProperty(className + \".level\");\r\n String filter = manager.getProperty(className + \".filter\");\r\n String formatter = manager.getProperty(className + \".formatter\");\r\n\r\n //accessing super class methods to set the parameters\r\n\r\n\r\n }",
"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 }",
"public Slf4jLogService() {\n this(System.getProperties());\n }",
"public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}",
"private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }",
"@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}",
"protected void setUp() throws Exception {\r\n printStream = new PrintStream(new FileOutputStream(FILE));\r\n\r\n logFactory = new BasicLogFactory(printStream);\r\n\r\n log = (BasicLog) logFactory.createLog(NAME);\r\n }",
"public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}",
"public ETLLogDAOImpl() {\r\n this(new Configuration());\r\n }",
"protected void setUp() throws Exception {\n\t\tTestUtils.configureLogging();\r\n\r\n\t\t// delete all tmp files ...\r\n\t\tthis.tmpDir = new TmpDirectory(\"howllogger\");\r\n\t\tthis.tmpDir.clear();\r\n\r\n\t\tthis.tmpDir = new TmpDirectory(\"howllogger\");\r\n\t\tSystem.getProperties().setProperty(\"howl.log.logFileDir\",\r\n\t\t\t\tthis.tmpDir.getDirectory().getCanonicalPath());\r\n\r\n\t}",
"@BeforeClass\npublic static void setLogger() {\n System.setProperty(\"log4j.configurationFile\",\"./src/test/resources/log4j2-testing.xml\");\n log = LogManager.getLogger(LocalArtistIndexTest.class);\n}",
"public MyLoggingFacade(Logger logger) {\n this.logger = logger;\n }",
"protected AbstractLogger() {\n \n }",
"@Before public void setUp() {\n\t\tsetUp(new ParallelLogger());\n\t}",
"protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }",
"public LoggerConfigBean() {\n super();\n }",
"public static void initializeLogger(Level level) {\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\r\n\t\tURL url = loader.getResource(\"resources/log4j.xml\");\r\n\t\tPropertyConfigurator.configure(url);\r\n\t\tLogger logger = Logger.getLogger(BaseActivator.class);\r\n\t\tlogger.setLevel(level);\r\n\t\tlogger.info(\"Starting Logger: Level = \" + logger.getLevel().getClass());\r\n\t\tBaseActivator.setLoggerIsInitialized(true);\r\n\t}",
"private void initLoggers()\n {\n Logger.getSharedInstance();\n\n for (Logger logger : Logger.getAllLoggers())\n {\n String key = \"Loggers/\" + logger.getNamespace();\n Level desired;\n\n if (!SmartDashboard.containsKey(key))\n {\n // First time this logger has been sent to SmartDashboard\n SmartDashboard.putString(key, logger.getLogLevel().name());\n desired = Level.DEBUG;\n }\n else\n {\n String choice = SmartDashboard.getString(key, \"DEBUG\");\n Level parsed = Level.valueOf(choice);\n if (parsed == null)\n {\n m_logger.error(\"The choice '\" + choice + \"' for logger \" + logger.getNamespace() + \" isn't a valid value.\");\n desired = Level.DEBUG;\n }\n else\n {\n desired = parsed;\n }\n }\n logger.setLogLevel(desired);\n }\n }",
"private ExtentLogger() {}",
"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 initCemsLogger() {\n if (logger == null) {\n final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n final Formatter formatter = new Formatter() {\n @Override\n public String format(LogRecord record) {\n final StringBuilder sb = new StringBuilder();\n sb.append(dateFormat.format(new Date(record.getMillis())));\n sb.append(\" - \");\n sb.append(record.getLevel().getName());\n sb.append(\": \");\n sb.append(record.getMessage());\n sb.append(\"\\n\");\n @SuppressWarnings(\"ThrowableResultOfMethodCallIgnored\")\n final Throwable thrown = record.getThrown();\n if (thrown != null) {\n sb.append(thrown.toString());\n sb.append(\"\\n\");\n }\n return sb.toString();\n }\n };\n\n final ConsoleHandler handler = new ConsoleHandler();\n handler.setFormatter(formatter);\n handler.setLevel(Level.ALL);\n\n logger = Logger.getLogger(\"ga.cems\");\n final Handler[] handlers = logger.getHandlers();\n for (Handler h : handlers) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n logger.addHandler(handler);\n }\n// logger.setLevel(Level.INFO);\n logger.setLevel(logLevel);\n }",
"public AstractLogger getDefaultLogger()\n {\n return new DefaultLogger();\n }",
"@Override\n\tprotected Logger getLogger() {\n\t\treturn HMetis.logger;\n\t}",
"void setupFileLogging();",
"protected Log getLogger() {\n return LOGGER;\n }",
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"public WriteLogger( )\n {\n this.logfilename = null;\n\n this.logfile = null;\n this.out = null;\n }",
"public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }",
"public static void initLogger(Logger l_) {\n l = l_;\n }",
"private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}",
"public void initALog() {\n ALog.Config config = ALog.init(this)\n .setLogSwitch(BuildConfig.DEBUG)// 设置log总开关,包括输出到控制台和文件,默认开\n .setConsoleSwitch(BuildConfig.DEBUG)// 设置是否输出到控制台开关,默认开\n .setGlobalTag(null)// 设置log全局标签,默认为空\n // 当全局标签不为空时,我们输出的log全部为该tag,\n // 为空时,如果传入的tag为空那就显示类名,否则显示tag\n .setLogHeadSwitch(false)// 设置log头信息开关,默认为开\n .setLog2FileSwitch(false)// 打印log时是否存到文件的开关,默认关\n .setDir(\"\")// 当自定义路径为空时,写入应用的/cache/log/目录中\n .setFilePrefix(\"\")// 当文件前缀为空时,默认为\"alog\",即写入文件为\"alog-MM-dd.txt\"\n .setBorderSwitch(true)// 输出日志是否带边框开关,默认开\n .setSingleTagSwitch(true)// 一条日志仅输出一条,默认开,为美化 AS 3.1.0 的 Logcat\n .setConsoleFilter(ALog.V)// log的控制台过滤器,和logcat过滤器同理,默认Verbose\n .setFileFilter(ALog.V)// log文件过滤器,和logcat过滤器同理,默认Verbose\n .setStackDeep(1)// log 栈深度,默认为 1\n .setStackOffset(0)// 设置栈偏移,比如二次封装的话就需要设置,默认为 0\n .setSaveDays(3)// 设置日志可保留天数,默认为 -1 表示无限时长\n // 新增 ArrayList 格式化器,默认已支持 Array, Throwable, Bundle, Intent 的格式化输出\n .addFormatter(new ALog.IFormatter<ArrayList>() {\n @Override\n public String format(ArrayList list) {\n return \"ALog Formatter ArrayList { \" + list.toString() + \" }\";\n }\n });\n ALog.d(config.toString());\n }",
"public Log(Logger logger) {\n this.logger = logger;\n }",
"private static void initializeLog(Properties config)\n {\n // log.file.level = [ ALL | DEBUG | INFO | WARN | ERROR | FATAL ]\n\n try\n {\n PatternLayout layout;\n\n String pattern = config.getProperty(\"log.file.layout\");\n if (null == pattern)\n {\n layout = new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN);\n }\n else\n {\n layout = new PatternLayout(pattern);\n }\n // System.out.println(\"Log4j pattern = \" + pattern);\n // System.out.println(\"Log4j layout = \" + layout);\n\n String fileName = basedir + File.separator + config.getProperty(\"log.dir\") +\n File.separator + config.getProperty(\"log.file\");\n // System.out.println(\"Log4j fileName = \" + fileName);\n\n RollingFileAppender appender = new RollingFileAppender(layout, fileName, true);\n appender.setMaxFileSize(config.getProperty(\"log.file.max.size\"));\n int maxBackup = 14; // default if property not available\n try\n {\n maxBackup = Integer.parseInt(config.getProperty(\"log.file.max.backup\"));\n }\n catch (NumberFormatException e) { }\n appender.setMaxBackupIndex(maxBackup);\n // System.out.println(\"Log4j maxBackup = \" + maxBackup);\n\n Logger log = Logger.getRootLogger();\n log.addAppender(appender);\n log.setLevel(Level.toLevel(config.getProperty(\"log.file.priority\")));\n }\n catch (IOException e)\n {\n System.err.println(\"FAILURE: Error opening log file\");\n System.err.println(e.getMessage());\n System.exit(BAD_RUN);\n }\n }",
"public ScreeningLogger() {\n int defaultMaxRetries = DEFAULT_MAX_RETRIES;\n int defaultRetrySleepTime = DEFAULT_RETRY_SLEEP_TIME;\n\n try {\n ConfigManager cm = ConfigManager.getInstance();\n\n String maxRetriesString = cm.getString(SCREENING_LOGGER_NAMESPACE, MAX_RETRIES_PROPERTY_NAME);\n if (maxRetriesString != null) {\n try {\n defaultMaxRetries = Integer.parseInt(maxRetriesString);\n } catch (NumberFormatException nfe) {\n // uses default\n }\n }\n\n String retrySleepTimeString = cm.getString(SCREENING_LOGGER_NAMESPACE, RETRY_SLEEP_TIME_PROPERTY_NAME);\n if (retrySleepTimeString != null) {\n try {\n defaultRetrySleepTime = Integer.parseInt(retrySleepTimeString);\n } catch (NumberFormatException nfe) {\n // uses default\n }\n }\n } catch (Exception e) {\n // uses default\n }\n\n maxRetries = defaultMaxRetries;\n retrySleepTime = defaultRetrySleepTime;\n\n initializeIdGen();\n }",
"@BeforeClass\n public static void setUpClass() {\n final Properties p = new Properties();\n p.put(\"log4j.appender.Remote\", \"org.apache.log4j.net.SocketAppender\");\n p.put(\"log4j.appender.Remote.remoteHost\", \"localhost\");\n p.put(\"log4j.appender.Remote.port\", \"4445\");\n p.put(\"log4j.appender.Remote.locationInfo\", \"true\");\n p.put(\"log4j.rootLogger\", \"ALL,Remote\");\n PropertyConfigurator.configure(p);\n }",
"public static synchronized Logging initialize()\n {\n if (instance == null) {\n instance = new Logging();\n }\n\n return instance;\n }",
"public Logger() {\n map = new LinkedHashMap<>();\n }",
"public void postInitAfterConfiguration() {\n\t\t// each configuration are only supporting one log handler\n\t\tcrawlerRecordHandler = new CrawlerRecord(this);\n\t\t// TODO: other configurations needs to be added after all configurations are set\n\t}",
"public void setUp() {\n instance = new LogMessage(type, id, operator, message, error);\n }",
"public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }",
"public static void initialize() {\n \tinitialize(new Configuration().configure());\n }",
"@Override\n\tprotected void initial() throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}",
"public ServicioLogger() {\n }",
"public Logger getLogger() {\t\t\n\t\treturn logger = LoggerFactory.getLogger(getClazz());\n\t}",
"public LoggingSAXErrorHandler()\n {\n setLogger(getDefaultLogger());\n }",
"public static void initLoad() throws Exception {\n\n String configPath = System.getProperty(\"config.dir\") + File.separatorChar + \"config.cfg\";\n System.out.println(System.getProperty(\"config.dir\"));\n \n Utils.LoadConfig(configPath); \n /*\n \n // log init load \n String dataPath = System.getProperty(\"logsDir\");\n if(!dataPath.endsWith(String.valueOf(File.separatorChar))){\n dataPath = dataPath + File.separatorChar;\n }\n String logDir = dataPath + \"logs\" + File.separatorChar;\n System.out.println(\"logdir:\" + logDir);\n System.setProperty(\"log.dir\", logDir);\n System.setProperty(\"log.info.file\", \"info_sync.log\");\n System.setProperty(\"log.debug.file\", \"error_sync.log\");\n PropertyConfigurator.configure(System.getProperty(\"config.dir\") + File.separatorChar + \"log4j.properties\");\n */\n }",
"public MyLogger () {}",
"static void setupDefaultEnvironment() throws IOException {\n String rioHomeDirectory = getRioHomeDirectory();\n File logDir = new File(rioHomeDirectory+\"logs\");\n checkAccess(logDir, false);\n }",
"private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }",
"public Logger (){}",
"protected abstract Logger getLogger();",
"public void setLogger(Logger logger)\n {\n this.logger = logger;\n }",
"private static void configureLogging(String currentDirectory) {\n System.out.println(\"Looking for watchdog.properties within current working directory : \" + currentDirectory);\n try {\n LogManager manager = LogManager.getLogManager();\n manager.readConfiguration(new FileInputStream(WATCHDOG_LOGGING_PROPERTIES));\n try {\n fileHandler = new FileHandler(WatchDogConfiguration.watchdogLogfilePath, true); //file\n SimpleFormatter simple = new SimpleFormatter();\n fileHandler.setFormatter(simple);\n logger.addHandler(fileHandler);//adding Handler for file\n } catch (IOException e) {\n System.err.println(\"Exception during configuration of logging.\");\n }\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n logger.info(String.format(\"Monitoring: %s\", WatchDogConfiguration.watchdogDirectoryMonitored));\n logger.info(String.format(\"Processed: %s\", WatchDogConfiguration.watchdogDirectoryProcessed));\n logger.info(String.format(\"Logfile: %s\", WatchDogConfiguration.watchdogLogfilePath));\n }",
"private Logger getLogger() {\n return LoggingUtils.getLogger();\n }",
"private JavaUtilLogHandlers() { }",
"public ProjectConfiguration(WebDriver driver, ExtentTest logger) { \r\n\t\tsuper(driver, logger);\r\n\t\tthis.driver = driver;\n\t\t//this.logger = logger;\r\n\t}",
"public void init() {\n log.info(\"initialization\");\n }",
"private static void setupLogging(IATOptions iatOptions) {\n\t\tPrintStream logS = null;\n\t\t\n\t\ttry {\n\t\t\tFile path = new File(iatOptions.logFilePath_);\n\t\t\tpath.getParentFile().mkdirs();\n\t\t\tlogS = new PrintStream(new FileOutputStream(path));\n\t\t\tSystem.setErr(logS);\n\t\t} catch (Exception e) {\n\t\t\tLogging.Init_LOG.error(\"Cannot open log file\", e);\n\t\t}\n\t}",
"@Override\r\n\tpublic Logger getLogger() {\r\n\t\t\r\n\t\treturn LogFileGenerator.getLogger();\r\n\t\t\r\n\t}",
"public void setLogger(Logger logger) {\n this.logger = logger;\n }",
"public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }",
"protected void initLogger(String logLevel) {\n Logger.setLevel(logLevel);\n }",
"static void init(LoggerManager manager) {\n setLogDir(manager.getLogDirFullPath());\n setLogLevel(manager.getLevel());\n sLogcatEnabled = manager.enableLogcat();\n logGenerator = manager.logExecutor;\n\n if (logWriterThread != null) {\n logWriterThread.quit();\n }\n\n logWriterThread = new LogWriterThread(manager);\n logWriterThread.start();\n\n android.util.Log.i(TAG, \"initialized... level=\" + sLogLvlName + \",lvl=\"\n + sLogLvl + \",Logcat Enabled=\" + sLogcatEnabled + \",dir=\" + manager\n .getLogDirFullPath());\n }",
"public Logs() {\n initComponents();\n }",
"protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }",
"private Logger() {\n\n }",
"void setLoggerConfigFileName(String fileName);"
] | [
"0.7303654",
"0.7028612",
"0.6849772",
"0.68412125",
"0.68222046",
"0.6804227",
"0.67906624",
"0.67713934",
"0.67190266",
"0.6681296",
"0.6660813",
"0.6635594",
"0.66340476",
"0.66105294",
"0.6580789",
"0.6544263",
"0.6534321",
"0.651764",
"0.6498234",
"0.6492557",
"0.64650655",
"0.6463809",
"0.64623374",
"0.64495265",
"0.6433117",
"0.6408015",
"0.63893145",
"0.63142234",
"0.6311898",
"0.6280803",
"0.6261389",
"0.6211588",
"0.62047184",
"0.6189352",
"0.61839026",
"0.6183364",
"0.6179848",
"0.6149975",
"0.6136776",
"0.6128324",
"0.60908234",
"0.60751003",
"0.6072679",
"0.5996791",
"0.59930956",
"0.5991434",
"0.59859866",
"0.5947576",
"0.5947387",
"0.5946965",
"0.5942485",
"0.5940396",
"0.5938223",
"0.592074",
"0.59166706",
"0.5839328",
"0.58392936",
"0.5825331",
"0.58173233",
"0.5809084",
"0.5797681",
"0.5790928",
"0.5788709",
"0.578629",
"0.578036",
"0.576843",
"0.5761104",
"0.5757307",
"0.57417905",
"0.5737171",
"0.5735715",
"0.5721999",
"0.572034",
"0.5715176",
"0.57097614",
"0.56871796",
"0.5672792",
"0.56714576",
"0.56709445",
"0.5658834",
"0.5658091",
"0.5649078",
"0.5646608",
"0.56436807",
"0.5641236",
"0.5629136",
"0.5629004",
"0.56239814",
"0.5608207",
"0.5605286",
"0.5575279",
"0.5574718",
"0.5574598",
"0.5563928",
"0.5546844",
"0.55390805",
"0.55234104",
"0.55083126",
"0.55071104",
"0.5505591",
"0.55041987"
] | 0.0 | -1 |
Prints a description to the statistical process carried out above the results. | public void printPreTestOutput(
double significanceThreshold,
boolean brunnerMunzel,
boolean paired,
int initialRuns,
int maxRuns,
CensoringStrategy cens,
boolean timeseries,
int artefactRepeats,
SetOfComparisons<? extends GeneratorOutput> gens,
ModifiedVarghaDelaney vdmod) {
if(initialRuns < 10)
warning("The number of runs ($n$) is low, at only " + initialRuns
+ " To ensure reliability of results the number of runs should be at least 10");
LOGGER.info( "\n\nStatistical testing was carried out as follows: \n" );
LOGGER.info( LaTeXLogFormatter.itemizeFormat( describeOptions(significanceThreshold, brunnerMunzel, paired,
initialRuns, maxRuns, cens, timeseries, artefactRepeats, gens, vdmod) ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}",
"public abstract void description();",
"@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}",
"protected String description() {\r\n\t\treturn \"Exam: duration \" + duration + \" minutes, weight \" + this.getWeight() + \"%\";\r\n\t}",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"@Override\r\n public String toString() {\r\n return String.format(\"%s\",\r\n description);\r\n }",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}",
"public void showDescription() {\r\n\t\tshowDescription(true);\r\n\t}",
"public String getDescription() {\n return (desc);\n }",
"void displayDetails(String title, String description);",
"@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}",
"public String getDescription() {\n return desc;\n }",
"@Override\n\tpublic String getDescription();",
"public String getDescription()\r\n {\r\n\treturn desc;\r\n }",
"public String getDescription() {\n return desc;\n }",
"public String describe() { return new String(\"No description.\"); }",
"public String getDescription() { return description; }"
] | [
"0.75850165",
"0.69739306",
"0.68711466",
"0.6802948",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.67470104",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6687923",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6683404",
"0.6679524",
"0.66582",
"0.66556567",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66526216",
"0.66525567",
"0.66479546",
"0.6633153",
"0.6631125",
"0.6631026",
"0.66053766",
"0.6602552",
"0.6601086",
"0.65722686",
"0.65710425",
"0.6560095"
] | 0.0 | -1 |
Returns output describing each option set. | private List<String> describeOptions(
double significanceThreshold,
boolean brunnerMunzel,
boolean paired,
int initialRuns,
int maxRuns,
CensoringStrategy cens,
boolean timeSeries,
int artefactRepeats, SetOfComparisons<? extends GeneratorOutput> gens, ModifiedVarghaDelaney vdmod) {
if(artefactRepeats > 1){
LOGGER.info("This data was obtained from runs on multiple artefacts. Each artefact is treated as a single run "
+ "for the purpose of statistical comparison and so, the experimental description below, "
+ " the number of runs refers to the number of artefacts. "
+ "For each artefact " + artefactRepeats + " repeated tests were carried out and the median of these "
+ "results was used as the result for that artefact for the purposes of subsequent statistical testing."
);
}
List< String > result = new ArrayList< String >();
if(maxRuns > initialRuns){
result.add("Using the process of incrementing the number of runs until the difference is statistically significant. "
+ "Initially " + initialRuns + " experiments were run. "
+ "If sigificance is not obtained from these experiments then additional experiments are run until either significance is obtained or a maximum of "
+ maxRuns + " experiments have been run. "
+ "When this technique is used effect size testing is especially important as a number of samples sufficient to show a "
+ "statistically significant difference is likely to be reached even if the difference is too small to be useful. "
+ "Note that this strategy involves multiple P value calculations as $n$ increases. "
+ "These have not been adjusted and issues related to multiple testing should be taken into account when interpreting these results.\n");
}
else{
result.add("All experiments were repeated " + initialRuns + " times ($n$=" + initialRuns + ")");
}
boolean useNoncensoredInCensoredTests = false;
if(cens.isCensoring()){//censoring
StringBuffer censBuf = new StringBuffer();
if(paired){
censBuf.append( "The data is dichotomous and paired and so "
+ "the McNemar test of statistical significance~\\cite{Gibbons2011} was used followed by the Matched Odds Ratio test of effect size.");
}
else
censBuf.append( "The data is dichotomous and paired and so "
+ "the Fisher test of statistical significance was used followed by the Odds Ratio test of effect size.");
if(timeSeries){
censBuf.append("These tests compare boolean values, denoting a pass or a fail, "
+ "from the final point in the result time series. " );//initial standard censoring strategy
if(cens.complexStrategy()){//are more censoring strategies
censBuf.append("\n\nThis data is censored, that is to say the point at which results are obtained is the "
+ "arbitrary point at which the test stopped running. "
+ "This may not accurately reflect the true difference between the two datasets. "
+ "For this reason, additional statistical tests were carried out if "
+ "this initial test did not show significance. Additional tests where carried out in this order:\n");
List<String> censItems = new ArrayList<String>();
int i =0;
while(cens.hasMoreSteps(i)){
if(cens.usingTimesToPass(i)){
censItems.add(i + ": Tests were run using a non dichotomous P Value test "
+ "in which the length of time taken to reach a successful result is compared"
+ "(\"Time to Pass\" test).");
useNoncensoredInCensoredTests = true;
}
else{
censItems.add(i + ": Tests were run using a censoring point at " +
(cens.getCensoringPoint(i) == -1 ? "the final point": "point " + cens.getCensoringPoint(i)) + " in the time series.");
}
i++;
}
censBuf.append(LaTeXLogFormatter.itemizeFormat(censItems));
censBuf.append("Note that using these strategies involves multiple P value calculations on the same data. "
+ "This should be taken into account when interpreting these results.\n");
}
}
result.add(censBuf.toString());
}
//print settings only relevant to non censored tests or if the integer
//based test time to pass strategy is used as a censoring strategy
if(useNoncensoredInCensoredTests){
result.add("The points below only apply to the non dichotomous time based test:");
}
if(!cens.isCensoring() || useNoncensoredInCensoredTests){
if( paired ) {
result.add( "The data is paired. A paired version of the Wilcoxon/Mann-Whitney U test for significance will be used." );
}
else if(brunnerMunzel) {
result.add( "The Brunner Munzel P Value Significance Test was used. "
+ "Brunner Munzel is used in place of the Wilcoxon/ Mann Whitney U test recommended in Arcuri's paper~\\cite{Arcuri2012} "
+ "because the Brunner Munzel test is tolerant of heteroscedastic data whereas the "
+ "Wilcoxon/ Mann Whitney U test is not~\\cite{Brunner2000}." );
}
else {
result.add( "The Wilcoxon/ Mann Whitney U Significance Test was used." );
}
result.add("The Vargha Delaney Effect Size Test was used. "
+ "Effect size testing is essential in addition to significance testing as it demonstrates the magnitude of the difference between two samples. "
+ "With a large enough number of experiments (large enough $n$), the results of two different generating techniques are likely to be different to a statistically significant extent. "
+ "Effect size testing is needed to show that this difference is useful.");
if(vdmod != null)
result.add("According to the principles of Transformed Vargha Delaney~\\cite{Neumann2015}, "
+ "Vargha Delaney results are adjusted as follows:\n " + vdmod.describe());
}
MultiTestAdjustment adjust = gens.getAdjust();
if(adjust != null)
result.add("As there are multiple comparisons, p values are adjusted using the " + adjust.getName() + " adjustment.");
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void printAllOptions() {\n\t\tOption op = null;\n\t\tfor (int i = 0; i < options.size(); i++) {\n\t\t\top = options.get(i);\n\t\t\tSystem.out.println(i + \". \" + op.getOptionName() + \":Price \"\n\t\t\t\t\t+ String.format(\"%.2f\", op.getPrice()));\n\t\t}\n\t}",
"public void printOptions() {\n\t\t\n\t}",
"private void deliverOptions()\n {\n int counter = 0;\n for(Option choice : options){\n counter++;\n System.out.println(\"#\" + counter + \" \" + choice.getText());\n }\n }",
"public void printOptions() {\n String indent = \" \";\n System.out.println();\n System.out.println(\"+--------------------------- COMMANDS AND OPTIONS LIST ---------------------------+\");\n\n System.out.println();\n System.out.println(\"******* COMMANDS (scraper.[COMMAND]) *******\");\n System.out.println(\"The following interact with the RegistrationScraper class\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"iterateAll() --> Scrape every SDSU department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateAll()\");\n\n System.out.println();\n System.out.println(\"iterateOne() --> Scrape ONE department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateOne(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n\n System.out.println();\n System.out.println(\"printDepartmentCourses() --> Display a formatted list of every stored class so far\");\n System.out.println(indent + \"@usage printDepartmentCourses()\");\n\n System.out.println();\n System.out.println(\"printArrListSizes() --> Display the sizes of all the data (to make sure they're all the same length)\");\n System.out.println(indent + \"@usage printArrListSizes()\");\n \n\n System.out.println();\n System.out.println(\"******* OPTIONS (custom.[COMMAND] *******\");\n System.out.println(\"The following interact with the HTML GET method\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"setTerm() --> Set the semester term you want to search\");\n System.out.println(indent + \"@usage setTerm(\\\"Summer\\\", \\\"2017\\\")\");\n System.out.println(indent + \"@param season\");\n System.out.println(indent + indent + \"options: Fall, Spring, Winter, Summer\");\n System.out.println(indent + \"@param year\");\n System.out.println(indent + indent + \"options: 2015, 2016, 2017, etc.\");\n\n System.out.println();\n System.out.println(\"setDepartment() --> Set a single department you wish to search (use with iterateOne())\");\n System.out.println(indent + \"@usage setDepartment(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n System.out.println(indent + indent + \"options: AMIND, BIOL, CS, etc.\");\n\n System.out.println();\n System.out.println(\"setInstructor() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setInstructor(\\\"Kraft\\\")\");\n System.out.println(indent + \"@param last name\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setCourseNumber(\\\"108\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number AND suffic you want to return (ex. all \\\"xx-451A\\\" classes)\");\n System.out.println(indent + \"@usage setTerm(\\\"451\\\", \\\"A\\\")\");\n System.out.println(indent + \"@param number\");\n System.out.println(indent + \"@param suffix\");\n System.out.println(indent + indent + \"options: A, B, C, etc.\");\n\n System.out.println();\n System.out.println(\"setScheduleNumber() --> Set the specific class you want to return\");\n System.out.println(indent + \"@usage setScheduleNumber(\\\"20019\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setUnits() --> Set the specific number of units\");\n System.out.println(indent + \"@usage setUnits(\\\"3\\\")\");\n System.out.println(indent + \"@param units\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\")\");\n System.out.println(indent + \"@param facility\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility AND room location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\", \\\"311\\\")\");\n System.out.println(indent + \"@param facility\");\n System.out.println(indent + \"@param room number\");\n\n System.out.println();\n System.out.println(\"setServiceLearning() --> Toggle the 'Service Learning' option [only show Service Learning classes]\");\n System.out.println(indent + \"@usage setServiceLearning(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setSpecialTopics() --> Toggle the 'Special Topics' option [only show Special Topics classes]\");\n System.out.println(indent + \"@usage setSpecialTopics(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setHonors() --> Toggle the 'Honors' option [only show Honors classes]\");\n System.out.println(indent + \"@usage setHonors(true)\");\n System.out.println(indent + \"@param true/false\");\n \n System.out.println();\n System.out.println(\"setDistanceOnline() --> Toggle the 'Distance Online' option [only show Online classes]\");\n System.out.println(indent + \"@usage setDistanceOnline(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setDistanceHybrid() --> Toggle the 'Distance Hybrid' option [only show Hybrid classes]\");\n System.out.println(indent + \"@usage setDistanceHybrid(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setEvening() --> Toggle the 'Evening' option [only show Evening classes]\");\n System.out.println(indent + \"@usage setEvening(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setMeetingType() --> Set your preferred meeting type\");\n System.out.println(indent + \"@usage setMeetingType(\\\"Lecture\\\")\");\n System.out.println(indent + \"@param type\");\n System.out.println(indent + indent + \"@options Activity, Discussion, Labratory, Lecture, \"+\n \"Nontraditional, ROTC, Seminar, Supervised\");\n \n System.out.println();\n System.out.println(\"setGenEd() --> Set the General Education requirements you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"IIA2\\\")\");\n System.out.println(indent + \"@param true/false\");\n System.out.println(indent + indent + \"@options see general catalog\");\n\n System.out.println();\n System.out.println(\"setSession() --> Set the Summer Session you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"S1\\\")\");\n System.out.println(indent + \"@param session\");\n System.out.println(indent + indent + \"@options S1, S2, T1\");\n\n System.out.println();\n System.out.println(\"+---------------------------------------------------------------------------------+\");\n System.out.println();\n\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}",
"private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }",
"public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }",
"public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }",
"private String[] displayOptions() throws IOException {\n StringBuilder deckCollection = new StringBuilder(TerminalLauncher.DELIMITER_MAIN + \"deck selection:\\n\");\n String[] decknames = AnkiConnector.getDeckNames();\n String deckname_format = \" * %d: %s\\n\";\n for (int i = 0; i < decknames.length; i++) {\n deckCollection.append(String.format(deckname_format, i + 1, decknames[i]));\n }\n deckCollection.append(String.format(deckname_format, decknames.length + 1, \"create new deck\"));\n deckCollection.append(TerminalLauncher.DELIMITER_SEC + \"input: \");\n System.out.print(deckCollection);\n\n return decknames;\n }",
"private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}",
"@Override\n public Enumeration<Option> listOptions() {\n Vector<Option> result = new Vector<Option>();\n\n result.add(new Option(\"\", \"\", 0,\n \"\\nOptions specific to model building and evaluation:\"));\n\n result.add(new Option(\"\\tMLlib classifier to build and evaluate\", \"W\", 1,\n \"-W <MLlib classifier and options>\"));\n\n result\n .add(new Option(\n \"\\tSpecify a filter to pre-process the data \"\n + \"with.\\n\\tThe filter must be a StreamableFilter, meaning that the output\"\n + \"\\n\\tformat produced by the filter must be able to be determined\"\n + \"\\n\\tdirectly from the input data format. This option may be supplied\"\n + \"\\n\\tmultiple times in order to apply more than one filter.\",\n \"filter\", 1, \"-filter <filter name and options>\"));\n\n result.add(new Option(\n \"\\tSeparate data source for loading a test set. Set either this or\\n\\t\"\n + \"folds for a cross-validation (note that setting folds\\n\\t\"\n + \"to 1 will perform testing on training)\", \"test-set-data-source\", 1,\n \"-test-set-data-source <spec>\"));\n\n result.add(new Option(\"\\tNumber of folds for cross-validation. Set either \"\n + \"this or -test-set-data-source for a separate test set\", \"folds\", 1,\n \"-folds <integer>\"));\n\n result.add(new Option(\n \"\\tCompute AUC and AUPRC. Note that this requires individual\\n\\t\"\n + \"predictions to be retained - specify a fraction of\\n\\t\"\n + \"predictions to sample (e.g. 0.5) in order to save resources.\",\n \"auc\", 1, \"-auc <fraction of predictions to sample>\"));\n result.add(new Option(\"\\tOptional sub-directory of <output-dir>/eval \"\n + \"in which to store results.\", \"output-subdir\", 1,\n \"-output-subdir <directory name>\"));\n\n result.add(new Option(\"\\tClass index (1-based) or class attribute name \"\n + \"(default = last attribute).\", \"class\", 1, \"-class <index or name>\"));\n\n result.add(new Option(\n \"\\tCreate data splits with the order of the input instances\\n\\t\"\n + \"shuffled randomly. Also stratifies the data if the class\\n\\t\"\n + \"is nominal. Works in conjunction with -num-splits; can\\n\\t\"\n + \"alternatively use -num-instances-per-slice.\", \"randomize\", 0,\n \"-randomize\"));\n\n result.add(new Option(\"\", \"\", 0,\n \"\\nOptions specific to data randomization/stratification:\"));\n RandomizedDataSparkJob tempRJob = new RandomizedDataSparkJob();\n Enumeration<Option> randOpts = tempRJob.listOptions();\n while (randOpts.hasMoreElements()) {\n result.add(randOpts.nextElement());\n }\n\n return result.elements();\n }",
"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}",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"public void printOptions(String[] options) {\n\tfor (int counter = 0; counter < options.length; counter++) {\n\t System.out.print(options[counter] + \" || \");\n\t}\n\tSystem.out.print(\"\\n\");\n }",
"private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}",
"static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }",
"public void action() {\n\t\tfor(int i=0; i<facade.getServiceOptions().getOptionsList().size();i++){\n\t\t\tReader reader= new Reader(facade.getOptionsList().get(i));\n\t\t\treader.print();\n\t\t}\n\t}",
"private void printGoalOptions() {\n System.out.println(ANSI_PURPLE + \"CHOOSE YOUR GOALS: \" + ANSI_RESET);\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n System.out.println(\"1. I can be poor - I don't care about the money but I want to be as\" + ANSI_BLUE + \" happy and\" + ANSI_RESET + \" as\" + ANSI_BLUE + \" educated\" + ANSI_RESET + \" as possible.\");\n System.out.println(\"2. I want to be \" + ANSI_BLUE + \"rich and happy!\" + ANSI_RESET + \" I don't have to be educated at all.\");\n System.out.println(\"3. I want to be well \" + ANSI_BLUE + \"educated and \" + ANSI_RESET + \"I don't want be hungry ever again. Always \" + ANSI_BLUE + \"full!\" + ANSI_RESET + \" ;) \");\n System.out.println(\"4. I want to have the \" + ANSI_BLUE + \"best job\" + ANSI_RESET + \" possible and make\" + ANSI_BLUE + \" lots of money\" + ANSI_RESET + \" even if it will make me unhappy.\");\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n }",
"public static StringBuffer describeOptions( final CLOptionDescriptor[] options )\n {\n final String lSep = System.getProperty( \"line.separator\" );\n final StringBuffer sb = new StringBuffer();\n\n for ( final CLOptionDescriptor option : options )\n {\n final char ch = (char) option.getId();\n final String name = option.getName();\n String description = option.getDescription();\n int flags = option.getFlags();\n boolean argumentRequired =\n ( flags & CLOptionDescriptor.ARGUMENT_REQUIRED ) == CLOptionDescriptor.ARGUMENT_REQUIRED;\n final boolean twoArgumentsRequired =\n ( flags & CLOptionDescriptor.ARGUMENTS_REQUIRED_2 ) == CLOptionDescriptor.ARGUMENTS_REQUIRED_2;\n boolean needComma = false;\n if ( twoArgumentsRequired )\n {\n argumentRequired = true;\n }\n\n sb.append( '\\t' );\n\n if ( Character.isLetter( ch ) )\n {\n sb.append( \"-\" );\n sb.append( ch );\n needComma = true;\n }\n\n if ( null != name )\n {\n if ( needComma )\n {\n sb.append( \", \" );\n }\n\n sb.append( \"--\" );\n sb.append( name );\n }\n\n if ( argumentRequired )\n {\n sb.append( \" <argument>\" );\n }\n if ( twoArgumentsRequired )\n {\n sb.append( \"=<value>\" );\n }\n sb.append( lSep );\n\n if ( null != description )\n {\n while ( description.length() > MAX_DESCRIPTION_COLUMN_LENGTH )\n {\n final String descriptionPart =\n description.substring( 0, MAX_DESCRIPTION_COLUMN_LENGTH );\n description =\n description.substring( MAX_DESCRIPTION_COLUMN_LENGTH );\n sb.append( \"\\t\\t\" );\n sb.append( descriptionPart );\n sb.append( lSep );\n }\n\n sb.append( \"\\t\\t\" );\n sb.append( description );\n sb.append( lSep );\n }\n }\n return sb;\n }",
"@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder();\n\n if(argsIsSet) {\n for(String arg : args) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(arg);\n }\n }\n else {\n\n // first the options\n if(options.size() > 0) {\n sb.append(DefaultOptionSet.toString(options));\n }\n // operand: <files>\n if(filesIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"files\");\n sb.append(\" \").append(toString(getFiles()));\n }\n // operand: <paths>\n if(pathsIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"paths\");\n sb.append(\" \").append(toString(getPaths()));\n }\n // operand: <args>\n if(argsIsSet) {\n if(sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(\"--\").append(\"args\");\n sb.append(\" \").append(toString(getArgs()));\n }\n }\n\n return sb.toString();\n }",
"public void print() {\n \n for (int i=0 ; i< getNumberOfCases() ; i++) {\n Configuration conf = get(i);\n conf.print();\n System.out.print(\"\\n\");\n }\n}",
"public String getOptionsAsString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (!runtimeKeys.get(i))\n buf.append(key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (runtimeKeys.get(i))\n buf.append(\"* \" + key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}",
"public static void showAgendaOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View all scheduled RDVs\")\n .add(\"2- Add a new RDV\")\n .add(\"3- Show all RDVs between 2 dates (sorted).\")\n .add(\"4- Show all RDVs of a certain participant between 2 dates.\")\n .add(\"5- Remove an RDV\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }",
"protected final void printOptionHelp(Map<String, String> optionDescriptions) {\n int maxOptionLength = optionDescriptions.entrySet().stream().mapToInt(e -> e.getValue() != null ? e.getKey().length() : 0).max().orElse(0);\n optionDescriptions.forEach((option, description) -> {\n if (description != null) {\n printOutput(\" %-\" + maxOptionLength + \"s %s%n\", option, description);\n } else {\n printOutput(\" ------- %s -------%n\", option);\n }\n });\n }",
"@Override\n public String print() {\n return this.text + \"\\n\" + \"1. \" + this.option1.text + \"\\n\" + \"2. \" + this.option2.text;\n }",
"private void outputDiff() {\n this.pw.println(\"Change\\t\" + \"Subset\\t\" + \"Concept\\t\"\r\n + \"Value Changed\\t\" + \"Old Value\\t\" + \"New Value\");\r\n for (final DiffElement de : this.diffSet) {\r\n this.pw.println(de.toString());\r\n }\r\n this.pw.close();\r\n\r\n }",
"static public String[] getSummaryOptions()\r\n\t{\r\n\t\tint count = SummaryTypeEnum.values().length;\r\n\t\tString[] options = new String[count];\r\n\r\n\t\tcount = 0;\r\n\t\tfor (SummaryTypeEnum option: SummaryTypeEnum.values()) {\r\n\t\t\toptions[count++] = option.getRenderString();\r\n\t\t}\r\n\t\treturn options;\r\n\t}",
"public synchronized Iterator<String> getAllOptions() {\n\t\tSet<String> names = optionTable.keySet();\n\t\tIterator<String> itr = names.iterator();\n\t\treturn itr;\n\t}",
"private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }",
"private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}",
"public synchronized StringBuffer SearchAndPrintManager(String OptionSet_Name)\t{\n\t\treturn (opset.get(Search_List(OptionSet_Name)).DisplayOptionSet());\n\t}",
"public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}",
"protected Set<ValidOption> usageOptions() {\n Set<ValidOption> opts = new LinkedHashSet<ValidOption>();\n addOption(opts, \"printprompt\", '\\0', \"BOOLEAN\", false,\n Boolean.toString(programOpts.isInteractive()));\n opts.addAll(commandOpts);\n opts.remove(printPromptOption);\n return opts;\n }",
"public static String options(Integer option) {\n\t\tString options = \"[status] for status - [quit] to close\";\n\t\tif(option == 1)\n\t\t\tSystem.out.println(options);\n\t\treturn options;\n\t}",
"public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }",
"private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\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}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic abstract Enumeration listOptions();",
"public abstract String[] getOptions();",
"public Enumeration listOptions(){\n\n Vector newVector = new Vector(2);\n\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of attempts of generalisation.\\n\",\n\t\t\t\t \"G\", \n\t\t\t\t 1, \n\t\t\t\t \"-G <value>\"));\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of folder for computing the mutual information.\\n\",\n\t\t\t\t \"I\", \n\t\t\t\t 1, \n\t\t\t\t \"-I <value>\"));\n\n return newVector.elements();\n }",
"@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }",
"public void printComputerSummary() {\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\tSystem.out.println(comp.getDescription());\n\t\t}\n\t}",
"@Override\n public Enumeration<Option> listOptions() {\n Vector<Option> result = enumToVector(super.listOptions());\n\n result.addElement(new Option(\"\\tThe number of attributes (default \"\n + defaultNumAttributes() + \").\", \"a\", 1, \"-a <num>\"));\n\n result.addElement(new Option(\n \"\\tClass Flag, if set, the cluster is listed in extra attribute.\", \"c\",\n 0, \"-c\"));\n\n return result.elements();\n }",
"public synchronized StringBuffer Print_Text_OptionSet_Menu(String Text){\n\t\tint i=0;\n\t\tStringBuffer Menu= new StringBuffer(\"\\n\\t\\t\"+Text.toUpperCase(Locale.getDefault())\n +\" OPTIONSET MENU\\n\"\n\t\t\t\t+ \"\\tPLEASE ENTER YOUR CHOICE AS THE INSTRUCTION BELOW:\");\n for (OptionSet Temp : opset) {\n Menu.append(\"\\n\\t\\t-Enter \").append(i+1)\n .append(\" for \").append(Temp.getName()).append(\" .\");\n }\n\t\treturn Menu;\n\t}",
"@Override\n public Enumeration<Option> listOptions() {\n\n Vector<Option> result = new Vector<Option>();\n\n result.addElement(new Option(\"\\tThe method used to determine best split:\\n\"\n + \"\\t1. Gini; 2. MaxBEPP; 3. SSBEPP\", \"M\", 1, \"-M [1|2|3]\"));\n\n result.addElement(new Option(\n \"\\tThe constant used in the tozero() hueristic\", \"K\", 1,\n \"-K [kBEPPConstant]\"));\n\n result.addElement(new Option(\n \"\\tScales the value of K to the size of the bags\", \"L\", 0, \"-L\"));\n\n result.addElement(new Option(\n \"\\tUse unbiased estimate rather than BEPP, i.e. UEPP.\", \"U\", 0, \"-U\"));\n\n result\n .addElement(new Option(\n \"\\tUses the instances present for the bag counts at each node when splitting,\\n\"\n + \"\\tweighted according to 1 - Ba ^ n, where n is the number of instances\\n\"\n + \"\\tpresent which belong to the bag, and Ba is another parameter (default 0.5)\",\n \"B\", 0, \"-B\"));\n\n result\n .addElement(new Option(\n \"\\tMultiplier for count influence of a bag based on the number of its instances\",\n \"Ba\", 1, \"-Ba [multiplier]\"));\n\n result\n .addElement(new Option(\n \"\\tThe number of randomly selected attributes to split\\n\\t-1: All attributes\\n\\t-2: square root of the total number of attributes\",\n \"A\", 1, \"-A [number of attributes]\"));\n\n result\n .addElement(new Option(\n \"\\tThe number of top scoring attribute splits to randomly pick from\\n\\t-1: All splits (completely random selection)\\n\\t-2: square root of the number of splits\",\n \"An\", 1, \"-An [number of splits]\"));\n\n result.addAll(Collections.list(super.listOptions()));\n\n return result.elements();\n }",
"public String toString() {\r\n\r\n\tString out = \"\";\r\n\r\n\tfor (int i = 0; i < this.getNumberChoices(); i++) {\r\n\t MenuChoice thisChoice = this.getChoices().get(i);\r\n\t out += thisChoice.getIndex() + \") \" + thisChoice.getValue() + \"\\n\";\r\n\t}\r\n\r\n\treturn out;\r\n }",
"public String produceHelpMessage() {\n\t\t// first calculate how much space is necessary for the options\n\t\tint maxlen = 0;\n\t\tfor (OptionContainer oc : options) {\n\t\t\tfinal String shorta = oc.getShort();\n\t\t\tfinal String longa = oc.getLong();\n\t\t\tint len = 0;\n\t\t\tif (shorta != null)\n\t\t\t\tlen += shorta.length() + 1 + 1;\n\t\t\tif (longa != null)\n\t\t\t\tlen += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;\n\t\t\t// yes, we don't care about branch mispredictions here ;)\n\t\t\tif (maxlen < len)\n\t\t\t\tmaxlen = len;\n\t\t}\n\n\t\t// get the individual strings\n\t\tfinal StringBuilder ret = new StringBuilder();\n\t\tfor (OptionContainer oc : options) {\n\t\t\tret.append(produceHelpMessage(oc, maxlen));\n\t\t}\n\n\t\treturn ret.toString();\n\t}",
"private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }",
"public void printContribuintes (){\n for(String s : contribuintes.keySet()){\n System.out.printf(\"%s\",getContribuinte(s).toString());\n }\n }",
"@Override\r\n public String toString ()\r\n {\r\n if (sets != null) {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n for (Collection<Section> set : sets) {\r\n // Separator needed?\r\n if (sb.length() > 0) {\r\n sb.append(\" \");\r\n }\r\n\r\n sb.append(Sections.toString(set));\r\n }\r\n\r\n return sb.toString();\r\n }\r\n\r\n return \"\";\r\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 String toString() {\n \n String str = m_Classifier.getClass().getName();\n \n str += \" \"\n + Utils\n .joinOptions(((OptionHandler) m_Classifier)\n\t .getOptions());\n \n return str;\n \n }",
"public synchronized ArrayList<String> getNameofOptionset()\n {\n \t ArrayList<String> optionsetNames =new ArrayList<String>();\n for (OptionSet op: this.getOpset()){\n optionsetNames.add(op.getName());}\n return optionsetNames;\n }",
"public static void showParticipantDirectoryOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View the list of all participants\")\n .add(\"2- Add a new participant\")\n .add(\"3- Update a participant\")\n .add(\"4- Remove a certain participant\")\n .add(\"5- Remove all participants\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }",
"public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}",
"public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}",
"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 Enumeration listOptions() {\n\n\t\tVector newVector = new Vector(6);\n\n\t\tnewVector\n\t\t\t\t.addElement(new Option(\n\t\t\t\t\t\t\"\\tSets search method for subset evaluators.\\n\"\n\t\t\t\t\t\t\t\t+ \"\\teg. -S \\\"weka.attributeSelection.BestFirst -S 8\\\"\",\n\t\t\t\t\t\t\"S\", 1,\n\t\t\t\t\t\t\"-S <\\\"Name of search class [search options]\\\">\"));\n\n\t\tnewVector\n\t\t\t\t.addElement(new Option(\n\t\t\t\t\t\t\"\\tSets attribute/subset evaluator.\\n\"\n\t\t\t\t\t\t\t\t+ \"\\teg. -E \\\"weka.attributeSelection.CfsSubsetEval -L\\\"\",\n\t\t\t\t\t\t\"E\", 1,\n\t\t\t\t\t\t\"-E <\\\"Name of attribute/subset evaluation class [evaluator options]\\\">\"));\n\n\t\tif ((m_ASEvaluator != null) && (m_ASEvaluator instanceof OptionHandler)) {\n\t\t\tEnumeration enu = ((OptionHandler) m_ASEvaluator).listOptions();\n\n\t\t\tnewVector.addElement(new Option(\"\", \"\", 0, \"\\nOptions specific to \"\n\t\t\t\t\t+ \"evaluator \" + m_ASEvaluator.getClass().getName() + \":\"));\n\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\tnewVector.addElement((Option) enu.nextElement());\n\t\t\t}\n\t\t}\n\n\t\tif ((m_ASSearch != null) && (m_ASSearch instanceof OptionHandler)) {\n\t\t\tEnumeration enu = ((OptionHandler) m_ASSearch).listOptions();\n\n\t\t\tnewVector.addElement(new Option(\"\", \"\", 0, \"\\nOptions specific to \"\n\t\t\t\t\t+ \"search \" + m_ASSearch.getClass().getName() + \":\"));\n\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\tnewVector.addElement((Option) enu.nextElement());\n\t\t\t}\n\t\t}\n\t\treturn newVector.elements();\n\t}",
"private static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}",
"public void searchOptions()\n {\n System.out.println(\"\\n\\t\\t:::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| Select Options Below : |\");\n System.out.println(\"\\t\\t:::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| [1] Search by - Title |\");\n System.out.println(\"\\t\\t| [2] Search by - Directors |\");\n System.out.println(\"\\t\\t| [3] Back To Menu |\");\n System.out.println(\"\\t\\t=================================\");\n System.out.print(\"\\t\\t Input the option number : \"); \n }",
"public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }",
"public String[][] getOptions() {\r\n return options;\r\n }",
"private static void help() {\n\t\tSystem.out.println(\"\\n----------------------------------\");\n\t\tSystem.out.println(\"---Regatta Calculator Commands----\");\n\t\tSystem.out.println(\"----------------------------------\");\n\t\tSystem.out.println(\"addtype -- Adds a boat type and handicap to file. Format: name:lowHandicap:highHandicap\");\n\t\tSystem.out.println(\"format -- Provides a sample format for how input files should be arranged.\");\n\t\tSystem.out.println(\"help -- Lists every command that can be used to process regattas.\");\n\t\tSystem.out.println(\"podium -- Lists the results of the regatta, assuming one has been processed.\");\n\t\tSystem.out.println(\"regatta [inputfile] -- Accepts an input file as a parameter, this processes the regatta results outlined in the file.\");\n\t\tSystem.out.println(\"types -- lists every available boat type.\");\n\t\tSystem.out.println(\"write [outputfile] -- Takes the results of the regatta and writes them to the file passed as a parameter.\");\n\t\tSystem.out.println(\"----------------------------------\\n\");\n\t}",
"public String[] getOptions() {\n return m_Classifier.getOptions();\n }",
"public String showAll()\n {\n StringBuilder commandList = new StringBuilder();\n \n for(String command : validCommands.keySet()) \n {\n commandList.append( command + \" \" );\n } //for\n \n return commandList.toString();\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 void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }",
"Set<? extends Doclet.Option> getSupportedOptions();",
"public abstract IParser[] getParserOptionSet();",
"public void showOptions() {\n\t\tCIVLTable tbl_optionTable = (CIVLTable) getComponentByName(\"tbl_optionTable\");\n\t\tDefaultTableModel optionModel = (DefaultTableModel) tbl_optionTable\n\t\t\t\t.getModel();\n\n\t\tif (optionModel.getRowCount() != 0) {\n\t\t\toptionModel.setRowCount(0);\n\t\t\ttbl_optionTable.clearSelection();\n\t\t\ttbl_optionTable.revalidate();\n\t\t}\n\n\t\tGMCSection section = currConfig.getGmcConfig().getSection(\n\t\t\t\tGMCConfiguration.ANONYMOUS_SECTION);\n\t\tObject[] opts = currConfig.getGmcConfig().getOptions().toArray();\n\t\tCollection<Option> options = currConfig.getGmcConfig().getOptions();\n\t\tIterator<Option> iter_opt = options.iterator();\n\t\tList<Object> vals = new ArrayList<Object>();\n\n\t\twhile (iter_opt.hasNext()) {\n\t\t\tOption curr = iter_opt.next();\n\t\t\tvals.add(section.getValueOrDefault(curr));\n\t\t}\n\n\t\t// Sets all of the default-ize buttons\n\t\tnew ButtonColumn(tbl_optionTable, defaultize, 2);\n\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tOption currOpt = (Option) opts[i];\n\t\t\t/*\n\t\t\t * if (currOpt.name().equals(\"sysIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"sysIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t * \n\t\t\t * else if (currOpt.name().equals(\"userIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"userIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t */\n\t\t\t// else {\n\t\t\toptionModel\n\t\t\t\t\t.addRow(new Object[] { currOpt, vals.get(i), \"Default\" });\n\t\t\t// }\n\t\t}\n\t}",
"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 }",
"@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 }",
"public String getOptions() {\n return this.options;\n }",
"static void AddAndDisplay()\n\t{\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toSet = new TreeSet<String>();\n\t\t\toSet.add(\"Apple\");\n\t\t\toSet.add(\"Boy\");\n\t\t\toSet.add(\"Cat\");\n\t\t\toSet.add(\"Apple\");\n\t\t\tSystem.out.println(oSet);\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tfor(String s:oSet)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"for each loop: \"+s);\n\t\t\t}\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tIterator<String> it = oSet.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Iterator: \"+it.next());\n\t\t\t}\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\tSpliterator<String> sp = oSet.spliterator();\n\t\t\tsp.forEachRemaining(System.out::println);\n\t\t\tSystem.out.println(\"****************\");\n\t\t\t\n\t\t\toSet.forEach((k)->System.out.println(\"for each method: \"+k));\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}",
"@Override\n\tabstract protected List<String> getOptionsList();",
"public List<String> getOptionsNames();",
"public OptionsHandle getOptionsHandle() {\r\n\t\tOptionsHandle myOps = new OptionsHandle(this, 2);\r\n\t\tmyOps.addStringOption(\"dna\", \"atgc\",\r\n\t\t\t\t\"Alphabet used by the sequence.\");\r\n\t\tmyOps.addIntOption(\"order\", 0, \"Order of Markov Model\");\r\n\r\n\t\treturn myOps;\r\n\t}",
"private void printTestList()\n {\n print(\"\");\n print(SECTION_DIVIDER);\n print(\"Press <1> to Display Main Video Output Port\");\n print(\"Press <2> to Display All Video Output Configurations\");\n print(\"Press <3> to Change Main Video Configuration with Listener\");\n print(\"Press <INFO> Display Test Options\");\n }",
"public List<Pair<SqlIdentifier, SqlNode>> options() {\n return options(optionList);\n }",
"public void editOptions()\n {\n System.out.println(\"\\n\\t\\t:::::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| Select Options Below : |\");\n System.out.println(\"\\t\\t:::::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| [1] Modify Actors |\");\n System.out.println(\"\\t\\t| [2] Modify Rating |\");\n System.out.println(\"\\t\\t| [3] Modify Actors & Rating |\");\n System.out.println(\"\\t\\t| [4] Back To Menu |\");\n System.out.println(\"\\t\\t===================================\");\n System.out.print(\"\\t\\t Input the option number : \");\n }",
"public void createOptionsList() {\r\n int j;\r\n int i;\r\n String tempClassOptionsString = this.classOptionsString;\r\n while (tempClassOptionsString.length() > 0) {\r\n char cliChar = ' ';\r\n String optionValue = \"\";\r\n String str = \"\";\r\n tempClassOptionsString = tempClassOptionsString.trim();\r\n\r\n i = tempClassOptionsString.indexOf(\"-\");\r\n if (i >= 0) {\r\n cliChar = tempClassOptionsString.charAt(i + 1);\r\n tempClassOptionsString = tempClassOptionsString.substring(i + 2).trim();\r\n if (tempClassOptionsString.length() == 0) {\r\n optionValue = \"true\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else {\r\n if (tempClassOptionsString.charAt(0) == '-') {\r\n optionValue = \"true\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else if (tempClassOptionsString.charAt(0) == '(') {\r\n int openBracket = 0;\r\n int closeBracket = 0;\r\n StringBuffer temp = new StringBuffer(\"\");\r\n for (int k = 0; k < tempClassOptionsString.length(); k++) {\r\n char cTemp = tempClassOptionsString.charAt(k);\r\n temp.append(cTemp);\r\n switch (cTemp) {\r\n case '(': {\r\n openBracket += 1;\r\n break;\r\n }\r\n case ')': {\r\n closeBracket += 1;\r\n if (closeBracket == openBracket) {\r\n tempClassOptionsString = tempClassOptionsString.substring(k + 1).trim();\r\n optionValue = temp.toString().trim();\r\n optionValue = optionValue.substring(1, optionValue.length() - 1);\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassObjectOptions.add(optionPair);\r\n optionsString subObject = new optionsString(optionValue);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n\r\n\r\n } else {\r\n j = tempClassOptionsString.indexOf(\" \");\r\n if (j > 0) {\r\n optionValue = tempClassOptionsString.substring(0, j);\r\n tempClassOptionsString = tempClassOptionsString.substring(j + 1).trim();\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else {\r\n optionValue = tempClassOptionsString;\r\n tempClassOptionsString = \"\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n i = this.classFullName.lastIndexOf('.');\r\n if (i > 0) {\r\n this.classShortName = this.classFullName.substring(i + 1);\r\n } else\r\n this.classShortName = this.classFullName;\r\n }",
"public String optionToString() {\n return new StringBuffer().append(\"<\").append(base16.toString(this.data)).append(\">\").toString();\n }",
"@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }",
"@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 void printAnswerResults(){\n\t\tSystem.out.print(\"\\nCorrect Answer Set: \" + q.getCorrectAnswers().toString());\n\t\tSystem.out.print(\"\\nCorrect Answers: \"+correctAnswers+\n\t\t\t\t\t\t \"\\nWrong Answers: \"+wrongAnswers);\n\t}",
"public String toString()\n {\n DecimalFormat df = new DecimalFormat(\"#.00\");\n String words = getOptionName() + \": $\" + df.format(getOptionPrice()) + \".\";\n return words;\n }",
"public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }",
"private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }",
"public static void showCommandLineOptions() {\n showCommandLineOptions(new TextUICommandLine());\n }",
"public InfoOptions() {\n\t\tHelpOpt = new ArrayList<String>();\n\t\tDisplayOpt = new ArrayList<String>();\n\t\tNoteOpt = new ArrayList<String>();\n\t\tDelOpt = new ArrayList<String>();\n\t\tChangeNameOpt = new ArrayList<String>();\n\t\tsetDisplay();\n\t\tsetHelp();\n\t\tsetNote();\n\t\tsetDel();\n\t\tsetChangeName();\n\t}",
"private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }",
"private void printOptionsForPlaylist() {\n System.out.println(\"\\n\\t0. Return to main menu \\n\\t1. print Options For Playlist \\n\\t2. Skip forward (next song) \\n\\t3. skip backwards (previous song)\" +\n \"\\n\\t4. removing song in playlist\" + \" \\n\\t5. repeat the current song\" + \" \\n\\t6. current song played\"\n + \" \\n\\t7. show list songs of playlist \");\n }",
"private static void displayUsage() {\n System.out.println(\"\\n MEKeyTool argument combinations:\\n\\n\" +\n \" -help\\n\" +\n \" -import [-MEkeystore <filename>] \" +\n \"[-keystore <filename>]\\n\" +\n \" [-storepass <password>] -alias <key alias> \" +\n \"[-domain <domain>]\\n\" +\n \" -list [-MEkeystore <filename>]\\n\" +\n \" -delete [-MEkeystore <filename>]\\n\" +\n \" (-owner <owner name> | -number <key number>)\\n\" +\n \"\\n\" +\n \" The default for -MEkeystore is \\\"\" + \n System.getProperty(DEFAULT_MEKEYSTORE_PROPERTY, \"appdb/_main.ks\") +\n \"\\\".\\n\" +\n \" The default for -keystore is \\\"\" + \n System.getProperty(DEFAULT_KEYSTORE_PROPERTY, \"$HOME/.keystore\") + \n \"\\\".\\n\");\n }",
"private String addOptions() {\n\t\tStringBuilder tag = new StringBuilder();\n\t\tint OptionsNumber = Integer.parseInt(parameters[0]);\n\t\t// Nine Parameters: OptionsNumber, Option1, Option1Tag, Option2, Option2Tag, Option3, Option3Tag, Option4, Option4Tag\n\t\t// Minimum Three Parameters, Maximum Nine\n\t\t// If OptionsNumber = 1, Use Option1 and Option1Tag only. If OptionsNumber = 2, Use Option1 and Option2.\n\t\ttag.append(\"options:[\");\n\t\ttag.append(\"[\" + parameters[1] + \"|\" + parameters[2] + \"]\");\n\t\tif (OptionsNumber > 1) {\n\t\t\ttag.append(\", [\" + parameters[3] + \"|\" + parameters[4] + \"]\");\n\t\t}\n\t\tif (OptionsNumber > 2) {\n\t\t\ttag.append(\", [\" + parameters[5] + \"|\" + parameters[6] + \"]\");\n\t\t}\n\t\tif (OptionsNumber > 3) {\n\t\t\ttag.append(\", [\" + parameters[7] + \"|\" + parameters[8] + \"]\");\n\t\t}\n\t\ttag.append(\"]\");\n\t\treturn tag.toString();\n\n\t}",
"private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}",
"public String toString(){\n StringBuffer szBuf = new StringBuffer();\n Iterator<String> iter;\n String key;\n ChoiceEntry entry;\n \n iter = getEntriesName().iterator();\n while(iter.hasNext()){\n key = iter.next().toString();\n entry = getEntry(key);\n szBuf.append(entry.getStringRepr());\n if (entry.getKey().equals(_default)){\n szBuf.append(\" (Default)\");\n }\n if (iter.hasNext())\n szBuf.append(\"\\n\");\n }\n return szBuf.toString();\n }",
"@Override\n public void display()\n {\n // Display the question text\n super.display();\n int choiceNumber = 0;\n // Display the answer choices\n for (int i = 0; i < m_choices.size(); i++) {\n choiceNumber = i + 1;\n System.out.println(choiceNumber + \": \" + m_choices.get(i));\n }\n }",
"public List<HelpOption> getOptions() {\n\n return byShortName.values().stream().flatMap(list -> {\n\n Stream<HelpOption> options = list.stream();\n\n // suppress short options if 2 or more long options resolve into a single short opt.\n // although if one of those options is 1 char long, it can be exposed as a short option...\n if (list.size() > 1) {\n\n boolean[] shortCounter = new boolean[1];\n\n options = options.map(o -> {\n\n if (o.isLongNameAllowed()) {\n o.setShortNameAllowed(false);\n } else if (shortCounter[0]) {\n throw new IllegalStateException(\"Conflicting short option name: \" + o.getOption().getShortName());\n } else {\n shortCounter[0] = true;\n }\n\n return o;\n });\n }\n\n return options;\n }).sorted().collect(Collectors.toList());\n }",
"public void printArgsInterpretation() {\n StringBuilder usage = new StringBuilder();\n usage.append(\"You launched the CuratorClient with the following options:\");\n usage.append(\"\\n\");\n usage.append(\"\\tCurator host: \");\n usage.append(host);\n usage.append(\"\\n\");\n usage.append(\"\\tCurator port: \");\n usage.append(port);\n usage.append(\"\\n\");\n usage.append(\"\\tInput directory: \");\n usage.append(inputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tOutput directory: \");\n usage.append(outputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tRun in testing mode? \");\n usage.append(testing ? \"Yes.\" : \"No.\");\n usage.append(\"\\n\");\n\n System.out.println( usage.toString() );\n }",
"private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }"
] | [
"0.7044403",
"0.6836197",
"0.6722294",
"0.66514736",
"0.6627525",
"0.6586997",
"0.6558239",
"0.6404346",
"0.63907087",
"0.63658655",
"0.6344432",
"0.62969303",
"0.6282447",
"0.62789416",
"0.6272679",
"0.6272137",
"0.62332183",
"0.6140053",
"0.6129521",
"0.61127377",
"0.60342765",
"0.6022229",
"0.60142016",
"0.5989836",
"0.5964765",
"0.5949255",
"0.5941748",
"0.58810747",
"0.58752006",
"0.5868838",
"0.5837937",
"0.5829678",
"0.5789126",
"0.5778137",
"0.5773942",
"0.57726717",
"0.57722706",
"0.5762893",
"0.5752503",
"0.573505",
"0.57160753",
"0.57061565",
"0.56994325",
"0.5693633",
"0.56749153",
"0.567453",
"0.5670086",
"0.56461954",
"0.5631996",
"0.5626293",
"0.56202227",
"0.5617925",
"0.56101304",
"0.56056625",
"0.5603201",
"0.5589671",
"0.5579327",
"0.55702853",
"0.55573034",
"0.55534846",
"0.5536455",
"0.5530606",
"0.55241656",
"0.55174834",
"0.55159795",
"0.5515723",
"0.5512798",
"0.5498144",
"0.5495829",
"0.5479397",
"0.547099",
"0.54694563",
"0.54619974",
"0.5454987",
"0.54538465",
"0.5440483",
"0.5439502",
"0.54363465",
"0.54251087",
"0.5424119",
"0.5421682",
"0.5415126",
"0.54116917",
"0.54012173",
"0.53993356",
"0.53938717",
"0.53780353",
"0.53704804",
"0.5361357",
"0.5359494",
"0.5357967",
"0.5357154",
"0.53563404",
"0.5349924",
"0.53435475",
"0.5343511",
"0.5341262",
"0.53305835",
"0.53255785",
"0.5320986"
] | 0.58911324 | 27 |
Verifies that the specified name is valid for our service. In this example, we only require that the name is at least four characters. In your application, you can use more complex checks to ensure that usernames, passwords, email addresses, URLs, and other fields have the proper syntax. | public static boolean isValidName(String name) {
if (name == null) {
return false;
}
return name.length() > 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isNameValid(String name) {\n\n }",
"@Test\n public void testIsValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"toto\";\n boolean result = service.isValidName(name);\n assertEquals(true, result);\n }",
"public boolean checkName(String name)\n {\n boolean value = true;\n if(name.length() < 3 || name.length() > 15)\n {\n System.out.println(\"Name must be between 3 and 15 characters\");\n value = false;\n }\n return value;\n }",
"public static boolean validateName(String name){\n return name.matches(NAME_PATTERN);\n }",
"public boolean checkName(String name)\n {\n return true;\n }",
"public boolean isValidName(String proposedName);",
"public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n if ( (name == null) ||\r\n (name.equals(\"\")) ||\r\n Character.isUpperCase(name.charAt(0)) ||\r\n containsSubString(name, TIGHT_BINDING) ||\r\n containsSubString(name, LOOSE_BINDING) ||\r\n containsSubString(name, SINGLE_MATCH) ||\r\n containsSubString(name, \"/\") ||\r\n containsSubString(name, \" \") ||\r\n containsSubString(name, \"\\t\") ||\r\n containsSubString(name, \"\\n\") ||\r\n name.equals(UNIQUE_NAME) )\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n }",
"private static boolean nameIsValid(String name) {\n if (name.length() < 4 || name.length() > 11)\n return false;\n\n for (int i = 0; i < name.length(); i++) {\n int charIndex = name.charAt(i);\n\n // Each character can only be a letter or number\n if (charIndex < 48 || (charIndex > 57 && charIndex < 65) || (charIndex > 90 && charIndex < 97) || charIndex > 122)\n return false;\n }\n\n return true;\n }",
"private void validate(String name) {\r\n /*\r\n Check to make sure that name is not blank and as a size of at least three characters and does not contain any spaces\r\n constant for min username chars.\r\n */\r\n final int MIN_USERNAME_CHARS = 3;\r\n if (name.isEmpty() || name.length() < MIN_USERNAME_CHARS || name.contains(\" \")) {\r\n // if so, show error message box\r\n showError(\"You must have a name at least \" + MIN_USERNAME_CHARS + \" characters long and have no spaces.\", \"Error\");\r\n } else {\r\n // set the host name\r\n Preferences.getInstance().setHostName(name);\r\n Preferences.getInstance().save();\r\n // close the window\r\n close();\r\n }\r\n }",
"public static boolean isNameValid(Context context, String name) {\n if (name.isEmpty()) {\n Toast.makeText(context, \"Name field cannot be empty\", Toast.LENGTH_LONG);\n return false;\n }\n return true;\n }",
"private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }",
"public static boolean isValid(String name) {\n\t\tif ((name == null) || name.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean nameValidation(String name) {\n\t char[] chars = name.toCharArray();\n\t int tempNum = 0;\n\t for (char c : chars) {\n\t tempNum += 1;\n\t \tif(!Character.isLetter(c)) {\n\t return false;\n\t }\n\t }\n\t if (tempNum == 0)\n\t \treturn false;\n\n\t return true;\n\t}",
"public boolean isValidName(String name) {\n\t\tif (name == null)\n\t\t\treturn false;\n\t\tif (name.matches(\".*[A-Z].*[a-zA-Z0-9]\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public static boolean isValidName(String name) {\n if (name.matches(pattern)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean validateName(String name)\n\t{\n\n\t\tif (name.matches(\"[a-zA-Z]+\"))\n\n\t\t\treturn true;\n\n\t\tmyName = DEFAULT_NAME;\n\t\treturn false;\n\t}",
"@Test\n public void testIsEmptyValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = \"\";\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }",
"public static boolean isNameValid(String name) {\r\n return name.matches(\"^[a-zA-Z ]+$\");\r\n }",
"public boolean validateUserName(String name)\n\t{\n\t\tif (username.getText().length() < MIN_USERNAME_LENGTH)\n\t\t{\n\t\t\tsetWarning(\"username too short\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!name.matches(\"^[a-zA-Z0-9]*$\"))\n\t\t{\n\t\t\tsetWarning(\"invalid username\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean isValidName(String name) {\r\n\t\treturn (name != null && name.matches(\"[a-zA-Z_0-9.-]+\"));\r\n\t}",
"public boolean isValidName(TextInputLayout tiName, EditText etName) {\n String name = etName.getText().toString().trim();\n boolean result = false;\n\n if (name.length() == 0)\n tiName.setError(c.getString(R.string.required));\n else if (name.length() < NAME_MIN_SIZE)\n tiName.setError(c.getString(R.string.minLength, Integer.toString(NAME_MIN_SIZE)));\n else if (name.length() > NAME_MAX_SIZE)\n tiName.setError(c.getString(R.string.maxLength, Integer.toString(NAME_MAX_SIZE)));\n else {\n result = true;\n tiName.setError(null);\n }\n return result;\n }",
"private static boolean validName(String name) {\n return name != null && !name.strip().isBlank();\n }",
"public void validateUserName(String name) {\n\t\ttry {\n\t\t\tAssert.assertTrue(userName.getText().equalsIgnoreCase(\"Hi \"+name),\"Username is correctly displayed\");\n\t\t\tLog.addMessage(\"Username correctly displayed\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Validation of User Login is failed\");\n\t\t\tLog.addMessage(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to validate User Login\");\n\t\t}\n\t}",
"public Future<Boolean> isValidName(String name) {\n Promise<Boolean> promise = Promise.promise();\n if (Pattern.compile(APP_NAME_REGEX).matcher(name).matches()) {\n promise.complete(true);\n } else {\n LOGGER.error(MSG_INVALID_NAME + name);\n promise.fail(MSG_INVALID_NAME);\n }\n return promise.future();\n }",
"boolean isNameRequired();",
"private void checkNameValidation(String name) throws noStudentNameException{\n\t\tif (name.isEmpty()){\n\t\t\tthrow new noStudentNameException(\"Student Name Cannot be Empty!\");\n\t\t}\n\t}",
"@Override\n\tpublic void validateUserName(String name) throws UserException {\n\t\t\n\t}",
"private static boolean isValidRegattaName(String name) {\n\t\tif(name.length() == 0) {\n\t\t\tSystem.out.println(\"\\nRegatta names must be atleast one character!\"); \n\t\t\treturn false;\n\t\t}\n\n\t\tif(name.indexOf('.') == -1 && name.length() != 0) return true;\n\t\telse {\n\t\t\tSystem.out.println(\"\\nRegatta names cannot have \\'.\\' in them!\"); \n\t\t\treturn false;\n\t\t}\n\t}",
"private static Exception assertInvalidStrictName(String name) {\n try {\n Model.validateStrictName(name);\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\"Invalid name [\" + name + \"]\"));\n return e;\n }\n return new Exception(\"failure expected\");\n }",
"public static boolean validateName(String name) throws EmptyFieldException, InvalidNameException {\r\n\t\tboolean isValid = false;\r\n\t\tif (!name.trim().isEmpty()) {\r\n\t\t\tisValid = checkName(name);\r\n\t\t} else {\r\n\t\t\tthrow new EmptyFieldException(\"empty field\");\r\n\t\t}\r\n\r\n\t\treturn isValid;\r\n\t}",
"private boolean checkName(String name) {\n if (!name.equals(\"\")) {\n //Check si le nom est déjà utilisé\n return myDbA.checkName(name);\n }\n return false;\n }",
"private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}",
"public String nameCheck(String name) {\n\t\twhile(true) {\n\t\t\tif(Pattern.matches(\"[A-Z][a-z]{3,10}\", name)){\n\t\t\t\treturn name;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Name should have first capital alphabet and rest small alphabets.\");\n\t\t\t\tSystem.out.println(\"Enter again: \");\n\t\t\t\tname = sc.next();\n\t\t\t}\n\t\t}\n\t}",
"public static boolean checkName(String name) {\n\t\tMatcher matcher = NAME_PATTERN.matcher(name);\n\t\treturn matcher.find();\n\t}",
"@Test\n public void testIsNullValidName() {\n FieldVerifier service = new FieldVerifier();\n String name = null;\n boolean result = service.isValidName(name);\n assertEquals(false, result);\n }",
"public static boolean isValid(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name is missing\");\n }\n\n boolean slash = false;\n for (int i = 0; i < name.length(); i++) {\n char ch = name.charAt(i);\n if (ch <= ' ' || ch >= 127 || ch == '(' || ch == ')' || ch == '<' || ch == '>' ||\n ch == '@' || ch == ',' || ch == ';' || ch == ':' || ch == '\\\\' || ch == '\"' ||\n ch == '[' || ch == ']' || ch == '?' || ch == '=') {\n return false;\n } else if (ch == '/') {\n if (slash || i == 0 || i + 1 == name.length()) {\n return false;\n }\n slash = true;\n }\n }\n return slash;\n }",
"public boolean nameValidation(String username){\n return !(username.isEmpty() || !username.matches(\"[a-zA-Z0-9_-]+\"));\n }",
"public static boolean isValidName(String name) {\n if (name.length() == 0)\n return false;\n char ch = name.charAt(0);\n if( isNameStart(ch) == false)\n return false;\n for (int i = 1; i < name.length(); i++ ) {\n ch = name.charAt(i);\n if( isName( ch ) == false ){\n return false;\n }\n }\n return true;\n }",
"private void validateSubscriptionName(String subscriptionName) throws SubscriptionValidationException {\n String regex = \"^[A-Za-z0-9_]+$\";\n if (subscriptionName == null) {\n throw new SubscriptionValidationException(\"Required field SubscriptionName has not been set\");\n } else if (!Pattern.matches(regex, subscriptionName)) {\n throw new SubscriptionValidationException(\"Wrong format of SubscriptionName: \" + subscriptionName);\n }\n }",
"public static boolean isNameValid(String string) {\n if (isBlankOrNull(string)) return false;\n if (string.length() > 45) return false;\n\n return string.matches(\"[a-zA-Z0-9]*\");\n }",
"@Test\n\tpublic void caseNameWithCorrectInput() {\n\t\tString caseName = \"led case\";\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.stringUtil(caseName);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (StringException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"public static boolean isValidNameFormat( String source )\n {\n int minNameLength = 3;\n\n return (source != null) && (source.length() >= minNameLength);\n }",
"public boolean nameIsValid() {\n return bikeName.length() > 0 && bikeName.length() < MAX_TITLE_LENGTH;\n }",
"boolean validate(String name, String email, String password)\n {\n //Check if the name is empty and password field is 8 characters long, also including email check\n if(name.isEmpty() || !rfc2822.matcher(email).matches() || (password.length() < 8))\n {\n Toast.makeText(this, \"Please enter your name and email. Ensure password is more than 8 characters long!\", Toast.LENGTH_SHORT).show();\n\n //reset TextEdits\n eRegName.setText(null);\n eRegEmail.setText(null);\n eRegPassword.setText(null);\n\n return false;\n }\n return true;\n }",
"static public boolean validateName(String proposedName, boolean allowSpace)\n {\n Pattern p;\n if (allowSpace)\n p = Pattern.compile(\"[A-Z][A-Z0-9_. -]*\", Pattern.CASE_INSENSITIVE);\n else\n p = Pattern.compile(\"[A-Z][A-Z0-9_.-]*\", Pattern.CASE_INSENSITIVE);\n \n return (p.matcher(proposedName).matches());\n\n }",
"@Override\r\n public boolean validarNombre(String nombre) throws ServiceException {\n if (validarNombreNoNulo(nombre)) {\r\n // Se verifica la longitud del nombre\r\n int longitud = StringUtils.length(nombre);\r\n if (longitud < 5 || longitud > 20) {\r\n throw new ServiceException(\"consultorio.service.error.1204\", locale);\r\n }\r\n // Se verifica que el nombre sea alfabético numérico\r\n if (!StringUtils.isAlphanumericSpace(nombre)) {\r\n throw new ServiceException(\"consultorio.service.error.1205\", locale);\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n\t\tvoid givenLasrName_CheckForValidationForLName_ReturnTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"More\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}",
"public static boolean checkName(String name) {\r\n\t\tboolean result = false;\r\n\t\tif (check(name) && name.matches(CommandParameter.REG_EXP_NAME)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Test\n\tpublic void caseNameWithWrongLength() {\n\t\tString caseName = \"le\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t\tfail();\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}",
"public static int is_legal(String name, int length)\n\t{\n\t\tif (first_lg(name[0]) == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif (illegal_sym(name, length) == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}",
"public void validateNameField() {\n\t\tif (nameField.getText().length() > 0) {\n\t\t\ttimeToPick.setEnabled(true);\n\t\t\tif (nameField.getText().length() > 24) {\n\t\t\t\tnameField.setText(nameField.getText().substring(0, 24));\n\t\t\t}\n\t\t\ttimeToPick.putClientProperty(\"playerName\", nameField.getText());\n\t\t} else {\n\t\t\ttimeToPick.setEnabled(false);\n\t\t}\n\t}",
"static public boolean isSanitaryName(String name) {\n return sanitizeName(name).equals(name);\n }",
"@Test\r\n\tpublic void testNameValid() {\r\n\t\tassertTrue(Activity5Query.isNameCorrect(\"JANE\"));\r\n\t\tassertTrue(Activity5Query.isNameCorrect(\"John\"));\r\n\t\tassertTrue(Activity5Query.isNameCorrect(\"Mary\"));\r\n\t\tassertTrue(Activity5Query.isNameCorrect(\" Kurisu\"));\r\n\t\tassertTrue(Activity5Query.isNameCorrect(\"Bond \"));\r\n\t}",
"public static void isValidNameOnCreditCard(String userInput) {\n\t\tif (!userInput.matches(\"^(?!.* )[a-zA-Z ]+$\")) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter your name as it appears on the card. Please try again:\");\n\t\t}\n\t}",
"private boolean isValidInput(String Name, String Email, String Password, String ConfirmationPassword) {\n\n String regex = \"^(.+)@(.+)$\";\n\n Pattern pattern = Pattern.compile(regex);\n\n Matcher matcher = pattern.matcher(Email);\n\n if (Name == null || Name.equals(\"\") || Name.equals(\" \") ||\n !matcher.matches() ||\n Password == null || Password.equals(\"\") ||\n ConfirmationPassword == null || !ConfirmationPassword.equals(Password)) {\n return false;\n }\n return true;\n }",
"public String nameValidate() {\r\n String regex = \"[a-zA-Z]{1,10}\";\r\n\r\n // create user input\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n while (true) {\r\n System.out.print(\"Enter the name: \");\r\n String input = scanner.nextLine();\r\n // check if user enter a string between 1-10\r\n if (input.matches(regex)) {\r\n return input;\r\n } else {\r\n System.out.println(\"Please enter a correct name, name's length should between 1 and 10.\");\r\n }\r\n }\r\n\r\n }",
"public static boolean isValidCategoryName(String name, TextInputLayout layout, Context context){\n\n if(name.length() >= 4){\n if(name.length() <= 20){\n return true;\n }else {\n layout.setError(context.getString(R.string.error_value_long));\n return false;\n }\n }else {\n layout.setError(context.getString(R.string.error_value_short));\n return false;\n }\n\n }",
"public void validateName(Player player) {\n String originalName = player.name;\n player.name = Text.cleanName(player.name);\n if (!originalName.equals(player.name) || player.name.length() > config.maxNameLength) {\n //name cannot be blank so then replace it with some random name\n if (player.name.replace(\" \", \"\").isEmpty()) {\n player.name = pickFreeName();\n }\n }\n }",
"@Override\n\tpublic boolean isValid(String name, ConstraintValidatorContext arg1) {\n\t\tSystem.out.println(\"自定义注解校验:\"+name);\n\t\tif(name.length()<=maxLen&&name.length()>=minLen){\n\t\t\tSystem.out.println(\"自定义注解校验通过:\"+name);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean checkName (String name){\r\n \r\n // Use for loop to check each character\r\n for (int i = 0; i < name.length(); i++) {\r\n // If character is below 'A' in Unicode table then return false\r\n if (name.charAt(i) < 65 && name.charAt(i) != 32 && name.charAt(i) != 10){\r\n return false;\r\n }\r\n // Else if character is between 'Z' and 'a' in unicode table,\r\n // then return false\r\n else if (name.charAt(i) > 90 && name.charAt(i) < 97){\r\n return false;\r\n }\r\n else if (name.charAt(i) > 122)\r\n return false;\r\n }\r\n return true;\r\n }",
"private void validationNom(String nameGroup) throws FormValidationException {\n\t\tif (nameGroup != null && nameGroup.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le nom exist pas ds la bdd\n\t\t// else if (){\n\t\t//\n\t\t// }\n\t}",
"@Test\r\n\tpublic void testNameInvalid() {\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"*\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"0-\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"324tggs\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"-feioj\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"/\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\"@\"));\r\n\t\tassertFalse(Activity5Query.isNameCorrect(\" \"));\r\n\t}",
"public InputValidator validateName_v() {\r\n \t\treturn new InputValidator(new InputValidator.CustomValidator() {\r\n \t\t\t@Override\r\n \t\t\tpublic boolean validate(String originalValue, String proposedValue) {\r\n \t\t\t\tif (! proposedValue.matches(\"[a-zA-Z_][-a-zA-Z0-9_.]*\"))\r\n \t\t\t\t\treturn false;\t// not a decent name\r\n \t\t\t\tif (proposedValue.equals(originalValue))\r\n \t\t\t\t\treturn true;\t// current name is OK\r\n \t\t\t\t// Anything else must be unique among the node names\r\n \t\t\t\treturn network.lookupNode(proposedValue, false) == null;\r\n \t\t\t}\r\n \t\t});\r\n \t}",
"public void checkUserDetails(String aName, double aSpeed) {\n\t\tif (!checkName(aName)) {\n\t\t\tthrow new IllegalArgumentException(\"Name is empty.\");\n\t\t}\n\t}",
"@Test\n\t\tpublic void givenFirstLetterSmall_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"priya\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}",
"public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }",
"@Test\n public void testInvalidUsernameLessThan4Characters() {\n username = username.substring(0, 3);\n assert username.length() <= 3;\n registerUser(username, password);\n assertNull(userService.getUser(username));\n }",
"public boolean validateFilmName(String filmName) {\n Pattern pattern = Pattern.compile(FILM_NAME_REGEX);\n Matcher matcher = pattern.matcher(filmName);\n boolean isCorrect = matcher.matches();\n if (!isCorrect) {\n errorMessage.add(RequestParameterName.WRONG_FILM_NAME_VALUE);\n }\n return isCorrect;\n }",
"private boolean validParams(String name, String company) {\n\t\treturn (name != null && !name.trim().equals(\"\")) \n\t\t\t\t&& (company != null && !company.trim().equals(\"\"));\n\t}",
"public static boolean isValidUserDefinedDatabaseName(String name) {\n boolean matchHit = letterFirstPattern.matcher(name).matches();\n // TODO: uppercase is bad...\n boolean reserveHit =\n Collections.binarySearch(reservedNamesSortedList, name.toUpperCase(Locale.US)) >= 0;\n return !reserveHit && matchHit;\n }",
"public static boolean isAlphapetic(String userInput) {\n return Pattern.matches(Constants.NAME_VALIDATION, userInput);\n }",
"public static void checkMinLength(String name, int minLength) throws MinSizeExceededException{\n \n if(name.length()<minLength) throw new MinSizeExceededException(\"Length of name is too short! MinLength=\" + minLength + \", ActualLength=\" + name.length());\n }",
"public boolean verifyFastName(String FastName)\r\n {\r\n FastName = FastName.trim();\r\n\r\n if(FastName == null || FastName.isEmpty() || !FastName.matches(\"[a-zA-Z]*\"))\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }",
"private void validateFirstNameInput(String firstName) {\n\t\t\n\t\tif(Objects.isNull(firstName) || firstName.length() < 3) {\n\t\t\tthrow new FirstNameIsNotInExpectedFormat(firstName);\n\t\t}\n\t\t\n\t}",
"public boolean checkName(String name,JTextField t)\n\t{\n\t\tboolean number=true;\t\t \n\t\tboolean result=true;\n\t\ttry \n\t\t{\n\t\t\tDouble num=Double.parseDouble(name); //if s contains sting then it will not be parse and it will throw exception\t\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tnumber=false;\n\t\t}\t\n\t\tif(number==true)\n\t\t{\n\t\t\t//it is a number\n\t\t\tresult=false;\n\t\t}\n\t\telse if(number==false) //it is a String\n\t\t{\n\t\t\tif(name.length()>2)\n\t\t\t{\n\t\t\t\tchar[] chars=name.toCharArray();\n\t\t\t\tfor(char c : chars)\n\t\t\t\t{\n\t\t\t\t\tif(Character.isLetter(c))\n\t\t\t\t\t{\tresult=true;\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\tresult=false;\n\t\t\t\t\t\tbreak;\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(name.length()<=2)\n\t\t\t{\t\tresult=false;\t\t}\t\n\t\t}\n\t\treturn result;\n}",
"public void testvalidateUserName0001()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"usrnm\"));\n\t}",
"public static boolean isValidName(String test) {\n assert test != null;\n return test.matches(VALIDATION_REGEX);\n }",
"@Test\n\t\tpublic void givenTwoLetters_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"Pr\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}",
"public boolean validateFirstNameLength() {\n if (firstName.length() < 2) {\n return false;\n }\n return true;\n }",
"boolean validateFirstName(String First_name) {\n\t\treturn true;\n\n\t}",
"public boolean validateFirstName() {\n\t\treturn this.getFirstName().length() > 0 && this.getFirstName().length() <= 20;\n\t}",
"@Test\r\n\tpublic void testUserNameEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(\"\");\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"UserName_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}",
"protected boolean isVmNameValidLength(VM vm) {\n\n // get VM name\n String vmName = vm.getvm_name();\n\n // get the max VM name (configuration parameter)\n int maxVmNameLengthWindows = Config.<Integer> GetValue(ConfigValues.MaxVmNameLengthWindows);\n int maxVmNameLengthNonWindows = Config.<Integer> GetValue(ConfigValues.MaxVmNameLengthNonWindows);\n\n // names are allowed different lengths in Windows and non-Windows OSs,\n // consider this when setting the max length.\n int maxLength = vm.getvm_os().isWindows() ? maxVmNameLengthWindows : maxVmNameLengthNonWindows;\n\n // check if name is longer than allowed name\n boolean nameLengthValid = (vmName.length() <= maxLength);\n\n // return result\n return nameLengthValid;\n }",
"private static boolean isValidFileName(String name) {\n\t\tif(name.indexOf('.') != -1 && name.length() != 0) return true;\n\t\telse System.out.println(\"\\nFilenames must include the file's extension.\"); return false;\n\t}",
"static void validateHeaderName(String headerName) {\n //Check to see if the name is null\n if (headerName == null) {\n throw new NullPointerException(\"Header names cannot be null\");\n }\n //Go through each of the characters in the name\n for (int index = 0; index < headerName.length(); index++) {\n //Actually get the character\n char character = headerName.charAt(index);\n\n //Check to see if the character is not an ASCII character\n if (character > 127) {\n throw new IllegalArgumentException(\n \"Header name cannot contain non-ASCII characters: \" + headerName);\n }\n\n //Check for prohibited characters.\n switch (character) {\n case '\\t':\n case '\\n':\n case 0x0b:\n case '\\f':\n case '\\r':\n case ' ':\n case ',':\n case ';':\n case '=':\n throw new IllegalArgumentException(\n \"Header name cannot contain the following prohibited characters: \"\n + \"=,;: \\\\t\\\\r\\\\n\\\\v\\\\f: \" + headerName);\n default:\n }\n }\n }",
"static public String checkName(String origName) {\n String newName = sanitizeName(origName);\n\n if (!newName.equals(origName)) {\n String msg =\n _(\"The sketch name had to be modified. Sketch names can only consist\\n\" +\n \"of ASCII characters and numbers (but cannot start with a number).\\n\" +\n \"They should also be less than 64 characters long.\");\n System.out.println(msg);\n }\n return newName;\n }",
"private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"private boolean validateName() {\n if (mStudName.getText().toString().trim().isEmpty()) {\n requestFocus(mStudName);\n return false;\n }\n return true;\n }",
"private Boolean isValidUsername(String username){\n return (username != null) && (username.length() >= 5 && username.length() <= 16);\n }",
"@Test\n\tvoid valid() {\n\t\tnew DistinguishNameValidator().initialize(null);\n\n\t\t// Real tests\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(null, null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"0dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\"dc=sample,dc=com\", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = A , dc=sample,dc =com \", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = 3s34 , dc=sample,dc =com \", null));\n\t\tAssertions.assertTrue(new DistinguishNameValidator().isValid(\" ou = À:éè ù , dc=g-üfì,dc =com \", null));\n\t}",
"public Boolean comprovaName(String name) {\n\t\treturn (rv.validateName(name));\n\t}",
"public static boolean alphanumericCheck(String name)\r\n\t{\r\n\t\treturn name.matches(\"^[a-zA-Z0-9]*$\");\r\n\t}",
"@Test\n public void testFirstNameMinLength() {\n owner.setFirstName(\"T\");\n assertInvalid(owner, \"firstName\", \"First name must be between 2 and 20 characters\", \"T\");\n }",
"@Test\n\t\tvoid givenTwoSmalls_CheckForValidationForLName_RetrunFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"more\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}",
"public static void checkDatasetName(String namespace, String name) {\n Preconditions.checkNotNull(namespace, \"Namespace cannot be null\");\n Preconditions.checkNotNull(name, \"Dataset name cannot be null\");\n ValidationException.check(Compatibility.isCompatibleName(namespace),\n \"Namespace %s is not alphanumeric (plus '_')\",\n namespace);\n ValidationException.check(Compatibility.isCompatibleName(name),\n \"Dataset name %s is not alphanumeric (plus '_')\",\n name);\n }",
"public static boolean isValidXmlElementName(String name) {\n return REGEX_VALID_XML_ELEMENT_NAME.matcher(name).matches();\n }",
"public static String userNameValid(String name){\n return \"select u_name from users having u_name = '\" + name + \"'\";\n }",
"protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }",
"private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }",
"public static boolean isValidName(String str) {\n if (str != null && str.trim().equals(str) && str.matches(\"^[a-zA-Z ]*$\")){\n return true;\n }\n\n return false;\n }"
] | [
"0.7921179",
"0.76718235",
"0.75716907",
"0.7429845",
"0.7283936",
"0.72704184",
"0.7255382",
"0.7213237",
"0.72116804",
"0.7118933",
"0.71181417",
"0.7083828",
"0.70668733",
"0.7045413",
"0.7005096",
"0.69938505",
"0.696393",
"0.6949358",
"0.694653",
"0.6867807",
"0.68573266",
"0.6845714",
"0.68426436",
"0.68241924",
"0.6801235",
"0.6786425",
"0.671364",
"0.66689676",
"0.660308",
"0.65948427",
"0.65896696",
"0.6588447",
"0.65674144",
"0.6566012",
"0.6553777",
"0.65473825",
"0.6497564",
"0.640085",
"0.6398128",
"0.6396525",
"0.6396084",
"0.6378401",
"0.6359467",
"0.63526183",
"0.6331791",
"0.6323457",
"0.63221943",
"0.6289011",
"0.62547225",
"0.62150717",
"0.6214882",
"0.62036496",
"0.6189792",
"0.6170447",
"0.6166179",
"0.6142445",
"0.61409134",
"0.61389524",
"0.61285394",
"0.61176056",
"0.61167616",
"0.61106515",
"0.6088239",
"0.60697174",
"0.6051186",
"0.6040776",
"0.60398334",
"0.6029374",
"0.6011497",
"0.6007526",
"0.6006878",
"0.5986056",
"0.5985829",
"0.598103",
"0.59735",
"0.5939287",
"0.5908118",
"0.5899491",
"0.5899028",
"0.5896486",
"0.58868784",
"0.588573",
"0.58725345",
"0.5866856",
"0.585953",
"0.58582306",
"0.5855508",
"0.5851422",
"0.5847369",
"0.58393484",
"0.58224803",
"0.5810175",
"0.5806775",
"0.5799943",
"0.5796652",
"0.57696354",
"0.5764378",
"0.57593536",
"0.5754214",
"0.57517225"
] | 0.7464309 | 3 |
POST /costoservicios : Create a new costoServicio. | @PostMapping("/costo-servicios")
@Timed
public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {
log.debug("REST request to save CostoServicio : {}", costoServicioDTO);
if (costoServicioDTO.getId() != null) {
throw new BadRequestAlertException("A new costoServicio cannot already have an ID", ENTITY_NAME, "idexists");
}
CostoServicioDTO result = costoServicioService.save(costoServicioDTO);
return ResponseEntity.created(new URI("/api/costo-servicios/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Servicio insertServicio(String nombre_servicio,\n String descripcion_servicio, \n String nombre_tipo_servicio){\n \n /*Se definen valores para servicio y se agrega a la base de datos*/\n Servicio miServicio = new Servicio(nombre_servicio, \n descripcion_servicio,\n nombre_tipo_servicio);\n try {\n miServicio.registrarServicio();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miServicio;\n }",
"public static ServicioAdicional insertServicioAdicional(String nombre_servicio,\n String descripcion_servicio,\n String nombre_tipo_servicio,\n float tarifa_serv_adicional,\n int cantidad_serv_adicional,\n String tipo_plan_serv_adicional){\n \n ServicioAdicional miServAdicional = new ServicioAdicional(nombre_servicio,\n descripcion_servicio,\n nombre_tipo_servicio,\n tarifa_serv_adicional,\n cantidad_serv_adicional,\n tipo_plan_serv_adicional);\n \n \n try {\n miServAdicional.registrarServicioAd();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miServAdicional;\n \n }",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"public com.alain.puntocoma.model.Catalogo create(long catalogoId);",
"public static TipoServicio insertTipoServicio(String NOMBRE_TSERVICIO){\n TipoServicio miTipoServicio = new TipoServicio(NOMBRE_TSERVICIO);\n miTipoServicio.registrarTipoServicio();\n \n return miTipoServicio;\n }",
"@PostMapping(\"/agregarCliente\")\r\n public @ResponseBody\r\n Map<String, Object> agregarCliente(\r\n @RequestParam(\"tipoDocumento\") String tipoDocumento,\r\n @RequestParam(\"documento\") String documento,\r\n @RequestParam(\"nombre\") String nombre,\r\n @RequestParam(\"pais\") String pais,\r\n @RequestParam(\"ciudad\") String ciudad,\r\n @RequestParam(\"direccion\") String direccion,\r\n @RequestParam(\"telefono\") String telefono,\r\n @RequestParam(\"correo\") String correo) {\r\n try {\r\n\r\n Cliente CL = new Cliente();\r\n\r\n CL.setTipoDocumento(tipoDocumento);\r\n CL.setDocumento(documento);\r\n CL.setNombre(nombre);\r\n CL.setPais(pais);\r\n CL.setCiudad(ciudad);\r\n CL.setDireccion(direccion);\r\n CL.setTelefono(telefono);\r\n CL.setCorreo(correo.toLowerCase());\r\n CL.setUser(usuario());\r\n\r\n clienteRepository.save(CL);\r\n\r\n return ResponseUtil.mapOK(CL);\r\n } catch (Exception e) {\r\n return ResponseUtil.mapError(\"Error en el proceso \" + e);\r\n }\r\n }",
"@PostMapping(\"/cotacaos\")\n @Timed\n public ResponseEntity<CotacaoDTO> createCotacao(@Valid @RequestBody CotacaoDTO cotacaoDTO) throws URISyntaxException {\n log.debug(\"REST request to save Cotacao : {}\", cotacaoDTO);\n if (cotacaoDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new cotacao cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CotacaoDTO result = cotacaoService.save(cotacaoDTO);\n return ResponseEntity.created(new URI(\"/api/cotacaos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public Servicio(String servicio){\n nombreServicio = servicio;\n }",
"public void crearCompraComic(CompraComicDTO compraComicDTO);",
"@POST\r\n public DocumentoDTO crearDocumento(DocumentoDTO documento){\r\n return new DocumentoDTO(logic.crearDocumento(documento.toEntity()));\r\n }",
"@PostMapping(\"/selo-cartaos\")\n public ResponseEntity<SeloCartao> createSeloCartao(@Valid @RequestBody SeloCartao seloCartao) throws URISyntaxException {\n log.debug(\"REST request to save SeloCartao : {}\", seloCartao);\n if (seloCartao.getId() != null) {\n throw new BadRequestAlertException(\"A new seloCartao cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SeloCartao result = seloCartaoService.save(seloCartao);\n return ResponseEntity.created(new URI(\"/api/selo-cartaos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"/productos\")\n @Timed\n public ResponseEntity<Producto> createProducto(@RequestBody Producto producto) throws URISyntaxException {\n log.debug(\"REST request to save Producto : {}\", producto);\n if (producto.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new producto cannot already have an ID\")).body(null);\n }\n Producto result = productoRepository.save(producto);\n return ResponseEntity.created(new URI(\"/api/productos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\n\tpublic Response addServicioDeAlojamiento(ServicioDeAlojamiento servicioDeAlojamiento) {\n\n\t\ttry{\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager( getPath( ) );\n\t\t\ttm.addServicioDeAlojamiento(servicioDeAlojamiento);\n\t\t\treturn Response.status(200).entity(servicioDeAlojamiento).build();\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}",
"@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}",
"OperacionColeccion createOperacionColeccion();",
"@PostMapping(\"/contabancarias\")\n @Timed\n public ResponseEntity<ContabancariaDTO> createContabancaria(@RequestBody ContabancariaDTO contabancariaDTO) throws URISyntaxException {\n log.debug(\"REST request to save Contabancaria : {}\", contabancariaDTO);\n if (contabancariaDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new contabancaria cannot already have an ID\")).body(null);\n }\n Contabancaria contabancaria = contabancariaMapper.toEntity(contabancariaDTO);\n contabancaria = contabancariaRepository.save(contabancaria);\n ContabancariaDTO result = contabancariaMapper.toDto(contabancaria);\n return ResponseEntity.created(new URI(\"/api/contabancarias/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public static Consumo insertConsumo(int cantidad_consumo,Date fecha_inicio,\n Producto producto,Servicio servicio){\n Consumo miConsumo = new Consumo(cantidad_consumo,fecha_inicio, \n producto, servicio);\n miConsumo.registrarConsumo();\n return miConsumo;\n }",
"@PostMapping(\"/cuentas\")\n @Timed\n public ResponseEntity<Cuenta> createCuenta(@RequestBody Cuenta cuenta) throws URISyntaxException {\n log.debug(\"REST request to save Cuenta : {}\", cuenta);\n if (cuenta.getId() != null) {\n throw new BadRequestAlertException(\"A new cuenta cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Cuenta result = cuentaRepository.save(cuenta);\n return ResponseEntity.created(new URI(\"/api/cuentas/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"/catalogue/save\")\n CatalogueProduitDTO saveCatalogue(@RequestBody CatalogueProduitDTO catalogueProduitDTO) {\n return catalogueProduitMetier.saveCatalogue(catalogueProduitDTO);\n }",
"public ClienteServicio() {\n }",
"@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }",
"@PostMapping(\"/cargos\")\n @Timed\n public ResponseEntity<Cargo> createCargo(@RequestBody Cargo cargo) throws URISyntaxException {\n log.debug(\"REST request to save Cargo : {}\", cargo);\n if (cargo.getId() != null) {\n throw new BadRequestAlertException(\"A new cargo cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Cargo result = cargoRepository.save(cargo);\n return ResponseEntity.created(new URI(\"/api/cargos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }",
"@PostMapping(\"/conto-contabiles\")\n @Timed\n public ResponseEntity<ContoContabile> createContoContabile(@RequestBody ContoContabile contoContabile) throws URISyntaxException {\n log.debug(\"REST request to save ContoContabile : {}\", contoContabile);\n if (contoContabile.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new contoContabile cannot already have an ID\")).body(null);\n }\n ContoContabile result = contoContabileService.save(contoContabile);\n return ResponseEntity.created(new URI(\"/api/conto-contabiles/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@RequestMapping(path=\"/createOrder\", method = RequestMethod.POST, produces = \"application/json\", consumes = \"application/json\")\n\tpublic ResponseEntity<PaymentResponseDTO> createOrder(@RequestBody PaymentRequestDTO btcDTO) { \n\t\tlogger.info(\"Init payment\");\n\t\t\n\t\tSellerBitcoinInfo sbi = bitcoinRepo.findByidMagazine(btcDTO.getSellerId());\n\t\t\n\t\tSystem.out.println(\"ADDRESS \" + sbi.getBitcoinAddress());\n\t\t\n\t\tString token = sbi.getBitcoinAddress();\n\t\t\n\t\tString authToken = \"Bearer \" + token;\n\t\t//trebali bismo da kreiramo transakciju koja ce biti u stanju \"pending\" sve dok korisnik ne plati ili mu ne istekne odredjeno vreme\n\t\t\n\t\t//txRepo.save(tx);\n\t\t//RestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t//restTemplate.getForEntity(\"https://google.rs\", String.class);\n\t\t//restTemplate.getForEntity(\"https://api.coingate.com/v2/ping\", String.class);\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.add(\"Authorization\", authToken);\t \n\t\t\n\t\tSystem.out.println(\"Amount: \" + btcDTO.getAmount());\n\t\t\n\t\tCreateOrderRequestDTO order = new CreateOrderRequestDTO(\"1111\", btcDTO.getAmount(), \"BTC\", \"DO_NOT_CONVERT\", \"Title\", \"Description\", \"https://localhost:4200/success\", \"https://localhost:4200/failed\", \"https://localhost:4200/success\", \"token\");\n\t\t\n\t\tResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders\", HttpMethod.POST,\n\t\t\t\tnew HttpEntity<Object>(order, headers), Object.class);\n\t\t\n\t\tlogger.info(responseEntity.getBody().toString());\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\tBitCoinResponseDTO btcResponse = new BitCoinResponseDTO();\n\n\t\tbtcResponse = mapper.convertValue(responseEntity.getBody(), BitCoinResponseDTO.class);\n\t\t\n\t\tString paymentUrl = btcResponse.getPayment_url();\n\t\t\n\t\tlogger.info(paymentUrl);\n\t\t\n\t\tTx tx = createTransaction(btcResponse,sbi);\n\t\ttxRepo.save(tx);\n\t\t\n\t\tTxInfoDto txInfo = new TxInfoDto();\n\t\ttxInfo.setOrderId(btcDTO.getOrderId());\n\t\ttxInfo.setServiceWhoHandlePayment(\"https://localhost:8764/bitCoin\");\n\t\ttxInfo.setPaymentId(tx.getorder_id()); //ovde se nalazi orderId koji je i na coingate-u\n\t\t\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentInit\", txInfo, TxInfoDto.class);\n\t\t\n\t\t//BitCoinResponseDTO response = parser.parseList(responseEntity.getBody().toString());\n\t\t\n\t\t//BitCoinResponseDTO responseDTO = responseEntity.;\n\t\t\n\t\t//String pageToRedirec = responseDTO.getPayment_url();\n\t\t\n\t\t//restTemplate.exchange\n\t\t//ResponseEntity<String> response = restTemplate.postForEntity(\"https://api-sandbox.coingate.com/v2/orders\", btcDTO, String.class);\n\t\t\n\t\tPaymentResponseDTO responseDTO = new PaymentResponseDTO();\n\t\tresponseDTO.setPaymentUrl(paymentUrl);\n\t\tresponseDTO.setPaymentId(1l);\n\n\t\tSTATIC_ID = btcResponse.getId();\n\t\tSTATIC_TOKEN = authToken;\n\t\tIS_CREATE = true;\n\t\t\n\t\t//scheduleFixedDelayTask();\n\t\t//scheduleFixedDelayTask(btcResponse.getId(), authToken);\n\t\t\n\t\treturn new ResponseEntity<PaymentResponseDTO>(responseDTO,HttpStatus.OK);\n\t}",
"@PostMapping(\"/curso\")\r\n\tpublic Curso salvaCurso(@RequestBody Curso curso) {\n\t\tfor (int i = 0; i < curso.getListaAlunos().size(); i++) {\r\n\t\t\tAluno aluno = curso.getListaAlunos().get(i);\r\n\t\t\taluno.setCurso(curso); //Relação bidirecional.\r\n\t\t}\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn cursoRepository.save(curso);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"@PostMapping(\"/produtos\")\n @Timed\n public ResponseEntity<Produto> createProduto(@RequestBody Produto produto) throws URISyntaxException {\n log.debug(\"REST request to save Produto : {}\", produto);\n\n produto = DoubleUtil.handleProduto(produto);\n\n//////////////////////////////////REQUER PRIVILEGIOS\n if (!PrivilegioService.podeCriar(cargoRepository, ENTITY_NAME)) {\n log.error(\"TENTATIVA DE CRIAR SEM PERMISSÃO BLOQUEADA! \" + ENTITY_NAME + \" : {}\", produto);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"privilegios insuficientes.\", \"Este usuario não possui privilegios sufuentes para criar esta entidade.\")).body(null);\n }\n//////////////////////////////////REQUER PRIVILEGIOS\n if (produto.getId() != null) {\n throw new BadRequestAlertException(\"A new produto cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Produto result = produtoRepository.save(produto);\n return ResponseEntity.created(new URI(\"/api/produtos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@POST\n @Consumes(\"application/json\")\n public Response createPO(PurchaseOrderEJBDTO po) {\n int pono = pfb.addPO(po);\n URI uri = context.getAbsolutePath();\n return Response.created(uri).entity(pono).build();\n }",
"@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }",
"@GetMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to get CostoServicio : {}\", id);\n CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(costoServicioDTO));\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 }",
"@PostMapping(value = \"/customers\", consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void createCustomer(@RequestBody CustomerDTO custDTO) {\n\t\tlogger.info(\"Creation request for customer {}\", custDTO);\n\t\tcustService.createCustomer(custDTO);\n\t}",
"public void addServicio(String nombre_servicio, List<String> parametros){\n\t\t\n\t\tboolean exists = false;\n\t\t//Se comprueba si ya estaba registrado dicho servicio\n\t\tfor(InfoServicio is: infoServicios){\n\t\t\tif(is.getNombre_servicio().equalsIgnoreCase(\"nombre_servicio\")){\n\t\t\t\texists = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(!exists){\n\t\t\t//Es un servicio nuevo, se registra.\n\t\t\tInfoServicio is = new InfoServicio(nombre_servicio,parametros);\n\t\t\tinfoServicios.add(is);\n\t\t}\n\t\telse{\n\t\t\t//Servicio ya registrado, no se hace nada.\n\t\t\tSystem.err.println(\"ERROR: Servicio \" + nombre_servicio + \" ya registrado para \" + this.getNombre_servidor());\n\t\t}\n\t\t\n\t}",
"@PostMapping(consumes=MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.CREATED)\n public Taco postTaco(@RequestBody Taco taco) {\n return tacoRepo.save(taco);\n }",
"public PlanoSaude create(long plano_id);",
"public void insert(Service servico){\n Database.servico.add(servico);\n }",
"void crearCampania(GestionPrecioDTO campania);",
"com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();",
"Operacion createOperacion();",
"@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 }",
"@GetMapping(\"/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> getAllCostoServicios() {\n log.debug(\"REST request to get all CostoServicios\");\n return costoServicioService.findAll();\n }",
"@PostMapping(\"/add\")\n public ModelAndView addSocio(Persona persona) {\n personaService.addPersona(persona);\n return new ModelAndView(\"redirect:/admin/socios\");\n }",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }",
"@PostMapping(\"/save\")\n @ResponseStatus(HttpStatus.CREATED)//status 201\n public AsociadosProyecto save(@RequestBody AsociadosProyecto asociadosProyecto){\n return asociadosProyectoService.save(asociadosProyecto);\n }",
"@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}",
"public void enviarProyectos(Proyecto proyecto){\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.postForObject(\"http://localhost:5000/proyectos\", proyecto, Proyecto.class);\n\t\t}",
"@PostMapping(\"/postCar\")\n public ResponseEntity<Compacta> postCar(@RequestBody Compacta compacta){\n return compactaService.postCar(compacta);\n }",
"@ApiOperation(value = \"Create a customer\", notes = \"\")\n @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.CREATED)\n public CustomerDTO createCustomer(@Validated @RequestBody CustomerDTO customerDTO) {\n\n return customerService.createCustomer(customerDTO);\n }",
"@PostMapping(\"/filiere/{libelle}\")\r\n public int creer(@RequestBody EtudiantVo etudiantVo,@PathVariable String libelle) {\r\n EtudiantConverter etudiantConverter = new EtudiantConverter();\r\n Etudiant myEtudiant = etudiantConverter.toItem(etudiantVo);\r\n return etudiantService.creer(myEtudiant, libelle);\r\n }",
"@POST\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response addTipo(Tipo Tipo) {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\ttry {\n\t\t\ttm.addTipo(Tipo);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(Tipo).build();\n\t}",
"@DeleteMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to delete CostoServicio : {}\", id);\n costoServicioService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(\"/leggi-catalogo\")\n @ResponseBody\n \n public ListaProdottiDto inserisciContatto(@RequestBody leggiCatalogoCompleto dto) {\n Prodotto c = dto.getContatto();\n // inserisco il contatto su DB e ottengo il DB aggiornato\n List<Prodotto> lista = CatalogoService.inserisciArticolo();\n // creo un nuovo DTO per la risposta\n ListaProdottiDto risp = new ListaProdottiDto(lista);\n // ritorno il DTO\n return risp;\n }",
"public static Posee insertPosee(Date fecha_inicio,ServicioAdicional serv_adicional,\n Producto producto){\n Posee miPosee = new Posee(fecha_inicio,serv_adicional,producto);\n miPosee.registrarPosee();\n \n return miPosee;\n }",
"@RequestMapping(value = \"/createCustomer\", method = RequestMethod.POST)\n\tpublic String createCustomer(@RequestBody Customer customer) throws Exception {\n\n\t\tlog.log(Level.INFO, \"Customer zawiera\", customer.toString());\n\t\tcustomerRepository.save(customer); // Zapis do bazy\n\t\tSystem.out.println(\"##################### Utworzono klienta: \" + customer);\n\t\treturn \"Klient zostal stworzony\" + customer;\n\t}",
"@RequestMapping(value = \"/funcionarios\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Funcionario> createFuncionario(@RequestBody FuncionarioDTO funcionarioDTO, HttpServletRequest request) throws URISyntaxException {\n log.debug(\"REST request to save Funcionario : {}\", funcionarioDTO);\n\n if (funcionarioDTO.getId() != null)\n return ResponseEntity.badRequest().header(\"Failure\", \"A new funcionario cannot already have an ID\").body(null);\n\n Optional<User> userWithAuthoritiesByLogin = userService.getUserWithAuthoritiesByLogin(funcionarioDTO.getEmail());\n if (userWithAuthoritiesByLogin.isPresent()) {\n User usuario = userWithAuthoritiesByLogin.get();\n if (usuario != null)\n return ResponseEntity.badRequest().header(\"Failure\", \"e-mail address already in use\").body(null);\n }\n\n String baseUrl = request.getScheme() +\n \"://\" +\n request.getServerName() +\n \":\" +\n request.getServerPort();\n\n Funcionario result = funcionarioService.save(funcionarioDTO, baseUrl);\n\n return ResponseEntity.created(new URI(\"/api/funcionarios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"funcionario\", result.getNome()))\n .body(result);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}",
"@PostMapping(\"/addCita\")\r\n public String addCita(HttpServletRequest request,\r\n @RequestParam(value = \"nombre\", required = false) String nombre,\r\n @RequestParam(value = \"apellidoP\", required = false) String apellidoP,\r\n @RequestParam(value = \"apellidoM\", required = false) String apellidoM,\r\n @RequestParam(value = \"asunto\", required = false) String asunto,\r\n @RequestParam(value = \"fecha\", required = false) String fecha,\r\n @RequestParam(value = \"hora\", required = false) String hora,\r\n @RequestParam(value = \"docId\", required = false) int idDoctor) {\n asunto=asunto.trim();\r\n try {\r\n //Creo una fecha auxiliar con un formato con los valores recibidos\r\n Date fechaAux = formatter.parse(fecha+ \" \" + hora );\r\n //Instancio y agrego cita\r\n citas.add(new Cita(contCita, nombre, apellidoP, apellidoM, asunto, fechaAux, idDoctor));\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n contCita++;\r\n return \"redirect:/consultorio/agendarCita\";\r\n }",
"public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;",
"@RequestMapping(value = \"/estados\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody Estado estado) {\n log.debug(\"REST request to save Estado : {}\", estado);\n estadoRepository.save(estado);\n }",
"@PostMapping(\"/salvar\") //caminho api\n public ResponseEntity salvar(@RequestBody Protocolo protocolo) {\n try{\n Protocolo protocoloSalvo = protocoloService.salvar(protocolo);\n return ResponseEntity.ok(protocoloSalvo);\n }catch(Exception exception) {\n return ResponseEntity.badRequest().body(\"erro\");\n }\n }",
"@PostMapping(\"/persona\")\n public Persona createPersona(@Valid @RequestBody Persona persona) {\n return personaRepository.save(persona);\n }",
"@PostMapping(\"/procesadors\")\n @Timed\n public ResponseEntity<Procesador> createProcesador(@RequestBody Procesador procesador) throws URISyntaxException {\n log.debug(\"REST request to save Procesador : {}\", procesador);\n if (procesador.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new procesador cannot already have an ID\")).body(null);\n }\n Procesador result = procesadorRepository.save(procesador);\n return ResponseEntity.created(new URI(\"/api/procesadors/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@RequestMapping(value = \"/crearusuario\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse createuser(@RequestParam String llave_seguridad, @RequestBody NewUserInputDTO request, HttpServletRequest requestTransaction)\n {\n CommonsResponse response = new CommonsResponse();\n Map<String, String> mapConfiguration = null;\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n mapConfiguration = GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(requestTransaction));\n\n userServices.createUser(mapConfiguration, request);\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [crearusuarioisoft], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [consultarusuariossistema], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [crearusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [crearusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [crearusuario].\");\n return response.toOk();\n }",
"public void crearPersona(PersonaDTO personaDTO);",
"public ControladorCatalogoServicios() {\r\n }",
"@Override\n void create(Cliente cliente);",
"public void setCosto(int costo) {\n\t\tproducto.setCosto(costo);\n\t}",
"@RequestMapping(value = { \"/newcontract\" }, method = RequestMethod.POST)\n public String saveContract(@RequestParam(value = \"tNumber\", required = false) String phone, @RequestParam(value = \"customer\", required = false) String sso,\n @RequestParam(value = \"tarif\", required = false) String tarif,\n ModelMap model) {\n\n\n Customer customer = userService.findBySSO(sso);\n Tarif tarif1 = tarifService.findById(Integer.parseInt(tarif));\n Contract contract = new Contract(phone, customer, tarif1);\n// if (result.hasErrors()) {\n// return \"contractRegistration\";\n// }\n customer.setTelNumber(phone);\n userService.updateUser(customer);\n contractService.persist(contract);\n List<Contract> tarifContracts = contractService.findContractByTarif(tarif1);\n tarifContracts.add(contract);\n model.addAttribute(\"tarif\", tarif1);\n model.addAttribute(\"customer\", customer);\n model.addAttribute(\"phone\", customer.getTelNumber());\n model.addAttribute(\"contract\", contract);\n model.addAttribute(\"success\", \"Contract \" + contract.getContractId() + \" \" + \" added successfully\");\n model.addAttribute(\"loggedinuser\", getPrincipal());\n return \"registrationsuccess\";\n }",
"void create(Discount discount) throws ServiceException;",
"@JsonPost\n @RequestMapping(mapping = \"/inventory-cost-config\", requestMethod = RequestMethod.POST)\n public void saveCostConfig(@RequestParameter(value = \"cost\", isJsonBody = true) VariableCostDTO cost) throws Exception {\n if (cost.getID() == 0) variableCostService.insertCostConfig(cost);\n else variableCostService.updateCostConfig(cost);\n }",
"private void insertServiceRequest() {\n Random rand = new Random();\r\n service_id = rand.nextInt(Integer.MAX_VALUE);\r\n int tokenSeed = rand.nextInt(Integer.MAX_VALUE);\r\n current_token = md5(tokenSeed + \"\");\r\n\r\n Calendar cal = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\r\n String fecha = sdf.format(cal.getTime());\r\n\r\n int deliver_state = 1;\r\n\r\n int costo = (int) Math.round(destinations.get(0).total_price);\r\n\r\n ArrayList<String> param = new ArrayList<>();\r\n param.add(service_id + \"\");\r\n param.add(current_token);\r\n param.add(fecha);\r\n param.add(deliver_state + \"\");\r\n param.add(id_cliente + \"\");\r\n param.add(costo + \"\");\r\n param.add(\"0\");\r\n RestClient.get().executeCommand(\"8\", param.toString(), new Callback<Response>() {\r\n @Override\r\n public void success(Response response, retrofit.client.Response response2) {\r\n\r\n insertRoutes();\r\n }\r\n\r\n @Override\r\n public void failure(RetrofitError error) {\r\n hideOverlay();\r\n showDialog(\r\n getResources().getString(\r\n R.string.msg_serverError_title),\r\n getResources().getString(\r\n R.string.msg_serverError), false, false);\r\n }\r\n });\r\n\r\n\r\n }",
"public static Services addNewService(Services services) {\n services.setId(FuncValidation.getValidIdService(services,ENTER_SERVICE_ID,INVALID_SERVICE_ID));\n services.setNameOfService(FuncValidation.getValidName(ENTER_SERVICE_NAME,INVALID_NAME));\n services.setUsedArea(FuncValidation.getValidDoubleNumber(ENTER_USED_AREA, INVALID_DOUBLE_NUMBER,30.0));\n services.setRentalFee(FuncValidation.getValidDoubleNumber(ENTER_RENTAL_FEE, INVALID_RENTAL_FEE,0.0));\n services.setMaxGuest(FuncValidation.getValidIntegerNumber(ENTER_MAXIMUM_OF_GUEST,INVALID_MAX_GUEST,0,20));\n services.setRentType(FuncValidation.getValidName(ENTER_TYPE_OF_RENT,INVALID_NAME));\n return services;\n }",
"public OrdemDeServico inserir (OrdemDeServico servico) {\n\t\tservico.setId((Long) null);\n\t\treturn repoOrdem.save(servico);\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}",
"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 }",
"@WebMethod(operationName = \"crearCuentaFacturacion\")\n public String crearCuentaFacturacion(@WebParam(name = \"cliente\") ClienteBO cliente) throws BussinessException {\n return ejbRef.crearCuentaFacturacion(cliente);\n }",
"public String agregar(String trama) throws JsonProcessingException {\n\t\tString respuesta = \"\";\n\t\tRespuestaGeneralDto respuestaGeneral = new RespuestaGeneralDto();\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar trama entrante para agregar o actualizar producto: \" + trama);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Se convierte el dato String a estructura json para ser manipulado en JAVA\n\t\t\t */\n\t\t\tJSONObject obj = new JSONObject(trama);\n\t\t\tProducto producto = new Producto();\n\t\t\t/*\n\t\t\t * use: es una bandera para identificar el tipo de solicitud a realizar:\n\t\t\t * use: 0 -> agregar un nuevo proudcto a la base de datos;\n\t\t\t * use: 1 -> actualizar un producto existente en la base de datos\n\t\t\t */\n\t\t\tString use = obj.getString(\"use\");\n\t\t\tif(use.equalsIgnoreCase(\"0\")) {\n\t\t\t\tString nombre = obj.getString(\"nombre\");\n\t\t\t\t/*\n\t\t\t\t * Se realiza una consulta por nombre a la base de datos a la tabla producto\n\t\t\t\t * para verificar que no existe un producto con el mismo nombre ingresado.\n\t\t\t\t */\n\t\t\t\tProducto productoBusqueda = productoDao.buscarPorNombre(nombre);\n\t\t\t\tif(productoBusqueda.getProductoId() == null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si no existe un producto con el mismo nombre pasa a crear el nuevo producto\n\t\t\t\t\t */\n\t\t\t\t\tproducto.setProductoNombre(nombre);\n\t\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\t\tTipoProducto tipoProducto = tipoProductoDao.consultarPorId(obj.getLong(\"tipoProducto\"));\n\t\t\t\t\tproducto.setProductoTipoProducto(tipoProducto);\n\t\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\t\tproducto.setProductoFechaRegistro(new Date());\n\t\t\t\t\tproductoDao.update(producto);\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Nuevo producto registrado con éxito.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}else {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si existe un producto con el mismo nombre, se devolvera una excepcion,\n\t\t\t\t\t * para indicarle al cliente.\n\t\t\t\t\t */\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Ya existe un producto con el nombre ingresado.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t/*\n\t\t\t\t * Se realiza una busqueda del producto registrado para actualizar\n\t\t\t\t * para implementar los datos que no van a ser reemplazados ni actualizados\n\t\t\t\t */\n\t\t\t\tProducto productoBuscar = productoDao.buscarPorId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoNombre(obj.getString(\"nombre\"));\n\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\tproducto.setProductoTipoProducto(productoBuscar.getProductoTipoProducto());\n\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\tproducto.setProductoFechaRegistro(productoBuscar.getProductoFechaRegistro());\n\t\t\t\tproductoDao.update(producto);\n\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\trespuestaGeneral.setRespuesta(\"Producto actualizado con exito.\");\n\t\t\t\t/*\n\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t */\n\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * En caso de un error, este se mostrara en los logs\n\t\t\t * Sera enviada la respuesta correspondiente al cliente.\n\t\t\t */\n\t\t\tlogger.error(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n\t\t\t\t\t+ \"ProductoService.agregar, \"\n\t\t\t\t\t+ \", descripcion: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\trespuestaGeneral.setRespuesta(\"Error al ingresar los datos, por favor intente mas tarde.\");\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t}\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar resultado de agregar/actualizar un producto: \" + respuesta);\n\t\treturn respuesta;\n\t}",
"public static Contiene insertContiene(int cantidad_contiene,\n float costo_adicional_contiene,\n Paquete paquete,Servicio servicio){\n \n \n Contiene miContiene = new Contiene(cantidad_contiene, costo_adicional_contiene, \n paquete, servicio); \n \n try {\n miContiene.registrarContiene();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miContiene;\n }",
"@PostMapping(\"/clientes\")\n\t//@ResponseStatus(HttpStatus.CREATED)//esto es para que retorne un 201 en vez de ok(200)\n\tpublic ResponseEntity<?> create(@RequestBody Cliente cliente) {\n\t\t\n\t\tCliente clienteNuevo = null;\n\t\tMap<String, Object> response = new HashMap<>();\n\t\t\n\t\ttry {\n\t\t\tclienteNuevo = clienteService.save(cliente);\n\t\t} catch(DataAccessException e) {\n\t\t\tresponse.put(\"mensaje\", \"Error al realizar el insert en la base de datos\");\n\t\t\tresponse.put(\"error\", e.getMessage().concat(\": \").concat(e.getMostSpecificCause().getMessage()));\n\t\t\treturn new ResponseEntity<Map<String, Object>>(response, HttpStatus.NOT_FOUND);\n\t\t}\n\t\tresponse.put(\"mensaje\", \"el cliente ha sido creado con exito\");\n\t\tresponse.put(\"cliente\", clienteNuevo);\n\t\treturn new ResponseEntity<Map<String, Object>>(response, HttpStatus.CREATED);\n\t}",
"public void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateServiceMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }",
"public static MovimentiCcService creaOggettoServiceImpl() {\n\t\tMovimentiCcServiceImpl serviceImpl = new MovimentiCcServiceImpl();\r\n\t\t// crea un oggetto FactoryImpl\r\n\t\tMovimentoCcFactoryImpl movimentoCcFactoryImpl = new MovimentoCcFactoryImpl();\r\n\t\t// risolve la dipendenza \r\n\t\tserviceImpl.setMovimentoCcFactory(movimentoCcFactoryImpl);\r\n\t\treturn serviceImpl;\r\n\t}",
"@Override\r\n\tpublic int insertCio(CostIoOrderVO cioVO) {\n\t\treturn getSqlSession().insert(namespace+\".insertCio\", cioVO);\r\n\t}",
"@PostMapping(\"/docentes\")\n public ResponseEntity<DocenteDTO> createDocente(@Valid @RequestBody DocenteDTO docenteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Docente : {}\", docenteDTO);\n if (docenteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new docente cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocenteDTO result = docenteService.save(docenteDTO);\n return ResponseEntity.created(new URI(\"/api/docentes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}",
"public Paciente agregar(PacienteDTO nuevoPaciente) {\n\n int valor_hipertension = nuevoPaciente.getHipertension().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_mareo = nuevoPaciente.getMareo().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_presion = medirPresion(nuevoPaciente.getPresion());\n int valor_fiebre = medirFiebre(nuevoPaciente.getFiebre());\n int valor_edad = medirEdad(nuevoPaciente.getEdad());\n int puntaje = valor_mareo + valor_edad + valor_presion + valor_fiebre + valor_hipertension;\n\n Date date = new Date(new java.util.Date().getTime());\n Color color = colorRepository.getColorBetweenRange(puntaje);\n\n Paciente paciente = new Paciente();\n paciente.setName(nuevoPaciente.getNombre());\n paciente.setDni(nuevoPaciente.getDni());\n paciente.setColor(color);\n paciente.setScore(puntaje);\n paciente.setStatus(cantidadSiendoAtendidos(color) < color.getCant_max_patient() ? \"Siendo atendido\" : \"En espera\");\n paciente.setDate(date);\n Paciente elemento = pacienteRepository.saveAndFlush(paciente);\n return elemento;\n }",
"@PostMapping(\"/convites\")\n @Timed\n public ResponseEntity<ConviteDTO> createConvite(@Valid @RequestBody ConviteDTO conviteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Convite : {}\", conviteDTO);\n if (conviteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new convite cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n ConviteDTO result = conviteService.save(conviteDTO);\n mailService.sendConviteEmail(conviteDTO.getEmail());\n return ResponseEntity.created(new URI(\"/api/convites/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public void agregar(Producto producto) throws BusinessErrorHelper;",
"@Override\r\n\tpublic int create(Object value) throws Exception {\r\n\t\t\t\t\t\r\n\t\t//Default error\r\n\t\tint result = Errors.NO_ERROR;\r\n\t\t\t\t\t\t\r\n\t\t//Verify class\t\t\r\n\t\tif (value.getClass()!=CentroVO.class) \r\n\t\t\tthrow (new Exception(\"Not valid class\")); \r\n\t\t\t\t\t\r\n\t\tCentroVO center = (CentroVO)value;\r\n\t\t\t\t\r\n\t\t// Verify used licenses\r\n\t\tLOG.info(\"Verifying licenses\");\r\n\t\t\r\n\t\t//Verificamos que existan suficientes licencias disponibles para \r\n\t\t//la solicitud realizada\t\t\r\n\t\tif (licenseService.getEnabledLicensesCenter(Constants.NOT_CREATED)<center.getLicencias()) {\r\n\t\t\tresult = Errors.MAX_LICENSES;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif (result >=0){\r\n\t\t\tLOG.debug(\"Calling create center\");\r\n\t \r\n\t //Calling service\r\n\t result = service.insertCentro(center);\r\n\t\t}\r\n\t\t\t\t \t\t\t\t\t\t\t\t\r\n\t\treturn result;\t\t\t\t\t\t\t\t\r\n\t}",
"com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();",
"public static Factura insertFactura(Date fecha_inicio_factura,\n float tiene_costo_plan,\n float monto_total,\n ArrayList<String> comentarios_factura,\n Producto producto){\n \n Factura miFactura = new Factura(fecha_inicio_factura,tiene_costo_plan, \n 0,comentarios_factura,producto);\n \n //factura.registrarFactura();\n \n return miFactura;\n }",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}",
"@GetMapping(\"/_search/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {\n log.debug(\"REST request to search CostoServicios for query {}\", query);\n return costoServicioService.search(query);\n }",
"public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }",
"@PostMapping(\"reservar\")\n\tpublic ReservasEntity add(@RequestBody ReservasEntity reserva ) {\n\t\treturn reservaService.add(reserva);\n\t}",
"public void createNotificacion(Notificacion notificacion) {\n\t\tlogger.info(\"Create Notificacion\");\n\n\t\tWebResource webResource = client.resource(this.config\n\t\t\t\t.getProperty(\"API_URL\")\n\t\t\t\t+ this.config.getProperty(\"API_RESOURCE_NOTIFICACION\"));\n\n\t\tClientResponse response = webResource.type(MediaType.APPLICATION_JSON)\n\t\t\t\t.header(\"ApiKey\", this.apiKey)\n\t\t\t\t.post(ClientResponse.class, notificacion);\n\n\t\thandleResponse(response);\n\n\t\tresponse.close();\n\n\t\t// System.out.println(\"Notificacion created successfully ! {\" +\n\t\t// notificacion + \"}\");\n\n\t}",
"Motivo create(Motivo motivo);",
"public com.google.cloud.servicedirectory.v1beta1.Service createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateServiceMethod(), getCallOptions(), request);\n }"
] | [
"0.6634181",
"0.6472724",
"0.6423443",
"0.6331559",
"0.62447506",
"0.6197648",
"0.61244464",
"0.61169016",
"0.59384114",
"0.5913532",
"0.59094983",
"0.58917063",
"0.5838619",
"0.58370274",
"0.5834451",
"0.5825856",
"0.58097416",
"0.57979465",
"0.5759056",
"0.5749277",
"0.5696227",
"0.5692281",
"0.56905055",
"0.56903803",
"0.56903774",
"0.5679622",
"0.5672034",
"0.5653553",
"0.56348264",
"0.5590311",
"0.5588931",
"0.5578848",
"0.5578758",
"0.55693823",
"0.5567367",
"0.556688",
"0.556657",
"0.5560369",
"0.5559081",
"0.5551959",
"0.55404127",
"0.5513559",
"0.5512769",
"0.5501169",
"0.5489061",
"0.548112",
"0.5481023",
"0.5469319",
"0.5461079",
"0.5440725",
"0.5439709",
"0.54352015",
"0.5426621",
"0.5419077",
"0.5406158",
"0.5397913",
"0.5392242",
"0.53852516",
"0.5382448",
"0.5377552",
"0.5373892",
"0.5367507",
"0.53583854",
"0.5354323",
"0.5351792",
"0.53260463",
"0.53237605",
"0.53207237",
"0.53146213",
"0.53120196",
"0.5299247",
"0.52896756",
"0.52863246",
"0.5280396",
"0.5271838",
"0.52700055",
"0.5266881",
"0.5248526",
"0.52463865",
"0.52455384",
"0.52349705",
"0.5234896",
"0.5234602",
"0.5232725",
"0.5223897",
"0.52177435",
"0.5213996",
"0.52131575",
"0.5212168",
"0.5212096",
"0.5190497",
"0.51893204",
"0.5176536",
"0.516055",
"0.51586795",
"0.5157049",
"0.5152849",
"0.5149139",
"0.5145125",
"0.51414806"
] | 0.7980531 | 0 |
GET /costoservicios : get all the costoServicios. | @GetMapping("/costo-servicios")
@Timed
public List<CostoServicioDTO> getAllCostoServicios() {
log.debug("REST request to get all CostoServicios");
return costoServicioService.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/general/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@GetMapping(\"/_search/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {\n log.debug(\"REST request to search CostoServicios for query {}\", query);\n return costoServicioService.search(query);\n }",
"@GetMapping(\"/selo-cartaos\")\n public List<SeloCartao> getAllSeloCartaos() {\n log.debug(\"REST request to get all SeloCartaos\");\n return seloCartaoService.findAll();\n }",
"@GetMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to get CostoServicio : {}\", id);\n CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(costoServicioDTO));\n }",
"@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }",
"@GetMapping(\"buscarProductos\")\n\tpublic List<Producto> getProductos(){\n\t\treturn this.productoServicios.findAll();\n\t}",
"@GetMapping(\"/conto-contabiles\")\n @Timed\n public List<ContoContabile> getAllContoContabiles() {\n log.debug(\"REST request to get all ContoContabiles\");\n return contoContabileService.findAll();\n }",
"@GetMapping(\"/covs\")\n @Timed\n public List<Cov> getAllCovs() {\n log.debug(\"REST request to get all Covs\");\n return covService.findAll();\n }",
"@GetMapping(\"/clientes\")\r\n\tpublic List<Cliente> listar(){\r\n\t\treturn iClienteServicio.findAll();\r\n\t\t\r\n\t}",
"@GetMapping (\"/servicos\")\n\t\tpublic List<ServicoModel> pegarTodos() {\t\t\n\t\t\treturn repository.findAll();\n\t\t}",
"@GetMapping(\"/cotacaos\")\n @Timed\n public ResponseEntity<List<CotacaoDTO>> getAllCotacaos(Pageable pageable) {\n log.debug(\"REST request to get a page of Cotacaos\");\n Page<CotacaoDTO> page = cotacaoService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/cotacaos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@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}",
"@GET\n\t@Path(\"/carrocerias\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<CarroceriaDTO> listarCarrocerias(){\n\t\tSystem.out.println(\"ini: listarCarrocerias()\");\n\t\t\n\t\tCarroceriaService tipotService = new CarroceriaService();\n\t\tArrayList<CarroceriaDTO> lista = tipotService.ListadoCarroceria();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarCarrocerias()\");\n\t\t\n\t\treturn lista;\n\t}",
"@GetMapping(\"/productos\")\n @Timed\n public List<Producto> getAllProductos() {\n log.debug(\"REST request to get all Productos\");\n List<Producto> productos = productoRepository.findAll();\n return productos;\n }",
"public List<Servicio> findAll();",
"@GetMapping(\"/contabancarias\")\n @Timed\n public List<ContabancariaDTO> getAllContabancarias() {\n log.debug(\"REST request to get all Contabancarias\");\n List<Contabancaria> contabancarias = contabancariaRepository.findAll();\n return contabancariaMapper.toDto(contabancarias);\n }",
"public List<Integer> findAllCambiosCosto() throws Exception {\n List<Integer> filtroCambioCosto = alertasCambiosCostosController.readAll();\r\n return filtroCambioCosto;\r\n }",
"@GetMapping\n public List<Tipovehiculo>listar(){\n return service.listar();\n }",
"List<Curso> obtenerCursos();",
"@GetMapping(\"/tema/{id}/comentarios\")\n public Iterable<Comentario> findAllComentarios(@PathVariable(\"id\") Long id) {\n return repository.findById(id).get().getComentarios();\n }",
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@RequestMapping(value = \"/funcionarios\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Funcionario> getAllFuncionarios() {\n log.debug(\"REST request to get all Funcionarios\");\n return funcionarioService.findAllByCondominioAtual();\n }",
"public List<InfoServicio> getInfoServicios(){\n\t\treturn infoServicios;\n\t}",
"public List<Tiposservicios> getTiposServicios(HashMap parametros);",
"public List<ServicioEntity> getServicios() {\r\n return servicios;\r\n }",
"@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> lista = tipoService.ListadoTipoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTipos()\");\n\t\t\n\t\treturn lista;\n\t}",
"public List<ServicioTicket> obtenerTodosLosServiciosDeTicket() {\n return this.servicioTicketFacade.findAll();\n }",
"@Override\n @Transactional(readOnly = true)\n public Page<CostoDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Costos\");\n return costoRepository.findAll(pageable)\n .map(costoMapper::toDto);\n }",
"@GetMapping(\"/cuentas\")\n @Timed\n public ResponseEntity<List<Cuenta>> getAllCuentas(Pageable pageable) {\n log.debug(\"REST request to get a page of Cuentas\");\n Page<Cuenta> page = cuentaRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/cuentas\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@Override\n\tpublic List<Servicio> listarServicioTQ() {\n\t\tservicioDao = new ServicioDaoImpl();\n\t\treturn servicioDao.listarServicioTQ();\n\t}",
"@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Path(\"ServicioMonto/list\")\r\n public ArrayList<ServicioMonto> getXmlc() throws Exception {\n ArrayList<ServicioMonto> lista=new ArrayList<ServicioMonto>();\r\n lista=ServicioMonto.servicio_monto();\r\n return lista;\r\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}",
"@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}",
"public static List getAllPrices() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT cena FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n int naziv = result.getInt(\"cena\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}",
"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 }",
"@GetMapping(\"/usuario/{idUsuario}\")\n\tpublic List<Calculo> buscarPorUsuario(@PathVariable(value = \"idUsuario\", required = true) Long idUsuario) {\n\t\tlog.debug(\">> buscarPorUsuario [idUsuario={}]\", idUsuario);\n\t\tList<Calculo> calculos = service.findByUsuario(idUsuario);\n\t\tlog.debug(\"<< buscarPorUsuario [calculos={}]\", calculos);\n\t\treturn calculos;\n\t}",
"@GetMapping(\"/getallCommande_Fournisseur\")\n\tprivate List<Commande_Fournisseur> getAllCommandes()\n\t{\n\t\tSystem.out.println(\"get all commandes frournisseur\");\n\t\treturn commande_FournisseurController.findAll();\n\t}",
"@RequestMapping(value = \"/tiposdiscapacidad/\", \n\t method = RequestMethod.GET, \n\t headers=\"Accept=application/json\"\n\t ) \n\tpublic List<TipoDiscapacidad> getTipos(){\n\t\treturn tipoDiscapacidadRepository.findAll();\n\t}",
"public List<Curso> recuperaTodosCursos(){\r\n Connection conexao = ConexaoComBD.conexao();\r\n //instrução sql\r\n String sql = \"SELECT * FROM curso;\";\r\n try {\r\n //statement de conexão\r\n PreparedStatement ps = conexao.prepareStatement(sql);\r\n //recebe a tabela de retorno do banco de dados em um formato java\r\n ResultSet rs = ps.executeQuery();\r\n //criar lista de retorno\r\n List<Curso> lista = new ArrayList<>();\r\n \r\n //tratar o retorno do banco\r\n \r\n while(rs.next()){\r\n //criar um objeto modelo do tipo do retorno \r\n Curso c = new Curso();\r\n c.setIdCurso(rs.getInt(1));\r\n c.setNome(rs.getString(2));\r\n c.setArea(rs.getString(3));\r\n c.setCargaHoraria(rs.getInt(5));\r\n c.setValorCurso(rs.getDouble(6));\r\n c.setValorMensal(rs.getDouble(7));\r\n c.setCod(rs.getString(8));\r\n lista.add(c);\r\n }\r\n //retornar lista preenchida \r\n return lista;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CursoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //retorna null em caso de excessao\r\n return null;\r\n }",
"public static ArrayList<Course> ottieniCorsi() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_COURSES;\n\t\t\tReceiveContent resP = sendReceive(rp);\n\t\t\tArrayList<Course> lista = (ArrayList<Course>) resP.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Errore nell'ottenimento dei corsi\");\n\t\t}\n\t\treturn new ArrayList<Course>();\n\t}",
"@PreAuthorize(\"hasAnyRole('ADMIN')\")\n\t@RequestMapping(method=RequestMethod.GET)\n\tpublic ResponseEntity<List<ClienteDTO>> findAll() {\n\t\tList<Cliente> list = servico.findAll();\n\t\t//Converter essa lista de categorias, para ClienteDTO.\n\t\t//A melhor forma é ir no DTO e criar um construtor que receba o objeto correspondete\n\t\t//Lá das entidades de domínio.\n\t\t//Utilizar o Strem para pecorrer a lista de categorias\n\t\t//O map efetuar uma operação para cada elemento da lista\n\t\t//Vou chamar ela de obj e para cada elemento da minha lista\n\t\t// -> aeroFunction = FUNÇÃO anonima\n\t\t//instaciar a minha categoriaDTO passando o obj como parametro\n\t\t//E depois converter para lista de novo com o collect.\n\t\t\n\t\tList<ClienteDTO> listDto = list.stream().map(obj -> new ClienteDTO(obj)).collect(Collectors.toList());\n\t\t\n\t\treturn ResponseEntity.ok().body(listDto);\n\t}",
"@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\t/*\n\t * @ApiOperation(value = \"Get all the customers\", notes =\n\t * \"Send GET request to get all the customers\" , httpMethod = \"GET\", code = 200,\n\t * response = CustomerResponse.class, responseContainer = \"List\", produces =\n\t * MediaType.APPLICATION_JSON_VALUE)\n\t * \n\t * @ApiResponses(value = {\n\t * \n\t * @ApiResponse(code = 200, response = CustomerResponse.class, responseContainer\n\t * = \"List\", message = \"List of all customers\"),\n\t * \n\t * @ApiResponse(code = 401, response = ErrorResponse.class, message =\n\t * \"Invalid or expired token provided. Error code: CREDENTIALS_REJECTED\"),\n\t * \n\t * @ApiResponse(code = 500, response = ErrorResponse.class, message =\n\t * \"Runtime server error occurred. Error code: SERVER_ERROR\")})\n\t */\n\tpublic List<CustomerResponse> getCustomers() {\n\t\tlog.info(\"hit the controller\");\n\t\treturn customerService.findAll();\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response getProductos() {\n //TODO return proper representation object\n return controller.mostrarProductos();\n }",
"@RequestMapping(value=\"/by-nombre/{nombre}\",method=RequestMethod.GET)\r\n\tpublic ResponseEntity<?> listarByNombre(@PathVariable(\"nombre\") String nombre) {\r\n\t\treturn new ResponseEntity<List<Cliente>>(clienteService.listarByNombre(nombre), HttpStatus.OK);\r\n\t}",
"@GET\n\t@Path(\"/tipost\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoTransmisionDTO> listarTiposT(){\n\t\tSystem.out.println(\"ini: listarTiposT()\");\n\t\t\n\t\tTipoTransmisionService tipotService = new TipoTransmisionService();\n\t\tArrayList<TipoTransmisionDTO> lista = tipotService.ListadoTipoTransmision();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTiposT()\");\n\t\t\n\t\treturn lista;\n\t}",
"@GetMapping(\"/docentes\")\n public ResponseEntity<List<DocenteDTO>> getAllDocentes(DocenteCriteria criteria, Pageable pageable) {\n log.debug(\"REST request to get Docentes by criteria: {}\", criteria);\n Page<DocenteDTO> page = docenteQueryService.findByCriteria(criteria, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/docentes\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@GetMapping(\"/procesadors\")\n @Timed\n public List<Procesador> getAllProcesadors() {\n log.debug(\"REST request to get all Procesadors\");\n List<Procesador> procesadors = procesadorRepository.findAll();\n return procesadors;\n }",
"@GetMapping(\"/customers\")\n public List<Customer> findAll()\n {\n return customerService.findAll();\n }",
"@GET\n @Produces(\"application/json\")\n public List<OsData> listAllOs() {\n return osBO.getAllOs();\n }",
"public List<Aplicativo> buscarTodos() {\n return repositorio.findAll();\n }",
"@RequestMapping(\r\n\t\t\tvalue=\"\",\r\n\t\t\tmethod = RequestMethod.GET,\r\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic @ResponseBody() ArrayList<Curso> buscarCursos(\r\n\t\t\t@RequestParam(value = \"filtro\", required = true) String filtro)\r\n\t{\r\n\r\n\t\tArrayList<Curso> cursos = null;\r\n\t\tif (filtro != null){\r\n\t\t\tcursos = (ArrayList<Curso>) this.serviceCurso.buscar(filtro);\r\n\t\t} \r\n\t\treturn cursos;\r\n\t}",
"@GetMapping(\"/operadoras\")\n\t@ApiOperation(value=\"Retorna uma lista de operadora em json\")\n\tpublic List<Operadoras> ListaOperadoras(){ \n\t\treturn operadorasRepository.findAll();\n\t\t\n\t}",
"@GET(\"montaje/proyectos/ver/\")\n Call<List<clsProyecto>> getProyectos();",
"public String darServicios(){\n return servicios;\n }",
"@GetMapping(\"/costo-servicios/migratorio/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosMigratorioById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_migratorio_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@DeleteMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to delete CostoServicio : {}\", id);\n costoServicioService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@PreAuthorize(\"hasAnyRole('ADMIN')\")\n\t@RequestMapping(method=RequestMethod.GET) \n\tpublic ResponseEntity<List<ClienteDTO>> findAll() {\n\t\t\n\t\tList<Cliente> list = service.findAll();\n\t\t\n\t\t//veja que o stream eh para percorrer a lista, o map eh para dizer uma funcao q vai manipular cada elemento da lista\n\t\t//nesse caso, para elemento na lista ele sera passado para a categoriadto \n\t\t//e no fim eh convertida novamente para uma lista\n\t\tList<ClienteDTO> listDTO = list.stream().map(obj->new ClienteDTO(obj)).collect(Collectors.toList());\n\t\t\n\t\t//o ok eh p/ operacao feita com sucesso e o corpo vai ser o obj\n\t\treturn ResponseEntity.ok().body(listDTO); \n\t\t\n\t}",
"@GET\r\n @Produces(\"application/json\")\r\n public String listCarro() throws Exception {\r\n List<CarroModel> lista;\r\n //CarroDao dao = new CarroDao();\r\n CarroDao dao = CarroDao.getInstance();\r\n List<model.CarroModel> carros = dao.getAll();\r\n //Converter para Gson\r\n Gson g = new Gson();\r\n return g.toJson(carros);\r\n }",
"@RequestMapping(value = \"/free-cfdis\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE,\n params = {\"idFree_cfdi\", \"folio_fiscal\",\"rfc_receiver\",\"fromDate\", \"toDate\", \"idState\",\"serie\", \"folio\"})\n @Timed\n public ResponseEntity<List<Free_cfdi>> getAllFree_cfdis(@RequestParam(value = \"idFree_cfdi\") Integer idFree_cfdi,\n @RequestParam(value = \"folio_fiscal\") String folio_fiscal,\n @RequestParam(value = \"rfc_receiver\") String rfc_receiver,\n @RequestParam(value = \"fromDate\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate fromDate,\n @RequestParam(value = \"toDate\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate toDate,\n @RequestParam(value = \"idState\") Integer idState,\n @RequestParam(value = \"serie\") String serie,\n @RequestParam(value = \"folio\") String folio,\n Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of Free_cfdis\");\n\n String login = SecurityUtils.getCurrentUserLogin();\n Optional<User> user = userService.getUserWithAuthoritiesByLogin(login);\n if(user.isPresent()){\n boolean administrator = false;\n for(Authority item: user.get().getAuthorities()){\n if(item.getName().compareTo(\"ROLE_ADMIN\")==0){\n administrator = true;\n }\n }\n if(administrator){\n if (idFree_cfdi == 0 && folio_fiscal.compareTo(\" \") == 0 && rfc_receiver.compareTo(\" \") == 0 &&\n fromDate.toString().compareTo(\"0001-01-01\") == 0 && toDate.toString().compareTo(\"0001-01-01\") == 0 &&\n idState == 0 && serie.compareTo(\" \") == 0 && folio.compareTo(\" \") == 0) {\n log.debug(\"Obtener todos para el admin\");\n Page<Free_cfdi> page = free_cfdiService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }else\n {\n log.debug(\"Obtener alguno para el admin\");\n LocalDate inicio = fromDate;\n LocalDate datefinal = toDate;\n Page<Free_cfdi> page = free_cfdiService.findCustomAdmin(idFree_cfdi, folio_fiscal, rfc_receiver,\n inicio, datefinal, idState, serie, folio, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }\n }else{\n Free_emitter free_emitter = free_emitterService.findOneByUser(userRepository.findOneByLogin(login).get());\n if(free_emitter != null) {\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n if (idFree_cfdi == 0 && folio_fiscal.compareTo(\" \") == 0 && rfc_receiver.compareTo(\" \") == 0 &&\n fromDate.toString().compareTo(\"0001-01-01\") == 0 && toDate.toString().compareTo(\"0001-01-01\") == 0 &&\n idState == 0 && serie.compareTo(\" \") == 0 && folio.compareTo(\" \") == 0) {\n log.debug(\"Obtener todos\");\n Page<Free_cfdi> page = free_cfdiService.findByFree_emitter(free_emitter, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n } else {\n log.debug(\"Obtener alguno\");\n LocalDate inicio = fromDate;\n LocalDate datefinal = toDate;\n Page<Free_cfdi> page = free_cfdiService.findCustom(idFree_cfdi, folio_fiscal, rfc_receiver,\n inicio, datefinal, idState, serie, folio, free_emitter, pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/free-cfdis\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }\n }else\n {\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"notfound\", \"Free CFDI not found\")).body(null);\n }\n }\n }\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"notfound\", \"Free CFDI not found\")).body(null);\n\n }",
"List<CatalogoAprobadorDTO> buscarAprobador(int cveADM, String numEmpleado, Integer claveNivel, Integer centroCostoOP) throws SIATException;",
"@CrossOrigin(origins = \"http://localhost:4200\", methods = { RequestMethod.GET })\n\t@GetMapping(path = \"/listarAbono\")\n\tpublic List<Abono> getAllAbono() {\n\t\treturn abonoService.obtenerTodos();\n\t}",
"public List<Reserva> getAllReservasColectivas() throws Exception {\n\t\tDAOReserva dao = new DAOReserva();\n\t\tList<Reserva> res = new ArrayList<>();\n\t\ttry \n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\n\t\t\tres = dao.getReservasColectivas();\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"@GetMapping(\"/receta/all\")\t\n\tpublic List<Receta> listarReceta(){\n\t\t\treturn this.recetaService.findAll();\n\t}",
"@GET\r\n public List<DocumentoDTO> obtenerDocumento(){\r\n List<DocumentoEntity> documento= logic.obtenerDocumento(); \r\n return DocumentoDTO.toZooList(documento);\r\n }",
"public static List<Carro> getCarros() {\n CarroDAO dao = CarrosApplication.getInstance().getCarroDAO();\n List<Carro> carros = dao.findAll();\n return carros;\n }",
"@RequestMapping(path = \"documentos\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Documento> listaDocumentos() {\n\t\ttry {\n\t\t\treturn documentoServicio.listar();\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(\"=====\\nError Ctrl:(listaDocumentos):\\n\" + ex.getMessage()+\"\\n\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public List<ColaTicket> obtenerTodasLasColas() {\n return this.colaFacade.findAll();\n }",
"public Collection<OrdemServicoFotoOcorrencia> listarOSFoto(OrdemServicoFotoOcorrencia osFoto) throws ErroRepositorioException{\n\n\t\tSession session = HibernateUtil.getSession();\n\t\ttry{\n\t\t\tCriteria criteria = session.createCriteria(OrdemServicoFotoOcorrencia.class);\n\n\t\t\tif(osFoto.getId() != null){\n\t\t\t\tcriteria.add(Restrictions.eq(\"id\", osFoto.getId()));\n\t\t\t}\n\t\t\tif(osFoto.getIdOrdemServico() != null){\n\t\t\t\tcriteria.add(Restrictions.eq(\"idOrdemServico\", osFoto.getIdOrdemServico()));\n\t\t\t}\n\t\t\tif(osFoto.getIdOrdemServicoProgramacao() != null){\n\t\t\t\tcriteria.add(Restrictions.eq(\"idOrdemServicoProgramacao\", osFoto.getIdOrdemServicoProgramacao()));\n\t\t\t}\n\t\t\tif(osFoto.getNumeroSequenciaFoto() != null){\n\t\t\t\tcriteria.add(Restrictions.eq(\"numeroSequenciaFoto\", osFoto.getNumeroSequenciaFoto()));\n\t\t\t}\n\n\t\t\treturn criteria.list();\n\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t}",
"@GetMapping(\"/productos/facturasCliente/{fechaA}/{fechaB}/{ci}\")\r\n\tpublic List<Factura> facturasConMasProductos(@PathVariable Date fechaA, @PathVariable Date fechaB,@PathVariable String ci) {\r\n\t\treturn (List<Factura>)productoFacturaClienteService.facturasConMasProductos(fechaA, fechaB, ci);\r\n\t}",
"@RequestMapping(value = \"/cophongs\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Cophong> getAllCophongs() {\n log.debug(\"REST request to get all Cophongs\");\n List<Cophong> cophongs = cophongRepository.findAll();\n return cophongs;\n }",
"@GET(API_ROUTE + \"/contactos-cliente/{cli_id}\")\n Call<List<Persona>> getContactsByClientId(@Path(\"cli_id\") long cli_id);",
"public static List<CentroDeCusto> readAll() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto\");\n return query.list();\n }",
"@GET\n @Path(\"/ListCaracteristique\")\n public Response ListCaracteristique() {\n return Response\n\t\t .status(200)\n .header(\"Access-Control-Allow-Origin\", \"*\")\n .header(\"Access-Control-Allow-Headers\", \"origin, content-Type, accept, authorization\")\n .header(\"Access-Control-Allow-Credentials\", \"true\")\n\t\t .header(\"Access-Control-Allow-Methods\", \"GET, POST, PUT, DELETE, OPTIONS, HEAD\")\n\t\t .header(\"Access-Control-Max-Age\", \"1209600\")\n\t\t .entity(caractdao.getAll())\n\t\t .build();\n }",
"public ArrayList<Consulta> recuperaAllServicios() {\r\n\t\treturn servicioConsulta.recuperaAllServicios();\r\n\t}",
"@RequestMapping(method=RequestMethod.GET, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<List<Producto>> buscarTodo(){\r\n\t\tList<Producto> productos = dao.buscarTodo();\r\n\t\treturn new ResponseEntity<List<Producto>>(productos,HttpStatus.OK);\r\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"@GetMapping(\"/productos/masVendidos/{fecha}\")\r\n\tpublic List<Factura> facturaConMasProductos(@PathVariable String fecha) {\r\n\r\n\t\tSimpleDateFormat formato= new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate fechaNueva=null;\r\n\t\ttry {\r\n\t\t\tfechaNueva = formato.parse(fecha);\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn (List<Factura>)productoFacturaClienteService.facturaConMasProductos(fechaNueva);\r\n\t}",
"@GetMapping(\"\")\n public String getAllProyectos(Model model) {\n List<Persona> socios = personaService.getPersonas();\n model.addAttribute(\"listasocios\", socios);\n return \"/backoffice/socios\";\n }",
"@GetMapping(\"/payment-infos\")\n @Timed\n public List<PaymentInfoDTO> getAllPaymentInfos() {\n log.debug(\"REST request to get all PaymentInfos\");\n return paymentInfoService.findAll();\n }",
"@RequestMapping(value = \"/shopressources\", method = RequestMethod.GET)\n List<ShopRessource> getAllShopRessources();",
"@GetMapping(\"/act-kodus\")\n @Timed\n public List<ActKodu> getAllActKodus() {\n log.debug(\"REST request to get all ActKodus\");\n return actKoduRepository.findAll();\n }",
"public void getAllCursos() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT * FROM curso;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n int familia = rs.getInt(\"id_familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n System.out.format(\"%d,%s,%d,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getOperadores() {\n\t\t\n\t\ttry {\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager(getPath());\n\t\t\t\n\t\t\tList<Operador> operadores;\n\t\t\t//Por simplicidad, solamente se obtienen los primeros 50 resultados de la consulta\n\t\t\toperadores = tm.getAllOperadores();\n\t\t\treturn Response.status(200).entity(operadores).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}",
"@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Path(\"ServicioCantidad/list\")\r\n public ArrayList<ServicioCantidad> getXmla() throws Exception {\n ArrayList<ServicioCantidad> lista=new ArrayList<ServicioCantidad>();\r\n lista=ServicioCantidad.servicio_cantidad();\r\n return lista;\r\n }",
"public List<RjEstadoConservacion> getAllRjEstadoConservacion()throws Exception{\n\t\tList<RjEstadoConservacion> lista=new LinkedList<RjEstadoConservacion>();\n\t\ttry{\n\t\t\tStringBuffer SQL=new StringBuffer(\"SELECT conservacion_id,descripcion FROM \").append(Constante.schemadb).append(\".rj_estado_conservacion order by descripcion asc\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tRjEstadoConservacion obj=new RjEstadoConservacion(); \n\t\t\t\tobj.setConservacionId(rs.getInt(\"conservacion_id\"));\n\t\t\t\tobj.setDescripcion(rs.getString(\"descripcion\"));\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}",
"public List<GrupoLocalResponse> buscarTodos();",
"@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }",
"public static List<CentroDeCusto> readAllAtivos() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto WHERE status = 'A'\");\n return query.list();\n }",
"@GetMapping(\"/cotacaos/{id}\")\n @Timed\n public ResponseEntity<CotacaoDTO> getCotacao(@PathVariable Long id) {\n log.debug(\"REST request to get Cotacao : {}\", id);\n CotacaoDTO cotacaoDTO = cotacaoService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(cotacaoDTO));\n }",
"public Map listServices() throws IOException\n\t{\n\t\treturn request(GET, address(null, null));\n\t}",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"public List<TiposServiciosT> getTiposServiciosT(HashMap parametros);",
"@GET\n @Path(\"/getAll\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJson() {\n \n \ttry \n \t{\n \t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", \"*\").entity(servDoctores.getDoctores().toString()).build();\n \t} catch (Exception e) {\n\n \t\te.printStackTrace();\n \t\treturn Response.status(Response.Status.NO_CONTENT).build();\n \t}\n }",
"@GET\n\t@Path(\"/autos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic RespuestaDTO listarAutos(){\n\t\tSystem.out.println(\"ini: listarAutos()\");\n\t\tRespuestaDTO respuesta = null;\n\t\t\n\t\tAutoService autoService = new AutoService();\n\t\tArrayList<AutoDTO> lista = autoService.ListadoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t\trespuesta = new RespuestaDTO(lista);\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarAutos()\");\n\t\t\n\t\treturn respuesta;\n\t}",
"@GET\n @Path(\"/ostenants\")\n @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n @CheckPermission(roles = { Role.SECURITY_ADMIN })\n public OSTenantListRestRep listCoprhdOsTenants() {\n\n _log.debug(\"Keystone Service - listCoprhdOsTenants\");\n\n List<OSTenant> tenants = getOsTenantsFromCoprhdDb();\n\n return map(tenants);\n }",
"public List<ClienteDto> recuperaTodos(){\n\t\tList<ClienteDto> clientes = new ArrayList<ClienteDto>();\n\t\tclienteRepository.findAll().forEach(cliente -> clientes.add(ClienteDto.creaDto(cliente)));\n\t\treturn clientes;\n\t}",
"public void buscarDocentes() {\r\n try {\r\n List<DocenteProyecto> docenteProyectos = docenteProyectoService.buscar(new DocenteProyecto(\r\n sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE, null));\r\n if (docenteProyectos.isEmpty()) {\r\n return;\r\n }\r\n for (DocenteProyecto docenteProyecto : docenteProyectos) {\r\n DocenteProyectoDTO docenteProyectoDTO = new DocenteProyectoDTO(docenteProyecto, null,\r\n docenteCarreraService.buscarPorId(new DocenteCarrera(docenteProyecto.getDocenteCarreraId())));\r\n docenteProyectoDTO.setPersona(personaService.buscarPorId(new Persona(docenteProyectoDTO.getDocenteCarrera().getDocenteId().getId())));\r\n sessionProyecto.getDocentesProyectoDTO().add(docenteProyectoDTO);\r\n }\r\n sessionProyecto.setFilterDocentesProyectoDTO(sessionProyecto.getDocentesProyectoDTO());\r\n } catch (Exception e) {\r\n }\r\n }",
"@GetMapping(\"/sys-coupon-classifies\")\n @Timed\n public List<SysCouponClassify> getAllSysCouponClassifies() {\n log.debug(\"REST request to get all SysCouponClassifies\");\n return sysCouponClassifyService.findAll();\n }",
"List<Oficios> buscarActivas();"
] | [
"0.69978",
"0.69797295",
"0.69006205",
"0.68049306",
"0.66102093",
"0.6538866",
"0.6534907",
"0.65223074",
"0.64878994",
"0.64511484",
"0.6430361",
"0.6313089",
"0.6306879",
"0.61952215",
"0.6194219",
"0.61797297",
"0.6117927",
"0.610555",
"0.60347986",
"0.6013707",
"0.60002345",
"0.5954429",
"0.5948653",
"0.5926336",
"0.59260935",
"0.58968586",
"0.58937746",
"0.587255",
"0.5856384",
"0.58479524",
"0.58131677",
"0.580423",
"0.5798087",
"0.57976717",
"0.5770492",
"0.5765105",
"0.5761226",
"0.5760317",
"0.5754748",
"0.5753826",
"0.5743705",
"0.5717465",
"0.56943715",
"0.56793344",
"0.5669263",
"0.56657904",
"0.56622595",
"0.5648642",
"0.5648612",
"0.56280875",
"0.5624242",
"0.5616751",
"0.5616621",
"0.5604991",
"0.56031317",
"0.5591897",
"0.5575088",
"0.55700856",
"0.5557225",
"0.5552351",
"0.5550309",
"0.5545442",
"0.5542364",
"0.5530111",
"0.5529475",
"0.552935",
"0.552903",
"0.55275196",
"0.5523411",
"0.55176276",
"0.55173683",
"0.55155295",
"0.551296",
"0.5512114",
"0.55089706",
"0.54990953",
"0.5496992",
"0.5495213",
"0.5492074",
"0.5490837",
"0.5482486",
"0.54741955",
"0.5471958",
"0.547088",
"0.54683775",
"0.54649067",
"0.5448196",
"0.5445944",
"0.5445869",
"0.5432105",
"0.54317164",
"0.54276377",
"0.542167",
"0.54185873",
"0.54164565",
"0.5410005",
"0.540884",
"0.54053146",
"0.54050183",
"0.54025"
] | 0.8581269 | 0 |
GET /costoservicios/:id : get the "id" costoServicio. | @GetMapping("/costo-servicios/{id}")
@Timed
public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {
log.debug("REST request to get CostoServicio : {}", id);
CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);
return ResponseUtil.wrapOrNotFound(Optional.ofNullable(costoServicioDTO));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/general/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@GetMapping(\"/cotacaos/{id}\")\n @Timed\n public ResponseEntity<CotacaoDTO> getCotacao(@PathVariable Long id) {\n log.debug(\"REST request to get Cotacao : {}\", id);\n CotacaoDTO cotacaoDTO = cotacaoService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(cotacaoDTO));\n }",
"@DeleteMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to delete CostoServicio : {}\", id);\n costoServicioService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@GetMapping(\"/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> getAllCostoServicios() {\n log.debug(\"REST request to get all CostoServicios\");\n return costoServicioService.findAll();\n }",
"@GetMapping(\"/selo-cartaos/{id}\")\n public ResponseEntity<SeloCartao> getSeloCartao(@PathVariable Long id) {\n log.debug(\"REST request to get SeloCartao : {}\", id);\n Optional<SeloCartao> seloCartao = seloCartaoService.findOne(id);\n return ResponseUtil.wrapOrNotFound(seloCartao);\n }",
"@GetMapping(\"/cargos/{id}\")\n @Timed\n public ResponseEntity<Cargo> getCargo(@PathVariable Long id) {\n log.debug(\"REST request to get Cargo : {}\", id);\n Optional<Cargo> cargo = cargoRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(cargo);\n }",
"@GetMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Producto> getProducto(@PathVariable Long id) {\n log.debug(\"REST request to get Producto : {}\", id);\n Producto producto = productoRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(producto));\n }",
"@GetMapping(\"/clientes/{id}\")\n\tpublic Cliente buscarXid(@PathVariable Integer id) {\n\t\tCliente cliente = null;\n\t\ttry {\n\t\t\tcliente = this.getClienteService().findById(id);\n\t\t} catch (ExceptionService e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cliente;\n\t}",
"public Proyecto proyectoPorId(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto proyecto =plantilla.getForObject(\"http://localhost:5000/proyectos/\" + id, Proyecto.class);\n\t\t\treturn proyecto;\n\t\t}",
"@Override\n @Transactional(readOnly = true)\n public CostoDTO findOne(Long id) {\n log.debug(\"Request to get Costo : {}\", id);\n Costo costo = costoRepository.findOne(id);\n return costoMapper.toDto(costo);\n }",
"@GetMapping(\"/cuentas/{id}\")\n @Timed\n public ResponseEntity<Cuenta> getCuenta(@PathVariable Long id) {\n log.debug(\"REST request to get Cuenta : {}\", id);\n Optional<Cuenta> cuenta = cuentaRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(cuenta);\n }",
"@GetMapping(\"/conto-contabiles/{id}\")\n @Timed\n public ResponseEntity<ContoContabile> getContoContabile(@PathVariable Long id) {\n log.debug(\"REST request to get ContoContabile : {}\", id);\n ContoContabile contoContabile = contoContabileService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(contoContabile));\n }",
"@GetMapping(\"/buscar/{idCapacitacion}\")\n\tpublic ResponseEntity<CapacitacionEntity> buscarPorId(@PathVariable Integer idCapacitacion){\n\t\t\n\t\ttry {\n\t\t\tCapacitacionEntity cap= new CapacitacionEntity();\n\t\t\tcap = iCapService.buscarPorid(idCapacitacion);\n\t\t\t\n\t\t\treturn new ResponseEntity<CapacitacionEntity>(cap, HttpStatus.OK);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\treturn new ResponseEntity<CapacitacionEntity>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic ResponseEntity<Contato> getById(@PathVariable long id) \n\t{\n\t\tContato contato = contatoService.getById(id);\n\n\t\tif(contato == null) \n\t\t{\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok(contato);\n\t}",
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"public int getIdServicio() {\n return idServicio;\n }",
"@GetMapping(\"/contabancarias/{id}\")\n @Timed\n public ResponseEntity<ContabancariaDTO> getContabancaria(@PathVariable Long id) {\n log.debug(\"REST request to get Contabancaria : {}\", id);\n Contabancaria contabancaria = contabancariaRepository.findOne(id);\n ContabancariaDTO contabancariaDTO = contabancariaMapper.toDto(contabancaria);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(contabancariaDTO));\n }",
"public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }",
"public int getId_servico() {\n return id_servico;\n }",
"@GetMapping(\"/covs/{id}\")\n @Timed\n public ResponseEntity<Cov> getCov(@PathVariable Long id) {\n log.debug(\"REST request to get Cov : {}\", id);\n Optional<Cov> cov = covService.findOne(id);\n return ResponseUtil.wrapOrNotFound(cov);\n }",
"@GetMapping(\"/{id}\")\n\tpublic String getById(@PathVariable int id) {\n\t\tSystem.out.println(\"recuperer la commande avec l'id= \" +id);\n\t\tOptional<Commande> optional = commandeRepository.findById(id);\n\t\tif (optional.isPresent()) {\n\t\t\tSystem.out.println(\"Commande= \" +optional.get());\n\t\t} else {\n\t\t\tSystem.out.println(\"La commande avec l'id \" +id+ \" n'existe pas.\");\n\t\t}\n\t\treturn \"details_commande\";\n\t}",
"@GET\n\t@Path( \"{id: \\\\d+}\" )\n\t@Produces( { MediaType.APPLICATION_JSON } )\n\tpublic Response getTipo( @PathParam( \"id\" ) Long id )\n\t{\n\t\tRotondAndesTM tm = new RotondAndesTM( getPath( ) );\n\t\ttry\n\t\t{\n\t\t\tTipo v = tm.buscarTipoPorId( id );\n\t\t\treturn Response.status( 200 ).entity( v ).build( );\t\t\t\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}",
"@GetMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Procesador> getProcesador(@PathVariable Long id) {\n log.debug(\"REST request to get Procesador : {}\", id);\n Procesador procesador = procesadorRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(procesador));\n }",
"@GetMapping(\"/produtos/{id}\")\n @Timed\n public ResponseEntity<Produto> getProduto(@PathVariable Long id) {\n log.debug(\"REST request to get Produto : {}\", id);\n Produto produto = produtoRepository.findOne(id);\n\n//////////////////////////////////REQUER PRIVILEGIOS\n if (!PrivilegioService.podeVer(cargoRepository, ENTITY_NAME)) {\n produto = null;\n log.error(\"TENTATIVA DE VISUALIZAR SEM PERMISSÃO BLOQUEADA! \" + ENTITY_NAME + \" : {}\", id);\n }\n//////////////////////////////////REQUER PRIVILEGIOS\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(produto));\n }",
"@GetMapping(path = {\"/{idtv}\"})\n public Tipovehiculo listarId(@PathVariable(\"idtv\")int idtv){\n return service.listarId(idtv);\n }",
"@Override\r\n\tpublic ComercialSolicitudServicioAlCliente findOne(Long id) {\n\t\treturn repository.findById(id).orElse(null);\r\n\t}",
"@GetMapping(\"/_search/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {\n log.debug(\"REST request to search CostoServicios for query {}\", query);\n return costoServicioService.search(query);\n }",
"@GetMapping(\"/docentes/{id}\")\n public ResponseEntity<DocenteDTO> getDocente(@PathVariable Long id) {\n log.debug(\"REST request to get Docente : {}\", id);\n Optional<DocenteDTO> docenteDTO = docenteService.findOne(id);\n return ResponseUtil.wrapOrNotFound(docenteDTO);\n }",
"@GET\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getProductosById(@PathParam(\"id\") int id) {\n return controller.mostrarProductoId(id);\n }",
"@GetMapping(\"/convites/{id}\")\n @Timed\n public ResponseEntity<ConviteDTO> getConvite(@PathVariable Long id) {\n log.debug(\"REST request to get Convite : {}\", id);\n ConviteDTO conviteDTO = conviteService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(conviteDTO));\n }",
"public ServicioTicket obtenerServicioTicket(int codigo) {\n return this.servicioTicketFacade.find(codigo);\n }",
"@GET\n\t@Path(\"/edit/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomerbyID(@PathParam(value = \"id\") int id)\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, ClassNotFoundException, SQLException {\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get specific car by its unique id\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS WHERE id=\" + id);\n\n\t\t// Connect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}",
"@GetMapping(\"/{id}\")\n public Optional<AsociadosProyecto> getAsociadosProyecto(@PathVariable(\"id\") int id){\n return asociadosProyectoService.getAsociadosProyecto(id);\n }",
"@GetMapping(value=\"/listProduits/{id}\")\n public Produit produitById(@PathVariable(name = \"id\") Long id){\n return produitRepository.findById(id).get();\n }",
"@RequestMapping(value = \"/funcionarios/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<FuncionarioDTO> getFuncionario(@PathVariable Long id) {\n log.debug(\"REST request to get Funcionario : {}\", id);\n return Optional.ofNullable(funcionarioRepository.findOne(id))\n .map(funcionario -> new ResponseEntity<>(new FuncionarioDTO(funcionario), HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(\"/usuario/{idUsuario}\")\n\tpublic List<Calculo> buscarPorUsuario(@PathVariable(value = \"idUsuario\", required = true) Long idUsuario) {\n\t\tlog.debug(\">> buscarPorUsuario [idUsuario={}]\", idUsuario);\n\t\tList<Calculo> calculos = service.findByUsuario(idUsuario);\n\t\tlog.debug(\"<< buscarPorUsuario [calculos={}]\", calculos);\n\t\treturn calculos;\n\t}",
"@GetMapping(\"/turno/{id}\")\r\n public ResponseEntity<Turno> getTurno(@PathVariable(\"id\") Long id) \r\n {\r\n Turno turn = turnoRepository.findOne(id);\r\n if (turn == null) \r\n {\r\n return ResponseEntity.notFound().header(\"X-error\", \"No se encontro el paciente con el Id: \"+id).build();\r\n }\r\n return ResponseEntity.ok(turn);\r\n }",
"@Path(\"{proveedorId: \\\\d+}/seguros\")\r\n public Class<ProveedorSegurosResource> getCompradorMetodoDePagoResource(@PathParam(\"proveedorId\") Long proveedorId) {\r\n if (proveedorLogic.getProveedor(proveedorId) == null) {\r\n throw new WebApplicationException(\"El recurso /proveedores/\" + proveedorId + \" no existe.\", 404);\r\n }\r\n return ProveedorSegurosResource.class;\r\n }",
"@GetMapping(value = \"buscar-por-id/{idplato}\")\n public ResponseEntity<Plato> buscarPlatoPorId(@PathVariable(\"idplato\") Long idPlato) {\n Plato plato = miServicioPlatos.buscarPlatoPorId(idPlato);\n if (null==plato){\n return ResponseEntity.notFound().build();\n }\n return ResponseEntity.ok(plato);\n }",
"public static RutaDTO consultarRutaById(int identificador){\n RutaDTO ruta = null;\n HttpClient httpClient = new DefaultHttpClient();\n HttpGet del = new HttpGet(HOST_BACKEND+\"mycityviewBE/rest/ruta/\"+identificador);\n del.setHeader(\"content-type\", CONTENT_TYPE);\n del.setHeader(\"Authorization\", getAuthorization().trim());\n try {\n HttpResponse resp = httpClient.execute(del);\n if(resp.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n String respStr = EntityUtils.toString(resp.getEntity());\n Gson gson = new GsonBuilder().create();\n ruta = gson.fromJson(respStr, RutaDTO.class);\n }\n } catch (Exception ex) {\n Log.e(\"ServicioRest\", \"Error!\", ex);\n }\n return ruta;\n }",
"@Path(\"{id: \\\\d+}\")\r\n @GET\r\n public DocumentoDTO obtenerDocumento(@PathParam(\"id\") long Id){\r\n DocumentoEntity entity= logic.obtenerDocumentoPorId(Id);\r\n if(entity == null){\r\n throw new RuntimeException(\"El producto solicitado no existe\");\r\n }\r\n return new DocumentoDTO(entity);\r\n }",
"@RequestMapping(method=RequestMethod.GET,value=\"/{id}\",consumes=MediaType.APPLICATION_JSON_VALUE, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Producto> buscarPorId(@PathVariable Integer id){\r\n\t\tProducto productoBuscado=dao.buscar(id);\r\n\t\treturn new ResponseEntity<Producto>(productoBuscado,HttpStatus.OK);\r\n\t}",
"@RequestMapping(value = \"clientes/{clienteId}\", method = RequestMethod.GET)\n\t\n\tpublic ResponseEntity<InfoUIA> clienteById(@PathVariable String clienteId) throws ClassNotFoundException {\n\t\tSystem.out.println(\"Saludos desde clienteById()\");\n\t\treturn ResponseEntity.ok((InfoUIA)clientes.getProveedor(clienteId));\n\t}",
"@Path(\"{proveedorId: \\\\d+}/facturas\")\r\n public Class<ProveedorFacturasResource> getProveedorFacturaResource(@PathParam(\"proveedorId\") Long proveedorId) {\r\n if (proveedorLogic.getProveedor(proveedorId) == null) {\r\n throw new WebApplicationException(\"El recurso /proveedores/\" + proveedorId + \" no existe.\", 404);\r\n }\r\n return ProveedorFacturasResource.class;\r\n }",
"public void setIdPtoServicio(String idPtoServicio);",
"public RecepcionSero getSerologiaById(String id)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Query query = session.createQuery(\"from RecepcionSero s where s.id= :id \");\n query.setParameter(\"id\", id);\n return (RecepcionSero) query.uniqueResult();\n }",
"@GetMapping(\"projekat/{id}\")\n\tprivate Projekat getProjekat(@PathVariable(\"id\") Integer id) {\n\t\treturn projekatRepository.getOne(id);\n\t}",
"Videogioco findVideogiocoById(int id);",
"@GetMapping(\"/{id}\")\n public ResponseEntity<Pricing> getPricing(@PathVariable(\"id\") long id) {\n\tOptional<Pricing> returnedPricing = pricingService.get(id);\n\tPricing pricing = returnedPricing.orElseThrow(() -> new HTTP404Exception(\"Resource Not Found\"));\n\n\tPricingEvent retrievedCreatedEvent = new PricingEvent(this, \"PricingRetrievedEvent\", pricing);\n\teventPublisher.publishEvent(retrievedCreatedEvent);\n\treturn ResponseEntity.ok().body(pricing);\n }",
"@POST\r\n @GET\r\n @Path(\"/v1.0/produto/{nId}\")\r\n @Consumes({ WILDCARD })\r\n @Produces({ APPLICATION_ATOM_XML, APPLICATION_JSON + \"; charset=UTF-8\" })\r\n public Response buscarProduto(@PathParam(value = \"nId\") Integer id) {\r\n\r\n log.debug(\"buscarProduto: {}\", id);\r\n\r\n try {\r\n\r\n Produto produto = produtoSC.buscar(id);\r\n\r\n return respostaHTTP.construirResposta(produto);\r\n\r\n } catch (Exception e) {\r\n\r\n return respostaHTTP.construirRespostaErro(e);\r\n }\r\n }",
"@GetMapping(\"/comptes/{id}\")\n public Position getById(@PathVariable(\"id\") Compte c) {\n return serviceCollaborateur.consulterPosition(c.getId());\n }",
"public Porto getPorto(int id){\n Porto porto = null;\n Connection conn = null;\n try{\n conn = config.conectar();\n if (conn == null){\n return null;\n }\n \n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM Porto WHERE Id_Porto = ?\");\n ps.setInt(1, id); \n ResultSet rs = ps.executeQuery();\n \n if(rs.next()){\n porto = montaPorto(rs);\n }\n conn.close();\n \n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n return porto;\n }",
"@GetMapping(\"/{idDinheiro}\")\n public Dinheiro findById(@PathVariable Long idDinheiro){\n return dinheiroRepository.findById(idDinheiro).get();\n }",
"@RequestMapping(value = \"/bancos/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Banco> getBanco(@PathVariable Long id) {\n log.debug(\"REST request to get Banco : {}\", id);\n Banco banco = bancoService.findOne(id);\n return Optional.ofNullable(banco)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public EstacionServicio getListadoPorId(int id) throws Exception {\n\t\t\t\t\n\t\t\t\tConnection conn = ds.getConnection();\n\t\t\t\tEstacionServicio idLista = null;\n\t\t\t\tPreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM ESTACION_SERVICIO WHERE id = ?\");\n\t\t\t\tstmt.setInt(1, id);\n\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\tif (rs.next()){\n\t\t\t\t\tidLista = new EstacionServicio(rs.getInt(1),rs.getString(2),rs.getDate(3),rs.getFloat(4),rs.getFloat(5),rs.getString(6));\n\t\t\t\t}\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn idLista;\n\t\t\t\n\t\t\t}",
"@GetMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<ActKodu> getActKodu(@PathVariable Long id) {\n log.debug(\"REST request to get ActKodu : {}\", id);\n ActKodu actKodu = actKoduRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(actKodu));\n }",
"@RequestMapping(value=\"/comic/json/{id}\", method=RequestMethod.GET, headers=\"Accept=application/xml, application/json\")\n\tpublic @ResponseBody Comic getComicFromDB(@PathVariable String id) {\n\t\t\n\t\tComic comic = new Comic();\n\t\tcomic.setId(id);\n\t\tcomic.getComicFromDB();\n\t\t\n\t\treturn comic;\n\t\t\n\t}",
"@GetMapping\n public List<Tipovehiculo>listar(){\n return service.listar();\n }",
"@RequestMapping(value = \"/free-cfdis/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Free_cfdi> getFree_cfdi(@PathVariable Long id) {\n log.debug(\"REST request to get Free_cfdi : {}\", id);\n Long idauditevent = new Long(\"36\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n Free_cfdi free_cfdi = free_cfdiService.findOne(id);\n return Optional.ofNullable(free_cfdi)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@RequestMapping(value=\"/by-id/{id}\",method=RequestMethod.GET)\r\n\tpublic ResponseEntity<?> listarById(@PathVariable(\"id\") long id) {\r\n\t\treturn new ResponseEntity<List<Cliente>>(clienteService.listarById(id), HttpStatus.OK);\r\n\t}",
"public Client buscarClientePorId(String id){\n Client client = new Client();\n \n // Faltaaaa\n \n \n \n \n \n return client;\n }",
"@GetMapping(\"/consumer/payment/get/{id}\")\n //@HystrixCommand\n public CommonResult<Payment> getPayment(@PathVariable(\"id\") Long id) {\n return paymentService.getPaymentById(id);\n }",
"@GetMapping(\"/citizens/{id}\")\n @Timed\n public ResponseEntity<Citizen> getCitizen(@PathVariable Long id) {\n log.debug(\"REST request to get Citizen : {}\", id);\n Citizen citizen = citizenService.findOne(id);\n return Optional.ofNullable(citizen)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(\"/{id}/cost\")\n\tpublic Double getItemCost(@PathVariable Long id) {\n\t\treturn itemService.getItemCost(id);\n\t}",
"@ModelAttribute(\"comic\")\n\tpublic Comic getComic(@RequestParam(value = \"id\", required = false) String id) {\n\t\tComic comic = null;\n\n\t\tif (id != null) {\n\t\t\tcomic = comicService.restart().filterBy(\"id\", Integer.parseInt(id)).pick();\n\t\t} else {\n\t\t\tcomic = new Comic();\n\t\t}\n\n\t\treturn comic;\n\t}",
"@AutoEscape\n\tpublic String getIdPtoServicio();",
"@GetMapping(path = \"{id}\")\n public ResponseEntity<ContractorDTO> getContractors(@PathVariable Long id) {\n logger.debug(\"Request to get a Contractor by id\");\n if(id == null || id <= 0) throw new IllegalArgumentException(\"Expects a valid id value > 0\");\n Optional<Contractor> contractor = contractorService.getByID(id);\n if(contractor != null && contractor.isPresent()) return new ResponseEntity(convertToDTO(contractor.get()) , HttpStatus.ACCEPTED);\n throw new ResourceNotFoundException(\"Unable to find any Contractor with id \" + id);\n }",
"@RequestMapping(value = \"/oeuvres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Oeuvre> getOeuvre(@PathVariable Long id) {\n log.debug(\"REST request to get Oeuvre : {}\", id);\n Oeuvre oeuvre = oeuvreRepository.findOne(id);\n return Optional.ofNullable(oeuvre)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.GET)\n ShopRessource getShopRessource(@PathVariable Integer id);",
"@GetMapping(\"/costo-servicios/migratorio/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosMigratorioById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_migratorio_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@GetMapping(\"/getById/{id}\")\n public CityInfo getById(@PathVariable int id){\n return service.getById(id);\n }",
"@GetMapping(value = \"/consultarByID\")\n public ResponseEntity consultar(@RequestParam Long id) {\n return empleadoService.consultar(id);\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }",
"@GetMapping(\"/payment-infos/{id}\")\n @Timed\n public ResponseEntity<PaymentInfoDTO> getPaymentInfo(@PathVariable Long id) {\n log.debug(\"REST request to get PaymentInfo : {}\", id);\n PaymentInfoDTO paymentInfoDTO = paymentInfoService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(paymentInfoDTO));\n }",
"public BigDecimal obterValorDebitoServico(Integer idConta) \n\tthrows ErroRepositorioException;",
"@PostMapping(\"/costo-servicios\")\n @Timed\n public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {\n log.debug(\"REST request to save CostoServicio : {}\", costoServicioDTO);\n if (costoServicioDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new costoServicio cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CostoServicioDTO result = costoServicioService.save(costoServicioDTO);\n return ResponseEntity.created(new URI(\"/api/costo-servicios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@Override\n\tpublic List<Producto> productos(int id) {\n\n\t\tQuery query = entity.createQuery(\"FROM Seccion s WHERE s.id =: id_seccion\",Seccion.class);\n\t\tquery.setParameter(\"id_seccion\", id);\n \n Seccion seccion = (Seccion)query.getSingleResult();\t\n \n return seccion.getProductos();\t\n\t}",
"@Path(\"{id}\") //Dizendo que vou receber um parametro da requisicao que vai vir pela uri\r\n\t@GET //Digo que esse metodo deve ser acessado usando GET\r\n\t@Produces(MediaType.APPLICATION_XML) //Digo que qual eh tipo do retorno,nesse caso XML\r\n\tpublic String busca( @PathParam (\"id\") long id ){\n\t\tCarrinho carrinho = new CarrinhoDAO().busca( id );\r\n\t\t\r\n\t\t\r\n\t\t//retorna um XML do objeto pego\r\n\t\treturn carrinho.toXML();\r\n\t\t\r\n\t}",
"@GET\r\n @Path(\"{proveedorId: \\\\d+}\")\r\n public ProveedorDetailDTO obtenerProveedorID(@PathParam(\"proveedorId\") Long proveedorId) {\r\n ProveedorEntity proveedorEntity = proveedorLogic.getProveedor(proveedorId);\r\n if (proveedorEntity == null) {\r\n throw new WebApplicationException(\"El recurso /proveedores/\" + proveedorId + \" no existe.\", 404);\r\n }\r\n ProveedorDetailDTO proveedorDetailDTO = new ProveedorDetailDTO(proveedorEntity);\r\n return proveedorDetailDTO;\r\n }",
"public Produit getProduit(int theId);",
"@GetMapping(\"/operadoras/{id}\")\n\t@ApiOperation(value=\"Retorna uma Operadora em json\")\n\tpublic Operadoras ListaContatosUnico(@PathVariable(value=\"id\")long id){\n\t\treturn operadorasRepository.findById(id);\n\t\t\n\t}",
"public ctCurso get_ctPuesto(int id) throws RunTime4GLException,\r\n\tSystemErrorException, Open4GLException, IOException, SQLException {\n\t\t\r\n\t\t\r\n\t\tBooleanHolder oplResultado = new BooleanHolder();\r\n\t\tStringHolder opcTexto = new StringHolder();\r\n\r\n\t\tResultSetHolder tt_ctCurso = new ResultSetHolder();\r\n\t\tConnection conexion = DBConexion.getConnection();\r\n\t\tAppServer app = new AppServer(conexion);\r\n\t\tctCurso obj = new ctCurso();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tapp.as_ctCurso_get(\"SISIMB\", id, tt_ctCurso, oplResultado, opcTexto);\r\n\t\t\t\r\n\t\t\tResultSet rs_tt_ctCurso = tt_ctCurso.getResultSetValue();\r\n\r\n\t\t\twhile (rs_tt_ctCurso.next()) {\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tobj.setiIdCurso(rs_tt_ctCurso.getInt(\"iIdCurso\"));\r\n\t\t\t\tobj.setcNombre(rs_tt_ctCurso.getString(\"cNombre\"));\r\n\t\t\t\tobj.setiMinCup(rs_tt_ctCurso.getInt(\"iMinCup\"));\r\n\t\t\t\tobj.setiMaxCup(rs_tt_ctCurso.getInt(\"iMaxCup\"));\r\n\t\t\t\tobj.setDePrecio(rs_tt_ctCurso.getBigDecimal(\"dePrecio\"));\r\n\t\t\t\tobj.setDeIva(rs_tt_ctCurso.getBigDecimal(\"deIva\"));\r\n\t\t\t\tobj.setDeTotal(rs_tt_ctCurso.getBigDecimal(\"deTotal\"));\r\n\t\t\t\tobj.setId(rs_tt_ctCurso.getBytes(\"id\"));\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.err.println(ex);\r\n\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\tapp._release();\r\n\t\t\tDBConexion.closeConnection(conexion);\r\n\t\t}\r\n\t\t\r\n\t\treturn obj;\r\n\t}",
"public SolicitudCreditoDTO obtenerInfoSolicitudCredito(long idSolicitud) throws GeneralException {\n\t\ttry {\n\t\t\treturn em.createQuery(\"SELECT s FROM SolicitudCreditoDTO s \" +\n\t\t\t\t\t\"WHERE s.id = :idSolicitud\", SolicitudCreditoDTO.class)\n\t\t\t\t\t.setParameter(\"idSolicitud\", idSolicitud)\n\t\t\t\t\t.getSingleResult();\n\t\t} catch (Exception ex) {\n\t\t\tthrow new GeneralException(\"ERROR: \" + ex.getMessage());\n\t\t}\n\t}",
"@GetMapping(\"/terrenos/{id}\")\n @Timed\n public ResponseEntity<Terreno> getTerreno(@PathVariable Long id) {\n log.debug(\"REST request to get Terreno : {}\", id);\n Terreno terreno = terrenoRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(terreno));\n }",
"@Override\n public Curso findByIdCurso(int id) throws Exception {\n Curso retValue = null;\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor, c.nombrecurso, c.claveprofesor,\"\n + \" c.clavealumno from curso c, persona p\\n\" +\n \"where c.idprofesor = p.id and idcurso = ?\");\n pstmt.setInt(1, id);\n rs = pstmt.executeQuery();\n if (rs.next()) {\n retValue = new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), rs.getString(\"nombreprofesor\"),rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\"));\n } else {\n retValue = new Curso(0,\" \",0,\"\",\" \",\" \");\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n }",
"@RequestMapping(value = \"/cophongs/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Cophong> getCophong(@PathVariable Long id) {\n log.debug(\"REST request to get Cophong : {}\", id);\n Cophong cophong = cophongRepository.findOne(id);\n return Optional.ofNullable(cophong)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@ApiOperation(\n\t value = \"Metodo para obtener una cita dado su id\",\n\t notes = \"Retorna ERROR 404 si no se encontro la cita\")\n\t@GetMapping(\"/{idCita}\")\n\tpublic ResponseEntity<CitaDTO> getCita(@PathVariable Long idCita){\n\t\tCitaDTO cita = new CitaDTO();\n\t\treturn new ResponseEntity<CitaDTO>(cita, HttpStatus.OK);\n\t}",
"public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }",
"public Collection recuperarAtividadeServicoTipoConsulta(Integer idServicoTipoAtividade) throws ErroRepositorioException{\n\n\t\tCollection retornoConsulta = null;\n\t\tCollection retorno = null;\n\n\t\tSession session = HibernateUtil.getSession();\n\n\t\tString consulta = \"\";\n\n\t\ttry{\n\t\t\tif(idServicoTipoAtividade != null){\n\t\t\t\tconsulta = \"SELECT at.descricao,\" + \"svtpat.numeroExecucao \" + \"FROM ServicoTipoAtividade svtpat \"\n\t\t\t\t\t\t\t\t+ \"LEFT JOIN svtpat.atividade at \" + \"WHERE svtpat.comp_id.idServicoTipo = :idServicoTipoAtividade\";\n\n\t\t\t\tretornoConsulta = (Collection) session.createQuery(consulta).setInteger(\"idServicoTipoAtividade\", idServicoTipoAtividade)\n\t\t\t\t\t\t\t\t.list();\n\n\t\t\t\tif(retornoConsulta.size() > 0){\n\n\t\t\t\t\tretorno = new ArrayList();\n\n\t\t\t\t\tServicoTipoAtividade servicoTipoAtividade = null;\n\t\t\t\t\tAtividade atividade = null;\n\n\t\t\t\t\tfor(Iterator iter = retornoConsulta.iterator(); iter.hasNext();){\n\n\t\t\t\t\t\tObject[] element = (Object[]) iter.next();\n\n\t\t\t\t\t\tservicoTipoAtividade = new ServicoTipoAtividade();\n\t\t\t\t\t\tservicoTipoAtividade.setNumeroExecucao((Short) element[1]);\n\n\t\t\t\t\t\tatividade = new Atividade();\n\t\t\t\t\t\tatividade.setDescricao((String) element[0]);\n\n\t\t\t\t\t\tservicoTipoAtividade.setAtividade(atividade);\n\n\t\t\t\t\t\tretorno.add(servicoTipoAtividade);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\t}",
"@GetMapping(\"/clientes\")\r\n\tpublic List<Cliente> listar(){\r\n\t\treturn iClienteServicio.findAll();\r\n\t\t\r\n\t}",
"@RequestMapping(value = \"/{LivroId}/Autores\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<AutoresDTO>> findAutoress(@PathVariable Integer livroId) {\n\t\tList<Autores> list = AutoresService.findByAutores(livroId);\n\t\tList<AutoresDTO> listDto = list.stream().map(obj -> new AutoresDTO(obj)).collect(Collectors.toList());\n\t\treturn ResponseEntity.ok().body(listDto);\n\t}",
"@GetMapping(\"/byUserId/{id}\")\n public ApiResponse getTurnicet(@PathVariable UUID id){\n return turnicetService.getTurnicetById(id);\n }",
"@RequestMapping(value = \"/estados/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Estado> get(@PathVariable Long id, HttpServletResponse response) {\n log.debug(\"REST request to get Estado : {}\", id);\n Estado estado = estadoRepository.findOne(id);\n if (estado == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(estado, HttpStatus.OK);\n }",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public Invoice getInvoiceById(@PathVariable int id) {\n return DatabaseInvoicePostgre.getInvoiceById(id);\n }",
"private ISciIntInstituicaoCooperativa obterInstituicaoCooperativaSCI(Integer idInstituicao) throws IntegracaoInstituicaoException {\n\t\tISciIntInstituicaoCooperativa instituicaoCooperativa = null;\n\t\ttry{\n\t\t\tSciIntInstituicaoCooperativaDelegate instituicaoCooperativaDelegate = SciIntFabricaDelegate.getInstance().criarInstituicaoCooperativaDelegate();\n\t\t\tinstituicaoCooperativa = instituicaoCooperativaDelegate.obterInstituicaoCooperativaCache(idInstituicao);\n\t\t}catch (BancoobException e) {\n\t\t\tthis.getLogger().erro(e, e.getMessage());\n\t\t\tthrow new IntegracaoInstituicaoException(e);\n\t\t}\n\t\n\t\treturn instituicaoCooperativa;\n\t}",
"@Override\n\tpublic Seccion obtenerSeccion(int id) {\n\n\t\tSeccion seccion = entity.find(Seccion.class, id);\n\t\treturn seccion;\n\t}",
"public List<Tiposservicios> getTiposServicios(HashMap parametros);",
"RequesterVO get(int id);",
"@GetMapping(\"/delete/{id}\")\n public String borrarSocio(@PathVariable Integer id) {\n personaService.borrarSocio(id);\n return \"redirect:/admin/socios\";\n\n }",
"@GET\n\t@Path(\"/gerente/consultarBuenosClientes/{id: \\\\d+}\")\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response consultarBuenosClientes(@PathParam(\"id\") int id)throws Exception\n\t{\n\t\tArrayList<Cliente> mens = null;\n\t\tMaster mas = Master.darInstancia(getPath());\n\t\ttry \n\t\t{\n\t\t\tmens = mas.consultarBuenosClientes(id);\n\t\t\tSystem.out.println(mens);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(mens).build();\n\t}"
] | [
"0.71817654",
"0.70263344",
"0.69728255",
"0.6941389",
"0.6896565",
"0.6745405",
"0.66877896",
"0.6651125",
"0.6630694",
"0.6607453",
"0.65860134",
"0.65646636",
"0.6493038",
"0.6468858",
"0.63925546",
"0.6375652",
"0.6364555",
"0.63351214",
"0.63191515",
"0.6304395",
"0.62738204",
"0.626954",
"0.6246376",
"0.62414426",
"0.6227489",
"0.62080127",
"0.6204451",
"0.6203641",
"0.6202689",
"0.61242944",
"0.61130196",
"0.61080986",
"0.61053866",
"0.607975",
"0.6078161",
"0.6075121",
"0.6071385",
"0.6049603",
"0.60492146",
"0.60354424",
"0.6001514",
"0.5998921",
"0.5994734",
"0.5960228",
"0.59592724",
"0.5949141",
"0.59478337",
"0.5943468",
"0.5931949",
"0.59314764",
"0.5929692",
"0.5923699",
"0.59217733",
"0.59172565",
"0.5903895",
"0.59028536",
"0.5875772",
"0.5872457",
"0.5857549",
"0.5825602",
"0.58193713",
"0.5811595",
"0.58106136",
"0.5809127",
"0.5788549",
"0.5781223",
"0.57763237",
"0.57744974",
"0.5764997",
"0.5756079",
"0.57411224",
"0.57400745",
"0.5728168",
"0.57281435",
"0.5722984",
"0.57229203",
"0.5718238",
"0.57171977",
"0.57022876",
"0.5701876",
"0.56821936",
"0.567979",
"0.56777644",
"0.5676297",
"0.56720084",
"0.5663464",
"0.56622106",
"0.5656499",
"0.5655407",
"0.5653381",
"0.5652547",
"0.56506854",
"0.564905",
"0.5645821",
"0.56447774",
"0.564243",
"0.5635013",
"0.5630495",
"0.5616925",
"0.56145173"
] | 0.8425222 | 0 |
DELETE /costoservicios/:id : delete the "id" costoServicio. | @DeleteMapping("/costo-servicios/{id}")
@Timed
public ResponseEntity<Void> deleteCostoServicio(@PathVariable Long id) {
log.debug("REST request to delete CostoServicio : {}", id);
costoServicioService.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DeleteMapping(\"/selo-cartaos/{id}\")\n public ResponseEntity<Void> deleteSeloCartao(@PathVariable Long id) {\n log.debug(\"REST request to delete SeloCartao : {}\", id);\n seloCartaoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/cotacaos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCotacao(@PathVariable Long id) {\n log.debug(\"REST request to delete Cotacao : {}\", id);\n cotacaoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}",
"@Secured(\"ROLE_ADMIN\")\n @DeleteMapping(value = \"/{id}\")\n public ResponseEntity<Map<String, Object>> delete(@PathVariable Long id) {\n\n try {\n \t\n \tList<ServicioOfrecido> listaServiciosOfrecidos = servOfreServ.buscarPorProfesional(profesionalService.findOne(id));\n \tfor (ServicioOfrecido servOfre : listaServiciosOfrecidos) {\n\t\t\t\tservOfreServ.delete(servOfre.getId_servicioOfrecido());\n\t\t\t}\n \tprofesionalService.delete(id);\n \t\n }catch(DataAccessException e) {\n return new ResponseEntity<Map<String,Object>>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n return new ResponseEntity<Map<String,Object>>(HttpStatus.OK);\n }",
"@DeleteMapping(\"/contabancarias/{id}\")\n @Timed\n public ResponseEntity<Void> deleteContabancaria(@PathVariable Long id) {\n log.debug(\"REST request to delete Contabancaria : {}\", id);\n contabancariaRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/conto-contabiles/{id}\")\n @Timed\n public ResponseEntity<Void> deleteContoContabile(@PathVariable Long id) {\n log.debug(\"REST request to delete ContoContabile : {}\", id);\n contoContabileService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/cuentas/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCuenta(@PathVariable Long id) {\n log.debug(\"REST request to delete Cuenta : {}\", id);\n\n cuentaRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Costo : {}\", id);\n costoRepository.delete(id);\n costoSearchRepository.delete(id);\n }",
"@GetMapping(\"/delete/{id}\")\n public String borrarSocio(@PathVariable Integer id) {\n personaService.borrarSocio(id);\n return \"redirect:/admin/socios\";\n\n }",
"@DeleteMapping(\"/usuarios/{id}\")\n\t public void delete(@PathVariable Integer id) {\n\t service.delete(id);\n\t }",
"@DeleteMapping(\"/cargos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCargo(@PathVariable Long id) {\n log.debug(\"REST request to delete Cargo : {}\", id);\n\n cargoRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/produtos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProduto(@PathVariable Long id) {\n log.debug(\"REST request to delete Produto : {}\", id);\n\n//////////////////////////////////REQUER PRIVILEGIOS\n if (PrivilegioService.podeDeletar(cargoRepository, ENTITY_NAME)) {\n produtoRepository.delete(id);\n } else {\n log.error(\"TENTATIVA DE EXCUIR SEM PERMISSÃO BLOQUEADA! \" + ENTITY_NAME + \" : {}\", id);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"privilegios insuficientes.\", \"Este usuario não possui privilegios sufuentes para deletar esta entidade.\")).body(null);\n }\n//////////////////////////////////REQUER PRIVILEGIOS\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProcesador(@PathVariable Long id) {\n log.debug(\"REST request to delete Procesador : {}\", id);\n procesadorRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProducto(@PathVariable Long id) {\n log.debug(\"REST request to delete Producto : {}\", id);\n productoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/docentes/{id}\")\n public ResponseEntity<Void> deleteDocente(@PathVariable Long id) {\n log.debug(\"REST request to delete Docente : {}\", id);\n docenteService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/estados/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Estado : {}\", id);\n estadoRepository.delete(id);\n }",
"@DeleteMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<Void> deleteActKodu(@PathVariable Long id) {\n log.debug(\"REST request to delete ActKodu : {}\", id);\n actKoduRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/asignacion/{id}\")\n public ResponseEntity<Void> deleteAsignacion(@PathVariable Long id) {\n log.debug(\"REST request to delete Asignacion : {}\", id);\n asignacionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping (\"/produto/{cod}\")\n public ResponseEntity<?> apagarProduto(@PathVariable int cod){\n servico.apagarProduto(cod);\n return ResponseEntity.ok(\"Removido com Sucesso\");\n }",
"@DELETE\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response deleteServicioDeAlojamiento(ServicioDeAlojamiento servicioDeAlojamiento) {\n\t\ttry{\n\t\t\tAlohAndesTransactionManager tm = new AlohAndesTransactionManager( getPath( ) );\n\t\t\ttm.deleteServicioDeAlojamiento(servicioDeAlojamiento);\n\t\t\treturn Response.status(200).entity(servicioDeAlojamiento).build();\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}",
"@RequestMapping( value = \"/{id}\", method = RequestMethod.DELETE )\n public void delete(@PathVariable(value=\"id\") int id){\n classService.delete(id);\n }",
"@DeleteMapping(\"/covs/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCov(@PathVariable Long id) {\n log.debug(\"REST request to delete Cov : {}\", id);\n covService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/oeuvres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteOeuvre(@PathVariable Long id) {\n log.debug(\"REST request to delete Oeuvre : {}\", id);\n oeuvreRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"oeuvre\", id.toString())).build();\n }",
"@ResponseStatus(HttpStatus.OK)\n\t@ResponseBody\n\t@DeleteMapping(value = \"/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void deleteProductoById(@PathVariable(\"id\") Long id) {\n\t\t// Verifica si el producto existe\n\t\tProducto producto = productoService.findById(id);\n\n\t\tInventario invantario = inventarioService.findByCodProducto(producto.getCodProducto());\n\t\tinventarioService.delete(invantario);\n\t}",
"@RequestMapping(value = \"/bancos/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteBanco(@PathVariable Long id) {\n log.debug(\"REST request to delete Banco : {}\", id);\n bancoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"banco\", id.toString())).build();\n }",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"@RequestMapping(value = \"/free-cfdis/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteFree_cfdi(@PathVariable Long id) {\n log.debug(\"REST request to delete Free_cfdi : {}\", id);\n free_cfdiService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"free_cfdi\", id.toString())).build();\n }",
"@RequestMapping(value = \"/fornecedors/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteFornecedor(@PathVariable Long id) {\n log.debug(\"REST request to delete Fornecedor : {}\", id);\n fornecedorService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"fornecedor\", id.toString())).build();\n }",
"@DeleteMapping(\"/modelo-exclusivos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteModeloExclusivo(@PathVariable Long id) {\n log.debug(\"REST request to delete ModeloExclusivo : {}\", id);\n modeloExclusivoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"@DeleteMapping(\"/convites/{id}\")\n @Timed\n public ResponseEntity<Void> deleteConvite(@PathVariable Long id) {\n log.debug(\"REST request to delete Convite : {}\", id);\n conviteService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.DELETE)\n String deleteShopRessourceById(@PathVariable Integer id);",
"@DeleteMapping(\"/{id}\")\n public ResponseEntity<?> deletePricing(@PathVariable(\"id\") long id) {\n\tcheckResourceFound(this.pricingService.get(id));\n\tpricingService.delete(id);\n\treturn ResponseEntity.ok().body(\"Pricing has been deleted successfully.\");\n }",
"@RequestMapping(value=\"/{id}\", method=RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> deletar(@PathVariable(\"id\") Long id){\n\t\tlivrosService.deletar(id);\n\t\treturn ResponseEntity.noContent().build();\n\t}",
"@DeleteMapping(\"{id}\")\n public ResponseEntity<Long> delete(@PathVariable(\"id\") Long id) {\n logger.debug(\"Request to delete Contractor with id \" + id);\n if(id == null || id == 0) throw new IllegalArgumentException(\"Expects a valid id value > 0\");\n Optional<Contractor> contractor = contractorService.getByID(id);\n if(contractor == null || !contractor.isPresent()) throw new ResourceNotFoundException(\"In order to delete Contractor \" + id + \", existing Contractor must be available with same ID\");\n contractorService.deleteByID(id);\n return new ResponseEntity<Long>(id,new HttpHeaders(), HttpStatus.ACCEPTED);\n }",
"@DeleteMapping(\"/clases/{id}\")\r\n\tpublic ResponseEntity<Clase> eliminar(@PathVariable Long id) {\n\t\tOptional<Clase> a = claseRepo.findById(id);\r\n\t\t\r\n\t\t// Evaluate if exists\r\n\t\tif (!a.isPresent()) {\r\n\t\t\t// Return 404\r\n\t\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\t\r\n\t\t// Remove the Order from database\r\n\t\tclaseRepo.delete(a.get());\r\n\t\t\r\n\t\treturn ResponseEntity.noContent().build();\r\n\r\n\t\t\r\n\t}",
"@RequestMapping(\"ville/delete/{id}\")\r\n public String delete(@PathVariable Integer id) {\r\n villeService.deleteVille(id);\r\n return \"redirect:/villes\";\r\n }",
"@DeleteMapping(\"/terrenos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteTerreno(@PathVariable Long id) {\n log.debug(\"REST request to delete Terreno : {}\", id);\n terrenoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(value = \"/eliminar-plato/{id}\")\n public ResponseEntity<Plato> eliminarPlato(@PathVariable(\"id\") Long id){\n\t\tPlato plato_encontrado = miServicioPlatos.eliminarPlato(id);\n \n\t\t// No existe el plato\n\t\tif (plato_encontrado == null){\n return ResponseEntity.notFound().build();\n }\n return ResponseEntity.ok(plato_encontrado);\n }",
"@DeleteMapping(\"/stagiaires/{id}\")\n @Timed\n public ResponseEntity<Void> deleteStagiaire(@PathVariable Long id) {\n log.debug(\"REST request to delete Stagiaire : {}\", id);\n stagiaireService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/citizens/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCitizen(@PathVariable Long id) {\n log.debug(\"REST request to delete Citizen : {}\", id);\n citizenService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"citizen\", id.toString())).build();\n }",
"@RequestMapping(path = \"/{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable long id) {\n service.delete(id);\n }",
"@DELETE\n public void delete(@PathParam(\"id\") String id) {\n }",
"@GetMapping(\"/delete_service\")\n public String deleteService(@RequestParam(value = \"serviceID\") int serviceID){\n serviceServiceIF.deleteService(serviceServiceIF.getServiceByID(serviceID));\n return \"redirect:/admin/service/setup_service\";\n }",
"@DeleteMapping(\"/familles/{id}\")\n @Timed\n public ResponseEntity<Void> deleteFamille(@PathVariable Long id) {\n log.debug(\"REST request to delete Famille : {}\", id);\n familleService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{formularioId}\")\r\n\tpublic ResponseEntity<Object> del(@PathVariable(\"formularioId\") int formularioId) {\r\n\t\tformularioService.delete(formularioId);\r\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\r\n\t}",
"@DELETE\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"/asignaturas/del/{id}\")\n\tpublic Response eliminarAsigConTemas(@PathParam(\"id\") Integer id) {\n\t\tasignaturaBean.eliminarAsigConTema(id);\n\t\tString result = \"Asig con tema Eliminada \";\n\t\treturn Response.status(200).entity(result).build();\n\n\t}",
"@RequestMapping(value = \"/adresses/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteAdresse(@PathVariable Long id) {\n log.debug(\"REST request to delete Adresse : {}\", id);\n adresseService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"adresse\", id.toString())).build();\n }",
"@DeleteMapping(\"/nominees/{id}\")\n @Timed\n public ResponseEntity<Void> deleteNominee(@PathVariable Long id) {\n log.debug(\"REST request to delete Nominee : {}\", id);\n nomineeService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }",
"@DeleteMapping(\"/payment-infos/{id}\")\n @Timed\n public ResponseEntity<Void> deletePaymentInfo(@PathVariable Long id) {\n log.debug(\"REST request to delete PaymentInfo : {}\", id);\n paymentInfoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteCustomerDDPayById(int id);",
"@RequestMapping(value = \"/funcionarios/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteFuncionario(@PathVariable Long id) {\n log.debug(\"REST request to delete Funcionario : {}\", id);\n Funcionario funcionario = funcionarioRepository.findOne(id);\n funcionario.setAtivo(false);\n funcionarioRepository.save(funcionario);\n User user = userService.getUserWithAuthoritiesByLogin(funcionario.getEmail()).get();\n user.setActivated(false);\n userRepository.save(user);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"funcionario\", id.toString())).build();\n }",
"@RequestMapping(value = \"/temperaturas/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTemperatura(@PathVariable Long id) {\n log.debug(\"REST request to delete Temperatura : {}\", id);\n temperaturaRepository.delete(id);\n temperaturaSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"temperatura\", id.toString())).build();\n }",
"@DeleteMapping(\"/familles/{id}\")\n public ResponseEntity<Void> deleteFamille(@PathVariable Long id) {\n log.debug(\"REST request to delete Famille : {}\", id);\n familleService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(value = \"/relacions/delete/solicitudrecibida\", params = {\"amigoId\", \"usuarioId\"})\n @Timed\n public ResponseEntity<Void> deleteSolicitudRecibida(@RequestParam(\"amigoId\") Long amigoId, @RequestParam(\"usuarioId\") Long usuarioId) {\n relacionRepository.deleteByUsuario_IdAndAmigoId(amigoId, usuarioId);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, \"deleteSolicitudRecibida\")).build();\n }",
"@Override\r\n\tpublic void deleteConcursoContrataById(int id) {\n\r\n\t}",
"@Override\r\n\tpublic int delete(int id) {\n\t\treturn jdbcTemplate.update(\"call PKG_ESTADO_CIVIL.PR_DEL_ESTADO_CIVIL(?)\", id);\r\n\t}",
"@DeleteMapping(\"/{id}\")\t\n\t@ApiOperation(value = \"Delete reservation\", notes = \"Service to delete a reservation\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Reservation deleted\"),\n\t\t\t@ApiResponse(code = 404, message = \"Reservation not found\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad request\")\n\t})\n\tpublic ResponseEntity<?> delete(@PathVariable(\"id\")int id){\n\t\tResponseEntity<?> response;\n\t\tReservation reservation = reservationService.get(id);\n\t\tif(reservation==null) {\n\t\t\tMap<String,String> errors = new HashMap<>();\n\t\t\terrors.put(\"Errors\", \"The reservation does not exist\");\n\t\t\tresponse = new ResponseEntity<>(errors,HttpStatus.NOT_FOUND);\n\t\t}else {\n\t\t\treservationService.delete(reservation);\n\t\t\tReservationDTO reservationDTO = new ReservationDTO(reservation);\n\t\t\tresponse = new ResponseEntity<>(reservationDTO,HttpStatus.OK);\n\t\t}\n\t\treturn response;\n\t}",
"@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tcomproRepository.deleteById(id);\n\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }",
"@DeleteMapping(\"/detalle-ordens/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDetalleOrden(@PathVariable Long id) {\n log.debug(\"REST request to delete DetalleOrden : {}\", id);\n detalleOrdenService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"@DeleteMapping(\"/jelos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteJelo(@PathVariable Long id) {\n log.debug(\"REST request to delete Jelo : {}\", id);\n jeloRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void deleteUsuario (int id);",
"public void deleteById(String id);",
"@PostMapping(\"/delete-by-id\")\r\n public String deleteById(Model model,@RequestParam int id) {\r\n try {\r\n service.delete(id);\r\n model.addAttribute(\"msg\",\"Trainee deleted successfuly!\");\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }",
"@DELETE\n @Path(\"{id:\\\\d+}\")\n public String eliminarProductora(@PathParam(\"id\") Long id) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"ProdcutoraResource eliminarcategoria: input: {0}\", id);\n CategoriaEntity entity = categoriaLogic.getCategoria(id);\n if (entity == null) {\n throw new WebApplicationException(\"El recurso /productoras/\" + id + \" no existe.\", 404);\n }\n categoriaLogic.borrarCategoria(id);\n LOGGER.info(\"ProduccionResource eliminarProduccion: output: void\");\n return \"Se borro exitosamente la categoria con id: \" + id;\n }",
"@DeleteMapping(\"/mapeamentos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteMapeamento(@PathVariable Long id) {\n log.debug(\"REST request to delete Mapeamento : {}\", id);\n mapeamentoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"public void delete(Long id) {\n log.debug(\"Request to delete Candidato : {}\", id);\n candidatoRepository.deleteById(id);\n }",
"public void deleteInvoice(int id){\n invoiceService.deleteInvoice(id);\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@GetMapping(\"/misproductos/{id}/eliminar\")\n\tpublic String eliminar(@PathVariable Long id) {\n\t\tProducto p = productoServicio.findById(id);\n\t\tif (p.getCompra() == null)\n\t\t\tproductoServicio.borrar(p);\n\t\treturn \"redirect:/app/misproductos\";\n\t}",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete SolicitacaoExame : {}\", id);\n solicitacaoExameRepository.deleteById(id);\n solicitacaoExameSearchRepository.deleteById(id);\n }",
"@DeleteMapping(\"/delete/{id}\")\n public ResponseEntity delete(@PathVariable int id){\n if(id < 1){\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\n }\n service.delete(id);\n return new ResponseEntity(HttpStatus.OK);\n }",
"@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);",
"@DeleteMapping(path = \"{id}\")\n public ResponseEntity<?> deleteById(@PathVariable Long id) {\n prescriptionService.deleteById(id);\n\n return ResponseEntity.ok().body(\"Prescription with id: \" + id + \" deleted!\");\n }",
"@Override\n\t@Transactional\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tclienteRepository.deleteById(id);\n\t}",
"@DELETE\r\n @Path(\"{proveedorId: \\\\d+}\")\r\n public void eliminarProveedorID(@PathParam(\"proveedorId\") Long proveedorId) {\r\n ProveedorEntity entity = proveedorLogic.getProveedor(proveedorId);\r\n if (entity == null) {\r\n throw new WebApplicationException(\"El recurso /proveedores/\" + proveedorId + \" no existe.\", 404);\r\n }\r\n proveedorLogic.deleteProveedor(proveedorId);\r\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete CaraterDaInternacao : {}\", id);\n caraterDaInternacaoRepository.deleteById(id);\n caraterDaInternacaoSearchRepository.deleteById(id);\n }",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void deleteCita(int id){\n try {\n PreparedStatement preparedStatement = con.prepareStatement(\"DELETE FROM paciente WHERE id_paciente=?;\");\n preparedStatement.setInt(1,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@DeleteMapping(\"projekat/{id}\")\n\tpublic ResponseEntity<Projekat> deleteProjekat(@PathVariable(\"id\") Integer id) {\n\t\tif (!projekatRepository.existsById(id))\n\t\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t\tprojekatRepository.deleteById(id);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tdetalleCarritoRepository.deleteById(id);\n\t}",
"@DeleteMapping(\"/invoices/{id}\")\n\tpublic ResponseEntity<Void> deleteInvoice(@PathVariable Long id) {\n\t\tlog.debug(\"REST request to delete Invoice : {}\", id);\n\t\tinvoiceService.delete(id);\n\t\treturn ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete Kohnegi : {}\", id);\n kohnegiRepository.deleteById(id);\n }"
] | [
"0.76351726",
"0.7618672",
"0.7459123",
"0.73029447",
"0.7291028",
"0.7284129",
"0.7276322",
"0.7263606",
"0.723154",
"0.72027546",
"0.7133476",
"0.70978034",
"0.7093471",
"0.7018604",
"0.69759816",
"0.6930785",
"0.69235307",
"0.68960583",
"0.68812805",
"0.68684936",
"0.68681484",
"0.68520534",
"0.6793505",
"0.67926955",
"0.6781383",
"0.67719483",
"0.67641836",
"0.6760053",
"0.6755544",
"0.6743626",
"0.67347676",
"0.6722737",
"0.67217535",
"0.66874087",
"0.6685249",
"0.66835696",
"0.66833335",
"0.6662117",
"0.66499335",
"0.66472673",
"0.66463035",
"0.66443855",
"0.6643572",
"0.66403675",
"0.6639443",
"0.66255844",
"0.6618908",
"0.66154087",
"0.6605159",
"0.6598793",
"0.65965986",
"0.6594147",
"0.6588648",
"0.6588261",
"0.65855753",
"0.65701926",
"0.65485775",
"0.6546381",
"0.6533472",
"0.65285265",
"0.65262455",
"0.6516312",
"0.6514335",
"0.6514335",
"0.65106785",
"0.65052116",
"0.65025485",
"0.6501461",
"0.64767104",
"0.6474227",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.64739716",
"0.647054",
"0.64686733",
"0.64657956",
"0.6465451",
"0.64621794",
"0.64579564",
"0.6456685",
"0.6448827",
"0.644588",
"0.644181",
"0.64402336",
"0.643919",
"0.6437957",
"0.6437957",
"0.6437957",
"0.643027",
"0.64277375",
"0.6414495",
"0.6391862",
"0.6391322"
] | 0.88780063 | 0 |
SEARCH /_search/costoservicios?query=:query : search for the costoServicio corresponding to the query. | @GetMapping("/_search/costo-servicios")
@Timed
public List<CostoServicioDTO> searchCostoServicios(@RequestParam String query) {
log.debug("REST request to search CostoServicios for query {}", query);
return costoServicioService.search(query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/_search/selo-cartaos\")\n public List<SeloCartao> searchSeloCartaos(@RequestParam String query) {\n log.debug(\"REST request to search SeloCartaos for query {}\", query);\n return seloCartaoService.search(query);\n }",
"@Override\n @Transactional(readOnly = true)\n public Page<CostoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Costos for query {}\", query);\n Page<Costo> result = costoSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(costoMapper::toDto);\n }",
"List<ShipmentInfoPODDTO> search(String query);",
"Page<ConsultationInfoDTO> search(String query, Pageable pageable);",
"List<Corretor> search(String query);",
"public SearchResponse search(SearchRequest request) throws SearchServiceException;",
"Page<Tbc_analises_componente> search(String query, Pageable pageable);",
"Page<TypeBonDTO> search(String query, Pageable pageable);",
"@GetMapping(\"/_search/payment-infos\")\n @Timed\n public List<PaymentInfoDTO> searchPaymentInfos(@RequestParam String query) {\n log.debug(\"REST request to search PaymentInfos for query {}\", query);\n return paymentInfoService.search(query);\n }",
"List<ResultDTO> search(String query);",
"@Transactional(readOnly = true)\n public Page<CaraterDaInternacaoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of CaraterDaInternacaos for query {}\", query);\n return caraterDaInternacaoSearchRepository.search(queryStringQuery(query), pageable)\n .map(caraterDaInternacaoMapper::toDto);\n }",
"Page<ServiceUserDTO> search(String query, Pageable pageable);",
"List<Revenue> search(String query);",
"Page<RefZoneGeoDTO> search(String query, Pageable pageable);",
"@Query(\"SELECT entity FROM Clientes entity WHERE entity.nome like concat('%',coalesce(:search,''),'%') OR entity.negocio like concat('%',coalesce(:search,''),'%') OR entity.sigla like concat('%',coalesce(:search,''),'%') OR entity.status like concat('%',coalesce(:search,''),'%')\")\n public Page<Clientes> generalSearch(@Param(value=\"search\") java.lang.String search, Pageable pageable);",
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"SearchResponse query(SearchRequest request, Map<SearchParam, String> params);",
"List<OwnerOperatorDTO> search(String query);",
"private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}",
"@Override\n public List<ClarifaiProcessDTO> search(String query) {\n log.debug(\"Request to search ClarifaiProcesses for query {}\", query);\n return StreamSupport\n .stream(clarifaiProcessSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(clarifaiProcessMapper::toDto)\n .collect(Collectors.toList());\n }",
"@RequestMapping(value = \"/_search/cophongs\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Cophong> searchCophongs(@RequestParam String query) {\n log.debug(\"REST request to search Cophongs for query {}\", query);\n return StreamSupport\n .stream(cophongSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"List<SearchResult> search(SearchQuery searchQuery);",
"List<Cemetery> search(String query);",
"@RequestMapping(method = RequestMethod.GET, value = \"/search\")\n public List<String> search(@RequestParam(name = \"query\") String query) {\n return searchService.search(query);\n }",
"@Query(\"SELECT entity.tiposBancos FROM VwBancos entity WHERE entity.clientes.id = :id AND (entity.tiposBancos.dsTipoBanco like concat('%',coalesce(:search,''),'%') OR entity.tiposBancos.dsIconeBanco like concat('%',coalesce(:search,''),'%'))\")\n public Page<TiposBancos> listTiposBancosGeneralSearch(@Param(value=\"search\") java.lang.String search, @Param(value=\"id\") java.lang.Double id, Pageable pageable);",
"@GetMapping(\"/costo-servicios\")\n @Timed\n public List<CostoServicioDTO> getAllCostoServicios() {\n log.debug(\"REST request to get all CostoServicios\");\n return costoServicioService.findAll();\n }",
"public interface ServiceProducto {\n\n// @GET(\"/sites/MLA/search?q=tennis\")\n// Call<ContenedorDeProductos>getProductos();\n\n @GET(\"/sites/MLA/search\")\n Call<ContenedorDeProductos>getProductos(@Query(\"q\") String terminoABuscar);\n\n}",
"public void search(Map<String, String> searchParam);",
"@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);",
"@Override\n @Transactional(readOnly = true)\n public Page<AdChoiseDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of AdChoises for query {}\", query);\n Page<AdChoise> result = adChoiseSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(adChoiseMapper::toDto);\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}",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"Page<UserPortfolioDTO> search(String query, Pageable pageable);",
"List<ResultDTO> searchUser(String query);",
"Page<ParaUserDTO> search(String query, Pageable pageable);",
"@Override\n public Page<AlunoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Alunos for query {}\", query);\n Page<Aluno> result = alunoSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(alunoMapper::toDto);\n }",
"@RequestMapping(value = \"/_search/bancos\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<Banco>> searchBancos(@RequestParam String query, Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to search for a page of Bancos for query {}\", query);\n Page<Banco> page = bancoService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/bancos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Transactional(readOnly = true)\n public Page<FormaDeAgendamentoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of FormaDeAgendamentos for query {}\", query);\n return formaDeAgendamentoSearchRepository.search(queryStringQuery(query), pageable)\n .map(formaDeAgendamentoMapper::toDto);\n }",
"@Query(\"FROM Consulta c WHERE c.paciente.dni = :dni OR LOWER(c.paciente.nombres) \"\n\t\t\t+ \"LIKE %:nombreCompleto% OR LOWER(c.paciente.apellidos) \"\n\t\t\t+ \"LIKE %:nombreCompleto%\")\n\tList<Consulta> buscar(@Param(\"dni\") String dni, @Param(\"nombreCompleto\") String nombreCompleto);",
"@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (entity.nome like concat('%',coalesce(:search,''),'%'))\")\n public Page<VwBancos> findVwBancosGeneralSearch(@Param(value=\"search\") java.lang.String search, @Param(value=\"id\") java.lang.Double id, Pageable pageable);",
"@Transactional(readOnly = true)\n public Page<SolicitacaoExameDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of SolicitacaoExames for query {}\", query);\n return solicitacaoExameSearchRepository.search(queryStringQuery(query), pageable)\n .map(solicitacaoExameMapper::toDto);\n }",
"public void handleSearchQuery(String query) {\n // Iterate through Spot list looking for a Spot whose name matches the search query String\n for (Spot spot : mSpotList) {\n if (spot.getName().equalsIgnoreCase(query)) {\n mMap.addCircle(new CircleOptions()\n .center(new LatLng(spot.getLatLng().latitude, spot.getLatLng().longitude))\n .radius(10)\n .strokeColor(Color.BLACK) // Border color of the circle\n // Fill color of the circle.\n // 0x represents, this is an hexadecimal code\n // 55 represents percentage of transparency. For 100% transparency, specify 00.\n // For 0% transparency ( ie, opaque ) , specify ff\n // The remaining 6 characters(00ff00) specify the fill color\n .fillColor(0x8800ff00)\n // Border width of the circle\n .strokeWidth(2)); // Todo: Make this transparent blue?\n\n // To change the position of the camera, you must specify where you want\n // to move the camera, using a CameraUpdate. The Maps API allows you to\n // create many different types of CameraUpdate using CameraUpdateFactory.\n // Animate the move of the camera position to spot's coordinates and zoom in\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(spot.getLatLng(), 18)),\n 2000, null);\n break;\n }\n }\n }",
"@Override\r\n\tpublic <T> SearchResult<T> search(String index, String type, String query, Class<T> clz) throws ElasticSearchException{\r\n\t\tQuery esQuery = getQuery(this.indexName, type, query);\r\n\t\tQueryResponse response = query(esQuery);\r\n\t\t\r\n\t\tSearchResult<T> result = new SearchResult<T>();\t\t\r\n\t\tresult.setHits(response.getHits(clz));\r\n\t\t\r\n\t\tif(response.hasAggregations())\r\n\t\t\tresult.setAggregations(response.getAggregations());\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@Override\r\n public boolean onQueryTextSubmit(String query) {\n searchView.setQuery(\"\", true);\r\n searchView.setIconified(true);\r\n AuxiliarHelper.getAuxiliar().setModificado(false);\r\n\r\n JSON_URL = Uri.encode(\"https://www.e-ranti.com/servicioWeb-1.0/footpathperu/producto/listar/\" + query + \"/\" + AuxiliarHelper.getAuxiliar().getIdioma() + 1, ALLOWED_URI_CHARS);\r\n jsoBandera = false;\r\n iniciarCarga();\r\n new BanderasHelper().getBandera().setBanderaInicio(true);\r\n return true;\r\n }",
"public List<SearchProfissionaisDataResponse> search(String userInput, String searchOption) throws Exception {\n\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"searchInput\", userInput));\n params.add(new BasicNameValuePair(\"searchType\", searchOption));\n DefaultHttpClient httpClient = new DefaultHttpClient();\n\n\n try {\n\n HttpPost httpPost = new HttpPost(searchURL);\n httpPost.setEntity(new UrlEncodedFormEntity(params));\n\n HttpResponse httpResponse = httpClient.execute(httpPost);\n\n HttpEntity entity = httpResponse.getEntity();\n\n if (entity != null) {\n InputStream instream = entity.getContent();\n String json = toString(instream);\n instream.close();\n\n Log.d(\"JSON RESPONSE:\", json);\n\n List<SearchProfissionaisDataResponse> disorders = getDiseases(json);\n return disorders;\n }\n } catch (Exception e) {\n throw e;\n }\n return null;\n }",
"@Override\n\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://shopper.cnet.com/1770-5_9-0.html\");\n\t\t\n\t\ttry\n\t\t{\n//\t\t\tformatter.addQuery(\"url\", \"search-alias\");\n\t\t\tif(searchKeys.get(ProductSearch.BRAND_NAME)!=null && searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)\n\t\t\t{\n\t\t\t\tformatter.addQuery(\"query\",(String)searchKeys.get(ProductSearch.BRAND_NAME) +\" \"+ (String)searchKeys.get(ProductSearch.PRODUCT_NAME)+\" \" );\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\tif(color!=null){\n\t\t\t\tformatter.addQuery(\"color\",color);\n\t\t\t}\n\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t{\n\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\n\t\t\t\tformatter.addQuery(\" Price between $\",min +\" to $\"+max);\n\t\t\t}\n\t\t\tformatter.addQuery(\"tag\",\"srch\");\n\t\t\t\n\t\t\tString finalQueryString=\"http://shopper.cnet.com/1770-5_9-0.html\"+formatter.getQueryString();\n\t\t\tSystem.out.println(\"query string :\"+formatter.getQueryString());\n\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\tprocessMyNodes(finalQueryString);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\t\n\t}",
"@Nullable\r\n public static List<JSONArray> sendSearchRequest(final Context context, String query)\r\n {\r\n List<JSONArray> content = new ArrayList<>();\r\n\r\n SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n User user = sharedPreferencesManager.retrieveUser();\r\n\r\n String fixedURL = Utils.fixUrl(Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT\r\n + \"/search/\" + user.getId() + \"/\" + query);\r\n\r\n RequestFuture<JSONArray> future = RequestFuture.newFuture();\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" + para realizar una búsqueda\");\r\n\r\n // Creamos una peticion\r\n final JsonArrayRequest jsonObjReq = new JsonArrayRequest(Request.Method.GET\r\n , fixedURL\r\n , null\r\n , future\r\n , future);\r\n\r\n // La mandamos a la cola de peticiones\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n\r\n try\r\n {\r\n JSONArray response = future.get(20, TimeUnit.SECONDS);\r\n\r\n content.add(response);\r\n\r\n } catch (InterruptedException | ExecutionException | TimeoutException e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n return content;\r\n }",
"Search getSearch();",
"List<Codebadge> search(String query);",
"@RequestMapping(value = \"/_search/customerOrders/{query:.+}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerOrder> searchCustomerOrders(@PathVariable String query) {\n log.debug(\"REST request to search CustomerOrders for query {}\", query);\n return StreamSupport\n .stream(customerOrderSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"@GetMapping(\"/search\")\n public List<BannerDTO> searchByTitle(@RequestParam(\"title\") String title){\n return bannerService.findByTitle(title);\n }",
"SearchResultCompany search(String keywords);",
"@GetMapping(\"/_search/tbc-analises-componentes\")\n @Timed\n public ResponseEntity<List<Tbc_analises_componente>> searchTbc_analises_componentes(@RequestParam String query, @ApiParam Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to search for a page of Tbc_analises_componentes for query {}\", query);\n Page<Tbc_analises_componente> page = tbc_analises_componenteService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/tbc-analises-componentes\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"public interface SearchService {\n\n /**\n * Parameter that is appended to the generated links that contains the positive search terms and phrases of the\n * search expression. For several terms it occurs several times.\n */\n String PARAMETER_SEARCHTERM = \"search.term\";\n\n /**\n * Represents a result of the search consisting of a target page and one or more matching subresources. For use by\n * the search result renderer.\n */\n interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }\n\n /**\n * Fulltext search for resources. The resources are grouped if they are subresources of one target page, as\n * determined by the parameter targetResourceFilter.\n * <p>\n * Limitations: if the searchExpression consists of several search terms (implicitly combined with AND) this finds\n * only resources where a single property matches the whole search condition, i.e., all those terms. If several\n * resources of a page contain different subsets of those terms, the page is not found.\n *\n * @param context The context we use for the search.\n * @param selectors a selector string to determine the right search strategy, e.g. 'page'\n * @param root Optional parameter for the node below which we search.\n * @param searchExpression Mandatory parameter for the fulltext search expression to search for. For the syntax\n * see\n * {@link QueryConditionDsl.QueryConditionBuilder#contains(String)}\n * . It is advisable to avoid using AND and OR.\n * @param searchFilter an optional filter to drop resources to ignore.\n * @return possibly empty list of results\n * @see com.composum.sling.core.mapping.jcr.ResourceFilterMapping\n */\n @NotNull\n List<Result> search(@NotNull BeanContext context, @NotNull String selectors,\n @NotNull String root, @NotNull String searchExpression, @Nullable ResourceFilter searchFilter,\n int offset, @Nullable Integer limit)\n throws RepositoryException, SearchTermParseException;\n\n\n interface LimitedQuery {\n\n /**\n * Executes the query with the given limit; returns a pair of a boolean that is true when we are sure that all\n * results have been found in spite of the limit, and the results themselves.\n */\n Pair<Boolean, List<Result>> execQuery(int matchLimit);\n }\n\n /**\n * Execute the query with raising limit until the required number of results is met. We don't know in advance how\n * large we have to set the limit in the query to get all neccesary results, since each page can have an a priori\n * unknown number of matches. Thus, the query is executed with an estimated limit, and is reexecuted with tripled\n * limit if the number of results is not sufficient and there are more limits.\n *\n * @return up to limit elements of the result list with the offset first elements skipped.\n */\n @NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);\n}",
"@GetMapping(path = \"/products/search/{query}\")\n public ResponseEntity<List<Product>> searchProducts(@PathVariable(name=\"query\") String query){\n return ResponseEntity.ok(productService.search(query));\n }",
"public interface RecipeService {\n\n @GET(\"/search\")\n Observable<SearchResult> search(@Query(\"q\") String q,\n @Query(\"app_id\") String appid,\n @Query(\"app_key\") String appkey,\n @Query(\"from\") String from,\n @Query(\"to\") String to);\n\n}",
"List<LectureDTO> search(String query);",
"@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);",
"@Override\n @Transactional(readOnly = true)\n public List<AdsDTO> search(String query) {\n log.debug(\"Request to search Ads for query {}\", query);\n return StreamSupport\n .stream(adsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(adsMapper::toDto)\n .collect(Collectors.toList());\n }",
"SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);",
"@Override\n @Transactional(readOnly = true)\n public Page<JeuDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Jeus for query {}\", query);\n Page<Jeu> result = jeuSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(jeuMapper::toDto);\n }",
"private void search(String product) {\n // ..\n }",
"@Transactional(readOnly = true)\n public Page<Tbc_fazenda> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Tbc_fazendas for query {}\", query);\n Page<Tbc_fazenda> result = tbc_fazendaSearchRepository.search(queryStringQuery(query), pageable);\n return result;\n }",
"@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }",
"@Query(\"SELECT entity.tiposBancos FROM VwBancos entity WHERE entity.clientes.id = :id AND (:cdTipoBanco is null OR entity.tiposBancos.cdTipoBanco = :cdTipoBanco) AND (:dsTipoBanco is null OR entity.tiposBancos.dsTipoBanco like concat('%',:dsTipoBanco,'%')) AND (:dsIconeBanco is null OR entity.tiposBancos.dsIconeBanco like concat('%',:dsIconeBanco,'%'))\")\n public Page<TiposBancos> listTiposBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"dsTipoBanco\") java.lang.String dsTipoBanco, @Param(value=\"dsIconeBanco\") java.lang.String dsIconeBanco, Pageable pageable);",
"@Transactional(readOnly = true)\n public Page<DRkDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of DRks for query {}\", query);\n return dRkSearchRepository.search(queryStringQuery(query), pageable).map(dRkMapper::toDto);\n }",
"@GetMapping( value = CustomerRestURIConstants.GET_CUSTOMERS_BY_SEARCH )\n\tpublic ResponseEntity<List<Customer>> getCustomerBySearchParameter(@PathVariable(\"searchInput\") String searchInput) {\n\t\tList<Customer> custList = customerService.getCustomerBySearchParameter(searchInput);\n\t\treturn ResponseEntity.ok().body(custList);\n\t}",
"Page<T> search(Pageable pageable, String query);",
"public interface Service {\n\n\n @GET(\"/3/search/movie\")\n Call<Lista> getSearch(@Query(\"api_key\") String apiKey, @Query(\"query\") String queryString);\n\n}",
"@GetMapping(\"/_search/data-set-operations\")\n @Timed\n public ResponseEntity<List<DataSetOperationDTO>> searchDataSetOperations(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of DataSetOperations for query {}\", query);\n Page<DataSetOperation> page = dataSetOperationSearchRepository.search(queryStringQuery(query), pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/data-set-operations\");\n return new ResponseEntity<>(dataSetOperationMapper.toDto(page.getContent()), headers, HttpStatus.OK);\n }",
"@GET(\"search.php\")\n Call<MealData> getMealsBySearchQuery(@Query(\"s\") String searchKeyword);",
"@Transactional(readOnly = true) \n public List<Product> search(String query) {\n \n log.debug(\"REST request to search Products for query {}\", query);\n return StreamSupport\n .stream(productSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);",
"List<Transfer> search(TransferQuery query) throws DaoException;",
"Customer search(String login);",
"@GET(\"search.ashx?num_of_results=3\")\n Observable<AutoCompleteApiResponse> getCity(@Query(\"q\") String query);",
"private RequestResponse handleSearchRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n SearchParameters searchParameters = new RequestToSearchParameters().convert(request);\n return this.searchService.query(core, searchParameters);\n }",
"void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }",
"@GetMapping(\"/_search/company-types\")\n @Timed\n public List<CompanyType> searchCompanyTypes(@RequestParam String query) {\n log.debug(\"REST request to search CompanyTypes for query {}\", query);\n return StreamSupport\n .stream(companyTypeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"@GetMapping(\"/_search/payments\")\n @Timed\n public ResponseEntity<List<PaymentDTO>> searchPayments(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of Payments for query {}\", query);\n Page<PaymentDTO> page = paymentQueryService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/payments\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"SearchResponse search(Pageable pageable, QueryBuilder query, Collection<AggregationBuilder> aggregations);",
"public List<Contact> searchContacts(Map<SearchTerm,String> criteria);",
"@GetMapping(\"/_search/charts\")\n @Timed\n public List<Chart> searchCharts(@RequestParam String query) {\n log.debug(\"REST request to search Charts for query {}\", query);\n List<Chart> list = StreamSupport\n .stream(chartSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return list;\n }",
"List<TypeTreatmentPlanStatuses> search(String query);",
"@RequestMapping(value=\"/searchresults\", method = RequestMethod.GET)\n\tpublic String searchResults(@RequestParam(value=\"search\", required=false) String search, Model model, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"page\", required=false) Integer page, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"status\", required=false) String status, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agent\", required=false) String agent, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"agentDisplay\", required=false) String agentDisplay, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateFrom\", required=false) String dateFrom, \n\t\t\t\t\t\t\t\t@RequestParam(value=\"dateTo\", required=false) String dateTo) throws Exception {\n\t\tif (page==null) {\n\t\t\tpage=0;\n\t\t}\n\t\tif (search==null) {\n\t\t\tsearch=\"\";\n\t\t}\n\t\tInteger INCREMENT = 20;\n\t\tPageable pageable = PageRequest.of(page, INCREMENT);\n\t\tsearch = search.trim();\n\t\tsearch = search.replace(\"\\\"\", \"\"); //remove quotes\n\t\tsearch = search.replaceAll(\"( )+\", \" \"); //remove extra spaces\n\t\t\n\t\tRMapSearchParams params = paramsFactory.newInstance();\n\t\tparams.setSystemAgents(agent);\n\t\tRMapStatusFilter statusFilter = RMapStatusFilter.getStatusFromTerm(status);\n\t\tstatusFilter = (statusFilter==null) ? RMapStatusFilter.ALL : statusFilter;\t\n\t\tparams.setStatusCode(statusFilter);\n\t\tparams.setDateRange(new DateRange(dateFrom,dateTo));\n\t\t\n\t\tFacetAndHighlightPage<DiscoSolrDocument> indexerResults = searchService.searchDiSCOs(search, params, pageable);\n\t\t\n\t\tboolean hasExactMatch = dataDisplayService.isResourceInRMap(search, params);\n\t\t\n\t\tmodel.addAttribute(\"search\", search);\n\t\tmodel.addAttribute(\"numRecords\",indexerResults.getTotalElements());\n\t\tmodel.addAttribute(\"matches\",indexerResults.getHighlighted());\n\t\t\t\t\n\t\tmodel.addAttribute(\"statusFacets\",indexerResults.getFacetResultPage(\"disco_status\").getContent());\n\t\tmodel.addAttribute(\"agentFacets\",indexerResults.getPivot(\"agent_uri,agent_name\"));\n\t\tmodel.addAttribute(\"pageable\", pageable);\n\t\tmodel.addAttribute(\"agent\", agent);\n\t\tmodel.addAttribute(\"agentDisplay\", agentDisplay);\n\t\tmodel.addAttribute(\"dateFrom\", dateFrom);\n\t\tmodel.addAttribute(\"dateTo\", dateTo);\n\t\tmodel.addAttribute(\"status\", status);\n\t\tmodel.addAttribute(\"hasExactMatch\", hasExactMatch);\n\t\t\t\t\n\t\treturn \"searchresults\";\t\t\n\t}",
"Page<ChatDTO> search(String query, Pageable pageable);",
"@RequestMapping(value = \"search\")\n \tpublic String search(@RequestParam String q) {\n \t\tLong incidentId = Long.valueOf(q);\n \t\treturn \"forward:/incident/\" + incidentId;\n \t}",
"Page<T> search(Pageable pageable, QueryBuilder query);",
"@Override\r\n\tpublic List<Client> search(HttpServletRequest request) throws ParseException {\n\t\tClientSearchBean searchBean = new ClientSearchBean();\r\n\t\tsearchBean.setNameLike(getStringFilter(\"name\", request));\r\n\t\tsearchBean.setGender(getStringFilter(GENDER, request));\r\n\t\tDateTime[] birthdate = getDateRangeFilter(BIRTH_DATE, request);//TODO add ranges like fhir do http://hl7.org/fhir/search.html\r\n\t\tDateTime[] deathdate = getDateRangeFilter(DEATH_DATE, request);\r\n\t\tif (birthdate != null) {\r\n\t\t\tsearchBean.setBirthdateFrom(birthdate[0]);\r\n\t\t\tsearchBean.setBirthdateTo(birthdate[1]);\r\n\t\t}\r\n\t\tif (deathdate != null) {\r\n\t\t\tsearchBean.setDeathdateFrom(deathdate[0]);\r\n\t\t\tsearchBean.setDeathdateTo(deathdate[1]);\r\n\t\t}\r\n\t\t\r\n\t\tString clientId = getStringFilter(\"identifier\", request);\r\n\t\tif (!StringUtils.isEmptyOrWhitespaceOnly(clientId)) {\r\n\t\t\tClient c = clientService.find(clientId);\r\n\t\t\tList<Client> clients = new ArrayList<Client>();\r\n\t\t\tclients.add(c);\r\n\t\t\treturn clients;\r\n\t\t}\r\n\t\t\r\n\t\tAddressSearchBean addressSearchBean = new AddressSearchBean();\r\n\t\taddressSearchBean.setAddressType(getStringFilter(ADDRESS_TYPE, request));\r\n\t\taddressSearchBean.setCountry(getStringFilter(COUNTRY, request));\r\n\t\taddressSearchBean.setStateProvince(getStringFilter(STATE_PROVINCE, request));\r\n\t\taddressSearchBean.setCityVillage(getStringFilter(CITY_VILLAGE, request));\r\n\t\taddressSearchBean.setCountyDistrict(getStringFilter(COUNTY_DISTRICT, request));\r\n\t\taddressSearchBean.setSubDistrict(getStringFilter(SUB_DISTRICT, request));\r\n\t\taddressSearchBean.setTown(getStringFilter(TOWN, request));\r\n\t\taddressSearchBean.setSubTown(getStringFilter(SUB_TOWN, request));\r\n\t\tDateTime[] lastEdit = getDateRangeFilter(LAST_UPDATE, request);//TODO client by provider id\r\n\t\t//TODO lookinto Swagger https://slack-files.com/files-pri-safe/T0EPSEJE9-F0TBD0N77/integratingswagger.pdf?c=1458211183-179d2bfd2e974585c5038fba15a86bf83097810a\r\n\t\tString attributes = getStringFilter(\"attribute\", request);\r\n\t\tsearchBean.setAttributeType(StringUtils.isEmptyOrWhitespaceOnly(attributes) ? null : attributes.split(\":\", -1)[0]);\r\n\t\tsearchBean.setAttributeValue(StringUtils.isEmptyOrWhitespaceOnly(attributes) ? null : attributes.split(\":\", -1)[1]);\r\n\t\t\r\n\t\treturn clientService.findByCriteria(searchBean, addressSearchBean, lastEdit == null ? null : lastEdit[0],\r\n\t\t lastEdit == null ? null : lastEdit[1]);\r\n\t}",
"public String searchCustomerOfPromotion() throws Exception {\n\t\tactionStartTime = new Date();\n\t\tif (promotionId == null || promotionId <= 0) {\n\t\t\tresult.put(\"rows\", new ArrayList<PromotionCustomerVO>());\n\t\t\tresult.put(\"total\", 0);\n\t\t\treturn JSON;\n\t\t}\n\t\ttry {\n\t\t\tPromotionCustomerFilter filter = new PromotionCustomerFilter();\n\t\t\tfilter.setPromotionId(promotionId);\n\t\t\tfilter.setCode(code);\n\t\t\tfilter.setName(name);\n\t\t\tfilter.setAddress(address);\n\t\t\tfilter.setIsCustomerOnly(false);\n\t\t\tif (shopId == null || shopId == 0) {\n\t\t\t\tfilter.setStrListShopId(getStrListShopId());\n\t\t\t} else {\n\t\t\t\tfilter.setShopId(shopId);\n\t\t\t}\n\t\t\tObjectVO<PromotionCustomerVO> obj = promotionProgramMgr.getCustomerInPromotionProgram(filter);\n\t\t\tList<PromotionCustomerVO> lst = obj.getLstObject();\n\n\t\t\tList<TreeGridNode<PromotionCustomerVO>> tree = new ArrayList<TreeGridNode<PromotionCustomerVO>>();\n\t\t\tif (lst == null || lst.size() == 0) {\n\t\t\t\tresult.put(\"rows\", tree);\n\t\t\t\treturn JSON;\n\t\t\t}\n\n\t\t\t// Tao cay\n\t\t\tint i, sz = lst.size();\n\t\t\tPromotionCustomerVO vo = null;\n\t\t\tLong shId = currentUser.getShopRoot().getShopId();\n\t\t\tfor (i = 0; i < sz; i++) {\n\t\t\t\tvo = lst.get(i);\n\t\t\t\tif (vo.getIsCustomer() == 0 && shId.equals(vo.getId())) {\n\t\t\t\t\ti++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//PromotionStaffVO vo = lst.get(0);\n\t\t\tTreeGridNode<PromotionCustomerVO> node = new TreeGridNode<PromotionCustomerVO>();\n\t\t\tnode.setNodeId(\"sh\" + vo.getId());\n\t\t\tnode.setAttr(vo);\n\t\t\tnode.setState(ConstantManager.JSTREE_STATE_OPEN);\n\t\t\tnode.setText(vo.getCustomerCode() + \" - \" + vo.getCustomerName());\n\t\t\tList<TreeGridNode<PromotionCustomerVO>> chidren = new ArrayList<TreeGridNode<PromotionCustomerVO>>();\n\t\t\tnode.setChildren(chidren);\n\t\t\ttree.add(node);\n\n\t\t\tTreeGridNode<PromotionCustomerVO> tmp;\n\t\t\tTreeGridNode<PromotionCustomerVO> tmp2;\n\t\t\tfor (; i < sz; i++) {\n\t\t\t\tvo = lst.get(i);\n\n\t\t\t\ttmp2 = getNodeFromTree(tree, \"sh\" + vo.getParentId());\n\t\t\t\tif (tmp2 != null) {\n\t\t\t\t\ttmp = new TreeGridNode<PromotionCustomerVO>();\n\t\t\t\t\ttmp.setAttr(vo);\n\t\t\t\t\tif (0 == vo.getIsCustomer()) {\n\t\t\t\t\t\ttmp.setNodeId(\"sh\" + vo.getId());\n\t\t\t\t\t\ttmp.setState(ConstantManager.JSTREE_STATE_OPEN);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttmp.setNodeId(\"st\" + vo.getId());\n\t\t\t\t\t\ttmp.setState(ConstantManager.JSTREE_STATE_LEAF);\n\t\t\t\t\t}\n\t\t\t\t\ttmp.setText(vo.getCustomerCode() + \" - \" + vo.getCustomerName());\n\n\t\t\t\t\tif (tmp2.getChildren() == null) {\n\t\t\t\t\t\ttmp2.setChildren(new ArrayList<TreeGridNode<PromotionCustomerVO>>());\n\t\t\t\t\t}\n\t\t\t\t\ttmp2.getChildren().add(tmp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult.put(\"rows\", tree);\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.searchCustomerOfPromotion\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn JSON;\n\t}",
"public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }",
"@Override\n public DycpCompensacionDTO encontrar(String numControl) throws SIATException {\n try {\n String query =\n \" SELECT C.*, S.*, TT.*, SI.*, PER.*, CON.*, IMP.*, CON.DESCRIPCION, PER.DESCRIPCION as DESCRIPCION_PERIODO, IMP.DESCRIPCION as DESCRIPCION_IMPUESTO \"\n + \"FROM DYCP_COMPENSACION C, DYCP_SERVICIO S, DYCC_TIPOTRAMITE TT, DYCT_SALDOICEP SI, \"\n + \"DYCC_PERIODO PER, DYCC_CONCEPTO CON, DYCC_IMPUESTO IMP \"\n + \"WHERE C.NUMCONTROL = S.NUMCONTROL \"\n + \"AND TT.IDTIPOTRAMITE = S.IDTIPOTRAMITE AND SI.IDSALDOICEP = C.IDSALDOICEPORIGEN \"\n + \"AND PER.IDPERIODO = SI.IDPERIODO AND CON.IDCONCEPTO = SI.IDCONCEPTO AND IMP.IDIMPUESTO = CON.IDIMPUESTO \" \n + \"AND C.NUMCONTROL = ? ORDER BY C.IDSALDOICEPDESTINO DESC\";\n TipoTramiteMapper mapperTipoTramite = new TipoTramiteMapper();\n DycpServicioMapper mapperServicio = new DycpServicioMapper();\n mapperServicio.setMapperTipoTramite(mapperTipoTramite);\n CompensacionMapper mapper = new CompensacionMapper();\n DyctSaldoIcepMapper mapperSaldoIcep = new DyctSaldoIcepMapper();\n PeriodoMapper mapperPeriodo = new PeriodoMapper();\n ConceptoMapper mapperConcepto = new ConceptoMapper();\n ImpuestoMapper mapperImpuesto = new ImpuestoMapper();\n mapperSaldoIcep.setMapperPeriodo(mapperPeriodo);\n mapperConcepto.setMapperImpuesto(mapperImpuesto);\n mapperSaldoIcep.setMapperConcepto(mapperConcepto);\n mapper.setMapperServicio(mapperServicio);\n mapper.setMapperSaldoIcepOrigen(mapperSaldoIcep);\n return jdbcTemplateDYC.queryForObject(query, new Object[] { numControl }, mapper);\n } catch (DataAccessException dae) {\n log.error(ConstantesDyC1.TEXTO_1_ERROR_DAO + dae.getMessage() + ConstantesDyC1.TEXTO_2_ERROR_DAO +\n SQLOracleDyC.CONSULTA_DYCP_COMPENSACION + ConstantesDyC1.TEXTO_3_ERROR_DAO + \"numcontrol\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }",
"public SearchService(String name) {\n super(\"\");\n }",
"@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}",
"@Override\n\t\tpublic void searchProduct(HashMap<String, String> searchKeys) {\n\t\t\t \n\t\t\tQueryStringFormatter formatter=new QueryStringFormatter(\"http://www.target.com/s\");\n\t\t\ttry{\n\t\t\t\t//formatter.addQuery1(\"query\", \"ca77b9b4beca91fe414314b86bb581f8en20\");\n\t\t\t\t\n\t\t\t\tString color=(String)searchKeys.get(ProductSearch.COLOR);\n\t\t\t\tString min=(String)searchKeys.get(ProductSearch.MIN_PRICE);\n\t\t\t\tString max=(String)searchKeys.get(ProductSearch.MAX_PRICE);\n\t\t\t\t\n\t\t\t\tif((searchKeys.get(ProductSearch.BRAND_NAME)!=null) && (searchKeys.get(ProductSearch.PRODUCT_NAME)!=null)){\n\t\t\t\t\t\n\t\t\t\tformatter.addQuery1(\"searchTerm\",(String)searchKeys.get(ProductSearch.BRAND_NAME)+\" \"+(String)searchKeys.get(ProductSearch.PRODUCT_NAME));\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\tif(color!=null){\n\t\t\t\tformatter.addQuery1(\"\",color);\n\t\t\t\t}\n\t\t\t\tif(min.length()>0&&max.length()>0)\n\t\t\t\t{\n\t\t\t\t//formatter.addQuery(\"color\",(String)searchKeys.get(HeadPhonesSearch.COLOR_S)+\" Price between $\"+(String)searchKeys.get(HeadPhonesSearch.MIN_PRICE)+\" to $\"+(String)searchKeys.get(HeadPhonesSearch.MAX_PRICE));\n\t\t\t\t\t\n\t\t\t\t\tformatter.addQuery1(\" Price between $\",min +\" to $\"+max);\n\t\t\t\t}\n\t\t\t\tString finalQueryString=\"http://www.target.com/s\"+formatter.getQueryString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Query:\"+finalQueryString);\n\t\t\t\tprocessMyNodes(finalQueryString);\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n\tpublic List<Comisiones> buscar(Comisiones comisiones) {\n\t\tEntityManager manager = createEntityManager();\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Comisiones> criteriaQuery = builder.createQuery(Comisiones.class);\n\t\tRoot<Comisiones> root = criteriaQuery.from(Comisiones.class);\n\t\t\n\t\t \n\t\tPredicate valor1 = builder.equal(root.get(\"region\"), comisiones.getRegion().getrEgionidpk());\n\t\tPredicate valor2 = builder.equal(root.get(\"vCodcomision\"),comisiones.getvCodcomision());\n\t\tPredicate valor3 = builder.equal(root.get(\"vNumdocapr\"),comisiones.getvNumdocapr());\n\t\tPredicate valor4 = null;\n\t\tPredicate valor6 = null; \n\t\tif(comisiones.getvDescripcion().length() >0) {\n\t\t\t valor4 = builder.like(root.get(\"vDescripcion\"), \"%\"+comisiones.getvDescripcion()+\"%\"); \n\t\t\t valor6 = builder.or(valor4);\n\t\t}else {\n\t\t\t if(comisiones.getNombrencargado().length()>0) {\n\t\t\t\t valor4 = builder.like(root.get(\"consejero\").get(\"vDesnombre\"), \"%\"+comisiones.getNombrencargado()+\"%\"); \n\t\t\t\t valor6 = builder.or(valor4);\n\t\t\t }else {\n\t\t\t\t valor6 = builder.or(valor2,valor3); \n\t\t\t }\n\t\t\t \n\t\t}\n\t\tPredicate valor7 = builder.and(valor1,valor6);\n\t\tcriteriaQuery.where(valor7);\n\t\tQuery<Comisiones> query = (Query<Comisiones>) manager.createQuery(criteriaQuery);\n\t\tList<Comisiones> resultado = query.getResultList();\n\t\tmanager.close();\n\t\treturn resultado; \n\t}"
] | [
"0.7242424",
"0.6987763",
"0.68992597",
"0.6633295",
"0.6465831",
"0.640324",
"0.63788253",
"0.6368635",
"0.62687033",
"0.62401503",
"0.6146125",
"0.60731703",
"0.6061036",
"0.6054391",
"0.6034183",
"0.6033962",
"0.60252607",
"0.60062397",
"0.59823674",
"0.59732777",
"0.5948093",
"0.5898718",
"0.5884645",
"0.586661",
"0.5848426",
"0.5837982",
"0.5827211",
"0.5809463",
"0.580127",
"0.579275",
"0.57925105",
"0.5790768",
"0.57714576",
"0.5759442",
"0.57521284",
"0.5751982",
"0.57229084",
"0.56919813",
"0.56852263",
"0.56837755",
"0.5670964",
"0.5644305",
"0.56343776",
"0.56167126",
"0.55934876",
"0.55931056",
"0.55902183",
"0.55884594",
"0.55792516",
"0.5577348",
"0.5566746",
"0.5559602",
"0.55589426",
"0.5553446",
"0.55328447",
"0.55257946",
"0.5516049",
"0.5508307",
"0.5492032",
"0.54908615",
"0.5486827",
"0.5467258",
"0.54556125",
"0.5449835",
"0.54367596",
"0.5435794",
"0.5433957",
"0.54300916",
"0.5427872",
"0.54139197",
"0.5407225",
"0.54068136",
"0.5399104",
"0.53944635",
"0.539236",
"0.5378296",
"0.5376153",
"0.5374451",
"0.5373441",
"0.53685534",
"0.53656846",
"0.5363411",
"0.53581774",
"0.5342098",
"0.5340931",
"0.53312784",
"0.53227425",
"0.5319954",
"0.53160703",
"0.5312013",
"0.53063804",
"0.53043413",
"0.5303941",
"0.5303109",
"0.5302112",
"0.5299771",
"0.5297681",
"0.52940726",
"0.5289513",
"0.528855"
] | 0.85626686 | 0 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/expediente/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);
// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, "/api/expedientes/user");
// return new ResponseEntity<>(ls, HeaderUtil.createAlert("ok", ""), HttpStatus.OK);
return ls;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"@RequestMapping(value = \"/exhibits\", method = RequestMethod.GET)\n public ResponseEntity<?> getExhibits() {\n logger.debug(messageSource.getMessage(\"controller.getRequest\", new Object[]{null}, Locale.getDefault()));\n Iterable<ExhibitEntity> exhibitList = exhibitService.findAll();\n logger.debug(messageSource.getMessage(\"controller.returnResponse\", new Object[]{exhibitList}, Locale.getDefault()));\n return new ResponseEntity<>(exhibitList, HttpStatus.OK);\n }",
"@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}",
"@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}",
"@GetMapping(value= \"/expression/all\", produces= \"application/vnd.jcg.api.v1+json\")\n\tpublic List<String> getAll() {\n\t\tlog.info(\"Getting expressions from the database.\");\n\t\treturn service.getAllString();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducations( @BeanParam EducationBeanParam params ) throws ForbiddenException, BadRequestException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning all Educations by executing EducationResource.getEducations() method of REST API\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Education> educations = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n // get all educations filtered by given query params\n\n if( RESTToolkit.isSet(params.getKeywords()) ) {\n if( RESTToolkit.isSet(params.getDegrees()) || RESTToolkit.isSet(params.getFaculties()) || RESTToolkit.isSet(params.getSchools()) )\n throw new BadRequestException(\"Query params cannot include keywords and degrees, faculties or schools at the same time.\");\n\n // find only by keywords\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getKeywords(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n } else {\n // find by degrees, faculties, schools\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getDegrees(), params.getFaculties(), params.getSchools(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n }\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get all educations without filtering (eventually paginated)\n educations = new ResourceList<>( educationFacade.findAll(params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"public ArrayList<Ejercicio> getExercises (){\r\n\t\t\r\n\t\treturn daoEjercicio.getExerciseList();\r\n\t\t\r\n\t}",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}",
"@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }",
"@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}",
"public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}",
"public List<Empleado> getAll();",
"public List<Ejemplar> getAll();",
"List<Enrolment> getAll();",
"@GET\n\t@Path(\"/exercises/{userId}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Nonnull\n\tList<Exercise> getExercises(@Nonnull @PathParam(\"userId\") Long userId,\n\t\t\t\t\t\t\t\t@QueryParam(\"type\") @Nullable Enums.ExerciseType type,\n\t\t\t\t\t\t\t\t@QueryParam(\"date\") @Nullable String date);",
"@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}",
"@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}",
"@GET\n @Path(\"expirations/{ticker}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Expirations getExpiration(@PathParam(\"ticker\") String ticker) throws IOException {\n \t\n \tDocument doc = Jsoup.connect(\"http://finance.yahoo.com/q/op?s=\"+ticker).get();\n \tElements expirationElements = doc.select(\"option[data-selectbox-link^=/q/op?s=\"+ticker.toUpperCase()+\"]\");\n \tExpirations expirations = new Expirations();\n \t\n \tfor(int i = 0 ;i < expirationElements.size();i++) {\n \t\tSystem.out.println(expirationElements.get(i));\n \t\tElement element = expirationElements.get(i);\n \t\t\n \t\tExpiration expiration = new Expiration();\n \t\texpiration.setDisplayText(element.text());\n \t\texpiration.setExpiration(element.attr(\"value\"));\n \t\texpirations.addExpiration(expiration);\n \t}\n \t\n \treturn expirations;\n }",
"@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}",
"List<Edible> getEdibles();",
"@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}",
"public List<equipment> getAllEquipments (){\n return equiomentResprositery.findAll();\n }",
"@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }",
"@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}",
"@Override\n\tpublic List<Exercise> listAllExercises() {\n\t\treturn exerciseRepository.findAll();\n\t}",
"@GetMapping(\"/anexlaborals\")\n @Timed\n public List<Anexlaboral> getAllAnexlaborals() {\n log.debug(\"REST request to get all Anexlaborals\");\n return anexlaboralRepository.findAll();\n }",
"List<Elective> loadAllElectives();",
"@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }",
"@GetMapping(\"/equipment\")\n\tpublic List<Equipment> findAll() {\n\t\treturn inventoryService.findAll();\n\t}",
"public Expence getExpenceIds(Integer id)\r\n/* 174: */ {\r\n/* 175:178 */ return this.expenceDao.getExpenceIds(id);\r\n/* 176: */ }",
"@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }",
"@RequestMapping(value = \"/resume-educations\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ResumeEducation> getAllResumeEducations() {\n log.debug(\"REST request to get all ResumeEducations\");\n List<ResumeEducation> resumeEducations = resumeEducationRepository.findAll();\n return resumeEducations;\n }",
"@GetMapping(\"/jelos\")\n @Timed\n public List<Jelo> getAllJelos() {\n log.debug(\"REST request to get all Jelos\");\n return jeloRepository.findAll();\n }",
"@RequestMapping(value = GET_ALL_EMPLOYEE_URL_API, method=RequestMethod.GET)\r\n public ResponseEntity<?> getAllEmployee() {\r\n\r\n checkLogin();\r\n\r\n return new ResponseEntity<>(employeeService.getAll(), HttpStatus.OK);\r\n }",
"public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}",
"List<Especialidad> getEspecialidades();",
"public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }",
"List<ObjectExpenseEntity> getAllObjectExpenses();",
"public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }",
"@GetMapping(\"/getEmployees\")\n\t@ResponseBody\n\tpublic List<Employee> getAllEmployees(){\n\t\treturn employeeService.getEmployees();\n\t}",
"public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}",
"@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }",
"public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}",
"public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }",
"@GetMapping(\"/etape-examen\")\n public ResponseEntity<List<EtapeExamenDTO>> getAllEtapeExamen(Pageable pageable) {\n log.debug(\"REST request to get a page of EtapeExamen\");\n Page<EtapeExamenDTO> page = etapeExamenService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/etape-examen\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}",
"private void doGetExercises() {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n gettingAllExercisesOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isGetting = getMobileClientService().getAllExercises();\n if (!isGetting) {\n gettingAllExercisesOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n gettingAllExercisesOperationResult(false, \"Error sending message\", null);\n }\n }",
"public List<Enseignant> getAllEnseignant() {\n\t\treturn (List<Enseignant>) enseignantRepository.findAll();\n\t}",
"@RequestMapping(value = \"/estados\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Estado> getAll() {\n log.debug(\"REST request to get all Estados\");\n return estadoRepository.findAll();\n }",
"@Cacheable(cacheNames = \"allEmployeesCache\")\n\tpublic List<Employee> getAllEmployees() throws Exception {\n\t\tIterable<Employee> iterable = employeeRepository.findAll();\n\t List<Employee> result = new ArrayList<>();\n\t iterable.forEach(result::add);\n\t\treturn result;\n\t}",
"@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}",
"@RequestMapping(value = \"/oeuvres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Oeuvre> getAllOeuvres(@RequestParam(required = false) Boolean withExemplaire) {\n if(withExemplaire != null){\n log.debug(\"REST request to get all Oeuvres with exemplaire\");\n return oeuvreRepository.findWithExemplaire();\n }\n log.debug(\"REST request to get all Oeuvres\");\n List<Oeuvre> oeuvres = oeuvreRepository.findAll();\n return oeuvres;\n }",
"@POST(\"/ListEmpires\")\n\tCollection<Empire> listEmpires(@Body int id) throws GameNotFoundException;",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}",
"public List<DBExpensesModel> getAllExpenseList() {\n List<DBExpensesModel> expenseArrayList = new ArrayList<DBExpensesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_EXPENSE;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBExpensesModel expense = new DBExpensesModel();\n expense.id = c.getInt(c.getColumnIndex(KEY_ID));\n expense.type = c.getString(c.getColumnIndex(KEY_TYPE));\n expense.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n expense.place = c.getString(c.getColumnIndex(KEY_PLACE));\n expense.note = c.getString(c.getColumnIndex(KEY_NOTE));\n expense.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n expense.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n expenseArrayList.add(expense);\n } while (c.moveToNext());\n }\n return expenseArrayList;\n }",
"@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}",
"public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}",
"@GetMapping(\"/modelo-exclusivos\")\n @Timed\n public ResponseEntity<List<ModeloExclusivo>> getAllModeloExclusivos(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of ModeloExclusivos\");\n Page<ModeloExclusivo> page = modeloExclusivoRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/modelo-exclusivos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findAll()) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}",
"Collection<EmployeeDTO> getAll();",
"@GetMapping(\"/day-times\")\n @Timed\n public List<DayTime> getAllDayTimes() {\n log.debug(\"REST request to get all DayTimes\");\n List<DayTime> dayTimes = dayTimeRepository.findAll();\n return dayTimes;\n }",
"public void getAllEdificios(){\n System.out.println(getCantEdificios());\n for (Edificio edificio : edificios) {\n System.out.print(edificio.getColor()+\" \");\n }\n System.out.println();\n }",
"public List<String> getAll() {\n\treturn employeeService.getAll();\n }",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@GetMapping(\"/all\")\n public ResponseEntity responseAllEmployees(){\n return new ResponseEntity<>(hr_service.getAllEmployees(), HttpStatus.OK);\n }",
"@ResponseBody\n\t@GetMapping(\"/employees\")\n\tpublic List<Employee> listEmployees() {\n\t\tList<Employee> theEmployees = employeeDAO.getEmployees();\n\t\t\n\t\treturn theEmployees;\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }",
"public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;",
"@GET\n public List<HospedajeDTO> getHospedajes() throws WebApplicationException{\n return listEntity2DetailDTO(hospedajeLogic.getHospedajes());\n }",
"public List<Employee> getEmployees();",
"@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}",
"public List<Employee> findAll() {\n return employeeRepository.findAll();\n }",
"public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }",
"@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}",
"@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"@GET\n @Path(\"/with-degree/{degree : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByDegree( @PathParam(\"degree\") String degree,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given degree using EducationResource.getEducationsByDegree(degree) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByDegree(degree, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@GET\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByDescription(@Nonnull @QueryParam(\"description\") String description);",
"@GET\n @Path(\"/eagerly\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployeesEagerly( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees eagerly for given education using \" +\n \"EducationResource.EmployeeResource.getEducatedEmployeesEagerly(educationId) method of REST API\" );\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<EmployeeWrapper> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees eagerly for given education filtered by given params\n employees = new ResourceList<>(\n EmployeeWrapper.wrap(\n employeeFacade.findByMultipleCriteriaEagerly(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n )\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees eagerly for given education without filtering (eventually paginated)\n employees = new ResourceList<>( EmployeeWrapper.wrap(employeeFacade.findByEducationEagerly(education, params.getOffset(), params.getLimit())) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"List<Employee> allEmpInfo();",
"private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }",
"@GET\n @Path(\"/at-faculty/{faculty : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByFaculty( @PathParam(\"faculty\") String faculty,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given faculty using EducationResource.getEducationsByFaculty(faculty) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByFaculty(faculty, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@Path(\"/{educationId : \\\\d+}/employees\")\n public EmployeeResource getEmployeeResource() {\n return new EmployeeResource();\n }",
"public List<ExerciseWorkout> getExercises() {\n if (exercises == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ExerciseWorkoutDao targetDao = daoSession.getExerciseWorkoutDao();\n List<ExerciseWorkout> exercisesNew = targetDao._queryWorkout_Exercises(id);\n synchronized (this) {\n if(exercises == null) {\n exercises = exercisesNew;\n }\n }\n }\n return exercises;\n }",
"@GetMapping()\n\tprotected ResponseEntity<Page<Alerta>> getAllAlertas(){\n\t\t\n\t\tPage<Alerta> alertas = service.getAllAlertas(0, 10000);\n\t\t\n\t\tif(alertas == null)\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t\n\t\treturn ResponseEntity.ok(alertas);\n\t}",
"List<Employee> findAll();",
"@Override\n\tpublic ResponseEntity<Collection<Employee>> findAll() {\n\t\treturn new ResponseEntity<Collection<Employee>>(empService.findAll(),HttpStatus.OK);\n\t}",
"@RequestMapping(value=\"/employees/all\", method = RequestMethod.GET)\npublic @ResponseBody List<Employee> employeeListRest(){\n\treturn (List<Employee>) employeerepository.findAll();\n}",
"public Set<String> getEphemerals(long sessionId) {\n return dataTree.getEphemerals(sessionId);\n }",
"@GET\n\t@Path(\"/user/{userId}\")\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByUserId(@Nonnull @PathParam(\"userId\") Long userId, \n\t\t\t@Nullable @QueryParam(\"type\") ExerciseType type,\n\t\t\t@Nullable @QueryParam(\"date\") String date);",
"@GetMapping(\"/employees\")\n Flux<Employee> all() { //TODO: Wasn't previously public\n return this.repository.findAll();\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getAllEmployees(){\n\t\tString employeesJsonString = getFileContent();\n\t\treturn employeesJsonString;\n\t}",
"@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/experiences\")\n @Timed\n public ResponseEntity<List<Experience>> getAllExperiences(Pageable pageable) {\n log.debug(\"REST request to get a page of Experiences\");\n Page<Experience> page = experienceRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/experiences\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\t\r\n\t\tfinal Query query = session.createQuery(\"from Employee e order by id desc\");\r\n\t\t//Query q = session.createQuery(\"select NAME from Customer\");\r\n\t\t//final List<Employee> employeeList = query.list(); \r\n\t\treturn (List<Employee>) query.list();\r\n\t}",
"List getExpressions();",
"public List<Expediente> getListaXEmpCtaExp(Object o) throws DAOException{\r\n\t\tList<Expediente> lista = null;\r\n\t\ttry{\r\n\t\t\tlista = (List) getSqlMapClientTemplate().queryForList(getNameSpace() + \".getListaXEmpCtaExp\", o);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new DAOException (e);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}"
] | [
"0.66681826",
"0.64079976",
"0.61207825",
"0.60918504",
"0.60801744",
"0.60760474",
"0.6068181",
"0.6057264",
"0.6038803",
"0.60275817",
"0.59966475",
"0.598441",
"0.5980483",
"0.59754175",
"0.5967491",
"0.5966145",
"0.59605205",
"0.5954262",
"0.59514827",
"0.59438235",
"0.593318",
"0.5925597",
"0.59028125",
"0.5900929",
"0.5898172",
"0.5892079",
"0.58861625",
"0.584374",
"0.5832839",
"0.58048266",
"0.5790506",
"0.5784616",
"0.5775138",
"0.57545614",
"0.57507473",
"0.5744483",
"0.57399094",
"0.5730251",
"0.5702674",
"0.5701489",
"0.5693764",
"0.5687041",
"0.56866443",
"0.56544405",
"0.56501466",
"0.56325305",
"0.5618742",
"0.561315",
"0.56128764",
"0.5596082",
"0.5594613",
"0.55875826",
"0.5587362",
"0.55796653",
"0.5575276",
"0.55630416",
"0.555541",
"0.5553329",
"0.55373544",
"0.553508",
"0.5534775",
"0.5528447",
"0.55262476",
"0.5525384",
"0.5521523",
"0.5512876",
"0.5499397",
"0.54913473",
"0.5488563",
"0.5488207",
"0.5484103",
"0.5482559",
"0.5479605",
"0.54714555",
"0.54623437",
"0.54572415",
"0.54548204",
"0.5453724",
"0.5434567",
"0.5432225",
"0.5429114",
"0.5426539",
"0.54122365",
"0.5410157",
"0.540168",
"0.5401241",
"0.5398413",
"0.53890264",
"0.53882545",
"0.5384119",
"0.5382999",
"0.5381722",
"0.53805614",
"0.53769803",
"0.53745246",
"0.5373247",
"0.5368214",
"0.5365406",
"0.53652585",
"0.53613496"
] | 0.6930805 | 0 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/migratorio/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosMigratorioById(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByTramite_migratorio_id(id);
// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, "/api/expedientes/user");
// return new ResponseEntity<>(ls, HeaderUtil.createAlert("ok", ""), HttpStatus.OK);
return ls;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"@RequestMapping(value = \"/exhibits\", method = RequestMethod.GET)\n public ResponseEntity<?> getExhibits() {\n logger.debug(messageSource.getMessage(\"controller.getRequest\", new Object[]{null}, Locale.getDefault()));\n Iterable<ExhibitEntity> exhibitList = exhibitService.findAll();\n logger.debug(messageSource.getMessage(\"controller.returnResponse\", new Object[]{exhibitList}, Locale.getDefault()));\n return new ResponseEntity<>(exhibitList, HttpStatus.OK);\n }",
"@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}",
"@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}",
"@GetMapping(value= \"/expression/all\", produces= \"application/vnd.jcg.api.v1+json\")\n\tpublic List<String> getAll() {\n\t\tlog.info(\"Getting expressions from the database.\");\n\t\treturn service.getAllString();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducations( @BeanParam EducationBeanParam params ) throws ForbiddenException, BadRequestException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning all Educations by executing EducationResource.getEducations() method of REST API\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Education> educations = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n // get all educations filtered by given query params\n\n if( RESTToolkit.isSet(params.getKeywords()) ) {\n if( RESTToolkit.isSet(params.getDegrees()) || RESTToolkit.isSet(params.getFaculties()) || RESTToolkit.isSet(params.getSchools()) )\n throw new BadRequestException(\"Query params cannot include keywords and degrees, faculties or schools at the same time.\");\n\n // find only by keywords\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getKeywords(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n } else {\n // find by degrees, faculties, schools\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getDegrees(), params.getFaculties(), params.getSchools(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n }\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get all educations without filtering (eventually paginated)\n educations = new ResourceList<>( educationFacade.findAll(params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"public ArrayList<Ejercicio> getExercises (){\r\n\t\t\r\n\t\treturn daoEjercicio.getExerciseList();\r\n\t\t\r\n\t}",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}",
"@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }",
"@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}",
"public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}",
"public List<Empleado> getAll();",
"public List<Ejemplar> getAll();",
"List<Enrolment> getAll();",
"@GET\n\t@Path(\"/exercises/{userId}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Nonnull\n\tList<Exercise> getExercises(@Nonnull @PathParam(\"userId\") Long userId,\n\t\t\t\t\t\t\t\t@QueryParam(\"type\") @Nullable Enums.ExerciseType type,\n\t\t\t\t\t\t\t\t@QueryParam(\"date\") @Nullable String date);",
"@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}",
"@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}",
"@GET\n @Path(\"expirations/{ticker}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Expirations getExpiration(@PathParam(\"ticker\") String ticker) throws IOException {\n \t\n \tDocument doc = Jsoup.connect(\"http://finance.yahoo.com/q/op?s=\"+ticker).get();\n \tElements expirationElements = doc.select(\"option[data-selectbox-link^=/q/op?s=\"+ticker.toUpperCase()+\"]\");\n \tExpirations expirations = new Expirations();\n \t\n \tfor(int i = 0 ;i < expirationElements.size();i++) {\n \t\tSystem.out.println(expirationElements.get(i));\n \t\tElement element = expirationElements.get(i);\n \t\t\n \t\tExpiration expiration = new Expiration();\n \t\texpiration.setDisplayText(element.text());\n \t\texpiration.setExpiration(element.attr(\"value\"));\n \t\texpirations.addExpiration(expiration);\n \t}\n \t\n \treturn expirations;\n }",
"@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}",
"List<Edible> getEdibles();",
"@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}",
"public List<equipment> getAllEquipments (){\n return equiomentResprositery.findAll();\n }",
"@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }",
"@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}",
"@Override\n\tpublic List<Exercise> listAllExercises() {\n\t\treturn exerciseRepository.findAll();\n\t}",
"@GetMapping(\"/anexlaborals\")\n @Timed\n public List<Anexlaboral> getAllAnexlaborals() {\n log.debug(\"REST request to get all Anexlaborals\");\n return anexlaboralRepository.findAll();\n }",
"List<Elective> loadAllElectives();",
"@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }",
"@GetMapping(\"/equipment\")\n\tpublic List<Equipment> findAll() {\n\t\treturn inventoryService.findAll();\n\t}",
"public Expence getExpenceIds(Integer id)\r\n/* 174: */ {\r\n/* 175:178 */ return this.expenceDao.getExpenceIds(id);\r\n/* 176: */ }",
"@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }",
"@RequestMapping(value = \"/resume-educations\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ResumeEducation> getAllResumeEducations() {\n log.debug(\"REST request to get all ResumeEducations\");\n List<ResumeEducation> resumeEducations = resumeEducationRepository.findAll();\n return resumeEducations;\n }",
"@GetMapping(\"/jelos\")\n @Timed\n public List<Jelo> getAllJelos() {\n log.debug(\"REST request to get all Jelos\");\n return jeloRepository.findAll();\n }",
"@RequestMapping(value = GET_ALL_EMPLOYEE_URL_API, method=RequestMethod.GET)\r\n public ResponseEntity<?> getAllEmployee() {\r\n\r\n checkLogin();\r\n\r\n return new ResponseEntity<>(employeeService.getAll(), HttpStatus.OK);\r\n }",
"public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}",
"List<Especialidad> getEspecialidades();",
"public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }",
"List<ObjectExpenseEntity> getAllObjectExpenses();",
"@GetMapping(\"/getEmployees\")\n\t@ResponseBody\n\tpublic List<Employee> getAllEmployees(){\n\t\treturn employeeService.getEmployees();\n\t}",
"public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }",
"public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}",
"@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }",
"public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}",
"public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }",
"@GetMapping(\"/etape-examen\")\n public ResponseEntity<List<EtapeExamenDTO>> getAllEtapeExamen(Pageable pageable) {\n log.debug(\"REST request to get a page of EtapeExamen\");\n Page<EtapeExamenDTO> page = etapeExamenService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/etape-examen\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}",
"private void doGetExercises() {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n gettingAllExercisesOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isGetting = getMobileClientService().getAllExercises();\n if (!isGetting) {\n gettingAllExercisesOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n gettingAllExercisesOperationResult(false, \"Error sending message\", null);\n }\n }",
"public List<Enseignant> getAllEnseignant() {\n\t\treturn (List<Enseignant>) enseignantRepository.findAll();\n\t}",
"@RequestMapping(value = \"/estados\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Estado> getAll() {\n log.debug(\"REST request to get all Estados\");\n return estadoRepository.findAll();\n }",
"@Cacheable(cacheNames = \"allEmployeesCache\")\n\tpublic List<Employee> getAllEmployees() throws Exception {\n\t\tIterable<Employee> iterable = employeeRepository.findAll();\n\t List<Employee> result = new ArrayList<>();\n\t iterable.forEach(result::add);\n\t\treturn result;\n\t}",
"@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}",
"@RequestMapping(value = \"/oeuvres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Oeuvre> getAllOeuvres(@RequestParam(required = false) Boolean withExemplaire) {\n if(withExemplaire != null){\n log.debug(\"REST request to get all Oeuvres with exemplaire\");\n return oeuvreRepository.findWithExemplaire();\n }\n log.debug(\"REST request to get all Oeuvres\");\n List<Oeuvre> oeuvres = oeuvreRepository.findAll();\n return oeuvres;\n }",
"@POST(\"/ListEmpires\")\n\tCollection<Empire> listEmpires(@Body int id) throws GameNotFoundException;",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}",
"public List<DBExpensesModel> getAllExpenseList() {\n List<DBExpensesModel> expenseArrayList = new ArrayList<DBExpensesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_EXPENSE;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBExpensesModel expense = new DBExpensesModel();\n expense.id = c.getInt(c.getColumnIndex(KEY_ID));\n expense.type = c.getString(c.getColumnIndex(KEY_TYPE));\n expense.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n expense.place = c.getString(c.getColumnIndex(KEY_PLACE));\n expense.note = c.getString(c.getColumnIndex(KEY_NOTE));\n expense.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n expense.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n expenseArrayList.add(expense);\n } while (c.moveToNext());\n }\n return expenseArrayList;\n }",
"@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}",
"@GetMapping(\"/modelo-exclusivos\")\n @Timed\n public ResponseEntity<List<ModeloExclusivo>> getAllModeloExclusivos(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of ModeloExclusivos\");\n Page<ModeloExclusivo> page = modeloExclusivoRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/modelo-exclusivos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findAll()) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}",
"Collection<EmployeeDTO> getAll();",
"@GetMapping(\"/day-times\")\n @Timed\n public List<DayTime> getAllDayTimes() {\n log.debug(\"REST request to get all DayTimes\");\n List<DayTime> dayTimes = dayTimeRepository.findAll();\n return dayTimes;\n }",
"public void getAllEdificios(){\n System.out.println(getCantEdificios());\n for (Edificio edificio : edificios) {\n System.out.print(edificio.getColor()+\" \");\n }\n System.out.println();\n }",
"public List<String> getAll() {\n\treturn employeeService.getAll();\n }",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@GetMapping(\"/all\")\n public ResponseEntity responseAllEmployees(){\n return new ResponseEntity<>(hr_service.getAllEmployees(), HttpStatus.OK);\n }",
"@ResponseBody\n\t@GetMapping(\"/employees\")\n\tpublic List<Employee> listEmployees() {\n\t\tList<Employee> theEmployees = employeeDAO.getEmployees();\n\t\t\n\t\treturn theEmployees;\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }",
"public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;",
"@GET\n public List<HospedajeDTO> getHospedajes() throws WebApplicationException{\n return listEntity2DetailDTO(hospedajeLogic.getHospedajes());\n }",
"public List<Employee> getEmployees();",
"@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}",
"public List<Employee> findAll() {\n return employeeRepository.findAll();\n }",
"public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }",
"@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}",
"@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"@GET\n @Path(\"/with-degree/{degree : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByDegree( @PathParam(\"degree\") String degree,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given degree using EducationResource.getEducationsByDegree(degree) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByDegree(degree, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@GET\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByDescription(@Nonnull @QueryParam(\"description\") String description);",
"@GET\n @Path(\"/eagerly\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployeesEagerly( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees eagerly for given education using \" +\n \"EducationResource.EmployeeResource.getEducatedEmployeesEagerly(educationId) method of REST API\" );\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<EmployeeWrapper> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees eagerly for given education filtered by given params\n employees = new ResourceList<>(\n EmployeeWrapper.wrap(\n employeeFacade.findByMultipleCriteriaEagerly(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n )\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees eagerly for given education without filtering (eventually paginated)\n employees = new ResourceList<>( EmployeeWrapper.wrap(employeeFacade.findByEducationEagerly(education, params.getOffset(), params.getLimit())) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"List<Employee> allEmpInfo();",
"private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }",
"@GET\n @Path(\"/at-faculty/{faculty : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByFaculty( @PathParam(\"faculty\") String faculty,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given faculty using EducationResource.getEducationsByFaculty(faculty) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByFaculty(faculty, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@Path(\"/{educationId : \\\\d+}/employees\")\n public EmployeeResource getEmployeeResource() {\n return new EmployeeResource();\n }",
"@GetMapping()\n\tprotected ResponseEntity<Page<Alerta>> getAllAlertas(){\n\t\t\n\t\tPage<Alerta> alertas = service.getAllAlertas(0, 10000);\n\t\t\n\t\tif(alertas == null)\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t\n\t\treturn ResponseEntity.ok(alertas);\n\t}",
"public List<ExerciseWorkout> getExercises() {\n if (exercises == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ExerciseWorkoutDao targetDao = daoSession.getExerciseWorkoutDao();\n List<ExerciseWorkout> exercisesNew = targetDao._queryWorkout_Exercises(id);\n synchronized (this) {\n if(exercises == null) {\n exercises = exercisesNew;\n }\n }\n }\n return exercises;\n }",
"@Override\n\tpublic ResponseEntity<Collection<Employee>> findAll() {\n\t\treturn new ResponseEntity<Collection<Employee>>(empService.findAll(),HttpStatus.OK);\n\t}",
"List<Employee> findAll();",
"@RequestMapping(value=\"/employees/all\", method = RequestMethod.GET)\npublic @ResponseBody List<Employee> employeeListRest(){\n\treturn (List<Employee>) employeerepository.findAll();\n}",
"public Set<String> getEphemerals(long sessionId) {\n return dataTree.getEphemerals(sessionId);\n }",
"@GetMapping(\"/employees\")\n Flux<Employee> all() { //TODO: Wasn't previously public\n return this.repository.findAll();\n }",
"@GET\n\t@Path(\"/user/{userId}\")\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByUserId(@Nonnull @PathParam(\"userId\") Long userId, \n\t\t\t@Nullable @QueryParam(\"type\") ExerciseType type,\n\t\t\t@Nullable @QueryParam(\"date\") String date);",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getAllEmployees(){\n\t\tString employeesJsonString = getFileContent();\n\t\treturn employeesJsonString;\n\t}",
"@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/experiences\")\n @Timed\n public ResponseEntity<List<Experience>> getAllExperiences(Pageable pageable) {\n log.debug(\"REST request to get a page of Experiences\");\n Page<Experience> page = experienceRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/experiences\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\t\r\n\t\tfinal Query query = session.createQuery(\"from Employee e order by id desc\");\r\n\t\t//Query q = session.createQuery(\"select NAME from Customer\");\r\n\t\t//final List<Employee> employeeList = query.list(); \r\n\t\treturn (List<Employee>) query.list();\r\n\t}",
"List getExpressions();",
"@GetMapping(\"/act-kodus\")\n @Timed\n public List<ActKodu> getAllActKodus() {\n log.debug(\"REST request to get all ActKodus\");\n return actKoduRepository.findAll();\n }"
] | [
"0.69318426",
"0.66690373",
"0.6407441",
"0.6122163",
"0.6093149",
"0.60809535",
"0.60766363",
"0.6067018",
"0.6058658",
"0.6040166",
"0.602896",
"0.59972334",
"0.5985642",
"0.59823084",
"0.5976954",
"0.5968245",
"0.596554",
"0.59617907",
"0.5954961",
"0.59511214",
"0.59451205",
"0.59332085",
"0.5927128",
"0.59035796",
"0.59025216",
"0.58978087",
"0.5893414",
"0.5886594",
"0.5843342",
"0.58338904",
"0.5805317",
"0.5792233",
"0.5784826",
"0.5775405",
"0.57566214",
"0.57515216",
"0.5745438",
"0.5741624",
"0.57308686",
"0.5702854",
"0.5702692",
"0.5694371",
"0.56880635",
"0.5687894",
"0.5655034",
"0.5651249",
"0.56330365",
"0.56194675",
"0.5614172",
"0.5613876",
"0.5596352",
"0.559491",
"0.5589736",
"0.5588581",
"0.55806947",
"0.5576707",
"0.5563215",
"0.5556579",
"0.5553279",
"0.5538436",
"0.5536097",
"0.55359256",
"0.5531306",
"0.55282193",
"0.55264926",
"0.55223024",
"0.5514632",
"0.55000514",
"0.5492999",
"0.5489805",
"0.54897934",
"0.5483632",
"0.54834193",
"0.5480285",
"0.54725677",
"0.5463301",
"0.54577494",
"0.54557604",
"0.5455162",
"0.54344034",
"0.5431677",
"0.54295605",
"0.5427199",
"0.54125386",
"0.54107964",
"0.54022133",
"0.5400074",
"0.53996456",
"0.53902423",
"0.5390012",
"0.53859884",
"0.53830385",
"0.5382455",
"0.53813404",
"0.5378404",
"0.5375702",
"0.53740937",
"0.5369879",
"0.5366337",
"0.53643954",
"0.5362871"
] | 0.0 | -1 |
GET /expedientes : get all by expedientes. | @GetMapping("/costo-servicios/general/{id}")
@Timed
public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {
log.debug("REST request to get a page of Expedientes");
List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);
// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, "/api/expedientes/user");
// return new ResponseEntity<>(ls, HeaderUtil.createAlert("ok", ""), HttpStatus.OK);
return ls;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/costo-servicios/expediente/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosByExpedienteId(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByExpediente_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"@RequestMapping(value = \"/exhibits\", method = RequestMethod.GET)\n public ResponseEntity<?> getExhibits() {\n logger.debug(messageSource.getMessage(\"controller.getRequest\", new Object[]{null}, Locale.getDefault()));\n Iterable<ExhibitEntity> exhibitList = exhibitService.findAll();\n logger.debug(messageSource.getMessage(\"controller.returnResponse\", new Object[]{exhibitList}, Locale.getDefault()));\n return new ResponseEntity<>(exhibitList, HttpStatus.OK);\n }",
"@GetMapping(\"/employee\")\r\n\tpublic List<Employee> getAllEmployees()\r\n\t{\r\n\t\treturn empdao.findAll();\r\n\t}",
"@GetMapping(\"/findAllEmployees\")\n\tpublic List<Employee> getAll() {\n\t\treturn testService.getAll();\n\t}",
"@GetMapping(value= \"/expression/all\", produces= \"application/vnd.jcg.api.v1+json\")\n\tpublic List<String> getAll() {\n\t\tlog.info(\"Getting expressions from the database.\");\n\t\treturn service.getAllString();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducations( @BeanParam EducationBeanParam params ) throws ForbiddenException, BadRequestException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning all Educations by executing EducationResource.getEducations() method of REST API\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Education> educations = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n // get all educations filtered by given query params\n\n if( RESTToolkit.isSet(params.getKeywords()) ) {\n if( RESTToolkit.isSet(params.getDegrees()) || RESTToolkit.isSet(params.getFaculties()) || RESTToolkit.isSet(params.getSchools()) )\n throw new BadRequestException(\"Query params cannot include keywords and degrees, faculties or schools at the same time.\");\n\n // find only by keywords\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getKeywords(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n } else {\n // find by degrees, faculties, schools\n educations = new ResourceList<>(\n educationFacade.findByMultipleCriteria(params.getDegrees(), params.getFaculties(), params.getSchools(), params.getEmployees(), params.getOffset(), params.getLimit())\n );\n }\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get all educations without filtering (eventually paginated)\n educations = new ResourceList<>( educationFacade.findAll(params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"public ArrayList<Ejercicio> getExercises (){\r\n\t\t\r\n\t\treturn daoEjercicio.getExerciseList();\r\n\t\t\r\n\t}",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> list() {\r\n\t return empService.listAll();\r\n\t}",
"@GetMapping(\"/emloyees\")\n public List<Employee> all() {\n return employeeRepository.findAll();\n }",
"@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}",
"public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }",
"@GetMapping(\"/employees\")\r\n\tpublic List<Employee> getEmployees(){\r\n\t\t\r\n\t\treturn employeeService.getEmployees();\r\n\t\t\r\n\t}",
"public List<Empleado> getAll();",
"public List<Ejemplar> getAll();",
"List<Enrolment> getAll();",
"@GET\n\t@Path(\"/exercises/{userId}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Nonnull\n\tList<Exercise> getExercises(@Nonnull @PathParam(\"userId\") Long userId,\n\t\t\t\t\t\t\t\t@QueryParam(\"type\") @Nullable Enums.ExerciseType type,\n\t\t\t\t\t\t\t\t@QueryParam(\"date\") @Nullable String date);",
"@RequestMapping(\"/employee\")\n\tpublic List<Employee> getAllEmplyee() {\n\t\treturn service.getAllEmplyee();\n\t}",
"@Override\r\n\tpublic List<Expense> findAll() {\n\t\treturn expenseRepository.findAll();\r\n\t}",
"@GET\n @Path(\"expirations/{ticker}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Expirations getExpiration(@PathParam(\"ticker\") String ticker) throws IOException {\n \t\n \tDocument doc = Jsoup.connect(\"http://finance.yahoo.com/q/op?s=\"+ticker).get();\n \tElements expirationElements = doc.select(\"option[data-selectbox-link^=/q/op?s=\"+ticker.toUpperCase()+\"]\");\n \tExpirations expirations = new Expirations();\n \t\n \tfor(int i = 0 ;i < expirationElements.size();i++) {\n \t\tSystem.out.println(expirationElements.get(i));\n \t\tElement element = expirationElements.get(i);\n \t\t\n \t\tExpiration expiration = new Expiration();\n \t\texpiration.setDisplayText(element.text());\n \t\texpiration.setExpiration(element.attr(\"value\"));\n \t\texpirations.addExpiration(expiration);\n \t}\n \t\n \treturn expirations;\n }",
"@RequestMapping(value = \"/getAllEmployees\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\r\n\tpublic List<Employee> getAllEmpoyees(){\r\n\t\treturn repository.getAllEmpoyees();\r\n\t}",
"List<Edible> getEdibles();",
"@GetMapping(\"/employees\")\npublic List <Employee> findAlll(){\n\treturn employeeService.findAll();\n\t}",
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployees( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees for given education using EducationResource.EmployeeResource.getEducatedEmployees(educationId) method of REST API\");\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<Employee> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees for given education filtered by given params\n employees = new ResourceList<>(\n employeeFacade.findByMultipleCriteria(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees for given education without filtering (eventually paginated)\n employees = new ResourceList<>( employeeFacade.findByEducation(education, params.getOffset(), params.getLimit()) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<Employee>> getAllEmployees() {\n\t\tList<Employee> list = service.getAllEmployees();\n\t\treturn new ResponseEntity<List<Employee>>(list, HttpStatus.OK);\n\t}",
"public List<equipment> getAllEquipments (){\n return equiomentResprositery.findAll();\n }",
"@GetMapping(\"/getoffer/{empId}\")\n\t public ResponseEntity<List<Offer>> getAllOffers(@PathVariable int empId)\n\t {\n\t\t List<Offer> fetchedOffers=employeeService.getAllOffers(empId);\n\t\t if(fetchedOffers.isEmpty())\n\t\t {\n\t\t\t throw new InvalidEmployeeException(\"No Employee found with id= : \" + empId);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t return new ResponseEntity<List<Offer>>(fetchedOffers,HttpStatus.OK);\n\t\t }\n\t }",
"@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}",
"@Override\n\tpublic List<Exercise> listAllExercises() {\n\t\treturn exerciseRepository.findAll();\n\t}",
"@GetMapping(\"/anexlaborals\")\n @Timed\n public List<Anexlaboral> getAllAnexlaborals() {\n log.debug(\"REST request to get all Anexlaborals\");\n return anexlaboralRepository.findAll();\n }",
"List<Elective> loadAllElectives();",
"@GetMapping(\"/GetAllEmployees\")\r\n public List<Employee> viewAllEmployees() {\r\n return admin.viewAllEmployees();\r\n }",
"@GetMapping(\"/equipment\")\n\tpublic List<Equipment> findAll() {\n\t\treturn inventoryService.findAll();\n\t}",
"public Expence getExpenceIds(Integer id)\r\n/* 174: */ {\r\n/* 175:178 */ return this.expenceDao.getExpenceIds(id);\r\n/* 176: */ }",
"@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<EmployeeDTO> findAllEmployees() {\n LOGGER.info(\"getting all employees\");\n return employeeFacade.findAllEmployees();\n }",
"@RequestMapping(value = \"/resume-educations\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ResumeEducation> getAllResumeEducations() {\n log.debug(\"REST request to get all ResumeEducations\");\n List<ResumeEducation> resumeEducations = resumeEducationRepository.findAll();\n return resumeEducations;\n }",
"@GetMapping(\"/jelos\")\n @Timed\n public List<Jelo> getAllJelos() {\n log.debug(\"REST request to get all Jelos\");\n return jeloRepository.findAll();\n }",
"@RequestMapping(value = GET_ALL_EMPLOYEE_URL_API, method=RequestMethod.GET)\r\n public ResponseEntity<?> getAllEmployee() {\r\n\r\n checkLogin();\r\n\r\n return new ResponseEntity<>(employeeService.getAll(), HttpStatus.OK);\r\n }",
"public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}",
"List<Especialidad> getEspecialidades();",
"public ResponseEntity<List<Employee>> getAllEmployees() {\n \tList<Employee> emplist=empService.getAllEmployees();\n\t\t\n\t\tif(emplist==null) {\n\t\t\tthrow new ResourceNotFoundException(\"No Employee Details found\");\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<>(emplist,HttpStatus.OK);\t\t\n }",
"List<ObjectExpenseEntity> getAllObjectExpenses();",
"public List<Employee> getAllEmployees() {\n return employeeRepository.findAll();\n }",
"@GetMapping(\"/getEmployees\")\n\t@ResponseBody\n\tpublic List<Employee> getAllEmployees(){\n\t\treturn employeeService.getEmployees();\n\t}",
"public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}",
"@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }",
"public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}",
"public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }",
"@GetMapping(\"/etape-examen\")\n public ResponseEntity<List<EtapeExamenDTO>> getAllEtapeExamen(Pageable pageable) {\n log.debug(\"REST request to get a page of EtapeExamen\");\n Page<EtapeExamenDTO> page = etapeExamenService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/etape-examen\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}",
"public List<Enseignant> getAllEnseignant() {\n\t\treturn (List<Enseignant>) enseignantRepository.findAll();\n\t}",
"private void doGetExercises() {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n gettingAllExercisesOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isGetting = getMobileClientService().getAllExercises();\n if (!isGetting) {\n gettingAllExercisesOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n gettingAllExercisesOperationResult(false, \"Error sending message\", null);\n }\n }",
"@Cacheable(cacheNames = \"allEmployeesCache\")\n\tpublic List<Employee> getAllEmployees() throws Exception {\n\t\tIterable<Employee> iterable = employeeRepository.findAll();\n\t List<Employee> result = new ArrayList<>();\n\t iterable.forEach(result::add);\n\t\treturn result;\n\t}",
"@RequestMapping(value = \"/estados\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Estado> getAll() {\n log.debug(\"REST request to get all Estados\");\n return estadoRepository.findAll();\n }",
"@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}",
"@RequestMapping(value = \"/oeuvres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Oeuvre> getAllOeuvres(@RequestParam(required = false) Boolean withExemplaire) {\n if(withExemplaire != null){\n log.debug(\"REST request to get all Oeuvres with exemplaire\");\n return oeuvreRepository.findWithExemplaire();\n }\n log.debug(\"REST request to get all Oeuvres\");\n List<Oeuvre> oeuvres = oeuvreRepository.findAll();\n return oeuvres;\n }",
"@POST(\"/ListEmpires\")\n\tCollection<Empire> listEmpires(@Body int id) throws GameNotFoundException;",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}",
"public List<DBExpensesModel> getAllExpenseList() {\n List<DBExpensesModel> expenseArrayList = new ArrayList<DBExpensesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_EXPENSE;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBExpensesModel expense = new DBExpensesModel();\n expense.id = c.getInt(c.getColumnIndex(KEY_ID));\n expense.type = c.getString(c.getColumnIndex(KEY_TYPE));\n expense.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n expense.place = c.getString(c.getColumnIndex(KEY_PLACE));\n expense.note = c.getString(c.getColumnIndex(KEY_NOTE));\n expense.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n expense.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n expenseArrayList.add(expense);\n } while (c.moveToNext());\n }\n return expenseArrayList;\n }",
"@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\tList<Employee> employee = new ArrayList<>();\n\t\tlogger.info(\"Getting all employee\");\n\t\ttry {\n\t\t\temployee = employeeDao.getAllEmployee();\n\t\t\tlogger.info(\"Getting all employee = {}\",employee.toString());\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(exception.getMessage());\n\t\t}\n\t\treturn employee;\n\t}",
"public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}",
"@GetMapping(\"/modelo-exclusivos\")\n @Timed\n public ResponseEntity<List<ModeloExclusivo>> getAllModeloExclusivos(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of ModeloExclusivos\");\n Page<ModeloExclusivo> page = modeloExclusivoRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/modelo-exclusivos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findAll()) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}",
"Collection<EmployeeDTO> getAll();",
"@GetMapping(\"/day-times\")\n @Timed\n public List<DayTime> getAllDayTimes() {\n log.debug(\"REST request to get all DayTimes\");\n List<DayTime> dayTimes = dayTimeRepository.findAll();\n return dayTimes;\n }",
"public void getAllEdificios(){\n System.out.println(getCantEdificios());\n for (Edificio edificio : edificios) {\n System.out.print(edificio.getColor()+\" \");\n }\n System.out.println();\n }",
"public List<String> getAll() {\n\treturn employeeService.getAll();\n }",
"@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@GetMapping(\"/all\")\n public ResponseEntity responseAllEmployees(){\n return new ResponseEntity<>(hr_service.getAllEmployees(), HttpStatus.OK);\n }",
"@ResponseBody\n\t@GetMapping(\"/employees\")\n\tpublic List<Employee> listEmployees() {\n\t\tList<Employee> theEmployees = employeeDAO.getEmployees();\n\t\t\n\t\treturn theEmployees;\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<EvenementDto> getAll() {\n DataAccess dataAccess = DataAccess.begin();\n List<EvenementEntity> li = dataAccess.getAllEvents();\n dataAccess.closeConnection(true);\n return li.stream().map(EvenementEntity::convertToDto).collect(Collectors.toList());\n }",
"public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;",
"@GET\n public List<HospedajeDTO> getHospedajes() throws WebApplicationException{\n return listEntity2DetailDTO(hospedajeLogic.getHospedajes());\n }",
"public List<Employee> getEmployees();",
"@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}",
"public List<Employee> findAll() {\n return employeeRepository.findAll();\n }",
"public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }",
"@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}",
"@Override\n\tpublic List<Employee> getAll() {\n\t\tList<Employee> list =null;\n\t\tEmployeeDAO employeeDAO = DAOFactory.getEmployeeDAO();\n\t\ttry {\n\t\t\tlist=employeeDAO.getAll();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"@GET\n @Path(\"/with-degree/{degree : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByDegree( @PathParam(\"degree\") String degree,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given degree using EducationResource.getEducationsByDegree(degree) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByDegree(degree, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@GET\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByDescription(@Nonnull @QueryParam(\"description\") String description);",
"@GET\n @Path(\"/eagerly\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducatedEmployeesEagerly( @PathParam(\"educationId\") Long educationId,\n @BeanParam EmployeeBeanParam params ) throws ForbiddenException, NotFoundException,\n /* UserTransaction exceptions */ HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException, NotSupportedException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning employees eagerly for given education using \" +\n \"EducationResource.EmployeeResource.getEducatedEmployeesEagerly(educationId) method of REST API\" );\n\n // find education entity for which to get associated employees\n Education education = educationFacade.find(educationId);\n if(education == null)\n throw new NotFoundException(\"Could not find education for id \" + educationId + \".\");\n\n Integer noOfParams = RESTToolkit.calculateNumberOfFilterQueryParams(params);\n\n ResourceList<EmployeeWrapper> employees = null;\n\n if(noOfParams > 0) {\n logger.log(Level.INFO, \"There is at least one filter query param in HTTP request.\");\n\n List<Education> educations = new ArrayList<>();\n educations.add(education);\n\n utx.begin();\n\n // get employees eagerly for given education filtered by given params\n employees = new ResourceList<>(\n EmployeeWrapper.wrap(\n employeeFacade.findByMultipleCriteriaEagerly(params.getDescriptions(), params.getJobPositions(), params.getSkills(),\n educations, params.getServices(), params.getProviderServices(), params.getServicePoints(),\n params.getWorkStations(), params.getPeriod(), params.getStrictTerm(), params.getTerms(), params.getRated(),\n params.getMinAvgRating(), params.getMaxAvgRating(), params.getRatingClients(), params.getOffset(), params.getLimit())\n )\n );\n\n utx.commit();\n\n } else {\n logger.log(Level.INFO, \"There isn't any filter query param in HTTP request.\");\n\n // get employees eagerly for given education without filtering (eventually paginated)\n employees = new ResourceList<>( EmployeeWrapper.wrap(employeeFacade.findByEducationEagerly(education, params.getOffset(), params.getLimit())) );\n }\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n pl.salonea.jaxrs.EmployeeResource.populateWithHATEOASLinks(employees, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(employees).build();\n }",
"List<Employee> allEmpInfo();",
"private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }",
"@GET\n @Path(\"/at-faculty/{faculty : \\\\S+}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Response getEducationsByFaculty( @PathParam(\"faculty\") String faculty,\n @BeanParam PaginationBeanParam params ) throws ForbiddenException {\n\n RESTToolkit.authorizeAccessToWebService(params);\n logger.log(Level.INFO, \"returning educations for given faculty using EducationResource.getEducationsByFaculty(faculty) method of REST API\");\n\n // find educations by given criteria\n ResourceList<Education> educations = new ResourceList<>( educationFacade.findByFaculty(faculty, params.getOffset(), params.getLimit()) );\n\n // result resources need to be populated with hypermedia links to enable resource discovery\n EducationResource.populateWithHATEOASLinks(educations, params.getUriInfo(), params.getOffset(), params.getLimit());\n\n return Response.status(Status.OK).entity(educations).build();\n }",
"@Path(\"/{educationId : \\\\d+}/employees\")\n public EmployeeResource getEmployeeResource() {\n return new EmployeeResource();\n }",
"public List<ExerciseWorkout> getExercises() {\n if (exercises == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ExerciseWorkoutDao targetDao = daoSession.getExerciseWorkoutDao();\n List<ExerciseWorkout> exercisesNew = targetDao._queryWorkout_Exercises(id);\n synchronized (this) {\n if(exercises == null) {\n exercises = exercisesNew;\n }\n }\n }\n return exercises;\n }",
"@GetMapping()\n\tprotected ResponseEntity<Page<Alerta>> getAllAlertas(){\n\t\t\n\t\tPage<Alerta> alertas = service.getAllAlertas(0, 10000);\n\t\t\n\t\tif(alertas == null)\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t\n\t\treturn ResponseEntity.ok(alertas);\n\t}",
"List<Employee> findAll();",
"@Override\n\tpublic ResponseEntity<Collection<Employee>> findAll() {\n\t\treturn new ResponseEntity<Collection<Employee>>(empService.findAll(),HttpStatus.OK);\n\t}",
"@RequestMapping(value=\"/employees/all\", method = RequestMethod.GET)\npublic @ResponseBody List<Employee> employeeListRest(){\n\treturn (List<Employee>) employeerepository.findAll();\n}",
"public Set<String> getEphemerals(long sessionId) {\n return dataTree.getEphemerals(sessionId);\n }",
"@GetMapping(\"/employees\")\n Flux<Employee> all() { //TODO: Wasn't previously public\n return this.repository.findAll();\n }",
"@GET\n\t@Path(\"/user/{userId}\")\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByUserId(@Nonnull @PathParam(\"userId\") Long userId, \n\t\t\t@Nullable @QueryParam(\"type\") ExerciseType type,\n\t\t\t@Nullable @QueryParam(\"date\") String date);",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getAllEmployees(){\n\t\tString employeesJsonString = getFileContent();\n\t\treturn employeesJsonString;\n\t}",
"@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/experiences\")\n @Timed\n public ResponseEntity<List<Experience>> getAllExperiences(Pageable pageable) {\n log.debug(\"REST request to get a page of Experiences\");\n Page<Experience> page = experienceRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/experiences\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"@GET\n public List<Lehrer> getAllLehrer() {\n Log.d(\"Webservice Lehrer Get:\");\n Query query = em.createNamedQuery(\"findAllTeachers\");\n List<Lehrer> lehrer = query.getResultList();\n return lehrer;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Employee> getAllEmployees() {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\t\r\n\t\tfinal Query query = session.createQuery(\"from Employee e order by id desc\");\r\n\t\t//Query q = session.createQuery(\"select NAME from Customer\");\r\n\t\t//final List<Employee> employeeList = query.list(); \r\n\t\treturn (List<Employee>) query.list();\r\n\t}",
"List getExpressions();",
"public List<Expediente> getListaXEmpCtaExp(Object o) throws DAOException{\r\n\t\tList<Expediente> lista = null;\r\n\t\ttry{\r\n\t\t\tlista = (List) getSqlMapClientTemplate().queryForList(getNameSpace() + \".getListaXEmpCtaExp\", o);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new DAOException (e);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}"
] | [
"0.69312847",
"0.66677046",
"0.6407076",
"0.612186",
"0.6092835",
"0.60801715",
"0.6076631",
"0.6068008",
"0.60584986",
"0.6040113",
"0.6028747",
"0.5998014",
"0.59855086",
"0.59822017",
"0.5976165",
"0.59677637",
"0.596595",
"0.5961539",
"0.59539145",
"0.59504557",
"0.59453356",
"0.5934333",
"0.5926701",
"0.59035385",
"0.5902189",
"0.58990455",
"0.5892635",
"0.58873624",
"0.58436805",
"0.58322036",
"0.58062863",
"0.57914",
"0.57857144",
"0.5774203",
"0.5755531",
"0.5751048",
"0.5744646",
"0.57409894",
"0.5731465",
"0.5703319",
"0.5702845",
"0.5693734",
"0.5688324",
"0.5687685",
"0.5655843",
"0.5651161",
"0.5634006",
"0.56199014",
"0.5615211",
"0.56141",
"0.5596366",
"0.55957836",
"0.5588219",
"0.55879396",
"0.558149",
"0.557648",
"0.55655307",
"0.55564",
"0.5552153",
"0.5538214",
"0.5536505",
"0.55358446",
"0.5529935",
"0.55271953",
"0.55242944",
"0.5522647",
"0.55136454",
"0.5500401",
"0.54921883",
"0.5489911",
"0.548912",
"0.5483243",
"0.5482897",
"0.54806376",
"0.5473065",
"0.546357",
"0.5458628",
"0.54564714",
"0.54542196",
"0.5434999",
"0.5432273",
"0.54293627",
"0.54275364",
"0.5411936",
"0.54103",
"0.54026824",
"0.54006606",
"0.5398771",
"0.53906226",
"0.53897816",
"0.53852063",
"0.53837466",
"0.5381864",
"0.53813225",
"0.53782266",
"0.53752935",
"0.5373086",
"0.53673553",
"0.5366118",
"0.5365228",
"0.53619176"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args)
{
} | {
"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 |
JFormDesigner Component initialization DO NOT MODIFY //GENBEGIN:initComponents | private void initComponents() {
lblHAUF = new JLabel();
jdcHAUF = new JDateChooser();
lblStation = new JLabel();
cmbStation = new JComboBox<>();
lblRoom = new JLabel();
cmbRoom = new JComboBox<>();
cbKZP = new JCheckBox();
//======== this ========
setLayout(new FormLayout(
"default, $lcgap, pref, $lcgap, default:grow, $lcgap, default",
"4*(default, $lgap), default"));
//---- lblHAUF ----
lblHAUF.setText("text");
lblHAUF.setFont(new Font("Arial", Font.PLAIN, 14));
add(lblHAUF, CC.xy(3, 3));
//---- jdcHAUF ----
jdcHAUF.setFont(new Font("Arial", Font.PLAIN, 14));
jdcHAUF.addPropertyChangeListener("date", e -> jdcDOBPropertyChange(e));
add(jdcHAUF, CC.xy(5, 3));
//---- lblStation ----
lblStation.setText("text");
lblStation.setFont(new Font("Arial", Font.PLAIN, 14));
add(lblStation, CC.xy(3, 5));
//---- cmbStation ----
cmbStation.setFont(new Font("Arial", Font.PLAIN, 14));
cmbStation.addItemListener(e -> cmbStationItemStateChanged(e));
add(cmbStation, CC.xy(5, 5));
//---- lblRoom ----
lblRoom.setText("text");
lblRoom.setFont(new Font("Arial", Font.PLAIN, 14));
add(lblRoom, CC.xy(3, 7));
//---- cmbRoom ----
cmbRoom.setFont(new Font("Arial", Font.PLAIN, 14));
cmbRoom.addItemListener(e -> cmbRoomItemStateChanged(e));
add(cmbRoom, CC.xy(5, 7));
//---- cbKZP ----
cbKZP.setText("text");
cbKZP.addItemListener(e -> cbKZPItemStateChanged(e));
add(cbKZP, CC.xywh(3, 9, 3, 1));
// JFormDesigner - End of component initialization //GEN-END:initComponents
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}",
"public FormCompra() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Designer() {\n initComponents();\n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"private void initComponents() {\n\n bindingNameLabel = new javax.swing.JLabel();\n bindingNameTextField = new javax.swing.JTextField();\n serviceNameLabel = new javax.swing.JLabel();\n serviceNameTextField = new javax.swing.JTextField();\n portNameLabel = new javax.swing.JLabel();\n servicePortTextField = new javax.swing.JTextField();\n bindingConfigurationLabel = new javax.swing.JLabel();\n bindingConfigurationPanel = new javax.swing.JPanel();\n\n setName(\"Form\"); // NOI18N\n\n bindingNameLabel.setLabelFor(bindingNameTextField);\n org.openide.awt.Mnemonics.setLocalizedText(bindingNameLabel, org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.bindingNameLabel.text\")); // NOI18N\n bindingNameLabel.setToolTipText(org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.bindingNameLabel.toolTipText\")); // NOI18N\n bindingNameLabel.setName(\"bindingNameLabel\"); // NOI18N\n\n bindingNameTextField.setName(\"bindingNameTextField\"); // NOI18N\n\n serviceNameLabel.setLabelFor(serviceNameTextField);\n org.openide.awt.Mnemonics.setLocalizedText(serviceNameLabel, org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.serviceNameLabel.text\")); // NOI18N\n serviceNameLabel.setToolTipText(org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.serviceNameLabel.toolTipText\")); // NOI18N\n serviceNameLabel.setName(\"serviceNameLabel\"); // NOI18N\n\n serviceNameTextField.setName(\"serviceNameTextField\"); // NOI18N\n\n portNameLabel.setLabelFor(servicePortTextField);\n org.openide.awt.Mnemonics.setLocalizedText(portNameLabel, org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.portNameLabel.text\")); // NOI18N\n portNameLabel.setToolTipText(org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.portNameLabel.toolTipText\")); // NOI18N\n portNameLabel.setName(\"portNameLabel\"); // NOI18N\n\n servicePortTextField.setName(\"servicePortTextField\"); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(bindingConfigurationLabel, org.openide.util.NbBundle.getMessage(BindingConfigurationPanel.class, \"BindingConfigurationPanel.bindingConfigurationLabel.text\")); // NOI18N\n bindingConfigurationLabel.setName(\"bindingConfigurationLabel\"); // NOI18N\n\n bindingConfigurationPanel.setName(\"bindingConfigurationPanel\"); // NOI18N\n bindingConfigurationPanel.setLayout(new java.awt.BorderLayout());\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, bindingConfigurationPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(bindingNameLabel)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(bindingNameTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE))\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(serviceNameLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(portNameLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(serviceNameTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)\n .add(servicePortTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)))\n .add(org.jdesktop.layout.GroupLayout.LEADING, bindingConfigurationLabel))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(bindingNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(bindingNameLabel))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(serviceNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(serviceNameLabel))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(servicePortTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(portNameLabel))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(bindingConfigurationLabel)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(bindingConfigurationPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }",
"public JFFornecedores() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public JMCF() {\n initComponents();\n }",
"public form_for_bd() {\n initComponents();\n }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"public void initComponents();",
"public FrameForm() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"private void initComponents() {\n\t\tlabel1 = new JLabel();\r\n\t\ttextField1 = new JTextField();\r\n\t\tlabel2 = new JLabel();\r\n\t\ttextField2 = new JTextField();\r\n\t\tpanel1 = new JPanel();\r\n\t\tbutton1 = new JButton();\r\n\t\taction1 = new AbstractAction();\r\n\r\n\t\t//======== this ========\r\n\r\n\t\t// JFormDesigner evaluation mark\r\n\t\tsetBorder(new javax.swing.border.CompoundBorder(\r\n\t\t\tnew javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\r\n\t\t\t\t\"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\r\n\t\t\t\tjavax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\r\n\t\t\t\tjava.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\r\n\r\n\t\tsetLayout(new MigLayout(\r\n\t\t\t\"hidemode 3\",\r\n\t\t\t// columns\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\",\r\n\t\t\t// rows\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\r\n\t\t//---- label1 ----\r\n\t\tlabel1.setText(\"Username\");\r\n\t\tadd(label1, \"cell 2 1 3 1\");\r\n\t\tadd(textField1, \"cell 5 1 4 1\");\r\n\r\n\t\t//---- label2 ----\r\n\t\tlabel2.setText(\"Password\");\r\n\t\tadd(label2, \"cell 2 3\");\r\n\t\tadd(textField2, \"cell 5 3 4 1\");\r\n\r\n\t\t//======== panel1 ========\r\n\t\t{\r\n\t\t\tpanel1.setLayout(new MigLayout(\r\n\t\t\t\t\"hidemode 3\",\r\n\t\t\t\t// columns\r\n\t\t\t\t\"[fill]\",\r\n\t\t\t\t// rows\r\n\t\t\t\t\"[]\"));\r\n\r\n\t\t\t//---- button1 ----\r\n\t\t\tbutton1.setText(\"Submit\");\r\n\t\t\tbutton1.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tbutton1MouseClicked(e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbutton1.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tbutton1ActionPerformed(e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpanel1.add(button1, \"cell 0 0\");\r\n\t\t}\r\n\t\tadd(panel1, \"cell 4 6\");\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}",
"public SettingsForm() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public ProgramForm() {\n setLookAndFeel();\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\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 Interfax_D() {\n initComponents();\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 contactBrowsePanel1 = new cis406.contact.BrowsePanel();\n contactEditPanel1 = new cis406.contact.EditPanel();\n\n setName(\"Form\"); // NOI18N\n setLayout(new java.awt.CardLayout());\n\n contactBrowsePanel1.setName(\"contactBrowsePanel1\"); // NOI18N\n add(contactBrowsePanel1, \"Browse\");\n\n contactEditPanel1.setName(\"contactEditPanel1\"); // NOI18N\n add(contactEditPanel1, \"Edit\");\n }",
"public JFcotiza() {\n initComponents();\n }",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"public P0405() {\n initComponents();\n }",
"public frmModelMainForm() {\n initComponents();\n }",
"public C_AdminForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jcbSubjects = new javax.swing.JComboBox();\n jcbTeachers = new javax.swing.JComboBox();\n jcbRooms = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jbtnCancel = new javax.swing.JButton();\n jbtnSave = new javax.swing.JButton();\n\n setLocationByPlatform(true);\n setName(\"Form\"); // NOI18N\n setResizable(false);\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n formComponentShown(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Dodaj lekcje\")); // NOI18N\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n jcbSubjects.setName(\"jcbSubjects\"); // NOI18N\n jcbSubjects.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jcbSubjectsActionPerformed(evt);\n }\n });\n\n jcbTeachers.setName(\"jcbTeachers\"); // NOI18N\n jcbTeachers.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jcbTeachersActionPerformed(evt);\n }\n });\n\n jcbRooms.setName(\"jcbRooms\"); // NOI18N\n jcbRooms.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jcbRoomsActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Przedmiot:\"); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(schoolmanagement.SchoolmanagementApp.class).getContext().getResourceMap(JAddLessonDialog.class);\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(55, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jcbSubjects, javax.swing.GroupLayout.Alignment.TRAILING, 0, 241, Short.MAX_VALUE)\n .addComponent(jcbTeachers, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jcbRooms, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcbSubjects, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcbTeachers, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcbRooms, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)))\n );\n\n jbtnCancel.setText(\"Anuluj\"); // NOI18N\n jbtnCancel.setName(\"jbtnCancel\"); // NOI18N\n jbtnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtnCancelActionPerformed(evt);\n }\n });\n\n jbtnSave.setText(\"Zapisz\"); // NOI18N\n jbtnSave.setName(\"jbtnSave\"); // NOI18N\n jbtnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtnSaveActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jbtnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 130, Short.MAX_VALUE)\n .addComponent(jbtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbtnCancel)\n .addComponent(jbtnSave))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jTextField16 = new javax.swing.JTextField();\n jTextField17 = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField15 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Schedule Setup\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jButton2.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jButton2.setText(\"Save\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jButton1.setText(\"Cancel\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Semester Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel1.setText(\"Semester:\");\n\n jComboBox1.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Select Semester\", \"Fall\", \"Spring\", \"Summer A\", \"Summer B\", \"Summer C\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel2.setText(\"Start Date:\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel3.setText(\"End Date:\");\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel15.setText(\"(mm/dd/yy)\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel16.setText(\"(mm/dd/yy)\");\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel1)\n .add(jLabel2))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jTextField16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jLabel15)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 67, Short.MAX_VALUE)\n .add(jLabel3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTextField17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jLabel16)\n .addContainerGap(41, Short.MAX_VALUE))\n .add(jPanel1Layout.createSequentialGroup()\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 105, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(351, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(jComboBox1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 17, Short.MAX_VALUE)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2)\n .add(jLabel15)\n .add(jLabel16)\n .add(jLabel3)\n .add(jTextField16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(11, 11, 11))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Class Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel4.setText(\"Subject:\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel5.setText(\"Course Name:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 12));\n jLabel6.setText(\"Course Number:\");\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jLabel17.setFont(new java.awt.Font(\"Arial\", 2, 10));\n jLabel17.setText(\"(XXX)\");\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jLabel4)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel17)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 41, Short.MAX_VALUE)\n .add(jLabel6)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 99, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel2Layout.createSequentialGroup()\n .add(jLabel5)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE)))\n .add(149, 149, 149))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel4)\n .add(jLabel6)\n .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel17))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel5)\n .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Class Times\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12), new java.awt.Color(0, 0, 255)));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Monday\");\n\n jLabel13.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel13.setText(\"Start Time:\");\n\n jLabel14.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel14.setText(\"End Time:\");\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel8.setText(\"Tuesday\");\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel9.setText(\"Wednesday\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel10.setText(\"Thursday\");\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel11.setText(\"Friday\");\n\n jLabel12.setFont(new java.awt.Font(\"Arial\", 0, 11));\n jLabel12.setText(\"Saturday\");\n\n jLabel18.setFont(new java.awt.Font(\"Arial\", 2, 11));\n jLabel18.setText(\"(In Military Time hh:mm)\");\n\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField7ActionPerformed(evt);\n }\n });\n\n jTextField9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField9ActionPerformed(evt);\n }\n });\n\n jTextField10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField10ActionPerformed(evt);\n }\n });\n\n jTextField11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField11ActionPerformed(evt);\n }\n });\n\n jTextField12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField12ActionPerformed(evt);\n }\n });\n\n jTextField13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField13ActionPerformed(evt);\n }\n });\n\n jTextField14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField14ActionPerformed(evt);\n }\n });\n\n jTextField15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField15ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel13)\n .add(jLabel14))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)\n .add(jLabel7))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 73, Short.MAX_VALUE)\n .add(jLabel8)\n .add(jTextField6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)\n .add(jLabel9)\n .add(jTextField7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)\n .add(jLabel10)\n .add(jTextField8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)\n .add(jLabel11)\n .add(jTextField9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 75, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(jTextField15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE)\n .add(jLabel12)\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel18)))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel7)\n .add(jLabel9)\n .add(jLabel10)\n .add(jLabel11)\n .add(jLabel12)\n .add(jLabel8))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel13)\n .add(jTextField5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel18)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel14)\n .add(jTextField15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 67, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jButton1)\n .add(8, 8, 8))\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButton1)\n .add(jButton2))\n .addContainerGap())\n );\n\n pack();\n }",
"public JFrmPrincipal() {\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 Janela01() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public DisciplinaForm() {\n initComponents();\n }",
"private void initComponents() {\r\n\r\n jTextField4 = new javax.swing.JTextField();\r\n jPanel1 = new javax.swing.JPanel();\r\n jButton1 = new javax.swing.JButton();\r\n jTextField1 = new javax.swing.JTextField();\r\n jTextField2 = new javax.swing.JTextField();\r\n filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));\r\n filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));\r\n filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));\r\n filler4 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jPasswordField1 = new javax.swing.JPasswordField();\r\n jComboBox1 = new javax.swing.JComboBox<>();\r\n jLabel6 = new javax.swing.JLabel();\r\n\r\n jTextField4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"MODIFICATION\");\r\n\r\n jPanel1.setBackground(new java.awt.Color(255, 204, 204));\r\n jPanel1.setAutoscrolls(true);\r\n\r\n jButton1.setBackground(new java.awt.Color(255, 204, 0));\r\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\r\n jButton1.setText(\"OK\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n jTextField1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jTextField1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));\r\n jTextField1.setText(prenomAgent);\r\n jTextField2.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jTextField2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));\r\n jTextField2.setText(nomAgent);\r\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Interface/user.png\"))); // NOI18N\r\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jLabel2.setText(\"Prénom\");\r\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jLabel3.setText(\"Nom\");\r\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jLabel4.setText(\"Centre d'intérêt\");\r\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jLabel5.setText(\"Mot de passe\");\r\n\r\n jPasswordField1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jPasswordField1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n jPasswordField1.setText(mtpAgent); \r\n jComboBox1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Informatique\", \"Mathématique\" }));\r\n jComboBox1.setSelectedItem(domaineAgent);\r\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\r\n jLabel6.setForeground(new java.awt.Color(255, 0, 51));\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(120, 120, 120)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(57, 57, 57))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel3)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(331, 331, 331)\r\n .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel5)\r\n .addGap(18, 18, 18))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addGap(31, 31, 31)))\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 279, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)\r\n .addComponent(filler4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(filler3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addGap(178, 178, 178))))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel1)\r\n .addGap(325, 325, 325))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(52, 52, 52)\r\n .addComponent(jLabel1)\r\n .addGap(28, 28, 28)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel3)))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(125, 125, 125)\r\n .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel2))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(31, 31, 31)\r\n .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(filler3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(filler4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(46, 46, 46))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(140, 140, 140))))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }",
"public ScheduleForm() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }",
"private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }",
"public Pregunta23() {\n initComponents();\n }",
"private void initComponents() {\n\n\t\tkDefLabel = new javax.swing.JLabel();\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\t\tcancelButton = new javax.swing.JButton();\n\t\tkLabel = new javax.swing.JLabel();\n\t\tsaveButton = new javax.swing.JButton();\n\t\tTitleLabel = new javax.swing.JLabel();\n\t\tjSeparator2 = new javax.swing.JSeparator();\n\t\tkTextField = new javax.swing.JTextField();\n\t\tkLabel1 = new javax.swing.JLabel();\n\t\tkTextField1 = new javax.swing.JTextField();\n\t\tkDefLabel1 = new javax.swing.JLabel();\n\n\t\t//setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Configuración de Algoritmo\");\n\n\t\tkDefLabel.setText(\"(default = 10)\");\n\n\t\tcancelButton.setText(\"Cancelar\");\n\t\tcancelButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tkLabel.setText(\"Número de reglas a buscar:\");\n\n\t\tkLabel1.setText(\"Confianza mínima de una regla: \");\n\n\t\tsaveButton.setText(\"Guardar\");\n\t\tsaveButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGlobalData.getInstance().setCurrentTechnique(FuzzyDataMining.MODEL_FUZZY_APRIORI);\n\t\t\t\tHashMap<String, Object> options = new HashMap<String, Object>();\n\t\t\t\tif(!kTextField.getText().isEmpty())\n\t\t\t\t\toptions.put(\"nr\", kTextField.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"nr\", \"10\");\n\t\t\t\tif(!kTextField1.getText().isEmpty())\n\t\t\t\t\toptions.put(\"mc\", kTextField1.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"mc\", \"0.9\");\n\t\t\t\tGlobalData.getInstance().setConfiguredTechnique(options);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tTitleLabel.setText(\"Configuración de Apriori Difuso\");\n\n\t\tkDefLabel1.setText(\"(default = 0.9)\");\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator1)\n\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t.addComponent(TitleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\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.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\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(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\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.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(0, 9, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.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.addGap(0, 0, Short.MAX_VALUE)\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(saveButton)\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.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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(cancelButton)\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.addContainerGap())))\n\t\t\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(TitleLabel)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(kLabel)\n\t\t\t\t\t\t\t\t.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(kDefLabel))\n\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(saveButton))\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\n\t\tpack();\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 ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public FormListRemarking() {\n initComponents();\n }",
"private void initComponents() {\n\n nameJTF = new javax.swing.JTextField();\n mmsiJTF = new javax.swing.JTextField();\n imoJTF = new javax.swing.JTextField();\n widthJTF = new javax.swing.JTextField();\n lengthJTF = new javax.swing.JTextField();\n draughtJTF = new javax.swing.JTextField();\n model3DJTF = new javax.swing.JTextField();\n destinationJTF = new javax.swing.JTextField();\n etaJTF = new javax.swing.JTextField();\n callSignJTF = new javax.swing.JTextField();\n electronicPositionDeviceJTF = new javax.swing.JTextField();\n navigationalStatusJTF = new javax.swing.JTextField();\n typeJTF = new javax.swing.JTextField();\n defaultJB = new javax.swing.JButton();\n imageJTF = new javax.swing.JTextField();\n\n nameJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.nameJTF.text\")); // NOI18N\n nameJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.nameJTF.border.title\"))); // NOI18N\n\n mmsiJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.mmsiJTF.text\")); // NOI18N\n mmsiJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.mmsiJTF.border.title\"))); // NOI18N\n mmsiJTF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mmsiJTFActionPerformed(evt);\n }\n });\n\n imoJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.imoJTF.text\")); // NOI18N\n imoJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.imoJTF.border.title\"))); // NOI18N\n\n widthJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.widthJTF.text\")); // NOI18N\n widthJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.widthJTF.border.title\"))); // NOI18N\n widthJTF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n widthJTFActionPerformed(evt);\n }\n });\n\n lengthJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.lengthJTF.text\")); // NOI18N\n lengthJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.lengthJTF.border.title\"))); // NOI18N\n\n draughtJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.draughtJTF.text\")); // NOI18N\n draughtJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.draughtJTF.border.title\"))); // NOI18N\n\n model3DJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.model3DJTF.text\")); // NOI18N\n model3DJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.model3DJTF.border.title\"))); // NOI18N\n\n destinationJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.destinationJTF.text\")); // NOI18N\n destinationJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.destinationJTF.border.title\"))); // NOI18N\n\n etaJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.etaJTF.text\")); // NOI18N\n etaJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.etaJTF.border.title\"))); // NOI18N\n\n callSignJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.callSignJTF.text\")); // NOI18N\n callSignJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.callSignJTF.border.title\"))); // NOI18N\n\n electronicPositionDeviceJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.electronicPositionDeviceJTF.text\")); // NOI18N\n electronicPositionDeviceJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.electronicPositionDeviceJTF.border.title\"))); // NOI18N\n\n navigationalStatusJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.navigationalStatusJTF.text\")); // NOI18N\n navigationalStatusJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.navigationalStatusJTF.border.title\"))); // NOI18N\n\n typeJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.typeJTF.text\")); // NOI18N\n typeJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.typeJTF.border.title\"))); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(defaultJB, org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.defaultJB.text\")); // NOI18N\n defaultJB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n defaultJBActionPerformed(evt);\n }\n });\n\n imageJTF.setText(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.imageJTF.text\")); // NOI18N\n imageJTF.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(MainShipPanel.class, \"MainShipPanel.imageJTF.border.title\"))); // 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 .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(lengthJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(widthJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imoJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(mmsiJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(draughtJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nameJTF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imageJTF, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE))\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(model3DJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(destinationJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etaJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(callSignJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(electronicPositionDeviceJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(navigationalStatusJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(typeJTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(defaultJB, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap(21, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {callSignJTF, destinationJTF, electronicPositionDeviceJTF, etaJTF, model3DJTF, navigationalStatusJTF, typeJTF});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nameJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(typeJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(mmsiJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(navigationalStatusJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(imoJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(electronicPositionDeviceJTF, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(widthJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(callSignJTF, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lengthJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etaJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(draughtJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(destinationJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(model3DJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(imageJTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(defaultJB)\n .addContainerGap(27, Short.MAX_VALUE))\n );\n }",
"public FormUtama() {\n initComponents();\n }",
"private void initComponents() {\n setBorder(new javax.swing.border.CompoundBorder(\n new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\n \"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\n javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\n java.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\n\n setLayout(null);\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < getComponentCount(); i++) {\n Rectangle bounds = getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n setMinimumSize(preferredSize);\n setPreferredSize(preferredSize);\n }\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public dokter() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public JF_Inscripcion() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n formMouseReleased(evt);\n }\n });\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n formMouseMoved(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"private void initComponents() {\n\n jLabelSGBD = new javax.swing.JLabel();\n jCSGBD = new javax.swing.JComboBox();\n jButtonQuestionSGBD = new javax.swing.JButton();\n jLabelCaminho = new javax.swing.JLabel();\n jTCaminho = new javax.swing.JTextField();\n jButtonQuestionCaminho = new javax.swing.JButton();\n jLabelPorta = new javax.swing.JLabel();\n jTPorta = new javax.swing.JTextField();\n jButtonQuestionPorta = new javax.swing.JButton();\n jLabelNomeBanco = new javax.swing.JLabel();\n jTNomeBanco = new javax.swing.JTextField();\n jButtonNomeBanco = new javax.swing.JButton();\n jLabelUsuario = new javax.swing.JLabel();\n jTUsuario = new javax.swing.JTextField();\n jButtonUsuario = new javax.swing.JButton();\n jLabelSenha = new javax.swing.JLabel();\n jPSenha = new javax.swing.JPasswordField();\n jButtonSenha = new javax.swing.JButton();\n JBConectar = new javax.swing.JButton();\n jLErro = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Configuração Base de Dados\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 1, 16))); // NOI18N\n\n jLabelSGBD.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelSGBD.setText(\"SGBD:\"); // NOI18N\n\n jCSGBD.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"PostgreSQL\" }));\n jCSGBD.setNextFocusableComponent(jTCaminho);\n\n jButtonQuestionSGBD.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonQuestionSGBD.setToolTipText(\"Origem dos Dados\");\n jButtonQuestionSGBD.setBorder(null);\n\n jLabelCaminho.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelCaminho.setText(\"Caminho da Base de Dados:\"); // NOI18N\n\n jTCaminho.setText(\"127.0.0.1/\"); // NOI18N\n jTCaminho.setNextFocusableComponent(jTPorta);\n\n jButtonQuestionCaminho.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonQuestionCaminho.setToolTipText(\"Computador onde os dados estão armazenados\");\n jButtonQuestionCaminho.setBorder(null);\n\n jLabelPorta.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelPorta.setText(\"Porta para a conexão:\"); // NOI18N\n\n jTPorta.setText(\"5432\"); // NOI18N\n jTPorta.setNextFocusableComponent(jTNomeBanco);\n\n jButtonQuestionPorta.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonQuestionPorta.setToolTipText(\"Porta para realizar a conexão ao computador\");\n jButtonQuestionPorta.setBorder(null);\n\n jLabelNomeBanco.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelNomeBanco.setText(\"Nome da base dados:\"); // NOI18N\n\n jTNomeBanco.setText(\"postgres\"); // NOI18N\n jTNomeBanco.setNextFocusableComponent(jTUsuario);\n\n jButtonNomeBanco.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonNomeBanco.setToolTipText(\"Nome da base de dados de origem\");\n jButtonNomeBanco.setBorder(null);\n\n jLabelUsuario.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelUsuario.setText(\"Usuário:\"); // NOI18N\n\n jTUsuario.setText(\"postgres\"); // NOI18N\n jTUsuario.setNextFocusableComponent(jPSenha);\n\n jButtonUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonUsuario.setToolTipText(\"Usuário do banco de dados utilizado para acesar os dados\");\n jButtonUsuario.setBorder(null);\n\n jLabelSenha.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLabelSenha.setText(\"Senha:\"); // NOI18N\n\n jPSenha.setText(\"postgres\"); // NOI18N\n jPSenha.setNextFocusableComponent(JBConectar);\n\n jButtonSenha.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Question.GIF\")));\n jButtonSenha.setToolTipText(\"Senha do Usuário para acessar os dados\");\n jButtonSenha.setBorder(null);\n\n JBConectar.setText(\"Criar Conexão\"); // NOI18N\n JBConectar.setNextFocusableComponent(jCSGBD);\n JBConectar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JBConectarActionPerformed(evt);\n }\n });\n\n jLErro.setFont(new java.awt.Font(\"Calibri\", 0, 12));\n jLErro.setForeground(new java.awt.Color(255, 0, 0));\n jLErro.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLErro.setText(\" \"); // 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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelSGBD)\n .addComponent(jLabelCaminho)\n .addComponent(jLabelPorta)\n .addComponent(jLabelNomeBanco)\n .addComponent(jLabelUsuario)\n .addComponent(jLabelSenha))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTCaminho)\n .addComponent(jCSGBD, 0, 200, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTPorta, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonQuestionPorta, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButtonQuestionSGBD, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonQuestionCaminho, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(40, 40, 40))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLErro, javax.swing.GroupLayout.PREFERRED_SIZE, 439, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(JBConectar)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCSGBD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelSGBD))\n .addComponent(jButtonQuestionSGBD, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTCaminho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelCaminho))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTPorta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelPorta))\n .addComponent(jButtonQuestionPorta, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelNomeBanco)\n .addComponent(jTNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButtonNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jButtonQuestionCaminho, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelUsuario)\n .addComponent(jTUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButtonUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelSenha)\n .addComponent(jPSenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButtonSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLErro)\n .addComponent(JBConectar))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jCSGBD, jPSenha, jTCaminho, jTNomeBanco, jTPorta, jTUsuario});\n\n }",
"public cargamasiva() {\n initComponents();\n }",
"private void initializeComponent() throws Exception {\n System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(FormEhrVaccinePatEdit.class);\n this.label5 = new System.Windows.Forms.Label();\n this.labelAmount = new System.Windows.Forms.Label();\n this.textAmount = new System.Windows.Forms.TextBox();\n this.comboVaccine = new System.Windows.Forms.ComboBox();\n this.labelVaccine = new System.Windows.Forms.Label();\n this.comboUnits = new System.Windows.Forms.ComboBox();\n this.textManufacturer = new System.Windows.Forms.TextBox();\n this.labelDateTimeStartStop = new System.Windows.Forms.Label();\n this.textDateTimeStart = new System.Windows.Forms.TextBox();\n this.label2 = new System.Windows.Forms.Label();\n this.textLotNum = new System.Windows.Forms.TextBox();\n this.textDateTimeStop = new System.Windows.Forms.TextBox();\n this.labelDateTimeStop = new System.Windows.Forms.Label();\n this.labelDocument = new System.Windows.Forms.Label();\n this.textNote = new System.Windows.Forms.TextBox();\n this.label3 = new System.Windows.Forms.Label();\n this.label1 = new System.Windows.Forms.Label();\n this.textFilledCity = new System.Windows.Forms.TextBox();\n this.label4 = new System.Windows.Forms.Label();\n this.textFilledSt = new System.Windows.Forms.TextBox();\n this.label6 = new System.Windows.Forms.Label();\n this.listCompletionStatus = new System.Windows.Forms.ListBox();\n this.label7 = new System.Windows.Forms.Label();\n this.label8 = new System.Windows.Forms.Label();\n this.listAdministrationNote = new System.Windows.Forms.ListBox();\n this.label9 = new System.Windows.Forms.Label();\n this.comboProvNumOrdering = new System.Windows.Forms.ComboBox();\n this.label10 = new System.Windows.Forms.Label();\n this.comboProvNumAdministering = new System.Windows.Forms.ComboBox();\n this.label11 = new System.Windows.Forms.Label();\n this.label12 = new System.Windows.Forms.Label();\n this.label13 = new System.Windows.Forms.Label();\n this.listRefusalReason = new System.Windows.Forms.ListBox();\n this.label14 = new System.Windows.Forms.Label();\n this.listAction = new System.Windows.Forms.ListBox();\n this.label15 = new System.Windows.Forms.Label();\n this.comboAdministrationRoute = new System.Windows.Forms.ComboBox();\n this.comboAdministrationSite = new System.Windows.Forms.ComboBox();\n this.label16 = new System.Windows.Forms.Label();\n this.textUser = new System.Windows.Forms.TextBox();\n this.gridObservations = new OpenDental.UI.ODGrid();\n this.butUngroupObservations = new OpenDental.UI.Button();\n this.butGroupObservations = new OpenDental.UI.Button();\n this.butAddObservation = new OpenDental.UI.Button();\n this.button1 = new OpenDental.UI.Button();\n this.button2 = new OpenDental.UI.Button();\n this.butDelete = new OpenDental.UI.Button();\n this.butNoneProvAdministering = new OpenDental.UI.Button();\n this.butNoneProvOrdering = new OpenDental.UI.Button();\n this.textDateExpiration = new OpenDental.ValidDate();\n this.butPickProvAdministering = new OpenDental.UI.Button();\n this.butPickProvOrdering = new OpenDental.UI.Button();\n this.SuspendLayout();\n //\n // label5\n //\n this.label5.Location = new System.Drawing.Point(5, 50);\n this.label5.Name = \"label5\";\n this.label5.Size = new System.Drawing.Size(130, 17);\n this.label5.TabIndex = 12;\n this.label5.Text = \"Manufacturer\";\n this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // labelAmount\n //\n this.labelAmount.Location = new System.Drawing.Point(5, 128);\n this.labelAmount.Name = \"labelAmount\";\n this.labelAmount.Size = new System.Drawing.Size(130, 17);\n this.labelAmount.TabIndex = 10;\n this.labelAmount.Text = \"Amount\";\n this.labelAmount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textAmount\n //\n this.textAmount.Location = new System.Drawing.Point(136, 128);\n this.textAmount.Name = \"textAmount\";\n this.textAmount.Size = new System.Drawing.Size(63, 20);\n this.textAmount.TabIndex = 3;\n //\n // comboVaccine\n //\n this.comboVaccine.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n this.comboVaccine.FormattingEnabled = true;\n this.comboVaccine.Location = new System.Drawing.Point(136, 23);\n this.comboVaccine.Name = \"comboVaccine\";\n this.comboVaccine.Size = new System.Drawing.Size(201, 21);\n this.comboVaccine.TabIndex = 0;\n this.comboVaccine.SelectedIndexChanged += new System.EventHandler(this.comboVaccine_SelectedIndexChanged);\n //\n // labelVaccine\n //\n this.labelVaccine.Location = new System.Drawing.Point(5, 23);\n this.labelVaccine.Name = \"labelVaccine\";\n this.labelVaccine.Size = new System.Drawing.Size(130, 17);\n this.labelVaccine.TabIndex = 13;\n this.labelVaccine.Text = \"Vaccine Def\";\n this.labelVaccine.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // comboUnits\n //\n this.comboUnits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n this.comboUnits.FormattingEnabled = true;\n this.comboUnits.Location = new System.Drawing.Point(136, 155);\n this.comboUnits.Name = \"comboUnits\";\n this.comboUnits.Size = new System.Drawing.Size(63, 21);\n this.comboUnits.TabIndex = 4;\n //\n // textManufacturer\n //\n this.textManufacturer.Location = new System.Drawing.Point(136, 48);\n this.textManufacturer.Name = \"textManufacturer\";\n this.textManufacturer.ReadOnly = true;\n this.textManufacturer.Size = new System.Drawing.Size(201, 20);\n this.textManufacturer.TabIndex = 14;\n this.textManufacturer.TabStop = false;\n //\n // labelDateTimeStartStop\n //\n this.labelDateTimeStartStop.Location = new System.Drawing.Point(5, 74);\n this.labelDateTimeStartStop.Name = \"labelDateTimeStartStop\";\n this.labelDateTimeStartStop.Size = new System.Drawing.Size(130, 17);\n this.labelDateTimeStartStop.TabIndex = 11;\n this.labelDateTimeStartStop.Text = \"Date Time Start\";\n this.labelDateTimeStartStop.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textDateTimeStart\n //\n this.textDateTimeStart.Location = new System.Drawing.Point(136, 74);\n this.textDateTimeStart.Name = \"textDateTimeStart\";\n this.textDateTimeStart.Size = new System.Drawing.Size(151, 20);\n this.textDateTimeStart.TabIndex = 1;\n //\n // label2\n //\n this.label2.Location = new System.Drawing.Point(5, 182);\n this.label2.Name = \"label2\";\n this.label2.Size = new System.Drawing.Size(130, 17);\n this.label2.TabIndex = 9;\n this.label2.Text = \"Lot Number\";\n this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textLotNum\n //\n this.textLotNum.Location = new System.Drawing.Point(136, 182);\n this.textLotNum.Name = \"textLotNum\";\n this.textLotNum.Size = new System.Drawing.Size(118, 20);\n this.textLotNum.TabIndex = 5;\n //\n // textDateTimeStop\n //\n this.textDateTimeStop.Location = new System.Drawing.Point(136, 101);\n this.textDateTimeStop.Name = \"textDateTimeStop\";\n this.textDateTimeStop.Size = new System.Drawing.Size(151, 20);\n this.textDateTimeStop.TabIndex = 2;\n //\n // labelDateTimeStop\n //\n this.labelDateTimeStop.Location = new System.Drawing.Point(5, 101);\n this.labelDateTimeStop.Name = \"labelDateTimeStop\";\n this.labelDateTimeStop.Size = new System.Drawing.Size(130, 17);\n this.labelDateTimeStop.TabIndex = 11;\n this.labelDateTimeStop.Text = \"Date Time Stop\";\n this.labelDateTimeStop.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // labelDocument\n //\n this.labelDocument.Location = new System.Drawing.Point(136, 371);\n this.labelDocument.Name = \"labelDocument\";\n this.labelDocument.Size = new System.Drawing.Size(336, 45);\n this.labelDocument.TabIndex = 16;\n this.labelDocument.Text = \"Document reason not given below. Reason can include a specific allergy, adverse \" + \"effect, intollerance, patient declines, specific disease, etc.\";\n //\n // textNote\n //\n this.textNote.Location = new System.Drawing.Point(136, 419);\n this.textNote.Multiline = true;\n this.textNote.Name = \"textNote\";\n this.textNote.Size = new System.Drawing.Size(336, 75);\n this.textNote.TabIndex = 17;\n //\n // label3\n //\n this.label3.Location = new System.Drawing.Point(5, 419);\n this.label3.Name = \"label3\";\n this.label3.Size = new System.Drawing.Size(130, 17);\n this.label3.TabIndex = 18;\n this.label3.Text = \"Note\";\n this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label1\n //\n this.label1.Location = new System.Drawing.Point(5, 155);\n this.label1.Name = \"label1\";\n this.label1.Size = new System.Drawing.Size(130, 17);\n this.label1.TabIndex = 19;\n this.label1.Text = \"Units\";\n this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textFilledCity\n //\n this.textFilledCity.Location = new System.Drawing.Point(624, 23);\n this.textFilledCity.Name = \"textFilledCity\";\n this.textFilledCity.Size = new System.Drawing.Size(151, 20);\n this.textFilledCity.TabIndex = 20;\n //\n // label4\n //\n this.label4.Location = new System.Drawing.Point(494, 23);\n this.label4.Name = \"label4\";\n this.label4.Size = new System.Drawing.Size(130, 17);\n this.label4.TabIndex = 21;\n this.label4.Text = \"City Where Filled\";\n this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textFilledSt\n //\n this.textFilledSt.Location = new System.Drawing.Point(624, 48);\n this.textFilledSt.Name = \"textFilledSt\";\n this.textFilledSt.Size = new System.Drawing.Size(151, 20);\n this.textFilledSt.TabIndex = 22;\n //\n // label6\n //\n this.label6.Location = new System.Drawing.Point(494, 48);\n this.label6.Name = \"label6\";\n this.label6.Size = new System.Drawing.Size(130, 17);\n this.label6.TabIndex = 23;\n this.label6.Text = \"State Where Filled\";\n this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // listCompletionStatus\n //\n this.listCompletionStatus.FormattingEnabled = true;\n this.listCompletionStatus.Location = new System.Drawing.Point(136, 234);\n this.listCompletionStatus.Name = \"listCompletionStatus\";\n this.listCompletionStatus.Size = new System.Drawing.Size(151, 56);\n this.listCompletionStatus.TabIndex = 24;\n //\n // label7\n //\n this.label7.Location = new System.Drawing.Point(5, 234);\n this.label7.Name = \"label7\";\n this.label7.Size = new System.Drawing.Size(130, 17);\n this.label7.TabIndex = 25;\n this.label7.Text = \"Completion Status\";\n this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label8\n //\n this.label8.Location = new System.Drawing.Point(494, 208);\n this.label8.Name = \"label8\";\n this.label8.Size = new System.Drawing.Size(130, 17);\n this.label8.TabIndex = 27;\n this.label8.Text = \"Administration Note\";\n this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // listAdministrationNote\n //\n this.listAdministrationNote.FormattingEnabled = true;\n this.listAdministrationNote.Location = new System.Drawing.Point(624, 208);\n this.listAdministrationNote.Name = \"listAdministrationNote\";\n this.listAdministrationNote.Size = new System.Drawing.Size(151, 121);\n this.listAdministrationNote.TabIndex = 26;\n //\n // label9\n //\n this.label9.Location = new System.Drawing.Point(494, 74);\n this.label9.Name = \"label9\";\n this.label9.Size = new System.Drawing.Size(130, 17);\n this.label9.TabIndex = 28;\n this.label9.Text = \"User\";\n this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // comboProvNumOrdering\n //\n this.comboProvNumOrdering.Location = new System.Drawing.Point(624, 101);\n this.comboProvNumOrdering.MaxDropDownItems = 30;\n this.comboProvNumOrdering.Name = \"comboProvNumOrdering\";\n this.comboProvNumOrdering.Size = new System.Drawing.Size(254, 21);\n this.comboProvNumOrdering.TabIndex = 262;\n this.comboProvNumOrdering.SelectionChangeCommitted += new System.EventHandler(this.comboProvNumOrdering_SelectionChangeCommitted);\n //\n // label10\n //\n this.label10.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.label10.Location = new System.Drawing.Point(494, 101);\n this.label10.Name = \"label10\";\n this.label10.Size = new System.Drawing.Size(130, 17);\n this.label10.TabIndex = 261;\n this.label10.Text = \"Ordering Provider\";\n this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // comboProvNumAdministering\n //\n this.comboProvNumAdministering.Location = new System.Drawing.Point(624, 128);\n this.comboProvNumAdministering.MaxDropDownItems = 30;\n this.comboProvNumAdministering.Name = \"comboProvNumAdministering\";\n this.comboProvNumAdministering.Size = new System.Drawing.Size(254, 21);\n this.comboProvNumAdministering.TabIndex = 265;\n this.comboProvNumAdministering.SelectionChangeCommitted += new System.EventHandler(this.comboProvNumAdministering_SelectionChangeCommitted);\n //\n // label11\n //\n this.label11.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.label11.Location = new System.Drawing.Point(494, 128);\n this.label11.Name = \"label11\";\n this.label11.Size = new System.Drawing.Size(130, 17);\n this.label11.TabIndex = 264;\n this.label11.Text = \"Administering Provider\";\n this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label12\n //\n this.label12.Font = new System.Drawing.Font(\"Microsoft Sans Serif\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n this.label12.Location = new System.Drawing.Point(5, 208);\n this.label12.Name = \"label12\";\n this.label12.Size = new System.Drawing.Size(130, 17);\n this.label12.TabIndex = 268;\n this.label12.Text = \"Date Expiration\";\n this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label13\n //\n this.label13.Location = new System.Drawing.Point(5, 296);\n this.label13.Name = \"label13\";\n this.label13.Size = new System.Drawing.Size(130, 17);\n this.label13.TabIndex = 270;\n this.label13.Text = \"Refusal Reason\";\n this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // listRefusalReason\n //\n this.listRefusalReason.FormattingEnabled = true;\n this.listRefusalReason.Location = new System.Drawing.Point(136, 296);\n this.listRefusalReason.Name = \"listRefusalReason\";\n this.listRefusalReason.Size = new System.Drawing.Size(151, 69);\n this.listRefusalReason.TabIndex = 269;\n //\n // label14\n //\n this.label14.Location = new System.Drawing.Point(494, 335);\n this.label14.Name = \"label14\";\n this.label14.Size = new System.Drawing.Size(130, 17);\n this.label14.TabIndex = 272;\n this.label14.Text = \"Action\";\n this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // listAction\n //\n this.listAction.FormattingEnabled = true;\n this.listAction.Location = new System.Drawing.Point(624, 335);\n this.listAction.Name = \"listAction\";\n this.listAction.Size = new System.Drawing.Size(151, 43);\n this.listAction.TabIndex = 271;\n //\n // label15\n //\n this.label15.Location = new System.Drawing.Point(494, 155);\n this.label15.Name = \"label15\";\n this.label15.Size = new System.Drawing.Size(130, 17);\n this.label15.TabIndex = 274;\n this.label15.Text = \"Administration Route\";\n this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // comboAdministrationRoute\n //\n this.comboAdministrationRoute.FormattingEnabled = true;\n this.comboAdministrationRoute.Location = new System.Drawing.Point(624, 155);\n this.comboAdministrationRoute.Name = \"comboAdministrationRoute\";\n this.comboAdministrationRoute.Size = new System.Drawing.Size(151, 21);\n this.comboAdministrationRoute.TabIndex = 275;\n //\n // comboAdministrationSite\n //\n this.comboAdministrationSite.FormattingEnabled = true;\n this.comboAdministrationSite.Location = new System.Drawing.Point(624, 182);\n this.comboAdministrationSite.Name = \"comboAdministrationSite\";\n this.comboAdministrationSite.Size = new System.Drawing.Size(151, 21);\n this.comboAdministrationSite.TabIndex = 277;\n //\n // label16\n //\n this.label16.Location = new System.Drawing.Point(494, 182);\n this.label16.Name = \"label16\";\n this.label16.Size = new System.Drawing.Size(130, 17);\n this.label16.TabIndex = 276;\n this.label16.Text = \"Administration Site\";\n this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textUser\n //\n this.textUser.Location = new System.Drawing.Point(624, 74);\n this.textUser.Name = \"textUser\";\n this.textUser.ReadOnly = true;\n this.textUser.Size = new System.Drawing.Size(151, 20);\n this.textUser.TabIndex = 283;\n //\n // gridObservations\n //\n this.gridObservations.setHScrollVisible(false);\n this.gridObservations.Location = new System.Drawing.Point(624, 384);\n this.gridObservations.Name = \"gridObservations\";\n this.gridObservations.setScrollValue(0);\n this.gridObservations.setSelectionMode(OpenDental.UI.GridSelectionMode.MultiExtended);\n this.gridObservations.Size = new System.Drawing.Size(254, 110);\n this.gridObservations.TabIndex = 284;\n this.gridObservations.setTitle(\"Observations\");\n this.gridObservations.setTranslationName(null);\n this.gridObservations.CellDoubleClick = __MultiODGridClickEventHandler.combine(this.gridObservations.CellDoubleClick,new OpenDental.UI.ODGridClickEventHandler() \n { \n public System.Void invoke(System.Object sender, OpenDental.UI.ODGridClickEventArgs e) throws Exception {\n this.gridObservations_CellDoubleClick(sender, e);\n }\n\n public List<OpenDental.UI.ODGridClickEventHandler> getInvocationList() throws Exception {\n List<OpenDental.UI.ODGridClickEventHandler> ret = new ArrayList<OpenDental.UI.ODGridClickEventHandler>();\n ret.add(this);\n return ret;\n }\n \n });\n this.gridObservations.CellClick = __MultiODGridClickEventHandler.combine(this.gridObservations.CellClick,new OpenDental.UI.ODGridClickEventHandler() \n { \n public System.Void invoke(System.Object sender, OpenDental.UI.ODGridClickEventArgs e) throws Exception {\n this.gridObservations_CellClick(sender, e);\n }\n\n public List<OpenDental.UI.ODGridClickEventHandler> getInvocationList() throws Exception {\n List<OpenDental.UI.ODGridClickEventHandler> ret = new ArrayList<OpenDental.UI.ODGridClickEventHandler>();\n ret.add(this);\n return ret;\n }\n \n });\n //\n // butUngroupObservations\n //\n this.butUngroupObservations.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butUngroupObservations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butUngroupObservations.setAutosize(true);\n this.butUngroupObservations.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butUngroupObservations.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butUngroupObservations.setCornerRadius(4F);\n this.butUngroupObservations.Location = new System.Drawing.Point(803, 497);\n this.butUngroupObservations.Name = \"butUngroupObservations\";\n this.butUngroupObservations.Size = new System.Drawing.Size(75, 22);\n this.butUngroupObservations.TabIndex = 287;\n this.butUngroupObservations.Text = \"Ungroup\";\n this.butUngroupObservations.Click += new System.EventHandler(this.butUngroupObservations_Click);\n //\n // butGroupObservations\n //\n this.butGroupObservations.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butGroupObservations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butGroupObservations.setAutosize(true);\n this.butGroupObservations.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butGroupObservations.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butGroupObservations.setCornerRadius(4F);\n this.butGroupObservations.Location = new System.Drawing.Point(725, 497);\n this.butGroupObservations.Name = \"butGroupObservations\";\n this.butGroupObservations.Size = new System.Drawing.Size(75, 22);\n this.butGroupObservations.TabIndex = 286;\n this.butGroupObservations.Text = \"Group\";\n this.butGroupObservations.Click += new System.EventHandler(this.butGroupObservations_Click);\n //\n // butAddObservation\n //\n this.butAddObservation.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butAddObservation.setAutosize(true);\n this.butAddObservation.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butAddObservation.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butAddObservation.setCornerRadius(4F);\n this.butAddObservation.Image = Resources.getAdd();\n this.butAddObservation.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butAddObservation.Location = new System.Drawing.Point(624, 497);\n this.butAddObservation.Name = \"butAddObservation\";\n this.butAddObservation.Size = new System.Drawing.Size(75, 22);\n this.butAddObservation.TabIndex = 285;\n this.butAddObservation.Text = \"&Add\";\n this.butAddObservation.Click += new System.EventHandler(this.butAddObservation_Click);\n //\n // button1\n //\n this.button1.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.button1.setAutosize(true);\n this.button1.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.button1.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.button1.setCornerRadius(4F);\n this.button1.Location = new System.Drawing.Point(772, 563);\n this.button1.Name = \"button1\";\n this.button1.Size = new System.Drawing.Size(92, 24);\n this.button1.TabIndex = 282;\n this.button1.Text = \"&OK\";\n this.button1.Click += new System.EventHandler(this.butOK_Click);\n //\n // button2\n //\n this.button2.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.button2.setAutosize(true);\n this.button2.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.button2.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.button2.setCornerRadius(4F);\n this.button2.Location = new System.Drawing.Point(870, 563);\n this.button2.Name = \"button2\";\n this.button2.Size = new System.Drawing.Size(92, 24);\n this.button2.TabIndex = 281;\n this.button2.Text = \"&Cancel\";\n this.button2.Click += new System.EventHandler(this.butCancel_Click);\n //\n // butDelete\n //\n this.butDelete.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butDelete.setAutosize(true);\n this.butDelete.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butDelete.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butDelete.setCornerRadius(4F);\n this.butDelete.Image = Resources.getdeleteX();\n this.butDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butDelete.Location = new System.Drawing.Point(11, 563);\n this.butDelete.Name = \"butDelete\";\n this.butDelete.Size = new System.Drawing.Size(92, 24);\n this.butDelete.TabIndex = 280;\n this.butDelete.Text = \"&Delete\";\n this.butDelete.Click += new System.EventHandler(this.butDelete_Click);\n //\n // butNoneProvAdministering\n //\n this.butNoneProvAdministering.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butNoneProvAdministering.setAutosize(false);\n this.butNoneProvAdministering.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butNoneProvAdministering.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butNoneProvAdministering.setCornerRadius(2F);\n this.butNoneProvAdministering.Location = new System.Drawing.Point(901, 128);\n this.butNoneProvAdministering.Name = \"butNoneProvAdministering\";\n this.butNoneProvAdministering.Size = new System.Drawing.Size(44, 21);\n this.butNoneProvAdministering.TabIndex = 279;\n this.butNoneProvAdministering.Text = \"None\";\n this.butNoneProvAdministering.Click += new System.EventHandler(this.butNoneProvAdministering_Click);\n //\n // butNoneProvOrdering\n //\n this.butNoneProvOrdering.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butNoneProvOrdering.setAutosize(false);\n this.butNoneProvOrdering.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butNoneProvOrdering.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butNoneProvOrdering.setCornerRadius(2F);\n this.butNoneProvOrdering.Location = new System.Drawing.Point(901, 101);\n this.butNoneProvOrdering.Name = \"butNoneProvOrdering\";\n this.butNoneProvOrdering.Size = new System.Drawing.Size(44, 21);\n this.butNoneProvOrdering.TabIndex = 278;\n this.butNoneProvOrdering.Text = \"None\";\n this.butNoneProvOrdering.Click += new System.EventHandler(this.butNoneProvOrdering_Click);\n //\n // textDateExpiration\n //\n this.textDateExpiration.Location = new System.Drawing.Point(136, 208);\n this.textDateExpiration.Name = \"textDateExpiration\";\n this.textDateExpiration.Size = new System.Drawing.Size(151, 20);\n this.textDateExpiration.TabIndex = 267;\n //\n // butPickProvAdministering\n //\n this.butPickProvAdministering.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butPickProvAdministering.setAutosize(false);\n this.butPickProvAdministering.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butPickProvAdministering.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butPickProvAdministering.setCornerRadius(2F);\n this.butPickProvAdministering.Location = new System.Drawing.Point(880, 128);\n this.butPickProvAdministering.Name = \"butPickProvAdministering\";\n this.butPickProvAdministering.Size = new System.Drawing.Size(18, 21);\n this.butPickProvAdministering.TabIndex = 266;\n this.butPickProvAdministering.Text = \"...\";\n this.butPickProvAdministering.Click += new System.EventHandler(this.butPickProvAdministering_Click);\n //\n // butPickProvOrdering\n //\n this.butPickProvOrdering.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butPickProvOrdering.setAutosize(false);\n this.butPickProvOrdering.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butPickProvOrdering.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butPickProvOrdering.setCornerRadius(2F);\n this.butPickProvOrdering.Location = new System.Drawing.Point(880, 101);\n this.butPickProvOrdering.Name = \"butPickProvOrdering\";\n this.butPickProvOrdering.Size = new System.Drawing.Size(18, 21);\n this.butPickProvOrdering.TabIndex = 263;\n this.butPickProvOrdering.Text = \"...\";\n this.butPickProvOrdering.Click += new System.EventHandler(this.butPickProvOrdering_Click);\n //\n // FormEhrVaccinePatEdit\n //\n this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n this.ClientSize = new System.Drawing.Size(974, 599);\n this.Controls.Add(this.butUngroupObservations);\n this.Controls.Add(this.butGroupObservations);\n this.Controls.Add(this.butAddObservation);\n this.Controls.Add(this.gridObservations);\n this.Controls.Add(this.textUser);\n this.Controls.Add(this.button1);\n this.Controls.Add(this.button2);\n this.Controls.Add(this.butDelete);\n this.Controls.Add(this.butNoneProvAdministering);\n this.Controls.Add(this.butNoneProvOrdering);\n this.Controls.Add(this.comboAdministrationSite);\n this.Controls.Add(this.label16);\n this.Controls.Add(this.comboAdministrationRoute);\n this.Controls.Add(this.label15);\n this.Controls.Add(this.label14);\n this.Controls.Add(this.listAction);\n this.Controls.Add(this.label13);\n this.Controls.Add(this.listRefusalReason);\n this.Controls.Add(this.label12);\n this.Controls.Add(this.textDateExpiration);\n this.Controls.Add(this.comboProvNumAdministering);\n this.Controls.Add(this.butPickProvAdministering);\n this.Controls.Add(this.label11);\n this.Controls.Add(this.comboProvNumOrdering);\n this.Controls.Add(this.butPickProvOrdering);\n this.Controls.Add(this.label10);\n this.Controls.Add(this.label9);\n this.Controls.Add(this.label8);\n this.Controls.Add(this.listAdministrationNote);\n this.Controls.Add(this.label7);\n this.Controls.Add(this.listCompletionStatus);\n this.Controls.Add(this.textFilledSt);\n this.Controls.Add(this.label6);\n this.Controls.Add(this.textFilledCity);\n this.Controls.Add(this.label4);\n this.Controls.Add(this.label1);\n this.Controls.Add(this.label3);\n this.Controls.Add(this.textNote);\n this.Controls.Add(this.labelDocument);\n this.Controls.Add(this.textDateTimeStop);\n this.Controls.Add(this.textDateTimeStart);\n this.Controls.Add(this.labelDateTimeStop);\n this.Controls.Add(this.labelDateTimeStartStop);\n this.Controls.Add(this.comboUnits);\n this.Controls.Add(this.comboVaccine);\n this.Controls.Add(this.labelVaccine);\n this.Controls.Add(this.textLotNum);\n this.Controls.Add(this.textAmount);\n this.Controls.Add(this.textManufacturer);\n this.Controls.Add(this.label2);\n this.Controls.Add(this.labelAmount);\n this.Controls.Add(this.label5);\n this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;\n this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\n this.Name = \"FormEhrVaccinePatEdit\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.Text = \"Vaccine Edit\";\n this.Load += new System.EventHandler(this.FormVaccinePatEdit_Load);\n this.ResumeLayout(false);\n this.PerformLayout();\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n\r\n jButton22 = new javax.swing.JButton();\r\n jButton23 = new javax.swing.JButton();\r\n jButton24 = new javax.swing.JButton();\r\n jPanel1 = new javax.swing.JPanel();\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jButton5 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton9 = new javax.swing.JButton();\r\n jButton10 = new javax.swing.JButton();\r\n jButton11 = new javax.swing.JButton();\r\n jButton12 = new javax.swing.JButton();\r\n jButton13 = new javax.swing.JButton();\r\n jButton14 = new javax.swing.JButton();\r\n jButton15 = new javax.swing.JButton();\r\n jButton16 = new javax.swing.JButton();\r\n jButton17 = new javax.swing.JButton();\r\n jPanel2 = new javax.swing.JPanel();\r\n jPanel3 = new javax.swing.JPanel();\r\n jTextField2 = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jTextField6 = new javax.swing.JTextField();\r\n jTextField7 = new javax.swing.JTextField();\r\n jTextField8 = new javax.swing.JTextField();\r\n jTextField9 = new javax.swing.JTextField();\r\n jTextField10 = new javax.swing.JTextField();\r\n jTextField11 = new javax.swing.JTextField();\r\n jTextField12 = new javax.swing.JTextField();\r\n jTextField13 = new javax.swing.JTextField();\r\n jTextField14 = new javax.swing.JTextField();\r\n jTextField15 = new javax.swing.JTextField();\r\n jPanel5 = new javax.swing.JPanel();\r\n jCheckBox11 = new javax.swing.JCheckBox();\r\n jCheckBox12 = new javax.swing.JCheckBox();\r\n jCheckBox13 = new javax.swing.JCheckBox();\r\n jButton25 = new javax.swing.JButton();\r\n jButton27 = new javax.swing.JButton();\r\n jButton28 = new javax.swing.JButton();\r\n jButton29 = new javax.swing.JButton();\r\n jButton30 = new javax.swing.JButton();\r\n jButton31 = new javax.swing.JButton();\r\n jButton32 = new javax.swing.JButton();\r\n jButton33 = new javax.swing.JButton();\r\n jButton34 = new javax.swing.JButton();\r\n jButton35 = new javax.swing.JButton();\r\n jButton26 = new javax.swing.JButton();\r\n jButton36 = new javax.swing.JButton();\r\n jButton37 = new javax.swing.JButton();\r\n jButton38 = new javax.swing.JButton();\r\n jButton39 = new javax.swing.JButton();\r\n jButton40 = new javax.swing.JButton();\r\n jButton41 = new javax.swing.JButton();\r\n jButton42 = new javax.swing.JButton();\r\n jButton43 = new javax.swing.JButton();\r\n jButton44 = new javax.swing.JButton();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jLabel14 = new javax.swing.JLabel();\r\n jLabel15 = new javax.swing.JLabel();\r\n jLabel16 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jPanel4 = new javax.swing.JPanel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField16 = new javax.swing.JTextField();\r\n jTextField17 = new javax.swing.JTextField();\r\n jTextField18 = new javax.swing.JTextField();\r\n jButton18 = new javax.swing.JButton();\r\n jButton19 = new javax.swing.JButton();\r\n jButton20 = new javax.swing.JButton();\r\n jButton21 = new javax.swing.JButton();\r\n\r\n jButton22.setText(\"jButton22\");\r\n\r\n jButton23.setText(\"jButton23\");\r\n\r\n jButton24.setText(\"jButton24\");\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Online Billing System\");\r\n setBackground(new java.awt.Color(255, 255, 255));\r\n\r\n jPanel1.setBackground(new java.awt.Color(0, 51, 255));\r\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n\r\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n jTextField1.setText(\"0\");\r\n\r\n jButton1.setText(\"1\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setText(\"2\");\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton3.setText(\"3\");\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"4\");\r\n jButton7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton7ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton4.setText(\"5\");\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton5.setText(\"6\");\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"7\");\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"8\");\r\n jButton8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton8ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton9.setText(\"9\");\r\n jButton9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton9ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton10.setText(\"0\");\r\n jButton10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton10ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton11.setText(\".\");\r\n jButton11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton11ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton12.setText(\"C\");\r\n jButton12.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton12ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton13.setText(\"+\");\r\n jButton13.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton13ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton14.setText(\"-\");\r\n jButton14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton14ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton15.setText(\"*\");\r\n jButton15.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton15ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton16.setText(\"/\");\r\n jButton16.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton16ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton17.setText(\"=\");\r\n jButton17.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton17ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jButton13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(9, 9, 9)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(16, Short.MAX_VALUE))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)\r\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)\r\n .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton13, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\r\n .addComponent(jButton14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\r\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n\r\n jPanel3.setBackground(new java.awt.Color(0, 153, 255));\r\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n\r\n jTextField2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel1.setText(\"Total Cost Of Items\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel2.setText(\"Total Number of items\");\r\n\r\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel2))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE)\r\n .addComponent(jTextField2))\r\n .addGap(32, 32, 32))\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addGap(54, 54, 54)\r\n .addComponent(jLabel1))\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addGap(51, 51, 51)\r\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel2)\r\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(142, Short.MAX_VALUE))\r\n );\r\n\r\n jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField6.setText(\"0\");\r\n\r\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField7.setText(\"0\");\r\n\r\n jTextField8.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField8.setText(\"0\");\r\n\r\n jTextField9.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField9.setText(\"0\");\r\n\r\n jTextField10.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField10.setText(\"0\");\r\n\r\n jTextField11.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField11.setText(\"0\");\r\n\r\n jTextField12.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField12.setText(\"0\");\r\n\r\n jTextField13.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField13.setText(\"0\");\r\n\r\n jTextField14.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField14.setText(\"0\");\r\n\r\n jTextField15.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField15.setText(\"0\");\r\n\r\n jPanel5.setBackground(new java.awt.Color(0, 153, 255));\r\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n\r\n jCheckBox11.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jCheckBox11.setText(\"Paytm\");\r\n\r\n jCheckBox12.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jCheckBox12.setText(\"Cash\");\r\n\r\n jCheckBox13.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jCheckBox13.setText(\"Tez/BHIM\");\r\n\r\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\r\n jPanel5.setLayout(jPanel5Layout);\r\n jPanel5Layout.setHorizontalGroup(\r\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel5Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jCheckBox11)\r\n .addComponent(jCheckBox12)\r\n .addComponent(jCheckBox13))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel5Layout.setVerticalGroup(\r\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel5Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jCheckBox11)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jCheckBox12)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jCheckBox13)\r\n .addContainerGap(46, Short.MAX_VALUE))\r\n );\r\n\r\n jButton25.setText(\"+\");\r\n jButton25.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton25ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton27.setText(\"+\");\r\n jButton27.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton27ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton28.setText(\"+\");\r\n jButton28.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton28ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton29.setText(\"+\");\r\n jButton29.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton29ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton30.setText(\"+\");\r\n jButton30.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton30ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton31.setText(\"+\");\r\n jButton31.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton31ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton32.setText(\"+\");\r\n jButton32.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton32ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton33.setText(\"+\");\r\n jButton33.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton33ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton34.setText(\"+\");\r\n jButton34.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton34ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton35.setText(\"+\");\r\n jButton35.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton35ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton26.setText(\"-\");\r\n jButton26.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton26ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton36.setText(\"-\");\r\n jButton36.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton36ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton37.setText(\"-\");\r\n jButton37.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton37ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton38.setText(\"-\");\r\n jButton38.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton38ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton39.setText(\"-\");\r\n jButton39.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton39ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton40.setText(\"-\");\r\n jButton40.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton40ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton41.setText(\"-\");\r\n jButton41.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton41ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton42.setText(\"-\");\r\n jButton42.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton42ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton43.setText(\"-\");\r\n jButton43.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton43ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton44.setText(\"-\");\r\n jButton44.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton44ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel9.setText(\"Lays\");\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel3.setText(\"Hide and Seeek\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel8.setText(\"Thumps Up\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel10.setText(\"Patty\");\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel11.setText(\"Ice Cream\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel12.setText(\"Curd\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel13.setText(\"Diary Milk\");\r\n\r\n jLabel14.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel14.setText(\"Snickers\");\r\n\r\n jLabel15.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel15.setText(\"Swiss Roll\");\r\n\r\n jLabel16.setFont(new java.awt.Font(\"Verdana\", 1, 18)); // NOI18N\r\n jLabel16.setText(\"Kurkure\");\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel9)\r\n .addComponent(jLabel3)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel10)\r\n .addComponent(jLabel11)\r\n .addComponent(jLabel12)\r\n .addComponent(jLabel13)\r\n .addComponent(jLabel14)\r\n .addComponent(jLabel15)\r\n .addComponent(jLabel16))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton44, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton42, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton40, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton38, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton37, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton36, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton41, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton43, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jTextField12, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField11, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField10, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField9, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField8, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField7, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField6, javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jButton27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton29, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton30, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton31, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton32, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton33, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton34, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jButton35, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton25)\r\n .addComponent(jButton26)\r\n .addComponent(jLabel9))\r\n .addGap(11, 11, 11)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton34)\r\n .addComponent(jButton36)\r\n .addComponent(jLabel3))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton33)\r\n .addComponent(jButton37)\r\n .addComponent(jLabel8))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton32)\r\n .addComponent(jButton38)\r\n .addComponent(jLabel10))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton31)\r\n .addComponent(jButton39)\r\n .addComponent(jLabel11))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton30)\r\n .addComponent(jButton40)\r\n .addComponent(jLabel12))\r\n .addGap(13, 13, 13)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton29)\r\n .addComponent(jButton41)\r\n .addComponent(jLabel13))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton28)\r\n .addComponent(jButton42)\r\n .addComponent(jLabel14)\r\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton27)\r\n .addComponent(jButton43)\r\n .addComponent(jLabel15)\r\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton35)\r\n .addComponent(jButton44)\r\n .addComponent(jLabel16)))\r\n .addComponent(jTextField13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(27, Short.MAX_VALUE))\r\n );\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Verdana\", 1, 48)); // NOI18N\r\n jLabel4.setText(\"Tuck Shop NIIT University\");\r\n\r\n jPanel4.setBackground(new java.awt.Color(0, 51, 255));\r\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Verdana\", 1, 24)); // NOI18N\r\n jLabel5.setText(\"Sub Total\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Verdana\", 1, 24)); // NOI18N\r\n jLabel6.setText(\"Extras\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Verdana\", 1, 24)); // NOI18N\r\n jLabel7.setText(\"Total Amount\");\r\n\r\n jTextField16.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n\r\n jTextField17.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n\r\n jTextField18.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\r\n\r\n jButton18.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jButton18.setText(\"Clear\");\r\n jButton18.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton18ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton19.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jButton19.setText(\"Reset\");\r\n jButton19.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton19ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton20.setFont(new java.awt.Font(\"Verdana\", 1, 16)); // NOI18N\r\n jButton20.setText(\"Calculate\");\r\n jButton20.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton20ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton21.setBackground(new java.awt.Color(0, 255, 51));\r\n jButton21.setFont(new java.awt.Font(\"Verdana\", 1, 36)); // NOI18N\r\n jButton21.setText(\"GO\");\r\n jButton21.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton21ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\r\n jPanel4.setLayout(jPanel4Layout);\r\n jPanel4Layout.setHorizontalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(63, 63, 63)\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(55, 55, 55)\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addComponent(jButton21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n jPanel4Layout.setVerticalGroup(\r\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel4Layout.createSequentialGroup()\r\n .addGap(24, 24, 24)\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel5)\r\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton18))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel6)\r\n .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton19))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel7)\r\n .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton20))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jButton21)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(143, 143, 143)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 780, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(519, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(81, 81, 81)\r\n .addComponent(jLabel4)\r\n .addGap(57, 57, 57)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }",
"public DesigningSec() {\n initComponents();\n }",
"public javamalam() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n setLayout(new java.awt.GridLayout());\n }",
"public FrmCampus() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n applicationIcon = new javax.swing.JTextField();\n browseIcon = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n appUidTextField = new javax.swing.JTextField();\n chnageUIDButton = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n applicationCapabilities = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n splashImageTextField = new javax.swing.JTextField();\n browseLogoButton = new javax.swing.JButton();\n installLogoOnly = new javax.swing.JCheckBox();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n certificateField = new javax.swing.JTextField();\n privateKeyField = new javax.swing.JTextField();\n browseCertificateButton = new javax.swing.JButton();\n browsePrivateKeyButton = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n passwordField = new javax.swing.JPasswordField();\n jCheckBox1 = new javax.swing.JCheckBox();\n\n jLabel3.setLabelFor(applicationIcon);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"LBL_AppIcon\")); // NOI18N\n\n applicationIcon.setEditable(false);\n\n org.openide.awt.Mnemonics.setLocalizedText(browseIcon, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"LBL_BrowseIcon\")); // NOI18N\n browseIcon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseIconActionPerformed(evt);\n }\n });\n\n jLabel1.setLabelFor(appUidTextField);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"org/netbeans/modules/j2me/cdc/project/semc/Bundle\"); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, bundle.getString(\"LBL_AppUID\")); // NOI18N\n\n appUidTextField.setEditable(false);\n\n org.openide.awt.Mnemonics.setLocalizedText(chnageUIDButton, bundle.getString(\"LBL_AppUIDChange\")); // NOI18N\n chnageUIDButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chnageUIDButtonActionPerformed(evt);\n }\n });\n\n jLabel2.setLabelFor(applicationCapabilities);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_AppCapabilities\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_AppCapabilitiesLabel\")); // NOI18N\n\n jLabel5.setLabelFor(splashImageTextField);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_LogoLocation\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(browseLogoButton, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_BrowseLogo\")); // NOI18N\n browseLogoButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseLogoButtonActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(installLogoOnly, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_LogoInstalTimeOnly\")); // NOI18N\n installLogoOnly.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n installLogoOnly.setMargin(new java.awt.Insets(0, 0, 0, 0));\n\n jLabel6.setLabelFor(certificateField);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel6, bundle.getString(\"LBL_CertificateLocation\")); // NOI18N\n\n jLabel7.setLabelFor(privateKeyField);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel7, bundle.getString(\"LBL_PrivateKeyLocation\")); // NOI18N\n\n jLabel8.setLabelFor(passwordField);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel8, bundle.getString(\"LBL_Password\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(browseCertificateButton, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_BrowseCertificate\")); // NOI18N\n browseCertificateButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseCertificateButtonActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(browsePrivateKeyButton, org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_BrowsePrivateKey\")); // NOI18N\n browsePrivateKeyButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browsePrivateKeyButtonActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel9, bundle.getString(\"LBL_PasswordUnsecure\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, NbBundle.getMessage(SemcProjectCategoryCustomizer.class, \"LBL_UseDefault\")); // NOI18N\n jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(applicationCapabilities, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(installLogoOnly)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(splashImageTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)\n .addComponent(applicationIcon, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)\n .addComponent(appUidTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(browseIcon)\n .addComponent(chnageUIDButton)\n .addComponent(browseLogoButton)))))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(passwordField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)\n .addComponent(certificateField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)\n .addComponent(privateKeyField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(browseCertificateButton, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(browsePrivateKeyButton, javax.swing.GroupLayout.Alignment.TRAILING))))))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {browseIcon, browseLogoButton, chnageUIDButton});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(appUidTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(chnageUIDButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(applicationIcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(browseIcon))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(splashImageTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(browseLogoButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(installLogoOnly)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(applicationCapabilities, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(browseCertificateButton)\n .addComponent(certificateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(browsePrivateKeyButton)\n .addComponent(privateKeyField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9)\n .addContainerGap(56, Short.MAX_VALUE))\n );\n\n applicationIcon.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_ApplicationIcon\")); // NOI18N\n applicationIcon.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_ApplicationIcon\")); // NOI18N\n browseIcon.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Browse\")); // NOI18N\n browseIcon.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Browse\")); // NOI18N\n appUidTextField.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_ApplicationUID\")); // NOI18N\n appUidTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_ApplicationUID\")); // NOI18N\n chnageUIDButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Change\")); // NOI18N\n chnageUIDButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Change\")); // NOI18N\n applicationCapabilities.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_ApplicationCapabilities\")); // NOI18N\n applicationCapabilities.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_ApplicationCapabilities\")); // NOI18N\n splashImageTextField.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_ApplicationLogo\")); // NOI18N\n splashImageTextField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_ApplicationLogo\")); // NOI18N\n browseLogoButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Browse\")); // NOI18N\n browseLogoButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Browse\")); // NOI18N\n installLogoOnly.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_ShowLogo\")); // NOI18N\n installLogoOnly.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_ShowLogo\")); // NOI18N\n certificateField.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_CertificateLocation\")); // NOI18N\n certificateField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_CertificateLocation\")); // NOI18N\n privateKeyField.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_PKLocation\")); // NOI18N\n privateKeyField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_PKLocation\")); // NOI18N\n browseCertificateButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Browse\")); // NOI18N\n browseCertificateButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Browse\")); // NOI18N\n browsePrivateKeyButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Browse\")); // NOI18N\n browsePrivateKeyButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Browse\")); // NOI18N\n passwordField.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE_Password\")); // NOI18N\n passwordField.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE_Password\")); // NOI18N\n\n getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSN_CustomizerSE\")); // NOI18N\n getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SemcProjectCategoryCustomizer.class,\"ACSD_CustomizerSE\")); // NOI18N\n }",
"public Frm_Test() {\n initComponents();\n }",
"public JfrmPrincipal() {\n initComponents();\n }",
"public ProcedureFormPanel() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public form2() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public sinavlar2() {\n initComponents();\n }",
"public kunde() {\n initComponents();\n }",
"public frmPessoa() {\n initComponents();\n }",
"public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public Formulario() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"private void initComponents() {\r\n\r\n jLabel1 = new javax.swing.JLabel();\r\n manageCompoundJButton = new javax.swing.JButton();\r\n enterpriseLabel = new javax.swing.JLabel();\r\n valueLabel = new javax.swing.JLabel();\r\n drugComboBox = new javax.swing.JComboBox();\r\n\r\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\r\n jLabel1.setText(\"My Work Area -Supplier Role\");\r\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 40, -1, -1));\r\n\r\n manageCompoundJButton.setText(\"Manage Compound\");\r\n manageCompoundJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n manageCompoundJButtonActionPerformed(evt);\r\n }\r\n });\r\n add(manageCompoundJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 290, -1, -1));\r\n\r\n enterpriseLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\r\n enterpriseLabel.setText(\"EnterPrise :\");\r\n add(enterpriseLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 90, 120, 30));\r\n\r\n valueLabel.setText(\"<value>\");\r\n add(valueLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 100, 130, -1));\r\n\r\n drugComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(drugComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 210, 210, -1));\r\n }",
"private void initComponents() {\n\t\tlblFechaInicio = new JLabel();\r\n\t\tcmbFechaInicio = new DateComboBox();\r\n\t\tlblFechaFin = new JLabel();\r\n\t\tcmbFechaFin = new DateComboBox();\r\n\t\trbValorBruto = new JRadioButton();\r\n\t\tlblCliente = new JLabel();\r\n\t\ttxtCliente = new JTextField();\r\n\t\tbtnCliente = new JButton();\r\n\t\tcbTodosClientes = new JCheckBox();\r\n\t\tlblClienteOficina = new JLabel();\r\n\t\ttxtClienteOficina = new JTextField();\r\n\t\tbtnClienteOficina = new JButton();\r\n\t\tcbTodosClientesOficina = new JCheckBox();\r\n\t\trbValorNeto = new JRadioButton();\r\n\t\tlblCampana = new JLabel();\r\n\t\ttxtCampana = new JTextField();\r\n\t\tbtnCampana = new JButton();\r\n\t\tcbTodosCampana = new JCheckBox();\r\n\t\tbtnConsultar = new JButton();\r\n\t\tlblMarca = new JLabel();\r\n\t\tcmbMarca = new JComboBox();\r\n\t\tlblProducto = new JLabel();\r\n\t\ttxtProducto = new JTextField();\r\n\t\tbtnProducto = new JButton();\r\n\t\tcbTodosProducto = new JCheckBox();\r\n\t\tlblEstadoPresupuesto = new JLabel();\r\n\t\tcmbEstadoPresupuesto = new JComboBox();\r\n\t\tcbOrdenesPresupuestoPrepago = new JCheckBox();\r\n\t\tlblEstadoOrden = new JLabel();\r\n\t\tcmbEstadoOrden = new JComboBox();\r\n\t\tlblTipoProveedor = new JLabel();\r\n\t\tcmbTipoProveedor = new JComboBox();\r\n\t\tlblSubtipoProveedor = new JLabel();\r\n\t\tcmbSubtipoProveedor = new JComboBox();\r\n\t\tlblProveedor = new JLabel();\r\n\t\ttxtProveedor = new JTextField();\r\n\t\tbtnProveedor = new JButton();\r\n\t\tcbTodosProveedores = new JCheckBox();\r\n\t\tlblProveedorOficina = new JLabel();\r\n\t\ttxtProveedorOficina = new JTextField();\r\n\t\tbtnProveedorOficina = new JButton();\r\n\t\tcbTodosProveedorOficina = new JCheckBox();\r\n\t\tlblCreadorPor = new JLabel();\r\n\t\ttxtCreadoPor = new JTextField();\r\n\t\tbtnCreadoPor = new JButton();\r\n\t\tcbTodosCreadoPor = new JCheckBox();\r\n\t\tcbFiltrarCodigoPresupuesto = new JCheckBox();\r\n\t\ttxtPresupuesto = new JTextField();\r\n\t\tspTblOrdenes = new JScrollPane();\r\n\t\ttblOrdenes = new JTable();\r\n\t\tCellConstraints cc = new CellConstraints();\r\n\r\n\t\t//======== this ========\r\n\t\tsetLayout(new FormLayout(\r\n\t\t\tnew ColumnSpec[] {\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(10)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(95)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(12)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(95)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.DLUX3),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(20)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(25)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(30)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(25)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(10))\r\n\t\t\t},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tnew RowSpec(Sizes.dluY(10)),\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tnew RowSpec(Sizes.DLUY3),\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tnew RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tnew RowSpec(Sizes.dluY(10))\r\n\t\t\t}));\r\n\r\n\t\t//---- lblFechaInicio ----\r\n\t\tlblFechaInicio.setText(\"Fecha Inicio:\");\r\n\t\tadd(lblFechaInicio, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbFechaInicio, cc.xy(5, 3));\r\n\r\n\t\t//---- lblFechaFin ----\r\n\t\tlblFechaFin.setText(\"Fecha Fin:\");\r\n\t\tadd(lblFechaFin, cc.xywh(9, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbFechaFin, cc.xy(11, 3));\r\n\r\n\t\t//---- lblCliente ----\r\n\t\tlblCliente.setText(\"Cliente:\");\r\n\t\tadd(lblCliente, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtCliente ----\r\n\t\ttxtCliente.setEditable(false);\r\n\t\tadd(txtCliente, cc.xywh(5, 5, 7, 1));\r\n\t\tadd(btnCliente, cc.xywh(13, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosClientes ----\r\n\t\tcbTodosClientes.setText(\"Todos\");\r\n\t\tadd(cbTodosClientes, cc.xy(17, 5));\r\n\r\n\t\t//---- rbValorBruto ----\r\n\t\trbValorBruto.setText(\"Valor Bruto\");\r\n\t\tadd(rbValorBruto, cc.xywh(21, 5, 3, 1));\r\n\r\n\t\t//---- lblClienteOficina ----\r\n\t\tlblClienteOficina.setText(\"Cliente Oficina:\");\r\n\t\tadd(lblClienteOficina, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtClienteOficina ----\r\n\t\ttxtClienteOficina.setEditable(false);\r\n\t\tadd(txtClienteOficina, cc.xywh(5, 7, 7, 1));\r\n\t\tadd(btnClienteOficina, cc.xywh(13, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosClientesOficina ----\r\n\t\tcbTodosClientesOficina.setText(\"Todos\");\r\n\t\tadd(cbTodosClientesOficina, cc.xy(17, 7));\r\n\r\n\t\t//---- rbValorNeto ----\r\n\t\trbValorNeto.setText(\"Valor Neto\");\r\n\t\tadd(rbValorNeto, cc.xywh(21, 7, 3, 1));\r\n\r\n\t\t//---- lblCampana ----\r\n\t\tlblCampana.setText(\"Campa\\u00f1a:\");\r\n\t\tadd(lblCampana, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtCampana ----\r\n\t\ttxtCampana.setEditable(false);\r\n\t\tadd(txtCampana, cc.xywh(5, 9, 7, 1));\r\n\t\tadd(btnCampana, cc.xywh(13, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosCampana ----\r\n\t\tcbTodosCampana.setText(\"Todos\");\r\n\t\tadd(cbTodosCampana, cc.xy(17, 9));\r\n\r\n\t\t//---- btnConsultar ----\r\n\t\tbtnConsultar.setText(\"Consultar\");\r\n\t\tadd(btnConsultar, cc.xywh(21, 9, 5, 1));\r\n\r\n\t\t//---- lblMarca ----\r\n\t\tlblMarca.setText(\"Marca:\");\r\n\t\tadd(lblMarca, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbMarca, cc.xywh(5, 11, 7, 1));\r\n\r\n\t\t//---- lblProducto ----\r\n\t\tlblProducto.setText(\"Producto:\");\r\n\t\tadd(lblProducto, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtProducto ----\r\n\t\ttxtProducto.setEditable(false);\r\n\t\tadd(txtProducto, cc.xywh(5, 13, 7, 1));\r\n\t\tadd(btnProducto, cc.xywh(13, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosProducto ----\r\n\t\tcbTodosProducto.setText(\"Todos\");\r\n\t\tadd(cbTodosProducto, cc.xy(17, 13));\r\n\r\n\t\t//---- lblEstadoPresupuesto ----\r\n\t\tlblEstadoPresupuesto.setText(\"Estado del Presupuesto:\");\r\n\t\tadd(lblEstadoPresupuesto, cc.xy(3, 15));\r\n\r\n\t\t//---- cmbEstadoPresupuesto ----\r\n\t\tcmbEstadoPresupuesto.setModel(new DefaultComboBoxModel(new String[] {\r\n\t\t\t\"COTIZADO\",\r\n\t\t\t\"APROBADO\",\r\n\t\t\t\"FACTURADO\",\r\n\t\t\t\"PREPAGADO\",\r\n\t\t\t\"TODOS\"\r\n\t\t}));\r\n\t\tadd(cmbEstadoPresupuesto, cc.xy(5, 15));\r\n\r\n\t\t//---- cbOrdenesPresupuestoPrepago ----\r\n\t\tcbOrdenesPresupuestoPrepago.setText(\"Buscar Ordenes de Presupuestos \\\"Prepago\\\"\");\r\n\t\tcbOrdenesPresupuestoPrepago.setSelected(true);\r\n\t\tadd(cbOrdenesPresupuestoPrepago, cc.xywh(9, 15, 9, 1));\r\n\r\n\t\t//---- lblEstadoOrden ----\r\n\t\tlblEstadoOrden.setText(\"Estado de la Orden:\");\r\n\t\tadd(lblEstadoOrden, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- cmbEstadoOrden ----\r\n\t\tcmbEstadoOrden.setModel(new DefaultComboBoxModel(new String[] {\r\n\t\t\t\"EMITIDA\",\r\n\t\t\t\"ORDENADA\",\r\n\t\t\t\"ENVIADA\",\r\n\t\t\t\"INGRESADA\",\r\n\t\t\t\"PREPAGADA\",\r\n\t\t\t\"TODOS\"\r\n\t\t}));\r\n\t\tadd(cmbEstadoOrden, cc.xy(5, 17));\r\n\r\n\t\t//---- lblTipoProveedor ----\r\n\t\tlblTipoProveedor.setText(\"Tipo de Proveedor:\");\r\n\t\tadd(lblTipoProveedor, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- cmbTipoProveedor ----\r\n\t\tcmbTipoProveedor.setModel(new DefaultComboBoxModel(new String[] {\r\n\t\t\t\"MEDIOS\",\r\n\t\t\t\"PRODUCCION\",\r\n\t\t\t\"TODOS\"\r\n\t\t}));\r\n\t\tadd(cmbTipoProveedor, cc.xy(5, 19));\r\n\r\n\t\t//---- lblSubtipoProveedor ----\r\n\t\tlblSubtipoProveedor.setText(\"Subtipo de Proveedor:\");\r\n\t\tadd(lblSubtipoProveedor, cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbSubtipoProveedor, cc.xy(5, 21));\r\n\r\n\t\t//---- lblProveedor ----\r\n\t\tlblProveedor.setText(\"Proveedor:\");\r\n\t\tadd(lblProveedor, cc.xywh(3, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtProveedor ----\r\n\t\ttxtProveedor.setEditable(false);\r\n\t\tadd(txtProveedor, cc.xywh(5, 23, 7, 1));\r\n\t\tadd(btnProveedor, cc.xywh(13, 23, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosProveedores ----\r\n\t\tcbTodosProveedores.setText(\"Todos\");\r\n\t\tadd(cbTodosProveedores, cc.xy(17, 23));\r\n\r\n\t\t//---- lblProveedorOficina ----\r\n\t\tlblProveedorOficina.setText(\"Proveedor Oficina:\");\r\n\t\tadd(lblProveedorOficina, cc.xywh(3, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtProveedorOficina ----\r\n\t\ttxtProveedorOficina.setEditable(false);\r\n\t\tadd(txtProveedorOficina, cc.xywh(5, 25, 7, 1));\r\n\t\tadd(btnProveedorOficina, cc.xywh(13, 25, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosProveedorOficina ----\r\n\t\tcbTodosProveedorOficina.setText(\"Todos\");\r\n\t\tadd(cbTodosProveedorOficina, cc.xy(17, 25));\r\n\r\n\t\t//---- lblCreadorPor ----\r\n\t\tlblCreadorPor.setText(\"Creado por:\");\r\n\t\tadd(lblCreadorPor, cc.xywh(3, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtCreadoPor ----\r\n\t\ttxtCreadoPor.setEditable(false);\r\n\t\tadd(txtCreadoPor, cc.xywh(5, 27, 7, 1));\r\n\t\tadd(btnCreadoPor, cc.xywh(13, 27, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- cbTodosCreadoPor ----\r\n\t\tcbTodosCreadoPor.setText(\"Todos\");\r\n\t\tadd(cbTodosCreadoPor, cc.xy(17, 27));\r\n\r\n\t\t//---- cbFiltrarCodigoPresupuesto ----\r\n\t\tcbFiltrarCodigoPresupuesto.setText(\"Filtrar por c\\u00f3digo presupuesto:\");\r\n\t\tadd(cbFiltrarCodigoPresupuesto, cc.xywh(3, 29, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- txtPresupuesto ----\r\n\t\ttxtPresupuesto.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tadd(txtPresupuesto, cc.xywh(7, 29, 4, 1));\r\n\r\n\t\t//======== spTblOrdenes ========\r\n\t\t{\r\n\r\n\t\t\t//---- tblOrdenes ----\r\n\t\t\ttblOrdenes.setModel(new DefaultTableModel(\r\n\t\t\t\tnew Object[][] {\r\n\t\t\t\t\t{null, null, \"\", null, null, null, null, null, null, null, null, null, null},\r\n\t\t\t\t},\r\n\t\t\t\tnew String[] {\r\n\t\t\t\t\t\"Fecha\", \"Cliente\", \"Presupuesto\", \"Estado\", \"Campa\\u00f1a\", \"Marca\", \"Producto\", \"Orden\", \"Estado\", \"Tipo de Proveedor\", \"Proveedor\", \"Creado Por\", \"Valor\"\r\n\t\t\t\t}\r\n\t\t\t) {\r\n\t\t\t\tboolean[] columnEditable = new boolean[] {\r\n\t\t\t\t\tfalse, false, false, false, false, false, false, false, false, false, false, false, false\r\n\t\t\t\t};\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\r\n\t\t\t\t\treturn columnEditable[columnIndex];\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tspTblOrdenes.setViewportView(tblOrdenes);\r\n\t\t}\r\n\t\tadd(spTblOrdenes, cc.xywh(3, 33, 27, 5));\r\n\r\n\t\t//---- buttonGroup2 ----\r\n\t\tButtonGroup buttonGroup2 = new ButtonGroup();\r\n\t\tbuttonGroup2.add(rbValorBruto);\r\n\t\tbuttonGroup2.add(rbValorNeto);\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n metamodel = new sk.tuke.magsa.maketool.component.ResourceComponent();\n externalParser = new sk.tuke.magsa.maketool.component.ExecutableResourceComponent();\n yajco = new sk.tuke.magsa.maketool.component.ExecutableResourceComponent();\n modelFile = new sk.tuke.magsa.maketool.component.ResourceComponent();\n model = new sk.tuke.magsa.maketool.component.ResourceComponent();\n arrow3 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow4 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow13 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow22 = new sk.tuke.magsa.maketool.component.Arrow();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"sk/tuke/magsa/maketool/Bundle\"); // NOI18N\n metamodel.setLabel(bundle.getString(\"metamodel\")); // NOI18N\n add(metamodel, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 90, 130, 80));\n\n externalParser.setActionName(bundle.getString(\"parse\")); // NOI18N\n externalParser.setLabel(bundle.getString(\"externalParser\")); // NOI18N\n add(externalParser, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 230, 120, 60));\n\n yajco.setActionName(bundle.getString(\"generate\")); // NOI18N\n yajco.setLabel(bundle.getString(\"yajco\")); // NOI18N\n add(yajco, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 100, 100, 60));\n\n modelFile.setLabel(bundle.getString(\"modelFile\")); // NOI18N\n add(modelFile, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 230, 105, 55));\n\n model.setLabel(bundle.getString(\"model\")); // NOI18N\n add(model, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 230, 70, 60));\n\n arrow3.setBarbStyle(sk.tuke.magsa.maketool.component.Arrow.BarbStyle.FILLED);\n add(arrow3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, 40, 20));\n\n arrow4.setBarbStyle(sk.tuke.magsa.maketool.component.Arrow.BarbStyle.FILLED);\n add(arrow4, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 120, 40, 20));\n add(arrow13, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 250, 30, 20));\n\n arrow22.setOrientation(sk.tuke.magsa.maketool.component.Arrow.Orientation.SOUTH);\n add(arrow22, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 170, 40, 50));\n\n jLabel4.setBackground(new java.awt.Color(255, 255, 153));\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(bundle.getString(\"parserGenerationPhase\")); // NOI18N\n jLabel4.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel4.setOpaque(true);\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 40, 310, 150));\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 153));\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel5.setOpaque(true);\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 40, 140, 260));\n\n jLabel3.setBackground(new java.awt.Color(241, 182, 139));\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(bundle.getString(\"parsingPhase\")); // NOI18N\n jLabel3.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel3.setOpaque(true);\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1070, 530));\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }"
] | [
"0.7980227",
"0.79100174",
"0.78056455",
"0.77578115",
"0.766456",
"0.7656488",
"0.76562065",
"0.7628607",
"0.76191956",
"0.75570554",
"0.75570554",
"0.75570554",
"0.75432783",
"0.75121176",
"0.748563",
"0.7464314",
"0.7459073",
"0.7452996",
"0.7452996",
"0.74487823",
"0.743256",
"0.74311167",
"0.7400165",
"0.7397586",
"0.7397115",
"0.7392141",
"0.7370303",
"0.736278",
"0.7351459",
"0.73492885",
"0.7342392",
"0.7340751",
"0.7327972",
"0.7327841",
"0.7303105",
"0.72901505",
"0.72832555",
"0.7266893",
"0.72579616",
"0.7257032",
"0.72490025",
"0.7244972",
"0.7230385",
"0.72239435",
"0.7213717",
"0.71957386",
"0.71913546",
"0.7183926",
"0.7183575",
"0.7182016",
"0.71767485",
"0.7175991",
"0.7175125",
"0.71740603",
"0.7174045",
"0.7169489",
"0.71691626",
"0.7167114",
"0.7157165",
"0.71533734",
"0.713598",
"0.7132151",
"0.71306944",
"0.71279657",
"0.71279657",
"0.71279657",
"0.7125541",
"0.7117561",
"0.7115363",
"0.711533",
"0.7112582",
"0.7111632",
"0.7111287",
"0.7107422",
"0.71070313",
"0.71058923",
"0.7101185",
"0.7101185",
"0.70956784",
"0.70930034",
"0.70899504",
"0.7085832",
"0.70773166",
"0.707419",
"0.7071185",
"0.70636004",
"0.70605326",
"0.7059609",
"0.70578444",
"0.70561725",
"0.7055307",
"0.70514226",
"0.70458275",
"0.70329595",
"0.7031772",
"0.7030848",
"0.7030565",
"0.70299834",
"0.7029329",
"0.7027083"
] | 0.74882853 | 14 |
Will write into the specified file the dot representation of the graf | public void toDotFile(String fileName, int index) throws IOException {
File file = new File(fileName);
FileWriter fWriter = new FileWriter(file);
fWriter.write(toDotString(index));
fWriter.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeDot(String filename)\t{\n\t\ttry {\n\t\t\t// PrintWriter(FileWriter) will write output to a file\n\t\t\tPrintWriter output = new PrintWriter(new FileWriter(filename));\n\n\t\t\t// Set up the dot graph and properties\n\t\t\toutput.println(\"digraph BST {\");\n\t\t\toutput.println(\"node [shape=record]\");\n\n\t\t\tif(root != null) {\n\t\t\t\twriteDotRecursive(root, output);\n\t\t\t}\n\t\t\t// Close the graph\n\t\t\toutput.println(\"}\");\n\t\t\toutput.close();\n\t\t}\n\t\tcatch(Exception e){e.printStackTrace();\n\t\t}\n\t}",
"public void saveDotFile(String theFile) {\n\t\ttry {\n\t\t\tBufferedWriter buffer = new BufferedWriter(new FileWriter(theFile));\n\t\t\tbuffer.write(this.buildDotString());\n\t\t\tbuffer.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Can't write temp file: \" + e.getMessage());\n\t\t}\n\t}",
"public void generateDotFile(String filename) {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(filename);\n\t\t\tout.println(\"digraph Heap {\\n\\tnode [shape=record]\\n\");\n\n\t\t\tfor (int i = 0; i < currentSize; i++) {\n\t\t\t\tout.println(\"\\tnode\" + i + \" [label = \\\"<f0> |<f1> \" + array[i] + \"|<f2> \\\"]\");\n\t\t\t\tif (((i * 2) + 1) < currentSize)\n\t\t\t\t\tout.println(\"\\tnode\" + i + \":f0 -> node\" + ((i * 2) + 1) + \":f1\");\n\t\t\t\tif (((i * 2) + 2) < currentSize)\n\t\t\t\t\tout.println(\"\\tnode\" + i + \":f2 -> node\" + ((i * 2) + 2) + \":f1\");\n\t\t\t}\n\n\t\t\tout.println(\"}\");\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public void createOAGDot(){\r\n\t\ttry {\r\n\t\t\tFileWriter writer = new FileWriter(new File(\"OAGGraph.dot\"));\r\n\t\t\twriter.write(\"digraph G{\\n\");\r\n\t\t\tint subCounter = 0;\r\n\t\t\t// Add all vertices\r\n\t\t\t\r\n\t\t\tfor (IFace iface : interfaces){\r\n\t\t\t\taddOAGDotIFace(iface, writer, subCounter);\r\n\t\t\t\tsubCounter++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (Class cls : classes){\r\n\t\t\t\taddOAGDotCls(cls, writer, subCounter);\r\n\t\t\t\tsubCounter++;\r\n\t\t\t}\r\n\r\n\t\t\t// Add edges\r\n\t\t\tfor (Vertex source : graphEdges.keySet()){\r\n\t\t\t\tString sourceName = source.getParent().getName() + \"_\" + source.getExtVar();\r\n\t\t\t\tHashMap<Vertex, EdgeType> dests = graphEdges.get(source);\r\n\t\t\t\tif (dests != null){\r\n\t\t\t\t\tfor (Vertex dest : dests.keySet()){\r\n\t\t\t\t\t\tString destName = dest.getParent().getName() + \"_\" + dest.getExtVar();\r\n\t\t\t\t\t\tString edgeStr = \"\\t\" + sourceName + \" -> \" + destName;\r\n\t\t\t\t\t\tif (dests.get(dest) == EdgeType.INDIRECT)\r\n\t\t\t\t\t\t\tedgeStr += \"[style=dotted]\";\r\n\t\t\t\t\t\twriter.write(edgeStr + \";\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twriter.write(\"}\");\r\n\t\t\twriter.close();\r\n\t\t}\r\n\t\tcatch (IOException e){\r\n\t\t\tSystem.err.println(\"Error: IOException detected\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"public void exportDotAndPng(String filename) throws IOException {\n // finalizeAlphabet();\n String dot = toGraphviz();\n Writer output = new BufferedWriter(new FileWriter(new File(filename)));\n try {\n output.write(dot);\n } finally {\n output.close();\n }\n GraphExporter.generatePngFileFromDotFile(filename);\n }",
"public String saveDotGraph(String inFile){\n\t\tProcessBuilder p = new ProcessBuilder(\"dot\",\"-o\"+inFile+\".jpg\",\"-Tjpg\",inFile);\n\t\tp.redirectErrorStream(true); //redirects stderr to stdout\n\t\ttry {\n\t\t\tProcess run=p.start();\n\t\t\t//we need to capture the output stream in order for this to work properly\n\t\t\tOutputStream output=run.getOutputStream();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn inFile+\".jpg\";\n\t}",
"public void createClassDot(){\r\n\t\ttry {\r\n\t\t\tFileWriter writer = new FileWriter(new File(\"ClassGraph.dot\"));\r\n\t\t\twriter.write(\"digraph G{\\n\");\r\n\t\t\tint cluster = 0;\r\n\t\t\tfor (Class cls : classes){\r\n\t\t\t\tcluster = makeClassDot(cls, writer, cluster);\r\n\t\t\t}\r\n\t\t\twriter.write(\"}\");\r\n\t\t\twriter.close();\r\n\t\t}\r\n\t\tcatch (IOException e){\r\n\t\t\tSystem.err.println(\"Error: IOException detected\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"public void writeDump(File f) {\n\n }",
"public static void writeToFile(String path, String dotCode) throws Exception {\n\t\ttry {\n\t\t\tFileWriter fileWriter=new FileWriter(\"tp1/Automatas/\"+path+\".dot\");\n\t\t\tfileWriter.write(dotCode);\n\t\t\tfileWriter.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"static public void writeNamedGraph(Graph G, String file) {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(file);\n\t\t\tout.println(G.numNodes());\n\t\t\tfor (int i = 0; i < G.numNodes(); i++)\n\t\t\t\tout.println(G.getName(i));\n\t\t\tfor (int i = 0; i < G.numNodes(); i++) {\n\t\t\t\tArrayList<Pair<Integer, Double>> P = G.adjacentNodes(i);\n\t\t\t\tfor (Pair<Integer, Double> j : P) {\n\t\t\t\t\tif (i < j.first) {\n\t\t\t\t\t\tout.println(G.getName(i) + \" \" + G.getName(j.first) + \" \" + j.second);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeFile(String s) {\n\t\ttry\n\t\t{\t\t\t \n\t\t\tPrintWriter writer = new PrintWriter(s, \"UTF-8\");\n\t\t\twriter.println(\"digraph G{\");\n\t\t\tint u;\n\t\t\tint n = vertices();\n\t\t\tfor (u = 0; u < n; u++) {\n\t\t\t for (Edge e: next(u)) {\n\t\t\t \twriter.println(e.from + \"->\" + e.to + \"[label=\\\"\" + e.cost + \"\\\"];\");\n\t\t\t }\n\t\t\t}\n\t\t\twriter.println(\"}\");\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\t\t\t\t\t\t\n }",
"public void printGraph(File file) throws OrccException {\r\n \t\ttry {\r\n \t\t\tOutputStream out = new FileOutputStream(file);\r\n \t\t\tDOTExporter<State, UniqueEdge> exporter = new DOTExporter<State, UniqueEdge>(\r\n \t\t\t\t\tnew StringNameProvider<State>(), null,\r\n \t\t\t\t\tnew StringEdgeNameProvider<UniqueEdge>());\r\n \t\t\texporter.export(new OutputStreamWriter(out), getGraph());\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new OrccException(\"I/O error\", e);\r\n \t\t}\r\n \t}",
"public void save(File file) throws IOException{\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t //Write the header of the file\n\t\twriter.append(\"Celda\");\n\t for(String label:labels){\n\t \twriter.append (DELIMITER+label);\n\t }\n\t writer.append(NEWLINE);\n\t\t\n\t //Now, write the content of the tree\n\t Set<Integer> keys = this.keySet();\n\t for(Integer key:keys){\n\t \twriter.append(key+\"\");\n\t \tdouble[] datas = this.get(key);\n\t \tfor(int i=0;i<datas.length;i++){\n\t \t\twriter.append(DELIMITER+datas[i]);\n\t \t}\n\t \twriter.append(NEWLINE);\n\t }\n\t \n\t writer.flush();\n\t writer.close();\n\t}",
"public void convertDiagramToDot(Diagram diagram, File file) throws IOException {\n try (PrintWriter writer = new PrintWriter(file)) {\n String graphName = diagram.getName();\n writer.println(\"digraph \" + graphName + \" {\");\n writer.println(\"\\trankdir = LR;\");\n for (Widget widget : diagram.getWidget()) {\n if (widget instanceof StateWidget) {\n StateWidget state = (StateWidget) widget;\n writer.println(\"\\t\" + PREFIX + widget.getId() + \" [label=\\\"\" + state.getAttributes().getName() + \"\\\"]\");\n if (state.getAttributes().getIncomings() != null) {\n for (Incoming incoming : state.getAttributes().getIncomings()) {\n writer.println(\"\\t\" + PREFIX + incoming.getId() + \" -> \" + PREFIX + state.getId() + \";\");\n }\n }\n if (state.getAttributes().getOutgoings() != null) {\n for (Outgoing outgoing : state.getAttributes().getOutgoings()) {\n writer.println(\"\\t\" + PREFIX + state.getId() + \" -> \" + PREFIX + outgoing.getId() + \";\");\n }\n }\n } else if (widget instanceof TransitionWidget) {\n TransitionWidget transition = (TransitionWidget) widget;\n writer.println(\"\\t\" + PREFIX + widget.getId() + \" [shape=\\\"none\\\", label=<\" + getLabelByTransition(transition) + \">]\");\n }\n }\n writer.println(\"}\");\n }\n }",
"public void saveToFile(File outputFile) throws IOException {\n PrintWriter writer = new PrintWriter(outputFile);\n\n writer.write(\"# Exported by FrogLord\" + Constants.NEWLINE);\n for (Tuple3<Float, Float, Float> vertex : this.vertices)\n writer.write(\"v \" + vertex.getA() + \" \" + vertex.getB() + \" \" + vertex.getC() + Constants.NEWLINE);\n\n for (Tuple2<Float, Float> normal : this.normals)\n writer.write(\"vt \" + normal.getA() + \" \" + normal.getB() + Constants.NEWLINE);\n\n writer.close();\n }",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"static public void writeGraph(Graph G, String file) {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(file);\n\t\t\tout.println(G.numNodes());\n\t\t\tfor (int i = 0; i < G.numNodes(); i++) {\n\t\t\t\tArrayList<Pair<Integer, Double>> P = G.adjacentNodes(i);\n\t\t\t\tfor (Pair<Integer, Double> j : P) {\n\t\t\t\t\tif (i < j.first) {\n\t\t\t\t\t\tout.println(i + \" \" + j.first + \" \" + j.second);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void save(Graph<V,E> graph, String filename);",
"@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}",
"protected void createPartitionDotFilePath() {\n\t\tString file = \"\";\n\t\tfile += this.getRuntimeEnv().getOptionValue(PTArgString.OUTPUTDIR);\n\t\tfile += Utils.getFileSeparator();\n\t\tfile += Utils.getFilename(this.getNetlist().getInputFilename());\n\t\tfile += \"_hmetis.dot\";\n\t\tthis.setPartitionDotFile(file);\n\t}",
"public void printToFile(Path filename) {\n\t\t\n\t\tlock.lockRead();\n\t\ttry{\n//\t\t\t create a new file if it is not existed; \n//\t\t\t otherwise delete previous one and create a new one.\n\t\t\tif(!Files.exists(filename)){\n\t\t\t\ttry {\n\t\t\t\t\tFiles.createFile(filename);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttry {\n\t\t\t\t\tFiles.delete(filename);\n\t\t\t\t\tFiles.createFile(filename);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(String hotelId : hotelMap.keySet()){\n\t\t\t\tString output = this.toString(hotelId);\n\t\t\t\t\t\t\t\n\t\t\t\t// start of the hotel.\n\t\t\t\tString emptyLine = \"\\n\";\n\t\t\t\tString ast = \"********************\";\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tFiles.write(filename, emptyLine.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\tFiles.write(filename, ast.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\tFiles.write(filename, emptyLine.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tFiles.write(filename, output.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockRead();\n\t\t}\n\t\t\t\n\t}",
"@Override\n\tpublic boolean save(String file) {\n\t\n\t\tGson gson = new GsonBuilder().create();\n\t\tJsonArray arrEdges = new JsonArray();\n\t\tJsonArray arrNodes = new JsonArray();\n\t\tCollection<node_data> arrV = this.dwg.getV();\n\t\tfor(node_data vertex : arrV) {\n\t\t\tJsonObject nodesObj = new JsonObject();\n\t\t\tgeo_location gl = vertex.getLocation();\n\t\t\tnodesObj.addProperty(\"pos\",String.valueOf(gl.x())+\",\"+String.valueOf(gl.y())+\",\"+String.valueOf(gl.z()));\n\t\t\tnodesObj.addProperty(\"id\",vertex.getKey());\n\t\t\tarrNodes.add(nodesObj);\n\t\t\tCollection<edge_data> arrE = this.dwg.getE(vertex.getKey());\n\t\t\tfor(edge_data edge : arrE) {\n\t\t\t\tJsonObject edgesObj = new JsonObject();\n\t\t\t\tedgesObj.addProperty(\"src\",edge.getSrc());\n\t\t\t\tedgesObj.addProperty(\"w\",edge.getWeight());\n\t\t\t\tedgesObj.addProperty(\"dest\",edge.getDest());\n\t\t\t\tarrEdges.add(edgesObj);\n\t\t\t}\n\t\t}\n\t\tJsonObject graphObj = new JsonObject();\n\t\tgraphObj.add(\"Edges\",arrEdges);\n\t\tgraphObj.add(\"Nodes\",arrNodes);\n\t\tString ans = gson.toJson(graphObj);\n\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(file));\n\t\t\tpw.write(ans);\n\t\t\tpw.close();\n\t\t}\n\t\tcatch (FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void writeToFile(File file) {\n\n\t}",
"@Override\n public boolean save(String file) {\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.setPrettyPrinting();\n JsonSerializer<DWGraph_DS> serializer = new JsonSerializer<DWGraph_DS>() {\n @Override\n public JsonElement serialize(DWGraph_DS dwGraph_ds, Type type, JsonSerializationContext jsonSerializationContext) {\n JsonObject jsonGraph = new JsonObject();\n jsonGraph.add(\"Nodes\", new JsonArray());\n jsonGraph.add(\"Edges\", new JsonArray());\n\n for (node_data node : G.getV()) {\n JsonObject jsonNodeObject = new JsonObject();\n\n StringBuilder pos = new StringBuilder();\n pos.append(node.getLocation().x());\n pos.append(',');\n pos.append(node.getLocation().y());\n pos.append(',');\n pos.append(node.getLocation().z());\n jsonNodeObject.addProperty(\"pos\", pos.toString());\n jsonNodeObject.addProperty(\"id\", node.getKey());\n jsonNodeObject.addProperty(\"info\", node.getInfo());\n jsonNodeObject.addProperty(\"tag\", node.getTag());\n jsonGraph.get(\"Nodes\").getAsJsonArray().add(jsonNodeObject);\n for (edge_data e : G.getE(node.getKey())) {\n JsonObject jsonEdgeObject = new JsonObject();\n jsonEdgeObject.addProperty(\"src\", e.getSrc());\n jsonEdgeObject.addProperty(\"w\", e.getWeight());\n jsonEdgeObject.addProperty(\"dest\", e.getDest());\n jsonEdgeObject.addProperty(\"info\", e.getInfo());\n jsonEdgeObject.addProperty(\"tag\", e.getTag());\n jsonGraph.get(\"Edges\").getAsJsonArray().add(jsonEdgeObject);\n }\n }\n return jsonGraph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, serializer);\n Gson graphGson = gsonBuilder.create();\n try {\n PrintWriter writer = new PrintWriter(new FileWriter(file));\n writer.write(graphGson.toJson(G));\n writer.flush();\n writer.close();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }",
"public void outputForGraphviz() {\n\t\tString label = \"\";\n\t\tfor (int j = 0; j <= lastindex; j++) {\n\t\t\tif (j > 0) label += \"|\";\n\t\t\tlabel += \"<p\" + ptrs[j].myname + \">\";\n\t\t\tif (j != lastindex) label += \"|\" + String.valueOf(keys[j+1]);\n\t\t\t// Write out any link now\n\t\t\tBTree.writeOut(myname + \":p\" + ptrs[j].myname + \" -> \" + ptrs[j].myname + \"\\n\");\n\t\t\t// Tell your child to output itself\n\t\t\tptrs[j].outputForGraphviz();\n\t\t}\n\t\t// Write out this node\n\t\tBTree.writeOut(myname + \" [shape=record, label=\\\"\" + label + \"\\\"];\\n\");\n\t}",
"@Override\n public void save(final String filename) throws IOException {\n Filer.getInstance().save(this, DGraphIOFactory.getInstance(), filename);\n }",
"public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }",
"public void writDOT(String pathPlan, String pathDeex, String pathFida, String separato) throws Exception;",
"public DFSGraph(File file) throws FileNotFoundException {\r\n\t\tout = new PrintWriter(file);\r\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public static void exportGraphToDotFile(\n\t\t\tGraph<Vertex, CustomEdge> graph) {\n\t\tboolean graphIsWeighted = graph instanceof WeightedGraph ;\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<CustomEdge> EdgeWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"label\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"weight\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\tComponentAttributeProvider<CustomEdge> EdgeAttributeWithoutWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\t\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<Vertex> VertexAttributeProvider = new ComponentAttributeProvider<Vertex>() {\n\n\t\t\t@Override\n\t\t\tpublic Map<String, String> getComponentAttributes(Vertex v) {\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"distortion\", Integer.toString(v.getAttribut()));\n\t\t\t\tmap.put(\"color\", v.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create DotExporter which matches type of the Graph\n\t\tDOTExporter<Vertex, CustomEdge> exporter1 = null;\n\t\tif(graphIsWeighted){\n\t\t\t exporter1 = new DOTExporter<>(\n\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\tnull, VertexAttributeProvider, EdgeWeightProvider);\n\t\t}else {\n\t\t\t\n\t\t\texporter1 = new DOTExporter<>(\n\t\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\t\tnew StringEdgeNameProvider<>(), VertexAttributeProvider, EdgeAttributeWithoutWeightProvider);\n\t\t}\n//\t\texporter1 = new DOTExporter<Vertex, CustomEdge>();\n\t\t//File Directory\n\t\tString targetDirectory = \"../GKA/result/\";\n\t\t\n\t\t//Export Dot File\n\t\tnew File(targetDirectory).mkdirs();\n\t\ttry {\n\n\t\t\texporter1.export(\n\t\t\t\t\tnew FileWriter(targetDirectory + \"result.gv\"), graph);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void write(java.io.File f) throws java.io.IOException, Schema2BeansRuntimeException;",
"public static void savewtg() throws FileNotFoundException {\n String fileName = \"./outputFiles/wtgVector.txt\";\n PrintWriter pw = new PrintWriter(new FileOutputStream(fileName));\n for (Map.Entry<String,List<Double>> entry : wtgMap.entrySet()){\n pw.println(entry.getKey() + \"-> \" + entry.getValue());\n }\n pw.close();\n }",
"public WritingFont(File file) throws IOException {\n\t\tthis();\n\t\tif (file == null)\n\t\t\tthrow new NullPointerException();\n\n\t\tString name = file.getName();\n\t\tint i = name.lastIndexOf('.');\n\t\tname = i == -1 ? name : name.substring(0, i);\n\t\tproperties.set(NAME, name);\n\n\t\tInputStream in = null;\n\t\ttry {\n\t\t\tin = new FileInputStream(file);\n\t\t\tpopulate(in, file.getAbsolutePath());\n\t\t} finally {\n\t\t\tif (in != null) {\n\t\t\t\tin.close();\n\t\t\t}\n\t\t}\n\t}",
"private void writeCheckpoint(String filename) {\n File file = new File(checkpointDir, filename);\n try {\n geneticProgram.savePopulation(new FileOutputStream(file));\n } catch (FileNotFoundException e) {\n log.log(Level.WARNING, \"Exception in dump\", e);\n }\n }",
"private void cmdGenVCG(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n ModelToGraph.write(out, system.model());\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }",
"public static void toDotFile(String methodname, DirectedGraph graph, String graphname) {\n int sequence = 0;\n // this makes the node name unique\n nodecount = 0; // reset node counter first.\n Hashtable nodeindex = new Hashtable(graph.size());\n\n // file name is the method name + .dot\n DotGraph canvas = new DotGraph(methodname);\n // System.out.println(\"onepage is:\"+onepage);\n if (!onepage) {\n canvas.setPageSize(8.5, 11.0);\n }\n\n canvas.setNodeShape(DotGraphConstants.NODE_SHAPE_BOX);\n canvas.setGraphLabel(graphname);\n\n Iterator nodesIt = graph.iterator();\n\n {\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n\n if (node instanceof List) {\n String listName = \"list\" + (new Integer(sequence++)).toString();\n String nodeName = makeNodeName(getNodeOrder(nodeindex, listName));\n listNodeName.put(node, listName);\n // System.out.println(\"put node: \"+node +\"into listNodeName\");\n\n }\n }\n }\n\n nodesIt = graph.iterator();\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n String nodeName = null;\n if (node instanceof List) {\n\n nodeName = makeNodeName(getNodeOrder(nodeindex, listNodeName.get(node)));\n } else {\n\n nodeName = makeNodeName(getNodeOrder(nodeindex, node));\n }\n Iterator succsIt = graph.getSuccsOf(node).iterator();\n\n while (succsIt.hasNext()) {\n Object s = succsIt.next();\n String succName = null;\n if (s instanceof List) {\n succName = makeNodeName(getNodeOrder(nodeindex, listNodeName.get(s)));\n } else {\n Object succ = s;\n // System.out.println(\"$$$$$$succ: \"+succ);\n // nodeName = makeNodeName(getNodeOrder(nodeindex, tag+\" \"+node));\n succName = makeNodeName(getNodeOrder(nodeindex, succ));\n // System.out.println(\"node is :\" +node);\n // System.out.println(\"find start node in pegtodotfile:\"+node);\n }\n\n canvas.drawEdge(nodeName, succName);\n }\n\n }\n\n // set node label\n if (!isBrief) {\n nodesIt = nodeindex.keySet().iterator();\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n // System.out.println(\"node is:\"+node);\n if (node != null) {\n // System.out.println(\"node: \"+node);\n String nodename = makeNodeName(getNodeOrder(nodeindex, node));\n // System.out.println(\"nodename: \"+ nodename);\n DotGraphNode dotnode = canvas.getNode(nodename);\n // System.out.println(\"dotnode: \"+dotnode);\n if (dotnode != null) {\n dotnode.setLabel(node.toString());\n }\n }\n }\n }\n\n canvas.plot(\"pecg.dot\");\n\n // clean up\n listNodeName.clear();\n }",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void outputToFile(String filename) throws FileNotFoundException, IOException {\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew FileWriter(filename+\".tmp\"));\n\t\twriter.write(VERIFY_STRING + \"\\n\");\n\n\t\t// output automata info\n\t\twriter.write(machine.getName() + \"\\n\");\n\t\twriter.write(machine.getType() + \"\\n\");\n\n\t\t// output state info\n\t\tfor (State state : machine.getStates()) {\n\t\t\twriter.write(\"STATE\\n\");\n\t\t\twriter.write(state.getName() + \"\\n\");\n\t\t\twriter.write(state.isAccept() + \" \" + state.isStart() + \" \" + \n\t\t\t\t\tstate.getID() + \" \" + state.getGraphic().getX() + \" \" + \n\t\t\t\t\tstate.getGraphic().getY() + \"\\n\");\n\n\t\t\t// output transitions\n\t\t\tfor (Transition t : state.getTransitions())\n\t\t\t\twriter.write(t.getID() + \" \" + t.getInput() + \" \" + \n\t\t\t\t\t\tt.getNext().getID() + \"\\n\");\n\t\t}\n\t\twriter.close();\n\t}",
"private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}",
"public void toFile(String filename) {\n\t\tString serialized = Serializer.serializeLevelPack(this);\n\t\tSerializer.writeToFile(filename, serialized.getBytes());\n\t}",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"public void dotGraph(BufferedWriter out) throws IOException {\n out.write(\"digraph \\\"\"+this.method+\"\\\" {\\n\");\n IndexMap m = new IndexMap(\"MethodCallMap\");\n for (Iterator i=nodeIterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n out.write(\"n\"+n.id+\" [label=\\\"\"+n.toString_short()+\"\\\"];\\n\");\n }\n for (Iterator i=getCalls().iterator(); i.hasNext(); ) {\n ProgramLocation mc = (ProgramLocation) i.next();\n int k = m.get(mc);\n out.write(\"mc\"+k+\" [label=\\\"\"+mc+\"\\\"];\\n\");\n }\n for (Iterator i=nodeIterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n for (Iterator j=n.getNonEscapingEdges().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n String fieldName = \"\"+e.getKey();\n Iterator k;\n if (e.getValue() instanceof Set) k = ((Set)e.getValue()).iterator();\n else k = Collections.singleton(e.getValue()).iterator();\n while (k.hasNext()) {\n Node n2 = (Node) k.next();\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"\"+fieldName+\"\\\"];\\n\");\n }\n }\n for (Iterator j=n.getAccessPathEdges().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n String fieldName = \"\"+e.getKey();\n Iterator k;\n if (e.getValue() instanceof Set) k = ((Set)e.getValue()).iterator();\n else k = Collections.singleton(e.getValue()).iterator();\n while (k.hasNext()) {\n Node n2 = (Node) k.next();\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"\"+fieldName+\"\\\",style=dashed];\\n\");\n }\n }\n if (n.getPassedParameters() != null) {\n for (Iterator j=n.getPassedParameters().iterator(); j.hasNext(); ) {\n PassedParameter pp = (PassedParameter) j.next();\n int k = m.get(pp.m);\n out.write(\"n\"+n.id+\" -> mc\"+k+\" [label=\\\"p\"+pp.paramNum+\"\\\",style=dotted];\\n\");\n }\n }\n if (n instanceof ReturnedNode) {\n ReturnedNode rn = (ReturnedNode) n;\n int k = m.get(rn.m);\n out.write(\"mc\"+k+\" -> n\"+n.id+\" [label=\\\"r\\\",style=dotted];\\n\");\n }\n }\n for (Iterator i=castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n Node n = (Node)((Pair)e.getKey()).left;\n Node n2 = (Node)e.getValue();\n if (nodes.containsKey(n2))\n out.write(\"n\"+n.id+\" -> n\"+n2.id+\" [label=\\\"(cast)\\\"];\\n\");\n }\n out.write(\"}\\n\");\n }",
"public void writeGraphToFile (String fileName) throws IOException {\r\n int[][] childs = new int[getNumV()*getNumV()][getNumV()];\r\n for(int i =0; i< getNumV(); i++)\r\n for(int j =0; j< getNumV(); j++)\r\n childs[i][j] = -1;\r\n\r\n boolean[] visited = new boolean[getNumV()];\r\n for (int i=0; i<getNumV(); i++)\r\n visited[i] = false;\r\n\r\n for(int vertex = 0; vertex<getNumV(); vertex++) {\r\n Queue<Integer> theQueue = new LinkedList<Integer>();\r\n theQueue.offer(vertex);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = true;\r\n Iterator<Edge> itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n\r\n if(!visited[neighbor])\r\n theQueue.offer(neighbor);\r\n\r\n childs[current][neighbor] = 1;\r\n }\r\n }\r\n }\r\n\r\n File file = new File(fileName);\r\n FileWriter fW = new FileWriter(file);\r\n BufferedWriter bW = new BufferedWriter(fW);\r\n String s = \"\";\r\n s += getNumV();\r\n bW.write(s.toString());\r\n bW.write(\"\\n\");\r\n\r\n for(int i= 0; i<getNumV(); i++){\r\n for(int j = 0; j < getNumV(); j++){\r\n if(childs[i][j] == 1){\r\n s = \"\";\r\n s += i;\r\n s += \" \";\r\n s += j;\r\n s += \"\\n\";\r\n bW.write(s.toString());\r\n }\r\n }\r\n }\r\n bW.close();\r\n }",
"private void saveTree(File saveFile) throws FileNotFoundException {\r\n\t\tPrintStream ps = new PrintStream(saveFile); // Prepare to output to save file\r\n\t\tsaveTree(ps, getRootNode());\r\n\t\tps.close(); // Close the save file\r\n\t}",
"public void generate(File file) throws IOException;",
"public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}",
"public void saveGraph(String dirName, String fileName) {\r\n try {\r\n if (fileName.indexOf('.') < 0) {\r\n StringBuffer buffer = new StringBuffer(fileName);\r\n buffer.append(\".gpx\");\r\n fileName = buffer.toString();\r\n }\r\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(dirName + fileName));\r\n\r\n /* Type of the graph */\r\n if (graph instanceof GraphUnoriented) {\r\n out.writeInt(GRAPH_UNORIENTED);\r\n } else if (graph instanceof GraphOriented) {\r\n out.writeInt(GRAPH_ORIENTED);\r\n }\r\n /* Graph */\r\n out.writeObject(graph);\r\n out.writeObject(graphX);\r\n\r\n /* Scroll position */\r\n out.writeObject(scrollRectangle);\r\n\r\n out.close();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }",
"public void dump(File file)\n {\n try\n {\n FileOutputStream out = new FileOutputStream(file);\n BufferedWriter write = new BufferedWriter(new OutputStreamWriter(out, Encoder.UTF_8));\n\n dump(write);\n\n write.close();\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }",
"public void toFile() throws IOException {\n toFile(null);\n }",
"public void generateAndwriteToFile() {\n List<GeneratedJavaFile> gjfs = generate();\n if (gjfs == null || gjfs.size() == 0) {\n return;\n }\n for (GeneratedJavaFile gjf : gjfs) {\n writeToFile(gjf);\n }\n }",
"private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }",
"public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void save(File f) {\n\t\tif (f.exists()) {\r\n\t\t\tString filename = f.getName();\r\n\t\t\tString backName;\r\n\t\t\tif (filename.contains(\".\")) {\r\n\t\t\t\tbackName = filename.substring(0,filename.lastIndexOf('.'));\r\n\t\t\t\tbackName += \"_backup\";\r\n\t\t\t\tbackName += filename.substring(filename.lastIndexOf('.'));\r\n\t\t\t} else {\r\n\t\t\t\tbackName = filename + \"_backup\";\r\n\t\t\t}\r\n\t\t\tFile back = new File(f.getParent(),backName);\r\n\t\t\tSystem.out.println(\"Writing backup to: \"+back.getAbsolutePath());\r\n\t\t\tif (back.exists()) back.delete();\r\n\t\t\tFile newF = f;\r\n\t\t\tf.renameTo(back);\r\n\t\t\tf = newF;\r\n\t\t}\r\n\r\n\t\tFileOutputStream outputStream = null;\r\n\t\ttry {\r\n\t\t\tDocument doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\r\n//\t\t\tb.append(\"<Map xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"map.xsd\\\">\");\r\n//\t\t\tProcessingInstruction pi = doc.createProcessingInstruction(\"xml-stylesheet\", \"type=\\\"text/xsl\\\" href=\\\"/assistantdm/static/CharacterSheetTemplate.xsl\\\"\");\r\n//\t\t\tdoc.appendChild(pi);\r\n\t\t\tXMLMapExporter processor = new XMLMapExporter(doc);\r\n\t\t\tmapPanel.executeProcess(processor);\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\r\n\t\t\tTransformer trans = TransformerFactory.newInstance().newTransformer();\r\n\t\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttrans.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t\t\ttrans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\t\t\toutputStream = new FileOutputStream(f);\r\n\t\t\ttrans.transform(new DOMSource(doc), new StreamResult(outputStream));\r\n\t\t\tmapPanel.modified = false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (outputStream != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.close();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void writeDotRecursive(BinaryTreeNode n, PrintWriter output) throws Exception\t{\n\t\toutput.println(n.data + \"[label=\\\"<L> |<D> \" + n.data + \"|<R> \\\"]\");\n\t\tif(n.left != null) {\n\t\t\t// write the left subtree\n\t\t\twriteDotRecursive(n.left, output);\n\n\t\t\t// then make a link between n and the left subtree\n\t\t\toutput.println(n.data + \":L -> \" + n.left.data + \":D\" );\n\t\t}\n\t\tif(n.right != null)\t\t{\n\t\t\t// write the left subtree\n\t\t\twriteDotRecursive(n.right, output);\n\n\t\t\t// then make a link between n and the right subtree\n\t\t\toutput.println(n.data + \":R -> \" + n.right.data + \":D\" );\n\t\t}\n\n\t}",
"protected void addOAGDotCls(Class cls, FileWriter writer, int counter) throws IOException{\r\n\t\tString clusterName = cls.getName();\r\n\t\twriter.write(\"\\tsubgraph cluster\" + counter + \"{\\n\");\r\n\t\twriter.write(\"\\t\\tcolor=black;\\n\");\r\n\t\twriter.write(\"\\t\\tnode[style=filled];\\n\");\r\n\t\twriter.write(\"\\t\\tlabel=\\\"\" + clusterName + \"\\\";\\n\");\r\n\t\tfor (Vertex vert : cls.getVertices()){\r\n\t\t\tString vertVar = vert.getExtVar();\r\n\t\t\tString modifier = \"[label=\\\"\" + vertVar + \"\\\"\";\r\n\t\t\tif (!vert.isPublic()){\r\n\t\t\t\tmodifier = \"[label=\\\"$\" + vertVar + \"\\\"\";\r\n\t\t\t}\r\n\t\t\tif (vert.isVertexType(VertType.FIELD))\r\n\t\t\t\tmodifier += \", shape=box\";\r\n\t\t\twriter.write(\"\\t\\t\" + clusterName + \"_\" + vertVar + modifier + \"];\\n\");\r\n\t\t}\r\n\t\twriter.write(\"\\t}\\n\");\r\n\t}",
"public static void put(File file) throws IOException {\n while (LogicManager.isUpdating()) {} // wait until current update has finished\n\n LogicManager.setPaused(true);\n\n // open output stream\n ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n\n // write viewport data\n out.writeObject(Window.getCurrentInstance()\n .getGameDisplay()\n .getViewport());\n out.writeObject(new Integer(Window.getCurrentInstance()\n .getGameDisplay()\n .getScaling()));\n\n // write map data\n Point[] data = GridManager.dumpScene();\n out.writeObject(data);\n out.flush();\n out.close();\n }",
"public void toFile(String filename) {\n\t\tsortPool();\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(filename))) {\n\t\t\tfor(int i = 0; i < genepool.size(); i++) {\n\t\t\t\tbw.write(genepool.get(i).toWrite());\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void saveConfig(File fi){\n\t\ttry {\n\n\t\t\tPrintStream ps = new PrintStream(fi);\n\n\t\t\tps.println(\"Name = \" + name);\n\t\t\tps.println(\"PrepositionLength = \" + prepositionLength);\n\t\t\tps.println(\"PrepositionDelay = \" + prepositionDelay);\n\t\t\tps.println(\"Strings = \" + setOfStrings.length);\n\t\t\tfor(int i = 0; i < setOfStrings.length; i++){\n\t\t\t\tps.println(\"LowNote = \" + setOfStrings[i].lowNote);\n\t\t\t\tps.println(\"HighNote = \" + setOfStrings[i].highNote);\n\t\t\t\tString output = \"\";\n\t\t\t\tfor(int j = 0; j < setOfStrings[i].interval.length;j++){\n\t\t\t\t\toutput += setOfStrings[i].interval[j] + \", \";\n\t\t\t\t}\n\t\t\t\tps.println(output);\n\t\t\t\tps.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tpublic void printToFile() {\n\t\t\n\t}",
"public void saveGrdGMT3( File file ) throws IOException {\n\t\ttry {\n\t\t\tNetCDFGrid2D.createStandardGrd( grid, file );\n\t\t} catch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t}",
"public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }",
"private void saveGraph() {\n try(FileOutputStream fileOut = new FileOutputStream(graphPath + OVERLAY_GRAPH);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut))\n {\n objectOut.writeObject(graph);\n System.out.println(\"The overlay graph was successfully written to a file\");\n } catch (Exception ex) {\n System.out.println(\"Error writing the overlay graph\");\n ex.printStackTrace();\n }\n }",
"private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}",
"public void exportGraphForClade(String clade_name, String out_filepath){\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(clade_name);\n \t\tNode firstNode = null;\n \t\tif (foundNodes.size() < 1) {\n System.out.println(\"name '\" + clade_name + \"' not found. quitting.\");\n \t\t\treturn;\n \t\t} else if (foundNodes.size() > 1) {\n \t\t System.out.println(\"more than one node found for name '\" + clade_name + \"'not sure how to deal with this. quitting\");\n \t\t} else {\n \t\t for (Node n : foundNodes) {\n \t\t firstNode = n;\n \t\t }\n \t\t}\n \t\t//TraversalDescription CHILDOF_TRAVERSAL = Traversal.description().relationships(RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tPrintWriter out_file;\n \t\ttry {\n \t\t\tout_file = new PrintWriter(new FileWriter(out_filepath));\n \t\t\tout_file.write(\"strict digraph {\\n\\trankdir = RL ;\\n\");\n \t\t\tHashMap<String, String> src2style = new HashMap<String, String>();\n \t\t\tHashMap<Node, String> nd2dot_name = new HashMap<Node, String>();\n \t\t\tint count = 0;\n \t\t\tfor (Node nd : firstNode.traverse(Traverser.Order.BREADTH_FIRST, \n \t\t\t\t\t\t\t\t\t\t\t StopEvaluator.END_OF_GRAPH,\n \t\t\t\t\t\t\t\t\t\t\t ReturnableEvaluator.ALL,\n \t\t\t\t\t\t\t\t\t\t\t RelTypes.TAXCHILDOF,\n \t\t\t\t\t\t\t\t\t\t\t Direction.INCOMING)) {\n \t\t\t\tfor(Relationship rel : nd.getRelationships(RelTypes.TAXCHILDOF,Direction.INCOMING)) {\n \t\t\t\t\tcount += 1;\n \t\t\t\t\tNode rel_start = rel.getStartNode();\n \t\t\t\t\tString rel_start_name = ((String) rel_start.getProperty(\"name\"));\n \t\t\t\t\tString rel_start_dot_name = nd2dot_name.get(rel_start);\n \t\t\t\t\tif (rel_start_dot_name == null){\n \t\t\t\t\t\trel_start_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_start, rel_start_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" [label=\\\"\" + rel_start_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tNode rel_end = rel.getEndNode();\n \t\t\t\t\tString rel_end_name = ((String) rel_end.getProperty(\"name\"));\n \t\t\t\t\tString rel_end_dot_name = nd2dot_name.get(rel_end);\n \t\t\t\t\tif (rel_end_dot_name == null){\n \t\t\t\t\t\trel_end_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_end, rel_end_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_end_dot_name + \" [label=\\\"\" + rel_end_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tString rel_source = ((String) rel.getProperty(\"source\"));\n \t\t\t\t\tString edge_style = src2style.get(rel_source);\n \t\t\t\t\tif (edge_style == null) {\n \t\t\t\t\t\tedge_style = \"color=black\"; // @TMP\n \t\t\t\t\t\tsrc2style.put(rel_source, edge_style);\n \t\t\t\t\t}\n \t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" -> \" + rel_end_dot_name + \" [\" + edge_style + \"] ;\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tout_file.write(\"}\\n\");\n \t\t\tout_file.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"protected abstract void writeFile();",
"public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }",
"public void saveGraph(File targetDir) throws IOException {\n DOTExporter<String, DefaultEdge> dotExporter = new DOTExporter<>(v -> v.replace(\"/\", \"_\"));\n for (HashMap.Entry<String, Graph<String, DefaultEdge>> graphEntry : LCOMGraph.entrySet()) {\n dotExporter.exportGraph(\n graphEntry.getValue(),\n new FileWriter(\n targetDir.getAbsolutePath()\n + \"/\"\n + graphEntry.getKey().replace(\"/\", \"_\")\n + \"_lcom_graph.dot\"));\n try (InputStream dot =\n new FileInputStream(\n targetDir.getAbsolutePath()\n + \"/\"\n + graphEntry.getKey().replace(\"/\", \"_\")\n + \"_lcom_graph.dot\")) {\n MutableGraph g = new Parser().read(dot);\n Graphviz.fromGraph(g)\n .render(Format.PNG)\n .toFile(\n new File(\n targetDir.getAbsolutePath()\n + \"/\"\n + graphEntry.getKey().replace(\"/\", \"_\")\n + \"_lcom_graph.png\"));\n }\n }\n }",
"static void write (String filename, String graph_str) throws IOException {\n \ttry (FileWriter writer = new FileWriter(filename);\n BufferedWriter bw = new BufferedWriter(writer)) {\n bw.write(graph_str);\n } catch (IOException e) {\n System.err.format(\"IOException: %s%n\", e);\n }\n\t}",
"public static void write() throws IOException {\n VelocityContext context = new VelocityContext();\n\n //Put the data model in context object\n context.put(\"packageName\", packageName);\n context.put(\"className\", className);\n List<Attribute> attributes = new ArrayList<>();\n attributes.add(new Attribute(\"id\", \"int\"));\n attributes.add(new Attribute(\"firstName\", \"String\"));\n attributes.add(new Attribute(\"lastName\", \"String\"));\n attributes.add(new Attribute(\"dob\", \"LocalDate\"));\n context.put(\"attributes\", attributes);\n\n //Merge the template with context data\n StringWriter stringWriter = new StringWriter();\n Velocity.mergeTemplate(\"class.vm\", context, stringWriter);\n\n //Write to file\n FileWriter fw = null;\n try {\n fw = new FileWriter(\"output/User.java\");\n fw.write(stringWriter.toString());\n } finally {\n if (fw != null) {\n fw.close();\n }\n }\n }",
"public void writeToFile(RandomAccessFile fio) {\n try {\n fio.writeInt(number);\n fio.writeUTF(name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void save(String file) throws IOException {\n String output = \"\"; \r\n for (int row = 0; row < grid.length; row++) { //iterate through the current instance\r\n for (int col = 0; col < grid[row].length; col++) {\r\n if (grid[row][col]==true) { //if cell is alive\r\n output = output + \"1\"; //store one\r\n } else {\r\n output = output + \"0\"; //else, store a zero\r\n }\r\n }\r\n }\r\n System.out.println(\"File \" + file + \".txt is saved.\"); //display that file is saved\r\n String fileName = file + \".txt\"; //add txt extension\r\n FileWriter writer = new FileWriter(fileName); //finish saving the file\r\n writer.write(output);\r\n writer.close();\r\n\r\n }",
"public static void write(final Game game, final String filename) throws IOException {\n\t\tnew File(SAVES_FOLDER).mkdirs();\n\t\tfinal ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(new File(SAVES_FOLDER + filename)));\n\t\toutput.writeObject(game);\n\t\toutput.close();\n\t}",
"public void printEdgeSet(Graph<V, Pair<V>> g, String filename)\r\n\t{\n\t\tPrintWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new PrintWriter(filename, \"UTF-8\");\r\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor (Pair<V> e :g.getEdges())\r\n\t\t{\r\n\t\t\t\r\n\t\t\twriter.println(e.getFirst() + \"\\t\" + e.getSecond());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\twriter.close();\r\n\t\t\r\n\t\t\r\n\t}",
"public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }",
"static void writeGPXFile(Trail trail, Context context) {\r\n if(gpxParser == null)\r\n buildParser();\r\n\r\n GPX gpx = parseTrailtoGPX(trail);\r\n\r\n System.out.println(\"~~~~~~~~~~~~~~~\"+trail.getMetadata().getName());\r\n\r\n //create a new file with the given name\r\n File file = new File(context.getExternalFilesDir(null), trail.getMetadata().getName()+\".gpx\");\r\n FileOutputStream out;\r\n try {\r\n out = new FileOutputStream(file);\r\n gpxParser.writeGPX(gpx, out);\r\n } catch(FileNotFoundException e) {\r\n AlertUtils.showAlert(context,\"File not found\",\"Please notify the developers.\");\r\n } catch (TransformerException e) {\r\n AlertUtils.showAlert(context,\"Transformer Exception\",\"Please notify the developers.\");\r\n } catch (ParserConfigurationException e) {\r\n AlertUtils.showAlert(context,\"Parser Exception\",\"Please notify the developers.\");\r\n }\r\n }",
"public void save(File gmlFile) throws IOException {\n\t\tGraphIOUtils.toGraphML(this, gmlFile);\n\t}",
"public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}",
"public static void save(Game game, String filename) {\n\t\ttry {\n\t\t\t/*\n\t\t\t * Setting up the xml writer\n\t\t\t */\n\t\t\t StringWriter stringWriter = new StringWriter();\n\n\t XMLOutputFactory xMLOutputFactory = XMLOutputFactory.newInstance();\n\t XMLStreamWriter xMLStreamWriter = xMLOutputFactory.createXMLStreamWriter(stringWriter);\n\n\t //Game node\n\t xMLStreamWriter.writeStartDocument();\n\t xMLStreamWriter.writeStartElement(\"Game\");\n\n\t\t\tWorld world = game.getWorld();\n\n\t\t\txMLStreamWriter.writeStartElement(\"TorchLight\");\n\t\t\txMLStreamWriter.writeCharacters(game.getTorchLight()+\"\");\n\t\t\txMLStreamWriter.writeEndElement();\n\n\t\t\t//World node\n\t\t\txMLStreamWriter.writeStartElement(\"World\");\n\n\t\t\t/*\n\t\t\t * Writing the dimensions of the game (i.e its width and height)\n\t\t\t */\n\t\t\twriteWorldDimension(xMLStreamWriter, world);\n\n\t\t\t/*\n\t\t\t * Writing the content of every room in the game\n\t\t\t */\n\t\t\tfor(int row = 0; row < world.getHeight(); row++) {\n\t\t\t\tfor(int col = 0; col < world.getWidth(); col++) {\n\t\t\t\t\twriteRoom(xMLStreamWriter, world, row, col);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Closing the tags\n\t\t\t */\n\t xMLStreamWriter.writeEndElement();\n\t xMLStreamWriter.writeEndElement();\n\n\t xMLStreamWriter.writeEndDocument();\n\n\t xMLStreamWriter.flush();\n\t xMLStreamWriter.close();\n\n\t String xmlString = stringWriter.getBuffer().toString();\n\n\t stringWriter.close();\n\t /*\n\t * Writing the content of the game in xml format\n\t */\n\t try (PrintStream out = new PrintStream(new FileOutputStream(filename))) {\n\t \t out.print(xmlString);\n\t \t out.close();\n\t \t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void writeMapToFile() {\r\n\t\ttry {\r\n\t\t\tString dm = gson.toJson(daoMap);// gson.toJson(entity);\r\n\t\t\tFileWriter fileWriter = new FileWriter(path);\r\n\t\t\t\r\n\t\t\tfileWriter.write(dm);\r\n\t\t\tfileWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }",
"public void write(String path) throws Exception {\n\t\tint canvasSize = size + 10; // size + 5 px stroke x2\n\t\t\n\t\tSVGGraphics2D generator = getGenerator();\n\t\tDimension svgCanvasSize = new Dimension(canvasSize, canvasSize);\n\t\tgenerator.setSVGCanvasSize(svgCanvasSize);\n\t\t\n\t\tdrawChromosome(generator);\n\t\tdrawArcs(generator);\n\t\tdrawCenter(generator);\n\t\t\n\t\twriteToFile(generator, path);\n\t\t\n\t\tlink = File.separator + \"prism\" + File.separator + path.split(\"prism\" + File.separator)[1]; \n\t}",
"private static void exportJsonFile(File configFile) {\n Gson gson = new Gson();\n \n // Java object to JSON, and assign to a String\n String jsonInString = gson.toJson(GameConfig.getInstance());\n \n try {\n FileWriter writer = new FileWriter(configFile);\n \n writer.append(jsonInString);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n LogUtils.error(\"exportJsonFile => \",e);\n }\n }",
"public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }",
"public void outputSvg(String fileName){\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(new File(fileName));\n\t\t\tfw.write(output);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t}",
"public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }",
"public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\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}",
"public void render(String filename) throws FileNotFoundException {\r\n int pix_h, pix_w;\r\n pix_h = (int) window.getPix_h();\r\n pix_w = (int) window.getPix_w();\r\n \r\n Pixel[][] grid = new Pixel[pix_h][pix_w];\r\n \r\n for(int i = 0; i < pix_h; i++) {\r\n for(int j = 0; j < pix_w; j++) {\r\n \r\n Point p = window.getDelta_h().const_mult(j).vec_add(window.getDelta_w().const_mult(i)).point_add(window.getUl());\r\n Vec d = p.point_sub(window.getEye()).normalize();\r\n Ray r = new Ray(d, window.getEye());\r\n Color c = ray_trace(r);\r\n \r\n grid[i][j] = new Pixel(p, c);\r\n }\r\n }\r\n \r\n try(\r\n PrintWriter toFile = new PrintWriter(filename);\r\n ){\r\n toFile.println(\"P3\");\r\n toFile.println(pix_w + \" \" + pix_h);\r\n toFile.println(255);\r\n \r\n for(int i = 0; i < pix_h; i++) {\r\n int k = 0;\r\n for(int j = 0; j < pix_w; j++) {\r\n if(k>10) {\r\n toFile.println();\r\n k = 0;\r\n }\r\n toFile.print(\r\n (int) Math.ceil(grid[i][j].getColor().getR()*255) + \" \" +\r\n (int) Math.ceil(grid[i][j].getColor().getG()*255) + \" \" +\r\n (int) Math.ceil(grid[i][j].getColor().getB()*255) + \" \");\r\n k++;\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n }",
"void save(int generation) {\n File file = new File(\"network.dat\");\n try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)))) {\n out.write(String.valueOf(generation) + \"\\n\");\n for (float v : weightLayer1)\n out.write(String.valueOf(v) + \"\\n\");\n for (float v : weightLayer2)\n out.write(String.valueOf(v) + \"\\n\");\n out.flush();\n out.close();\n JOptionPane.showMessageDialog(null, \"The Neural Network was saved!\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"The Neural Network could not be saved:\\n\" + e.getLocalizedMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void outputToFile(MethodCallExpr original, MethodCallExpr mutant) {\n if (comp_unit == null || currentMethodSignature == null){\n return;\n }\n num++;\n String f_name = getSourceName(\"ARGR\");\n String mutant_dir = getMuantID(\"ARGR\");\n try {\n PrintWriter out = getPrintWriter(f_name);\n ARGR_Writer writer = new ARGR_Writer(mutant_dir, out);\n writer.setMutant(original, mutant);\n writer.setMethodSignature(currentMethodSignature);\n writer.writeFile(comp_unit);\n out.flush();\n out.close();\n }\n catch (IOException e) {\n System.err.println(\"ARGR: Fails to create \" + f_name);\n logger.error(\"Fails to create \" + f_name);\n }\n }",
"public void deleteDot() {\n\t\tif (dotFile.exists()){\n\t\t\t\n\t\t\tif (!dotFile.canWrite())\n\t\t\t\tthrow new IllegalArgumentException(\"Delete: write protected: \" + dotFile.getName());\n\n\t\t\t// If it is a directory, make sure it is empty\n\t\t\tif (dotFile.isDirectory()) {\n\t\t\t\tString[] files = dotFile.list();\n\t\t\t\tif (files.length > 0)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Delete: directory not empty: \" + dotFile.getName());\n\t\t\t}\n\t\t\t\n\t\t\tif (!dotFile.delete()){\n\t\t\t\tthrow new IllegalArgumentException(\"Delete: deletion failed\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void save (File argFile) throws IOException;",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"public String toFileFormat()\n\t{\n\t\t\n\t\treturn startx + \" \" + starty + \"; \" + endx + \" \" + endy + \"; \"+ texture + \";\\r\\n\";\n\t\t\n\t}",
"public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;"
] | [
"0.74791884",
"0.70052755",
"0.6843451",
"0.6757902",
"0.6641019",
"0.6593625",
"0.6358092",
"0.62732536",
"0.61566883",
"0.6131157",
"0.6110705",
"0.5987704",
"0.59795076",
"0.59425026",
"0.5914803",
"0.5897165",
"0.58838457",
"0.5882449",
"0.5873323",
"0.5841873",
"0.582905",
"0.581652",
"0.5810908",
"0.5783955",
"0.5772755",
"0.57592124",
"0.5711693",
"0.5703765",
"0.56878746",
"0.56779647",
"0.56744164",
"0.566175",
"0.5656787",
"0.56566894",
"0.5645724",
"0.56303525",
"0.56281894",
"0.56281024",
"0.5605433",
"0.5604831",
"0.5601886",
"0.5589628",
"0.5588094",
"0.5574976",
"0.55296224",
"0.55178016",
"0.5512996",
"0.55012643",
"0.5494495",
"0.54706395",
"0.54624796",
"0.5459051",
"0.54469824",
"0.5444724",
"0.5437848",
"0.54376507",
"0.54365915",
"0.542526",
"0.5416918",
"0.54117936",
"0.5411631",
"0.5405257",
"0.5392963",
"0.5390182",
"0.53873175",
"0.53559405",
"0.5335284",
"0.5334783",
"0.5327573",
"0.53257656",
"0.531509",
"0.53133017",
"0.5310747",
"0.5305669",
"0.5302441",
"0.52892536",
"0.5287412",
"0.52818155",
"0.52798563",
"0.5279614",
"0.52616996",
"0.52594936",
"0.5259392",
"0.5257986",
"0.52519166",
"0.5247064",
"0.5241712",
"0.52395344",
"0.523556",
"0.52342707",
"0.52331054",
"0.5227306",
"0.52243197",
"0.5220853",
"0.5220094",
"0.5219475",
"0.52094007",
"0.5209112",
"0.52081716",
"0.5207965"
] | 0.6087252 | 11 |
TODO: move to ImageUtils | public static BufferedImage autoCrop(BufferedImage source, float threshold) {
int rgb;
int backlo;
int backhi;
int width = source.getWidth();
int height = source.getHeight();
int startx = width;
int starty = height;
int destx = 0;
int desty = 0;
rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);
backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;
backlo = (int) (backlo - (backlo * threshold));
if (backlo < 0) {
backlo = 0;
}
backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;
backhi = (int) (backhi + (backhi * threshold));
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
rgb = source.getRGB(x, y);
int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;
if (sum < backlo || sum > backhi) {
if (y < starty) {
starty = y;
}
if (x < startx) {
startx = x;
}
if (y > desty) {
desty = y;
}
if (x > destx) {
destx = x;
}
}
}
}
System.out.println("crop: ["
+ startx + ", " + starty + ", "
+ destx + ", " + desty + "]");
BufferedImage result = new BufferedImage(
destx - startx, desty - starty,
source.getType());
result.getGraphics().drawImage(
Toolkit.getDefaultToolkit().createImage(
new FilteredImageSource(source.getSource(),
new CropImageFilter(startx, starty, destx, desty))),
0, 0, null);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat();",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"Imagem getImagem();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"Image createImage();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image getBassClef();",
"public Image getSix();",
"public native MagickImage flopImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public Image getFlat();",
"public native int getImageType() throws MagickException;",
"public abstract String getImageSuffix();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"protected abstract Image loadImage();",
"public native MagickImage magnifyImage() throws MagickException;",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"public native MagickImage minifyImage() throws MagickException;",
"public Image getTwo();",
"WorldImage getImage();",
"public ImageDescriptor getImageDescriptor();",
"public native MagickImage enhanceImage() throws MagickException;",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Image getOne();",
"public Image getFour();",
"IMG createIMG();",
"public Image getTrebleClef();",
"@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}",
"public Image getFive();",
"Picture identifyComponentImage() throws Exception;",
"public native MagickImage despeckleImage() throws MagickException;",
"public void displayImageToConsole();",
"private Images() {}",
"private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"String removeImageStyle();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public Image getCrotchetRest();",
"private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}",
"public abstract BufferedImage transform();",
"private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }",
"java.lang.String getImagePath();",
"String getItemImage();",
"public native String getMagick() throws MagickException;",
"@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}",
"BufferedImage outputImage();",
"String avatarImage();",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"File resolveImage(Box box);",
"public Image getSeven();",
"abstract public String getImageKey();",
"List<List<Pixel>> transform(Image img, String operation);",
"public Image call() throws IOException;",
"boolean hasImageByTransform();",
"protected native MagickImage nextImage() throws MagickException;",
"public String getStaticPicture();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"abstract public String imageUrl ();",
"String getImagePath();",
"String getImagePath();",
"private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }",
"public Image getEight();",
"public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}",
"protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }",
"private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }",
"public Image getNine();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"public native String getImageAttribute(String key) throws MagickException;",
"public abstract Image gen();",
"private ImageLoader() {}",
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }",
"ImageFormat getFormat();",
"private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public String getImage() { return image; }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"PImage getImage() {\n return _img;\n }",
"Picture binaryComponentImage() throws Exception;",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.74654204",
"0.7222431",
"0.706617",
"0.6795442",
"0.6638919",
"0.66301066",
"0.66301066",
"0.66301066",
"0.65855193",
"0.6549164",
"0.6548956",
"0.64878243",
"0.6415942",
"0.6358099",
"0.63228387",
"0.63228387",
"0.63186383",
"0.6300099",
"0.62990004",
"0.62937754",
"0.62504023",
"0.6246574",
"0.6212209",
"0.6210781",
"0.61965525",
"0.6157027",
"0.6118458",
"0.61168796",
"0.60670614",
"0.60511595",
"0.60286003",
"0.6020999",
"0.6009705",
"0.60062075",
"0.59899426",
"0.59800816",
"0.5974916",
"0.59636617",
"0.5953071",
"0.59451884",
"0.593766",
"0.59359604",
"0.59284973",
"0.5921476",
"0.59171826",
"0.5906824",
"0.5894392",
"0.58905894",
"0.58639336",
"0.58465403",
"0.5845953",
"0.5834441",
"0.58256644",
"0.58116084",
"0.58096796",
"0.58065474",
"0.58045304",
"0.5792465",
"0.57891667",
"0.5784491",
"0.5782019",
"0.5781892",
"0.57799315",
"0.5773169",
"0.5771489",
"0.57704246",
"0.576813",
"0.5768057",
"0.5764458",
"0.57618773",
"0.5758575",
"0.5758575",
"0.5751443",
"0.57473207",
"0.57370234",
"0.5736566",
"0.5733153",
"0.57287085",
"0.5718152",
"0.57054687",
"0.5701965",
"0.5694453",
"0.5684513",
"0.56710064",
"0.5667989",
"0.56587094",
"0.5657995",
"0.5655875",
"0.56549114",
"0.5654476",
"0.5650763",
"0.5650007",
"0.56492376",
"0.5646116",
"0.56396574",
"0.56352115",
"0.5625327",
"0.5624991",
"0.56233877",
"0.56166965",
"0.5615025"
] | 0.0 | -1 |
TODO: move to ImageUtils | public static byte[] toJPEG(BufferedImage source, float quality) throws Exception {
ImageWriter iw = ImageIO.getImageWritersByFormatName("JPEG").next();
ImageWriteParam iwp = iw.getDefaultWriteParam();
iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
iwp.setCompressionQuality(quality);
ByteArrayOutputStream jpg = new ByteArrayOutputStream();
IIOImage image = new IIOImage(source, null, null);
iw.setOutput(new MemoryCacheImageOutputStream(jpg));
iw.write(null, image, iwp);
iw.dispose();
byte[] bytes = jpg.toByteArray();
System.out.println("[toJPEG: " + bytes.length + " bytes]");
return bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat();",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"Imagem getImagem();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"Image createImage();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image getBassClef();",
"public Image getSix();",
"public native MagickImage flopImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public Image getFlat();",
"public native int getImageType() throws MagickException;",
"public abstract String getImageSuffix();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"public native MagickImage magnifyImage() throws MagickException;",
"protected abstract Image loadImage();",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"public native MagickImage minifyImage() throws MagickException;",
"public Image getTwo();",
"WorldImage getImage();",
"public ImageDescriptor getImageDescriptor();",
"public native MagickImage enhanceImage() throws MagickException;",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Image getOne();",
"public Image getFour();",
"IMG createIMG();",
"public Image getTrebleClef();",
"@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}",
"public Image getFive();",
"Picture identifyComponentImage() throws Exception;",
"public native MagickImage despeckleImage() throws MagickException;",
"public void displayImageToConsole();",
"private Images() {}",
"private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"String removeImageStyle();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public Image getCrotchetRest();",
"private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}",
"public abstract BufferedImage transform();",
"private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }",
"java.lang.String getImagePath();",
"String getItemImage();",
"public native String getMagick() throws MagickException;",
"@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}",
"BufferedImage outputImage();",
"String avatarImage();",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"File resolveImage(Box box);",
"public Image getSeven();",
"abstract public String getImageKey();",
"List<List<Pixel>> transform(Image img, String operation);",
"public Image call() throws IOException;",
"boolean hasImageByTransform();",
"protected native MagickImage nextImage() throws MagickException;",
"public String getStaticPicture();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"abstract public String imageUrl ();",
"String getImagePath();",
"String getImagePath();",
"private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }",
"public Image getEight();",
"public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}",
"protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }",
"private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }",
"public Image getNine();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"public native String getImageAttribute(String key) throws MagickException;",
"public abstract Image gen();",
"private ImageLoader() {}",
"private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }",
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"ImageFormat getFormat();",
"private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public String getImage() { return image; }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"Picture binaryComponentImage() throws Exception;",
"PImage getImage() {\n return _img;\n }",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885",
"0.6246646",
"0.62122357",
"0.6210493",
"0.6197136",
"0.6154701",
"0.6116899",
"0.6116748",
"0.60672265",
"0.60509896",
"0.6028284",
"0.6020005",
"0.6008756",
"0.60058045",
"0.59889877",
"0.5979422",
"0.59746873",
"0.5961808",
"0.595447",
"0.5944251",
"0.59372085",
"0.59362423",
"0.5928741",
"0.5920765",
"0.59157085",
"0.59036696",
"0.5894721",
"0.5891369",
"0.58636284",
"0.58467007",
"0.5845992",
"0.5833933",
"0.5823295",
"0.5811941",
"0.5809326",
"0.5808914",
"0.5804049",
"0.57906055",
"0.57896274",
"0.57838154",
"0.5783143",
"0.57820314",
"0.57813776",
"0.57731843",
"0.5771614",
"0.57714814",
"0.5768215",
"0.5767399",
"0.57635105",
"0.576077",
"0.57592",
"0.57592",
"0.5750284",
"0.5747802",
"0.57373196",
"0.5735946",
"0.5734004",
"0.5728529",
"0.5718287",
"0.5702232",
"0.570221",
"0.5692495",
"0.5685591",
"0.56695217",
"0.56687367",
"0.56573176",
"0.56560045",
"0.5655253",
"0.5653861",
"0.5653424",
"0.5650339",
"0.5649761",
"0.5647169",
"0.5644807",
"0.56401944",
"0.56349266",
"0.56246674",
"0.56242543",
"0.56238925",
"0.5618043",
"0.5614834"
] | 0.0 | -1 |
TODO: move to ImageUtils | public static BufferedImage brighten(BufferedImage image) {
short brighten[] = new short[256];
for (int i = 0; i < 256; i++) {
short pixelValue = (short) (Math.sqrt((double) i * 255.0));
if (pixelValue > 255) {
pixelValue = 255;
} else if (pixelValue < 0) {
pixelValue = 0;
}
brighten[i] = pixelValue;
}
LookupTable lookupTable = new ShortLookupTable(0, brighten);
LookupOp lop = new LookupOp(lookupTable, null);
return lop.filter(image, image);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat();",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"Imagem getImagem();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"Image createImage();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image getBassClef();",
"public Image getSix();",
"public native MagickImage flopImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public Image getFlat();",
"public native int getImageType() throws MagickException;",
"public abstract String getImageSuffix();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"public native MagickImage magnifyImage() throws MagickException;",
"protected abstract Image loadImage();",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"public native MagickImage minifyImage() throws MagickException;",
"public Image getTwo();",
"WorldImage getImage();",
"public ImageDescriptor getImageDescriptor();",
"public native MagickImage enhanceImage() throws MagickException;",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Image getOne();",
"public Image getFour();",
"IMG createIMG();",
"public Image getTrebleClef();",
"@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}",
"public Image getFive();",
"Picture identifyComponentImage() throws Exception;",
"public native MagickImage despeckleImage() throws MagickException;",
"public void displayImageToConsole();",
"private Images() {}",
"private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"String removeImageStyle();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public Image getCrotchetRest();",
"private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}",
"public abstract BufferedImage transform();",
"private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }",
"java.lang.String getImagePath();",
"String getItemImage();",
"public native String getMagick() throws MagickException;",
"@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}",
"BufferedImage outputImage();",
"String avatarImage();",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"File resolveImage(Box box);",
"public Image getSeven();",
"abstract public String getImageKey();",
"List<List<Pixel>> transform(Image img, String operation);",
"public Image call() throws IOException;",
"boolean hasImageByTransform();",
"protected native MagickImage nextImage() throws MagickException;",
"public String getStaticPicture();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"abstract public String imageUrl ();",
"String getImagePath();",
"String getImagePath();",
"private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }",
"public Image getEight();",
"public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}",
"protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }",
"private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }",
"public Image getNine();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"public native String getImageAttribute(String key) throws MagickException;",
"public abstract Image gen();",
"private ImageLoader() {}",
"private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }",
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"ImageFormat getFormat();",
"private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public String getImage() { return image; }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"Picture binaryComponentImage() throws Exception;",
"PImage getImage() {\n return _img;\n }",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885",
"0.6246646",
"0.62122357",
"0.6210493",
"0.6197136",
"0.6154701",
"0.6116899",
"0.6116748",
"0.60672265",
"0.60509896",
"0.6028284",
"0.6020005",
"0.6008756",
"0.60058045",
"0.59889877",
"0.5979422",
"0.59746873",
"0.5961808",
"0.595447",
"0.5944251",
"0.59372085",
"0.59362423",
"0.5928741",
"0.5920765",
"0.59157085",
"0.59036696",
"0.5894721",
"0.5891369",
"0.58636284",
"0.58467007",
"0.5845992",
"0.5833933",
"0.5823295",
"0.5811941",
"0.5809326",
"0.5808914",
"0.5804049",
"0.57906055",
"0.57896274",
"0.57838154",
"0.5783143",
"0.57820314",
"0.57813776",
"0.57731843",
"0.5771614",
"0.57714814",
"0.5768215",
"0.5767399",
"0.57635105",
"0.576077",
"0.57592",
"0.57592",
"0.5750284",
"0.5747802",
"0.57373196",
"0.5735946",
"0.5734004",
"0.5728529",
"0.5718287",
"0.5702232",
"0.570221",
"0.5692495",
"0.5685591",
"0.56695217",
"0.56687367",
"0.56573176",
"0.56560045",
"0.5655253",
"0.5653861",
"0.5653424",
"0.5650339",
"0.5649761",
"0.5647169",
"0.5644807",
"0.56401944",
"0.56349266",
"0.56246674",
"0.56242543",
"0.56238925",
"0.5618043",
"0.5614834"
] | 0.0 | -1 |
TODO: move to ImageUtils | public static ImageIcon scaleAsIcon(Image img, int height) {
if (img == null) {
return null;
}
return new ImageIcon(img.getScaledInstance(
-1, height, Image.SCALE_AREA_AVERAGING));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat();",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"Imagem getImagem();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"Image createImage();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image getBassClef();",
"public Image getSix();",
"public native MagickImage flopImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public Image getFlat();",
"public native int getImageType() throws MagickException;",
"public abstract String getImageSuffix();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"public native MagickImage magnifyImage() throws MagickException;",
"protected abstract Image loadImage();",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"public native MagickImage minifyImage() throws MagickException;",
"public Image getTwo();",
"WorldImage getImage();",
"public ImageDescriptor getImageDescriptor();",
"public native MagickImage enhanceImage() throws MagickException;",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Image getOne();",
"public Image getFour();",
"IMG createIMG();",
"public Image getTrebleClef();",
"@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}",
"public Image getFive();",
"Picture identifyComponentImage() throws Exception;",
"public native MagickImage despeckleImage() throws MagickException;",
"public void displayImageToConsole();",
"private Images() {}",
"private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"String removeImageStyle();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public Image getCrotchetRest();",
"private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}",
"public abstract BufferedImage transform();",
"private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }",
"java.lang.String getImagePath();",
"String getItemImage();",
"public native String getMagick() throws MagickException;",
"@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}",
"BufferedImage outputImage();",
"String avatarImage();",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"File resolveImage(Box box);",
"public Image getSeven();",
"abstract public String getImageKey();",
"List<List<Pixel>> transform(Image img, String operation);",
"public Image call() throws IOException;",
"boolean hasImageByTransform();",
"protected native MagickImage nextImage() throws MagickException;",
"public String getStaticPicture();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"abstract public String imageUrl ();",
"String getImagePath();",
"String getImagePath();",
"private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }",
"public Image getEight();",
"public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}",
"protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }",
"private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }",
"public Image getNine();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"public native String getImageAttribute(String key) throws MagickException;",
"public abstract Image gen();",
"private ImageLoader() {}",
"private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }",
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"ImageFormat getFormat();",
"private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public String getImage() { return image; }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"Picture binaryComponentImage() throws Exception;",
"PImage getImage() {\n return _img;\n }",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.7463209",
"0.7221478",
"0.7065686",
"0.67959416",
"0.663788",
"0.66262925",
"0.66262925",
"0.66262925",
"0.6584873",
"0.6550359",
"0.65476155",
"0.6487101",
"0.64169884",
"0.6356059",
"0.63219476",
"0.63219476",
"0.631869",
"0.6299891",
"0.6298765",
"0.629197",
"0.6248885",
"0.6246646",
"0.62122357",
"0.6210493",
"0.6197136",
"0.6154701",
"0.6116899",
"0.6116748",
"0.60672265",
"0.60509896",
"0.6028284",
"0.6020005",
"0.6008756",
"0.60058045",
"0.59889877",
"0.5979422",
"0.59746873",
"0.5961808",
"0.595447",
"0.5944251",
"0.59372085",
"0.59362423",
"0.5928741",
"0.5920765",
"0.59157085",
"0.59036696",
"0.5894721",
"0.5891369",
"0.58636284",
"0.58467007",
"0.5845992",
"0.5833933",
"0.5823295",
"0.5811941",
"0.5809326",
"0.5808914",
"0.5804049",
"0.57906055",
"0.57896274",
"0.57838154",
"0.5783143",
"0.57820314",
"0.57813776",
"0.57731843",
"0.5771614",
"0.57714814",
"0.5768215",
"0.5767399",
"0.57635105",
"0.576077",
"0.57592",
"0.57592",
"0.5750284",
"0.5747802",
"0.57373196",
"0.5735946",
"0.5734004",
"0.5728529",
"0.5718287",
"0.5702232",
"0.570221",
"0.5692495",
"0.5685591",
"0.56695217",
"0.56687367",
"0.56573176",
"0.56560045",
"0.5655253",
"0.5653861",
"0.5653424",
"0.5650339",
"0.5649761",
"0.5647169",
"0.5644807",
"0.56401944",
"0.56349266",
"0.56246674",
"0.56242543",
"0.56238925",
"0.5618043",
"0.5614834"
] | 0.0 | -1 |
TODO: move to ImageUtils | public static void createImageDirs(File base) {
String dirs[] = new String[]{
"0", "1", "2", "3", "4", "5", "6", "7",
"8", "9", "a", "b", "c", "d", "e", "f"};
for (String dir : dirs) {
File subdir = new File(base, dir);
if (!subdir.exists()) {
subdir.mkdir();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageUtils() {}",
"java.lang.String getImage();",
"String getImage();",
"public Image getSharp();",
"private void enhanceImage(){\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public int getImage();",
"public abstract String getImageFormat();",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"Imagem getImagem();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();",
"Image createImage();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image getBassClef();",
"public Image getSix();",
"public native MagickImage flopImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"public Image getFlat();",
"public native int getImageType() throws MagickException;",
"public abstract String getImageSuffix();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"protected abstract Image loadImage();",
"public native MagickImage magnifyImage() throws MagickException;",
"@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}",
"public native MagickImage minifyImage() throws MagickException;",
"public Image getTwo();",
"WorldImage getImage();",
"public ImageDescriptor getImageDescriptor();",
"public native MagickImage enhanceImage() throws MagickException;",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Image getOne();",
"public Image getFour();",
"IMG createIMG();",
"public Image getTrebleClef();",
"@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}",
"public Image getFive();",
"Picture identifyComponentImage() throws Exception;",
"public native MagickImage despeckleImage() throws MagickException;",
"public void displayImageToConsole();",
"private Images() {}",
"private List<? extends Image> getIconImages(String imgunnamedjpg) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"String removeImageStyle();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();",
"com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();",
"public Image getCrotchetRest();",
"private static String getImage(String str) {\n\t\tStringBuffer bff=new StringBuffer(str);\r\n\t\treturn bff.reverse().toString();\r\n\t}",
"public abstract BufferedImage transform();",
"private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }",
"java.lang.String getImagePath();",
"String getItemImage();",
"public native String getMagick() throws MagickException;",
"@Override\n\tpublic String getImagePath32X32() {\n\t\treturn null;\n\t}",
"BufferedImage outputImage();",
"String avatarImage();",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"File resolveImage(Box box);",
"public Image getSeven();",
"abstract public String getImageKey();",
"List<List<Pixel>> transform(Image img, String operation);",
"public Image call() throws IOException;",
"boolean hasImageByTransform();",
"protected native MagickImage nextImage() throws MagickException;",
"public String getStaticPicture();",
"@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}",
"abstract public String imageUrl ();",
"String getImagePath();",
"String getImagePath();",
"private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }",
"public Image getEight();",
"public String convertImage(ImageView itemImage){\n Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);\n byte[] byteArray = stream.toByteArray();\n String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT);\n return imageFile;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }",
"private void extractImage(String inputImageName) throws FileNotFoundException, IOException, InvalidFormatException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tHWPFDocument doc = new HWPFDocument(new FileInputStream(inputImageName));\n//\t\tXSSFWorkbook doc = new XSSFWorkbook(new File(inputImageName));\n\t\tList<Picture> pics = doc.getPicturesTable().getAllPictures();\n//\t\tList<XSSFPictureData> pics = doc.getAllPictures();\n\t\tfor (int i = 0; i < pics.size(); i++) {\n\t\t\tPicture pic = (Picture) pics.get(i);\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(inputImageName + \"Apache_\");\n\t\t\toutputStream.write(pic.getContent());\n\t\t\toutputStream.close();\n\t\t}\n\t\tSystem.out.println(\"Image extracted successfully\");\n\t}",
"protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }",
"private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}",
"int img(String path) {\n //TODO: is this correct?\n return this.renderEngine.b(path);\n }",
"private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }",
"public Image getNine();",
"private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }",
"public native String getImageAttribute(String key) throws MagickException;",
"public abstract Image gen();",
"private ImageLoader() {}",
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"private javaxt.io.Image _transform_simple(javaxt.io.Image src_img, \n double[] src_bbox, int[] dst_size, double[] dst_bbox){\n\n double[] src_quad = new double[]{0, 0, src_img.getWidth(), src_img.getHeight()};\n SRS.transf to_src_px =SRS.make_lin_transf(src_bbox, src_quad);\n\n //minx, miny = to_src_px((dst_bbox[0], dst_bbox[3]));\n double[] min = to_src_px.transf(dst_bbox[0], dst_bbox[3]);\n double minx = min[0];\n double miny = min[1];\n\n //maxx, maxy = to_src_px((dst_bbox[2], dst_bbox[1]));\n double[] max = to_src_px.transf(dst_bbox[2], dst_bbox[1]);\n double maxx = max[0];\n double maxy = max[1];\n\n double src_res = (src_bbox[0]-src_bbox[2])/src_img.getWidth();\n double dst_res = (dst_bbox[0]-dst_bbox[2])/dst_size[0];\n\n double tenth_px_res = Math.abs(dst_res/(dst_size[0]*10));\n javaxt.io.Image img = new javaxt.io.Image(src_img.getBufferedImage());\n if (Math.abs(src_res-dst_res) < tenth_px_res){\n img.crop(cint(minx), cint(miny), dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(minx)+dst_size[0], cint(miny)+dst_size[1]);\n return img; //src_img;\n }\n else{\n img.crop(cint(minx), cint(miny), cint(maxx)-cint(minx), cint(maxy)-cint(miny));\n img.resize(dst_size[0], dst_size[1]);\n //src_img.crop(cint(minx), cint(miny), cint(maxx), cint(maxy));\n //src_img.resize(dst_size[0], dst_size[1]);\n return img; //src_img;\n }\n //ImageSource(result, size=dst_size, transparent=src_img.transparent)\n }",
"ImageFormat getFormat();",
"private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public static byte[] createThumbnail(byte[] originalImage, int width, int height) throws Exception{\n Image image = Toolkit.getDefaultToolkit().createImage(originalImage);\r\n MediaTracker mediaTracker = new MediaTracker(new Container());\r\n mediaTracker.addImage(image, 0);\r\n mediaTracker.waitForID(0);\r\n // determine thumbnail size from WIDTH and HEIGHT\r\n //ancho y largo esto se puede sacar de algun fichero de configuracion\r\n int thumbWidth =width;\r\n int thumbHeight = height;\r\n double thumbRatio = (double)thumbWidth / (double)thumbHeight;\r\n int imageWidth = image.getWidth(null);\r\n int imageHeight = image.getHeight(null);\r\n double imageRatio = (double)imageWidth / (double)imageHeight;\r\n if (thumbRatio < imageRatio) {\r\n thumbHeight = (int)(thumbWidth / imageRatio);\r\n } else {\r\n thumbWidth = (int)(thumbHeight * imageRatio);\r\n }\r\n // draw original image to thumbnail image object and\r\n // scale it to the new size on-the-fly\r\n BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight, BufferedImage.TYPE_INT_RGB);\r\n Graphics2D graphics2D = thumbImage.createGraphics();\r\n graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);\r\n\r\n ByteArrayOutputStream baos= new ByteArrayOutputStream();\r\n ImageIO.write(thumbImage, \"jpeg\" /* \"png\" \"jpeg\" format desired, no \"gif\" yet. */, baos );\r\n baos.flush();\r\n byte[] thumbImageAsRawBytes= baos.toByteArray();\r\n baos.close();\r\n return thumbImageAsRawBytes;\r\n\r\n}",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public String getImage() { return image; }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"PImage getImage() {\n return _img;\n }",
"Picture binaryComponentImage() throws Exception;",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.74654204",
"0.7222431",
"0.706617",
"0.6795442",
"0.6638919",
"0.66301066",
"0.66301066",
"0.66301066",
"0.65855193",
"0.6549164",
"0.6548956",
"0.64878243",
"0.6415942",
"0.6358099",
"0.63228387",
"0.63228387",
"0.63186383",
"0.6300099",
"0.62990004",
"0.62937754",
"0.62504023",
"0.6246574",
"0.6212209",
"0.6210781",
"0.61965525",
"0.6157027",
"0.6118458",
"0.61168796",
"0.60670614",
"0.60511595",
"0.60286003",
"0.6020999",
"0.6009705",
"0.60062075",
"0.59899426",
"0.59800816",
"0.5974916",
"0.59636617",
"0.5953071",
"0.59451884",
"0.593766",
"0.59359604",
"0.59284973",
"0.5921476",
"0.59171826",
"0.5906824",
"0.5894392",
"0.58905894",
"0.58639336",
"0.58465403",
"0.5845953",
"0.5834441",
"0.58256644",
"0.58116084",
"0.58096796",
"0.58065474",
"0.58045304",
"0.5792465",
"0.57891667",
"0.5784491",
"0.5782019",
"0.5781892",
"0.57799315",
"0.5773169",
"0.5771489",
"0.57704246",
"0.576813",
"0.5768057",
"0.5764458",
"0.57618773",
"0.5758575",
"0.5758575",
"0.5751443",
"0.57473207",
"0.57370234",
"0.5736566",
"0.5733153",
"0.57287085",
"0.5718152",
"0.57054687",
"0.5701965",
"0.5694453",
"0.5684513",
"0.56710064",
"0.5667989",
"0.56587094",
"0.5657995",
"0.5655875",
"0.56549114",
"0.5654476",
"0.5650763",
"0.5650007",
"0.56492376",
"0.5646116",
"0.56396574",
"0.56352115",
"0.5625327",
"0.5624991",
"0.56233877",
"0.56166965",
"0.5615025"
] | 0.0 | -1 |
TODO: move to FileUtils | public static byte[] bytesFromFile(File file) throws Exception {
if (!file.exists()) {
return null;
}
FileImageInputStream in = null;
try {
byte bytes[] = new byte[(int) file.length()];
in = new FileImageInputStream(file);
in.read(bytes);
return bytes;
} finally {
if (in != null) {
in.close();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileUtil() {}",
"String prepareFile();",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }",
"String getFile();",
"String getFile();",
"String getFile();",
"@Test\r\n public void testToId() {\r\n System.out.println(\"toId\");\r\n String path = \"c:/Dojo Workshop\\\\test.txt\";\r\n String expResult = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String result = FileRestHelper.toId(path);\r\n assertEquals(expResult, result);\r\n }",
"private FileUtils() {\n }",
"private FileUtils() {\n }",
"@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }",
"String getFileOutput();",
"private static String m14291b(File file, String str) {\n if (file == null || TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(file.getAbsolutePath());\n sb.append(File.separator);\n sb.append(str);\n return sb.toString();\n }",
"private FileUtils()\n {\n // Nothing to do.\n }",
"File getFile();",
"File getFile();",
"public abstract String toStringForFileName();",
"private FSUtils() {\n }",
"FileObject getFile();",
"FileObject getFile();",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\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}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test32() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", \"v<B(aXlp#d/?cL2Q??\", \"i@\", \"g_\");\n assertNull(file0);\n }",
"public abstract String getFileLocation();",
"public File getFileValue();",
"public abstract File mo41087j();",
"FileContent createFileContent();",
"@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }",
"private static void copyFile(String from, String to)\n\t{\n\t\tFile inputFile;\n\t File outputFile;\n\t\tint fIndex = from.indexOf(\"file:\");\n\t\tint tIndex = to.indexOf(\"file:\");\n\t\tif(fIndex < 0)\n\t\t\tinputFile = new File(from);\n\t\telse\n\t\t\tinputFile = new File(from.substring(fIndex + 5, from.length()));\n\t\tif(tIndex < 0)\n\t\t\toutputFile = new File(to);\n\t\telse\n\t\t\toutputFile = new File(to.substring(tIndex + 5, to.length())); \n\t\tcopyFile(inputFile, outputFile);\t\t\n\t}",
"abstract protected String getResultFileName();",
"public abstract String getFileName();",
"public String getFormattedFileContents ();",
"private static java.lang.String readStringFromFile(java.io.File r9) {\n /*\n r5 = 0\n r3 = 0\n java.io.FileReader r4 = new java.io.FileReader // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r4.<init>(r9) // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r7 = 128(0x80, float:1.794E-43)\n char[] r0 = new char[r7] // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n r6.<init>() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n L_0x0010:\n int r1 = r4.read(r0) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r1 <= 0) goto L_0x002a\n r7 = 0\n r6.append(r0, r7, r1) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n goto L_0x0010\n L_0x001b:\n r2 = move-exception\n r3 = r4\n L_0x001d:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"cannot find file to read\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x004f }\n L_0x0029:\n return r5\n L_0x002a:\n java.lang.String r5 = r6.toString() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r4 == 0) goto L_0x005b\n r4.close() // Catch:{ IOException -> 0x0035 }\n r3 = r4\n goto L_0x0029\n L_0x0035:\n r7 = move-exception\n r3 = r4\n goto L_0x0029\n L_0x0038:\n r2 = move-exception\n L_0x0039:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"error occurs while reading file\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x0046 }\n goto L_0x0029\n L_0x0046:\n r7 = move-exception\n goto L_0x0029\n L_0x0048:\n r7 = move-exception\n L_0x0049:\n if (r3 == 0) goto L_0x004e\n r3.close() // Catch:{ IOException -> 0x0051 }\n L_0x004e:\n throw r7\n L_0x004f:\n r7 = move-exception\n goto L_0x0029\n L_0x0051:\n r8 = move-exception\n goto L_0x004e\n L_0x0053:\n r7 = move-exception\n r3 = r4\n goto L_0x0049\n L_0x0056:\n r2 = move-exception\n r3 = r4\n goto L_0x0039\n L_0x0059:\n r2 = move-exception\n goto L_0x001d\n L_0x005b:\n r3 = r4\n goto L_0x0029\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.component.plugin.PluginNativeHelper.readStringFromFile(java.io.File):java.lang.String\");\n }",
"@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}",
"public String getFileName ();",
"public interface FileUtils {\n /**\n * {@link org.apache.commons.io.FileUtils#copyDirectoryToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyDirectoryToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#copyFileToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyFileToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createDirectories(java.nio.file.Path,\n * java.nio.file.attribute.FileAttribute[])}\n *\n * @param path Path to create\n */\n void createDirectories(Path path) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createTempDirectory(\n * String, java.nio.file.attribute.FileAttribute[])}\n *\n * @param dirPrefix prefix of temporary directory\n * @return Path to created directory\n */\n Path createTempDirectory(String dirPrefix) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#deleteQuietly(java.io.File)}\n *\n * @param file File to delete\n * @return true iff directory was deleted\n */\n boolean deleteQuietly(File file);\n\n /**\n * {@link java.nio.file.Files#exists(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff exists\n */\n boolean exists(Path path);\n\n /**\n * {@link java.nio.file.Files#isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff path is a directory\n */\n boolean isDirectory(Path path);\n\n /**\n * {@link java.lang.ProcessBuilder}\n *\n * @param command command to run\n * @param pwdFile working directory of the process\n * @return process running the command\n */\n Process runCommand(List<String> command, File pwdFile) throws IOException;\n\n /**\n * {@link java.nio.file.Files#write(java.nio.file.Path, Iterable, java.nio.charset.Charset,\n * java.nio.file.OpenOption...)}\n *\n * @param path Path of file to write to.\n * @param content String to be written to file.\n */\n void write(Path path, String content) throws IOException;\n}",
"private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }",
"public void readFile();",
"public File getDataFile();",
"@Test public void getNameWithoutExt() {\n\t\tassertEquals(\"My File\",\n\t\t\tJseFileUtils.getNameWithoutExt(new File(\"some/path/with - space/My File.txt\")));\n\t}",
"private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }",
"public abstract File mo41088k();",
"public abstract String FileOutput();",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_RYNHV)!DEYJP^3IL$.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getSimilarItems(\"RYnHv)!DEyJP^3il$\", \"\");\n assertEquals(\"/S_RYNHV)!DEYJP^3IL$.XML\", file0.toString());\n assertFalse(file0.isFile());\n assertNotNull(file0);\n }",
"@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+fSeparator+\"Texnologia2\"+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n File expResult = new File(path+fSeparator+\"testImg.jpg\");\n File result;\n try{\n result = instance.getFile(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }",
"public static java.lang.String getFileName(java.lang.String r10) {\n /*\n java.lang.String r1 = \"\"\n java.io.File r3 = new java.io.File\n r3.<init>(r10)\n r5 = 0\n java.io.FileInputStream r6 = new java.io.FileInputStream // Catch:{ Exception -> 0x003c, all -> 0x0049 }\n r6.<init>(r3) // Catch:{ Exception -> 0x003c, all -> 0x0049 }\n if (r6 == 0) goto L_0x0022\n java.io.InputStreamReader r4 = new java.io.InputStreamReader // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r4.<init>(r6) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.io.BufferedReader r0 = new java.io.BufferedReader // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r0.<init>(r4) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n L_0x0019:\n java.lang.String r7 = r0.readLine() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n if (r7 != 0) goto L_0x002a\n r6.close() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n L_0x0022:\n if (r6 == 0) goto L_0x0027\n r6.close() // Catch:{ IOException -> 0x0055 }\n L_0x0027:\n r5 = r6\n r8 = r1\n L_0x0029:\n return r8\n L_0x002a:\n java.lang.StringBuilder r8 = new java.lang.StringBuilder // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.String r9 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r8.<init>(r9) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.StringBuilder r8 = r8.append(r7) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.String r1 = r8.toString() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n goto L_0x0019\n L_0x003c:\n r2 = move-exception\n L_0x003d:\n if (r5 == 0) goto L_0x0042\n r5.close() // Catch:{ IOException -> 0x0044 }\n L_0x0042:\n r8 = 0\n goto L_0x0029\n L_0x0044:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x0042\n L_0x0049:\n r8 = move-exception\n L_0x004a:\n if (r5 == 0) goto L_0x004f\n r5.close() // Catch:{ IOException -> 0x0050 }\n L_0x004f:\n throw r8\n L_0x0050:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x004f\n L_0x0055:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x0027\n L_0x005a:\n r8 = move-exception\n r5 = r6\n goto L_0x004a\n L_0x005d:\n r2 = move-exception\n r5 = r6\n goto L_0x003d\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.touchus.publicutils.utils.PersonParse.getFileName(java.lang.String):java.lang.String\");\n }",
"@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }",
"static String test1(File in) throws Exception {\n\t\tXmlStringTester dt = new XmlStringTester(in);\n\t\treturn dt.getString(dt.doc);\n\t}",
"private static void copyFile(File scrFile, File file) {\n\t\r\n}",
"private static void task45() {\n String path1, path2;\n path1 = \"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test.txt\";\n path2 = \"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt\";\n File file = new File(\"test.txt\");\n\n File file2 = new File(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt\");\n long size1 = file.length();\n long size2 = file2.length();\n\n System.out.println(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test.txt \" + size1 + \" bites\");\n System.out.println(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt \" + size2 + \" bites\");\n }",
"private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }",
"List readFile(String pathToFile);",
"String getFilename();",
"@Test\n public final void whenConvertingToFile_thenCorrect() throws IOException {\n final Path path = Paths.get(\"src/test/resources/sample.txt\");\n final byte[] buffer = java.nio.file.Files.readAllBytes(path);\n\n final File targetFile = new File(\"src/test/resources/targetFile.tmp\");\n final OutputStream outStream = new FileOutputStream(targetFile);\n outStream.write(buffer);\n\n IOUtils.closeQuietly(outStream);\n }",
"private static String readAllBytesJava7(String filePath) {\n String content = \"\";\n\n try {\n content = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content;\n }",
"@Test\r\n\tpublic void getFileName() {\n\t\tString test = \"form-data; name=\\\"uploadFile\\\"; filename=\\\"james.png\\\"\";\r\n\r\n\t\t/***When***/\r\n\t\tString result = futil.getFileName(test);\r\n\t\t/***Then***/\r\n\t\t//assertEquals(\"sally.png\", result);\r\n\t\tassertEquals(\"james.png\", result);\r\n\r\n\t}",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFilePath();",
"private ShifuFileUtils() {\n }",
"private File m20345e(String str) {\n return new File(m20344d(str));\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public File getFile ();",
"private FileUtility() {\r\n\t}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }",
"@Test\n void fileWriter() {\n\n\n ArrayList<String> fileLines = Name_Sorter.fileRead(this.readFile, \"src/main/java/oop/assignment3/ex41/base/testFile-ex41\");\n Collections.sort(fileLines);\n this.writeFile = Name_Sorter.fileWriter(this.writeFile, fileLines, \"src/main/java/oop/assignment3/ex41/base/ex41-testOutputFile.txt\");\n boolean actualOutput = this.writeFile != null;\n Assertions.assertTrue(actualOutput);\n }",
"private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }",
"public String toStringFile(){\n return null;\n }",
"@Test\n public void filePathTest() {\n // TODO: test filePath\n }",
"public File getFile();",
"public File getFile();",
"abstract protected String getWrapperFileNameBase();",
"public String getText()\n{\n //String base = _type==FileType.PACKAGE_DIR? _proj.getPackageName(_file) :\n // _file.isRoot()? _file.getSite().getName() : _file.getName();\n //String prefix = _vc.isModified(_file)? \">\" : \"\";\n //String suffix = _file.isUpdateSet()? \" *\" : \"\";\n //return prefix + base + suffix;\n String text = _file.getName();\n return text.length()>0? text : \"Sample Files\";\n}",
"File openFile();",
"@Test\n public void testGetFileType() {\n System.out.println(\"getFileType\");\n String file = \"adriano.pdb\";\n String expResult = \"pdb\";\n String result = Util.getFileType(file);\n assertEquals(expResult, result);\n }",
"protected abstract void readFile();",
"public String getFileName();",
"public String getFileName();",
"@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }",
"java.lang.String getFilePath();",
"protected static String getFilename(String base) {\n //return Integer.toHexString(base.hashCode()) + \".map\";\n return base + \".map\";\n }",
"FileNameReference createFileNameReference();",
"byte[] getFile(String sha) throws Exception;",
"public void testGetExecutable_2()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getExecutable();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}",
"private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}",
"public interface XmlUtils {\n /**\n * Если файл не существует, то создать его.\n * Если файл существует, то перезаписать его\n */\n void writeToXml(List<FileItem> items);\n\n /**\n * Если файла не существует, то вернуть пустой список\n * @return\n */\n List<FileItem> readFromXml();\n}",
"public FileUtility()\n {\n }",
"private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }",
"public void testGetPreFileName() throws Exception {\n System.out.println(\"getPreFileName\");\n \n String expResult = \"\";\n String result = instance.getPreFileName();\n assertEquals(expResult, result);\n \n }",
"java.lang.String getFileLoc();",
"@Test\n public void testGetFilesList() {\n System.out.println(\"getFilesList from existing folder with existing subfiles\");\n String entryPath = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n String[] expResult = new String[2];\n expResult[0] = \"testImg.jpg\";\n expResult[1] = \"testImg2.jpg\";\n String[] result;\n try{\n result = instance.getFilesList(entryPath);\n }catch(EntryException ex){\n result = null;\n }\n assertArrayEquals(expResult, result);\n }",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }",
"@Test\r\n public void testStripCommonTags() {\r\n String fileName = \"Modern.Family.S05E17.720p.DD5.1.AAC2.0.H.264.mkv\";\r\n String expResult = \"Modern.Family.S05E17.....mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"the.walking.dead.s03e01.1080p.bluray.x264.mkv\";\r\n expResult = \"the.walking.dead.s03e01..bluray..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"house.of.cards.(2013).s01e01.bluray.dts.x264.mkv\";\r\n expResult = \"house.of.cards.(2013).s01e01.bluray.dts..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n }"
] | [
"0.6474779",
"0.61508805",
"0.58338726",
"0.5811731",
"0.57686603",
"0.57686603",
"0.57686603",
"0.57407624",
"0.5656109",
"0.5656109",
"0.5647615",
"0.55918086",
"0.55127054",
"0.55038774",
"0.5488318",
"0.5488318",
"0.5486503",
"0.5482433",
"0.5431334",
"0.5431334",
"0.5399771",
"0.5396132",
"0.5391285",
"0.5389647",
"0.53719854",
"0.5369939",
"0.53555584",
"0.5339281",
"0.53277785",
"0.53275245",
"0.53245085",
"0.5319405",
"0.5316246",
"0.530153",
"0.5300679",
"0.52996457",
"0.52811754",
"0.5251878",
"0.52438474",
"0.5228065",
"0.5201558",
"0.52006894",
"0.5184777",
"0.51833963",
"0.5182694",
"0.51809597",
"0.5174673",
"0.51744086",
"0.51711744",
"0.51703036",
"0.5155678",
"0.51507527",
"0.5149816",
"0.51469475",
"0.51460224",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5141759",
"0.5141608",
"0.51414675",
"0.51407707",
"0.513918",
"0.5139035",
"0.5136355",
"0.5125237",
"0.51239973",
"0.51209295",
"0.5117469",
"0.5108392",
"0.51006657",
"0.50876147",
"0.5085526",
"0.5082567",
"0.5082567",
"0.5076416",
"0.50741464",
"0.5074146",
"0.507412",
"0.5071129",
"0.50704914",
"0.50704914",
"0.5057078",
"0.50482434",
"0.5047619",
"0.5042474",
"0.503429",
"0.50337833",
"0.5026802",
"0.5020758",
"0.50176835",
"0.50158185",
"0.5014896",
"0.5013787",
"0.50134283",
"0.5009552",
"0.5009552",
"0.50072163",
"0.50069386"
] | 0.0 | -1 |
TODO: move to FileUtils | public static void bytesToFile(byte[] bytes, File file) throws Exception {
FileOutputStream out = null;
if (bytes != null) {
try {
out = new FileOutputStream(file);
out.write(bytes);
} finally {
if (out != null) {
out.close();
}
}
} else {
file.delete();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FileUtil() {}",
"String prepareFile();",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }",
"String getFile();",
"String getFile();",
"String getFile();",
"@Test\r\n public void testToId() {\r\n System.out.println(\"toId\");\r\n String path = \"c:/Dojo Workshop\\\\test.txt\";\r\n String expResult = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String result = FileRestHelper.toId(path);\r\n assertEquals(expResult, result);\r\n }",
"private FileUtils() {\n }",
"private FileUtils() {\n }",
"@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }",
"String getFileOutput();",
"private static String m14291b(File file, String str) {\n if (file == null || TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(file.getAbsolutePath());\n sb.append(File.separator);\n sb.append(str);\n return sb.toString();\n }",
"private FileUtils()\n {\n // Nothing to do.\n }",
"File getFile();",
"File getFile();",
"public abstract String toStringForFileName();",
"private FSUtils() {\n }",
"FileObject getFile();",
"FileObject getFile();",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\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}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test32() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", \"v<B(aXlp#d/?cL2Q??\", \"i@\", \"g_\");\n assertNull(file0);\n }",
"public abstract String getFileLocation();",
"public File getFileValue();",
"public abstract File mo41087j();",
"FileContent createFileContent();",
"@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }",
"private static void copyFile(String from, String to)\n\t{\n\t\tFile inputFile;\n\t File outputFile;\n\t\tint fIndex = from.indexOf(\"file:\");\n\t\tint tIndex = to.indexOf(\"file:\");\n\t\tif(fIndex < 0)\n\t\t\tinputFile = new File(from);\n\t\telse\n\t\t\tinputFile = new File(from.substring(fIndex + 5, from.length()));\n\t\tif(tIndex < 0)\n\t\t\toutputFile = new File(to);\n\t\telse\n\t\t\toutputFile = new File(to.substring(tIndex + 5, to.length())); \n\t\tcopyFile(inputFile, outputFile);\t\t\n\t}",
"abstract protected String getResultFileName();",
"public abstract String getFileName();",
"public String getFormattedFileContents ();",
"private static java.lang.String readStringFromFile(java.io.File r9) {\n /*\n r5 = 0\n r3 = 0\n java.io.FileReader r4 = new java.io.FileReader // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r4.<init>(r9) // Catch:{ FileNotFoundException -> 0x0059, IOException -> 0x0038 }\n r7 = 128(0x80, float:1.794E-43)\n char[] r0 = new char[r7] // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n r6.<init>() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n L_0x0010:\n int r1 = r4.read(r0) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r1 <= 0) goto L_0x002a\n r7 = 0\n r6.append(r0, r7, r1) // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n goto L_0x0010\n L_0x001b:\n r2 = move-exception\n r3 = r4\n L_0x001d:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"cannot find file to read\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x004f }\n L_0x0029:\n return r5\n L_0x002a:\n java.lang.String r5 = r6.toString() // Catch:{ FileNotFoundException -> 0x001b, IOException -> 0x0056, all -> 0x0053 }\n if (r4 == 0) goto L_0x005b\n r4.close() // Catch:{ IOException -> 0x0035 }\n r3 = r4\n goto L_0x0029\n L_0x0035:\n r7 = move-exception\n r3 = r4\n goto L_0x0029\n L_0x0038:\n r2 = move-exception\n L_0x0039:\n java.lang.String r7 = \"PluginNativeHelper\"\n java.lang.String r8 = \"error occurs while reading file\"\n com.tencent.component.utils.log.LogUtil.d(r7, r8, r2) // Catch:{ all -> 0x0048 }\n if (r3 == 0) goto L_0x0029\n r3.close() // Catch:{ IOException -> 0x0046 }\n goto L_0x0029\n L_0x0046:\n r7 = move-exception\n goto L_0x0029\n L_0x0048:\n r7 = move-exception\n L_0x0049:\n if (r3 == 0) goto L_0x004e\n r3.close() // Catch:{ IOException -> 0x0051 }\n L_0x004e:\n throw r7\n L_0x004f:\n r7 = move-exception\n goto L_0x0029\n L_0x0051:\n r8 = move-exception\n goto L_0x004e\n L_0x0053:\n r7 = move-exception\n r3 = r4\n goto L_0x0049\n L_0x0056:\n r2 = move-exception\n r3 = r4\n goto L_0x0039\n L_0x0059:\n r2 = move-exception\n goto L_0x001d\n L_0x005b:\n r3 = r4\n goto L_0x0029\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.component.plugin.PluginNativeHelper.readStringFromFile(java.io.File):java.lang.String\");\n }",
"@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}",
"public String getFileName ();",
"public interface FileUtils {\n /**\n * {@link org.apache.commons.io.FileUtils#copyDirectoryToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyDirectoryToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#copyFileToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyFileToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createDirectories(java.nio.file.Path,\n * java.nio.file.attribute.FileAttribute[])}\n *\n * @param path Path to create\n */\n void createDirectories(Path path) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createTempDirectory(\n * String, java.nio.file.attribute.FileAttribute[])}\n *\n * @param dirPrefix prefix of temporary directory\n * @return Path to created directory\n */\n Path createTempDirectory(String dirPrefix) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#deleteQuietly(java.io.File)}\n *\n * @param file File to delete\n * @return true iff directory was deleted\n */\n boolean deleteQuietly(File file);\n\n /**\n * {@link java.nio.file.Files#exists(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff exists\n */\n boolean exists(Path path);\n\n /**\n * {@link java.nio.file.Files#isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff path is a directory\n */\n boolean isDirectory(Path path);\n\n /**\n * {@link java.lang.ProcessBuilder}\n *\n * @param command command to run\n * @param pwdFile working directory of the process\n * @return process running the command\n */\n Process runCommand(List<String> command, File pwdFile) throws IOException;\n\n /**\n * {@link java.nio.file.Files#write(java.nio.file.Path, Iterable, java.nio.charset.Charset,\n * java.nio.file.OpenOption...)}\n *\n * @param path Path of file to write to.\n * @param content String to be written to file.\n */\n void write(Path path, String content) throws IOException;\n}",
"private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }",
"public void readFile();",
"public File getDataFile();",
"@Test public void getNameWithoutExt() {\n\t\tassertEquals(\"My File\",\n\t\t\tJseFileUtils.getNameWithoutExt(new File(\"some/path/with - space/My File.txt\")));\n\t}",
"private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }",
"public abstract File mo41088k();",
"public abstract String FileOutput();",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_RYNHV)!DEYJP^3IL$.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getSimilarItems(\"RYnHv)!DEyJP^3il$\", \"\");\n assertEquals(\"/S_RYNHV)!DEYJP^3IL$.XML\", file0.toString());\n assertFalse(file0.isFile());\n assertNotNull(file0);\n }",
"@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+fSeparator+\"Texnologia2\"+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n File expResult = new File(path+fSeparator+\"testImg.jpg\");\n File result;\n try{\n result = instance.getFile(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }",
"public static java.lang.String getFileName(java.lang.String r10) {\n /*\n java.lang.String r1 = \"\"\n java.io.File r3 = new java.io.File\n r3.<init>(r10)\n r5 = 0\n java.io.FileInputStream r6 = new java.io.FileInputStream // Catch:{ Exception -> 0x003c, all -> 0x0049 }\n r6.<init>(r3) // Catch:{ Exception -> 0x003c, all -> 0x0049 }\n if (r6 == 0) goto L_0x0022\n java.io.InputStreamReader r4 = new java.io.InputStreamReader // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r4.<init>(r6) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.io.BufferedReader r0 = new java.io.BufferedReader // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r0.<init>(r4) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n L_0x0019:\n java.lang.String r7 = r0.readLine() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n if (r7 != 0) goto L_0x002a\n r6.close() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n L_0x0022:\n if (r6 == 0) goto L_0x0027\n r6.close() // Catch:{ IOException -> 0x0055 }\n L_0x0027:\n r5 = r6\n r8 = r1\n L_0x0029:\n return r8\n L_0x002a:\n java.lang.StringBuilder r8 = new java.lang.StringBuilder // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.String r9 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n r8.<init>(r9) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.StringBuilder r8 = r8.append(r7) // Catch:{ Exception -> 0x005d, all -> 0x005a }\n java.lang.String r1 = r8.toString() // Catch:{ Exception -> 0x005d, all -> 0x005a }\n goto L_0x0019\n L_0x003c:\n r2 = move-exception\n L_0x003d:\n if (r5 == 0) goto L_0x0042\n r5.close() // Catch:{ IOException -> 0x0044 }\n L_0x0042:\n r8 = 0\n goto L_0x0029\n L_0x0044:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x0042\n L_0x0049:\n r8 = move-exception\n L_0x004a:\n if (r5 == 0) goto L_0x004f\n r5.close() // Catch:{ IOException -> 0x0050 }\n L_0x004f:\n throw r8\n L_0x0050:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x004f\n L_0x0055:\n r2 = move-exception\n r2.printStackTrace()\n goto L_0x0027\n L_0x005a:\n r8 = move-exception\n r5 = r6\n goto L_0x004a\n L_0x005d:\n r2 = move-exception\n r5 = r6\n goto L_0x003d\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.touchus.publicutils.utils.PersonParse.getFileName(java.lang.String):java.lang.String\");\n }",
"@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }",
"static String test1(File in) throws Exception {\n\t\tXmlStringTester dt = new XmlStringTester(in);\n\t\treturn dt.getString(dt.doc);\n\t}",
"private static void copyFile(File scrFile, File file) {\n\t\r\n}",
"private static void task45() {\n String path1, path2;\n path1 = \"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test.txt\";\n path2 = \"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt\";\n File file = new File(\"test.txt\");\n\n File file2 = new File(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt\");\n long size1 = file.length();\n long size2 = file2.length();\n\n System.out.println(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test.txt \" + size1 + \" bites\");\n System.out.println(\"d:\\\\common\\\\java\\\\w3resource\\\\src\\\\basicPart1\\\\test-text.txt \" + size2 + \" bites\");\n }",
"private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }",
"List readFile(String pathToFile);",
"String getFilename();",
"@Test\n public final void whenConvertingToFile_thenCorrect() throws IOException {\n final Path path = Paths.get(\"src/test/resources/sample.txt\");\n final byte[] buffer = java.nio.file.Files.readAllBytes(path);\n\n final File targetFile = new File(\"src/test/resources/targetFile.tmp\");\n final OutputStream outStream = new FileOutputStream(targetFile);\n outStream.write(buffer);\n\n IOUtils.closeQuietly(outStream);\n }",
"private static String readAllBytesJava7(String filePath) {\n String content = \"\";\n\n try {\n content = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content;\n }",
"@Test\r\n\tpublic void getFileName() {\n\t\tString test = \"form-data; name=\\\"uploadFile\\\"; filename=\\\"james.png\\\"\";\r\n\r\n\t\t/***When***/\r\n\t\tString result = futil.getFileName(test);\r\n\t\t/***Then***/\r\n\t\t//assertEquals(\"sally.png\", result);\r\n\t\tassertEquals(\"james.png\", result);\r\n\r\n\t}",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFilePath();",
"private ShifuFileUtils() {\n }",
"private File m20345e(String str) {\n return new File(m20344d(str));\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public File getFile ();",
"private FileUtility() {\r\n\t}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }",
"@Test\n void fileWriter() {\n\n\n ArrayList<String> fileLines = Name_Sorter.fileRead(this.readFile, \"src/main/java/oop/assignment3/ex41/base/testFile-ex41\");\n Collections.sort(fileLines);\n this.writeFile = Name_Sorter.fileWriter(this.writeFile, fileLines, \"src/main/java/oop/assignment3/ex41/base/ex41-testOutputFile.txt\");\n boolean actualOutput = this.writeFile != null;\n Assertions.assertTrue(actualOutput);\n }",
"private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }",
"public String toStringFile(){\n return null;\n }",
"@Test\n public void filePathTest() {\n // TODO: test filePath\n }",
"public File getFile();",
"public File getFile();",
"abstract protected String getWrapperFileNameBase();",
"public String getText()\n{\n //String base = _type==FileType.PACKAGE_DIR? _proj.getPackageName(_file) :\n // _file.isRoot()? _file.getSite().getName() : _file.getName();\n //String prefix = _vc.isModified(_file)? \">\" : \"\";\n //String suffix = _file.isUpdateSet()? \" *\" : \"\";\n //return prefix + base + suffix;\n String text = _file.getName();\n return text.length()>0? text : \"Sample Files\";\n}",
"File openFile();",
"@Test\n public void testGetFileType() {\n System.out.println(\"getFileType\");\n String file = \"adriano.pdb\";\n String expResult = \"pdb\";\n String result = Util.getFileType(file);\n assertEquals(expResult, result);\n }",
"protected abstract void readFile();",
"public String getFileName();",
"public String getFileName();",
"@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }",
"java.lang.String getFilePath();",
"protected static String getFilename(String base) {\n //return Integer.toHexString(base.hashCode()) + \".map\";\n return base + \".map\";\n }",
"FileNameReference createFileNameReference();",
"byte[] getFile(String sha) throws Exception;",
"public void testGetExecutable_2()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getExecutable();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}",
"private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}",
"public interface XmlUtils {\n /**\n * Если файл не существует, то создать его.\n * Если файл существует, то перезаписать его\n */\n void writeToXml(List<FileItem> items);\n\n /**\n * Если файла не существует, то вернуть пустой список\n * @return\n */\n List<FileItem> readFromXml();\n}",
"public FileUtility()\n {\n }",
"private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }",
"public void testGetPreFileName() throws Exception {\n System.out.println(\"getPreFileName\");\n \n String expResult = \"\";\n String result = instance.getPreFileName();\n assertEquals(expResult, result);\n \n }",
"java.lang.String getFileLoc();",
"@Test\n public void testGetFilesList() {\n System.out.println(\"getFilesList from existing folder with existing subfiles\");\n String entryPath = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n String[] expResult = new String[2];\n expResult[0] = \"testImg.jpg\";\n expResult[1] = \"testImg2.jpg\";\n String[] result;\n try{\n result = instance.getFilesList(entryPath);\n }catch(EntryException ex){\n result = null;\n }\n assertArrayEquals(expResult, result);\n }",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }",
"@Test\r\n public void testStripCommonTags() {\r\n String fileName = \"Modern.Family.S05E17.720p.DD5.1.AAC2.0.H.264.mkv\";\r\n String expResult = \"Modern.Family.S05E17.....mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"the.walking.dead.s03e01.1080p.bluray.x264.mkv\";\r\n expResult = \"the.walking.dead.s03e01..bluray..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n fileName = \"house.of.cards.(2013).s01e01.bluray.dts.x264.mkv\";\r\n expResult = \"house.of.cards.(2013).s01e01.bluray.dts..mkv\";\r\n assertEquals(expResult, TVMatcher.stripCommonTags(fileName));\r\n }"
] | [
"0.6474779",
"0.61508805",
"0.58338726",
"0.5811731",
"0.57686603",
"0.57686603",
"0.57686603",
"0.57407624",
"0.5656109",
"0.5656109",
"0.5647615",
"0.55918086",
"0.55127054",
"0.55038774",
"0.5488318",
"0.5488318",
"0.5486503",
"0.5482433",
"0.5431334",
"0.5431334",
"0.5399771",
"0.5396132",
"0.5391285",
"0.5389647",
"0.53719854",
"0.5369939",
"0.53555584",
"0.5339281",
"0.53277785",
"0.53275245",
"0.53245085",
"0.5319405",
"0.5316246",
"0.530153",
"0.5300679",
"0.52996457",
"0.52811754",
"0.5251878",
"0.52438474",
"0.5228065",
"0.5201558",
"0.52006894",
"0.5184777",
"0.51833963",
"0.5182694",
"0.51809597",
"0.5174673",
"0.51744086",
"0.51711744",
"0.51703036",
"0.5155678",
"0.51507527",
"0.5149816",
"0.51469475",
"0.51460224",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5145035",
"0.5141759",
"0.5141608",
"0.51414675",
"0.51407707",
"0.513918",
"0.5139035",
"0.5136355",
"0.5125237",
"0.51239973",
"0.51209295",
"0.5117469",
"0.5108392",
"0.51006657",
"0.50876147",
"0.5085526",
"0.5082567",
"0.5082567",
"0.5076416",
"0.50741464",
"0.5074146",
"0.507412",
"0.5071129",
"0.50704914",
"0.50704914",
"0.5057078",
"0.50482434",
"0.5047619",
"0.5042474",
"0.503429",
"0.50337833",
"0.5026802",
"0.5020758",
"0.50176835",
"0.50158185",
"0.5014896",
"0.5013787",
"0.50134283",
"0.5009552",
"0.5009552",
"0.50072163",
"0.50069386"
] | 0.0 | -1 |
TODO: move to GuiUtils | public static void autoComplete(final JTextField field, final String column) {
field.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
String low = field.getText().toLowerCase();
if (low.length() == 0
|| e.isActionKey()
|| e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
return;
}
ResultSet res = null;
String sql = "SELECT DISTINCT " + column
+ " FROM buch WHERE LOWER("
+ column + ") LIKE '" + low + "%' LIMIT 1";
try {
res = BookDatabase.getInstance().query(sql);
if (res.next()) {
int pos = field.getCaretPosition();
field.setText(res.getString(1));
field.setSelectionStart(pos);
field.setSelectionEnd(field.getText().length());
}
} catch (Exception ex) {
// bewusst ignoriert
} finally {
try {
if (res != null && res.getStatement() != null) {
res.getStatement().close();
}
} catch (Exception ex2) {
// bewusst ignoriert
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Gui getGui();",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"@Override\n public void initGUI() {\n\n }",
"public void buildGui() {\n\t}",
"public Object getGuiObject();",
"GuiView getGui();",
"private void updateGUIStatus() {\r\n\r\n }",
"@Override\r\n public void updateUI() {\r\n }",
"public abstract String getManipulatorButtonLabel();",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"protected abstract void setGUIAttributesHelper();",
"private static void initAndShowGUI() {\n }",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"void gui(){\n _hasGUI = true;\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initUI() {\n\r\n\t}",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"private InstructGui() {\n }",
"private GUI()\n {\n makeGUI();\n }",
"public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}",
"@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}",
"private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"public void initGui()\n {\n this.buttonList.clear();\n this.multilineMessage = this.fontRendererObj.listFormattedStringToWidth(this.message.getFormattedText(), this.width - 50);\n this.field_175353_i = this.multilineMessage.size() * this.fontRendererObj.FONT_HEIGHT;\n this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, I18n.format(\"gui.toMenu\", new Object[0])));\n if(!TabGUI.openTabGUI) return;\n this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Reconnect\"));\n this.buttonList.add(new GuiButton(2, this.width / 2, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Random Alt\"));\n }",
"public void showGui()\n {\n // TODO\n }",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }",
"public void majGui(){\n gui.reset();\n ArrayList<Ball> ballsArray = balls.getBalls();\n for (Ball b: ballsArray){\n Vector location = b.getLocation();\n gui.addGraphicalElement(\n new Oval(\n (int) location.x, (int) location.y, Color.decode(\"#FF77b4\"), Color.decode(\"#00FF48\"), 50));\n }\n }",
"private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}",
"private void initUI() {\n }",
"@Override\n\tpublic void addGui(Gui gui) {\n\t\t\n\t}",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"public interface IGUIFactory {\n Component label(String text);\n Component labelEmpty();\n Component fieldReadOnly(int length, String text);\n Component fieldEditable(int length, String text);\n Component fieldCalc(int length, String text, boolean readonly);\n Component button(String text);\n Component button(String text, ActionListener listener);\n Component button(ImageIcon image, ActionListener listener);\n Component password();\n Container panelEmpty();\n Container panel(LayoutManager manager);\n Container panelBordered();\n TablePanel tablePanel(IGUIEditor parent, Table table);\n TablePanel tablePanel(IGUIEditor parent, TableModel tableModel);\n Table table(TableModel tableModel);\n Component comboBoxFilled(Collection priorities);\n Component checkBox(String text);\n Component checkBox(String text, boolean flag);\n LayoutManager boxLayout(Container comp, int direction);\n LayoutManager gridLayout(int rows, int cols);\n Dimension size(int width, int height);\n JTabbedPane tabbedPane();\n JMenuItem menuItem(String text, Icon icon);\n JMenu menu(String text);\n JMenuBar menuBar();\n WindowEvent windowEvent(Window source, int id);\n}",
"public void updateUI(){}",
"public interface GUI {\r\n\r\n public SPLGraph getSoundLevelGraph();\r\n\r\n public int getHeight();\r\n\r\n public int getWidth();\r\n\r\n public float getLabelWidth(String label, boolean antiAlias);\r\n\r\n public float getLabelHeight(String label, boolean antiAlias);\r\n\r\n public void drawLine(NTColor color, float x1, float y1, float x2, float y2, boolean antiAlias, boolean hairline);\r\n\r\n public void drawLabel(String label, NTColor labelColor, float x, float y, boolean antiAlias);\r\n\r\n public void drawSurface(NTColor color, ArrayList<Float> xs, ArrayList<Float> ys, boolean antiAlias);\r\n\r\n }",
"void showOrdersGui();",
"protected void setupUI() {\n\n }",
"private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }",
"private GUIMain() {\n\t}",
"public void iniciaGUISesion() {\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.removeTabAt(1);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, getPanelControl(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, getPanelEventos(), \"Control de los eventos\", 2);\n\t}",
"public void registerGui()\n {\n }",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"public guiProntuarioVirtual() {\n initComponents();\n \n }",
"protected void actionPerformed(GuiButton par1GuiButton)\n {\n for (int var2 = 0; var2 < this.options.keyBindings.length; ++var2)\n {\n ((GuiButton)this.controlList.get(var2)).displayString = this.options.getOptionDisplayString(var2);\n }\n\n if (par1GuiButton.id == 200)\n {\n this.mc.displayGuiScreen(this.parentScreen);\n }\n else\n {\n this.buttonId = par1GuiButton.id;\n par1GuiButton.displayString = \"> \" + this.options.getOptionDisplayString(par1GuiButton.id) + \" <\"; // what is this even for.. it gets overwritten in drawScreen\n }\n }",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }",
"private String getLabel(MouseEvent e) {\n \n final JFrame parent = new JFrame();\n JButton button = new JButton();\n\n button.setText(\"Click me to show dialog!\");\n parent.add(button);\n //button.doClick();\n parent.pack();\n parent.setVisible(true);\n //String name;\n //button.doClick();\n //button.doClick();\n button.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n label = JOptionPane.showInputDialog(parent,\n \"Set label for this segment\", null); \n \n getLabels().add(label);\n parent.dispose();\n //System.exit(0);\n //setLabel(name);\n //System.out.println(\"rectangle sizes = \"+startDrag.x+\",\"+ startDrag.y+\",\"+ e.getX()+\",\"+ e.getY()+\" = \"+label);\n }\n \n });\n button.doClick();\n \n \n return label;\n }",
"private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n field_50063_c = mc.ingameGUI.func_50013_c().size();\n field_50064_a = new GuiTextField(fontRenderer, 4, height - 12, width - 4, 12);\n field_50064_a.setMaxStringLength(100);\n field_50064_a.func_50027_a(false);\n field_50064_a.func_50033_b(true);\n field_50064_a.setText(field_50066_k);\n field_50064_a.func_50026_c(false);\n }",
"private void createComponents() {\r\n // create a title\r\n indexTitle = new JLabel(\"Indexing\");\r\n indexTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\r\n dirUrl = new JTextField();\r\n dirUrl.setColumns(70);\r\n dirUrl.setEditable(false);\r\n\r\n openDir = new JButton(\"Open Dir\");\r\n fileChooser = new JFileChooser();\r\n\r\n startIndexing = new JButton(\"Start\");\r\n startIndexing.setPreferredSize(new Dimension(95, 22));\r\n\r\n indexProgress = new JProgressBar();\r\n //progressBar.setStringPainted(true);\r\n // progressBar.setString(\"Indexing State..\");\r\n\r\n addExistingCheck = new JCheckBox();\r\n }",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}",
"@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\tpublic GuiUtilsApi getGuiUtilsApi() {\r\n\t\treturn this;\r\n\t}",
"private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }",
"private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"public abstract Datastore launchGUI(Datastore theDatastore);",
"private void cmdExcelReportWidgetSelected() {\n\n\t}",
"private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }",
"public void initGui() {\n/* 34 */ Keyboard.enableRepeatEvents(true);\n/* 35 */ this.buttonList.clear();\n/* 36 */ this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectServer.select\", new Object[0])));\n/* 37 */ this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\", new Object[0])));\n/* 38 */ this.ipEdit = new GuiTextField(2, this.fontRendererObj, this.width / 2 - 100, 116, 200, 20);\n/* 39 */ this.ipEdit.setMaxStringLength(128);\n/* 40 */ this.ipEdit.setFocused(true);\n/* 41 */ this.ipEdit.setText(this.mc.gameSettings.lastServer);\n/* 42 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }",
"private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public EditorBarajasGUI() {\n\t\t//dibujamos el cursor\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/puntero.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t\ttry {\n\t\t\tjbInit();\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"public abstract String visualizar();",
"void showPlaceholderGui() {\n this.game.a(new da());\n }",
"public gui obtenerGrafica();",
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"public GUISimulator getGui(){\n return this.gui;\n }",
"void setGui(Gui gui);",
"public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }",
"private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}",
"public void updateUI() {\n if (ui != null) {\n removeKeymap(ui.getClass().getName());\n }\n setUI(UIManager.getUI(this));\n }",
"private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }",
"protected abstract void iniciarLayout();",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public orgGui() {\n initComponents();\n }",
"public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}",
"private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}",
"private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}",
"@Override\n public Component getUiComponent() {\n return this;\n }",
"private ProgramGUI() {\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(1, 2));\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n\t\tpanel.add(new JLabel(\"Enter Command: \"));\n\t\tcmd = new JTextField();\n\t\tpanel.add(cmd);\n\t\tadd(panel, BorderLayout.NORTH);\n\t\tJPanel button = new JPanel();\n\t\tJButton ok = new JButton(\"Confirm Command\");\n\t\tJButton logout = new JButton(\"Log Out\");\n\t\tok.addActionListener(new OKListener());\n\t\tlogout.addActionListener(new LogoutListener());\n\t\tbutton.add(ok);\n\t\tbutton.add(logout);\n\t\tadd(button, BorderLayout.SOUTH);\n\t\tsetVisible(true);\n\t\tif(isTillOpen) {\n\t\t\tsetTitle(\"Till Open\");\n\t\t}\n\t\telse {\n\t\t\tsetTitle(\"Till Closed\");\n\t\t}\n\t}",
"private void createAndShowGUI(String str) throws IOException\n {\n setUndecorated(true);\n setAlwaysOnTop(true);\n // Set some layout\n setLayout(new BorderLayout());\n \n closeButton = new JButton(\"Ok.\");\n closeButton.addActionListener(this);\n add(closeButton, BorderLayout.SOUTH);\n JLabel ico = new JLabel(str);\n ico.setIcon(new ImageIcon(ImageIO.read(new File(\"icons\\\\rarenep.png\"))));\n add(ico, BorderLayout.CENTER);\n\n pack();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n //setSize(sizeX,sizeY);\n Dimension dialogSize = getSize();\n setLocation(screenSize.width/2-dialogSize.width/2, screenSize.height/2-dialogSize.height/2);\n setVisible(true);\n }",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public ExecutantGui() {\n initComponents();\n }",
"public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }",
"void initUI();",
"private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}",
"private void loadGUI() {\n JMenuItem tmp;\n Font font = new Font(\"Arial\", Font.ITALIC, 10);\n \n // Project menu\n projectMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected project\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n projectMenu.add(tmp);\n projectMenu.addSeparator();\n \n properties = new JMenuItem(\"Properties\");\n properties.addActionListener(this);\n projectMenu.add(properties);\n \n reimport = new JMenuItem(\"Re-Import Files\");\n reimport.addActionListener(this);\n projectMenu.add(reimport);\n \n removeProject = new JMenuItem(\"Remove project\");\n removeProject.addActionListener(this);\n projectMenu.add(removeProject);\n \n // Directory menu\n dirMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected directory\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n dirMenu.add(tmp);\n dirMenu.addSeparator();\n \n removeDir = new JMenuItem(\"Remove from project\");\n removeDir.addActionListener(this);\n dirMenu.add(removeDir);\n \n deleteDir = new JMenuItem(\"Delete from disk\");\n deleteDir.addActionListener(this);\n dirMenu.add(deleteDir);\n \n renameDir = new JMenuItem(\"Rename\");\n renameDir.addActionListener(this);\n dirMenu.add(renameDir);\n \n // File menu\n fileMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Selected file\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n fileMenu.add(tmp);\n fileMenu.addSeparator();\n \n removeFile = new JMenuItem(\"Remove from project\");\n removeFile.addActionListener(this);\n fileMenu.add(removeFile);\n \n deleteFile = new JMenuItem(\"Delete from disk\");\n deleteFile.addActionListener(this);\n fileMenu.add(deleteFile);\n \n renameFile = new JMenuItem(\"Rename\");\n renameFile.addActionListener(this);\n fileMenu.add(renameFile);\n\t\n\t // sutter2k: need to tap in here for preview in browser\n miLaunchBrowser= new JMenuItem(\"Preview in Browser\");\n miLaunchBrowser.addActionListener(this);\n fileMenu.add(miLaunchBrowser);\n\t\n // Menu to show when multiple nodes are selected\n multipleSelMenu = new JPopupMenu();\n tmp = new JMenuItem(\"Multiple selection\");\n tmp.setEnabled(false);\n tmp.setFont(font);\n multipleSelMenu.add(tmp);\n multipleSelMenu.addSeparator();\n \n removeMulti = new JMenuItem(\"Remove from project\");\n removeMulti.addActionListener(this);\n multipleSelMenu.add(removeMulti);\n \n deleteMulti = new JMenuItem(\"Delete from disk\");\n deleteMulti.addActionListener(this);\n multipleSelMenu.add(deleteMulti);\n \n }",
"public static void IngameMenuComponents() {\n\t\tInterface.continueGame.setPreferredSize(Interface.dim);\n\t\tInterface.continueGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.continueGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.continueGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveGame.setPreferredSize(Interface.dim);\n\t\tInterface.saveGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.saveGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.saveGame.setForeground(Color.white);\n\t\t\n\t\tInterface.saveAs.setForeground(Color.red);\n\t\tInterface.wrongName.setForeground(Color.red);\n\t\tInterface.saveName.setPreferredSize(Interface.dim);\n\t\t\n\t\tInterface.restart.setPreferredSize(Interface.dim);\n\t\tInterface.restart.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.restart.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.restart.setForeground(Color.white);\n\t\t\n\t\t\n\t}"
] | [
"0.6827287",
"0.6715209",
"0.6715209",
"0.66977435",
"0.6506501",
"0.64873725",
"0.6458213",
"0.64131755",
"0.6346175",
"0.633229",
"0.6318676",
"0.63143283",
"0.6280053",
"0.62711024",
"0.622929",
"0.62225795",
"0.6194126",
"0.6185091",
"0.6116643",
"0.6116643",
"0.6116643",
"0.60575145",
"0.60541624",
"0.60467565",
"0.60338855",
"0.60161245",
"0.5988727",
"0.597458",
"0.59720045",
"0.5958859",
"0.59503365",
"0.59469366",
"0.5945091",
"0.5920058",
"0.5916719",
"0.5914486",
"0.59111655",
"0.5908405",
"0.5906139",
"0.59039044",
"0.58816385",
"0.58529735",
"0.5846313",
"0.58408487",
"0.58327377",
"0.5826624",
"0.58259964",
"0.5813779",
"0.5804419",
"0.5801611",
"0.5800993",
"0.57668173",
"0.575018",
"0.5745273",
"0.57434016",
"0.57434016",
"0.57434016",
"0.57434016",
"0.57434016",
"0.57434016",
"0.57434016",
"0.57426006",
"0.5726455",
"0.57239014",
"0.57108766",
"0.57090324",
"0.5706427",
"0.5704971",
"0.5699159",
"0.56958777",
"0.56949264",
"0.5693063",
"0.5692972",
"0.56920916",
"0.5683923",
"0.567437",
"0.5668111",
"0.56657207",
"0.5655283",
"0.5654455",
"0.565432",
"0.56356716",
"0.56342715",
"0.56322145",
"0.5628403",
"0.5625164",
"0.5624867",
"0.562394",
"0.5620384",
"0.56169736",
"0.5609764",
"0.56049097",
"0.56032115",
"0.558709",
"0.5579621",
"0.5578475",
"0.5576113",
"0.5574661",
"0.557458",
"0.55727243",
"0.557005"
] | 0.0 | -1 |
Returns the value of the 'Directory Path' attribute. | String getDirectoryPath(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDirectory() {\n return directoryProperty().get();\n }",
"public StringProperty directoryProperty() {\n return directory;\n }",
"public File getDirectoryValue();",
"public String directory () {\n\t\treturn directory;\n\t}",
"public String getDir() {\n return this.dir;\n }",
"public String getDir() {\n return dir;\n }",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public String getDir(){\r\n\t\treturn dir;\r\n\t}",
"@Basic @Raw\r\n\tpublic Directory getDir() {\r\n\t\treturn dir;\r\n\t}",
"public String getPath() {\r\n return path;\r\n }",
"public String getPath() {\r\n return path;\r\n }",
"public File getDirectory() {\n\t\treturn directory;\n\t}",
"public String getPath() {\n\t\treturn pfDir.getPath();\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath(){\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return this.path;\n }",
"String getPath() {\r\n\t\treturn path;\r\n\t}",
"public final String getPath() {\n\t\treturn this.path.toString();\n\t}",
"public String getPath()\n {\n return path;\n }",
"public String getPath()\n {\n return path;\n }",
"public String getPath() {\n\t\treturn path;\n\t}",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}",
"public final String getPath()\n {\n return path;\n }",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public String getPath() {\n\n\t\treturn this.path;\n\n\t}",
"public String getImageDir() {\n return (String) data[GENERAL_IMAGE_DIR][PROP_VAL_VALUE];\n }",
"String getPath() {\n return path;\n }",
"public NoKD getDir() {\r\n return dir;\r\n }",
"public String getDir();",
"public String getPath()\n {\n\n return _path;\n }",
"public String getPath(){\n\t\t\treturn this.path;\n\t\t}",
"String getPath() {\n return this.path;\n }",
"public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}",
"public final String getPath() {\n\t return m_path;\n\t}",
"public File getDirectory()\n {\n return directory;\n }",
"public String path() {\n return this.path;\n }",
"public String path() {\n return this.path;\n }",
"public java.lang.String getPath() {\n\t\t return path;\n\t }",
"@Nullable public String getPath() {\n return path;\n }",
"public int getDir() {\n return this.dir;\n }",
"public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }",
"private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}",
"String getPath() {\n return mPath;\n }",
"public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }",
"public String getPathName()\n {\n return getString(\"PathName\");\n }",
"protected String getPath ()\n\t{\n\t\treturn path;\n\t}",
"public File getPath() {\n return this.path;\n }",
"public String getPath() {\n return m_path;\n }",
"public String path() {\n\treturn path;\n }",
"public int getDir() {\n\t\treturn dir;\r\n\t}",
"public final File getISdirectory()\n {\n return is_directory;\n }",
"public String getDirectoryPath() { return DirectoryManager.OUTPUT_RESULTAT + \"/\" + directoryName;}",
"public Path getDataDirectory();",
"public Path getPath() {\n return path;\n }",
"@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }",
"@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }",
"public Path getPath() {\n return this.path;\n }",
"String getDir();",
"public String getBaseDirectory()\n {\n return m_baseDirectory;\n }",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public String getDirAddress() {\n return dirAddress;\n }",
"public Path getPath() {\n return path;\n }",
"public Directory getDirectory() {\n\n\tif( _directory == null) { // If the current directory was not already parsed,\n \n \t _directory = parseDirectory(); // parse it.\n\t}\n\n\treturn _directory; // Return the current root directory.\n }",
"public Path getPath(){\n return this.path;\n }",
"public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }",
"@Override\r\n\t\tpublic String getDir()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"protected String path() {\n return path(getName());\n }"
] | [
"0.7592753",
"0.7178265",
"0.69933033",
"0.692382",
"0.6696161",
"0.665056",
"0.6633352",
"0.657804",
"0.6492566",
"0.647678",
"0.647678",
"0.6449441",
"0.6443648",
"0.6438927",
"0.6438927",
"0.6438927",
"0.6424722",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64246887",
"0.64223516",
"0.6415089",
"0.64095354",
"0.6401039",
"0.6401039",
"0.63994306",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6396949",
"0.6389107",
"0.638183",
"0.6379813",
"0.6375961",
"0.6370683",
"0.63701403",
"0.6355639",
"0.63505924",
"0.6338158",
"0.63223326",
"0.6319412",
"0.63123745",
"0.6286503",
"0.6273867",
"0.62702376",
"0.6257079",
"0.6257079",
"0.6254781",
"0.6243223",
"0.62192535",
"0.6209322",
"0.6203223",
"0.61896104",
"0.6177729",
"0.6169491",
"0.61549693",
"0.6151419",
"0.6151156",
"0.61122084",
"0.6107474",
"0.6090486",
"0.6084054",
"0.60762393",
"0.60440516",
"0.6036491",
"0.6036491",
"0.6033204",
"0.6025388",
"0.6015958",
"0.60126555",
"0.60126555",
"0.60126555",
"0.60102695",
"0.5993985",
"0.599353",
"0.59930545",
"0.5985819",
"0.5983708",
"0.5983294"
] | 0.6537856 | 8 |
Returns the value of the 'Docker Repository Name' attribute. | String getDockerRepositoryName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRepositoryName() {\n return this.repositoryName;\n }",
"public @Nullable String getRepositoryName() {\n return this.repositoryName;\n }",
"String getRepositoryName(URL repositoryUrl);",
"public static String getRepositoryName(@NotNull JSONObject jsonObject) {\n return jsonObject.getJSONObject(\"repository\").get(\"name\").toString();\n }",
"protected String getDockerImageName() {\n\t\treturn CodeExecutorDockerBase.DEFAULT_DOCKER_IMAGE_NAME;\n\t}",
"public String getShRepositoryName() {\n\n\t\treturn shRepositoryName;\n\n\t}",
"public String getRepositoryDatabaseUsername(){\n \t\treturn getProperty(\"org.sagebionetworks.repository.database.username\");\n \t}",
"public String getRepository() {\n return repository;\n }",
"public String getRepository() {\n return repository;\n }",
"public @Nullable String getRepositoryDescription() {\n return this.repositoryDescription;\n }",
"public String getRepositoryFileName() {\n return repositoryFileName;\n }",
"private String getRemoteRepositoryName( URL url ) throws IndyDataException\n {\n final String name = repoCreator.formatId( url.getHost(), getPort( url ), 0, null, StoreType.remote );\n\n logger.debug( \"Looking for remote repo starts with name: {}\", name );\n\n AbstractProxyRepositoryCreator abstractProxyRepositoryCreator = null;\n if ( repoCreator instanceof AbstractProxyRepositoryCreator )\n {\n abstractProxyRepositoryCreator = (AbstractProxyRepositoryCreator) repoCreator;\n }\n\n if ( abstractProxyRepositoryCreator == null )\n {\n return name;\n }\n\n Predicate<ArtifactStore> filter = abstractProxyRepositoryCreator.getNameFilter( name );\n List<String> l = storeManager.query()\n .packageType( GENERIC_PKG_KEY )\n .storeType( RemoteRepository.class )\n .stream( filter )\n .map( repository -> repository.getName() )\n .collect( Collectors.toList() );\n\n if ( l.isEmpty() )\n {\n return name;\n }\n return abstractProxyRepositoryCreator.getNextName( l );\n }",
"private String getRepoName(String remoteUrl) {\n // Pattern to match all words in the text\n final Matcher matcher = Pattern.compile(\"([^/]*).git$\").matcher(remoteUrl);\n if (matcher.find()) {\n return matcher.group(1);\n }\n throw new AppsmithException(AppsmithError.INVALID_GIT_CONFIGURATION, \"Remote URL is incorrect! Can you \" +\n \"please provide as per standard format => git@github.com:username/reponame.git\");\n }",
"public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}",
"public String getImageRepositoryType() {\n return this.imageRepositoryType;\n }",
"public void setShRepositoryName(String val) {\n\n\t\tshRepositoryName = val;\n\n\t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }",
"public String getName() {\n return name.get();\n }",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public final String getImageName() {\n return this.imageName;\n }",
"private String getImageName() {\n if (options.containsKey(\"image\")) {\n String imageName = (String)options.get(\"image\");\n if (StringUtils.hasText(imageName)) {\n return imageName;\n }\n }\n\n return \"\";\n /*\n func (s *executor) getImageName() (string, error) {\n\tif s.options.Image != \"\" {\n\t\timage := s.Build.GetAllVariables().ExpandValue(s.options.Image)\n\t\terr := s.verifyAllowedImage(s.options.Image, \"images\", s.Config.Docker.AllowedImages, []string{s.Config.Docker.Image})\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t\treturn image, nil\n\t}\n\n\tif s.Config.Docker.Image == \"\" {\n\t\treturn \"\", errors.New(\"No Docker image specified to run the build in\")\n\t}\n\n\treturn s.Config.Docker.Image, nil\n}\n */\n }",
"public String getName() {\r\n\t\treturn libraryName;\r\n\t}",
"@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public String getName() {\n\t\treturn name != null ? name : getDirectory().getName();\n\t}",
"public String getLocalRepository() {\r\n return localRepository;\r\n }",
"public String getConfigName () {\n return this.configName;\n }",
"public String getNetworkName () {\n return network.getRow(network).get(CyNetwork.NAME, String.class);\n }",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getRemoteName() {\n\t\treturn this.remoteName;\n\t}",
"public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public String getModuleName() {\n if (repository == null) {\n return baseName;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(baseName);\n return b.toString();\n }\n }",
"public void setRepositoryName(String repositoryName) {\n this.repositoryName = repositoryName;\n }",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public String getPlainName() { return getName().replace(\"refs/heads/\", \"\").replace(\"refs/remotes/\", \"\"); }",
"@ApiModelProperty(example = \"conan_package.tgz\", value = \"The name of this package.\")\n public String getName() {\n return name;\n }",
"@ApiModelProperty(value = \"The username, which is unique within a Cloudera Manager installation.\")\n\n\n public String getName() {\n return name;\n }",
"public void setRepositoryName(@Nullable String name) {\n this.repositoryName = name;\n }",
"public String getName()\n {\n return (String)getAttributeInternal(NAME);\n }",
"public String getImageName() {\r\n\t\treturn _imageName;\r\n\t}",
"public final String getName() {\n return this.name;\n }",
"@AutoEscape\n\tpublic String getName();",
"@AutoEscape\n\tpublic String getName();",
"@AutoEscape\n\tpublic String getName();",
"@AutoEscape\n\tpublic String getName();",
"@Override // com.android.server.wm.ConfigurationContainer\n public String getName() {\n return this.mName;\n }",
"public String getBaseRepositoryUrl() {\n\t\treturn baseRepositoryUrl;\n\t}",
"public String getName() {\n\t\treturn this.username;\n\t}",
"public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}",
"public final String getName() {\n\treturn name.getName();\n }",
"public String getClientRepository() {\r\n return clientRepository;\r\n }",
"@Column(length = 500, name = \"CONTAINER_NAME\")\r\n public String getContainerName() {\r\n return this.containerName == null ? null : this.containerName.substring(this.containerName.lastIndexOf(File.separator) + 1);\r\n }",
"@Override\n\tpublic String getName() throws RemoteException {\n\t\t\n\t\treturn name;\n\t}",
"public String getLibraryName() {\n return getProperty(Property.LIBRARY_NAME);\n }",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"public String getRepoURL() {\n return repoURL;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\r\n return name;\r\n }",
"public final String name() {\n return name;\n }",
"public final String getName()\n {\n return name;\n }",
"public String getName() {\n\t\treturn name; // Replace with your code\n\t}",
"private String getName() {\n\t\treturn name;\n\t}",
"public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"@Basic @Immutable\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"public final String getName() {\n return name;\n }",
"public String networkName() {\n return this.innerProperties() == null ? null : this.innerProperties().networkName();\n }",
"public String GetName() {\n\t\treturn this.name;\n\t}",
"public String getName() {\n return (this.name);\n }",
"public static String getDockerImage( final BioModule module ) throws ConfigNotFoundException {\n\t\treturn \" \" + getDockerUser( module ) + \"/\" + getImageName( module ) + \":\" +\n\t\t\tConfig.requireString( module, DockerUtil.DOCKER_IMG_VERSION );\n\t}",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public final String name() {\n\t\treturn name;\n\t}",
"public String getNameReference() { \n\t\treturn getNameReferenceElement().getValue();\n\t}",
"@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"public String getGroupName() {\n GitLabGroupInfo groupInfo = getGroupInfo();\n return (groupInfo != null) ? groupInfo.getName() : \"<could not fetch group information>\";\n }",
"public String getName(){\n\t\treturn Name; // Return the product's name\n\t}",
"String getRepositoryUUID();"
] | [
"0.7365171",
"0.72528136",
"0.6724674",
"0.6707811",
"0.66671723",
"0.6498295",
"0.6320132",
"0.6286415",
"0.6286415",
"0.6239886",
"0.6165532",
"0.59892607",
"0.5949627",
"0.5932108",
"0.5918214",
"0.5866578",
"0.58199066",
"0.5816818",
"0.5816818",
"0.57844406",
"0.5763132",
"0.5761532",
"0.57459474",
"0.5743793",
"0.57276064",
"0.5714311",
"0.5711459",
"0.56988925",
"0.56959325",
"0.5690765",
"0.5664307",
"0.5664307",
"0.5664307",
"0.5661055",
"0.5661055",
"0.5661055",
"0.5653885",
"0.56538665",
"0.5642987",
"0.5641651",
"0.56414896",
"0.56408125",
"0.56305504",
"0.5622004",
"0.56159556",
"0.560647",
"0.56035495",
"0.56013656",
"0.5597285",
"0.55829996",
"0.55829996",
"0.55829996",
"0.55829996",
"0.5570252",
"0.55697227",
"0.5566128",
"0.5565182",
"0.55574393",
"0.55410266",
"0.5540816",
"0.5540579",
"0.5535874",
"0.5530715",
"0.55242395",
"0.5518219",
"0.55026495",
"0.5497769",
"0.5493042",
"0.54916865",
"0.5488659",
"0.5483929",
"0.54833037",
"0.54833037",
"0.54833037",
"0.54833037",
"0.54833037",
"0.5482685",
"0.54804116",
"0.54743886",
"0.54707265",
"0.5470155",
"0.54698247",
"0.5458811",
"0.54530793",
"0.54510045",
"0.54452246",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.5443286",
"0.54327923",
"0.542951",
"0.54290503",
"0.54285294"
] | 0.8269988 | 0 |
Returns the value of the 'Monitoring' attribute. | boolean isMonitoring(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMonitoringState() {\n StringBuilder sb = new StringBuilder();\n sb.append(queueManager.getMonitoringInfo());\n return sb.toString();\n }",
"public String getMetric() {\n return this.metric;\n }",
"public String getMonitorName() {\n return this.monitorName;\n }",
"public String getMetric() {\n return metric;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when incident entered monitoring state.\")\n\n public OffsetDateTime getMonitoringAt() {\n return monitoringAt;\n }",
"public Object getMonitor() {\n\t\treturn this.monitor;\n\t}",
"public Integer getMonitorNum() {\n return monitorNum;\n }",
"boolean isMonitoringEnabled();",
"public boolean isMonitored() {\n return monitored;\n }",
"public boolean isMonitoringDisabled() {\r\n\t\treturn monitoringDisabled;\r\n\t}",
"public String getMeasurementValue() {\n\t\t\t\t\t\treturn measurementValue;\n\t\t\t\t\t}",
"public String metricName() {\n return this.metricName;\n }",
"public String getStatus() {\r\n return (String) getAttributeInternal(STATUS);\r\n }",
"public String getStat() {\r\n\t\treturn stat;\r\n\t}",
"public MonitorType getMonitorType() {\n return monitorType;\n }",
"public String getStatus() {\n return (String) getAttributeInternal(STATUS);\n }",
"@Nullable Object getNsMonitoringParamRef();",
"public String getEventWatchingGoingStatus() {\n\t\treturn eventWatchingGoingStatus;\n\t}",
"protected fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName getStartMonitoring() throws Exception {\n return _startMonitoring;\n }",
"public static Object getMonitor() {\n\t\treturn monitor;\n\t}",
"public String getMonitorArn() {\n return this.monitorArn;\n }",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public static boolean isMonitoring(){\n\t\treturn ZMonitorManager.getInstance().getMonitorLifecycle().isMonitorStarted();\n\t}",
"public String getSensor()\n {\n return sensor;\n }",
"public int getMon() {\n return mon;\n }",
"protected fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName getStopMonitoring() throws Exception {\n return _stopMonitoring;\n }",
"public final String mo14928b() {\n return \"service_monitor\";\n }",
"public com.vmware.converter.AlarmSetting getSetting() {\r\n return setting;\r\n }",
"@Override\n\tpublic String jobType() {\n\t\treturn \"productMonitorStat\";\n\t}",
"public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public String getHealthinfo() {\n return healthinfo;\n }",
"public String getHealthrecord() {\r\n return healthrecord;\r\n }",
"public Integer getStat() {\r\n return stat;\r\n }",
"public String getMetricName() {\n return this.MetricName;\n }",
"public String getAssessmentandReportingInstanceStatus() {\n return assessmentandReportingInstanceStatus;\n }",
"public Integer getStat() {\n return stat;\n }",
"public Integer getStat() {\n return stat;\n }",
"public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }",
"public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }",
"public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }",
"public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }",
"public java.util.List<MonitoringOutput> getMonitoringOutputs() {\n return monitoringOutputs;\n }",
"public int getIdMonitor() {\n return idMonitor;\n }",
"public final String mo14929c() {\n return \"service_monitor\";\n }",
"public String getWashingPlant() {\n return (String) getAttributeInternal(WASHINGPLANT);\n }",
"@java.lang.Override\n public boolean getEnableStackdriverMonitoring() {\n return enableStackdriverMonitoring_;\n }",
"public short getStatus()\r\n {\r\n return statusObj.getValue();\r\n }",
"public void setMonitoredResource(String value) {\n value.getClass();\n this.monitoredResource_ = value;\n }",
"public String getMeasurementCode() {\n return this.measurementCode;\n }",
"String getSwstatus();",
"@java.lang.Override\n public boolean getEnableStackdriverMonitoring() {\n return enableStackdriverMonitoring_;\n }",
"public String getServicingEventLogInstanceStatus() {\n return servicingEventLogInstanceStatus;\n }",
"public double getValue() {\n\t\treturn sensorval;\n\t}",
"public String metricResourceId() {\n return this.metricResourceId;\n }",
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"@Updatable\n public String getExtendedStatistic() {\n return extendedStatistic;\n }",
"public String getVeriStat()\n\t{\n\t\treturn veriStat;\n\t}",
"public Short getStatus() {\n\t\treturn status;\n\t}",
"public Short getStatus() {\n return status;\n }",
"public static String getStressValue() {\n return stressValue;\n }",
"@java.lang.Override public int getBatteryStatusValue() {\n return batteryStatus_;\n }",
"public String getStatus () {\r\n return status;\r\n }",
"@Updatable\n public String getMetricName() {\n return metricName;\n }",
"public String getStatus()\n\t\t{\n\t\t\tElement statusElement = XMLUtils.findChild(mediaElement, STATUS_ELEMENT_NAME);\n\t\t\treturn statusElement == null ? null : statusElement.getTextContent();\n\t\t}",
"public String getSTATUS() {\r\n return STATUS;\r\n }",
"public String getSTATUS() {\r\n return STATUS;\r\n }",
"public String getSTATUS() {\r\n return STATUS;\r\n }",
"public String getSTATUS() {\r\n return STATUS;\r\n }",
"public String getSTATUS() {\r\n return STATUS;\r\n }",
"public static void monitoring(){\n\t\tWebSelector.click(Xpath.monitoring);\n\t}",
"public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}",
"@java.lang.Override public int getBatteryStatusValue() {\n return batteryStatus_;\n }",
"public String getNotification() {\n return notification;\n }",
"@Schema(description = \"Indicates the value of the indicator which crossed the threshold.\")\n\n\tpublic String getObservedValue() {\n\t\treturn observedValue;\n\t}",
"public java.lang.String getWatcher(){\r\n return localWatcher;\r\n }",
"public int getAlarm () { return alarm; }",
"public YangString getMobilityEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"mobility-events-mme\");\n }",
"int getSchedulingValue();",
"public int getAlarmStatus() {\n return alarmStatus;\n }",
"@Updatable\n @ValidStrings({\"SampleCount\", \"Average\", \"Sum\", \"Minimum\", \"Maximum\"})\n public String getStatistic() {\n return statistic;\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\n return this.Status;\n }",
"public String getStatus() {\n return this.Status;\n }",
"public Integer getInstStatus() {\n return instStatus;\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public ManagementInfo getManagementInfo() {\n return managementInfo;\n }",
"@java.lang.Override\n public MetricOuterClass.Metric getMetricControl() {\n return metricControl_ == null ? MetricOuterClass.Metric.getDefaultInstance() : metricControl_;\n }",
"public void setMonitored(boolean monitored) {\n this.monitored = monitored;\n }",
"public short getStatus() {\r\n return this.status;\r\n }",
"public String getStatus(){\r\n\t\treturn status;\r\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n\t\treturn status;\n\t}"
] | [
"0.6592754",
"0.6424773",
"0.64139307",
"0.63707304",
"0.63569975",
"0.6322691",
"0.63101923",
"0.6247717",
"0.6120282",
"0.6099463",
"0.60367507",
"0.58804786",
"0.5861664",
"0.58480954",
"0.58247894",
"0.5812149",
"0.58118904",
"0.5797331",
"0.57955503",
"0.577613",
"0.57049775",
"0.56944424",
"0.5678156",
"0.5676466",
"0.56639767",
"0.5657351",
"0.56563157",
"0.5654492",
"0.5608459",
"0.5607756",
"0.5607043",
"0.5603188",
"0.55784565",
"0.5577243",
"0.55761427",
"0.55661243",
"0.55661243",
"0.5542907",
"0.5542907",
"0.5535995",
"0.5535995",
"0.5530643",
"0.5519918",
"0.5519622",
"0.54793286",
"0.5462559",
"0.54511327",
"0.5423159",
"0.5422713",
"0.5402135",
"0.5377253",
"0.5373902",
"0.5372631",
"0.53696454",
"0.536863",
"0.53675145",
"0.5348042",
"0.5343995",
"0.5341599",
"0.5338992",
"0.533666",
"0.53345585",
"0.5332611",
"0.5330452",
"0.5329574",
"0.5329574",
"0.5329574",
"0.5329574",
"0.5329574",
"0.5320801",
"0.5306588",
"0.53027236",
"0.5297154",
"0.5296674",
"0.5286125",
"0.5285544",
"0.5284643",
"0.52812123",
"0.5280069",
"0.52798927",
"0.52723527",
"0.52723527",
"0.52723527",
"0.52723527",
"0.52723527",
"0.5269361",
"0.5269361",
"0.52630335",
"0.5244296",
"0.5244296",
"0.5243842",
"0.52424943",
"0.52394366",
"0.5238567",
"0.5237185",
"0.5230638",
"0.5230638",
"0.5230638",
"0.5230638"
] | 0.6002334 | 12 |
Returns the value of the 'Kubernetes Service Type' attribute. | String getKubernetesServiceType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTypeOfService(){\n\t\treturn typeOfService;\n\t}",
"public CodeableConcept serviceType() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_SERVICE_TYPE);\n }",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public String getTypeOfService(){\n\treturn typeOfService;\n}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.ReviewServiceType getServiceType();",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"String getSType();",
"public java.lang.String getType() {\n return type;\n }",
"public java.lang.String getType() {\n return type;\n }",
"public final String getTypeAttribute() {\n return getAttributeValue(\"type\");\n }",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public String getType() {\n\t\treturn TYPE_NAME;\n\t}",
"public String getType() {\r\n\t\treturn type_;\r\n\t}",
"public String getKuberneteNativeType() {\n return this.KuberneteNativeType;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public final String type() {\n return type;\n }",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"public String getType() {\n\n return this.type;\n }",
"public void setTypeOfService(String typeOfService){\n\tthis.typeOfService=typeOfService;\n}",
"public final String getType() {\n return this.type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public void setTypeOfService(String typeOfService){\n\t\tthis.typeOfService=typeOfService;\n\t}",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }"
] | [
"0.74107915",
"0.7325474",
"0.6990525",
"0.6980961",
"0.66832006",
"0.6319702",
"0.62911695",
"0.6221715",
"0.6221715",
"0.6208362",
"0.61907786",
"0.6189631",
"0.61353135",
"0.61282545",
"0.6120153",
"0.6120153",
"0.6120153",
"0.6120153",
"0.6120153",
"0.61130154",
"0.61130154",
"0.61130154",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6111284",
"0.6110331",
"0.6110289",
"0.610982",
"0.61081815",
"0.6104261",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6103013",
"0.6102082",
"0.6095092",
"0.6095092",
"0.60948217",
"0.60910136",
"0.60905",
"0.6074158",
"0.6066553",
"0.60619956",
"0.6061729",
"0.6048753",
"0.6048753",
"0.6048753",
"0.60435414",
"0.60374403",
"0.60374403",
"0.60374403"
] | 0.72906053 | 2 |
Creates new form datakontrak | public datakontrak() {
initComponents();
this.setLocationRelativeTo(this);
tb_kontrak.changeSelection(0, 0, true, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"FORM createFORM();",
"@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 static void create(Formulario form){\n daoFormulario.create(form);\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 FormInserir() {\n initComponents();\n }",
"public FormProduct() {\n initComponents();\n getData();\n }",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"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 }",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"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 static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"public Team create(TeamDTO teamForm);",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"@_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 }",
"CreationData creationData();",
"int insert(AbiFormsForm record);",
"@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}",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\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}",
"private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"public BtxDetailsKcFormDefinition() {\n super();\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}",
"public TorneoForm() {\n initComponents();\n }",
"public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }",
"Paper addNewPaper(PaperForm form, Long courseId)throws Exception;",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"public FrmKashidashi() {\n initComponents();\n }",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"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 static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}",
"private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"public ServerskaForma() {\n initComponents();\n \n \n \n }",
"com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();",
"public FormDataBuku() { //method FormDataBuku dengan hak akses publik\n initComponents(); //adalah method yang di generate oleh netbeans secara default. Kemudian juga terlihat ada method getter dan setter untuk variabel userList\n }",
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\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}",
"static public ApplicationFormItem createNew(int id, String shortname, boolean required, ApplicationFormItemType type,\n\t\t\t\t\t\t\t\t\t\t\t\tString federationAttribute, String perunSourceAttribute, String perunDestinationAttribute, String regex,\n\t\t\t\t\t\t\t\t\t\t\t\tList<Application.ApplicationType> applicationTypes, Integer ordnum, boolean forDelete)\t{\n\t\tApplicationFormItem afi = new JSONObject().getJavaScriptObject().cast();\n\t\tafi.setId(id);\n\t\tafi.setShortname(shortname);\n\t\tafi.setRequired(required);\n\t\tafi.setType(type);\n\t\tafi.setFederationAttribute(federationAttribute);\n\t\tafi.setPerunSourceAttribute(perunSourceAttribute);\n\t\tafi.setPerunDestinationAttribute(perunDestinationAttribute);\n\t\tafi.setRegex(regex);\n\t\tafi.setApplicationTypes(applicationTypes);\n\t\tafi.setOrdnum(ordnum);\n\t\tafi.setForDelete(forDelete);\n\t\treturn afi;}",
"private void fillCreateOrEditForm(String name, int branchId) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByValue(xpathSelectBranch, \"number:\" + branchId);\n logger.info(\"# Select branch id: \" + branchId);\n }",
"@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"int insertSelective(AbiFormsForm record);",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\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 }",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}",
"public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}",
"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}",
"Documento createDocumento();",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public void setFormData(Object data) /*throws edu.mit.coeus.exception.CoeusException*/ {\r\n try {\r\n cvHierarchyData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvSortData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvGroupsData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorMaintenanceFormBean.class);\r\n rowId = cvHierarchyData.size()+1;\r\n //Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy \r\n if(getFunctionType() != CoeusGuiConstants.DISPLAY_MODE){\r\n try{\r\n isPrintingHierarchy = canUserLoadSponsorForms();\r\n }catch (CoeusUIException coeusUIException) {\r\n CoeusOptionPane.showErrorDialog(coeusUIException.getMessage());\r\n return;\r\n }\r\n }\r\n //Case#2445 - End\r\n \r\n }catch (CoeusException coeusException) {\r\n coeusException.printStackTrace();\r\n }\r\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }",
"public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }",
"@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}",
"public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }",
"@Override\r\n\tpublic ActionForward to_objectNew(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\treturn null;\r\n\t}",
"public void limpiarCamposFormBusqueda() {\n\t}",
"WithCreate withCreationData(CreationData creationData);",
"@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 FrmInsertar() {\n initComponents();\n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"Klassenstufe createKlassenstufe();",
"public ProductCreate() {\n initComponents();\n }",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"public Ventaform() {\n initComponents();\n }",
"protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}",
"private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\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}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"private void newNetworkDialogCreateButton(){\n //Create new networkData object here based on the field info\n LabData.NetworkData newNetworkData = new LabData.NetworkData(\n NetworkAddDialogNameTextfield.getText().toUpperCase(),\n NetworkAddDialogMaskTextfield.getText(),\n NetworkAddDialogGatewayTextfield.getText(),\n (int)NetworkAddDialogMacVLanExtSpinner.getValue(),\n (int)NetworkAddDialogMacVLanSpinner.getValue(),\n NetworkAddDialogIPRangeTextfield.getText(),\n NetworkAddDialogTapRadioButton.isSelected()\n );\n \n // Update the list of labs in the current UI data object\n labDataCurrent.getNetworks().add(newNetworkData);\n \n // Add the network into the UI \n addNetworkPanel(newNetworkData);\n \n // Update the Container Config dialogs to include the new network\n updateNetworkReferenceInContainerConfigDialogs(\"Add\", NetworkAddDialogNameTextfield.getText().toUpperCase(), null);\n }",
"public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }",
"com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();",
"private void fillCreateOrEditForm(String name, String branch) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByVisibleText(xpathSelectBranch, branch);\n logger.info(\"# Select branch name: \" + branch);\n }",
"public Kelola_Data_Dokter() {\n initComponents();\n }"
] | [
"0.6831663",
"0.6829848",
"0.6243079",
"0.61917603",
"0.6012569",
"0.6004254",
"0.58357215",
"0.5833715",
"0.5803437",
"0.5790002",
"0.5776304",
"0.5770203",
"0.57595885",
"0.5758022",
"0.5682801",
"0.5675269",
"0.56732357",
"0.5641586",
"0.5640502",
"0.5639082",
"0.55858904",
"0.55698097",
"0.555842",
"0.55545807",
"0.5519331",
"0.55046135",
"0.55043167",
"0.55001634",
"0.54611963",
"0.54536134",
"0.54498047",
"0.54455775",
"0.5444746",
"0.54410493",
"0.5439843",
"0.54395986",
"0.5435256",
"0.5416105",
"0.54102165",
"0.5408174",
"0.5386567",
"0.53847015",
"0.53813237",
"0.5375147",
"0.5375066",
"0.53743124",
"0.5371816",
"0.5371548",
"0.5363757",
"0.5363221",
"0.5356487",
"0.5356127",
"0.53524244",
"0.5341198",
"0.5339323",
"0.53050405",
"0.530163",
"0.5300162",
"0.5295314",
"0.5288839",
"0.5288267",
"0.5285589",
"0.52834904",
"0.52779984",
"0.5276741",
"0.52752084",
"0.5271094",
"0.52657956",
"0.52643436",
"0.52635646",
"0.5261386",
"0.5257862",
"0.5257676",
"0.52570516",
"0.5254164",
"0.5253712",
"0.52496946",
"0.5231875",
"0.5230158",
"0.5229035",
"0.5228547",
"0.5223779",
"0.52206373",
"0.52188873",
"0.5215748",
"0.5215741",
"0.52134466",
"0.5212025",
"0.5210071",
"0.52082497",
"0.5206067",
"0.52047735",
"0.52026296",
"0.52022654",
"0.5202263",
"0.5202069",
"0.5201104",
"0.5199786",
"0.519796",
"0.5196606",
"0.5194567"
] | 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() {
petani = new javax.swing.JComboBox<>();
luas = new javax.swing.JTextField();
bibit = new javax.swing.JTextField();
pupuk = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
btn_save = new javax.swing.JButton();
btn_delete = new javax.swing.JButton();
btn_back = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
tb_kontrak = new javax.swing.JTable();
jLabel8 = new javax.swing.JLabel();
id = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
petani.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
petani.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "-" }));
petani.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
petaniActionPerformed(evt);
}
});
getContentPane().add(petani, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 70, 170, 50));
luas.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
getContentPane().add(luas, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 150, 170, 50));
bibit.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
bibit.setEnabled(false);
getContentPane().add(bibit, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 220, 170, 50));
pupuk.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
pupuk.setEnabled(false);
getContentPane().add(pupuk, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 300, 170, 50));
jLabel5.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jLabel5.setText("Kg");
getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 300, 40, 50));
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("Kg");
getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 220, 40, 50));
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setText("Ha");
getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 150, 40, 50));
jLabel6.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("ID :");
getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 140, 80, 50));
btn_save.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gambar3/save.png"))); // NOI18N
btn_save.setBorder(null);
btn_save.setBorderPainted(false);
btn_save.setContentAreaFilled(false);
getContentPane().add(btn_save, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 300, 100, 40));
btn_delete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gambar3/hapus.png"))); // NOI18N
btn_delete.setBorder(null);
btn_delete.setBorderPainted(false);
btn_delete.setContentAreaFilled(false);
btn_delete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_deleteActionPerformed(evt);
}
});
getContentPane().add(btn_delete, new org.netbeans.lib.awtextra.AbsoluteConstraints(950, 300, 100, 40));
btn_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gambar3/keluar.png"))); // NOI18N
btn_back.setBorder(null);
btn_back.setBorderPainted(false);
btn_back.setContentAreaFilled(false);
getContentPane().add(btn_back, new org.netbeans.lib.awtextra.AbsoluteConstraints(900, 580, 170, 60));
tb_kontrak.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane1.setViewportView(tb_kontrak);
getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 400, 640, 240));
jLabel8.setFont(new java.awt.Font("Tahoma", 0, 48)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Data Kontrak");
getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 10, 320, 90));
id.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
id.setForeground(new java.awt.Color(255, 255, 255));
getContentPane().add(id, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 140, 70, 50));
jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gambar/data K.jpg"))); // NOI18N
getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
jLabel2.setFont(new java.awt.Font("Black Diamonds Personal Use", 0, 48)); // NOI18N
jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("Data Kontrak");
getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 10, 340, 90));
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gambar/data K.jpg"))); // NOI18N
getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));
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 quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public 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 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 EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\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 Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public GUI_StudentInfo() {\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 Carrera() {\n initComponents();\n }",
"public POS1() {\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.7318948",
"0.7290426",
"0.7290426",
"0.7290426",
"0.7284922",
"0.7247965",
"0.7213206",
"0.72080696",
"0.7195916",
"0.7189941",
"0.71835536",
"0.71579427",
"0.7147217",
"0.70927703",
"0.7080282",
"0.7055882",
"0.6987108",
"0.69770193",
"0.6954159",
"0.69529283",
"0.6944756",
"0.6941631",
"0.69351804",
"0.6931676",
"0.69271684",
"0.6924507",
"0.6924333",
"0.6910886",
"0.6910063",
"0.6893039",
"0.6892514",
"0.68902403",
"0.68896806",
"0.68873954",
"0.688239",
"0.68815583",
"0.68807346",
"0.6877274",
"0.68747336",
"0.6873939",
"0.6871645",
"0.6858798",
"0.68562996",
"0.68551964",
"0.6854526",
"0.6853759",
"0.6852625",
"0.6852071",
"0.6852071",
"0.6842801",
"0.6836393",
"0.6835916",
"0.6827825",
"0.68275064",
"0.6826875",
"0.6823854",
"0.68217176",
"0.6816455",
"0.68164307",
"0.68095225",
"0.68079925",
"0.6807973",
"0.6807133",
"0.6806263",
"0.6802961",
"0.67933935",
"0.6793082",
"0.6791554",
"0.6789944",
"0.6788754",
"0.6787684",
"0.67871934",
"0.6783336",
"0.67656237",
"0.6765452",
"0.6764802",
"0.67560065",
"0.67553526",
"0.67517436",
"0.6751359",
"0.67414886",
"0.67386204",
"0.67362994",
"0.67358786",
"0.6732659",
"0.6726978",
"0.67262286",
"0.6719745",
"0.6715412",
"0.67137116",
"0.6713403",
"0.670771",
"0.67069227",
"0.670236",
"0.6701016",
"0.6700013",
"0.66983503",
"0.66981363",
"0.6694568",
"0.66907334",
"0.66893756"
] | 0.0 | -1 |
Connect to JMX service on given url and init JMXClient | public void connect(String jmxServiceUrl) throws IOException {
log.debug("Creating an RMI connector client and " +
"connect it to the RMI connector server " + jmxServiceUrl);
url = new JMXServiceURL(jmxServiceUrl);
jmxc = JMXConnectorFactory.connect(url, null);
mbsc = jmxc.getMBeanServerConnection();
if (mbsc == null) {
throw new IOException("Connection to " + url + " was not estabilshed");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void connect(JMXServiceURL url, Map<String, Object> env) throws IOException;",
"private void connect() throws IOException\n {\n JMXServiceURL jmxUrl = new JMXServiceURL(String.format(fmtUrl, host, port));\n JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl, null);\n mbeanServerConn = jmxc.getMBeanServerConnection();\n \n try\n {\n ObjectName name = new ObjectName(ssObjName);\n ssProxy = JMX.newMBeanProxy(mbeanServerConn, name, StorageServiceMBean.class);\n } catch (MalformedObjectNameException e)\n {\n throw new RuntimeException(\n \"Invalid ObjectName? Please report this as a bug.\", e);\n }\n \n memProxy = ManagementFactory.newPlatformMXBeanProxy(mbeanServerConn, \n ManagementFactory.MEMORY_MXBEAN_NAME, MemoryMXBean.class);\n runtimeProxy = ManagementFactory.newPlatformMXBeanProxy(\n mbeanServerConn, ManagementFactory.RUNTIME_MXBEAN_NAME, RuntimeMXBean.class);\n }",
"private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}",
"private static GenericContainer jmxService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.rmi.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.local.only=false\" +\n \"-Djava.rmi.server.hostname=0.0.0.0 \" +\n \"-Dcom.sun.management.jmxremote=true \" +\n \"-Dcom.sun.management.jmxremote.authenticate=false \" +\n \"-Dcom.sun.management.jmxremote.ssl=false \");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }",
"private static GenericContainer jmxSSLService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \"\n + \"-Dcom.sun.management.jmxremote.local.only=false \"\n + \"-Dcom.sun.management.jmxremote.rmi.port=7199 \"\n + \"-Dcom.sun.management.jmxremote=true \"\n + \"-Dcom.sun.management.jmxremote.authenticate=false \"\n + \"-Dcom.sun.management.jmxremote.ssl=true \"\n + \"-Dcom.sun.management.jmxremote.ssl.need.client.auth=true \"\n + \"-Dcom.sun.management.jmxremote.registry.ssl=true \"\n + \"-Djavax.net.ssl.keyStore=/keystore \"\n + \"-Djavax.net.ssl.keyStorePassword=password \"\n + \"-Djavax.net.ssl.trustStore=/truststore \"\n + \"-Djavax.net.ssl.trustStorePassword=password\");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }",
"public void startJMXService() throws ServerException {\n\n //File path for the jmx config file.\n String filePath = CarbonUtils.getEtcCarbonConfigDirPath() + File.separator + \"jmx.xml\";\n boolean startJMXServer = false;\n\n File jmxConfigFile = new File(filePath);\n\n //Check whether jmx.xml file exists\n if (jmxConfigFile.exists()) {\n //Read jmx.xml file.\n parseJMXConfigXML(filePath);\n startJMXServer = jmxProperties.isStartServer();\n if (!startJMXServer) {\n return;\n }\n }\n\n int rmiRegistryPort = jmxProperties.getRmiRegistryPort();\n if (rmiRegistryPort == -1) {\n throw new RuntimeException(\"RMIRegistry port has not been properly defined in the \" +\n \"jmx.xml or carbon.xml files\");\n }\n MBeanServer mbs = ManagementFactory.getMBeanServer();\n String jmxURL;\n try {\n try {\n rmiRegistry = LocateRegistry.createRegistry(rmiRegistryPort);\n } catch (Throwable ignored) {\n log.error(\"Could not create the RMI local registry\", ignored);\n }\n\n String hostName;\n //If 'startRMIServer' element in jmx.xml file set to true and 'HostName' element\n // value that file is not null.\n if (startJMXServer && jmxProperties.getHostName() != null) {\n hostName = jmxProperties.getHostName();//Set hostname value from jmx.xml file.\n } else { //Else\n hostName = NetworkUtils.getLocalHostname();\n }\n // Create an RMI connector and start it\n int rmiServerPort = jmxProperties.getRmiServerPort();\n if (rmiServerPort != -1) {\n jmxURL = \"service:jmx:rmi://\" + hostName + \":\" +\n rmiServerPort + \"/jndi/rmi://\" + hostName + \":\" +\n rmiRegistryPort + \"/jmxrmi\";\n\n } else {\n jmxURL = \"service:jmx:rmi:///jndi/rmi://\" +\n hostName + \":\" + rmiRegistryPort + \"/jmxrmi\";\n }\n JMXServiceURL url = new JMXServiceURL(jmxURL);\n\n // Security credentials are included in the env Map\n HashMap<String, CarbonJMXAuthenticator> env =\n new HashMap<String, CarbonJMXAuthenticator>();\n env.put(JMXConnectorServer.AUTHENTICATOR, new CarbonJMXAuthenticator());\n jmxConnectorServer =\n JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);\n jmxConnectorServer.start();\n log.info(\"JMX Service URL : \" + jmxURL);\n } catch (Exception e) {\n String msg = \"Could not initialize RMI server\";\n log.error(msg, e);\n }\n }",
"@Override\r\n\tpublic void connect(URL url) throws RemoteException {\n\t\tclientPool=ClientPoolManager.INSTANCE.getClientPool(url);\r\n\r\n\t}",
"public void start() throws LifecycleException {\n jmxClient = new WebLogicJMXClient(configuration);\n }",
"protected JMXPoller(List<InetSocketAddress> jmxEndpoints, long queryTimeout, String serviceUrlTemplate) {\n this.jmxEndpoints = jmxEndpoints;\n this.queryTimeout = queryTimeout;\n this.connectors = new ConcurrentHashMap<InetSocketAddress, JMXConnector>(jmxEndpoints.size());\n this.serviceUrlTemplate = serviceUrlTemplate;\n }",
"@SuppressWarnings(\"deprecation\")\n public static JMXConnector getJmxConnector(final String host,\n final String service, final String user, final String pass,\n final int jmxRmiPort, final int jmxJndiPort)\n throws IOException {\n final String jmxUrl = getJmxUrl(host, service, jmxRmiPort, jmxJndiPort);\n Logs.advice(\"Using JMX URL: \" + jmxUrl);\n final JMXServiceURL serviceUrl = new JMXServiceURL(jmxUrl);\n return getJmxConnector(user, pass, serviceUrl);\n }",
"public static JMXConnectorServer createJMXServer(int port, boolean local)\r\n throws IOException\r\n {\r\n Map<String, Object> env = new HashMap<>();\r\n\r\n String urlTemplate = \"service:jmx:rmi://%1$s/jndi/rmi://%1$s:%2$d/jmxrmi\";\r\n InetAddress serverAddress = null;\r\n if (local)\r\n {\r\n serverAddress = InetAddress.getLoopbackAddress();\r\n System.setProperty(\"java.rmi.server.hostname\", serverAddress.getHostAddress());\r\n }\r\n\r\n // Configure the RMI client & server socket factories, including SSL config.\r\n env.putAll(configureJmxSocketFactories(serverAddress));\r\n\r\n String url = String.format(urlTemplate, (serverAddress != null ? serverAddress.getHostAddress() : \"0.0.0.0\"), port);\r\n LocateRegistry.createRegistry(port,\r\n (RMIClientSocketFactory) env.get(RMIConnectorServer.RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTE),\r\n (RMIServerSocketFactory) env.get(RMIConnectorServer.RMI_SERVER_SOCKET_FACTORY_ATTRIBUTE));\r\n\r\n // Configure authn, using a JMXAuthenticator which either wraps a set log LoginModules configured\r\n // via a JAAS configuration entry, or one which delegates to the standard file based authenticator.\r\n // Authn is disabled if com.sun.management.jmxremote.authenticate=false\r\n env.putAll(configureJmxAuthentication());\r\n\r\n // Configure authz - if a custom proxy class is specified an instance will be returned.\r\n // If not, but a location for the standard access file is set in system properties, the\r\n // return value is null, and an entry is added to the env map detailing that location\r\n // If neither method is specified, no access control is applied\r\n MBeanServerForwarder authzProxy = configureJmxAuthorization(env);\r\n\r\n // Make sure we use our custom exporter so a full GC doesn't get scheduled every\r\n // sun.rmi.dgc.server.gcInterval millis (default is 3600000ms/1 hour)\r\n env.put(RMIExporter.EXPORTER_ATTRIBUTE, new Exporter());\r\n\r\n JMXConnectorServer jmxServer =\r\n JMXConnectorServerFactory.newJMXConnectorServer(new JMXServiceURL(url),\r\n env,\r\n ManagementFactory.getPlatformMBeanServer());\r\n\r\n // If a custom authz proxy was created, attach it to the server now.\r\n if (authzProxy != null)\r\n jmxServer.setMBeanServerForwarder(authzProxy);\r\n\r\n logger.info(\"Configured JMX server at: {}\", url);\r\n return jmxServer;\r\n }",
"private void createProxyConnection() throws ClusterDataAdminException {\n ClusterMBeanDataAccess clusterMBeanDataAccess = ClusterAdminComponentManager.getInstance().getClusterMBeanDataAccess();\n try{\n failureDetectorMBean= clusterMBeanDataAccess.locateFailureDetectorMBean();\n }\n catch(Exception e){\n throw new ClusterDataAdminException(\"Unable to locate failure detector MBean connection\",e,log);\n }\n }",
"private static String getJmxUrl(final String host, final String service,\n final int jmxRmiPort,\n final int jmxJndiPort) {\n return String.format(\n JMX_URL_PATTERN,\n host,\n jmxJndiPort,\n host,\n jmxRmiPort,\n service);\n }",
"@Override\n public void start() {\n checkDebug();\n\n agentConfig.validate();\n\n if (mBeanServer == null) {\n mBeanServer = MBeanUtils.start();\n }\n\n try {\n startHttpAdaptor();\n } catch (StartupException e) {\n loggingSession.stopSession();\n loggingSession.shutdown();\n throw e;\n }\n\n try {\n startRMIConnectorServer();\n } catch (StartupException e) {\n stopHttpAdaptor();\n loggingSession.stopSession();\n loggingSession.shutdown();\n throw e;\n }\n\n try {\n startSnmpAdaptor();\n } catch (StartupException e) {\n stopRMIConnectorServer();\n stopHttpAdaptor();\n loggingSession.stopSession();\n loggingSession.shutdown();\n throw e;\n }\n\n if (agentConfig.getAutoConnect()) {\n try {\n connectToSystem();\n /*\n * Call Agent.stop() if connectToSystem() fails. This should clean up agent-DS connection &\n * stop all the HTTP/RMI/SNMP adapters started earlier.\n */\n } catch (AdminException ex) {\n logger.error(\"auto connect failed: {}\",\n ex.getMessage());\n stop();\n throw new StartupException(ex);\n } catch (MalformedObjectNameException ex) {\n String autoConnectFailed = \"auto connect failed: {}\";\n logger.error(autoConnectFailed, ex.getMessage());\n stop();\n throw new StartupException(new AdminException(\n String.format(\"auto connect failed: %s\", ex.getMessage()), ex));\n }\n } // getAutoConnect\n\n logger.info(\"GemFire JMX Agent is running...\");\n\n if (memberInfoWithStatsMBean == null) {\n initializeHelperMbean();\n }\n }",
"public ClientMBean() {\n }",
"private JiraManagementService getJiraManagementServicePort() throws JiraManagerException {\r\n try {\r\n return serviceClient.getJiraManagementServicePort();\r\n } catch (WebServiceException e) {\r\n Util.logError(log, e);\r\n throw new JiraManagerException(\"Unable to create JiraManagementService proxy.\", e);\r\n }\r\n }",
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"private SunOneHttpJmxConnectorFactory() {\n }",
"public void start() throws Exception {\n ServerSocket socket = new ServerSocket(0);\n port = socket.getLocalPort();\n socket.close();\n\n final String[] localArgs = {\"-inMemory\", \"-port\", String.valueOf(port)};\n server = ServerRunner.createServerFromCommandLineArgs(localArgs);\n server.start();\n url = \"http://localhost:\" + port;\n\n // internal client connection so we can easily stop, cleanup, etc. later\n this.dynamodb = getClient();\n }",
"@SneakyThrows\n @Test\n @Disabled\n public void test() {\n JMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9840/jmxrmi\");\n\n JMXConnector jmxc = JMXConnectorFactory.connect(url, null);\n MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();\n Set<ObjectName> names =\n new TreeSet<>(mbsc.queryNames(null, null));\n for (ObjectName name : names) {\n log.debug(\"ObjectName = \" + name);\n }\n\n ObjectName mbeanName = new ObjectName(\"org.apache.commons.dbcp2:name=dataSource,type=BasicDataSource\");\n GenericObjectPoolMXBean mxBean = JMX.newMBeanProxy(mbsc, mbeanName, GenericObjectPoolMXBean.class, true);\n log.debug(\"numActive:{}\", mxBean.getNumActive());\n }",
"public boolean jmxBind() {\n\t\ttry {\n\t\t\tString sUrl = \"service:jmx:rmi:///jndi/rmi://\" + hostname + \":\" + port + \"/jmxrmi\";\n\t\t\tLOGGER.info(\"Connecting to remote engine on : \" + sUrl);\n\t\t\turl = new JMXServiceURL(sUrl);\n\t\t\tjmxC = new RMIConnector(url, null);\n\t\t\tjmxC.connect();\n\t\t\tjmxc = jmxC.getMBeanServerConnection();\n\t\t\tObjectName lscServerName = new ObjectName(\"org.lsc.jmx:type=LscServer\");\n\t\t\tlscServer = JMX.newMXBeanProxy(jmxc, lscServerName, LscServer.class, true);\n\t\t\treturn true;\n\t\t} catch (MalformedObjectNameException e) {\n\t\t\tLOGGER.error(e.toString(), e);\n\t\t} catch (NullPointerException e) {\n\t\t\tLOGGER.error(e.toString(), e);\n\t\t} catch (MalformedURLException e) {\n\t\t\tLOGGER.error(e.toString(), e);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(e.toString(), e);\n\t\t}\n\t\treturn false;\n\t}",
"public synchronized void openConnection() throws MalformedURLException,\n IOException, AuthenticationException {\n\n this.connector = createJMXConnector(connectionConfiguration);\n\n try {\n Activator.getDefault().info(\n \"Connecting to \" + connectionConfiguration);\n connector.connect();\n addConnectionNotificationListener();\n connectionAlreadyClosed = false;\n } catch (IllegalArgumentException ile) {\n Activator.getDefault().info(\"Authentication failed\", ile);\n throw new AuthenticationException();\n } catch (IOException ioe) {\n throw ioe;\n } catch (Throwable e) {\n Activator.getDefault().error(\n \"Unknown exception while opening connection \", e);\n throw new IOException(e.getCause());\n }\n }",
"ClientMetrics getOrCreateMetricsClient(String hostName);",
"public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }",
"public JMXHelper(PSConfigObject psconfig) {\n this.psconfig = psconfig;\n adminUtilHelper = new JMXAdminHelperUtil();\n }",
"private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {\n ObjectName mbeanName = null;\n try {\n mbeanName = new ObjectName(objectName);\n } catch (MalformedObjectNameException e) {\n log.error(\"Unable to create object name from \" + objectName, e);\n return;\n }\n\n MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);\n\n ClientListener listener = new ClientListener(url);\n createMBeanNotificationListener(mbeanName, listener);\n beans.add(mBean);\n }",
"public String getJMXURL() {\n try {\n final JMXServiceURL url = \n JmxServiceUrlFactory.forRmiWithJndiInAppserver(getHost(), Integer.parseInt(getPort()));\n return ( url.toString() );\n }\n catch (final Exception e) {\n throw new RuntimeException (e);\n }\n }",
"public static void agentmain(final String agentArgs) throws IOException {\n LOGGER.log(Level.FINE, \"Configuring Simple-JMX server connector\");\n final Map<String, String> arguments = ArgumentSplitter.split(agentArgs);\n\n // Connection\n final String host = arguments.getOrDefault(ARGUMENT_HOST, \"0.0.0.0\");\n final int port = Integer.parseInt(arguments.getOrDefault(ARGUMENT_PORT, \"3481\"));\n final JMXServiceURL url = new JMXServiceURL(SimpleJmx.PROTOCOL, host, port);\n\n // Environment\n final Map<String, Object> environment = new HashMap<>();\n\n // Environment - authentication\n if (arguments.containsKey(ARGUMENT_LOGIN_CONFIG)) {\n environment.put(Environment.KEY_AUTHENTICATOR, new ExternalAuthenticator(arguments.get(ARGUMENT_LOGIN_CONFIG)));\n } else if (arguments.containsKey(ARGUMENT_PASSWORD_FILE)) {\n environment.put(Environment.KEY_AUTHENTICATOR, new PropertiesAuthenticator(new PropertiesFileLoader(arguments.get(ARGUMENT_PASSWORD_FILE))));\n }\n\n // Environment - access control\n if (arguments.containsKey(ARGUMENT_ACCESS_FILE)) {\n environment.put(Environment.KEY_ACCESSCONTROLLER, new PropertiesAccessController(new PropertiesFileLoader(arguments.get(ARGUMENT_ACCESS_FILE))));\n }\n\n // MBean server\n final MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();\n\n // Server\n LOGGER.log(Level.FINE, \"Starting Simple-JMX server connector\");\n final JMXConnectorServer server = new ServerProvider().newJMXConnectorServer(url, environment, mbeanServer);\n server.start();\n\n LOGGER.log(Level.FINE, \"Registering Simple-JMX server shutdown hook\");\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n try {\n LOGGER.log(Level.FINE, \"Simple-JMX server connector stopping\");\n server.stop();\n LOGGER.log(Level.FINE, \"Simple-JMX server connector stopped\");\n } catch (final IOException e) {\n LOGGER.log(Level.FINE, \"Exception occurred during shutdown of Simple-JMX server.\", e);\n }\n }, \"simple-jmx-shutdown\"));\n LOGGER.log(Level.FINE, \"Simple-JMX server connector started\");\n }",
"public ActiveMqUtils(String url) {\n connectionFactory = getConnectionFactory(url);\n }",
"private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void init(String aURL, boolean aJMSCluster, String aClusterName) {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < MAX_CONNS; lIdx++) {\n\t\t\tmLog(\"Opening client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\tif (!aJMSCluster) {\n\t\t\t\tmClients[lIdx] = new JWebSocketTokenClient();\n\t\t\t} else {\n\t\t\t\tmClients[lIdx] = new JWebSocketTokenClient(new JWebSocketJMSClient(aClusterName));\n\t\t\t}\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.setParam(\"idx\", lIdx);\n\t\t\tlClient.addTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tlClient.open(aURL);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"private void parseJMXConfigXML(String jmxXmlPath) {\n /**\n * Parse the following file\n *\n <JMX xmlns=\"http://wso2.org/projects/carbon/jmx.xml\">\n <StartRMIServer>true</StartRMIServer>\n <HostName>localhost</HostName>\n <RMIRegistryPort>9995</RMIRegistryPort>\n <RMIServerPort>1112</RMIServerPort>\n </JMX>\n *\n */\n String hostName = \"localhost\";\n try {\n hostName = NetworkUtils.getLocalHostname();\n } catch (SocketException ignored) {\n }\n boolean startServer = false;\n int rmiRegistryPort;\n int rmiServerPort;\n try {\n\n DocumentBuilderFactory docBuilderFactory = getSecuredDocumentBuilder();\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n Document doc = docBuilder.parse(new File(jmxXmlPath));\n\n Node jmx = doc.getElementsByTagName(\"JMX\").item(0);\n if (jmx == null) {\n throw new RuntimeException(\"JMX element not found\");\n }\n\n Element jmxEle = (Element) jmx;\n\n if (jmxEle.getElementsByTagName(START_RMI_SERVER).getLength() > 0) {\n Node startRMIServer = jmxEle.getElementsByTagName(START_RMI_SERVER).item(0);\n if (startRMIServer != null) {\n Node item = startRMIServer.getChildNodes().item(0);\n if (item != null) {\n startServer = Boolean.parseBoolean(item.getNodeValue().trim());\n if (!startServer) {\n jmxProperties.setStartServer(false);\n return; // If RMI server is not to be started, then we can simply return\n }\n }\n }\n }\n\n if (jmxEle.getElementsByTagName(JMX_HOST_NAME).getLength() > 0) {\n Node item = jmxEle.getElementsByTagName(JMX_HOST_NAME).item(0);\n if (item != null) {\n item = item.getChildNodes().item(0);\n if (item != null) {\n hostName = item.getNodeValue().trim();\n }\n }\n }\n\n rmiRegistryPort = getPort(JMX_RMI_REGISTRY_PORT, jmxEle);\n rmiServerPort = getPort(JMX_RMI_SERVER_PORT, jmxEle);\n\n jmxProperties.setHostName(hostName);\n jmxProperties.setStartServer(startServer);\n jmxProperties.setRmiRegistryPort(rmiRegistryPort);\n jmxProperties.setRmiServerPort(rmiServerPort);\n } catch (Throwable t) {\n log.fatal(\"Failed to parse jmx.xml\", t);\n }\n\n }",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"private void startMonitoring() {\n executors.startMetrics(monitoring);\n reporter = JmxReporter.forRegistry(monitoring).inDomain(getJmxDomain()).build();\n reporter.start();\n }",
"void startClient(String name, Config.ClientConfig config);",
"public synchronized void startAgent() throws IOException {\r\n setConnectorServer(JMXConnectorServerFactory.newJMXConnectorServer(getUrl(), null, fieldMBeanServer));\r\n getConnectorServer().start();\r\n started.set(true);\r\n }",
"public ConnectionManager() {\r\n\t\tthis(DEFAULT_PORT, true, true);\r\n\t}",
"private void init() {\r\n\t\tif (cn == null) {\r\n\t\t\ttry {\r\n\t\t\t\tcn = new XGConnection(url,login,passwd); // Etape 2 : r�cup�ration de la connexion\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.MINUTES.sleep(1);\r\n\t\t\t\t} catch (InterruptedException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcn.close();// lib�rer ressources de la m�moire.\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ClientWebSocket(String url) {\n try {\n URI endpointURI = new URI(url);\n WebSocketContainer container = ContainerProvider.getWebSocketContainer();\n container.connectToServer(this, endpointURI);\n\n } catch (URISyntaxException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }",
"public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }",
"public void init(ServletConfig conf) throws ServletException {\n super.init(conf);\n \n MBeanServer mBeanServer = null;\n\n Registry reg=null;\n \n // TODO: use config to get the registry port, url, pass, user\n\n \n try {\n if( reg==null )\n reg=LocateRegistry.createRegistry(1099);\n } catch( Throwable t ) {\n log(\"Can't start registry - it may be already started: \" + t);\n }\n \n try {\n mBeanServer = null;\n if (MBeanServerFactory.findMBeanServer(null).size() > 0) {\n mBeanServer =\n (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);\n } else {\n mBeanServer = MBeanServerFactory.createMBeanServer();\n }\n } catch( Throwable t ) {\n log(\"Can't get the mbean server \" + t);\n return;\n }\n \n try {\n JMXServiceURL address = new JMXServiceURL(\"service:jmx:rmi://rmiHost/jndi/rmi://localhost:1099/jndiPath\");\n cntorServer = \n JMXConnectorServerFactory.newJMXConnectorServer(address, null, mBeanServer);\n cntorServer.start();\n } catch (Throwable e) {\n log(\"Can't register jmx connector \", e);\n }\n }",
"public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}",
"public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void connectUsingToken() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(sslContext.getSocketFactory());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public RMIClient() {\n if(ipAdress == null){\n ipAdress = \"127.0.0.1\";\n }\n try {\n loginRegistry = LocateRegistry.getRegistry(ipAdress, 421);\n mainScreenRegistry = LocateRegistry.getRegistry(ipAdress, 422);\n } catch (RemoteException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (loginRegistry != null) {\n try {\n loginProvider = (ILoginProvider) loginRegistry.lookup(\"loginProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n if (mainScreenRegistry != null) {\n try {\n mainScreenProvider = (IMainScreenProvider) mainScreenRegistry.lookup(\"mainScreenProvider\");\n } catch (RemoteException | NotBoundException ex) {\n StageController.getInstance().popup(\"Server connection\", false, \"server connection failed.\");\n Logger.getLogger(RMIClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public XmlRpcSession createXmlRpcSession(String url);",
"public ClientSoapMBean() {\r\n\t}",
"private void configureMqtt() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"ws://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"tcp://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTT_PORT;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tpersistence = new MemoryPersistence();\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, persistence);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void loadConfig(String configFile) throws Exception {\n\t\t// System.out.println(\"Loading configuration from file \" + configFile);\n\t\tProperties props = new Properties();\n\t\tFileInputStream fis = new FileInputStream(configFile);\n\t\tprops.load(fis);\n\t\tfis.close();\n\n\t\tfor (String key : props.stringPropertyNames()) {\n\t\t\tif (key.startsWith(\"engine.\")) {\n\t\t\t\tif (key.startsWith(\"engine.jmxport.\")) {\n\t\t\t\t\tString port = props.getProperty(key, \"\").trim();\n\t\t\t\t\tif (port.length() > 0) {\n\t\t\t\t\t\tString host = props.getProperty(key.replaceFirst(\"jmxport\", \"jmxhost\"), \"localhost\").trim();\n\t\t\t\t\t\tString user = props.getProperty(key.replaceFirst(\"jmxport\", \"username\"), \"\").trim();\n\t\t\t\t\t\tString passwd = props.getProperty(key.replaceFirst(\"jmxport\", \"password\"), \"\").trim();\n\t\t\t\t\t\tString name = props.getProperty(key.replaceFirst(\"jmxport\", \"name\"), \"BE\").trim();\n\t\t\t\t\t\tif (user.length() == 0 || passwd.length() == 0) {\n\t\t\t\t\t\t\t// do not use authentication if user or password is\n\t\t\t\t\t\t\t// blank\n\t\t\t\t\t\t\tuser = null;\n\t\t\t\t\t\t\tpasswd = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString jmxKey = host + \":\" + port;\n\t\t\t\t\t\tif (!clientMap.containsKey(jmxKey)) {\n\t\t\t\t\t\t\t// connect to JMX and initialize it for stat\n\t\t\t\t\t\t\t// collection\n\t\t\t\t\t\t\t// System.out.println(String.format(\"Connect to\n\t\t\t\t\t\t\t// engine %s at %s:%s\", name, host, port));\n\t\t\t\t\t\t\tClient c = new Client(name, host, Integer.parseInt(port), user, passwd);\n\t\t\t\t\t\t\tclientMap.put(jmxKey, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (key.startsWith(\"report.\")) {\n\t\t\t\tString type = props.getProperty(key, \"\").trim();\n\t\t\t\tif (type.length() > 0) {\n\t\t\t\t\tif (!statTypes.containsKey(type)) {\n\t\t\t\t\t\t// default no special includes, i.e., report all\n\t\t\t\t\t\t// entities\n\t\t\t\t\t\tstatTypes.put(type, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Add report type \" + type);\n\t\t\t} else if (key.startsWith(\"include.\")) {\n\t\t\t\t// add included entity pattern to specified stat type\n\t\t\t\tString[] tokens = key.split(\"\\\\.\");\n\t\t\t\tSet<String> includes = statTypes.get(tokens[1]);\n\t\t\t\tif (null == includes) {\n\t\t\t\t\tincludes = new HashSet<String>();\n\t\t\t\t\tstatTypes.put(tokens[1], includes);\n\t\t\t\t}\n\t\t\t\tString pattern = props.getProperty(key, \"\").trim();\n\t\t\t\tif (pattern.length() > 0) {\n\t\t\t\t\tincludes.add(pattern);\n\t\t\t\t}\n\t\t\t\t// System.out.println(String.format(\"Report %s includes entity\n\t\t\t\t// pattern %s\", tokens[1], pattern));\n\t\t\t} else if (key.equals(\"interval\")) {\n\t\t\t\tinterval = Integer.parseInt(props.getProperty(key, \"30\").trim());\n\t\t\t\t// System.out.println(\"Write stats every \" + interval + \"\n\t\t\t\t// seconds\");\n\t\t\t} else if (key.equals(\"ignoreInternalEntity\")) {\n\t\t\t\tignoreInternalEntity = Boolean.parseBoolean(props.getProperty(key, \"false\").trim());\n\t\t\t\tif (ignoreInternalEntity) {\n\t\t\t\t\t// System.out.println(\"Ignore stats of BE internal\n\t\t\t\t\t// entities\");\n\t\t\t\t}\n\t\t\t} else if (key.equals(\"reportFolder\")) {\n\t\t\t\treportFolder = props.getProperty(key, \"\").trim();\n\t\t\t\tif (0 == reportFolder.length()) {\n\t\t\t\t\treportFolder = null;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Statistics report is in folder \" + reportFolder);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ignore config property \" + key);\n\t\t\t}\n\t\t}\n\t}",
"public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }",
"private void init() {\n\t\tJedisPoolConfig config = new JedisPoolConfig();\r\n\t\tconfig.setMaxTotal(1024);\r\n\t\tconfig.setMaxIdle(200);\r\n\t\tconfig.setMaxWaitMillis(1000);\r\n\t\tconfig.setTestOnBorrow(false);\r\n\t\tconfig.setTestOnReturn(true);\r\n\t\tString ip = \"sg-redis-new.jo1mjq.0001.apse1.cache.amazonaws.com\";\r\n\t\tint port = 6379;\r\n\t\tjedisPool = new JedisPool(config, ip, port);\r\n\t\tlog.info(\"init redis pool[ip:\" + ip + \",port:\" + port + \"]\");\r\n\t}",
"private void startInternally() {\n log.debug(\"Start internally called.\");\n\n try {\n LumenFacade lumenFacade = new LumenFacadeImpl(LumenConnection\n .getInstance());\n spine = new JmsSpine(JmsClient.REMOTE, SpineConstants.LUMEN_MEDIATOR);\n lumenClient = new LumenClient(lumenFacade, spine);\n lumenClient.start();\n }\n catch (SpineException e) {\n log.error(\"Problem starting the Lumen process: {}\", e.getMessage());\n e.printStackTrace();\n }\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n server = (IAQuizApp) Naming.lookup(\"rmi://localhost:3000/server_quizapp\");\n } catch (NotBoundException ex) {\n Logger.getLogger(AdminHomeController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (MalformedURLException ex) {\n Logger.getLogger(AdminHomeController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (RemoteException ex) {\n Logger.getLogger(AdminHomeController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void setupAndConnect() {\n URL url = getUrl(this.endpointUrl);\n connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection();\n HttpURLConnection.setFollowRedirects(true);\n } catch (IOException e) {\n LOG.severe(\"Error connecting to Url : \" + url);\n LOG.severe(e.toString());\n }\n }",
"public static synchronized void init(Context context, MMXClientConfig config) {\n if (sInstance == null) {\n Log.i(TAG, \"App=\"+context.getPackageName()+\", MMX SDK=\"+BuildConfig.VERSION_NAME+\n \", protocol=\"+Constants.MMX_VERSION_MAJOR+\".\"+Constants.MMX_VERSION_MINOR);\n sInstance = new MMX(context, config);\n } else {\n Log.w(TAG, \"MMX.init(): MMX has already been initialized. Ignoring this call.\");\n }\n MMXClient.registerWakeupListener(context, MMX.MMXWakeupListener.class);\n }",
"public void initializeRPC(){\n try{XmlRpcClientConfigImpl configuration = new XmlRpcClientConfigImpl();\n configuration.setServerURL(new URL(\"http://\"+RunnerRepository.host+\n \":\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"));\n configuration.setEnabledForExtensions(true);\n configuration.setBasicPassword(RunnerRepository.password);\n configuration.setBasicUserName(RunnerRepository.user);\n client = new XmlRpcClient();\n client.setConfig(configuration);\n System.out.println(\"XMLRPC Client for testbed initialized: \"+client);}\n catch(Exception e){System.out.println(\"Could not conect to \"+\n RunnerRepository.host+\" :\"+RunnerRepository.getCentralEnginePort()+\"/ra/\"+\n \"for RPC client initialization\");}\n }",
"public void newConnection(String hostname, int port) throws Exception;",
"private void connectToMaster(int masterPort) throws Exception {\n // Getting the registry \n Registry registry = LocateRegistry.getRegistry(null, masterPort); \n \n // Looking up the registry for the remote object \n this.master = (Master) registry.lookup(\"master\"); \n }",
"private void createAndConnectJabberClient() throws Exception\n {\n Properties properties = (Properties) muleContext.getRegistry().lookupObject(\"properties\");\n String host = properties.getProperty(\"host\");\n conversationPartner = properties.getProperty(\"conversationPartner\");\n String password = properties.getProperty(\"conversationPartnerPassword\");\n \n // also save the jid that is used to connect to the jabber server\n muleJabberUserId = properties.getProperty(\"user\") + \"@\" + host;\n \n jabberClient = new JabberClient(host, conversationPartner, password);\n configureJabberClient(jabberClient);\n jabberClient.connect(jabberLatch);\n \n assertTrue(jabberLatch.await(STARTUP_TIMEOUT, TimeUnit.MILLISECONDS));\n }",
"public void connect( String id, String url ) throws MojoExecutionException\n {\n Repository repository = new Repository( id, url );\n\n try\n {\n m_wagon = m_wagonManager.getWagon( repository );\n }\n catch ( UnsupportedProtocolException e )\n {\n throw new MojoExecutionException( \"Unsupported protocol: '\" + repository.getProtocol() + \"'\", e );\n }\n catch ( WagonException e )\n {\n throw new MojoExecutionException( \"Unable to configure Wagon: '\" + repository.getProtocol() + \"'\", e );\n }\n\n try\n {\n ProxyInfo proxyInfo = getProxyInfo( m_settings );\n if ( proxyInfo != null )\n {\n m_wagon.connect( repository, m_wagonManager.getAuthenticationInfo( id ), proxyInfo );\n }\n else\n {\n m_wagon.connect( repository, m_wagonManager.getAuthenticationInfo( id ) );\n }\n }\n catch ( ConnectionException e )\n {\n throw new MojoExecutionException( \"Connection failed\", e );\n }\n catch ( AuthenticationException e )\n {\n throw new MojoExecutionException( \"Authentication failed\", e );\n }\n }",
"public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }",
"public AuctionHouseProxy(String hostName, int port){\n try {\n coms = new CommunicationService(hostName, port);\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public static void connect() {\n \t\tconnPool.start();\n \t}",
"public JiraManagerWebServiceDelegate() {\r\n this(DEFAULT_CONFIG_PATH, DEFAULT_NAMESPACE);\r\n }",
"private void startPortManager() throws GrpcException {\n\t\t/* start PortManager */\t\t\n\t\ttry {\n\t\t\tinformationManager.lockInformationManager();\n\t\t\t\n\t\t\tProperties localHostInfo =\n\t\t\t\t(Properties) informationManager.getLocalMachineInfo();\n\t\t\t\n\t\t\t/* PortManager without SSL */\n\t\t\tint port = Integer.parseInt((String) localHostInfo.get(\n\t\t\t\tNgInformationManager.KEY_CLIENT_LISTEN_PORT_RAW));\n\t\t\tportManagerNoSecure = new PortManager(this, false, port);\n\n\t\t\t/* PortManager with authonly is not implemented. */\n\n\t\t\t/* PortManager with GSI */\n\t\t\tport = Integer.parseInt((String) localHostInfo.get(\n\t\t\t\t\tNgInformationManager.KEY_CLIENT_LISTEN_PORT_GSI));\t\n\t\t\tportManagerGSI = new PortManager(this, PortManager.CRYPT_GSI, port);\n\n\t\t\t/* PortManager with SSL */\n\t\t\tport = Integer.parseInt((String) localHostInfo.get(\n\t\t\t\t\tNgInformationManager.KEY_CLIENT_LISTEN_PORT_SSL));\t\n\t\t\tportManagerSSL = new PortManager(this, PortManager.CRYPT_SSL, port);\n\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new NgInitializeGrpcClientException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new NgIOException(e);\n\t\t} finally {\n\t\t\tinformationManager.unlockInformationManager();\n\t\t}\n\t}",
"public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}",
"public final void init() throws Exception {\n // Get the Platform MBean Server\n mbs = MBeanServerFactory.createMBeanServer();\n\n // Construct the ObjectName for the Hello MBean\n name = new ObjectName(\n \"org.apache.harmony.test.func.api.javax.management:type=Hello\");\n\n // Create the Hello MBean\n hello = new Hello();\n\n // Register the Hello MBean\n mbs.registerMBean(hello, name);\n\n // Add notification listener\n mbs.addNotificationListener(name, this, null, \"handback\");\n\n // Wait until the notification is received.\n freeze(3000);\n\n // Invoke sayHello method\n mbs.invoke(name, \"sayHello\", new Object[0], new String[0]);\n }",
"public void connect() throws Exception\n\t{\n\t\tHostnameVerifier hv = new HostnameVerifier()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic boolean verify(String urlHostName, SSLSession session)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\ttrustAllHttpsCertificates();\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t\t// These following methods have to be called in this order.\n\t\tinitSvcInstRef();\n\t\tinitVimPort();\n\t\tinitServiceContent();\n\t\tvimPort.login(serviceContent.getSessionManager(), user, password, null);\n\t\tinitPropertyCollector();\n\t\tinitRootFolder();\n\t\tisConnected = true;\n\t}",
"private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\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 void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"public ExternalNodeServiceClient() {\n this(ExternalNodeService.DEFAULT_PORT);\n }",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"public void callMaster(String addrutil, String portutil);",
"private MemCachedClient initMemCachedClient(String[] servers, int maxConn, boolean sanitizeKeys) {\n\t\tInteger[] weights = new Integer[servers.length];\n\t\tfor (int i = 0; i < weights.length; i++) {\n\t\t\tweights[i] = 3;\n\t\t}\n\t\t// { 3 };\n\t\t// grab an instance of our connection pool\n\t\t// String server = StringUtils.join(servers);\n\t\t// int hasCode = server.hashCode();\n\t\tString poolName = \"pool\" + servers.hashCode();\n\t\t// logger.info(\"init poolName:\" + poolName + \" server:\" + server);\n\t\tSockIOPool pool = SockIOPool.getInstance(poolName);\n\n\t\tMemCachedClient mcc = new MemCachedClient(poolName);\n\n\t\t// mcc.setErrorHandler(new ErrorHandlerImpl());\n\t\t// set the servers and the weights\n\t\tpool.setServers(servers);\n\t\tpool.setWeights(weights);\n\n\t\t// set some basic pool settings\n\t\t// 5 initial, 5 min, and 250 max conns\n\t\t// and set the max idle time for a conn\n\t\t// to 6 hours\n\t\tpool.setInitConn(5);\n\t\tpool.setMinConn(5);\n\t\tpool.setMaxConn(maxConn);\n\t\tpool.setMaxIdle(1000 * 60 * 60 * 6);\n\n\t\t// set the sleep for the maint thread\n\t\t// it will wake up every x seconds and\n\t\t// maintain the pool size\n\t\tpool.setMaintSleep(30 * 1000);\n\n\t\t// set some TCP settings\n\t\t// disable nagle\n\t\t// set the read timeout to 3 secs\n\t\tpool.setNagle(false);\n\t\tpool.setSocketTO(3000);\n\t\tpool.setSocketConnectTO(0);\n\n\t\t// initialize the connection pool\n\t\tpool.initialize();\n\n\t\tmcc.setSanitizeKeys(sanitizeKeys);// 不要对key进行url编码\n\t\t// logger.info(\"connected poolName:\" + poolName + \" server:\" + server + \" maxConn:\" + maxConn);\n\t\t// lets set some compression on for the client\n\t\t// compress anything larger than 64k\n\t\t// mcc.setCompressEnable(true);\n\t\t// mcc.setCompressThreshold(64 * 1024);\n\t\treturn mcc;\n\t}",
"public void connect() throws IOException {\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t // Parse url (rsuite:/http://host/user/session/moId)\r\n\t\t\t\t log.println(\"INCOMING URL IS: \" + url);\r\n\t\t\t\t log.println(\"PARSING URL TO GET PARAMETERS...\");\r\n\t\t\t\t \r\n\t\t\t\t // url initially comes through with extension to avoid dialog window\r\n\t\t\t\t docURL = RSuiteProtocolUtils.parseRSuiteProtocolURL(url);\r\n\t\t\t\t host = docURL.getHost();\r\n\t\t\t\t protocol = docURL.getProtocol().concat(\"//\");\r\n\t\t\t\t username = docURL.getUserName();\r\n\t\t\t\t sessionKey = docURL.getSessionKey();\r\n\t\t\t\t moId = docURL.getMoId();\r\n\t\t\t\t // set the connection so we have it later\r\n\t\t\t\t _connection = this;\r\n\r\n\t\t\t\t log.println(\"HOST: \" + host);\r\n\t\t\t\t log.println(\"USERNAME: \" + username);\r\n\t\t\t\t log.println(\"SESSION KEY: \" + sessionKey);\r\n\t\t\t\t log.println(\"MOID: \" + moId);\r\n\t\t\t\t \r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t // CONNECT TO RSUITE IF SESSION NOT PRESENT\t\t\t\t \r\n\t\t\t\t log.println(\"CONNECTION TO RSUITE...\");\r\n\t\t\t\t if(sessionKey == null){\r\n\t\t\t\t\t log.println(\"SESSION DOES NOT EXIST, PROMPT FOR LOGIN\");\r\n\t\t\t\t\t RSuiteLoginDialog login = new RSuiteLoginDialog();\r\n\t\t\t\t\t login.setLocationRelativeTo(null);\r\n\t\t\t\t\t login.setVisible(true);\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t // SESSION WAS PASSED IN, INITIALIZE REPOSITORY\r\n\t\t\t\t if(repository == null){\r\n\t\t\t\t\t log.println(\"SESSION PASSED IN BY URL, INITIALIZE REPOSITORY\");\r\n\t\t\t\t\t repository = new RsuiteRepositoryImpl(username, \"\", host);\r\n\t\t\t\t\t log.println(\"REPOSITORY INITIALIZED.\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t // NO NEED TO LOGIN SINCE WE HAVE SESSION KEY ALREADY\r\n\t\t\t\t\t log.println(\"SETTING THE REPOSITORY SESSION KEY...\");\r\n\t\t\t\t\t repository.sessionKey = sessionKey;\r\n\t\t\t\t\t log.println(\"SESSION KEY SET. NO NEED FOR LOGIN\");\r\n\t\t\t\t }\t\t\t\t \r\n\t\t\t}\r\n\t\t\tcatch (Throwable t) {\r\n\t\t\t if (log != null) {\r\n\t\t\t t.printStackTrace(log);\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t}",
"public void init() {\n configuration.init();\n \n //Connections connections = configuration.getBroker().getConnections(\"topic\");\n Connections connections = configuration.getBrokerPool().getBroker().getConnections(\"topic\");\n \n if (connections == null) {\n handleException(\"Couldn't find the connection factor: \" + \"topic\");\n }\n \n sensorCatalog = new SensorCatalog();\n clientCatalog = new ClientCatalog();\n \n nodeCatalog = new NodeCatalog();\n \n updateManager = new UpdateManager(configuration, sensorCatalog, this);\n updateManager.init();\n \n endpointAllocator = new EndpointAllocator(configuration, nodeCatalog);\n\n registry = new JCRRegistry(this);\n registry.init();\n\n // Initialize Public-End-Point\n if(!isPublicEndPointInit) {\n \tinitPublicEndpoint();\n }\n }",
"public String getURL(){\r\n\t\tString url = \"rmi://\";\r\n\t\turl += this.getAddress()+\":\"+this.getPort()+\"/\";\r\n\t\treturn url;\r\n\t}",
"private void connectServerSide( URL url ) throws IOException\n\t{\n\t\tString host = url.getHost();\n\t\tint port = url.getPort();\n\t\tif ( port == -1 )\n\t\t\tport = 554;\n\n\t\tlog.debug( \"Connecting to '\" + host + \"' \" + port );\n\n\t\t// Create TCP/IP connector.\n\t\tSocketConnector socketConnector = new SocketConnector();\n\t\tIoProtocolConnector connector = new IoProtocolConnector( socketConnector );\n\n\t\tServerSideProvider serverSideProvider = new ServerSideProvider();\n\n\t\tlog.debug( \"Created new serverSideProvider\" );\n\n\t\t// Start communication.\n\t\tlog.debug( \"Trying to connect.\" );\n\t\tserverSession = connector.connect( new InetSocketAddress( host, port ),\n\t\t\t\tserverSideProvider );\n\n\t\tlog.debug( \"Connected!\" );\n\n\t\t// Save current ProxyHandler into the ProtocolSession\n\t\tserverSession.setAttribute( \"proxySession\", this );\n\n\t\tSystem.out.println( \"Server session: \" + serverSession.getAttributeKeys() );\n\t}",
"public boolean connect(String url, String proxy) {\n mRLIURL = url;\n //push it into the internal properties object\n mConnectProps.setProperty(URL_KEY,url);\n if(proxy != null){\n mConnectProps.setProperty(PROXY_KEY, proxy);\n }\n try {\n mRLS = (proxy == null) ?\n new RLSClient(url) : //proxy is picked up from default loc /tmp\n new RLSClient(url, proxy);\n\n //set RLI timeout\n mRLS.SetTimeout(mTimeout);\n\n //connect is only successful if we have\n //successfully connected to the LRC\n mRLI = mRLS.getRLI();\n\n }\n catch (RLSException e) {\n mLogger.log(\"RLS Exception\", e,LogManager.ERROR_MESSAGE_LEVEL);\n return false;\n }\n return true;\n }",
"public ServerMonitor(boolean publish) {\r\n\t\tthis.domain = JMX_DOMAIN_NAME;\r\n\t\tthis.type = JMX_TYPE_NAME;\r\n\t\t\r\n\t\tif(publish) {\r\n\t\t\tregister();\r\n\t\t}\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();\r\n\t\tversion = getClass().getPackage().getImplementationVersion();\r\n\t\tallRequestsTracker = new RequestsTracker();\r\n\t\trecentRequestsTracker = new RequestsTracker();\r\n\t\texeService = Executors.newSingleThreadScheduledExecutor();\r\n\t\tmeter = MeterMetric.newMeter(exeService, \"requests\", TimeUnit.SECONDS);\r\n\t}",
"void init() throws CouldNotInitializeConnectionPoolException;",
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }",
"public String getJMXConnectorURL(final JMXTransportProtocol protocol) throws JMException {\n return RMJMXHelper.getInstance().getAddress(protocol).toString();\n }",
"private HttpURLConnection getConnection(String urlString, String... arguments)\n throws RedmineException\n {\n HttpURLConnection connection = null;\n\n try\n {\n if (serverUseSSL)\n {\n URL url = new URL(\"https://\"+serverName+\":\"+serverPort+urlString+\".xml\"+(((arguments != null) && (arguments.length > 0)) ? \"?\"+StringUtils.join(arguments,'&') : \"\"));\n HttpsURLConnection httpsConnection = (HttpsURLConnection)url.openConnection();\n httpsConnection.setHostnameVerifier(anyHostnameVerifier);\n connection = httpsConnection;\n }\n else\n {\n URL url = new URL(\"http://\"+serverName+\":\"+serverPort+urlString+\".xml\"+(((arguments != null) && (arguments.length > 0)) ? \"?\"+StringUtils.join(arguments,'&') : \"\"));\n HttpURLConnection httpConnection = (HttpURLConnection)url.openConnection();\n connection = httpConnection;\n }\n }\n catch (UnknownHostException exception)\n {\n throw new RedmineException(\"Unknown host '\"+serverName+\"'\");\n }\n catch (IOException exception)\n {\n throw new RedmineException(\"Connect to server fail\",exception);\n }\n\n return connection;\n }",
"public void setupWebServers(String serverURL){\n if(rwsServer == null || csaServer == null){\n if(serverURL == null || serverURL.length()==0){\n return; //nothing to do\n }\n\n String webServerURL = getWebServiceURL(serverURL);\n if (webServerURL == null) return; //nothing to do.\n\n rwsServer = URI.create(webServerURL);\n csaServer = URI.create(webServerURL);\n\n }\n\n }",
"public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }",
"public ResourceManagerServiceClient(String url) throws ResourceManagerServiceClientCreationException {\r\n this(getURL(url));\r\n }",
"public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}",
"private static MBeanServerForwarder configureJmxAuthorization(Map<String, Object> env)\r\n {\n String authzProxyClass = System.getProperty(\"cassandra.jmx.authorizer\");\r\n if (authzProxyClass != null)\r\n {\r\n final InvocationHandler handler = FBUtilities.construct(authzProxyClass, \"JMX authz proxy\");\r\n final Class[] interfaces = { MBeanServerForwarder.class };\r\n\r\n Object proxy = Proxy.newProxyInstance(MBeanServerForwarder.class.getClassLoader(), interfaces, handler);\r\n return MBeanServerForwarder.class.cast(proxy);\r\n }\r\n else\r\n {\r\n String accessFile = System.getProperty(\"com.sun.management.jmxremote.access.file\");\r\n if (accessFile != null)\r\n {\r\n env.put(\"jmx.remote.x.access.file\", accessFile);\r\n }\r\n return null;\r\n }\r\n }",
"public void instantiation() {\n TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();\n\n // BEGIN: com.azure.monitor.query.MetricsQueryClient.instantiation\n MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n // END: com.azure.monitor.query.MetricsQueryClient.instantiation\n\n // BEGIN: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n // END: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n }",
"public JiraManagerWebServiceDelegate(JiraManagementServiceClient serviceClient, Log log) {\r\n Util.checkNull(\"serviceClient\", serviceClient);\r\n\r\n this.serviceClient = serviceClient;\r\n this.log = log;\r\n }",
"public static JMXConnector getJmxConnector(final String host,\n final String service, final String user, final String pass)\n throws IOException {\n return getJmxConnector(\n host,\n service,\n user,\n pass,\n DEFAULT_JMX_RMI_PORT,\n DEFAULT_JNDI_PORT);\n }",
"public OaiPmhServer(String url) {\n this.builder = new QueryBuilder(url);\n this.reader = new SAXReader();\n }",
"private void initMSDPService() {\n // Connect to DvKit service\n DvKit.getInstance().connect(getApplicationContext(), new IDvKitConnectCallback() {\n // When the DvKit service is successfully connected\n @Override\n public void onConnect(int i) {\n addLog(\"init MSDPService done\");\n // Get Virtual Device Service Instance\n mVirtualDeviceManager = (VirtualDeviceManager) DvKit.getInstance().getKitService(VIRTUAL_DEVICE_CLASS);\n // Register virtual appliance observer\n mVirtualDeviceManager.subscribe(EnumSet.of(VIRTUALDEVICE), observer);\n }\n\n @Override\n public void onDisconnect() {\n\n }\n });\n }",
"public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public HttpListener(JTabbedPane _notebook, String name, int listenPort, String host,\n int targetPort, String proxyHost, int proxyPort,\n SlowLinkSimulator slowLink, Profile[] profiles, boolean httpsTargetProtool) {\n notebook = _notebook;\n this.mockDataProfiles = profiles;\n if (profiles != null && profiles.length > 0) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\" [\").append(profiles[0]);\n for (int i = 1; i < profiles.length; i++) {\n sb.append(\",\").append(profiles[i]);\n }\n sb.append(\"]\");\n profileNames = sb.toString();\n } else {\n profileNames = \"\";\n }\n\n if (name == null) {\n name = \"HTTP Port \" + listenPort;\n }\n\n // proxy\n HTTPProxyHost = proxyHost;\n HTTPProxyPort = proxyPort;\n\n // set the slow link to the passed down link\n if (slowLink != null) {\n this.slowLink = slowLink;\n } else {\n\n // or make up a no-op one.\n this.slowLink = new SlowLinkSimulator(0, 0);\n }\n this.setLayout(new BorderLayout());\n\n // 1st component is just a row of labels and 1-line entry fields\n // ///////////////////////////////////////////////////////////////////\n JPanel topControls = new JPanel();\n topControls.setLayout(new BoxLayout(topControls, BoxLayout.X_AXIS));\n topControls.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n final String start = \"Start\";\n topControls.add(stopButton = new JButton(start));\n topControls.add(Box.createRigidArea(new Dimension(5, 0)));\n topControls.add(new JLabel(\" \" + \"Listen Port:\" + \" \", SwingConstants.RIGHT));\n topControls.add(portField = new JTextField(\"\" + listenPort, 4));\n portField.setMinimumSize(new Dimension(50, 10));\n topControls.add(new JLabel(\" \" + \"Host:\", SwingConstants.RIGHT));\n topControls.add(hostField = new JTextField(host, 30));\n hostField.setMinimumSize(new Dimension(110, 10));\n topControls.add(new JLabel(\" \" + \"Port:\" + \" \", SwingConstants.RIGHT));\n topControls.add(tPortField = new JTextField(\"\" + targetPort, 4));\n tPortField.setMinimumSize(new Dimension(50, 10));\n\n useProfilesCheckBox = new JCheckBox(\"Use Profiles\");\n useProfilesCheckBox.setSelected(profiles != null && profiles.length != 0);\n useProfilesCheckBox.setEnabled(false);\n topControls.add(useProfilesCheckBox);\n\n httpsTarget = new JCheckBox(\"HTTPS-Target\");\n httpsTarget.setSelected(httpsTargetProtool);\n httpsTarget.setEnabled(false);\n topControls.add(httpsTarget);\n\n cloneHostHeader = new JCheckBox(\"Clone Host Header\");\n topControls.add(cloneHostHeader);\n\n if (HTTPProxyHost != null) {\n useProxy = new JCheckBox(\"Use Proxy: \" + HTTPProxyHost + \":\" + proxyPort);\n useProxy.setSelected(HTTPProxyHost != null);\n topControls.add(useProxy);\n }\n\n portField.setEditable(false);\n portField.setMaximumSize(new Dimension(50, Short.MAX_VALUE));\n hostField.setEditable(false);\n hostField.setMaximumSize(new Dimension(85, Short.MAX_VALUE));\n tPortField.setEditable(false);\n tPortField.setMaximumSize(new Dimension(50, Short.MAX_VALUE));\n stopButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n if (\"Stop\".equals(event.getActionCommand())) {\n stop();\n }\n if (start.equals(event.getActionCommand())) {\n start();\n }\n }\n });\n\n JPanel top = new JPanel(new BorderLayout());\n top.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n top.add(new JLabel(\"<html><b>Profiles: \" + profileNames + \"</b></html>\"),\n BorderLayout.NORTH);\n top.add(topControls, BorderLayout.CENTER);\n\n this.add(top, BorderLayout.NORTH);\n\n // 2nd component is a split pane with a table on the top\n // and the request/response text areas on the bottom\n // ///////////////////////////////////////////////////////////////////\n tableModel = new HttpConnectionTableModel();\n connectionTable = new JTable();\n connectionTable.setModel(tableModel);\n connectionTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n connectionTable.getColumnModel().getColumn(0).setCellRenderer(new ConnectionCellRenderer());\n\n // Reduce the STATE column and increase the REQ column\n TableColumn col;\n col = connectionTable.getColumnModel().getColumn(Main.STATE_COLUMN);\n col.setPreferredWidth(col.getPreferredWidth() / 2);\n col = connectionTable.getColumnModel().getColumn(Main.REQ_COLUMN);\n col.setPreferredWidth(col.getPreferredWidth() * 2);\n ListSelectionModel sel = connectionTable.getSelectionModel();\n sel.addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent event) {\n if (event.getValueIsAdjusting()) {\n return;\n }\n ListSelectionModel m = (ListSelectionModel) event.getSource();\n int divLoc = outPane.getDividerLocation();\n if (m.isSelectionEmpty()) {\n setLeft(new JLabel(\" Waiting for Connection...\"));\n setRight(null);\n removeButton.setEnabled(false);\n removeAllButton.setEnabled(false);\n saveButton.setEnabled(false);\n saveToClipboardButton.setEnabled(false);\n addToProfileButton.setEnabled(false);\n profileComboBox.setEnabled(false);\n } else {\n int row = connectionTable.getSelectedRow();\n if (row == 0) {\n if (tableModel.size() == 0) {\n setLeft(new JLabel(\" Waiting for connection...\"));\n setRight(null);\n removeButton.setEnabled(false);\n removeAllButton.setEnabled(false);\n saveButton.setEnabled(false);\n saveToClipboardButton.setEnabled(false);\n profileComboBox.setEnabled(false);\n addToProfileButton.setEnabled(false);\n } else {\n HttpConnection conn = tableModel.lastConnection();\n\n formatJsonIfNeeded(conn);\n setLeft(conn.inputScroll);\n setRight(conn.outputScroll);\n removeButton.setEnabled(false);\n removeAllButton.setEnabled(true);\n saveButton.setEnabled(true);\n saveToClipboardButton.setEnabled(true);\n profileComboBox.setEnabled(true);\n addToProfileButton.setEnabled(true);\n }\n } else {\n HttpConnection conn = tableModel.getConnectionByRow(row);\n\n formatJsonIfNeeded(conn);\n setLeft(conn.inputScroll);\n setRight(conn.outputScroll);\n removeButton.setEnabled(true);\n removeAllButton.setEnabled(true);\n saveButton.setEnabled(true);\n saveToClipboardButton.setEnabled(true);\n profileComboBox.setEnabled(true);\n addToProfileButton.setEnabled(true);\n }\n }\n outPane.setDividerLocation(divLoc);\n }\n });\n JPanel tablePane = new JPanel();\n tablePane.setLayout(new BorderLayout());\n JScrollPane tableScrollPane = new JScrollPane();\n tableScrollPane.setViewportView(connectionTable);\n tablePane.add(tableScrollPane, BorderLayout.CENTER);\n JPanel buttons = new JPanel();\n buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));\n buttons.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n final String removeSelected = \"Remove Selected\";\n buttons.add(removeButton = new JButton(removeSelected));\n buttons.add(Box.createRigidArea(new Dimension(5, 0)));\n final String removeAll = \"Remove All\";\n buttons.add(removeAllButton = new JButton(removeAll));\n tablePane.add(buttons, BorderLayout.SOUTH);\n removeButton.setEnabled(false);\n removeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n if (removeSelected.equals(event.getActionCommand())) {\n remove();\n }\n }\n });\n removeAllButton.setEnabled(false);\n removeAllButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n if (removeAll.equals(event.getActionCommand())) {\n removeAll();\n }\n }\n });\n\n // Add Response Section\n // ///////////////////////////////////////////////////////////////////\n JPanel pane2 = new JPanel();\n pane2.setLayout(new BorderLayout());\n leftPanel = new JPanel();\n leftPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n leftPanel.add(new JLabel(\" \" + \"Request\"));\n leftPanel.add(new JLabel(\" \" + \"Waiting for connection\"));\n rightPanel = new JPanel();\n rightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.Y_AXIS));\n rightPanel.add(new JLabel(\" \" + \"Response\"));\n rightPanel.add(new JLabel(\"\"));\n outPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, rightPanel);\n outPane.setDividerSize(4);\n outPane.setResizeWeight(0.5);\n pane2.add(outPane, BorderLayout.CENTER);\n JPanel bottomButtons = new JPanel();\n bottomButtons.setLayout(new BoxLayout(bottomButtons, BoxLayout.X_AXIS));\n bottomButtons.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n bottomButtons.add(jsonFormatBox = new JCheckBox(\"JSON Format\"));\n bottomButtons.add(Box.createRigidArea(new Dimension(5, 0)));\n final String save = \"Save\";\n bottomButtons.add(saveButton = new JButton(save));\n bottomButtons.add(saveToClipboardButton = new JButton(\"Save to clipboard\"));\n bottomButtons.add(Box.createRigidArea(new Dimension(5, 0)));\n final String addToProfile = \"Add to Profile\";\n bottomButtons.add(addToProfileButton = new JButton(addToProfile));\n bottomButtons.add(Box.createRigidArea(new Dimension(5, 0)));\n bottomButtons.add(profileComboBox = new JComboBox(createProfileListData()));\n bottomButtons.add(Box.createRigidArea(new Dimension(5, 0)));\n final String resend = \"Resend\";\n bottomButtons.add(resendButton = new JButton(resend));\n bottomButtons.add(Box.createHorizontalGlue());\n final String switchStr = \"Switch Layout\";\n bottomButtons.add(switchButton = new JButton(switchStr));\n bottomButtons.add(Box.createRigidArea(new Dimension(5, 0)));\n final String close = \"Close\";\n bottomButtons.add(closeButton = new JButton(close));\n pane2.add(bottomButtons, BorderLayout.SOUTH);\n\n jsonFormatBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ListSelectionModel lsm = connectionTable.getSelectionModel();\n int row = lsm.getLeadSelectionIndex();\n if (row != -1 && tableModel.size() != 0) {\n HttpConnection conn = null;\n if (row == 0) {\n // recent\n conn = tableModel.lastConnection();\n } else {\n conn = tableModel.getConnectionByRow(row);\n }\n formatJsonIfNeeded(conn);\n }\n }\n });\n\n saveButton.setEnabled(false);\n saveButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n save();\n }\n });\n saveToClipboardButton.setEnabled(false);\n saveToClipboardButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n saveToClipboard();\n }\n });\n addToProfileButton.setEnabled(false);\n addToProfileButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n addToProfile();\n }\n });\n resendButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n resend();\n }\n });\n switchButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n int v = outPane.getOrientation();\n if (v == JSplitPane.VERTICAL_SPLIT) {\n // top/bottom\n outPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n } else {\n // left/right\n outPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n }\n outPane.setDividerLocation(0.5);\n }\n });\n ActionListener closeActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n close();\n }\n };\n closeButton.addActionListener(closeActionListener);\n JSplitPane pane1 = new JSplitPane(0);\n pane1.setDividerSize(4);\n pane1.setTopComponent(tablePane);\n pane1.setBottomComponent(pane2);\n pane1.setDividerLocation(150);\n pane1.setResizeWeight(0.5);\n this.add(pane1, BorderLayout.CENTER);\n\n // \n // //////////////////////////////////////////////////////////////////\n sel.setSelectionInterval(0, 0);\n notebook.addTab(name, null, this, profileNames);\n\n closeTab = new ClosableTabComponent(notebook, name, closeActionListener);\n notebook.setTabComponentAt(notebook.getTabCount() - 1, closeTab);\n start();\n }",
"public static void initialize(String solrServerUrl) {\n SolrClient innerSolrClient = new HttpSolrClient.Builder(solrServerUrl).build();\n\n if (PropertiesLoader.SOLR_SERVER_CACHING) {\n int maxCachingEntries = PropertiesLoader.SOLR_SERVER_CACHING_MAX_ENTRIES;\n int maxCachingSeconds = PropertiesLoader.SOLR_SERVER_CACHING_AGE_SECONDS;\n solrServer = new CachingSolrClient(innerSolrClient, maxCachingEntries, maxCachingSeconds, -1); //-1 means no maximum number of connections \n log.info(\"SolrClient initialized with caching properties: maxCachedEntrie=\"+maxCachingEntries +\" cacheAgeSeconds=\"+maxCachingSeconds);\n } else {\n solrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n log.info(\"SolClient initialized without caching\");\n }\n\n // some of the solr query will never using cache. word cloud(cache memory) + playback resolving etc. (cache poisoning)\n noCacheSolrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n\n // solrServer.setRequestWriter(new BinaryRequestWriter()); // To avoid http\n // error code 413/414, due to monster URI. (and it is faster)\n\n instance = new NetarchiveSolrClient();\n\n if (PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL > 0) {\n indexWatcher = new IndexWatcher(\n innerSolrClient, PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL, instance::indexStatusChanged);\n }\n\n log.info(\"SolrClient initialized with solr server url:\" + solrServerUrl);\n }",
"protected HTTPConnection getConnectionToURL(URL url) throws ProtocolNotSuppException\r\n {\r\n\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n\r\n if (proxyRequired)\r\n {\r\n con.addBasicAuthorization(proxyRealm, proxyName, proxyPswd);\r\n }\r\n\r\n return (con);\r\n }",
"@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}"
] | [
"0.74112934",
"0.66995716",
"0.6501015",
"0.6377807",
"0.63639927",
"0.62074655",
"0.60814756",
"0.5898369",
"0.56781185",
"0.56061584",
"0.55936694",
"0.5539327",
"0.54743063",
"0.54695165",
"0.53661287",
"0.5338386",
"0.5337971",
"0.5337624",
"0.5330641",
"0.52805376",
"0.5250782",
"0.5231536",
"0.5191344",
"0.51859516",
"0.5177993",
"0.5169397",
"0.5158306",
"0.5130432",
"0.50998896",
"0.5078936",
"0.5071447",
"0.5062747",
"0.5057692",
"0.5036448",
"0.5001425",
"0.49945414",
"0.49879116",
"0.49674127",
"0.49427715",
"0.4941393",
"0.4934526",
"0.49338755",
"0.4920697",
"0.49001488",
"0.48691383",
"0.4862926",
"0.48550743",
"0.48542655",
"0.48317945",
"0.47915342",
"0.47717866",
"0.47716844",
"0.47667757",
"0.4761184",
"0.47511405",
"0.47436687",
"0.47400564",
"0.47384334",
"0.47369218",
"0.47347775",
"0.4732671",
"0.4726601",
"0.47182432",
"0.47031203",
"0.470244",
"0.46794564",
"0.46724862",
"0.46718103",
"0.46702802",
"0.4663761",
"0.46566033",
"0.46549362",
"0.46460605",
"0.46447405",
"0.46445084",
"0.46175104",
"0.4613598",
"0.46109173",
"0.46051016",
"0.46042776",
"0.45968992",
"0.45918155",
"0.4589684",
"0.45861542",
"0.45840818",
"0.45817196",
"0.45739678",
"0.45710173",
"0.4570517",
"0.45671913",
"0.45654678",
"0.4565452",
"0.45486644",
"0.45407537",
"0.453801",
"0.45376885",
"0.45376468",
"0.45354533",
"0.4534293",
"0.45272967"
] | 0.7031217 | 1 |
Create MBean proxies for EngineMetrics and StatementMetrics MBeans | public void createMBeanProxies() {
createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));
createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"void registerDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);",
"MetricsFactory getMetricsFactory();",
"@Delegate\n MetricApi getMetricApi();",
"public interface OdlOpenFlowStats2MBean {\n\n /**\n * Getter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public String getOdlOpenflowFlowstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void setOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void checkOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowStatus2\" variable.\n */\n public String getOdlOpenflowStatus2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowStatus2\" variable.\n */\n public void setOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowStatus2\" variable.\n */\n public void checkOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public String getOdlOpenflowManufacturer2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void setOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public String getOdlOpenflowMacAddress2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void setOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void checkOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowInterface2\" variable.\n */\n public String getOdlOpenflowInterface2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowInterface2\" variable.\n */\n public void setOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowInterface2\" variable.\n */\n public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowNode2\" variable.\n */\n public String getOdlOpenflowNode2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowNode2\" variable.\n */\n public void setOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowNode2\" variable.\n */\n public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public String getOdlOpenflowMeterstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void setOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void checkOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n}",
"public interface DeviceGatewayMonitorJMXMBean {\n\t/**\n\t * @return current tunnel connection count\n\t */\n\tint getTunnelConnectionCount();\n\n\t/**\n\t * @return heartbeat request times in last second\n\t */\n\tlong getHeartbeatCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getListServiceUnavailableCount();\n\n\t/**\n\t * @return register request times in last second\n\t */\n\tlong getRegisterRequestCount();\n\n\t/**\n\t * @return register request successful times in last second\n\t */\n\tlong getRegisterSuccessCount();\n\n\t/**\n\t * @return register service unavailable times in last second\n\t */\n\tlong getRegisterServiceUnavailableCount();\n\n\t/**\n\t * @return auth request times in last second\n\t */\n\tlong getAuthRequestCount();\n\n\t/**\n\t * @return auth request successful times in last second\n\t */\n\tlong getAuthSuccessCount();\n\n\t/**\n\t * @return auth service unavailable times in last second\n\t */\n\tlong getAuthServiceUnavailableCount();\n\n\t/**\n\t * @return count request times in last second\n\t */\n\tlong getCountRequestCount();\n\n\t/**\n\t * @return count request successful times in last second\n\t */\n\tlong getCountSuccessCount();\n\n\t/**\n\t * @return Count service unavailable times in last second\n\t */\n\tlong getCountServiceUnavailableCount();\n\n\t/**\n\t * @return update request times in last second\n\t */\n\tlong getUpdateRequestCount();\n\n\t/**\n\t * @return update request successful times in last second\n\t */\n\tlong getUpdateSuccessCount();\n\n\t/**\n\t * @return update service unavailable times in last second\n\t */\n\tlong getUpdateServiceUnavailableCount();\n\n\t/**\n\t * @return bind request times in last second\n\t */\n\tlong getBindRequestCount();\n\n\t/**\n\t * @return bind request successful times in last second\n\t */\n\tlong getBindSuccessCount();\n\n\t/**\n\t * @return bind service unavailable times in last second\n\t */\n\tlong getBindServiceUnavailableCount();\n\n\t/**\n\t * @return unbind request times in last second\n\t */\n\tlong getUnbindRequestCount();\n\n\t/**\n\t * @return unbind request successful times in last second\n\t */\n\tlong getUnbindSuccessCount();\n\n\t/**\n\t * @return unbind service unavailable times in last second\n\t */\n\tlong getUnbindServiceUnavailableCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getAckListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getAckListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getAckListServiceUnavailableCount();\n}",
"public HazelcastMetricsExports(final HazelcastInstance hazelcastInstance) {\n// new HazelcastInfoExports(hazelcastInstance).register();\n// new HazelcastClusterInfoExports(hazelcastInstance).register();\n// hazelcastStateExporters = new HazelcastStateExporters(hazelcastInstance);\n //new HazelcastInternalsExporters(hazelcastInstance);\n }",
"public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\n /**\n * Returns the value of a float attribute.\n * \n * @return Float\n */\n public Float getFloatAttribute();\n\n /**\n * Returns the value of a long integer attribute.\n * \n * @return Long\n */\n public Long getLongAttribute();\n\n /**\n * Returns the value of a integer attribute.\n * \n * @return Integer\n */\n public Integer getIntegerAttribute();\n\n /**\n * Returns the value of a short attribute.\n * \n * @return Short\n */\n public Short getShortAttribute();\n\n /**\n * Returns the value of a byte attribute.\n * \n * @return Byte\n */\n public Byte getByteAttribute();\n\n /**\n * Returns the value of a big integer attribute.\n * \n * @return BigInteger\n */\n public BigInteger getBigIntegerAttribute();\n\n /**\n * Returns the value of a big decimal attribute.\n * \n * @return BigDecimal\n */\n public BigDecimal getBigDecimalAttribute();\n\n /**\n * Returns the value of a boolean attribute.\n * \n * @return Boolean\n */\n public Boolean getBooleanAttribute();\n\n /**\n * Returns a structured data attribute.\n * \n * @return StructuredData\n */\n public StructuredData getStructuredDataAttribute();\n\n /**\n * Returns an attribute with a data type that is invalid for the check_jmx plugin.\n * \n * @return String[]\n */\n public String[] getInvalidAttribute();\n\n /**\n * Returns an attribute with an invalid numeric type.\n * \n * @return Fraction\n */\n public Fraction getInvalidNumberAttribute();\n\n /**\n * Returns a null attribute value.\n * \n * @return String\n */\n public String getNullAttribute();\n\n /**\n * Operation that can be called as part of the check_jmx plugin flow.\n */\n public void testOperation();\n\n}",
"public MetricManagementService getMetricsManagementService() {\n return metricManagementService;\n }",
"@RefreshScope\n @Bean\n public MetricRegistry metrics() {\n final MetricRegistry metrics = new MetricRegistry();\n metrics.register(\"jvm.gc\", new GarbageCollectorMetricSet());\n metrics.register(\"jvm.memory\", new MemoryUsageGaugeSet());\n metrics.register(\"thread-states\", new ThreadStatesGaugeSet());\n metrics.register(\"jvm.fd.usage\", new FileDescriptorRatioGauge());\n return metrics;\n }",
"public abstract List<Metric> getMetrics();",
"com.google.ads.googleads.v6.common.Metrics getMetrics();",
"public interface MetricsService {\n\n /**\n * Get metrics data\n * @param request\n * @return\n */\n GetMetricsResponse getMetrics(GetMetricsRequest request);\n\n /**\n * Create metrics\n * @param request\n * @return\n */\n CreateMetricsResponse createMetrics(CreateMetricsRequest request);\n}",
"MetricsRegistry getMetrics2Registry() {\n return metrics2Registry;\n }",
"public interface ServerMonitorMXBean extends Statistic {\n\n String getHostName();\n\n int getPort();\n\n String getStartupAt();\n\n /**\n * The block IPs\n */\n Set<String> getBlackList();\n}",
"public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }",
"protected void reloadMBeanNames()\n {\n try\n {\n GraphDatabaseService genericDb = NeoServer.INSTANCE.database();\n\n if ( genericDb instanceof EmbeddedGraphDatabase )\n {\n EmbeddedGraphDatabase db = (EmbeddedGraphDatabase) genericDb;\n\n // Grab relevant jmx management beans\n ObjectName neoQuery = db.getManagementBean( Kernel.class ).getMBeanQuery();\n String instance = neoQuery.getKeyProperty( \"instance\" );\n String baseName = neoQuery.getDomain() + \":instance=\"\n + instance + \",name=\";\n\n primitivesName = new ObjectName( baseName\n + JMX_NEO4J_PRIMITIVE_COUNT );\n storeSizesName = new ObjectName( baseName\n + JMX_NEO4J_STORE_FILE_SIZES );\n transactionsName = new ObjectName( baseName\n + JMX_NEO4J_TRANSACTIONS );\n memoryMappingName = new ObjectName( baseName\n + JMX_NEO4J_MEMORY_MAPPING );\n kernelName = new ObjectName( baseName + JMX_NEO4J_KERNEL );\n lockingName = new ObjectName( baseName + JMX_NEO4J_LOCKING );\n cacheName = new ObjectName( baseName + JMX_NEO4J_CACHE );\n configurationName = new ObjectName( baseName\n + JMX_NEO4J_CONFIGURATION );\n xaResourcesName = new ObjectName( baseName\n + JMX_NEO4J_XA_RESOURCES );\n }\n\n }\n catch ( MalformedObjectNameException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( NullPointerException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( org.neo4j.webadmin.domain.DatabaseBlockedException e )\n {\n e.printStackTrace();\n }\n }",
"public MetricRegistry getMetricRegistry();",
"@Override\n public Metrics getMetrics() {\n return metrics;\n }",
"public interface MetricRegistry {\n\n /**\n * An enumeration representing the scopes of the MetricRegistry\n */\n enum Type {\n /**\n * The Application (default) scoped MetricRegistry. Any metric registered/accessed via CDI will use this\n * MetricRegistry.\n */\n APPLICATION(\"application\"),\n\n /**\n * The Base scoped MetricRegistry. This MetricRegistry will contain required metrics specified in the\n * MicroProfile Metrics specification.\n */\n BASE(\"base\"),\n\n /**\n * The Vendor scoped MetricRegistry. This MetricRegistry will contain vendor provided metrics which may vary\n * between different vendors.\n */\n VENDOR(\"vendor\");\n\n private final String name;\n\n Type(String name) {\n this.name = name;\n }\n\n /**\n * Returns the name of the MetricRegistry scope.\n *\n * @return the scope\n */\n public String getName() {\n return name;\n }\n }\n\n /**\n * Concatenates elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param name\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code name} and {@code names} concatenated by periods\n */\n static String name(String name, String... names) {\n List<String> ns = new ArrayList<>();\n ns.add(name);\n ns.addAll(asList(names));\n return ns.stream().filter(part -> part != null && !part.isEmpty()).collect(joining(\".\"));\n }\n\n /**\n * Concatenates a class name and elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param klass\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code klass} and {@code names} concatenated by periods\n */\n static String name(Class<?> klass, String... names) {\n return name(klass.getCanonicalName(), names);\n }\n\n /**\n * Given a {@link Metric}, registers it under a {@link MetricID} with the given name and with no tags. A\n * {@link Metadata} object will be registered with the name and type. However, if a {@link Metadata} object is\n * already registered with this metric name and is not equal to the created {@link Metadata} object then an\n * exception will be thrown.\n *\n * @param name\n * the name of the metric\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n */\n <T extends Metric> T register(String name, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers the metric with a {@link MetricID} with the name provided\n * by the {@link Metadata} and with no tags.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 1.1\n */\n <T extends Metric> T register(Metadata metadata, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers both under a {@link MetricID} with the name provided by\n * the {@link Metadata} and with the provided {@link Tag}s.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @param tags\n * the tags of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 2.0\n */\n <T extends Metric> T register(Metadata metadata, T metric, Tag... tags) throws IllegalArgumentException;\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(String name);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(String name, Tag... tags);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID}; or create and register a new {@link Counter} if\n * none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 3.0\n */\n Counter counter(MetricID metricID);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Counter} if none is registered. If a {@link Counter} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(Metadata metadata);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Counter} if none is registered. If a {@link Counter}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name; or create and register a\n * new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, a {@link Metadata} object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID}; or create and register a new\n * {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge concurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name; or\n * create and register a new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with this\n * name and with the provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(String name, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID}; or create\n * and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The MetricID of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(MetricID metricID, T object, Function<T, R> func);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with\n * the @{link Metadata}'s name and with the provided {@link Tag}s; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The Metadata of the Gauge\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(Metadata metadata, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(String name, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID}; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The {@link MetricID}\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(MetricID metricID, Supplier<T> supplier);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with the @{link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The metadata of the gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(Metadata metadata, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(String name);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(String name, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID}; or create and register a new\n * {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 3.0\n */\n Histogram histogram(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Histogram} if none is registered. If a {@link Histogram} was created,\n * the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(Metadata metadata);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Histogram} if none is registered. If a\n * {@link Histogram} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(String name);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(String name, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID}; or create and register a new {@link Meter} if\n * none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 3.0\n */\n Meter meter(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no tags;\n * or create and register a new {@link Meter} if none is registered. If a {@link Meter} was created, the provided\n * {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(Metadata metadata);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Meter} if none is registered. If a {@link Meter} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(String name);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(String name, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID}; or create and register a new {@link Timer} if\n * none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 3.0\n */\n Timer timer(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(Metadata metadata);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with no tags; or create\n * and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID}; or create and register a new\n * {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer simpleTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with no tags; or create and register a new {@link SimpleTimer} if none is registered. If a {@link SimpleTimer}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered. If a\n * {@link SimpleTimer} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Metric} registered for a provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n *\n * @since 3.0\n */\n Metric getMetric(MetricID metricID);\n\n /**\n * Return the {@link Metric} registered for the provided {@link MetricID} as the provided type.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @param asType\n * the return type which is expected to be compatible with the actual type of the registered metric\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to the provided type\n *\n * @since 3.0\n */\n <T extends Metric> T getMetric(MetricID metricID, Class<T> asType);\n\n /**\n * Return the {@link Counter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Counter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Counter}\n *\n * @since 3.0\n */\n Counter getCounter(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link ConcurrentGauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge getConcurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link Gauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Gauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Gauge}\n *\n * @since 3.0\n */\n Gauge<?> getGauge(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Histogram} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Histogram}\n *\n * @since 3.0\n */\n Histogram getHistogram(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Meter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Meter}\n *\n * @since 3.0\n */\n Meter getMeter(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Timer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Timer}\n *\n * @since 3.0\n */\n Timer getTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link SimpleTimer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer getSimpleTimer(MetricID metricID);\n\n /**\n * Return the {@link Metadata} for the provided name.\n *\n * @param name\n * the name of the metric\n * @return the {@link Metadata} for the provided name of {@code null} if none has been registered for that name\n *\n * @since 3.0\n */\n Metadata getMetadata(String name);\n\n /**\n * Removes all metrics with the given name.\n *\n * @param name\n * the name of the metric\n * @return whether or not the metric was removed\n */\n boolean remove(String name);\n\n /**\n * Removes the metric with the given MetricID\n *\n * @param metricID\n * the MetricID of the metric\n * @return whether or not the metric was removed\n *\n * @since 2.0\n */\n boolean remove(MetricID metricID);\n\n /**\n * Removes all metrics which match the given filter.\n *\n * @param filter\n * a filter\n */\n void removeMatching(MetricFilter filter);\n\n /**\n * Returns a set of the names of all the metrics in the registry.\n *\n * @return the names of all the metrics\n */\n SortedSet<String> getNames();\n\n /**\n * Returns a set of the {@link MetricID}s of all the metrics in the registry.\n *\n * @return the MetricIDs of all the metrics\n */\n SortedSet<MetricID> getMetricIDs();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s.\n *\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s.\n *\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters();\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters(MetricFilter filter);\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s.\n *\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges();\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s which match the given\n * filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s.\n *\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms();\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms(MetricFilter filter);\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s.\n *\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters();\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters(MetricFilter filter);\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers();\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers();\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n SortedMap<MetricID, Metric> getMetrics(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter and\n * which are assignable to the provided type.\n * \n * @param ofType\n * the type to which all returned metrics should be assignable\n * @param filter\n * the metric filter to match\n *\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n @SuppressWarnings(\"unchecked\")\n <T extends Metric> SortedMap<MetricID, T> getMetrics(Class<T> ofType, MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s at query time. The only guarantee\n * about this method is that any key has a value (compared to using {@link #getMetric(MetricID)} and\n * {@link #getMetricIDs()} together).\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few entries, always prefer\n * {@link #getMetric(MetricID)} or {@link #getMetrics(MetricFilter)}.\n *\n * @return all the metrics in the registry\n */\n Map<MetricID, Metric> getMetrics();\n\n /**\n * Returns a map of all the metadata in the registry and their names. The only guarantee about this method is that\n * any key has a value (compared to using {@link #getMetadata(String)}.\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few metadata, always prefer\n * {@link #getMetadata(String)}}.\n *\n * @return all the metadata in the registry\n */\n Map<String, Metadata> getMetadata();\n\n /**\n * Returns the type of this metric registry.\n *\n * @return Type of this registry (VENDOR, BASE, APPLICATION)\n */\n Type getType();\n\n}",
"public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}",
"@Override\n public DataStoreMetricsReporter getMetrics()\n {\n return metrics;\n }",
"public interface MetricsFactoryService {\n\n /**\n * Load MetricsFactory implementation\n *\n * @return load a given MetricsFactory implementation\n */\n MetricsFactory load();\n}",
"Metrics getMetrics();",
"public interface DBPoolViewMBean {\n /**\n * Number of active connections\n *\n * @return <code>int</code> Number of active connections\n */\n public int getNumActive();\n\n /**\n * Number of idle connections\n *\n * @return <code>int</code> Number of idle connections\n */\n public int getNumIdle();\n\n /**\n * Data source name\n *\n * @return <code>String</code> data source name\n */\n public String getName();\n\n /**\n * Connection information as a string\n *\n * @return <code>String</code> representing connection information\n */\n public Map getConnectionUsage();\n\n /**\n * reset statistics\n */\n public void reset();\n}",
"public interface GeocodeWsStatisticsMBean {\n\n long getTotalGoodRequests();\n\n long getTotalBadRequests();\n\n long getTotalServedFromCache();\n\n long getTotalServedFromDatabase();\n\n long getTotalPoliticalHits();\n\n long getTotalEezHits();\n\n long getTotalNoResults();\n\n long getWithing5KmHits();\n\n double getAverageResultSize();\n\n void resetStats();\n}",
"public interface MemoryEstimator {\n\n /**\n * Returns an estimate of how much memory an object consumes.\n * @param instance the object instance\n * @return the estimated memory in bytes\n */\n long getObjectSize(Object instance);\n\n\n /**\n * A MemoryEstimator implementation that leverages org.github.jamm.MemoryMeter\n */\n class DefaultMemoryEstimator implements MemoryEstimator {\n\n private Object meter;\n private Method measureDeep;\n\n /**\n * Constructor\n */\n public DefaultMemoryEstimator() {\n try {\n final Class<?> clazz = Class.forName(\"org.github.jamm.MemoryMeter\");\n final Method method = clazz.getDeclaredMethod(\"hasInstrumentation\");\n final boolean instrumentation = (Boolean) method.invoke(clazz);\n if (instrumentation) {\n this.meter = clazz.newInstance();\n this.measureDeep = clazz.getDeclaredMethod(\"measureDeep\", Object.class);\n }\n } catch (ClassNotFoundException ex) {\n System.err.println(\"Unable to initialize MemoryMeter, class not found\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n @Override\n public long getObjectSize(Object instance) {\n try {\n final Object result = measureDeep != null ? measureDeep.invoke(meter, instance) : -1;\n return result instanceof Number ? ((Number)result).longValue() : -1;\n } catch (Exception ex) {\n throw new RuntimeException(\"Failed to measure memory for instance: \" + instance, ex);\n }\n }\n }\n\n}",
"public void addMetric(M wm){\r\n\t\tmetrics.add(wm);\r\n\t}",
"@Override\n public MBeanInfo getMBeanInfo() {\n mBeanInfo = super.getMBeanInfo();\n return mBeanInfo;\n }",
"private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {\n ObjectName mbeanName = null;\n try {\n mbeanName = new ObjectName(objectName);\n } catch (MalformedObjectNameException e) {\n log.error(\"Unable to create object name from \" + objectName, e);\n return;\n }\n\n MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);\n\n ClientListener listener = new ClientListener(url);\n createMBeanNotificationListener(mbeanName, listener);\n beans.add(mBean);\n }",
"public interface SimpleEventBusStatisticsMXBean {\n\n /**\n * Returns the amount of registered listeners.\n *\n * @return long representing the amount of registered listeners\n */\n long getListenerCount();\n\n /**\n * Returns a list of simple class names (class name without its package) of the registered listeners. Multiple\n * listeners with the same name are supported\n *\n * @return List of string representing the names of the registered listeners\n */\n List<String> getListenerTypes();\n\n /**\n * Returns the amount of received events.\n *\n * @return long representing the amount of received events\n */\n long getReceivedEventsCount();\n\n /**\n * resets the amount of events received.\n */\n void resetReceivedEventsCount();\n}",
"public static EndpointMBean getMultiplyEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"void reportCustomMetrics(final List<DynatraceCustomMetric> dynatraceCustomMetrics) throws Exception;",
"private void addMetrics(Map<MetricName, KafkaMetric> kafkaMetrics) {\n Set<MetricName> metricKeys = kafkaMetrics.keySet();\n for (MetricName key : metricKeys) {\n KafkaMetric metric = kafkaMetrics.get(key);\n String metricName = getMetricName(metric.metricName());\n if (metrics.getNames().contains(metricName)) {\n metrics.remove(metricName);\n }\n metrics.register(metricName, new Gauge<Double>() {\n @Override\n public Double getValue() {\n return metric.value();\n }\n });\n }\n }",
"@SuppressWarnings(\"restriction\")\npublic interface Meter {\n\n Collection<? extends Metric<?>> supportedMetrics();\n\n Collection<? extends Measure<?>> measureData(MonitoredVm vm);\n}",
"public interface IMetricsService {\n\n /**\n * 查询统计指标列表\n * @return\n */\n List<Metrics> queryMetricsList(PageInfo pageInfo);\n\n /**\n * 查询统计指标详情\n * @param metric_id\n * @return\n */\n Metrics queryMetricsDetail(String metric_id);\n\n /**\n * 新增统计指标\n * @param metrics\n * @return\n */\n int addMetrics(Metrics metrics);\n\n /**\n * 修改统计指标\n * @param metrics\n * @return\n */\n int updateMetrics(Metrics metrics);\n\n /**\n * 删除统计指标\n * @param metric_id\n * @return\n */\n int deleteMetricsById(String metric_id);\n\n /**\n * 验证指标类型是否存在\n * @param metric_id\n * @param metric\n * @return\n */\n int validateName(@Param(\"metric_id\") String metric_id, @Param(\"metric\") String metric);\n\n\n}",
"protected abstract Object createJvmMemoryMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"private MetricInfo getMetricInfo (ServiceReference srefMetric) {\n \n if (srefMetric != null) {\n MetricInfo metricInfo = new MetricInfo();\n \n // Set the metric's service ID and service reference\n metricInfo.setServiceID(\n (Long) srefMetric.getProperty(Constants.SERVICE_ID));\n metricInfo.setServiceRef(srefMetric);\n \n // Set the class name(s) of the object(s) used in the\n // service registration\n String[] metric_classes =\n (String[]) srefMetric.getProperty(Constants.OBJECTCLASS);\n metricInfo.setObjectClass(metric_classes);\n \n // Set the ID and name of the bundle which has registered\n // this service\n metricInfo.setBundleID(\n srefMetric.getBundle().getBundleId());\n metricInfo.setBundleName(\n srefMetric.getBundle().getSymbolicName());\n \n // SQO-OSS related info fields\n Metric metricObject = (Metric) bc.getService(srefMetric);\n if (metricObject != null) {\n metricInfo.setMetricName(metricObject.getName());\n metricInfo.setMetricVersion(metricObject.getVersion());\n \n // Retrieve all object types that this metric can calculate\n Vector<String> metricType = new Vector<String>();\n if (metricObject instanceof ProjectFileMetric) {\n metricType.add(ProjectFile.class.getName());\n }\n if (metricObject instanceof ProjectVersionMetric) {\n metricType.add(ProjectVersion.class.getName());\n }\n if (metricObject instanceof StoredProjectMetric) {\n metricType.add(StoredProject.class.getName());\n }\n if (metricObject instanceof FileGroupMetric) {\n metricType.add(FileGroup.class.getName());\n }\n if (!metricType.isEmpty()) {\n String[] types = new String[metricType.size()];\n types = metricType.toArray(types);\n metricInfo.setMetricType(types);\n }\n }\n \n return metricInfo;\n }\n \n return null;\n }",
"io.netifi.proteus.admin.om.MetricsOrBuilder getMetricsOrBuilder();",
"public interface PaxosMBeanInfo {\n /**\n * @return a string identifying the MBean \n */\n public String getName();\n /**\n * If isHidden returns true, the MBean won't be registered with MBean server,\n * and thus won't be available for management tools. Used for grouping MBeans.\n * @return true if the MBean is hidden.\n */\n public boolean isHidden();\n}",
"interface ClientMetrics {\n void incrementReadRequest();\n\n void incrementWriteRequest();\n\n String getHostName();\n\n long getReadRequestsCount();\n\n long getWriteRequestsCount();\n\n void incrementFilteredReadRequests();\n\n long getFilteredReadRequests();\n }",
"public interface SessionMXBean /*extends SessionManagementListener*/ {\n\n void close();\n\n void closeImmediately();\n\n ObjectName getObjectName();\n\n long getId();\n\n long getReadBytes();\n\n double getReadBytesThroughput();\n\n long getWrittenBytes();\n\n double getWrittenBytesThroughput();\n\n String getPrincipals();\n\n long getCreateTime();\n\n String getRemoteAddress();\n\n String getSessionTypeName();\n\n String getSessionDirection();\n\n long getLastRoundTripLatency();\n\n long getLastRoundTripLatencyTimestamp();\n}",
"public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}",
"private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}",
"public interface ExceptionCounterMXBean {\n \n// static {\n// try {\n// OBJECT_NAME = new ObjectName(\"com.github.marschall.excount:type=ExceptionCounter\");\n// } catch (MalformedObjectNameException e) {\n// throw new RuntimeException(\"invalid object name\", e);\n// }\n// }\n// \n// ObjectName OBJECT_NAME;\n \n /**\n * Object name of the exception counter.\n * \n * @see ExceptionCounter#register()\n * @see ExceptionCounter#unregister()\n */\n String OBJECT_NAME = \"com.github.marschall.excount:type=ExceptionCounter\";\n\n /**\n * Returns the number of exceptions that happened.\n * \n * @return the number of exceptions that happened\n */\n int getCount();\n\n /**\n * Returns the number of exceptions that happened and then sets the\n * number of exceptions that happened to {@code 0}.\n * \n * @return the number of exceptions that happened\n */\n int clearAndGetCount();\n\n}",
"MBeanDomain(String name) {\n\n\t\tthis.name = name;\n\t\tthis.mbeanMap = new HashMap<String, List<MBean>>();\n\t}",
"public abstract CustomMetric[] getCustomMetrics();",
"MetricOuterClass.Metric getMetricControl();",
"public ClientSoapMBean() {\r\n\t}",
"protected abstract Object createJvmClassLoadingMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"static void registerInternalMBeans(MBeanServer paramMBeanServer)\n/* */ {\n/* 396 */ addMBean(paramMBeanServer, getHotspotClassLoadingMBean(), \"sun.management:type=HotspotClassLoading\");\n/* */ \n/* 398 */ addMBean(paramMBeanServer, getHotspotMemoryMBean(), \"sun.management:type=HotspotMemory\");\n/* */ \n/* 400 */ addMBean(paramMBeanServer, getHotspotRuntimeMBean(), \"sun.management:type=HotspotRuntime\");\n/* */ \n/* 402 */ addMBean(paramMBeanServer, getHotspotThreadMBean(), \"sun.management:type=HotspotThreading\");\n/* */ \n/* */ \n/* */ \n/* 406 */ if (getCompilationMXBean() != null) {\n/* 407 */ addMBean(paramMBeanServer, getHotspotCompilationMBean(), \"sun.management:type=HotspotCompilation\");\n/* */ }\n/* */ }",
"public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }",
"private void addMetrics(List<MetricDatum> list,\n MetricValues metricValues,\n StandardUnit unit) {\n List<MachineMetric> machineMetrics = metricValues.getMetrics();\n List<Long> values = metricValues.getValues();\n for (int i=0; i < machineMetrics.size(); i++) {\n MachineMetric metric = machineMetrics.get(i);\n long val = values.get(i).longValue();\n // skip zero values in some cases\n if (val != 0 || metric.includeZeroValue()) {\n MetricDatum datum = new MetricDatum()\n .withMetricName(metric.getMetricName())\n .withDimensions(\n new Dimension()\n .withName(metric.getDimensionName())\n .withValue(metric.name()))\n .withUnit(unit)\n .withValue((double) val)\n ;\n list.add(datum);\n }\n }\n }",
"public CachetMetricList getMetrics() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"@Test\n public void testMemoryMetric() {\n MetricValue mv = new MetricValue.Builder().load(40).add();\n\n MEMORY_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n MEMORY_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }",
"private String getJmxDomain() {\n return \"metrics.session.\" + configuration.getNamespace();\n }",
"public ClientMBean() {\n }",
"public static synchronized HotspotMemoryMBean getHotspotMemoryMBean()\n/* */ {\n/* 312 */ if (hsMemoryMBean == null) {\n/* 313 */ hsMemoryMBean = new HotspotMemory(jvm);\n/* */ }\n/* 315 */ return hsMemoryMBean;\n/* */ }",
"protected abstract Object createJvmRuntimeMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"com.google.ads.googleads.v6.common.MetricsOrBuilder getMetricsOrBuilder();",
"public List<String> getMetricsFromMbean(Set beans, MBeanServerConnection mBeanServer, String serviceName) {\r\n\t\tList<String> beanList = new ArrayList<String>();\r\n\t\tfor (Object obj : beans) {\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject bean = new JSONObject();\r\n\t\t\t\tObjectName beanName = null;\r\n\t\t\t\tif (obj instanceof ObjectName)\r\n\t\t\t\t\tbeanName = (ObjectName) obj;\r\n\t\t\t\telse if (obj instanceof ObjectInstance)\r\n\t\t\t\t\tbeanName = ((ObjectInstance) obj).getObjectName();\r\n\r\n\t\t\t\tMBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(beanName);\r\n\t\t\t\tif (!beanName.getDomain().contains(serviceName))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tbean.put(\"metric_group\", beanName.getDomain());\r\n\t\t\t\tbean.put(\"metric_servicename\", serviceName);\r\n\t\t\t\tString metricNamespace = beanName.getDomain().replaceAll(\"\\\\.\", \"_\");\r\n\t\t\t\tHashtable<String, String> properties = beanName.getKeyPropertyList();\r\n\t\t\t\tfor (Map.Entry<String, String> prop : properties.entrySet()) {\r\n\t\t\t\t\tif (prop.getKey().toLowerCase().equalsIgnoreCase(\"name\")) {\r\n\t\t\t\t\t\tmetricNamespace = metricNamespace + \"_\" + prop.getValue();\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tbean.put(String.format(\"metric_%s\", prop.getKey().toLowerCase()), prop.getValue());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get all attributes and its values\r\n\t\t\t\ttry {\r\n\t\t\t\t\tMBeanInfo beanInfo = mBeanServer.getMBeanInfo(beanName);\r\n\t\t\t\t\tMBeanAttributeInfo[] attrInfo = beanInfo.getAttributes();\r\n\t\t\t\t\tfor (MBeanAttributeInfo attr : attrInfo) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tbean.put(metricNamespace + \"_\" + attr.getName(),\r\n\t\t\t\t\t\t\t\t\tmBeanServer.getAttribute(beanName, attr.getName()).toString());\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tlogger.error(\"Attr parsing exception {} \", e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tlogger.error(\"Get Bean attribute exception {} \", e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbeanList.add(bean.toString());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"Get Metrics From bean exception {} \", e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn beanList;\r\n\t}",
"public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}",
"MetricModel createMetricModel();",
"public void initMetrics(MeterRegistry meterRegistry) {\n String metricName = String.join(\".\", \"pap\", \"policy\", \"deployments\");\n String description = \"Timer for HTTP request to deploy/undeploy a policy\";\n undeploySuccessTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.SUCCESS.name())\n .register(meterRegistry);\n undeployFailureTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.FAILURE.name())\n .register(meterRegistry);\n }",
"public FAQsMBean() {\r\n faq=new FAQs();\r\n faqsfacade=new FAQsFacade();\r\n }",
"public interface MetricsVisitor {\n\n /**\n * Callback for int value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Integer> metric, int value);\n\n /**\n * Callback for long value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Long> metric, long value);\n\n /**\n * Callback for float value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Float> metric, float value);\n\n /**\n * Callback for double value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Double> metric, double value);\n\n /**\n * Callback for integer value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Integer> metric, int value);\n\n /**\n * Callback for long value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Long> metric, long value);\n\n /**\n * Callback for integer value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Integer> metric, int value);\n\n /**\n * Callback for long value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Long> metric, long value);\n}",
"private static interface NewMetric<T> {\n T newMetric(Class<?> clazz, String name, String scope);\n }",
"public interface JmxEtlManagerMBean {\r\n /**\r\n * Returns the number of executed statements by all connections of the ETL task.\r\n * @return non-negative number of executed statements.\r\n */\r\n long getExecutedStatementsCount();\r\n\r\n /**\r\n * Returns the date/time when ETL was started.\r\n * @return date/time.\r\n */\r\n Date getStartDate();\r\n\r\n /**\r\n * Returns the throughput of the managed ETL task.\r\n * @return statements/sec throughput or 0 if undefined.\r\n */\r\n double getThroughput();\r\n\r\n /**\r\n * Cancels the managed ETL task.\r\n */\r\n void cancel();\r\n}",
"protected DefaultMetric(BundleContext bc) {\n\n this.bc = bc;\n \n log = AlitheiaCore.getInstance().getLogManager().createLogger(Logger.NAME_SQOOSS_METRIC);\n\n if (log == null) {\n System.out.println(\"ERROR: Got no logger\");\n }\n\n db = AlitheiaCore.getInstance().getDBService();\n\n if(db == null)\n log.error(\"Could not get a reference to the DB service\");\n\n pa = AlitheiaCore.getInstance().getPluginAdmin();\n\n if(pa == null)\n log.error(\"Could not get a reference to the Plugin Administation \"\n + \"service\");\n \n this.metricDiscovery = new MetricDiscovery(this);\n this.metricMetadata = new DefaultMetricMetaData(this, bc);\n this.metricEvaluation = new DefaultMeasurementEvaluation(this, metricDiscovery);\n this.metricLifeCycle = new DefaultMetricLifeCycle(bc, this, metricDiscovery);\n this.metricConfiguration = new DefaultMetricConfiguration(bc, this, metricDiscovery);\n }",
"private void buildDynamicMBeanInfo() {\n Logger[] loggers = getLoggers();\n if (this.numChannels == loggers.length) {\n return; // no change -> no need to refresh meta informations\n }\n\n boolean isReadable = true;\n boolean isWritable = true;\n boolean isIs = false; // true if we use \"is\" getter\n\n this.numChannels = loggers.length;\n\n //String[] levels = { \"ERROR\", \"WARN\", \"INFO\", \"CALL\", \"TIME\", \"TRACE\", \"DUMP\", \"PLAIN\" };\n /*\n String[] levels = { \"severe\", \"warning\", \"info\", \"call\", \"trace\", \"dump\" };\n String[] comments = { \"Critical xmlBlaster server error\",\n \"Warning of wrong or problematic usage\",\n \"Informations about operation\",\n \"Tracing functon calls\",\n \"Tracing program executioin\",\n \"Dump internal states\" };\n ArrayList tmp = new ArrayList();\n for (int i= 0; i < arr.length; i++) {\n String name = arr[i].getChannelKey();\n for (int j=0; j<levels.length; j++) {\n tmp.add(new MBeanAttributeInfo(\"logging/\"+name, // trace/core, info/queue, etc.\n \"java.lang.String\",\n comments[j],\n isReadable,\n isWritable,\n isIs));\n }\n }\n */\n ArrayList tmp = new ArrayList();\n for (int i= 0; i < loggers.length; i++) {\n String name = loggers[i].getName();\n tmp.add(new MBeanAttributeInfo(\"logging/\"+name, // trace/core, info/queue, etc.\n \"java.lang.String\",\n \"log level for a specific category\",\n isReadable,\n isWritable,\n isIs));\n }\n\n dAttributes = (MBeanAttributeInfo[])tmp.toArray(new MBeanAttributeInfo[tmp.size()]);\n\n Constructor[] constructors = this.getClass().getConstructors();\n dConstructors[0] = new MBeanConstructorInfo(\"JmxLogLevel(): Constructs a JmxLogLevel object\",\n constructors[0]);\n\n\n MBeanOperationInfo[] dOperations = new MBeanOperationInfo[1];\n MBeanParameterInfo[] params = null; \n dOperations[0] = new MBeanOperationInfo(\"reset\",\n \"reset(): reset log levels to default state\",\n params , \n \"java.common.String\",\n MBeanOperationInfo.ACTION);\n\n dMBeanInfo = new MBeanInfo(dClassName,\n \"Exposing the logging environment.\",\n dAttributes,\n dConstructors,\n dOperations,\n new MBeanNotificationInfo[0]);\n log.debug(\"Created MBeanInfo with \" + tmp.size() + \" attributes\");\n }",
"@Override\n public MBeanServer getMBeanServer() {\n return mBeanServer;\n }",
"public static abstract interface LoggingMXBean\n/* */ extends PlatformLoggingMXBean, LoggingMXBean\n/* */ {}",
"@Test\n public void testLocalCalls() throws Exception {\n MBeanServer server = MBeanJMXAdapter.mbeanServer;\n assertThatThrownBy(\n () -> server.createMBean(\"FakeClassName\", new ObjectName(\"GemFire\", \"name\", \"foo\")))\n .isInstanceOf(ReflectionException.class);\n\n MBeanJMXAdapter adapter = new MBeanJMXAdapter(mock(DistributedMember.class));\n assertThatThrownBy(() -> adapter.registerMBean(mock(DynamicMBean.class),\n new ObjectName(\"MockDomain\", \"name\", \"mock\"), false))\n .isInstanceOf(ManagementException.class);\n }",
"private void loadManager() {\n LOGGER.info(\"Load metricManager, type: {}\", METRIC_CONFIG.getMetricFrameType());\n ServiceLoader<AbstractMetricManager> metricManagers =\n ServiceLoader.load(AbstractMetricManager.class);\n int size = 0;\n for (AbstractMetricManager mf : metricManagers) {\n size++;\n if (mf.getClass()\n .getName()\n .toLowerCase()\n .contains(METRIC_CONFIG.getMetricFrameType().name().toLowerCase())) {\n metricManager = mf;\n break;\n }\n }\n\n // if no more implementations, we use nothingManager.\n if (size == 0 || metricManager == null) {\n metricManager = new DoNothingMetricManager();\n } else if (size > 1) {\n LOGGER.info(\n \"Detect more than one MetricManager, will use {}\", metricManager.getClass().getName());\n }\n }",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"private void metricRegistered (ServiceReference srefMetric) {\n // Retrieve the service ID\n Long serviceId =\n (Long) srefMetric.getProperty(Constants.SERVICE_ID);\n logInfo(\"A metric service was registered with ID \" + serviceId);\n \n // Dispose from the list of available metric any old metric, that\n // uses the same ID. Should not be required, as long as metric\n // services got properly unregistered.\n if (registeredMetrics.containsKey(serviceId)) {\n registeredMetrics.remove(serviceId);\n }\n \n // Retrieve information about this metric and add this metric to the\n // list of registered/available metrics\n MetricInfo metricInfo = getMetricInfo(srefMetric);\n registeredMetrics.put(serviceId, metricInfo);\n \n // Search for an applicable configuration set and apply it\n Iterator<String> configSets =\n metricConfigurations.keySet().iterator();\n while (configSets.hasNext()) {\n // Match is performed against the metric's class name(s)\n String className = configSets.next();\n // TODO: It could happen that a service get registered with more\n // than one class. In this case a situation can arise where\n // two or more matching configuration sets exists.\n if (metricInfo.usesClassName(className)) {\n // Apply the current configuration set to this metric\n logInfo(\n \"A configuration set was found for metric with\"\n + \" object class name \" + className\n + \" and service ID \" + serviceId);\n MetricConfig configSet =\n metricConfigurations.get(className);\n \n // Execute the necessary post-registration actions\n if (configSet != null) {\n // Checks if this metric has to be automatically\n // installed upon registration\n if ((configSet.containsKey(MetricConfig.KEY_AUTOINSTALL)\n && (configSet.getString(MetricConfig.KEY_AUTOINSTALL)\n .equalsIgnoreCase(\"true\")))) {\n if (installMetric(serviceId)) {\n logInfo (\n \"The install method of metric with\"\n + \" service ID \" + serviceId\n + \" was successfully executed.\");\n }\n else {\n logError (\n \"The install method of metric with\"\n + \" service ID \" + serviceId\n + \" failed.\");\n }\n }\n }\n }\n }\n }",
"public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }",
"public Map<MeasurementType<L>, Offline<org.hawkular.inventory.api.model.MetricType.Blueprint>> buildMetrics(\n List<ResourceType<L>> resourceTypes) {\n\n Set<MeasurementType<L>> measTypes = new HashSet<>();\n for (ResourceType<L> resourceType : resourceTypes) {\n if (resourceType.isPersisted() == false) {\n measTypes.addAll(resourceType.getMetricTypes().stream().filter(t -> t.isPersisted() == false)\n .collect(Collectors.toList()));\n measTypes.addAll(resourceType.getAvailTypes().stream().filter(t -> t.isPersisted() == false)\n .collect(Collectors.toList()));\n }\n }\n\n Map<MeasurementType<L>, Offline<org.hawkular.inventory.api.model.MetricType.Blueprint>> retVal;\n retVal = new HashMap<>(measTypes.size());\n\n synchronized (addedIds) {\n prepareAddedIds();\n\n // we don't sync parent-child relations for types; all types are stored at root level in inventory\n for (MeasurementType<L> mt : measTypes) {\n if (!addedIds.get(IdType.METRIC_TYPE).add(mt.getID().getIDString())) {\n continue; // we already did this metric type\n }\n InventoryStructure.Builder<org.hawkular.inventory.api.model.MetricType.Blueprint> invBldr;\n org.hawkular.inventory.api.model.MetricType.Blueprint mtBP = buildMetricTypeBlueprint(mt);\n invBldr = InventoryStructure.Offline.of(mtBP);\n retVal.put(mt, invBldr.build());\n }\n }\n\n return retVal;\n }",
"@RequestMapping(\"kpis\")\n public ApplicationMetricsDto buildServiceMetrics() {\n return this.applicationMetricsService.buildMetrics();\n }",
"public static void registerMeters(StormMetricsRegistry registry) {\n \n registry.registerMeter(NUM_FILE_OPEN_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_READ_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_REMOVAL_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_DOWNLOAD_EXCEPTIONS);\n registry.registerMeter(NUM_SET_PERMISSION_EXCEPTIONS);\n registry.registerMeter(NUM_CLEANUP_EXCEPTIONS);\n registry.registerMeter(NUM_READ_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_READ_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_SEARCH_EXCEPTIONS);\n }",
"public interface TransportLoggerViewMBean {\n\n /**\n * Returns if the managed TransportLogger is currently active\n * (writing to a log) or not.\n * @return if the managed TransportLogger is currently active\n * (writing to a log) or not.\n */\n public boolean isLogging();\n \n /**\n * Enables or disables logging for the managed TransportLogger.\n * @param logging Boolean value to enable or disable logging for\n * the managed TransportLogger.\n * true to enable logging, false to disable logging.\n */\n public void setLogging(boolean logging);\n \n /**\n * Enables logging for the managed TransportLogger.\n */\n public void enableLogging();\n \n /**\n * Disables logging for the managed TransportLogger.\n */\n public void disableLogging();\n \n}",
"public NewUserMBean() {\r\n }",
"public Builder metrics(Collection<Metric> metrics) {\n this.metrics = metrics;\n return this;\n }",
"public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }",
"public interface ServerSocketMXBean {\r\n\r\n /**\r\n * Returns all live server-socket IDs. Some server-socket included in the\r\n * returned array may have been terminated when this method returns.\r\n * \r\n * @return an array of <tt>long</tt>, each is a server-socket ID.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n long[] getAllServerSocketIds();\r\n\r\n /**\r\n * Returns the total number of server-sockets opened since the Java virtual\r\n * machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalServerSocketsCount();\r\n\r\n /**\r\n * Returns the peak open server-socket count since the Java virtual machine\r\n * started or the peak was reset.\r\n * \r\n * @return the peak live server-socket count.\r\n */\r\n int getPeakServerSocketCount();\r\n\r\n /**\r\n * Returns the current number of open server-sockets.\r\n * \r\n * @return the current number of open server-sockets.\r\n */\r\n int getServerSocketCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by all server-sockets since\r\n * the Java virtual machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by a server-socket with the\r\n * specified <tt>id</tt>.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount(long id);\r\n\r\n /**\r\n * Returns the server-socket info for a server-socket of the specified\r\n * <tt>id</tt>.\r\n * <p>\r\n * This method returns a <tt>ServerSocketInfo</tt> object representing the\r\n * server-socket information for the server-socket of the specified ID. If a\r\n * server-socket of the given ID is not open or does not exist, this method\r\n * will return <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return a {@link ServerSocketInfo}object for the server-socket of the\r\n * given ID; <tt>null</tt> if the server-socket of the given ID is\r\n * not open or it does not exist.\r\n * @throws IllegalArgumentException if <tt>id <= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo getServerSocketInfo(long id);\r\n\r\n /**\r\n * Returns the server-socket info for each server-socket whose ID is in the\r\n * input array <tt>ids</tt>.\r\n * <p>\r\n * This method returns an array of the <tt>ServerSocketInfo</tt> objects.\r\n * If a server-socket of a given ID is not open or does not exist, the\r\n * corresponding element in the returned array will contain <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param ids an array of server-socket IDs\r\n * @return an array of the {@link ServerSocketInfo}objects, each containing\r\n * information about a server-socket whose ID is in the\r\n * corresponding element of the input array of IDs.\r\n * @throws IllegalArgumentException if any element in the input array\r\n * <tt>ids</tt> is <tt><= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo[] getServerSocketInfo(long[] ids);\r\n\r\n /**\r\n * Resets the peak server-socket count to the current number of open\r\n * server-sockets.\r\n * \r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"control\").\r\n * @see #getPeakServerSocketCount\r\n * @see #getServerSocketCount\r\n */\r\n void resetPeakServerSocketCount();\r\n}",
"ClientMetrics getOrCreateMetricsClient(String hostName);",
"protected abstract Object createJvmOSMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"public void addMetric(Set<M> m){\r\n\t\tmetrics.addAll(m);\r\n\t}",
"public void setMetricsManagementService(MetricManagementService metricManagementService) {\n this.metricManagementService = metricManagementService;\n }",
"public static EndpointMBean getDivideEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"@MBean(objectName = \"MassIndexer\",\n description = \"Component that rebuilds the index from the cached data\")\npublic interface MassIndexer {\n\n //TODO Add more parameters here, like timeout when it will be implemented\n //(see ISPN-1313, and ISPN-1042 for task cancellation)\n @ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();\n\n}",
"public interface MetricsClient {\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @param timespan The timespan of the query. It is a string with the following format\n * 'startDateTime_ISO/endDateTime_ISO'.\n * @param interval The interval (i.e. timegrain) of the query.\n * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself\n * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.\n * @param aggregation The list of aggregation types (comma separated) to retrieve.\n * @param top The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.\n * @param orderBy The aggregation to use for sorting results and the direction of the sort. Only one order can be\n * specified. Examples: sum asc.\n * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains\n * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq\n * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =\n * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return\n * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return\n * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension\n * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using\n * $filter= \"dim (test) 1 eq '*' \" use **$filter= \"dim %2528test%2529 1 eq '*' \"** When dimension name is **dim\n * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= \"dim (test) 3 eq 'dim3 (test)\n * val' \" use **$filter= \"dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' \"**.\n * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the\n * operation's description for details.\n * @param metricnamespace Metric namespace to query metric definitions for.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<Response<ResponseInner>> listWithResponseAsync(\n String resourceUri,\n String timespan,\n Duration interval,\n String metricnames,\n String aggregation,\n Integer top,\n String orderBy,\n String filter,\n ResultType resultType,\n String metricnamespace);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query on successful completion of {@link Mono}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Mono<ResponseInner> listAsync(String resourceUri);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @param timespan The timespan of the query. It is a string with the following format\n * 'startDateTime_ISO/endDateTime_ISO'.\n * @param interval The interval (i.e. timegrain) of the query.\n * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself\n * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.\n * @param aggregation The list of aggregation types (comma separated) to retrieve.\n * @param top The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.\n * @param orderBy The aggregation to use for sorting results and the direction of the sort. Only one order can be\n * specified. Examples: sum asc.\n * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains\n * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq\n * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =\n * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return\n * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return\n * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension\n * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using\n * $filter= \"dim (test) 1 eq '*' \" use **$filter= \"dim %2528test%2529 1 eq '*' \"** When dimension name is **dim\n * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= \"dim (test) 3 eq 'dim3 (test)\n * val' \" use **$filter= \"dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' \"**.\n * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the\n * operation's description for details.\n * @param metricnamespace Metric namespace to query metric definitions for.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ResponseInner> listWithResponse(\n String resourceUri,\n String timespan,\n Duration interval,\n String metricnames,\n String aggregation,\n Integer top,\n String orderBy,\n String filter,\n ResultType resultType,\n String metricnamespace,\n Context context);\n\n /**\n * **Lists the metric values for a resource**.\n *\n * @param resourceUri The identifier of the resource.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the response to a metrics query.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ResponseInner list(String resourceUri);\n}",
"public MeasureUnitProxy() {\n }",
"public interface MetricsService {\n Map<Integer, MetricsDto> analyzeBoard(List<Integer> boardList);\n}",
"java.util.List<com.google.dataflow.v1beta3.MetricUpdate> getMetricsList();",
"public static HashMap<ObjectName, DynamicMBean> getPlatformDynamicMBeans()\n/* */ {\n/* 384 */ HashMap localHashMap = new HashMap();\n/* 385 */ DiagnosticCommandMBean localDiagnosticCommandMBean = getDiagnosticCommandMBean();\n/* 386 */ if (localDiagnosticCommandMBean != null) {\n/* 387 */ localHashMap.put(Util.newObjectName(\"com.sun.management:type=DiagnosticCommand\"), localDiagnosticCommandMBean);\n/* */ }\n/* 389 */ return localHashMap;\n/* */ }",
"MeterProvider create();",
"void metric(String controllerName, String policyName, Metric metric);",
"void deregisterDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);"
] | [
"0.6341515",
"0.6215807",
"0.6206429",
"0.619411",
"0.6175335",
"0.61091393",
"0.6067462",
"0.604615",
"0.60293275",
"0.5962319",
"0.5865495",
"0.58580506",
"0.5848217",
"0.580899",
"0.58038884",
"0.5799099",
"0.57567",
"0.5749304",
"0.5731933",
"0.5701543",
"0.5687096",
"0.56700546",
"0.5669506",
"0.5647132",
"0.56469184",
"0.5614979",
"0.56064034",
"0.5594334",
"0.5588159",
"0.55622935",
"0.5539682",
"0.5535504",
"0.55133194",
"0.55106825",
"0.55070657",
"0.54782933",
"0.54722804",
"0.5471255",
"0.5461658",
"0.54460555",
"0.5443539",
"0.5376082",
"0.53708893",
"0.53696656",
"0.53562856",
"0.5353643",
"0.53530914",
"0.5352391",
"0.53200984",
"0.5304594",
"0.52964836",
"0.529305",
"0.5286013",
"0.52850634",
"0.52791965",
"0.5261134",
"0.5260773",
"0.52505",
"0.52502245",
"0.52477944",
"0.52267176",
"0.5221517",
"0.52204174",
"0.5216737",
"0.52084094",
"0.52077806",
"0.5201406",
"0.5190292",
"0.51791096",
"0.51715064",
"0.5163148",
"0.51489484",
"0.5127413",
"0.5123514",
"0.511588",
"0.510237",
"0.50975716",
"0.5094613",
"0.5092559",
"0.5080406",
"0.5078582",
"0.5076065",
"0.50702345",
"0.5066214",
"0.5056979",
"0.5048972",
"0.5048924",
"0.50468457",
"0.50435215",
"0.50420094",
"0.5038565",
"0.5035508",
"0.50296605",
"0.4996718",
"0.4995783",
"0.49899417",
"0.49876872",
"0.4983947",
"0.49817494",
"0.49812913"
] | 0.80784774 | 0 |
Create MBean proxy for given MBean class with given object name and add notification listener to it | private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {
ObjectName mbeanName = null;
try {
mbeanName = new ObjectName(objectName);
} catch (MalformedObjectNameException e) {
log.error("Unable to create object name from " + objectName, e);
return;
}
MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);
ClientListener listener = new ClientListener(url);
createMBeanNotificationListener(mbeanName, listener);
beans.add(mBean);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {\n log.debug(\"Adding notification listener for JMXClient \" + url.getURLPath());\n try {\n mbsc.addNotificationListener(mBeanName, listener, null, null);\n } catch (InstanceNotFoundException | IOException e) {\n log.error(\"Unable to add notification listener\", e);\n }\n }",
"public void createMBeanProxies() {\n createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));\n createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));\n }",
"public ObjectNameAwareListenerImpl(NotificationListener listener, ObjectName objectName) {\n\t\tthis.listener = listener;\n\t\tthis.objectName = objectName;\n\t}",
"public void addNotificationListener(ObjectName name,\r\n ObjectName listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n throw new IOException(\"Not yet implemented\");\r\n \r\n// NotificationListenerDesc desc = new NotificationListenerDesc(name, null, filter, handback);\r\n// List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n// if (list == null) {\r\n// // Send the request to the JMX connector server then insert the\r\n// // NotificationListener descriptor in the map.\r\n// list = new Vector();\r\n// desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n// list.add(desc);\r\n// \r\n// hashTableNotificationListener.put(name, list);\r\n// } else {\r\n// // The subscription is already active, just add the NotificationListener\r\n// // descriptor in the map.\r\n// desc.key = list.get(0).key;\r\n// list.add(list.size(), desc);\r\n// }\r\n }",
"public static void register(Object mbean, ObjectName objName) {\n try {\n getMBeanServer().registerMBean(mbean, objName);\n }\n catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException e) {\n throw new RuntimeException(e);\n }\n }",
"public void addNotificationListener(ObjectName name,\r\n NotificationListener listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n NotificationListenerDesc desc = new NotificationListenerDesc(name, listener, filter, handback);\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n if (list == null) {\r\n // Send the request to the JMX connector server then insert the\r\n // NotificationListener descriptor in the map.\r\n list = new Vector();\r\n desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(desc);\r\n \r\n hashTableNotificationListener.put(name, list);\r\n } else {\r\n // The subscription is already active, just add the NotificationListener\r\n // descriptor in the map.\r\n desc.key = list.get(0).key;\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(list.size(), desc);\r\n }\r\n }",
"public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}",
"protected abstract Object createJvmClassLoadingMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"void setMessageCache(javax.management.ObjectName objectName);",
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }",
"protected abstract Object createJvmRuntimeMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException, InterruptedException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n\t\tThread.sleep(60 * 60 * 1000);\n\t}",
"MBeanDomain(String name) {\n\n\t\tthis.name = name;\n\t\tthis.mbeanMap = new HashMap<String, List<MBean>>();\n\t}",
"Object createRBean(RBeanInfo rbeanInfo, Object object) {\n Class<?> rbeanClass = rbeanInfo.getRBeanClass();\n return Proxy.newProxyInstance(\n rbeanClass.getClassLoader(),\n new Class<?>[] {rbeanClass},\n new RBeanInvocationHandler(rbeanInfo.getMethodHandlers(), object));\n }",
"public void register(Observer obj);",
"protected abstract Object createJvmOSMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"@Override\n public Set<ObjectName> doInBackground() { Register listener for MBean registration/unregistration\n //\n try {\n getMBeanServerConnection()\n .addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, MBeansTab.this, null, null);\n } catch (InstanceNotFoundException e) {\n // Should never happen because the MBeanServerDelegate\n // is always present in any standard MBeanServer\n //\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n vmPanel.getProxyClient().markAsDead();\n return null;\n }\n // Retrieve MBeans from MBeanServer\n //\n Set<ObjectName> mbeans = null;\n try {\n mbeans = getMBeanServerConnection().queryNames(null, null);\n } catch (IOException e) {\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n vmPanel.getProxyClient().markAsDead();\n return null;\n }\n return mbeans;\n }",
"private static void addMBean(MBeanServer paramMBeanServer, Object paramObject, String paramString)\n/* */ {\n/* */ try\n/* */ {\n/* 342 */ final ObjectName localObjectName = Util.newObjectName(paramString);\n/* */ \n/* */ \n/* 345 */ MBeanServer localMBeanServer = paramMBeanServer;\n/* 346 */ final Object localObject = paramObject;\n/* 347 */ AccessController.doPrivileged(new PrivilegedExceptionAction()\n/* */ {\n/* */ public Void run() throws MBeanRegistrationException, NotCompliantMBeanException {\n/* */ try {\n/* 351 */ this.val$mbs0.registerMBean(localObject, localObjectName);\n/* 352 */ return null;\n/* */ }\n/* */ catch (InstanceAlreadyExistsException localInstanceAlreadyExistsException) {}\n/* */ \n/* */ \n/* 357 */ return null;\n/* */ }\n/* */ });\n/* */ } catch (PrivilegedActionException localPrivilegedActionException) {\n/* 361 */ throw Util.newException(localPrivilegedActionException.getException());\n/* */ }\n/* */ }",
"private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n logger = ProActiveLogger.getLogger(Loggers.JMX_MBEAN);\n notificationsLogger = ProActiveLogger.getLogger(Loggers.JMX_NOTIFICATION);\n \n if ((logger != null) && logger.isDebugEnabled()) {\n logger.debug(\"[Serialisation.readObject]#Deserialization of the MBean\");\n }\n \n in.defaultReadObject();\n \n // Warning objectName is transient\n this.objectName = FactoryName.createActiveObjectName(this.id);\n \n // Warning nodeUrl is transient\n // We get the url of the new node.\n this.nodeUrl = this.body.getNodeURL();\n logger.debug(\"BodyWrapper.readObject() nodeUrl=\" + nodeUrl);\n \n // Warning notifications is transient\n this.notifications = new ConcurrentLinkedQueue<Notification>();\n \n // Register the MBean into the MBean Server\n try {\n ManagementFactory.getPlatformMBeanServer().registerMBean(this, objectName);\n } catch (InstanceAlreadyExistsException e) {\n logger.error(\"A Mean is already registered with this objectName \" + objectName, e);\n } catch (MBeanRegistrationException e) {\n logger.error(\"The MBean \" + objectName +\n \" can't be registered on the MBean server during the deserialization of the MBean\", e);\n } catch (NotCompliantMBeanException e) {\n logger.error(\"Exception throws during the deserialization of the MBean\", e);\n }\n \n launchNotificationsThread();\n }",
"@Test\n public void testLocalCalls() throws Exception {\n MBeanServer server = MBeanJMXAdapter.mbeanServer;\n assertThatThrownBy(\n () -> server.createMBean(\"FakeClassName\", new ObjectName(\"GemFire\", \"name\", \"foo\")))\n .isInstanceOf(ReflectionException.class);\n\n MBeanJMXAdapter adapter = new MBeanJMXAdapter(mock(DistributedMember.class));\n assertThatThrownBy(() -> adapter.registerMBean(mock(DynamicMBean.class),\n new ObjectName(\"MockDomain\", \"name\", \"mock\"), false))\n .isInstanceOf(ManagementException.class);\n }",
"void register(String name, Object bean);",
"public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}",
"public void registerMBean(final String beanNamePrefix)\n throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, MalformedObjectNameException {\n final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n final StringBuilder mBeanNameBuilder = new StringBuilder(beanNamePrefix);\n mBeanNameBuilder.append(\":type=\").append(this.getClass().getSimpleName());\n mBeanNameBuilder.append(\",id=\").append(UUID.randomUUID());\n mbs.registerMBean(this, new ObjectName(mBeanNameBuilder.toString()));\n mBeanName = mBeanNameBuilder.toString();\n }",
"protected abstract Object createJvmMemoryMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"public NewUserMBean() {\r\n }",
"protected abstract Object createJvmThreadingMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}",
"public ProxyableObject()\r\n {\r\n id = new command.GlobalObjectId();\r\n command.ObjectDB.getSingleton().store(id.getLocalObjectId(), this);\r\n \r\n //observable = new ObservabilityObject();\r\n }",
"public final void init() throws Exception {\n // Get the Platform MBean Server\n mbs = MBeanServerFactory.createMBeanServer();\n\n // Construct the ObjectName for the Hello MBean\n name = new ObjectName(\n \"org.apache.harmony.test.func.api.javax.management:type=Hello\");\n\n // Create the Hello MBean\n hello = new Hello();\n\n // Register the Hello MBean\n mbs.registerMBean(hello, name);\n\n // Add notification listener\n mbs.addNotificationListener(name, this, null, \"handback\");\n\n // Wait until the notification is received.\n freeze(3000);\n\n // Invoke sayHello method\n mbs.invoke(name, \"sayHello\", new Object[0], new String[0]);\n }",
"public interface NotificationCatcher {\n public static final String COPYRIGHT_2009_2010 = Constants.COPYRIGHT_2009_2010;\n \n static final String SCM_REVISION = \"$Revision: 1.2 $\"; //$NON-NLS-1$\n\n /**\n * When the Manager is started, the Manager will invoke this method. The\n * Manager needs a way to start the NotificationCatcher when the Manager\n * starts. After that point, the NotificationCatcher can place Notifications\n * on the Manager's queue. This method will allow the NotificationCatcher to\n * do any initialization to receive events from devices (such as listening\n * on a network socket) after it has been instantiated by the\n * NotificationCatcherFactory.\n * \n * @see NotificationCatcherFactory\n * @see Manager\n */\n public void startup() throws AMPException;\n \n /**\n * When the Manager is shutdown, the Manager will invoke this method. For\n * any resources that were obtained via the NotificationCatcher's\n * constructor or {@link #startup()}, this method will allow those\n * resources (such as network sockets) to be released when the Manager is\n * shutdown.\n * \n * @see Manager\n */\n public void shutdown();\n \n /**\n * Get the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This URL is used when a subscription request (\n * {@link Commands#subscribeToDevice(DeviceContext, String, StringCollection, URL)})\n * is sent to a device so that the device knows where to send the\n * notifications (events).\n * \n * @return the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This value will be used when sending\n * subscription requests to Devices. This may be an https or http\n * url. Typically, the path part of the URL will not be relevant,\n * the relevant parts are the protocol, hostname, and port.\n */\n public URL getURL();\n}",
"public void regist(String name, Object obj, Method fun) {\n ObjectMethod om = new ObjectMethod();\n om.obj = obj;\n om.fun = fun;\n funs.put(name, om);\n }",
"public void newAddObserver(Observer o) {\n\t\t\tthis.addNotifier.addObserver(o);\n\t\t}",
"public boolean addWatchHandler (ConfigurationPropertyChangeHandler handler, String... name);",
"private void addListener(String propertyName, PropertyChangeListener pcl) {\r\n pcs.addPropertyChangeListener(propertyName, pcl);\r\n }",
"protected abstract Object createJvmCompilationMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);",
"private void createProxyConnection() throws ClusterDataAdminException {\n ClusterMBeanDataAccess clusterMBeanDataAccess = ClusterAdminComponentManager.getInstance().getClusterMBeanDataAccess();\n try{\n failureDetectorMBean= clusterMBeanDataAccess.locateFailureDetectorMBean();\n }\n catch(Exception e){\n throw new ClusterDataAdminException(\"Unable to locate failure detector MBean connection\",e,log);\n }\n }",
"@Override\r\n\tpublic void registerObserver(BpmObserver o) {\n\r\n\t}",
"<T> T newProxy(T target, Class<T> interfaceType);",
"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}",
"void putMBean(MBean mbean) {\n\n\t\tList<MBean> mBeans = mbeanMap.get(mbean.getType());\n\n\t\tif (mBeans == null) {\n\t\t\tmBeans = new ArrayList<MBean>();\n\t\t\tthis.mbeanMap.put(mbean.getType(), mBeans);\n\t\t}\n\n\t\tmBeans.add(mbean);\n\n\t\tthis.mbeanCount++;\n\t}",
"public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ClientSoapMBean() {\r\n\t}",
"@Nonnull \r\n\tpublic static <T> T create(\r\n\t\t\t@Nonnull Class<T> listener, \r\n\t\t\t@Nonnull final Observer<? super Dynamic> bindTo) {\r\n\t\tfinal InvocationHandler handler = new InvocationHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object invoke(Object proxy, Method method, Object[] args)\r\n\t\t\t\t\tthrows Throwable {\r\n\t\t\t\tbindTo.next(new Dynamic(method.getName(), args));\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn listener.cast(Proxy.newProxyInstance(listener.getClassLoader(), new Class<?>[] { listener }, handler));\r\n\t}",
"public void onMessage(Message msg) {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG, \"MBSConnectionDelegate.onMessage(..): \" + msg);\r\n\r\n if (! (msg instanceof ObjectMessage)) {\r\n logger.log(BasicLevel.ERROR,\r\n \"JMSConnector.onMessage: message received is not an ObjectMessage:\" + msg);\r\n return;\r\n }\r\n\r\n NotificationDesc notificationDesc = null;\r\n try {\r\n notificationDesc = (NotificationDesc) ((ObjectMessage) msg).getObject();\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR, \"MBSConnectionDelegate.onMessage:\", exc);\r\n return;\r\n }\r\n\r\n try {\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(notificationDesc.name);\r\n if (list != null) {\r\n Iterator<NotificationListenerDesc> it = list.iterator();\r\n while (it.hasNext()) {\r\n try {\r\n NotificationListenerDesc listenerDesc = it.next();\r\n if ((listenerDesc.filter != null) &&\r\n ! listenerDesc.filter.isNotificationEnabled(notificationDesc.not)) {\r\n continue;\r\n }\r\n listenerDesc.listener.handleNotification(notificationDesc.not, listenerDesc.handback);\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR,\r\n \"MBSConnectionDelegate.onMessage: Error handling notification\", exc);\r\n }\r\n }\r\n }\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR, \"MBSConnectionDelegate.onMessage:\", exc);\r\n }\r\n }",
"public ClientMBean() {\n }",
"@Override\n public void addListener(String className) {\n\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 }",
"@Override\n protected BroadcastGroupControlMBean createManagementControl(final String name) throws Exception\n {\n ClientSessionFactory sf = new ClientSessionFactoryImpl(new TransportConfiguration(InVMConnectorFactory.class.getName()));\n session = sf.createSession(false, true, true);\n session.start();\n \n return new BroadcastGroupControlMBean()\n {\n private final CoreMessagingProxy proxy = new CoreMessagingProxy(session,\n ResourceNames.CORE_BROADCAST_GROUP + name);\n \n public long getBroadcastPeriod()\n {\n return ((Integer)proxy.retrieveAttributeValue(\"BroadcastPeriod\")).longValue();\n }\n \n public Object[] getConnectorPairs()\n {\n return (Object[])proxy.retrieveAttributeValue(\"ConnectorPairs\");\n }\n \n public String getGroupAddress()\n {\n return (String)proxy.retrieveAttributeValue(\"GroupAddress\");\n }\n \n public int getGroupPort()\n {\n return (Integer)proxy.retrieveAttributeValue(\"GroupPort\");\n }\n \n public int getLocalBindPort()\n {\n return (Integer)proxy.retrieveAttributeValue(\"LocalBindPort\");\n }\n \n public String getName()\n {\n return (String)proxy.retrieveAttributeValue(\"Name\");\n }\n \n public boolean isStarted()\n {\n return (Boolean)proxy.retrieveAttributeValue(\"Started\");\n }\n \n public void start() throws Exception\n {\n proxy.invokeOperation(\"start\");\n }\n \n public void stop() throws Exception\n {\n proxy.invokeOperation(\"stop\");\n }\n };\n }",
"static void registerInternalMBeans(MBeanServer paramMBeanServer)\n/* */ {\n/* 396 */ addMBean(paramMBeanServer, getHotspotClassLoadingMBean(), \"sun.management:type=HotspotClassLoading\");\n/* */ \n/* 398 */ addMBean(paramMBeanServer, getHotspotMemoryMBean(), \"sun.management:type=HotspotMemory\");\n/* */ \n/* 400 */ addMBean(paramMBeanServer, getHotspotRuntimeMBean(), \"sun.management:type=HotspotRuntime\");\n/* */ \n/* 402 */ addMBean(paramMBeanServer, getHotspotThreadMBean(), \"sun.management:type=HotspotThreading\");\n/* */ \n/* */ \n/* */ \n/* 406 */ if (getCompilationMXBean() != null) {\n/* 407 */ addMBean(paramMBeanServer, getHotspotCompilationMBean(), \"sun.management:type=HotspotCompilation\");\n/* */ }\n/* */ }",
"private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}",
"@Override\n public void registerObserver(Observer o){\n this.observers.add(o);\n }",
"public void setObjectName(String objectName) { this.objectName=objectName; }",
"<V> IBeanRuntime<V> registerWithLifecycle(V object);",
"ProxyFluent(T o) {\n proxy = (InterceptableProxy) InterceptableProxyFactory.createANewObjectProxyIfNeeded(o);\n }",
"public interface SimpleEventBusStatisticsMXBean {\n\n /**\n * Returns the amount of registered listeners.\n *\n * @return long representing the amount of registered listeners\n */\n long getListenerCount();\n\n /**\n * Returns a list of simple class names (class name without its package) of the registered listeners. Multiple\n * listeners with the same name are supported\n *\n * @return List of string representing the names of the registered listeners\n */\n List<String> getListenerTypes();\n\n /**\n * Returns the amount of received events.\n *\n * @return long representing the amount of received events\n */\n long getReceivedEventsCount();\n\n /**\n * resets the amount of events received.\n */\n void resetReceivedEventsCount();\n}",
"public void onObjectRegistration(ObjectContainer container)\n {\n }",
"public MyEventListenerProxy(MyEventListener listener) {\n super(listener);\n }",
"@Override\n public <E> E attach(Class<E> extensionType, HandleSupplier handle) {\n final SqlObjectInitData data = sqlObjectCache.get(extensionType, handle.getConfig());\n final ConfigRegistry instanceConfig = data.configureInstance(handle.getConfig().createCopy());\n\n if (data.isConcrete()) {\n return data.instantiate(extensionType, handle, instanceConfig);\n }\n instanceConfig.get(Extensions.class).onCreateProxy();\n\n Map<Method, Supplier<InContextInvoker>> handlers = new HashMap<>();\n final Object proxy = Proxy.newProxyInstance(\n extensionType.getClassLoader(),\n new Class[] {extensionType},\n (p, m, a) -> handlers.get(m).get().invoke(a));\n\n data.forEachMethodHandler((m, h) ->\n handlers.put(m, data.lazyInvoker(proxy, m, handle, instanceConfig)));\n return extensionType.cast(proxy);\n }",
"@Pointcut(\"within(com.wipro.despar..*manager*..*)\")\r\n\tpublic void inManagerLayer(){}",
"public interface Lifecycle {\n\n /**\n * Called when an MBean is started\n *\n * @throws Exception if something went wrong.\n */\n void start() throws Exception;\n\n /**\n * Called when an MBean is stopped\n */\n void stop();\n}",
"public void objectAdded(NamingEvent evt) throws RemoteException;",
"@Override\n public void registerObserver(Observer o) {\n list.add(o);\n \n }",
"public ObjectName preRegister(MBeanServer paramMBeanServer, ObjectName paramObjectName) throws Exception {\n/* 94 */ if (this.isInitialized == true) {\n/* 95 */ throw new InstanceAlreadyExistsException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 100 */ this.server = paramMBeanServer;\n/* */ \n/* 102 */ populate(paramMBeanServer, paramObjectName);\n/* */ \n/* 104 */ this.isInitialized = true;\n/* 105 */ return paramObjectName;\n/* */ }",
"public static void main(String[] args) {\n\n JDKProxy proxy = new JDKProxy();\n Person person = (Person)proxy.getInstance(new Son());\n person.getJob();\n\n /*Person person = (Person)new CglibInterceptor().getInstance(new Son());\n person.getJob();*/\n }",
"public interface NotificationManager {\n\n\tvoid sendTicketCreateNotification(Ticket ticket);\n\n\tvoid sendTicketChangeNotification(TicketChange ticketChange);\n\n\tvoid sendCommentNotification(Comment comment);\n\n\tvoid sendAttachmentNotification(Attachment attachment);\n\n}",
"public static MBeanServer newMBeanServer(String defaultDomain,\n MBeanServer outer,\n MBeanServerDelegate delegate,\n boolean interceptors){\n final boolean fairLock=DEFAULT_FAIR_LOCK_POLICY;\n checkNewMBeanServerPermission();\n // This constructor happens to disregard the value of the interceptors\n // flag - that is, it always uses the default value - false.\n // This is admitedly a bug, but we chose not to fix it for now\n // since we would rather not have anybody depending on the Sun private\n // interceptor APIs - which is most probably going to be removed and\n // replaced by a public (javax) feature in the future.\n //\n return new JmxMBeanServer(defaultDomain,outer,delegate,null,\n interceptors,fairLock);\n }",
"void setStateManager(javax.management.ObjectName objectName);",
"private static NotificationManagerProxy getNotificationManager() {\n return new NotificationManagerProxyImpl(ContextUtils.getApplicationContext());\n }",
"public NotificationService(String name) {\n super(name);\n }",
"public interface NotificationProxy extends Remote {\n \n /**\n * Registers the calling client, allocating an auto-generate clientId through which \n * this server will reach the client in the future. \n * @param clientSocket \n * @return clientId - the auto-generated client id\n * @throws java.rmi.RemoteException\n */\n public String registerClient(String clientSocket) throws RemoteException;\n \n /**\n * Unregisters the client identified by the given client id\n * @param clientId \n * @throws java.rmi.RemoteException \n */\n public void unregisterClient(String clientId) throws RemoteException;\n \n \n /**\n * Subscribe the client to the specified topic.\n * If the topic does not exist, a new one is create\n * @param name the name of the topic\n * @param clientId\n * @throws Exception\n * @throws java.rmi.RemoteException\n */\n public void subscribe(String name, String clientId) throws Exception, RemoteException;\n \n /**\n * Unsubscribe the client from the specified topic.\n * If the topic does not exists, nothing happens\n * @param name the name of the topic\n * @param clientId\n * @throws java.rmi.RemoteException\n */\n public void unsubscribe(String name, String clientId) throws RemoteException;\n \n /**\n * Deletes the specified topic, without notifying the subscribers \n * that they were unsubscribed\n * @param nume the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume) throws RemoteException;\n \n /**\n * Deletes the specified topic, and may be notifying all the subscribers \n * that they were unsubscribed\n * @param nume the name of the topic\n * @param notifySubscribers\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume, boolean notifySubscribers) throws RemoteException;\n \n /**\n * Deletes the specified topic, notifying all the subscribers with the specified data\n * that they were unsubscribed\n * @param nume the name of the topic\n * @param data data for the subscribers\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume, Object data) throws RemoteException;\n \n /**\n * Notifies all the subscribers of this topic that something happened\n * @param name - the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException\n */\n public void notifyTopic(String name) throws RemoteException;\n \n /**\n * Send this data to all subscribers of specified topic\n * @param data - the data to be sent to the listeners\n * @param name - the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException\n */\n public void dataNotifyTopic(Object data, String name) throws RemoteException;\n \n /**\n * Tests if the specified topic exists\n * @param topicName - the name of the topic\n * @return true - if the topic exists, false otherwise\n * @throws java.rmi.RemoteException\n */\n public boolean exists(String topicName) throws RemoteException;\n \n /**\n * \n * @param name - the name of the topic\n * @return the subscribers count of the specified topic\n * @throws java.rmi.RemoteException\n */\n public int getSubscribersCount(String name) throws RemoteException;\n \n}",
"protected void firePaperJamEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.PAPER_JAM\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch( MBeanException exception ) {\n exception.printStackTrace();\n } \n\n // handle exception if MBean not found\n catch( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n\n }",
"public void handleNotification(final Notification notification, Object handback) {\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n if (notification instanceof MBeanServerNotification) {\n ObjectName mbean = ((MBeanServerNotification) notification).getMBeanName();\n if (notification.getType().equals(MBeanServerNotification.REGISTRATION_NOTIFICATION)) {\n tree.addMBeanToView(mbean);\n } else if (notification.getType().equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) {\n tree.removeMBeanFromView(mbean);\n }\n }\n }\n });\n }",
"public void addListenerNotify(PersistRequestBean<?> request) {\n if (listenerNotify == null) {\n listenerNotify = new ArrayList<>();\n }\n listenerNotify.add(request);\n }",
"public static void bind(String name, myRemoteInterface obj) throws AlreadyBoundException, RemoteException, IOException {\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"bind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.bind(name, newRef);\n\t\t\n\t}",
"public void registerObject(NetObject object);",
"public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\n /**\n * Returns the value of a float attribute.\n * \n * @return Float\n */\n public Float getFloatAttribute();\n\n /**\n * Returns the value of a long integer attribute.\n * \n * @return Long\n */\n public Long getLongAttribute();\n\n /**\n * Returns the value of a integer attribute.\n * \n * @return Integer\n */\n public Integer getIntegerAttribute();\n\n /**\n * Returns the value of a short attribute.\n * \n * @return Short\n */\n public Short getShortAttribute();\n\n /**\n * Returns the value of a byte attribute.\n * \n * @return Byte\n */\n public Byte getByteAttribute();\n\n /**\n * Returns the value of a big integer attribute.\n * \n * @return BigInteger\n */\n public BigInteger getBigIntegerAttribute();\n\n /**\n * Returns the value of a big decimal attribute.\n * \n * @return BigDecimal\n */\n public BigDecimal getBigDecimalAttribute();\n\n /**\n * Returns the value of a boolean attribute.\n * \n * @return Boolean\n */\n public Boolean getBooleanAttribute();\n\n /**\n * Returns a structured data attribute.\n * \n * @return StructuredData\n */\n public StructuredData getStructuredDataAttribute();\n\n /**\n * Returns an attribute with a data type that is invalid for the check_jmx plugin.\n * \n * @return String[]\n */\n public String[] getInvalidAttribute();\n\n /**\n * Returns an attribute with an invalid numeric type.\n * \n * @return Fraction\n */\n public Fraction getInvalidNumberAttribute();\n\n /**\n * Returns a null attribute value.\n * \n * @return String\n */\n public String getNullAttribute();\n\n /**\n * Operation that can be called as part of the check_jmx plugin flow.\n */\n public void testOperation();\n\n}",
"public interface BeanSelfAware {\n\n //设定代理到类内部,嵌套调用时使用代理进行方法调用\n void setSelf(Object obj);\n\n}",
"public interface TransportLoggerViewMBean {\n\n /**\n * Returns if the managed TransportLogger is currently active\n * (writing to a log) or not.\n * @return if the managed TransportLogger is currently active\n * (writing to a log) or not.\n */\n public boolean isLogging();\n \n /**\n * Enables or disables logging for the managed TransportLogger.\n * @param logging Boolean value to enable or disable logging for\n * the managed TransportLogger.\n * true to enable logging, false to disable logging.\n */\n public void setLogging(boolean logging);\n \n /**\n * Enables logging for the managed TransportLogger.\n */\n public void enableLogging();\n \n /**\n * Disables logging for the managed TransportLogger.\n */\n public void disableLogging();\n \n}",
"private void connect() throws IOException\n {\n JMXServiceURL jmxUrl = new JMXServiceURL(String.format(fmtUrl, host, port));\n JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl, null);\n mbeanServerConn = jmxc.getMBeanServerConnection();\n \n try\n {\n ObjectName name = new ObjectName(ssObjName);\n ssProxy = JMX.newMBeanProxy(mbeanServerConn, name, StorageServiceMBean.class);\n } catch (MalformedObjectNameException e)\n {\n throw new RuntimeException(\n \"Invalid ObjectName? Please report this as a bug.\", e);\n }\n \n memProxy = ManagementFactory.newPlatformMXBeanProxy(mbeanServerConn, \n ManagementFactory.MEMORY_MXBEAN_NAME, MemoryMXBean.class);\n runtimeProxy = ManagementFactory.newPlatformMXBeanProxy(\n mbeanServerConn, ManagementFactory.RUNTIME_MXBEAN_NAME, RuntimeMXBean.class);\n }",
"public interface OdlOpenFlowStats2MBean {\n\n /**\n * Getter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public String getOdlOpenflowFlowstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void setOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void checkOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowStatus2\" variable.\n */\n public String getOdlOpenflowStatus2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowStatus2\" variable.\n */\n public void setOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowStatus2\" variable.\n */\n public void checkOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public String getOdlOpenflowManufacturer2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void setOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public String getOdlOpenflowMacAddress2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void setOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void checkOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowInterface2\" variable.\n */\n public String getOdlOpenflowInterface2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowInterface2\" variable.\n */\n public void setOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowInterface2\" variable.\n */\n public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowNode2\" variable.\n */\n public String getOdlOpenflowNode2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowNode2\" variable.\n */\n public void setOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowNode2\" variable.\n */\n public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public String getOdlOpenflowMeterstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void setOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void checkOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n}",
"protected void fireLowTonerEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.LOW_TONER\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch ( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch ( MBeanException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception if MBean not found\n catch ( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n \n }",
"@Override\n public void registrarObsevador(ObservadorDeMano observador)\n {\n observadoresMano.add(observador);\n }",
"public void register(IObserver obj);",
"@Override\n\tpublic void registerManager(ManagerAppInterface ma) throws RemoteException {\n\t\t\n\t\tthis.ma = ma;\n\t}",
"public interface PaxosMBeanInfo {\n /**\n * @return a string identifying the MBean \n */\n public String getName();\n /**\n * If isHidden returns true, the MBean won't be registered with MBean server,\n * and thus won't be available for management tools. Used for grouping MBeans.\n * @return true if the MBean is hidden.\n */\n public boolean isHidden();\n}",
"public interface OAObjectCacheListener<T extends OAObject> {\n \n /**\n * Called when there is a change to an object.\n */\n public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue);\n\n /** \n * called when a new object is added to OAObjectCache, during the object construction. \n */\n public void afterAdd(T obj);\n \n public void afterAdd(Hub<T> hub, T obj);\n \n public void afterRemove(Hub<T> hub, T obj);\n \n public void afterLoad(T obj);\n \n}",
"protected void reloadMBeanNames()\n {\n try\n {\n GraphDatabaseService genericDb = NeoServer.INSTANCE.database();\n\n if ( genericDb instanceof EmbeddedGraphDatabase )\n {\n EmbeddedGraphDatabase db = (EmbeddedGraphDatabase) genericDb;\n\n // Grab relevant jmx management beans\n ObjectName neoQuery = db.getManagementBean( Kernel.class ).getMBeanQuery();\n String instance = neoQuery.getKeyProperty( \"instance\" );\n String baseName = neoQuery.getDomain() + \":instance=\"\n + instance + \",name=\";\n\n primitivesName = new ObjectName( baseName\n + JMX_NEO4J_PRIMITIVE_COUNT );\n storeSizesName = new ObjectName( baseName\n + JMX_NEO4J_STORE_FILE_SIZES );\n transactionsName = new ObjectName( baseName\n + JMX_NEO4J_TRANSACTIONS );\n memoryMappingName = new ObjectName( baseName\n + JMX_NEO4J_MEMORY_MAPPING );\n kernelName = new ObjectName( baseName + JMX_NEO4J_KERNEL );\n lockingName = new ObjectName( baseName + JMX_NEO4J_LOCKING );\n cacheName = new ObjectName( baseName + JMX_NEO4J_CACHE );\n configurationName = new ObjectName( baseName\n + JMX_NEO4J_CONFIGURATION );\n xaResourcesName = new ObjectName( baseName\n + JMX_NEO4J_XA_RESOURCES );\n }\n\n }\n catch ( MalformedObjectNameException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( NullPointerException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( org.neo4j.webadmin.domain.DatabaseBlockedException e )\n {\n e.printStackTrace();\n }\n }",
"public interface INotificationListener extends INotifyObject{\r\n\t\r\n\tvoid OnNotificationEvent(int notification, INotifyObject notificationData);\r\n}",
"public void registerObserver(Observer ob){\r\n\t\tobservers.add(ob);\r\n\t}",
"public void setObjectName(java.lang.String param){\n localObjectNameTracker = true;\n \n this.localObjectName=param;\n \n\n }",
"void setPersistenceManager(javax.management.ObjectName objectName);",
"@MBean(objectName = \"MassIndexer\",\n description = \"Component that rebuilds the index from the cached data\")\npublic interface MassIndexer {\n\n //TODO Add more parameters here, like timeout when it will be implemented\n //(see ISPN-1313, and ISPN-1042 for task cancellation)\n @ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();\n\n}",
"public interface IMoyensListener {\n\n /**\n * Called when a new demand is asked\n * @param newDemand the new demand\n */\n void onDemandAsked(Vehicule newDemand);\n\n /**\n * Called when a demand in the list has been updated\n * @param demand the updated demand\n */\n void onDemandUpdated(Vehicule demand);\n}",
"public void addPropertyChangeListener (\n String propertyName,\n PropertyChangeListener l\n ) {\n pcs.addPropertyChangeListener (propertyName, l);\n }",
"public interface WorkManager extends InitBean, DestroyBean {\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a worker available if no\r\n\t * Worker is available then it will create new and assign to the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateWorker(Work work);\r\n\r\n\t/**\r\n\t * This method will release all workers registered under this maager.\r\n\t */\r\n\tvoid releaseAllWorkers();\r\n\r\n\t/**\r\n\t * This method will release the @param worker registered with this Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid releaseWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method will register the @param worker passed to it with the\r\n\t * Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid registerWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a deamon worker available\r\n\t * if no deamon Worker is available then it will create new and assign to\r\n\t * the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateDeamonWorker(Work work);\r\n\r\n\t/**\r\n\t * This will return number of worker created using this manager.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkers();\r\n\r\n\t/**\r\n\t * This will return number of working workers.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkingWorkers();\r\n}",
"@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }",
"public static IBookManager asInterface(IBinder obj) {\n if ((obj == null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin != null) && (iin instanceof IBookManager))) {\n return ((IBookManager) iin);\n }\n return new Proxy(obj);\n }",
"public static void rebind(String name, myRemoteInterface obj) throws RemoteException, AlreadyBoundException {\n\t\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"rebind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.rebind(name, newRef);\n\t\t\n\t\t\n\t}",
"public interface WMANotify {\n\t public void NotifyWMAResult( String number,\n String message,\n boolean success );\n}",
"public static <T> T createProxy(Class<T> serviceCls, String hostName, Integer port) {\n\t\tif (serviceCls.isInterface()) {\n\t\t\tList<Class> proxyInfs = getAllInterfaces(serviceCls);\n\t\t\treturn (T) Proxy.newProxyInstance(serviceCls.getClassLoader(), proxyInfs.toArray(new Class[proxyInfs.size()]),\n\t\t\t\t\tnew RpcInvocationHandler(serviceCls, hostName == null ? DEFAULT_HOST_NAME : hostName,\n\t\t\t\t\t\t\tport == null ? DEFAULT_PORT : port));\n\t\t} else\n\t\t\treturn (T) Proxy.newProxyInstance(serviceCls.getClassLoader(), serviceCls.getInterfaces(),\n\t\t\t\t\tnew RpcInvocationHandler(serviceCls, hostName == null ? DEFAULT_HOST_NAME : hostName,\n\t\t\t\t\t\t\tport == null ? DEFAULT_PORT : port));\n\t}"
] | [
"0.6882657",
"0.6486824",
"0.5853364",
"0.5822897",
"0.58162355",
"0.5707487",
"0.5652486",
"0.5521532",
"0.5379514",
"0.53559136",
"0.5243329",
"0.5186728",
"0.51293474",
"0.51232",
"0.50881577",
"0.50823116",
"0.50780004",
"0.5074933",
"0.50198567",
"0.50095624",
"0.5008197",
"0.4986951",
"0.49722084",
"0.49650538",
"0.49570593",
"0.4948076",
"0.4912156",
"0.4910555",
"0.48617095",
"0.48518643",
"0.4850225",
"0.4846088",
"0.4833957",
"0.48323974",
"0.48220178",
"0.48108426",
"0.481072",
"0.4791373",
"0.47853044",
"0.478311",
"0.4758407",
"0.47436208",
"0.47401062",
"0.47334477",
"0.47230095",
"0.47072348",
"0.47004086",
"0.47001237",
"0.46989936",
"0.4698251",
"0.4696797",
"0.46758",
"0.46585646",
"0.46411225",
"0.46351406",
"0.46326256",
"0.46240413",
"0.46232978",
"0.46148816",
"0.46073124",
"0.46071777",
"0.46032572",
"0.46000293",
"0.4595825",
"0.45858812",
"0.4585229",
"0.45848322",
"0.4576809",
"0.4569538",
"0.456047",
"0.45583266",
"0.45566863",
"0.4554473",
"0.45500425",
"0.45470142",
"0.45459634",
"0.45411003",
"0.4536789",
"0.45338938",
"0.45318604",
"0.45239982",
"0.4520769",
"0.451671",
"0.45164403",
"0.45061356",
"0.45038494",
"0.45006663",
"0.44876364",
"0.4483093",
"0.4481861",
"0.4481673",
"0.44812325",
"0.44771045",
"0.44700408",
"0.4464874",
"0.44527072",
"0.44446838",
"0.44417456",
"0.4432519",
"0.44314778"
] | 0.80292654 | 0 |
Add notification listener to given MBean name | private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {
log.debug("Adding notification listener for JMXClient " + url.getURLPath());
try {
mbsc.addNotificationListener(mBeanName, listener, null, null);
} catch (InstanceNotFoundException | IOException e) {
log.error("Unable to add notification listener", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNotificationListener(ObjectName name,\r\n ObjectName listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n throw new IOException(\"Not yet implemented\");\r\n \r\n// NotificationListenerDesc desc = new NotificationListenerDesc(name, null, filter, handback);\r\n// List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n// if (list == null) {\r\n// // Send the request to the JMX connector server then insert the\r\n// // NotificationListener descriptor in the map.\r\n// list = new Vector();\r\n// desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n// list.add(desc);\r\n// \r\n// hashTableNotificationListener.put(name, list);\r\n// } else {\r\n// // The subscription is already active, just add the NotificationListener\r\n// // descriptor in the map.\r\n// desc.key = list.get(0).key;\r\n// list.add(list.size(), desc);\r\n// }\r\n }",
"public void addNotificationListener(ObjectName name,\r\n NotificationListener listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n NotificationListenerDesc desc = new NotificationListenerDesc(name, listener, filter, handback);\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n if (list == null) {\r\n // Send the request to the JMX connector server then insert the\r\n // NotificationListener descriptor in the map.\r\n list = new Vector();\r\n desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(desc);\r\n \r\n hashTableNotificationListener.put(name, list);\r\n } else {\r\n // The subscription is already active, just add the NotificationListener\r\n // descriptor in the map.\r\n desc.key = list.get(0).key;\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(list.size(), desc);\r\n }\r\n }",
"public ObjectNameAwareListenerImpl(NotificationListener listener, ObjectName objectName) {\n\t\tthis.listener = listener;\n\t\tthis.objectName = objectName;\n\t}",
"public void addListenerNotify(PersistRequestBean<?> request) {\n if (listenerNotify == null) {\n listenerNotify = new ArrayList<>();\n }\n listenerNotify.add(request);\n }",
"private void addListener(String propertyName, PropertyChangeListener pcl) {\r\n pcs.addPropertyChangeListener(propertyName, pcl);\r\n }",
"public void addPropertyChangeListener (\n String propertyName,\n PropertyChangeListener l\n ) {\n pcs.addPropertyChangeListener (propertyName, l);\n }",
"public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}",
"public boolean addWatchHandler (ConfigurationPropertyChangeHandler handler, String... name);",
"public void removeNotificationListener(ObjectName name,\r\n ObjectName listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.removeNotificationListener(\" + name + \", ..)\");\r\n\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n if (list != null) {\r\n Long key = list.get(0).key;\r\n hashTableNotificationListener.remove(name);\r\n poolRequestors.request(new RemoveNotificationListener(key));\r\n } else {\r\n // There is no listener registered for this MBean\r\n throw new ListenerNotFoundException(\"No registered listener for: \" + name);\r\n }\r\n }",
"public void addNameChangeListener(NameChangeListener listener) {\n listeners.add(listener);\n }",
"void register(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);",
"protected void firePaperJamEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.PAPER_JAM\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch( MBeanException exception ) {\n exception.printStackTrace();\n } \n\n // handle exception if MBean not found\n catch( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n\n }",
"public void notifyTopic(String name) throws RemoteException;",
"public void removeNotificationListener(ObjectName name,\r\n NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.removeNotificationListener(\" + name + \", ..)\");\r\n\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n if (list != null) {\r\n Long key = list.get(0).key;\r\n hashTableNotificationListener.remove(name);\r\n poolRequestors.request(new RemoveNotificationListener(key));\r\n } else {\r\n // There is no listener registered for this MBean\r\n throw new ListenerNotFoundException(\"No registered listener for: \" + name);\r\n }\r\n }",
"private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {\n ObjectName mbeanName = null;\n try {\n mbeanName = new ObjectName(objectName);\n } catch (MalformedObjectNameException e) {\n log.error(\"Unable to create object name from \" + objectName, e);\n return;\n }\n\n MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);\n\n ClientListener listener = new ClientListener(url);\n createMBeanNotificationListener(mbeanName, listener);\n beans.add(mBean);\n }",
"public void addMetric(M wm){\r\n\t\tmetrics.add(wm);\r\n\t}",
"public void addNotificationListener(NotificationListener listener) {\n\t\tnotificationListeners.add(listener);\n\t}",
"void addChangeListener( RegistryListener listener );",
"void addRefreshListener(RefreshListener listener) throws RemoteException;",
"public void addListener(MoocListener listener) {\n\n\t\ttry {\n\t\t\t logger.info(\"add listener in MoocChannel is called and its \"+handler);\n\t\t\thandler.addListener(listener);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"failed to add listener\", e);\n\t\t}\n\t}",
"public static void register(Object mbean, ObjectName objName) {\n try {\n getMBeanServer().registerMBean(mbean, objName);\n }\n catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException e) {\n throw new RuntimeException(e);\n }\n }",
"public interface INotificationListener extends INotifyObject{\r\n\t\r\n\tvoid OnNotificationEvent(int notification, INotifyObject notificationData);\r\n}",
"public void registerListener(IMountServiceListener listener) throws RemoteException;",
"public void addPropertyChangeListener(String propertyName, java.beans.PropertyChangeListener listener) {\n\tmPcs.addPropertyChangeListener(propertyName, listener);\n }",
"public void notifyMention(IStatus mention){\n for (ITwitterListener listener:listeners){\n listener.onNewMention(mention);\n }\n }",
"public void addNotification(DefaultNotification n)\n {\n this.notifications.add(n);\n this.setUpdated();\n }",
"public interface IMoyensListener {\n\n /**\n * Called when a new demand is asked\n * @param newDemand the new demand\n */\n void onDemandAsked(Vehicule newDemand);\n\n /**\n * Called when a demand in the list has been updated\n * @param demand the updated demand\n */\n void onDemandUpdated(Vehicule demand);\n}",
"public void newAddObserver(Observer o) {\n\t\t\tthis.addNotifier.addObserver(o);\n\t\t}",
"public void dataNotifyTopic(Object data, String name) throws RemoteException;",
"public void addObserver(jObserver observer);",
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }",
"public interface NotificationListener {\n void onReceivedNotification(Notification notification);\n void onRemovedNotification(Notification notification);\n}",
"void registerListeners();",
"public void addMessage(@Nonnull final BasicMessage jmsm) {\n\t\tfinal Iterator<IMessageViewer> iterator = changeListeners.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\t(iterator.next()).addJMSMessage(jmsm);\n\t\t}\n\t}",
"public void setHANotificationBroadcasterName( String newBroadcasterName );",
"public void addNotification(java.lang.String notificationIn)\r\n\t{\r\n\t\tnotification = notificationIn;\r\n\t}",
"private void notifyListeners (String aMauiApplicationName, RendererEvent aRendererEvent)\n\t{\n\t\tVector theListeners = (Vector) rendererListeners.get (aMauiApplicationName);\n\t\t\n\t\tif (theListeners != null)\n\t\t{\n\t\t\tObject [] theListenerArray = theListeners.toArray ();\n\t\t\n\t\t\tfor (int i = 0; i < theListenerArray.length; i++)\n\t\t\t{\n\t\t\t\t((I_RendererListener) theListenerArray [i]).rendererCreated (aRendererEvent);\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void addPropertyChangeListener(String propertyName,\n PropertyChangeListener l) {\n addLImpl(propertyName, l);\n }",
"public void addNotificationHandler(String serviceName, NotificationHandler handler);",
"private Response handleAddNotificationListener(final RequestAddNotificationListener request) {\n // Listener\n final NotificationSender notificationSender = new NotificationSender(request.getNotificationListenerId(),\n request.getName());\n\n // Check access\n try {\n accessController.checkAccess(subject, \"addNotificationListener\", new Object[]{request.getName(), notificationSender, request.getFilter(), null});\n } catch (final SecurityException e) {\n LOGGER.log(Level.WARNING, \"No access to: addNotificationListener\", e);\n return new Response(request.getRequestId(), new SecurityException(\"Illegal access\"));\n }\n\n // Invoke\n try {\n mBeanServer.addNotificationListener(request.getName(), notificationSender, request.getFilter(), null);\n notificationSenders.add(notificationSender);\n return new Response(request.getRequestId(), null);\n } catch (final OperationsException e) {\n return new Response(request.getRequestId(), e);\n }\n }",
"public void addNotificationMethod() {\n getNavigator().addNotification();\n }",
"@Override\r\n\tpublic void registerObserver(BpmObserver o) {\n\r\n\t}",
"public void register(IMessageListener listener) {\r\n registry.register(listener);\r\n }",
"public abstract void registerListeners();",
"void addPropertyChangedObserver(PropertyChangeObserver observer);",
"@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}",
"public void addPropertyChangeListener(String propertyName,\n\t\t\tPropertyChangeListener listener) {\n\t\tpropertyChangeSupport.addPropertyChangeListener(propertyName, listener);\n\t}",
"public void addDirectorToHmiEventListener( DirectorToHmiEventListener listener );",
"public synchronized void addJsimListener (JsimListener t)\n {\n jsimListeners.add (t);\n \n }",
"public void registerObserver(Observer ob){\r\n\t\tobservers.add(ob);\r\n\t}",
"private void notifyListeners(MenuCommand mc) {\n connectorListeners.forEach(listener-> listener.onCommand(this, mc));\n }",
"void onPropertyChange(String name, String newValue);",
"@Override\n public Set<ObjectName> doInBackground() { Register listener for MBean registration/unregistration\n //\n try {\n getMBeanServerConnection()\n .addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, MBeansTab.this, null, null);\n } catch (InstanceNotFoundException e) {\n // Should never happen because the MBeanServerDelegate\n // is always present in any standard MBeanServer\n //\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n vmPanel.getProxyClient().markAsDead();\n return null;\n }\n // Retrieve MBeans from MBeanServer\n //\n Set<ObjectName> mbeans = null;\n try {\n mbeans = getMBeanServerConnection().queryNames(null, null);\n } catch (IOException e) {\n if (JConsole.isDebug()) {\n e.printStackTrace();\n }\n vmPanel.getProxyClient().markAsDead();\n return null;\n }\n return mbeans;\n }",
"public interface ManagerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerAdded(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's active model has been modified\r\n\t * to reflect a new design task.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerModelModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's output has been modified to \r\n\t * reflect a new set of inputs from designers.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerOutputModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manger has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerRemoved(ManagerEvent e);\r\n}",
"public abstract void addListener(RegistryChangeListener listener);",
"void notificationReceived(Notification notification);",
"public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }",
"@Override\n public void registerObserver(Observer o){\n this.observers.add(o);\n }",
"public void managerAdded(ManagerEvent e);",
"@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}",
"MBeanDomain(String name) {\n\n\t\tthis.name = name;\n\t\tthis.mbeanMap = new HashMap<String, List<MBean>>();\n\t}",
"public interface IConnectedRegisteredDevicesListenerManager {\n\n boolean addConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n boolean removeConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n}",
"public abstract void addServiceListener(PhiDiscoverListener listener);",
"public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}",
"public void registerObserver(Observer o) {\n observers.add(o);\n }",
"public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }",
"public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }",
"public void addChangeListener(ChangeListener l) {\n }",
"public void addChangeListener(ChangeListener l) {\n }",
"public void register(Observer obj);",
"public void registerObserver(Observer observer);",
"private static synchronized void addMediaServicePropertyChangeListener(\r\n PropertyChangeListener listener)\r\n {\r\n if (mediaServicePropertyChangeListener == null) {\r\n final MediaService mediaService = ProtocolMediaActivator.getMediaService();\r\n\r\n if (mediaService != null) {\r\n mediaServicePropertyChangeListener = new WeakPropertyChangeListener()\r\n {\r\n @Override\r\n protected void addThisToNotifier()\r\n {\r\n mediaService.addPropertyChangeListener(this);\r\n }\r\n\r\n @Override\r\n protected void removeThisFromNotifier()\r\n {\r\n mediaService.removePropertyChangeListener(this);\r\n }\r\n };\r\n }\r\n }\r\n if (mediaServicePropertyChangeListener != null) {\r\n mediaServicePropertyChangeListener.addPropertyChangeListener(listener);\r\n }\r\n }",
"protected void fireLowTonerEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.LOW_TONER\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch ( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch ( MBeanException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception if MBean not found\n catch ( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n \n }",
"void notifyAssertionHookAdded(String hookName);",
"public void addPropertyChangeListener(PropertyChangeListener listener) {\n \tmPropertyChangeSupport.addPropertyChangeListener(listener);\n }",
"public synchronized void addListener(PeerMessageListener ml)\n\t{\n\t\t_ml = ml;\n\t\tdequeueMessages();\n\t}",
"public void addListener(IMember member, MemberModel.IModelListener listener) {\n\t\t//get the entry (or create a new one)\n\t\tIMemberInfo entry = get(member);\n\t\tentry.addListener(listener);\n\t\t//return info?\n\t}",
"public void onMessage(int extensionInstanceID, String message) {\n }",
"public void addListener(ServiceRequest req, NamingService.Listener l) {\n namingService.addListener(req, l);\n }",
"public interface OnMessagingServiceConnetcedListenner {\n void onServiceConnected();\n}",
"public interface IMonitorListener {\n public void onEvent(Message cim);\n}",
"public void onMessage(Message msg) {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG, \"MBSConnectionDelegate.onMessage(..): \" + msg);\r\n\r\n if (! (msg instanceof ObjectMessage)) {\r\n logger.log(BasicLevel.ERROR,\r\n \"JMSConnector.onMessage: message received is not an ObjectMessage:\" + msg);\r\n return;\r\n }\r\n\r\n NotificationDesc notificationDesc = null;\r\n try {\r\n notificationDesc = (NotificationDesc) ((ObjectMessage) msg).getObject();\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR, \"MBSConnectionDelegate.onMessage:\", exc);\r\n return;\r\n }\r\n\r\n try {\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(notificationDesc.name);\r\n if (list != null) {\r\n Iterator<NotificationListenerDesc> it = list.iterator();\r\n while (it.hasNext()) {\r\n try {\r\n NotificationListenerDesc listenerDesc = it.next();\r\n if ((listenerDesc.filter != null) &&\r\n ! listenerDesc.filter.isNotificationEnabled(notificationDesc.not)) {\r\n continue;\r\n }\r\n listenerDesc.listener.handleNotification(notificationDesc.not, listenerDesc.handback);\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR,\r\n \"MBSConnectionDelegate.onMessage: Error handling notification\", exc);\r\n }\r\n }\r\n }\r\n } catch (Exception exc) {\r\n logger.log(BasicLevel.ERROR, \"MBSConnectionDelegate.onMessage:\", exc);\r\n }\r\n }",
"@Override\n public void addListener(String className) {\n\n }",
"void onHisNotify();",
"@Pointcut(\"within(com.wipro.despar..*manager*..*)\")\r\n\tpublic void inManagerLayer(){}",
"private static void registerEventListener() {\r\n\r\n log.info(\"Registering event listener for Listeners\"); //$NON-NLS-1$\r\n\r\n try {\r\n ObservationManager observationManager = ContentRepository\r\n .getHierarchyManager(ContentRepository.CONFIG)\r\n .getWorkspace()\r\n .getObservationManager();\r\n\r\n observationManager.addEventListener(new EventListener() {\r\n\r\n public void onEvent(EventIterator iterator) {\r\n // reload everything\r\n reload();\r\n }\r\n }, Event.NODE_ADDED\r\n | Event.NODE_REMOVED\r\n | Event.PROPERTY_ADDED\r\n | Event.PROPERTY_CHANGED\r\n | Event.PROPERTY_REMOVED, \"/\" + CONFIG_PAGE + \"/\" + \"IPConfig\", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n }\r\n catch (RepositoryException e) {\r\n log.error(\"Unable to add event listeners for Listeners\", e); //$NON-NLS-1$\r\n }\r\n }",
"void registerUpdateListener(IUpdateListener listener);",
"public void objectAdded(NamingEvent evt) throws RemoteException;",
"public Object registerCMM(String name, Observer obs) {\n\n Object res = null;\n synchronized(AlertCorrelationEngine.class) {\n AlertObserver curObs = (AlertObserver) observers.get(obs);\n if (curObs == null) {\n curObs = new AlertObserver(obs, name);\n observers.put(obs, curObs);\n }\n \n res = curObs.addCMMNotification();\n }\n triggerMissedCMMNotifications(obs);\n return res;\n }",
"public interface WMANotify {\n\t public void NotifyWMAResult( String number,\n String message,\n boolean success );\n}",
"public void registerObserver(ModelObserver mo){\n\t\tcontrollers.add(mo);\n\t}",
"public void setOnPropertyChangedListener(OnPropertyChangedListener l){\n _onPropertyChange = l;\n }",
"public synchronized void addPlotNotificationListener(\n PlotNotificationListener listener) {\n m_plotListeners.add(listener);\n }",
"protected void fireNameChanged() {\n\t\tfor(ReadingPointListener l : listeners) l.nameChanged(this);\n\t}",
"@Override\n public void startNotificationListener(DBMSSynchronizer dbmsSynchronizer) {\n Logger.getLogger(ThreadedHousekeeper.class.getName()).setLevel(Level.SEVERE);\n\n this.listener = new PostgresSQLNotificationListener(dbmsSynchronizer);\n\n PGDataSource dataSource = new PGDataSource();\n dataSource.setHost(connectionProperties.getHost());\n dataSource.setPort(connectionProperties.getPort());\n dataSource.setDatabase(connectionProperties.getDatabase());\n dataSource.setUser(connectionProperties.getUser());\n dataSource.setPassword(connectionProperties.getPassword());\n\n try {\n pgConnection = (PGConnection) dataSource.getConnection();\n pgConnection.createStatement().execute(\"LISTEN jabrefLiveUpdate\");\n // Do not use `new PostgresSQLNotificationListener(...)` as the object has to exist continuously!\n // Otherwise the listener is going to be deleted by GC.\n pgConnection.addNotificationListener(listener);\n } catch (SQLException e) {\n LOGGER.error(\"SQL Error: \", e);\n }\n }",
"public void addObserver(ServiceObserverPrx observer);",
"@Override\n public void registerObserver(Observer ob) {\n this.observers.add(ob);\n System.out.println(\"** Sistema: Observado \" + this.getClass().getName() + \" - Observador \" + ob.getClass().getName() + \" está registrado.\");\n }",
"public void addPropertyChangeListener (PropertyChangeListener l)\n { pcs.addPropertyChangeListener (l); }",
"@Override\n public void registerObserver(Observer o) {\n list.add(o);\n \n }",
"public void addPropertyChangeListener (PropertyChangeListener l) {\n pcs.addPropertyChangeListener (l);\n }"
] | [
"0.6943929",
"0.6890046",
"0.60388726",
"0.5814422",
"0.5782097",
"0.5752929",
"0.57156116",
"0.56976116",
"0.5621879",
"0.5619322",
"0.55783534",
"0.5542098",
"0.5538501",
"0.5531528",
"0.55221665",
"0.54450154",
"0.5427079",
"0.5416646",
"0.5407022",
"0.5402845",
"0.540092",
"0.5399485",
"0.5377647",
"0.537741",
"0.53749585",
"0.53614604",
"0.53609794",
"0.53576446",
"0.53523004",
"0.5347186",
"0.53424126",
"0.53283125",
"0.53181106",
"0.5317763",
"0.53147227",
"0.5311277",
"0.53082997",
"0.5304807",
"0.5299744",
"0.52979493",
"0.5275045",
"0.52731067",
"0.52668804",
"0.52542573",
"0.5245873",
"0.52373385",
"0.5229369",
"0.5193574",
"0.518367",
"0.5172275",
"0.5169066",
"0.5167822",
"0.516047",
"0.5150905",
"0.5148249",
"0.5137716",
"0.5126189",
"0.51174206",
"0.51142305",
"0.5098211",
"0.5089062",
"0.5081804",
"0.50807244",
"0.50796825",
"0.5078968",
"0.50764704",
"0.50764704",
"0.5065734",
"0.5065734",
"0.505951",
"0.505413",
"0.504197",
"0.5038318",
"0.50363237",
"0.50360185",
"0.50332594",
"0.5031702",
"0.5027209",
"0.50260305",
"0.5025706",
"0.5024046",
"0.50217116",
"0.50197434",
"0.5018421",
"0.50176775",
"0.50163233",
"0.5013391",
"0.50133777",
"0.50128996",
"0.5010265",
"0.5002762",
"0.50008893",
"0.49996483",
"0.4995929",
"0.49942696",
"0.4991328",
"0.49889606",
"0.49859235",
"0.49837768",
"0.4982099"
] | 0.77304316 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.